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/vpelletier/pprofile/asMIMEString | LDU_FT | [
"<BEGIN>\n## `_iterOutFiles`",
"Yields path, data, mimetype for each file involved on or produced by\n profiling.\n<END>",
"<BEGIN>\n## `asMIMEString`",
"Return a mime-multipart representation of:\n - callgrind profiling statistics (cachegrind.out.pprofile)\n - any SQL query issued via ZM... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asMIMEString API.
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 asMIMEString API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return a mime-multipart representation of:
- callgrind profiling statistics (cachegrind.out.pprofile)
- any SQL query issued via ZMySQLDA (query_*.sql)
- any persistent object load via ZODB.Connection (ZODB_setstate.txt)
- any path argument given to unrestrictedTraverse
(unrest... | "Return a mime-multipart representation of:\n - callgrind profiling statistics (cachegrind.out.pprofile)\n - any SQL query issued via ZMySQLDA (query_*.sql)\n - any persistent object load via ZODB.Connection (ZODB_setstate.txt)\n - any path argument given to unrestrictedTraverse\n (... | 32 | false | vpelletier/pprofile | asMIMEString | 33,673 | |
LDU_FT/robertpeteuil/aws-shortcuts/cmd_startstop | LDU_FT | [
"<BEGIN>\n## `init`",
"Initialize DEBUG and DEBUGALL.",
" Allows other modules to set DEBUG and DEBUGALL, so their\n call to dprint or dprintx generate output.",
" Args:\n deb1 (bool): value of DEBUG to set\n deb2 (bool): optional - value of DEBUGALL to set,\n defaul... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_startstop API.
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 cmd_startstop API.
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... | Start or Stop the specified instance.
Finds instances that match args and instance-state expected by the
command. Then, the target instance is determined, the action is
performed on the instance, and the eturn information is displayed.
Args:
options (object): contains args and data from parse... | "Start or Stop the specified instance.\n\n Finds instances that match args and instance-state expected by the\n command. Then, the target instance is determined, the action is\n performed on the instance, and the eturn information is displayed.\n\n Args:\n options (object): contains args and data fr... | 76 | false | robertpeteuil/aws-shortcuts | cmd_startstop | 33,674 | |
LDU_FT/thomasw/djproxy/from_request | LDU_FT | [
"<BEGIN>\n## `generate_proxy`",
"Generate a ProxyClass based view that uses the passed base_url.\n<END>",
"<BEGIN>\n## `generate_routes`",
"Generate a list of urls that map to generated proxy views.",
" generate_routes({\n 'test_proxy': {\n 'base_url': 'https://google.com/',\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Generate a HeaderDict based on django request object meta data. | "Generate a HeaderDict based on django request object meta data." | 26 | false | thomasw/djproxy | from_request | 33,675 | |
LDU_FT/limix/limix-core/Kgrad_param_num | LDU_FT | [
"<BEGIN>\n## `addFixedEffect`",
"set sample and trait designs\n F: NxK sample design\n A: LxP sample design\n REML: REML for this term?\n index: index of which fixed effect to replace. If None, just append.\n<END>",
"<BEGIN>\n## `removeFixedEffect`",
"set sample and tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Kgrad_param_num API.
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 Kgrad_param_num API.
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... | check discrepancies between numerical and analytical gradients | "check discrepancies between numerical and analytical gradients" | 61 | false | limix/limix-core | Kgrad_param_num | 33,676 | |
LDU_FT/lokhman/pydbal/insert | LDU_FT | [
"<BEGIN>\n## `locked`",
"Context generator for `with` statement, yields thread-safe connection.",
" :return: thread-safe connection\n :rtype: pydbal.connection.Connection\n<END>",
"<BEGIN>\n## `query`",
"Executes an SQL SELECT query and returns rows generator.",
" :param sql: query to... | 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 ... | Inserts a table row with specified data.
:param table: the expression of the table to insert data into, quoted or unquoted
:param values: a dictionary containing column-value pairs
:return: last inserted ID | "Inserts a table row with specified data.\n\n :param table: the expression of the table to insert data into, quoted or unquoted\n :param values: a dictionary containing column-value pairs\n :return: last inserted ID" | 84 | false | lokhman/pydbal | insert | 33,677 | |
LDU_FT/Genida/archan/inflate_plugin_dict | LDU_FT | [
"<BEGIN>\n## `validate_rows_length`",
"Validate that all rows have the same length.\n<END>",
"<BEGIN>\n## `validate_square`",
"Validate that the matrix has equal number of rows and columns.\n<END>",
"<BEGIN>\n## `validate_categories_equal_entities`",
"Validate that the matrix has equal number of entities ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inflate_plugin_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inflate_plugin_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.
T... | Inflate a list of strings/dictionaries to a list of plugin instances.
Args:
plugin_dict (dict): a dict of dict.
inflate_plugin (method): the method to inflate the plugin.
Returns:
list: a plugin instances list. | "Inflate a list of strings/dictionaries to a list of plugin instances.\n\n Args:\n plugin_dict (dict): a dict of dict.\n inflate_plugin (method): the method to inflate the plugin.\n\n Returns:\n list: a plugin instances list." | 127 | false | Genida/archan | inflate_plugin_dict | 33,678 | |
LDU_FT/jupyterhub/chartpress/build_image | LDU_FT | [
"<BEGIN>\n## `git_remote`",
"Return the URL for remote git repository.",
" Depending on the system setup it returns ssh or https remote.\n<END>",
"<BEGIN>\n## `render_build_args`",
"Get docker build args dict, rendering any templated args.",
" Args:\n options (dict):\n The dictionary for a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_image API.
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... | Build an image
Args:
image_path (str): the path to the image directory
image_name (str): image 'name:tag' to build
build_args (dict, optional): dict of docker build arguments
dockerfile_path (str, optional):
path to dockerfile relative to image_path
if not `image_path/Dockerfile`. | "Build an image\n\n Args:\n image_path (str): the path to the image directory\n image_name (str): image 'name:tag' to build\n build_args (dict, optional): dict of docker build arguments\n dockerfile_path (str, optional):\n path to dockerfile relative to image_path\n if not `image_path/Docke... | 31 | false | jupyterhub/chartpress | build_image | 33,679 | |
LDU_FT/open-homeautomation/pknx/parse_group_address | LDU_FT | [
"<BEGIN>\n## `ip_to_array`",
"Convert a string representing an IPv4 address to 4 bytes.\n<END>",
"<BEGIN>\n## `int_to_array`",
"Convert an length byte integer to an array of bytes.\n<END>",
"<BEGIN>\n## `parse_group_address`",
"Parse KNX group addresses and return the address as an integer.",
" This ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_group_address 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 parse_group_address 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... | Parse KNX group addresses and return the address as an integer.
This allows to convert x/x/x and x/x address syntax to a numeric
KNX group address | "Parse KNX group addresses and return the address as an integer.\n\n This allows to convert x/x/x and x/x address syntax to a numeric\n KNX group address" | 80 | false | open-homeautomation/pknx | parse_group_address | 33,680 | |
LDU_FT/475Cumulus/TBone/as_view | LDU_FT | [
"<BEGIN>\n## `request_args`",
"Returns the arguments passed with the request in a dictionary.\n Returns both URL resolved arguments and query string arguments.\n<END>",
"<BEGIN>\n## `connect`",
"Connects a signal to a receiver function",
" :param receiver:\n The callback function wh... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_view API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_view API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Used for hooking up the endpoints. Returns a wrapper function that creates
a new instance of the resource class and calls the correct view method for it. | "Used for hooking up the endpoints. Returns a wrapper function that creates\n a new instance of the resource class and calls the correct view method for it." | 100 | false | 475Cumulus/TBone | as_view | 33,681 | |
LDU_FT/HDI-Project/RDT/run_airbnb_demo | LDU_FT | [
"<BEGIN>\n## `check_data_type`",
"Check the type of the transformer and column match.",
" Args:\n column_metadata(dict): Metadata of the column.",
" Raises a ValueError if the types don't match\n<END>",
"<BEGIN>\n## `fit`",
"Prepare the transformer to convert data.",
" Ar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_airbnb_demo API.
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 run_airbnb_demo API.
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... | HyperTransfomer will transform back and forth data airbnb data. | "HyperTransfomer will transform back and forth data airbnb data." | 154 | false | HDI-Project/RDT | run_airbnb_demo | 33,682 | |
LDU_FT/quantopian/trading_calendars/days_at_time | LDU_FT | [
"<BEGIN>\n## `days_at_time`",
"Create an index of days at time ``t``, interpreted in timezone ``tz``.",
" The returned index is localized to UTC.",
" Parameters\n ----------\n days : DatetimeIndex\n An index of dates (represented as midnight).\n t : datetime.time\n The time to app... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the days_at_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the days_at_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Create an index of days at time ``t``, interpreted in timezone ``tz``.
The returned index is localized to UTC.
Parameters
----------
days : DatetimeIndex
An index of dates (represented as midnight).
t : datetime.time
The time to apply as an offset to each day in ``days``.
tz : ... | "Create an index of days at time ``t``, interpreted in timezone ``tz``.\n\n The returned index is localized to UTC.\n\n Parameters\n ----------\n days : DatetimeIndex\n An index of dates (represented as midnight).\n t : datetime.time\n The time to apply as an offset to each day in ``days``.... | 150 | false | quantopian/trading_calendars | days_at_time | 33,683 | |
LDU_FT/adrn/schwimmbad/get_git_devstr | LDU_FT | [
"<BEGIN>\n## `choose_pool`",
"Choose between the different pools given options from, e.g., argparse.",
" Parameters\n ----------\n mpi : bool, optional\n Use the MPI processing pool, :class:`~schwimmbad.mpi.MPIPool`. By\n default, ``False``, will use the :class:`~schwimmbad.serial.SerialP... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_git_devstr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_git_devstr API.
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... | Determines the number of revisions in this repository.
Parameters
----------
sha : bool
If True, the full SHA1 hash will be returned. Otherwise, the total
count of commits in the repository will be used as a "revision
number".
show_warning : bool
If True, issue a warnin... | "Determines the number of revisions in this repository.\n\n Parameters\n ----------\n sha : bool\n If True, the full SHA1 hash will be returned. Otherwise, the total\n count of commits in the repository will be used as a \"revision\n number\".\n\n show_warning : bool\n If True, i... | 27 | false | adrn/schwimmbad | get_git_devstr | 33,684 | |
LDU_FT/irgangla/icalevents/normalize | LDU_FT | [
"<BEGIN>\n## `events`",
"Get all events form the given iCal URL occurring in the given time range.",
" :param url: iCal URL\n :param file: iCal file path\n :param string_content: iCal content as string\n :param start: start date (see dateutils.date)\n :param end: end date (see dateutils.date)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Convert date or datetime to datetime with timezone.
:param dt: date to normalize
:param tz: the normalized date's timezone
:return: date as datetime with timezone | "Convert date or datetime to datetime with timezone.\n\n :param dt: date to normalize\n :param tz: the normalized date's timezone\n :return: date as datetime with timezone" | 39 | false | irgangla/icalevents | normalize | 33,685 | |
LDU_FT/darkfeline/animanager/number | LDU_FT | [
"<BEGIN>\n## `_clean_fields`",
"Clean lookup fields and check for errors.\n<END>",
"<BEGIN>\n## `select`",
"Perform an arbitrary SQL SELECT WHERE on the anime table.",
" By nature of \"arbitrary query\", this is vulnerable to injection, use only\n trusted values for `where_query`.",
" This will \... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the number API.
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 number API.
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 ... | Episode number.
Unique for an anime and episode type, but not unique across episode
types for the same anime. | "Episode number.\n\n Unique for an anime and episode type, but not unique across episode\n types for the same anime." | 69 | false | darkfeline/animanager | number | 33,686 | |
LDU_FT/collectiveacuity/labPack/describe_ip | LDU_FT | [
"<BEGIN>\n## `_delete`",
"a helper method for non-blocking deletion of files\r",
" :param _file_path: string with path to file to remove \r\n :param _method_title: string with name of method calling _delete\r\n :param _record_key: string with name of record key to delete\r\n :return:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_ip API.
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 describe_ip API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | a method to get the details associated with an ip address | "a method to get the details associated with an ip address" | 886 | false | collectiveacuity/labPack | describe_ip | 33,687 | |
LDU_FT/dahlia/sqlalchemy-imageattach/_images_failed | LDU_FT | [
"<BEGIN>\n## `readlines`",
"Reads until EOF using :meth:`readline()`.",
" :param sizehint: if it's present, instead of reading up to EOF,\n whole lines totalling approximately ``sizehint``\n bytes (or more to accommodate a final whole line)\n :type s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _images_failed API.
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 _images_failed API.
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... | Deletes the files of :attr:`_stored_images` back and clears
the :attr:`_stored_images` and :attr:`_deleted_images` set
when the ongoing transaction has done rollback. | "Deletes the files of :attr:`_stored_images` back and clears\n the :attr:`_stored_images` and :attr:`_deleted_images` set\n when the ongoing transaction has done rollback." | 145 | false | dahlia/sqlalchemy-imageattach | _images_failed | 33,688 | |
LDU_FT/wdm0006/sklearn-extensions/fit | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit the model",
" Parameters\n ----------\n X : array-like of shape = [n_samples, n_features]\n The training input samples.",
" y : array-like, shape = [n_samples]\n The target values",
" Returns\n -------\n self : ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Fit the model using X, y as training data.
Parameters
----------
X : {array-like, sparse matrix} of shape [n_samples, n_features]
Training vectors, where n_samples is the number of samples
and n_features is the number of features.
y : array-like of shape [n_samp... | "Fit the model using X, y as training data.\n\n Parameters\n ----------\n X : {array-like, sparse matrix} of shape [n_samples, n_features]\n Training vectors, where n_samples is the number of samples\n and n_features is the number of features.\n\n y : array-like of shap... | 60 | false | wdm0006/sklearn-extensions | fit | 33,689 | |
LDU_FT/python-visualization/branca/write_png | LDU_FT | [
"<BEGIN>\n## `legend_scaler`",
"Downsamples the number of legend values so that there isn't a collision\n of text on the legend colorbar (within reason). The colorbar seems to\n support ~10 entries as a maximum.\n<END>",
"<BEGIN>\n## `linear_gradient`",
"Given a list of hexcode values, will return a lis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_png API.
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 write_png API.
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... | Transform an array of data into a PNG string.
This can be written to disk using binary I/O, or encoded using base64
for an inline PNG like this:
>>> png_str = write_png(array)
>>> 'data:image/png;base64,'+png_str.encode('base64')
Inspired from
http://stackoverflow.com/questions/902761/saving-a... | "Transform an array of data into a PNG string.\n This can be written to disk using binary I/O, or encoded using base64\n for an inline PNG like this:\n\n >>> png_str = write_png(array)\n >>> 'data:image/png;base64,'+png_str.encode('base64')\n\n Inspired from\n http://stackoverflow.com/questions/902761... | 73 | false | python-visualization/branca | write_png | 33,690 | |
LDU_FT/xapple/fasta/sql | LDU_FT | [
"<BEGIN>\n## `parse_primers`",
"This functions starts with self because it's \n meant as an extension to the FASTA class.\n<END>",
"<BEGIN>\n## `guess_phred_format`",
"Guess the PHRED score format. The gold standard is the first one, aka\n the one called \"Sanger\". Sanger encoding is exactly equiva... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sql API.
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 sql API.
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... | If you access this attribute, we will build an SQLite database
out of the FASTA file and you will be able access everything in an
indexed fashion, and use the blaze library via sql.frame | "If you access this attribute, we will build an SQLite database\n out of the FASTA file and you will be able access everything in an\n indexed fashion, and use the blaze library via sql.frame" | 48 | false | xapple/fasta | sql | 33,691 | |
LDU_FT/pgxcentre/geneparse/index_impute2 | LDU_FT | [
"<BEGIN>\n## `get_variant_genotypes`",
"Get the genotypes from a well formed variant instance.",
" Args:\n marker (Variant): A Variant instance.",
" Returns:\n A list of Genotypes instance containing a pointer to the variant as\n well as a vector of encoded genot... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_impute2 API.
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 index_impute2 API.
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... | Indexes an IMPUTE2 file.
Args:
fn (str): The name of the IMPUTE2 file. | "Indexes an IMPUTE2 file.\n\n Args:\n fn (str): The name of the IMPUTE2 file." | 120 | false | pgxcentre/geneparse | index_impute2 | 33,692 | |
LDU_FT/thespacedoctor/fundamentals/_insert_single_batch_into_database | LDU_FT | [
"<BEGIN>\n## `main`",
"The main function used when ``yaml_to_database.py`` when installed as a cl tool\n<END>",
"<BEGIN>\n## `ingest`",
"*ingest the contents of the directory of yaml files into a database*",
" **Return:**\n - None",
" **Usage:**",
" To import an entir... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _insert_single_batch_into_database API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _insert_single_batch_into_database API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | *summary of function*
**Key Arguments:**
- ``batchIndex`` -- the index of the batch to insert
- ``dbConn`` -- mysql database connection
- ``log`` -- logger
**Return:**
- None
**Usage:**
.. todo::
add usage info
create a sublime snippet for ... | "*summary of function*\n\n **Key Arguments:**\n - ``batchIndex`` -- the index of the batch to insert\n - ``dbConn`` -- mysql database connection\n - ``log`` -- logger\n\n **Return:**\n - None\n\n **Usage:**\n .. todo::\n\n add usage info\n create a subli... | 306 | false | thespacedoctor/fundamentals | _insert_single_batch_into_database | 33,693 | |
LDU_FT/wtsi-hgi/python-baton-wrapper/_baton_json_to_irods_entities | LDU_FT | [
"<BEGIN>\n## `validate_baton_binaries_location`",
"Validates that the given directory contains the baton binaries required to use the runner.\n :param baton_binaries_directory: the directory to check\n :return: exception that describes the issue else `None` if no issues\n<END>",
"<BEGIN>\n## `_rai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _baton_json_to_irods_entities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _baton_json_to_irods_entities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Converts the baton representation of multiple iRODS entities to a list of `EntityType` models.
:param entities_as_baton_json: the baton serialization representation of the entities
:return: the equivalent models | "Converts the baton representation of multiple iRODS entities to a list of `EntityType` models.\n :param entities_as_baton_json: the baton serialization representation of the entities\n :return: the equivalent models" | 71 | false | wtsi-hgi/python-baton-wrapper | _baton_json_to_irods_entities | 33,694 | |
LDU_FT/ofek/bit/currency_to_satoshi | LDU_FT | [
"<BEGIN>\n## `currency_to_satoshi`",
"Converts a given amount of currency to the equivalent number of\n satoshi. The amount can be either an int, float, or string as long as\n it is a valid input to :py:class:`decimal.Decimal`.",
" :param amount: The quantity of currency.\n :param currency: One of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the currency_to_satoshi 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 currency_to_satoshi 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... | Converts a given amount of currency to the equivalent number of
satoshi. The amount can be either an int, float, or string as long as
it is a valid input to :py:class:`decimal.Decimal`.
:param amount: The quantity of currency.
:param currency: One of the :ref:`supported currencies`.
:type currency:... | "Converts a given amount of currency to the equivalent number of\n satoshi. The amount can be either an int, float, or string as long as\n it is a valid input to :py:class:`decimal.Decimal`.\n\n :param amount: The quantity of currency.\n :param currency: One of the :ref:`supported currencies`.\n :type cu... | 71 | false | ofek/bit | currency_to_satoshi | 33,695 | |
LDU_FT/delph-in/pydelphin/new | LDU_FT | [
"<BEGIN>\n## `compile`",
"Use ACE to compile a grammar.",
" Args:\n cfg_path (str): the path to the ACE config file\n out_path (str): the path where the compiled grammar will be\n written\n executable (str, optional): the path to the ACE binary; if\n `None`, the `ac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new API.
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 new API.
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... | Create a new variable for the given *sort*. | "Create a new variable for the given *sort*." | 662 | false | delph-in/pydelphin | new | 33,696 | |
LDU_FT/Cognexa/cxflow/evaluate | LDU_FT | [
"<BEGIN>\n## `_write_header`",
"Write CSV header row with column names.",
" Column names are inferred from the ``epoch_data`` and ``self.variables`` (if specified).\n Variables and streams expected later on are stored in ``self._variables`` and ``self._streams`` respectively.",
" :param e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluate API.
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 evaluate API.
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... | Evaluate the given model on the specified data stream.
Configuration is updated by the respective predict.stream_name section, in particular:
- hooks section is entirely replaced
- model and dataset sections are updated
:param model_path: path to the model to be evaluated
:param stream_nam... | "Evaluate the given model on the specified data stream.\n\n Configuration is updated by the respective predict.stream_name section, in particular:\n - hooks section is entirely replaced\n - model and dataset sections are updated\n\n :param model_path: path to the model to be evaluated\n :param st... | 325 | false | Cognexa/cxflow | evaluate | 33,697 | |
LDU_FT/255BITS/hyperchamber/configs | LDU_FT | [
"<BEGIN>\n## `conv_cond_concat`",
"Concatenate conditioning vector on feature map axis.\n<END>",
"<BEGIN>\n## `avg_grads`",
"Calculate the average gradient for each shared variable across all towers.",
" Note that this function provides a synchronization point across all towers.",
" Args:\n tower_gra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configs API.
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 configs API.
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... | Generate max configs, each one a dictionary. e.g. [{'x': 1}]
Will also add a config UUID, useful for tracking configs.
You can turn this off by passing create_uuid=False. | "Generate max configs, each one a dictionary. e.g. [{'x': 1}] \n\n Will also add a config UUID, useful for tracking configs. \n You can turn this off by passing create_uuid=False." | 61 | false | 255BITS/hyperchamber | configs | 33,698 | |
LDU_FT/scot-dev/scot/_get_msge_with_gradient_func | LDU_FT | [
"<BEGIN>\n## `ignore_patterns`",
"Function that can be used as copytree() ignore parameter.",
" Patterns is a sequence of glob-style patterns\n that are used to exclude files\n<END>",
"<BEGIN>\n## `copytree`",
"Recursively copy a directory tree using copy2().",
" The destination directory must no... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_msge_with_gradient_func 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 _get_msge_with_gradient_func API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Select which function to use for MSGE calculation (over- or
underdetermined). | "Select which function to use for MSGE calculation (over- or\n underdetermined)." | 381 | false | scot-dev/scot | _get_msge_with_gradient_func | 33,699 | |
LDU_FT/maljovec/topopy/aggregate_duplicates | LDU_FT | [
"<BEGIN>\n## `build`",
"Assigns data to this object and builds the Morse-Smale\n Complex\n @ In, X, an m-by-n array of values specifying m\n n-dimensional samples\n @ In, Y, a m vector of values specifying the output\n responses corresponding to the m samples... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aggregate_duplicates 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 aggregate_duplicates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | A function that will attempt to collapse duplicates in
domain space, X, by aggregating values over the range space,
Y.
@ In, X, an m-by-n array of values specifying m
n-dimensional samples
@ In, Y, a m vector of values specifying the output
respons... | "A function that will attempt to collapse duplicates in\n domain space, X, by aggregating values over the range space,\n Y.\n @ In, X, an m-by-n array of values specifying m\n n-dimensional samples\n @ In, Y, a m vector of values specifying the output\n ... | 57 | false | maljovec/topopy | aggregate_duplicates | 33,700 | |
LDU_FT/boris-savic/python-mbills/capture_sale | LDU_FT | [
"<BEGIN>\n## `get_password`",
"Calculate the password as per the API specification.\n :param username: \n :param request_url:\n :return: password (string)\n<END>",
"<BEGIN>\n## `verify_signature`",
"Verify the server response signature. ",
" :param signature: \n :param non... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the capture_sale API.
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 capture_sale API.
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... | Capture existing preauth.
:param transaction_id:
:param capture_amount:
:param message:
:return: status code | "Capture existing preauth.\n\n :param transaction_id:\n :param capture_amount:\n :param message:\n :return: status code" | 18 | false | boris-savic/python-mbills | capture_sale | 33,701 | |
LDU_FT/wearpants/instrument/first | LDU_FT | [
"<BEGIN>\n## `_make_decorator`",
"morass of closures for making decorators/descriptors\n<END>",
"<BEGIN>\n## `all`",
"Measure total time and item count for consuming an iterable",
" :arg iterable: any iterable\n :arg function metric: f(name, count, total_time)\n :arg str name: name for the metric\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the first API.
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 first API.
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... | Measure time elapsed to produce first item of an iterable
:arg iterable: any iterable
:arg function metric: f(name, 1, time)
:arg str name: name for the metric | "Measure time elapsed to produce first item of an iterable\n\n :arg iterable: any iterable\n :arg function metric: f(name, 1, time)\n :arg str name: name for the metric" | 53 | false | wearpants/instrument | first | 33,702 | |
LDU_FT/KenjiTakahashi/td/get | LDU_FT | [
"<BEGIN>\n## `save`",
"@decorator: Saves data after executing :func:.",
" Also performs modifications set as permanent options.\n<END>",
"<BEGIN>\n## `add`",
"Adds new item to the model.",
" Name argument may contain (ref:) syntax, which will be\n stripped down as needed.",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Gets data values for specified :index:.
:index: Index for which to get data.
:returns: A list in form
[parent, name, priority, comment, done, children]. | "Gets data values for specified :index:.\n\n :index: Index for which to get data.\n :returns: A list in form\n [parent, name, priority, comment, done, children]." | 82 | false | KenjiTakahashi/td | get | 33,703 | |
LDU_FT/Roastero/freshroastsr700/_start_connect | LDU_FT | [
"<BEGIN>\n## `fan_speed`",
"Verifies the value is between 1 and 9 inclusively.\n<END>",
"<BEGIN>\n## `heat_setting`",
"Verifies that the heat setting is between 0 and 3.\n<END>",
"<BEGIN>\n## `heater_level`",
"Verifies that the heater_level is between 0 and heater_segments.\n Can only be called ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start_connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start_connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Starts the connection process, as called (internally)
from the user context, either from auto_connect() or connect().
Never call this from the _comm() process context. | "Starts the connection process, as called (internally)\n from the user context, either from auto_connect() or connect().\n Never call this from the _comm() process context." | 61 | false | Roastero/freshroastsr700 | _start_connect | 33,704 | |
LDU_FT/chemlab/chemlab/gamm_inc | LDU_FT | [
"<BEGIN>\n## `molecular_orbital`",
"Return a molecular orbital given the nuclei coordinates, as well as\n molecular orbital coefficients and basis set specification as given by the cclib library.",
" The molecular orbital is represented as a function that takes x, y, z coordinates (in a vectorized f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gamm_inc API.
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 gamm_inc API.
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... | Incomple gamma function \gamma; computed from NumRec routine gammp.
>>> np.isclose(gamm_inc(0.5,1),1.49365)
True
>>> np.isclose(gamm_inc(1.5,2),0.6545103)
True
>>> np.isclose(gamm_inc(2.5,1e-12),0)
True | "Incomple gamma function \\gamma; computed from NumRec routine gammp.\n >>> np.isclose(gamm_inc(0.5,1),1.49365)\n True\n >>> np.isclose(gamm_inc(1.5,2),0.6545103)\n True\n >>> np.isclose(gamm_inc(2.5,1e-12),0)\n True" | 665 | false | chemlab/chemlab | gamm_inc | 33,705 | |
LDU_FT/aalireza/SimpleAudioIndexer/set_username_ibm | LDU_FT | [
"<BEGIN>\n## `set_username_ibm`",
"Parameters\n ----------\n username_ibm : str",
" Raises\n ------\n Exception\n If mode is not `ibm`\n<END>",
"<BEGIN>\n## `set_password_ibm`",
"Parameters\n ----------\n password_ibm : str",
" Raises\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_username_ibm API.
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 set_username_ibm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Parameters
----------
username_ibm : str
Raises
------
Exception
If mode is not `ibm` | "Parameters\n ----------\n username_ibm : str\n\n Raises\n ------\n Exception\n If mode is not `ibm`" | 159 | false | aalireza/SimpleAudioIndexer | set_username_ibm | 33,706 | |
LDU_FT/mishan/twemredis-py/mset | LDU_FT | [
"<BEGIN>\n## `_init_redis_shards`",
"init_redis_shards is used internally to connect to the Redis sentinels\n and populate self.shards with the redis.StrictRedis instances. This\n is a convenient method to override / stub out in unit tests.\n<END>",
"<BEGIN>\n## `get_shard_names`",
"get_shard_na... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mset API.
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 mset API.
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... | mset wrapper that batches keys per shard and execute as few
msets as necessary to set the keys in all the shards involved.
This method should be invoked on a TwemRedis instance as if it
were being invoked directly on a StrictRedis instance. | "mset wrapper that batches keys per shard and execute as few\n msets as necessary to set the keys in all the shards involved.\n\n This method should be invoked on a TwemRedis instance as if it\n were being invoked directly on a StrictRedis instance." | 48 | false | mishan/twemredis-py | mset | 33,707 | |
LDU_FT/nedbat/django_coverage_plugin/read_template_source | LDU_FT | [
"<BEGIN>\n## `check_debug`",
"Check that Django's template debugging is enabled.",
" Django's built-in \"template debugging\" records information the plugin needs\n to do its work. Check that the setting is correct, and raise an exception\n if it is not.",
" Returns True if the debug check was pe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_template_source API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_template_source API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Read the source of a Django template, returning the Unicode text. | "Read the source of a Django template, returning the Unicode text." | 15 | false | nedbat/django_coverage_plugin | read_template_source | 33,708 | |
LDU_FT/openstack/pyghmi/get_channel_access | LDU_FT | [
"<BEGIN>\n## `get_bootdev`",
"Get current boot device override information.",
" :raises: PyghmiException on error\n :returns: dict\n<END>",
"<BEGIN>\n## `set_bootdev`",
"Set boot device to use on next reboot",
" :param bootdev:\n *network -- Request network boot... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_channel_access API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_channel_access API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get channel access
:param channel: number [1:7]
:param read_mode:
non_volatile = get non-volatile Channel Access
volatile = get present volatile (active) setting of Channel Access
:return: A Python dict with the following keys/values:
{
- alerting:
... | "Get channel access\n\n :param channel: number [1:7]\n :param read_mode:\n non_volatile = get non-volatile Channel Access\n volatile = get present volatile (active) setting of Channel Access\n\n :return: A Python dict with the following keys/values:\n {\n - a... | 273 | false | openstack/pyghmi | get_channel_access | 33,709 | |
LDU_FT/ratcave/ratcave/from_image | LDU_FT | [
"<BEGIN>\n## `add_child`",
"Adds an object as a child in the scene graph.\n<END>",
"<BEGIN>\n## `add_children`",
"Conveniience function: Adds objects as children in the scene graph.\n<END>",
"<BEGIN>\n## `match_aspect_to_viewport`",
"Updates Camera.aspect to match the viewport's aspect ratio.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Uses Pyglet's image.load function to generate a Texture from an image file. If 'mipmap', then texture will
have mipmap layers calculated. | "Uses Pyglet's image.load function to generate a Texture from an image file. If 'mipmap', then texture will\n have mipmap layers calculated." | 79 | false | ratcave/ratcave | from_image | 33,710 | |
LDU_FT/dgketchum/satellite_image/warp_vrt | LDU_FT | [
"<BEGIN>\n## `_scene_centroid`",
"Compute image center coordinates\n :return: Tuple of image center in lat, lon\n<END>",
"<BEGIN>\n## `earth_sun_d`",
"Earth-sun distance in AU",
" :param dtime time, e.g. datetime.datetime(2007, 5, 1)\n :type datetime object\n :return float(distan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the warp_vrt API.
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 warp_vrt API.
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... | Read in image geometry, resample subsequent images to same grid.
The purpose of this function is to snap many Landsat images to one geometry. Use Landsat578
to download and unzip them, then run them through this to get identical geometries for analysis.
Files
:param use_band_map:
:param delete_extr... | "Read in image geometry, resample subsequent images to same grid.\n\n The purpose of this function is to snap many Landsat images to one geometry. Use Landsat578\n to download and unzip them, then run them through this to get identical geometries for analysis.\n Files\n :param use_band_map:\n :param dele... | 86 | false | dgketchum/satellite_image | warp_vrt | 33,711 | |
LDU_FT/aio-libs/aiohttp/set_cookie | LDU_FT | [
"<BEGIN>\n## `_cleanup_closed`",
"Double confirmation for transport close.\n Some broken ssl servers may leave socket open without proper close.\n<END>",
"<BEGIN>\n## `_available_connections`",
"Return number of available connections taking into account\n the limit, limit_per_host and the connec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cookie API.
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 set_cookie API.
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... | Set or update response cookie.
Sets new cookie or updates existent with new value.
Also updates only those params which are not None. | "Set or update response cookie.\n\n Sets new cookie or updates existent with new value.\n Also updates only those params which are not None." | 233 | false | aio-libs/aiohttp | set_cookie | 33,712 | |
LDU_FT/qubole/qds-sdk-py/start | LDU_FT | [
"<BEGIN>\n## `_parse_list`",
"Parse command line arguments to construct a dictionary of cluster\n parameters that can be used to determine which clusters to list.",
" Args:\n `args`: sequence of arguments",
" Returns:\n Dictionary that can be used to determine which ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Start the cluster with id/label `cluster_id_label`. | "Start the cluster with id/label `cluster_id_label`." | 316 | false | qubole/qds-sdk-py | start | 33,713 | |
LDU_FT/lablup/backend.ai-client-py/create | LDU_FT | [
"<BEGIN>\n## `generate_signature`",
"Generates the API request signature from the given parameters.\n<END>",
"<BEGIN>\n## `list_with_limit`",
"Fetches the list of agents with the given status with limit and offset for\n pagination.",
" :param limit: number of agents to get\n :param offs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
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 create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Creates a new keypair with the given options.
You need an admin privilege for this operation. | "Creates a new keypair with the given options.\n You need an admin privilege for this operation." | 207 | false | lablup/backend.ai-client-py | create | 33,714 | |
LDU_FT/coreGreenberet/homematicip-rest-api/set_intrusion_alert_through_smoke_detectors | LDU_FT | [
"<BEGIN>\n## `from_json`",
"this function will load the functional channel object \r\n from a json object and the given groups \r",
" Args:\r\n js(dict): the json object\r\n groups(Iterable[Group]): the groups for referencing\n<END>",
"<BEGIN>\n## `download_configuration`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_intrusion_alert_through_smoke_detectors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_intrusion_alert_through_smoke_detectors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indi... | activate or deactivate if smoke detectors should "ring" during an alarm
Args:
activate(bool): True will let the smoke detectors "ring" during an alarm | "activate or deactivate if smoke detectors should \"ring\" during an alarm\r\n\r\n Args:\r\n activate(bool): True will let the smoke detectors \"ring\" during an alarm" | 84 | false | coreGreenberet/homematicip-rest-api | set_intrusion_alert_through_smoke_detectors | 33,715 | |
LDU_FT/SFDO-Tooling/CumulusCI/set_pdb_trace | LDU_FT | [
"<BEGIN>\n## `_download_file`",
"Download the bulk API result file for a single batch\n<END>",
"<BEGIN>\n## `_create_job`",
"Initiate a bulk insert and upload batches to run in parallel.\n<END>",
"<BEGIN>\n## `_query_db`",
"Build a query to retrieve data from the local db.",
" Includes columns fr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_pdb_trace API.
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 set_pdb_trace API.
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... | Start the Python debugger when robotframework is running.
This makes sure that pdb can use stdin/stdout even though
robotframework has redirected I/O. | "Start the Python debugger when robotframework is running.\n\n This makes sure that pdb can use stdin/stdout even though\n robotframework has redirected I/O." | 165 | false | SFDO-Tooling/CumulusCI | set_pdb_trace | 33,716 | |
LDU_FT/spacetelescope/synphot_refactor/thermal_source | LDU_FT | [
"<BEGIN>\n## `overlap_status`",
"Check overlap between two arrays.",
" Parameters\n ----------\n a, b : array-like\n Arrays to check. Assumed to be in the same unit.",
" Returns\n -------\n result : {'full', 'partial', 'none'}\n * 'full' - ``a`` is within or same as ``b``\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thermal_source API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thermal_source API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Apply emissivity to an existing beam to produce a thermal
source spectrum (without optical counterpart).
Thermal source spectrum is calculated as follow:
#. Create a blackbody spectrum in PHOTLAM per square arcsec
with `temperature`.
#. Multiply the blackbody wit... | "Apply emissivity to an existing beam to produce a thermal\n source spectrum (without optical counterpart).\n\n Thermal source spectrum is calculated as follow:\n\n #. Create a blackbody spectrum in PHOTLAM per square arcsec\n with `temperature`.\n #. Multiply the black... | 519 | false | spacetelescope/synphot_refactor | thermal_source | 33,717 | |
LDU_FT/Capitains/MyCapytain/export | LDU_FT | [
"<BEGIN>\n## `call`",
"Call an endpoint given the parameters",
" :param parameters: Dictionary of parameters\n :type parameters: dict\n :rtype: text\n<END>",
"<BEGIN>\n## `getValidReff`",
"Retrieve valid urn-references for a text",
" :param urn: URN identifying the text\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export API.
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 export API.
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 ... | Export the collection item in the Mimetype required.
..note:: If current implementation does not have special mimetypes, reuses default_export method
:param output: Mimetype to export to (Uses Mimetypes)
:type output: str
:param exclude: Informations to exclude. Specific to implementat... | "Export the collection item in the Mimetype required.\n\n ..note:: If current implementation does not have special mimetypes, reuses default_export method\n\n :param output: Mimetype to export to (Uses Mimetypes)\n :type output: str\n :param exclude: Informations to exclude. Specific to impl... | 473 | false | Capitains/MyCapytain | export | 33,718 | |
LDU_FT/ThomasChiroux/attowiki/add_file_to_repo | LDU_FT | [
"<BEGIN>\n## `_delta_dir`",
"returns the relative path of the current directory to the git\n repository.\n This path will be added the 'filename' path to find the file.\n It current_dir is the git root, this function returns an empty string.",
" Keyword Arguments:\n <none>",
" Returns:\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_file_to_repo API.
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 add_file_to_repo API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Add a file to the git repo
This method does the same than a ::
$ git add filename
Keyword Arguments:
:filename: (str) -- name of the file to commit
Returns:
<nothing> | "Add a file to the git repo\n\n This method does the same than a ::\n\n $ git add filename\n\n Keyword Arguments:\n :filename: (str) -- name of the file to commit\n\n Returns:\n <nothing>" | 102 | false | ThomasChiroux/attowiki | add_file_to_repo | 33,719 | |
LDU_FT/readbeyond/aeneas/is_adjacent_before | LDU_FT | [
"<BEGIN>\n## `pretty_print`",
"Return a Unicode string pretty print of the log entries.",
" :param bool as_list: if ``True``, return a list of Unicode strings,\n one for each entry, instead of a Unicode string\n :param bool show_datetime: if ``True``, show the date and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_adjacent_before 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 is_adjacent_before 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 ``True`` if this time interval ends
when the given other time interval begins.
:param other: the other interval
:type other: :class:`~aeneas.exacttiming.TimeInterval`
:raises TypeError: if ``other`` is not an instance of ``TimeInterval``
:rtype: bool | "Return ``True`` if this time interval ends\n when the given other time interval begins.\n\n :param other: the other interval\n :type other: :class:`~aeneas.exacttiming.TimeInterval`\n :raises TypeError: if ``other`` is not an instance of ``TimeInterval``\n :rtype: bool" | 1,097 | true | readbeyond/aeneas | is_adjacent_before | 33,720 | |
LDU_FT/chatfirst/chatfirst/bots_delete | LDU_FT | [
"<BEGIN>\n## `bots_list`",
"List all user's bots",
" :rtype: list of Bot\n :return: user's bots\n<END>",
"<BEGIN>\n## `bots_create`",
"Save new bot",
" :param bot: bot object to save\n :type bot: Bot\n<END>",
"<BEGIN>\n## `bots_get`",
"Fetch and fill Bot object",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bots_delete API.
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 bots_delete API.
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... | Delete existing bot
:param bot: bot to delete
:type bot: Bot | "Delete existing bot\n\n :param bot: bot to delete\n :type bot: Bot" | 38 | false | chatfirst/chatfirst | bots_delete | 33,721 | |
LDU_FT/etingof/pysnmp/getCmd | LDU_FT | [
"<BEGIN>\n## `getMibSymbol`",
"Returns MIB variable symbolic identification.",
" Returns\n -------\n str\n MIB module name\n str\n MIB variable symbolic name\n : :py:class:`~pysnmp.proto.rfc1902.ObjectName`\n class instance representing MIB ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCmd API.
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 getCmd API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Performs SNMP GET query.
Based on passed parameters, prepares SNMP GET packet
(:RFC:`1905#section-4.2.1`) and schedules its transmission by
I/O framework at a later point of time.
Parameters
----------
snmpEngine : :py:class:`~pysnmp.hlapi.SnmpEngine`
Class instance representing SNMP e... | "Performs SNMP GET query.\n\n Based on passed parameters, prepares SNMP GET packet\n (:RFC:`1905#section-4.2.1`) and schedules its transmission by\n I/O framework at a later point of time.\n\n Parameters\n ----------\n snmpEngine : :py:class:`~pysnmp.hlapi.SnmpEngine`\n Class instance represent... | 708 | false | etingof/pysnmp | getCmd | 33,722 | |
LDU_FT/ethereum/web3.py/construct_sign_and_send_raw_middleware | LDU_FT | [
"<BEGIN>\n## `solidityKeccak`",
"Executes keccak256 exactly as Solidity does.\n Takes list of abi_types as inputs -- `[uint24, int8[], bool]`\n and list of corresponding values -- `[20, [-1, 5, 0], True]`\n<END>",
"<BEGIN>\n## `gas_price_strategy_middleware`",
"Includes a gas price using the ga... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_sign_and_send_raw_middleware 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 construct_sign_and_send_raw_middleware API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | Capture transactions sign and send as raw transactions
Keyword arguments:
private_key_or_account -- A single private key or a tuple,
list or set of private keys. Keys can be any of the following formats:
- An eth_account.LocalAccount object
- An eth_keys.PrivateKey object
- A raw private... | "Capture transactions sign and send as raw transactions\n\n\n Keyword arguments:\n private_key_or_account -- A single private key or a tuple,\n list or set of private keys. Keys can be any of the following formats:\n - An eth_account.LocalAccount object\n - An eth_keys.PrivateKey object\n - A ra... | 268 | false | ethereum/web3.py | construct_sign_and_send_raw_middleware | 33,723 | |
LDU_FT/bwohlberg/jonga/_clrgen | LDU_FT | [
"<BEGIN>\n## `current_function`",
"Get reference to currently running function from inspect/trace stack frame.",
" Parameters\n ----------\n frame : stack frame\n Stack frame obtained via trace or inspect",
" Returns\n -------\n fnc : function reference\n Currently running function... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clrgen API.
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 _clrgen API.
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... | Default colour generating function
Parameters
----------
n : int
Number of colours to generate
h0 : float
Initial H value in HSV colour specification
hr : float
Size of H value range to use for colour generation
(final H value is h0 + hr)... | "Default colour generating function\n\n Parameters\n ----------\n\n n : int\n Number of colours to generate\n h0 : float\n Initial H value in HSV colour specification\n hr : float\n Size of H value range to use for colour generation\n (final H value... | 20 | false | bwohlberg/jonga | _clrgen | 33,724 | |
LDU_FT/guaix-ucm/numina/periodic_corr1d | LDU_FT | [
"<BEGIN>\n## `combine`",
"Combine HDUList objects using algorithm 'method\n<END>",
"<BEGIN>\n## `logging_from_debugplot`",
"Set debugging level based on debugplot value.",
" Parameters\n ----------\n debugplot : int\n Debugging level for messages and plots. For details see\n '... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the periodic_corr1d API.
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 periodic_corr1d API.
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... | Periodic correlation between two spectra, implemented using FFT.
Parameters
----------
sp_reference : numpy array
Reference spectrum.
sp_offset : numpy array
Spectrum which offset is going to be measured relative to the
reference spectrum.
fminmax : tuple of floats or None
... | "Periodic correlation between two spectra, implemented using FFT.\n\n Parameters\n ----------\n sp_reference : numpy array\n Reference spectrum.\n sp_offset : numpy array\n Spectrum which offset is going to be measured relative to the\n reference spectrum.\n fminmax : tuple of floats... | 605 | false | guaix-ucm/numina | periodic_corr1d | 33,725 | |
LDU_FT/linkedin/pyexchange/resend_invitations | LDU_FT | [
"<BEGIN>\n## `add_attendees`",
"Adds new attendees to the event.",
" *attendees* can be a list of email addresses or :class:`ExchangeEventAttendee` objects.\n<END>",
"<BEGIN>\n## `remove_attendees`",
"Removes attendees from the event.",
" *attendees* can be a list of email addresses or :class:`Excha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resend_invitations 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 resend_invitations 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... | Resends invites for an event. ::
event = service.calendar().get_event(id='KEY HERE')
event.resend_invitations()
Anybody who has not declined this meeting will get a new invite. | "Resends invites for an event. ::\n\n event = service.calendar().get_event(id='KEY HERE')\n event.resend_invitations()\n\n Anybody who has not declined this meeting will get a new invite." | 102 | false | linkedin/pyexchange | resend_invitations | 33,726 | |
LDU_FT/openxc/openxc-python/_response_matches_request | LDU_FT | [
"<BEGIN>\n## `get`",
"Return the latest measurement for the given class or None if nothing\n has been received from the vehicle.\n<END>",
"<BEGIN>\n## `add_source`",
"Add a vehicle data source to the instance.",
" The Vehicle instance will be set as the callback of the source, and the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _response_matches_request 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 _response_matches_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Return true if the response is to a diagnostic request, and the bus,
id, mode match. If the request was successful, the PID echo is also
checked. | "Return true if the response is to a diagnostic request, and the bus,\n id, mode match. If the request was successful, the PID echo is also\n checked." | 94 | false | openxc/openxc-python | _response_matches_request | 33,727 | |
LDU_FT/sholsapp/py509/make_certificate_authority | LDU_FT | [
"<BEGIN>\n## `tree`",
"Print a tree.",
" Sometimes it's useful to print datastructures as a tree. This function prints\n out a pretty tree with root `node`. A tree is represented as a :class:`dict`,\n whose keys are node names and values are :class:`dict` objects for sub-trees\n and :class:`None` for termin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_certificate_authority 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 make_certificate_authority API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Make a certificate authority.
A certificate authority can sign certificates. For clients to be able to
validate certificates signed by your certificate authorithy, they must trust
the certificate returned by this function.
:param name: Key word arguments containing subject name parts: C, ST, L, O,
OU, CN.... | "Make a certificate authority.\n\n A certificate authority can sign certificates. For clients to be able to\n validate certificates signed by your certificate authorithy, they must trust\n the certificate returned by this function.\n\n :param name: Key word arguments containing subject name parts: C, ST, L, O,\n ... | 37 | false | sholsapp/py509 | make_certificate_authority | 33,728 | |
LDU_FT/peeringdb/peeringdb-py/read_config | LDU_FT | [
"<BEGIN>\n## `_config_logs`",
"Set up or change logging configuration.",
" _config_logs() => idempotent setup;\n _config_logs(L) => change log level\n<END>",
"<BEGIN>\n## `_get_name`",
"get display name for a key, or mangle for display\n<END>",
"<BEGIN>\n## `reftag_to_cls`",
"decorator that checks... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Find and read config file for a directory, return None if not found. | "Find and read config file for a directory, return None if not found." | 42 | false | peeringdb/peeringdb-py | read_config | 33,729 | |
LDU_FT/ClericPy/torequests/set_frequency | LDU_FT | [
"<BEGIN>\n## `init_original_response`",
"Get the original response for comparing, confirm ``is_cookie_necessary``\n<END>",
"<BEGIN>\n## `init_original_response`",
"Get the original response for comparing, confirm is_cookie_necessary\n<END>",
"<BEGIN>\n## `sort_url_qsl`",
"Do nothing but sort the params of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_frequency API.
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 set_frequency API.
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... | Set frequency for host with sem and interval. | "Set frequency for host with sem and interval." | 244 | false | ClericPy/torequests | set_frequency | 33,730 | |
LDU_FT/pmelchior/proxmin/nmf | LDU_FT | [
"<BEGIN>\n## `prox_gradf_lim`",
"Forward-backward step: gradient, followed by projection\n<END>",
"<BEGIN>\n## `prox_lim12`",
"if boundary == \"circle\":\n if j == 0:\n xy = np.array([x[0], Xs[1][0]])\n if j == 1:\n xy = np.array([Xs[0][0], x[0]])\n return [prox_circ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nmf API.
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 nmf API.
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... | Non-negative matrix factorization.
This method solves the NMF problem
minimize || Y - AS ||_2^2
under an arbitrary number of constraints on A and/or S.
Args:
Y: target matrix MxN
A: initial amplitude matrix MxK, will be updated
S: initial source matrix KxN, will be updated... | "Non-negative matrix factorization.\n\n This method solves the NMF problem\n minimize || Y - AS ||_2^2\n under an arbitrary number of constraints on A and/or S.\n\n Args:\n Y: target matrix MxN\n A: initial amplitude matrix MxK, will be updated\n S: initial source matrix KxN, will ... | 91 | false | pmelchior/proxmin | nmf | 33,731 | |
LDU_FT/osrg/ryu/bfd_packet | LDU_FT | [
"<BEGIN>\n## `update`",
"Updates global configuration settings with given values.",
" First checks if given configuration values differ from current values.\n If any of the configuration values changed, generates a change event.\n Currently we generate change event for any configuration cha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bfd_packet API.
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 bfd_packet API.
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... | Generate BFD packet with Ethernet/IPv4/UDP encapsulated. | "Generate BFD packet with Ethernet/IPv4/UDP encapsulated." | 1,172 | true | osrg/ryu | bfd_packet | 33,732 | |
LDU_FT/wilfilho/BingTranslator/_set_format_oauth | LDU_FT | [
"<BEGIN>\n## `_get_token`",
"Get token for make request. The The data obtained herein are used \r\n in the variable header.\r",
" Returns:\r\n To perform the request, receive in return a dictionary\r\n with several keys. With this method only return the token\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_format_oauth API.
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 _set_format_oauth API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Format and encode dict for make authentication on microsoft
servers. | "Format and encode dict for make authentication on microsoft \r\n servers." | 25 | false | wilfilho/BingTranslator | _set_format_oauth | 33,733 | |
LDU_FT/MacHu-GWU/pymongo_mate-project/database_to_excel | LDU_FT | [
"<BEGIN>\n## `read_csv_arg_preprocess`",
"Automatically decide if we need to use iterator mode to read a csv file.",
" :param abspath: csv file absolute path.\n :param memory_usage: max memory will be used for pandas.read_csv().\n<END>",
"<BEGIN>\n## `smart_insert`",
"An optimized Insert strategy.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the database_to_excel API.
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 database_to_excel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Export database to excel.
:param engine:
:param excel_file_path: | "Export database to excel.\n\n :param engine: \n :param excel_file_path:" | 188 | false | MacHu-GWU/pymongo_mate-project | database_to_excel | 33,734 | |
LDU_FT/farshidce/touchworks-python/set_patient_medhx_flag | LDU_FT | [
"<BEGIN>\n## `get_token`",
"get the security token by connecting to TouchWorks API\n<END>",
"<BEGIN>\n## `_token_valid`",
"checks if the token cached is valid or has expired by comparing\n the time token was created with current time\n :return: True if token has not expired yet and False is toke... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_patient_medhx_flag 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_patient_medhx_flag API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | invokes TouchWorksMagicConstants.ACTION_GET_ENCOUNTER_LIST_FOR_PATIENT action
:param patient_id
:param medhx_status - Field in EEHR expects U, G, or D. SP defaults to Null and
errors out if included.
U=Unknown
G=Granted
D=Declined
:ret... | "invokes TouchWorksMagicConstants.ACTION_GET_ENCOUNTER_LIST_FOR_PATIENT action\n :param patient_id\n :param medhx_status - \tField in EEHR expects U, G, or D. SP defaults to Null and\n errors out if included.\n U=Unknown\n G=Granted\n D=Declined\n ... | 72 | false | farshidce/touchworks-python | set_patient_medhx_flag | 33,735 | |
LDU_FT/anlutro/russell/generate_posts | LDU_FT | [
"<BEGIN>\n## `from_string`",
"Given a markdown string, create an Entry object.",
"\t\tUsually subclasses will want to customize the parts of the markdown\n\t\twhere you provide values for attributes like public - this can be done\n\t\tby overriding the process_meta method.\n<END>",
"<BEGIN>\n## `process_meta`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_posts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_posts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Generate single-post HTML files out of posts added to the blog. Will not
generate front page, archives or tag files - those have to be generated
separately. | "Generate single-post HTML files out of posts added to the blog. Will not\n\t\tgenerate front page, archives or tag files - those have to be generated\n\t\tseparately." | 48 | false | anlutro/russell | generate_posts | 33,736 | |
LDU_FT/talkincode/txradius/mppe_chap2_gen_keys | LDU_FT | [
"<BEGIN>\n## `CreateReply`",
"Create a new packet as a reply to this one. This method\n makes sure the authenticator and secret are copied over\n to the new instance.\n<END>",
"<BEGIN>\n## `AddAttribute`",
"Add an attribute to the packet.",
" :param key: attribute name or identificati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mppe_chap2_gen_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mppe_chap2_gen_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | 3.3. Generating 128-bit Session Keys
When used in conjunction with MS-CHAP-2 authentication, the initial
MPPE session keys are derived from the peer's Windows NT password.
The first step is to obfuscate the peer's password using
NtPasswordHash() function as described in [8].
NtPasswordHash(Passwor... | "3.3. Generating 128-bit Session Keys\n\n When used in conjunction with MS-CHAP-2 authentication, the initial\n MPPE session keys are derived from the peer's Windows NT password.\n\n The first step is to obfuscate the peer's password using\n NtPasswordHash() function as described in [8].\n\n NtPasswordHas... | 61 | false | talkincode/txradius | mppe_chap2_gen_keys | 33,737 | |
LDU_FT/outini/python-pylls/get | LDU_FT | [
"<BEGIN>\n## `request`",
"Handle requests to API",
" :param str path: API endpoint's path to request\n :param str method: HTTP method to use\n :param dict data: Data to send (optional)\n :return: Parsed json response as :class:`dict`",
" Additional named argument may be pass... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get components
:param component_id: Component ID (optional)
:return: Components data (:class:`Generator`)
Additional named arguments may be passed and are directly transmitted
to API. It is useful to use the API search features.
.. seealso:: https://docs.cachethq.io/reference#... | "Get components\n\n :param component_id: Component ID (optional)\n :return: Components data (:class:`Generator`)\n\n Additional named arguments may be passed and are directly transmitted\n to API. It is useful to use the API search features.\n\n .. seealso:: https://docs.cachethq.io/r... | 71 | false | outini/python-pylls | get | 33,738 | |
LDU_FT/lrq3000/pyFileFixity/find_prime_polynomials | LDU_FT | [
"<BEGIN>\n## `discard`",
"Remove the first occurrence of *val*.",
" If *val* is not a member, does nothing.\n<END>",
"<BEGIN>\n## `remove`",
"Remove first occurrence of *val*.",
" Raises ValueError if *val* is not present.\n<END>",
"<BEGIN>\n## `_delete`",
"Delete the item at the given (... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_prime_polynomials 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 find_prime_polynomials API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Compute the list of prime polynomials for the given generator and galois field characteristic exponent. | "Compute the list of prime polynomials for the given generator and galois field characteristic exponent." | 1,045 | true | lrq3000/pyFileFixity | find_prime_polynomials | 33,739 | |
LDU_FT/Genida/archan/transitive_closure | LDU_FT | [
"<BEGIN>\n## `validate_rows_length`",
"Validate that all rows have the same length.\n<END>",
"<BEGIN>\n## `validate_square`",
"Validate that the matrix has equal number of rows and columns.\n<END>",
"<BEGIN>\n## `validate_categories_equal_entities`",
"Validate that the matrix has equal number of entities ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transitive_closure 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 transitive_closure 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... | Compute the transitive closure of the matrix. | "Compute the transitive closure of the matrix." | 127 | false | Genida/archan | transitive_closure | 33,740 | |
LDU_FT/anteater/anteater/scan_patch | LDU_FT | [
"<BEGIN>\n## `scan_file`",
"Sends a file to virus total for assessment\n<END>",
"<BEGIN>\n## `send_ip`",
"Send IP address for list of past malicous domain associations\n<END>",
"<BEGIN>\n## `url_report`",
"Send URLS for list of past malicous associations\n<END>",
"<BEGIN>\n## `prepare_patchset`",
"Cre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_patch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_patch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Scan actions for each commited file in patch set | "Scan actions for each commited file in patch set" | 16 | false | anteater/anteater | scan_patch | 33,741 | |
LDU_FT/ResilienceTesting/gremlinsdk-python/check_at_most_requests | LDU_FT | [
"<BEGIN>\n## `add_rule`",
"@param args keyword argument list, consisting of:",
" source: <source service name>,\n dest: <destination service name>,\n messagetype: <request|response|publish|subscribe|stream>",
" headerpattern: <regex to match against the value of the X-Gremlin-ID tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_at_most_requests API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_at_most_requests API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Check that source service sent at most num_request to the dest service
:param source the source service name
:param dest the destination service name
:param num_requests the maximum number of requests that we expect
:return: | "Check that source service sent at most num_request to the dest service\n :param source the source service name\n :param dest the destination service name\n :param num_requests the maximum number of requests that we expect\n :return:" | 31 | false | ResilienceTesting/gremlinsdk-python | check_at_most_requests | 33,742 | |
LDU_FT/costastf/toonlib/gas | LDU_FT | [
"<BEGIN>\n## `get_arguments`",
"This get us the cli arguments.",
" Returns the args as parsed from the argsparser.\n<END>",
"<BEGIN>\n## `setup_logging`",
"This sets up the logging.",
" Needs the args to get the log level supplied\n :param args: The command line arguments\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gas API.
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 gas API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | :return: A gas object modeled as a named tuple | ":return: A gas object modeled as a named tuple" | 46 | false | costastf/toonlib | gas | 33,743 | |
LDU_FT/QualiSystems/cloudshell-networking-devices/apply_connectivity_changes | LDU_FT | [
"<BEGIN>\n## `create_networking_resource_from_context`",
"Creates an instance of Networking Resource by given context\n :param shell_name: Shell Name\n :type shell_name: str\n :param supported_os: list of supported OS\n :type supported_os: list\n :param context: cloudshell.shell.core.driver_context... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_connectivity_changes 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 apply_connectivity_changes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Handle apply connectivity changes request json, trigger add or remove vlan methods,
get responce from them and create json response
:param request: json with all required action to configure or remove vlans from certain port
:return Serialized DriverResponseRoot to json
:rtype json | "Handle apply connectivity changes request json, trigger add or remove vlan methods,\n get responce from them and create json response\n\n :param request: json with all required action to configure or remove vlans from certain port\n :return Serialized DriverResponseRoot to json\n :rtype jso... | 87 | false | QualiSystems/cloudshell-networking-devices | apply_connectivity_changes | 33,744 | |
LDU_FT/SetBased/py-stratum/__remove_leading_empty_lines | LDU_FT | [
"<BEGIN>\n## `log_verbose`",
"Logs a message only when logging level is verbose.",
" :param str|list[str] message: The message.\n<END>",
"<BEGIN>\n## `log_very_verbose`",
"Logs a message only when logging level is very verbose.",
" :param str|list[str] message: The message.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __remove_leading_empty_lines 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 __remove_leading_empty_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Removes leading empty lines from a list of lines.
:param list[str] lines: The lines. | "Removes leading empty lines from a list of lines.\n\n :param list[str] lines: The lines." | 189 | false | SetBased/py-stratum | __remove_leading_empty_lines | 33,745 | |
LDU_FT/Qiskit/qiskit-api-py/available_backends | LDU_FT | [
"<BEGIN>\n## `handle_407`",
"Takes the given response and tries digest-auth, if needed.\n<END>",
"<BEGIN>\n## `obtain_token`",
"Obtain the token to access to QX Platform.",
" Raises:\n CredentialsError: when token is invalid or the user has not\n accepted the license.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available_backends 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 available_backends API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get the backends available to use in the QX Platform | "Get the backends available to use in the QX Platform" | 30 | false | Qiskit/qiskit-api-py | available_backends | 33,746 | |
LDU_FT/DeepHorizons/iarm/STR | LDU_FT | [
"<BEGIN>\n## `ADR`",
"ADR Ra, [PC, #imm10_4]\n ADR Ra, label",
" Load the address of label or the PC offset into Ra\n Ra must be a low register\n<END>",
"<BEGIN>\n## `LDR`",
"LDR Ra, [PC, #imm10_4]\n LDR Ra, label\n LDR Ra, =equate\n LDR Ra, [Rb, Rc]\n LDR Ra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the STR API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the STR API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | STR Ra, [Rb, Rc]
STR Ra, [Rb, #imm7_4]
STR Ra, [SP, #imm10_4]
Store Ra into memory as a word
Ra, Rb, and Rc must be low registers | "STR Ra, [Rb, Rc]\n STR Ra, [Rb, #imm7_4]\n STR Ra, [SP, #imm10_4]\n\n Store Ra into memory as a word\n Ra, Rb, and Rc must be low registers" | 253 | false | DeepHorizons/iarm | STR | 33,747 | |
LDU_FT/thieman/dagobah/_serialize | LDU_FT | [
"<BEGIN>\n## `run`",
"Continually monitors Jobs of the parent Dagobah.\n<END>",
"<BEGIN>\n## `set_backend`",
"Manually set backend after construction.\n<END>",
"<BEGIN>\n## `from_backend`",
"Reconstruct this Dagobah instance from the backend.\n<END>",
"<BEGIN>\n## `_construct_from_json`",
"Construct t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Serialize a representation of this Job to a Python dict object. | "Serialize a representation of this Job to a Python dict object." | 120 | false | thieman/dagobah | _serialize | 33,748 | |
LDU_FT/thespacedoctor/tastic/sync | LDU_FT | [
"<BEGIN>\n## `projects`",
"*All child projects of this taskpaper object*",
" **Usage:**",
" Given a taskpaper document object (`doc`), to get a list of the project objects found within the document use:",
" .. code-block:: python",
" docProjects = doc.projects",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | *sync the tasks tagged with a tag in the sync-tags set to index taskpaper document and HTML page*
**Return:**
- None
see class docsting for usage | "*sync the tasks tagged with a tag in the sync-tags set to index taskpaper document and HTML page*\n\n **Return:**\n - None\n\n see class docsting for usage" | 285 | false | thespacedoctor/tastic | sync | 33,749 | |
LDU_FT/zimeon/iiif/level | LDU_FT | [
"<BEGIN>\n## `do_first`",
"Load generator, set size.",
" We take the generator module name from self.srcfile so that\n this manipulator will work with different generators in a\n similar way to how the ordinary generators work with\n different images\n<END>",
"<BEGIN>\n## `main`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the level API.
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 level API.
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... | Extract level number from compliance profile URI.
Returns integer level number or raises IIIFInfoError | "Extract level number from compliance profile URI.\n\n Returns integer level number or raises IIIFInfoError" | 333 | false | zimeon/iiif | level | 33,750 | |
LDU_FT/Tivix/django-cron/clear_old_log_entries | LDU_FT | [
"<BEGIN>\n## `humanize_duration`",
"Returns a humanized string representing time difference",
" For example: 2 days 1 hour 25 minutes 10 seconds\n<END>",
"<BEGIN>\n## `run_cron_with_cache_check`",
"Checks the cache and runs the cron or not.",
" @cron_class - cron class to run.\n @force - run... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_old_log_entries 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 clear_old_log_entries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Removes older log entries, if the appropriate setting has been set | "Removes older log entries, if the appropriate setting has been set" | 16 | false | Tivix/django-cron | clear_old_log_entries | 33,751 | |
LDU_FT/aichaos/rivescript-python/write | LDU_FT | [
"<BEGIN>\n## `format_message`",
"Format a user's message for safe processing.",
" This runs substitutions on the message and strips out any remaining\n symbols (depending on UTF-8 mode).",
" :param str msg: The user's message.\n :param bool botreply: Whether this formatting is bein... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Write the currently parsed RiveScript data into a file.
Pass either a file name (string) or a file handle object.
This uses ``deparse()`` to dump a representation of the loaded data and
writes it to the destination file. If you provide your own data as the
``deparsed`` argument, it wil... | "Write the currently parsed RiveScript data into a file.\n\n Pass either a file name (string) or a file handle object.\n\n This uses ``deparse()`` to dump a representation of the loaded data and\n writes it to the destination file. If you provide your own data as the\n ``deparsed`` argument,... | 218 | false | aichaos/rivescript-python | write | 33,752 | |
LDU_FT/summanlp/textrank/pagerank_weighted | LDU_FT | [
"<BEGIN>\n## `_cons`",
"cons(i) is TRUE <=> b[i] is a consonant.\n<END>",
"<BEGIN>\n## `_m`",
"m() measures the number of consonant sequences between k0 and j.\n if c is a consonant sequence and v a vowel sequence, and <..>\n indicates arbitrary presence,",
" <c><v> gives 0\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pagerank_weighted API.
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 pagerank_weighted API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Calculates PageRank for an undirected graph | "Calculates PageRank for an undirected graph" | 126 | false | summanlp/textrank | pagerank_weighted | 33,753 | |
LDU_FT/asweigart/pyautogui/click | LDU_FT | [
"<BEGIN>\n## `_specialKeyEvent`",
"Helper method for special keys.",
" Source: http://stackoverflow.com/questions/11045814/emulate-media-key-press-on-mac\n<END>",
"<BEGIN>\n## `_keyDown`",
"Performs a keyboard key press without the release. This will put that\n key in a held down state.",
" NOTE:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d... | Performs pressing a mouse button down and then immediately releasing it.
The x and y parameters detail where the mouse event happens. If None, the
current mouse position is used. If a float value, it is rounded down. If
outside the boundaries of the screen, the event happens at edge of the
screen.
... | "Performs pressing a mouse button down and then immediately releasing it.\n\n The x and y parameters detail where the mouse event happens. If None, the\n current mouse position is used. If a float value, it is rounded down. If\n outside the boundaries of the screen, the event happens at edge of the\n screen... | 162 | false | asweigart/pyautogui | click | 33,754 | |
LDU_FT/LeonardMH/namealizer/create_parser | LDU_FT | [
"<BEGIN>\n## `format_word_list_mixedcase`",
"Given a list of words, this function returns a new list where the\n words follow mixed case convention.",
" As a reminder this is mixedCase.",
" :param word_list: list, a list of words\n :return: list, a list of words where the words are mixed case\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_parser API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_parser API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Creates the Namespace object to be used by the rest of the tool | "Creates the Namespace object to be used by the rest of the tool" | 19 | false | LeonardMH/namealizer | create_parser | 33,755 | |
LDU_FT/wndhydrnt/python-oauth2/read_validate_params | LDU_FT | [
"<BEGIN>\n## `fetch_by_code`",
"Returns data belonging to an authorization code from redis or\n ``None`` if no data was found.",
" See :class:`oauth2.store.AuthCodeStore`.\n<END>",
"<BEGIN>\n## `save_code`",
"Stores the data belonging to an authorization code token in redis.",
" See :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_validate_params 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 read_validate_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Checks if all incoming parameters meet the expected values. | "Checks if all incoming parameters meet the expected values." | 165 | false | wndhydrnt/python-oauth2 | read_validate_params | 33,756 | |
LDU_FT/astooke/gtimer/timed_for | LDU_FT | [
"<BEGIN>\n## `start`",
"Mark the start of timing, overwriting the automatic start data written on\n import, or the automatic start at the beginning of a subdivision.",
" Notes:\n Backdating: For subdivisions only. Backdate time must be in the past\n but more recent than the latest stamp in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timed_for API.
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 timed_for API.
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... | Instantiate a TimedLoop object for measuring for loop iteration timing data.
Can be used only on for loops.
Example::
for i in gtimer.timed_for(iterable, ..):
<body of loop with gtimer stamps>
Notes:
Can be used as a context manager around the loop. When breaking out of
... | "Instantiate a TimedLoop object for measuring for loop iteration timing data.\n Can be used only on for loops.\n\n Example::\n\n for i in gtimer.timed_for(iterable, ..):\n <body of loop with gtimer stamps>\n\n Notes:\n Can be used as a context manager around the loop. When breaking ou... | 137 | false | astooke/gtimer | timed_for | 33,757 | |
LDU_FT/duniter/duniter-python-api/inline | LDU_FT | [
"<BEGIN>\n## `from_signed_raw`",
"Return Certification instance from signed raw document",
" :param signed_raw: Signed raw document\n :return:\n<END>",
"<BEGIN>\n## `from_inline`",
"Return Certification instance from inline document",
" Only self.pubkey_to is populated.\n You m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inline API.
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 inline API.
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 endpoint string
:return: | "Return endpoint string\n\n :return:" | 415 | false | duniter/duniter-python-api | inline | 33,758 | |
LDU_FT/squaresLab/BugZoo/exec | LDU_FT | [
"<BEGIN>\n## `is_installed`",
"Determines whether the Docker image for a given bug has been installed\n on the server.\n<END>",
"<BEGIN>\n## `register`",
"Dynamically registers a given bug with the server. Note that the\n registration will not persist beyond the lifetime of the server.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exec API.
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 exec API.
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... | Executes a given command inside a provided container.
Parameters:
container: the container to which the command should be issued.
command: the command that should be executed.
context: the working directory that should be used to perform the
execution. If no ... | "Executes a given command inside a provided container.\n\n Parameters:\n container: the container to which the command should be issued.\n command: the command that should be executed.\n context: the working directory that should be used to perform the\n execution.... | 247 | false | squaresLab/BugZoo | exec | 33,759 | |
LDU_FT/ajk8/microcache/disable | LDU_FT | [
"<BEGIN>\n## `init_logging`",
"Setup logging for the microcache module, but only do it once!",
" :param stream: stream to log to (defaults to sys.stderr)\n :param filepath: path to a file to log to as well (defaults to None)\n :param format: override the default format with whatever you like\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable API.
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 disable API.
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... | Disable the cache and clear its contents
:param clear_cache: clear the cache contents as well as disabling (defaults to True) | "Disable the cache and clear its contents\n\n :param clear_cache: clear the cache contents as well as disabling (defaults to True)" | 35 | false | ajk8/microcache | disable | 33,760 | |
LDU_FT/stan-dev/pystan/check_treedepth | LDU_FT | [
"<BEGIN>\n## `lookup`",
"Look up for a Stan function with similar functionality to a Python\n function (or even an R function, see examples). If the function is\n not present on the lookup table, then attempts to find similar one\n and prints the results. This function requires package `pandas`.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_treedepth API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_treedepth API.
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... | Check for transitions that ended prematurely due to maximum tree
depth limit
Parameters
----------
fit : StanFit4Model object
verbose : bool or int, optional
If ``verbose`` is ``False`` or a nonpositive integer, no
diagnostic messages are printed, and only the return value of
... | "Check for transitions that ended prematurely due to maximum tree\n depth limit\n\n Parameters\n ----------\n fit : StanFit4Model object\n verbose : bool or int, optional\n If ``verbose`` is ``False`` or a nonpositive integer, no\n diagnostic messages are printed, and only the return value ... | 222 | false | stan-dev/pystan | check_treedepth | 33,761 | |
LDU_FT/ga4gh/ga4gh-server/_getFeatureById | LDU_FT | [
"<BEGIN>\n## `VerifierMiddleware`",
"Common wrapper for the authentication modules.\n * Parses the request before passing it on to the authentication module.\n * Sets 'pyoidc' cookie if authentication succeeds.\n * Redirects the user to complete the authentication.\n * Allows the user ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getFeatureById API.
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 _getFeatureById API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | find a feature and return ga4gh representation, use 'native' id as
featureId | "find a feature and return ga4gh representation, use 'native' id as\n featureId" | 768 | false | ga4gh/ga4gh-server | _getFeatureById | 33,762 | |
LDU_FT/alpacahq/pylivetrader/build_sector_fundamentals | LDU_FT | [
"<BEGIN>\n## `_deprecated_getitem_method`",
"Create a deprecated ``__getitem__`` method that tells users to use\n getattr instead.",
" Parameters\n ----------\n name : str\n The name of the object in the warning message.\n attrs : iterable[str]\n The set of allowed attributes.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_sector_fundamentals 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 build_sector_fundamentals API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | In this method, for the given sector, we'll get the data we need for each stock
in the sector from IEX. Once we have the data, we'll check that the earnings
reports meet our criteria with `eps_good()`. We'll put stocks that meet those
requirements into a dataframe along with all the data about them we'll ne... | "In this method, for the given sector, we'll get the data we need for each stock\n in the sector from IEX. Once we have the data, we'll check that the earnings\n reports meet our criteria with `eps_good()`. We'll put stocks that meet those\n requirements into a dataframe along with all the data about them we'l... | 81 | false | alpacahq/pylivetrader | build_sector_fundamentals | 33,763 | |
LDU_FT/fossasia/AYABInterface/send | LDU_FT | [
"<BEGIN>\n## `get`",
"Return the needle positions or None.",
" :param int line_number: the number of the line\n :rtype: list\n :return: the needle positions for a specific line specified by\n :paramref:`line_number` or :obj:`None` if no were given\n<END>",
"<BEGIN>\n## `get_bytes... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
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 send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Send a host message.
:param type host_message_class: a subclass of
:class:`AYABImterface.communication.host_messages.Message`
:param args: additional arguments that shall be passed to the
:paramref:`host_message_class` as arguments | "Send a host message.\n\n :param type host_message_class: a subclass of\n :class:`AYABImterface.communication.host_messages.Message`\n :param args: additional arguments that shall be passed to the\n :paramref:`host_message_class` as arguments" | 79 | false | fossasia/AYABInterface | send | 33,764 | |
LDU_FT/acorg/dark-matter/iter | LDU_FT | [
"<BEGIN>\n## `iter`",
"Extract BLAST records and yield C{ReadAlignments} instances.",
" For each file except the first, check that the BLAST parameters are\n compatible with those found (above, in __init__) in the first file.",
" @return: A generator that yields C{ReadAlignments} instance... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Extract BLAST records and yield C{ReadAlignments} instances.
For each file except the first, check that the BLAST parameters are
compatible with those found (above, in __init__) in the first file.
@return: A generator that yields C{ReadAlignments} instances. | "Extract BLAST records and yield C{ReadAlignments} instances.\n\n For each file except the first, check that the BLAST parameters are\n compatible with those found (above, in __init__) in the first file.\n\n @return: A generator that yields C{ReadAlignments} instances." | 601 | false | acorg/dark-matter | iter | 33,765 | |
LDU_FT/klen/pylama/remove_duplicates | LDU_FT | [
"<BEGIN>\n## `run`",
"MCCabe code checking.",
" :return list: List of errors.\n<END>",
"<BEGIN>\n## `split_csp_str`",
"Split comma separated string into unique values, keeping their order.",
" :returns: list of splitted values\n<END>",
"<BEGIN>\n## `parse_linters`",
"Initialize choosen linte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_duplicates API.
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 remove_duplicates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Filter duplicates from given error's list. | "Filter duplicates from given error's list." | 81 | false | klen/pylama | remove_duplicates | 33,766 | |
LDU_FT/zhebrak/raftos/request_vote | LDU_FT | [
"<BEGIN>\n## `validate_term`",
"Compares current term and request term:\n if current term is stale:\n update current term & become follower\n if received term is stale:\n respond with False\n<END>",
"<BEGIN>\n## `validate_commit_index`",
"Apply to State Machine everything u... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_vote API.
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 request_vote API.
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... | RequestVote RPC — gather votes
Arguments:
term — candidate’s term
candidate_id — candidate requesting vote
last_log_index — index of candidate’s last log entry
last_log_term — term of candidate’s last log entry | "RequestVote RPC — gather votes\n Arguments:\n term — candidate’s term\n candidate_id — candidate requesting vote\n last_log_index — index of candidate’s last log entry\n last_log_term — term of candidate’s last log entry" | 28 | false | zhebrak/raftos | request_vote | 33,767 | |
LDU_FT/lsst-sqre/documenteer/_oxford_comma_separator | LDU_FT | [
"<BEGIN>\n## `run`",
"Main entrypoint method.",
" Returns\n -------\n new_nodes : `list`\n Nodes to add to the doctree.\n<END>",
"<BEGIN>\n## `main`",
"stack-docs is a CLI for building LSST Stack documentation, such as\n pipelines.lsst.io.",
" This command should be r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _oxford_comma_separator 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 _oxford_comma_separator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Make a separator for a prose-like list with `,` between items except
for `, and` after the second to last item. | "Make a separator for a prose-like list with `,` between items except\n for `, and` after the second to last item." | 430 | false | lsst-sqre/documenteer | _oxford_comma_separator | 33,768 | |
LDU_FT/ludbb/secp256k1-py/build_flags | LDU_FT | [
"<BEGIN>\n## `ecdsa_signature_normalize`",
"Check and optionally convert a signature to a normalized lower-S form.\n If check_only is True then the normalized signature is not returned.",
" This function always return a tuple containing a boolean (True if\n not previously normalized or Fals... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_flags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_flags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return separated build flags from pkg-config output | "Return separated build flags from pkg-config output" | 13 | false | ludbb/secp256k1-py | build_flags | 33,769 | |
LDU_FT/discolabs/django-shopify-auth/anonymous_required | LDU_FT | [
"<BEGIN>\n## `initialise_shopify_session`",
"Initialise the Shopify session with the Shopify App's API credentials.\n<END>",
"<BEGIN>\n## `anonymous_required`",
"Decorator requiring the current user to be anonymous (not logged in).\n<END>",
"<BEGIN>\n## `login_required`",
"Decorator that wraps django.cont... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the anonymous_required 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 anonymous_required 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... | Decorator requiring the current user to be anonymous (not logged in). | "Decorator requiring the current user to be anonymous (not logged in)." | 11 | false | discolabs/django-shopify-auth | anonymous_required | 33,770 | |
LDU_FT/kennedyshead/aioasuswrt/async_get_connected_devices | LDU_FT | [
"<BEGIN>\n## `async_run_command`",
"Run commands through an SSH connection.",
" Connect to the SSH server if not currently connected, otherwise\n use the existing connection.\n<END>",
"<BEGIN>\n## `async_connect`",
"Fetches the client or creates a new one.\n<END>",
"<BEGIN>\n## `async_run_co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the async_get_connected_devices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the async_get_connected_devices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Retrieve data from ASUSWRT.
Calls various commands on the router and returns the superset of all
responses. Some commands will not work on some routers. | "Retrieve data from ASUSWRT.\n\n Calls various commands on the router and returns the superset of all\n responses. Some commands will not work on some routers." | 19 | false | kennedyshead/aioasuswrt | async_get_connected_devices | 33,771 | |
LDU_FT/smdabdoub/phylotoast/scrobble_data_dir | LDU_FT | [
"<BEGIN>\n## `sample_group`",
"Iterate through all categories in an OrderedDict and return category name if SampleID\n present in that category.",
" :type sid: str\n :param sid: SampleID from dataset.",
" :type groups: OrderedDict\n :param groups: Returned dict from phylotoast.util.gather_categ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scrobble_data_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scrobble_data_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Given a sample ID and a mapping, modify a Sanger FASTA file
to include the barcode and 'primer' in the sequence data
and change the description line as needed. | "Given a sample ID and a mapping, modify a Sanger FASTA file\n to include the barcode and 'primer' in the sequence data\n and change the description line as needed." | 200 | false | smdabdoub/phylotoast | scrobble_data_dir | 33,772 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.