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/KnorrFG/pyparadigm/mouse_area
LDU_FT
[ "<BEGIN>\n## `_normalize`", "rescales a numpy array, so that min is 0 and max is 255\n<END>", "<BEGIN>\n## `to_24bit_gray`", "returns a matrix that contains RGB channels, and colors scaled\n from 0 to 255\n<END>", "<BEGIN>\n## `apply_color_map`", "returns an RGB matrix scaled by a matplotlib color map\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mouse_area API. 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 mouse_area API. 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...
Adds a new MouseProxy for the given group to the EventListener.mouse_proxies dict if it is not in there yet, and returns the (new) MouseProxy. In listen() all entries in the current group of mouse_proxies are used.
"Adds a new MouseProxy for the given group to the \n EventListener.mouse_proxies dict if it is not in there yet, and returns\n the (new) MouseProxy. In listen() all entries in the current group of\n mouse_proxies are used."
86
false
KnorrFG/pyparadigm
mouse_area
9,873
LDU_FT/neo4j/neo4j-python-driver/detach
LDU_FT
[ "<BEGIN>\n## `basic_auth`", "Generate a basic auth token for a given user and password.", " :param user: user name\n :param password: current password\n :param realm: specifies the authentication provider\n :return: auth token for use with :meth:`GraphDatabase.driver`\n<END>", "<BEGIN>\n## `custom...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detach API. 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 detach API. 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 ...
Detach a result from this session by fetching and buffering any remaining records. :param result: :param sync: :returns: number of records fetched
"Detach a result from this session by fetching and buffering any\n remaining records.\n\n :param result:\n :param sync:\n :returns: number of records fetched"
133
false
neo4j/neo4j-python-driver
detach
9,874
LDU_FT/insilichem/ommprotocol/backup_simulation
LDU_FT
[ "<BEGIN>\n## `protocol`", "Run all the stages in protocol", " Parameters\n ----------\n handler : SystemHandler\n Container of initial conditions of simulation", " cfg : dict\n Imported YAML file.\n<END>", "<BEGIN>\n## `run`", "Launch MD simulation, which may consist of:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backup_simulation API. 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 backup_simulation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Creates an emergency report run, .state included
"Creates an emergency report run, .state included"
84
false
insilichem/ommprotocol
backup_simulation
9,875
LDU_FT/icgood/pysasl/get_server
LDU_FT
[ "<BEGIN>\n## `check_secret`", "Checks if the secret string used in the authentication attempt\n matches the \"known\" secret string. Some mechanisms will override this\n method to control how this comparison is made.", " Args:\n secret: The secret string to compare against what w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_server API. 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...
Like :meth:`.get`, but only mechanisms inheriting :class:`ServerMechanism` will be returned. Args: name: The SASL mechanism name. Returns: The mechanism object or ``None``
"Like :meth:`.get`, but only mechanisms inheriting\n :class:`ServerMechanism` will be returned.\n\n Args:\n name: The SASL mechanism name.\n\n Returns:\n The mechanism object or ``None``"
22
false
icgood/pysasl
get_server
9,876
LDU_FT/grundprinzip/pyxplorer/column
LDU_FT
[ "<BEGIN>\n## `tables`", ":return: all tables stored in this database\n<END>", "<BEGIN>\n## `tcounts`", ":return: a data frame containing the names and sizes for all tables\n<END>", "<BEGIN>\n## `dcounts`", ":return: a data frame with names and distinct counts and fractions for all columns in the database\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the column API. 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 column API. 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 ...
Given either a column index or name return the column structure :param col: either index or name :return: column data structure
"Given either a column index or name return the column structure\n :param col: either index or name\n :return: column data structure"
20
false
grundprinzip/pyxplorer
column
9,877
LDU_FT/scikit-umfpack/scikit-umfpack/spsolve
LDU_FT
[ "<BEGIN>\n## `symbolic`", "Perform symbolic object (symbolic LU decomposition) computation for a given\n sparsity pattern.\n<END>", "<BEGIN>\n## `numeric`", "Perform numeric object (LU decomposition) computation using the\n symbolic decomposition. The symbolic decomposition is (re)computed\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spsolve API. 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 spsolve API. 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...
Solve the sparse linear system Ax=b, where b may be a vector or a matrix. Parameters ---------- A : ndarray or sparse matrix The square matrix A will be converted into CSC or CSR form b : ndarray or sparse matrix The matrix or vector representing the right hand side of the equation. ...
"Solve the sparse linear system Ax=b, where b may be a vector or a matrix.\n\n Parameters\n ----------\n A : ndarray or sparse matrix\n The square matrix A will be converted into CSC or CSR form\n b : ndarray or sparse matrix\n The matrix or vector representing the right hand side of the equat...
30
false
scikit-umfpack/scikit-umfpack
spsolve
9,878
LDU_FT/jamieleshaw/lurklib/_init
LDU_FT
[ "<BEGIN>\n## `find`", "Finds needle in haystack.\n If needle is found return True, if not return False.\n Required arguments:\n * haystack - Text to search in.\n * needle - Text to search for.\n<END>", "<BEGIN>\n## `send`", "Send a raw string with the CR-LF appended to it.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init API. 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 _init API. 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...
Connect and register with the IRC server and - set server-related information variables. Required arguments: * server - Server to connect to. * nick - Nick to use. If a tuple/list is specified it will try to use the first, and if the first is already used - ...
"Connect and register with the IRC server and -\n set server-related information variables.\n Required arguments:\n * server - Server to connect to.\n * nick - Nick to use.\n If a tuple/list is specified it will try to use the first,\n and if the first is already us...
112
false
jamieleshaw/lurklib
_init
9,879
LDU_FT/graphql-python/graphql-core-next/collect_conflicts_between_fragments
LDU_FT
[ "<BEGIN>\n## `uni_char_code`", "Convert unicode characters to integers.", " Converts four hexadecimal chars to the integer that the string represents.\n For example, uni_char_code('0','0','0','f') will return 15,\n and uni_char_code('0','0','f','f') returns 255.", " Returns a negative number on er...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_conflicts_between_fragments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_conflicts_between_fragments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Collect conflicts between fragments. Collect all conflicts found between two fragments, including via spreading in any nested fragments.
"Collect conflicts between fragments.\n\n Collect all conflicts found between two fragments, including via spreading in any\n nested fragments."
470
false
graphql-python/graphql-core-next
collect_conflicts_between_fragments
9,880
LDU_FT/bjodah/chempy/water_self_diffusion_coefficient
LDU_FT
[ "<BEGIN>\n## `main`", "This example demonstrates how to generate pretty equations from the analytic\n expressions found in ``chempy.kinetics.integrated``.\n<END>", "<BEGIN>\n## `_cell_label_html`", "Reaction formatting callback. (reaction index -> string)\n<END>", "<BEGIN>\n## `roots`", "Parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the water_self_diffusion_coefficient API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the water_self_diffusion_coefficient API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Temperature-dependent self-diffusion coefficient of water. Parameters ---------- T : float Temperature (default: in Kelvin) units : object (optional) object with attributes: Kelvin, meter, kilogram warn : bool (default: True) Emit UserWarning when outside temperature range. ...
"Temperature-dependent self-diffusion coefficient of water.\n\n Parameters\n ----------\n T : float\n Temperature (default: in Kelvin)\n units : object (optional)\n object with attributes: Kelvin, meter, kilogram\n warn : bool (default: True)\n Emit UserWarning when outside temperatu...
42
false
bjodah/chempy
water_self_diffusion_coefficient
9,881
LDU_FT/frictionlessdata/tableschema-py/infer
LDU_FT
[ "<BEGIN>\n## `primary_key`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `foreign_keys`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `add_field`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the infer API. 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 infer API. 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...
https://github.com/frictionlessdata/tableschema-py#schema
"https://github.com/frictionlessdata/tableschema-py#schema"
38
false
frictionlessdata/tableschema-py
infer
9,882
LDU_FT/fedora-infra/fedmsg/_get_config_files
LDU_FT
[ "<BEGIN>\n## `set_high_water_mark`", "Set a high water mark on the zmq socket. Do so in a way that is\n cross-compatible with zeromq2 and zeromq3.\n<END>", "<BEGIN>\n## `set_tcp_keepalive`", "Set a series of TCP keepalive options on the socket if\n and only if\n 1) they are specified explicitly in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_config_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_config_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Load the list of file paths for fedmsg configuration files. Returns: list: List of files containing fedmsg configuration.
"Load the list of file paths for fedmsg configuration files.\n\n Returns:\n list: List of files containing fedmsg configuration."
248
false
fedora-infra/fedmsg
_get_config_files
9,883
LDU_FT/openeventdata/mordecai/features_for_rank
LDU_FT
[ "<BEGIN>\n## `country_list_maker`", "Helper function to return dictionary of countries in {\"country\" : \"iso\"} form.\n<END>", "<BEGIN>\n## `make_skip_list`", "Return hand-defined list of place names to skip and not attempt to geolocate. If users would like to exclude\n country names, this would be the f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the features_for_rank API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the features_for_rank API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Compute features for ranking results from ES/geonames Parameters ---------- proc : dict One dictionary from the list that comes back from geoparse or from make_country_features (doesn't matter) results : dict the response from a geonames query Returns ...
"Compute features for ranking results from ES/geonames\n\n\n Parameters\n ----------\n proc : dict\n One dictionary from the list that comes back from geoparse or from make_country_features (doesn't matter)\n results : dict\n the response from a geonames query\n\n ...
110
false
openeventdata/mordecai
features_for_rank
9,884
LDU_FT/maximdanilchenko/aiohttp-apispec/response_schema
LDU_FT
[ "<BEGIN>\n## `setup_aiohttp_apispec`", "aiohttp-apispec extension.", " Usage:", " .. code-block:: python", " from aiohttp_apispec import docs, request_schema, setup_aiohttp_apispec\n from aiohttp import web\n from marshmallow import Schema, fields", " class RequestSchema(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response_schema API. 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 response_schema API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Add response info into the swagger spec Usage: .. code-block:: python from aiohttp import web from marshmallow import Schema, fields class ResponseSchema(Schema): msg = fields.Str() data = fields.Dict() @response_schema(ResponseSchema(), 200) ...
"Add response info into the swagger spec\n\n Usage:\n\n .. code-block:: python\n\n from aiohttp import web\n from marshmallow import Schema, fields\n\n\n class ResponseSchema(Schema):\n msg = fields.Str()\n data = fields.Dict()\n\n @response_schema(ResponseSchema(...
38
false
maximdanilchenko/aiohttp-apispec
response_schema
9,885
LDU_FT/RomelTorres/alpha_vantage/get_currency_exchange_intraday
LDU_FT
[ "<BEGIN>\n## `get_currency_exchange_intraday`", "Returns the intraday exchange rate for any pair of physical\n currency (e.g., EUR) or physical currency (e.g., USD).", " Keyword Arguments:\n from_symbol: The currency you would like to get the exchange rate\n for.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_currency_exchange_intraday API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_currency_exchange_intraday API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Returns the intraday exchange rate for any pair of physical currency (e.g., EUR) or physical currency (e.g., USD). Keyword Arguments: from_symbol: The currency you would like to get the exchange rate for. For example: from_currency=EUR or from_currency=USD. ...
"Returns the intraday exchange rate for any pair of physical\n currency (e.g., EUR) or physical currency (e.g., USD).\n\n Keyword Arguments:\n from_symbol: The currency you would like to get the exchange rate\n for.\n For example: from_currency=EUR or from_currency...
46
false
RomelTorres/alpha_vantage
get_currency_exchange_intraday
9,886
LDU_FT/dossier/dossier.models/extract_keyword_queries
LDU_FT
[ "<BEGIN>\n## `run`", "Generate the report to the given output.", " :param output: writable file-like object or file path\n<END>", "<BEGIN>\n## `_generate_report_all`", "Generate report for all subfolders contained by self.folder_id.\n<END>", "<BEGIN>\n## `_generate_report_single`", "Generate repo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_keyword_queries 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 extract_keyword_queries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Transforms a folder structure into positive and negative examples to feed to ``linker.model.extract``. This transforms SortingDesk's foldering structure into *supervision* data for the extractor. This works best if folder name (``fid``) is the ``name`` of an entity in question or, more generally, a qu...
"Transforms a folder structure into positive and negative examples\n to feed to ``linker.model.extract``. This transforms SortingDesk's\n foldering structure into *supervision* data for the extractor.\n\n This works best if folder name (``fid``) is the ``name`` of an entity\n in question or, more generally...
217
false
dossier/dossier.models
extract_keyword_queries
9,887
LDU_FT/Toilal/rebulk/_add_match
LDU_FT
[ "<BEGIN>\n## `formatters`", "Chain formatter functions.\n :param chained_formatters:\n :type chained_formatters:\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `_default_conflict_solver`", "Default conflict solver for matches, shorter matches if they conflicts with longer ones", " :param conflict...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add a match :param match: :type match: Match
"Add a match\n :param match:\n :type match: Match"
174
false
Toilal/rebulk
_add_match
9,888
LDU_FT/erikrose/peep/_version
LDU_FT
[ "<BEGIN>\n## `activate`", "Make a compatible version of pip importable. Raise a RuntimeError if we\n couldn't.\n<END>", "<BEGIN>\n## `path_and_line`", "Return the path and line number of the file from which an\n InstallRequirement came.\n<END>", "<BEGIN>\n## `hashes_above`", "Yield hashes from conti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Deduce the version number of the downloaded package from its filename.
"Deduce the version number of the downloaded package from its filename."
53
false
erikrose/peep
_version
9,889
LDU_FT/instacart/lore/generate_row_keys
LDU_FT
[ "<BEGIN>\n## `foreground`", "Color the text of the content", " :param color: pick a constant, any constant\n :type color: int\n :param content: Whatever you want to say...\n :type content: unicode\n :return: ansi string\n :rtype: unicode\n<END>", "<BEGIN>\n## `rgb`", "Colors a content usin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_row_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. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_row_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. The...
Method for generating key features at serving time or prediction time :param data: Pass in the data that is necessary for generating the keys Example : Feature : User warehouse searches and conversions Keys will be of the form 'user_id#warehouse_id#searches=23811676#3' ...
"Method for generating key features at serving time or prediction time\n :param data: Pass in the data that is necessary for generating the keys\n Example :\n Feature : User warehouse searches and conversions\n Keys will be of the form 'user_id#warehouse_id#searches=23811676#3'\n ...
69
false
instacart/lore
generate_row_keys
9,890
LDU_FT/myusuf3/delorean/datetime_timezone
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses a datetime string and returns a `Delorean` object.", " :param datetime_str: The string to be interpreted into a `Delorean` object.\n :param timezone: Pass this parameter and the returned Delorean object will be normalized to this timezone. Any\n offsets passed as part...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_timezone API. 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 datetime_timezone API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This method given a timezone returns a localized datetime object.
"This method given a timezone returns a localized datetime object."
85
false
myusuf3/delorean
datetime_timezone
9,891
LDU_FT/SolutionsCloud/apidoc/get_path_signature
LDU_FT
[ "<BEGIN>\n## `_init_config`", "return command's configuration from call's arguments\n<END>", "<BEGIN>\n## `_merge_files`", "Combine the input files to a big output file\n<END>", "<BEGIN>\n## `create_from_name_and_dictionary`", "Return a populated object Object from dictionary datas\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_path_signature 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_path_signature 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...
generate a unique signature for file contained in path
"generate a unique signature for file contained in path"
42
false
SolutionsCloud/apidoc
get_path_signature
9,892
LDU_FT/Xython/Linq.py/GroupBy
LDU_FT
[ "<BEGIN>\n## `ChunkBy`", "[\n {\n 'self': [1, 1, 3, 3, 1, 1],\n 'f': lambda x: x%2,\n 'assert': lambda ret: ret == [[1, 1], [3, 3], [1, 1]]\n }\n ]\n<END>", "<BEGIN>\n## `GroupBy`", "[\n {\n 'self': [1, 2, 3],\n 'f': lambda x: x%2...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GroupBy API. 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 GroupBy API. 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...
[ { 'self': [1, 2, 3], 'f': lambda x: x%2, 'assert': lambda ret: ret[0] == [2] and ret[1] == [1, 3] } ]
"[\n {\n 'self': [1, 2, 3],\n 'f': lambda x: x%2,\n 'assert': lambda ret: ret[0] == [2] and ret[1] == [1, 3]\n }\n ]"
32
false
Xython/Linq.py
GroupBy
9,893
LDU_FT/pikepdf/pikepdf/decode_pdf_date
LDU_FT
[ "<BEGIN>\n## `encode_pdf_date`", "Encode Python datetime object as PDF date string", " From Adobe pdfmark manual:\n (D:YYYYMMDDHHmmSSOHH'mm')\n D: is an optional prefix. YYYY is the year. All fields after the year are\n optional. MM is the month (01-12), DD is the day (01-31), HH is the\n hour (0...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_pdf_date API. 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 decode_pdf_date API. 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...
Decode a pdfmark date to a Python datetime object A pdfmark date is a string in a paritcular format. See the pdfmark Reference for the specification.
"Decode a pdfmark date to a Python datetime object\n\n A pdfmark date is a string in a paritcular format. See the pdfmark\n Reference for the specification."
104
false
pikepdf/pikepdf
decode_pdf_date
9,894
LDU_FT/basilfx/flask-daapserver/publish
LDU_FT
[ "<BEGIN>\n## `publish`", "Publish a given `DAAPServer` instance.", " The given instances should be fully configured, including the provider.\n By default Zeroconf only advertises the first database, but the DAAP\n protocol has support for multiple databases. Therefore, the parameter\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish API. 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 publish API. 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...
Publish a given `DAAPServer` instance. The given instances should be fully configured, including the provider. By default Zeroconf only advertises the first database, but the DAAP protocol has support for multiple databases. Therefore, the parameter `preferred_database` can be set to ch...
"Publish a given `DAAPServer` instance.\n\n The given instances should be fully configured, including the provider.\n By default Zeroconf only advertises the first database, but the DAAP\n protocol has support for multiple databases. Therefore, the parameter\n `preferred_database` can be set...
45
false
basilfx/flask-daapserver
publish
9,895
LDU_FT/sdispater/poetry/get_flag
LDU_FT
[ "<BEGIN>\n## `path_to_url`", "Convert a path to a file: URL. The path will be made absolute and have\n quoted path parts.\n<END>", "<BEGIN>\n## `is_installable_dir`", "Return True if `path` is a directory containing a setup.py file.\n<END>", "<BEGIN>\n## `get_requires_for_build_wheel`", "Returns a lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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. The extracte...
Use a fallback method for determining SOABI flags if the needed config var is unset or unavailable.
"Use a fallback method for determining SOABI flags if the needed config\n var is unset or unavailable."
107
false
sdispater/poetry
get_flag
9,896
LDU_FT/jstitch/MambuPy/convertDict2Attrs
LDU_FT
[ "<BEGIN>\n## `convertDict2Attrs`", "The trick for iterable Mambu Objects comes here:", " You iterate over each element of the responded List from Mambu,\n and create a Mambu Activity object for each one, initializing\n them one at a time, and changing the attrs attribute (which just\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convertDict2Attrs API. 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 convertDict2Attrs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
The trick for iterable Mambu Objects comes here: You iterate over each element of the responded List from Mambu, and create a Mambu Branch object for each one, initializing them one at a time, and changing the attrs attribute (which just holds a list of plain dictionaries) with a MambuB...
"The trick for iterable Mambu Objects comes here:\n\n You iterate over each element of the responded List from Mambu,\n and create a Mambu Branch object for each one, initializing them\n one at a time, and changing the attrs attribute (which just\n holds a list of plain dictionaries) with a ...
357
false
jstitch/MambuPy
convertDict2Attrs
9,897
LDU_FT/shawalli/psycopg2-pgevents/tojson
LDU_FT
[ "<BEGIN>\n## `trigger_function_installed`", "Test whether or not the psycopg2-pgevents trigger function is installed.", " Parameters\n ----------\n connection: psycopg2.extensions.connection\n Active connection to a PostGreSQL database.", " Returns\n -------\n bool\n True if th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tojson API. 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 tojson API. 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 ...
Serialize an Event into JSON. Returns ------- str JSON-serialized Event.
"Serialize an Event into JSON.\n\n Returns\n -------\n str\n JSON-serialized Event."
52
false
shawalli/psycopg2-pgevents
tojson
9,898
LDU_FT/veltzer/pytconf/register_config
LDU_FT
[ "<BEGIN>\n## `array_indented`", "return an array indented according to indent level\n :param level:\n :param l:\n :param quote_char:\n :param comma_after:\n :return:\n<END>", "<BEGIN>\n## `config_arg_parse_and_launch`", "backwards compatibility function\n :return:\n<END>", "<BEGIN>\n## `re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_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 e...
register a configuration class :param cls: :param name: :return:
"register a configuration class\n :param cls:\n :param name:\n :return:"
32
false
veltzer/pytconf
register_config
9,899
LDU_FT/genepattern/genepattern-python/get_alt_name
LDU_FT
[ "<BEGIN>\n## `GCT`", "Create a Dataframe with the contents of the GCT file\n<END>", "<BEGIN>\n## `ODF`", "Create a Dataframe with the contents of the ODF file", " For more information on the ODF format see:\n http://software.broadinstitute.org/cancer/software/genepattern/file-formats-guide", " :o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_alt_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_alt_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns the alternate name of a parameter. Only pipeline prompt-when-run parameters can have alternate names and alternate descriptions
"Returns the alternate name of a parameter.\n Only pipeline prompt-when-run parameters\n can have alternate names and alternate descriptions"
156
false
genepattern/genepattern-python
get_alt_name
9,900
LDU_FT/neovim/pynvim/run
LDU_FT
[ "<BEGIN>\n## `connection_made`", "Used to signal `asyncio.Protocol` of a successful connection.\n<END>", "<BEGIN>\n## `data_received`", "Used to signal `asyncio.Protocol` of incoming data.\n<END>", "<BEGIN>\n## `pipe_data_received`", "Used to signal `asyncio.SubprocessProtocol` of incoming data.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run the event loop to receive messages from Nvim. While the event loop is running, `message_cb` will be called whenever a message has been successfully parsed from the input stream.
"Run the event loop to receive messages from Nvim.\n\n While the event loop is running, `message_cb` will be called whenever\n a message has been successfully parsed from the input stream."
139
false
neovim/pynvim
run
9,901
LDU_FT/BlueBrain/NeuroM/calculate_and_plot_end_to_end_distance
LDU_FT
[ "<BEGIN>\n## `_get_type`", "get the type of the soma", " Args:\n points: Soma points\n soma_class(str): one of 'contour' or 'cylinder' to specify the type\n<END>", "<BEGIN>\n## `make_soma`", "Make a soma object from a set of points", " Infers the soma type (SomaSinglePoint, SomaSimpleC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_and_plot_end_to_end_distance 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 calculate_and_plot_end_to_end_distance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
Calculate and plot the end-to-end distance vs the number of segments for an increasingly larger part of a given neurite. Note that the plots are not very meaningful for bifurcating trees.
"Calculate and plot the end-to-end distance vs the number of segments for\n an increasingly larger part of a given neurite.\n\n Note that the plots are not very meaningful for bifurcating trees."
706
false
BlueBrain/NeuroM
calculate_and_plot_end_to_end_distance
9,902
LDU_FT/sprockets/sprockets-dynamodb/marshall
LDU_FT
[ "<BEGIN>\n## `_on_dynamodb_exception`", "Dynamically handle DynamoDB exceptions, returning HTTP error\n responses.", " :param exceptions.DynamoDBException error:\n<END>", "<BEGIN>\n## `marshall`", "Marshall a `dict` into something DynamoDB likes.", " :param dict values: The values to mars...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marshall API. 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 marshall API. 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...
Marshall a `dict` into something DynamoDB likes. :param dict values: The values to marshall :rtype: dict :raises ValueError: if an unsupported type is encountered Return the values in a nested dict structure that is required for writing the values to DynamoDB.
"Marshall a `dict` into something DynamoDB likes.\n\n :param dict values: The values to marshall\n :rtype: dict\n :raises ValueError: if an unsupported type is encountered\n\n Return the values in a nested dict structure that is required for\n writing the values to DynamoDB."
86
false
sprockets/sprockets-dynamodb
marshall
9,903
LDU_FT/yahoo/TensorFlowOnSpark/run
LDU_FT
[ "<BEGIN>\n## `start`", "Create a new multiprocess.Manager (or return existing one).", " Args:\n :authkey: string authorization key\n :queues: *INTERNAL_USE*\n :mode: 'local' indicates that the manager will only be accessible from the same host, otherwise remotely accessible.", " Returns:\n A TFM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Starts the TensorFlowOnSpark cluster and Runs the TensorFlow "main" function on the Spark executors Args: :sc: SparkContext :map_fun: user-supplied TensorFlow "main" function :tf_args: ``argparse`` args, or command-line ``ARGV``. These will be passed to the ``map_fun``. :num_executors: number of Spa...
"Starts the TensorFlowOnSpark cluster and Runs the TensorFlow \"main\" function on the Spark executors\n\n Args:\n :sc: SparkContext\n :map_fun: user-supplied TensorFlow \"main\" function\n :tf_args: ``argparse`` args, or command-line ``ARGV``. These will be passed to the ``map_fun``.\n :num_executors: nu...
483
false
yahoo/TensorFlowOnSpark
run
9,904
LDU_FT/woolfson-group/isambard/rmsd_eval
LDU_FT
[ "<BEGIN>\n## `covalent_bonds`", "Returns all the covalent bonds in a list of `Atom` pairs.", " Notes\n -----\n Uses information `element_data`, which can be accessed directly\n through this module i.e. `isambard.ampal.interactions.element_data`.", " Parameters\n ----------\n atoms : [(`At...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rmsd_eval API. 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 rmsd_eval API. 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...
Builds a model and runs profit against a reference model. Parameters ---------- rmsd_params Returns ------- rmsd: float rmsd against reference model as calculated by profit.
"Builds a model and runs profit against a reference model.\n\n Parameters\n ----------\n rmsd_params\n\n Returns\n -------\n rmsd: float\n rmsd against reference model as calculated by profit."
880
false
woolfson-group/isambard
rmsd_eval
9,905
LDU_FT/jermnelson/flask-fedora-commons/connect
LDU_FT
[ "<BEGIN>\n## `build_prefixes`", "Internal function takes a list of prefix, namespace uri tuples and\n generates a SPARQL PREFIX string.", " Args:\n namespaces(list): List of tuples, defaults to BIBFRAME and\n Schema.org", " Returns:\n string\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
Method attempts to connect to REST servers of the Fedora Commons repository using optional data parameter. Args: fedora_url(string): Fedora URL data(dict): Data to through to REST endpoint method(str): REST Method, defaults to GET Returns: result...
"Method attempts to connect to REST servers of the Fedora\n Commons repository using optional data parameter.\n\n Args:\n fedora_url(string): Fedora URL\n data(dict): Data to through to REST endpoint\n method(str): REST Method, defaults to GET\n\n Returns:\n ...
57
false
jermnelson/flask-fedora-commons
connect
9,906
LDU_FT/Azure/azure-multiapi-storage-python/_convert_xml_to_service_properties
LDU_FT
[ "<BEGIN>\n## `_extract_encryption_metadata`", "Extracts the encryption metadata from the given entity, setting them to be utf-8 strings.\n If no encryption metadata is present, will return None for all return values unless\n require_encryption is true, in which case the method will throw.", " :param en...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_xml_to_service_properties 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 _convert_xml_to_service_properties API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
<?xml version="1.0" encoding="utf-8"?> <StorageServiceProperties> <Logging> <Version>version-number</Version> <Delete>true|false</Delete> <Read>true|false</Read> <Write>true|false</Write> <RetentionPolicy> <Enabled>true|false</Enabl...
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n <StorageServiceProperties>\n <Logging>\n <Version>version-number</Version>\n <Delete>true|false</Delete>\n <Read>true|false</Read>\n <Write>true|false</Write>\n <RetentionPolicy>\n <Enabled>true...
364
false
Azure/azure-multiapi-storage-python
_convert_xml_to_service_properties
9,907
LDU_FT/hactar-is/frink/find_by
LDU_FT
[ "<BEGIN>\n## `delete`", "Delete the current instance from the DB.\n<END>", "<BEGIN>\n## `get`", "Get a single instance by pk id.", " :param id: The UUID of the instance you want to retrieve.\n<END>", "<BEGIN>\n## `filter`", "Fetch a list of instances.", " :param order_by: column ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Find all items that matches your a column/value. :param column: column to search. :param value: value to look for in `column`. :param limit: How many rows to fetch. :param order_by: column on which to order the results. \ To change the sort, prepend with < or...
"Find all items that matches your a column/value.\n\n :param column: column to search.\n :param value: value to look for in `column`.\n :param limit: How many rows to fetch.\n :param order_by: column on which to order the results. \\\n To change the sort, prepend w...
19
false
hactar-is/frink
find_by
9,908
LDU_FT/LinuxChristian/pyW215/auth
LDU_FT
[ "<BEGIN>\n## `controlParameters`", "Returns control parameters as XML.", " :type module: str\n :type status: str\n :param module: The module number/ID\n :param status: The state to set (i.e. true (on) or false (off))\n :return XML string to join with payload\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth API. 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 auth API. 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...
Authenticate using the SOAP interface. Authentication is a two-step process. First a initial payload is sent to the device requesting additional login information in the form of a publickey, a challenge string and a cookie. These values are then hashed by a MD5 algorithm producing a pri...
"Authenticate using the SOAP interface.\n\n Authentication is a two-step process. First a initial payload\n is sent to the device requesting additional login information in the form\n of a publickey, a challenge string and a cookie.\n These values are then hashed by a MD5 algorithm producing...
21
false
LinuxChristian/pyW215
auth
9,909
LDU_FT/RobinNil/file_read_backwards/_find_furthest_new_line
LDU_FT
[ "<BEGIN>\n## `_get_next_chunk`", "Return next chunk of data that we would from the file pointer.", " Args:\n fp: file-like object\n previously_read_position: file pointer position that we have read from\n chunk_size: desired read chunk_size", " Returns:\n (bytestring, int): d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_furthest_new_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_furthest_new_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return -1 if read_buffer does not contain new line otherwise the position of the rightmost newline. Args: read_buffer (bytestring) Returns: int: The right most position of new line character in read_buffer if found, else -1
"Return -1 if read_buffer does not contain new line otherwise the position of the rightmost newline.\n\n Args:\n read_buffer (bytestring)\n\n Returns:\n int: The right most position of new line character in read_buffer if found, else -1"
32
false
RobinNil/file_read_backwards
_find_furthest_new_line
9,910
LDU_FT/snobear/ezmomi/get_resource_pool
LDU_FT
[ "<BEGIN>\n## `add_boolean_argument`", "Add a boolean argument to an ArgumentParser instance.\n<END>", "<BEGIN>\n## `list_objects`", "Command Section: list\n List available VMware objects\n<END>", "<BEGIN>\n## `clone`", "Command Section: clone\n Clone a VM from a template\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resource_pool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resource_pool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Find a resource pool given a pool name for desired cluster
"Find a resource pool given a pool name for desired cluster"
19
false
snobear/ezmomi
get_resource_pool
9,911
LDU_FT/instacart/jardin/delete
LDU_FT
[ "<BEGIN>\n## `index_by`", "Returns a dict with a key for each value of `field` and the first record with that value as value.\n :param field: Name of the field to index by.\n :type field: string.\n<END>", "<BEGIN>\n## `destroy`", "Deletes the record. If the model has ``soft_delete`` activated, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Performs a DELETE statement on the model's table in the master database. :param where: The WHERE clause. This can be a plain string, a dict or an array. :type where: string, dict, array
"Performs a DELETE statement on the model's table in the master database.\n\n :param where: The WHERE clause. This can be a plain string, a dict or an array.\n :type where: string, dict, array"
41
false
instacart/jardin
delete
9,912
LDU_FT/echonest/pyechonest/get_familiarity
LDU_FT
[ "<BEGIN>\n## `write_xspf`", "send me a list of (artist,title,mp3_url)\n<END>", "<BEGIN>\n## `callm`", "Call the api! \n Param_dict is a *regular* *python* *dictionary* so if you want to have multi-valued params\n put them in a list.", " ** note, if we require 2.6, we can get rid of this timeout mun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_familiarity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_familiarity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get our numerical estimation of how familiar an artist currently is to the world Args: Kwargs: cache (bool): A boolean indicating whether or not the cached value should be used (if available). Defaults to True. Returns: A float representing fami...
"Get our numerical estimation of how familiar an artist currently is to the world\n \n Args:\n \n Kwargs:\n cache (bool): A boolean indicating whether or not the cached value should be used (if available). Defaults to True.\n \n Returns:\n A float represen...
438
false
echonest/pyechonest
get_familiarity
9,913
LDU_FT/MLAB-project/pymlab/obj_repr
LDU_FT
[ "<BEGIN>\n## `Move`", "Move some distance units from current position\n<END>", "<BEGIN>\n## `SPI_write_byte`", "Writes a data to a SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `SPI_write`", "Writes data to SPI device selected by chipselect bit.\n<END>", "<BEGIN>\n## `GPIO_read`", "Read...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obj_repr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obj_repr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns human-readable string representation of an object given that it has been created by calling constructor with the specified positional and keyword arguments. This is a convenience function to help implement custom `__repr__()` methods. For example: >>> class Animal(object): ... def _...
"Returns human-readable string representation of an object given that it has\n been created by calling constructor with the specified positional and\n keyword arguments.\n\n This is a convenience function to help implement custom `__repr__()`\n methods. For example:\n\n >>> class Animal(object):\n ......
99
false
MLAB-project/pymlab
obj_repr
9,914
LDU_FT/blockstack/virtualchain/fetch_txs_rpc
LDU_FT
[ "<BEGIN>\n## `lpad`", "Left-pad a given string (msg) with a character (symbol) for a given number of bytes (length).\n Return the padded string\n<END>", "<BEGIN>\n## `changebase`", "Change a string's characters from one base to another.\n Return the re-encoded string\n<END>", "<BEGIN>\n## `num_to_var_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_txs_rpc API. 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 fetch_txs_rpc API. 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...
Fetch the given list of transactions via the JSON-RPC interface. Return a dict of parsed transactions on success, keyed by txid. Return None on error
"Fetch the given list of transactions\n via the JSON-RPC interface.\n\n Return a dict of parsed transactions on success,\n keyed by txid.\n\n Return None on error"
491
false
blockstack/virtualchain
fetch_txs_rpc
9,915
LDU_FT/push-things/wallabag_api/post_annotations
LDU_FT
[ "<BEGIN>\n## `query`", "Do a query to the System API", " :param path: url to the API\n :param method: the kind of query to do\n :param params: a dict with all the\n necessary things to query the API\n :return json data\n<END>", "<BEGIN>\n## `handle_json_response`", "get th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_annotations API. 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 post_annotations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
POST /api/annotations/{entry}.{_format} Creates a new annotation. :param entry \w+ integer The entry ID :return
"POST /api/annotations/{entry}.{_format}\n\n Creates a new annotation.\n\n :param entry \t\\w+ \tinteger \tThe entry ID\n\n :return"
68
false
push-things/wallabag_api
post_annotations
9,916
LDU_FT/ericflo/hurricane/auto_subscribe
LDU_FT
[ "<BEGIN>\n## `unquote_header_value`", "r\"\"\"Unquotes a header value. (Reversal of :func:`quote_header_value`).\n This does not use the real unquoting but what browsers are actually\n using for quoting.", " :param value: the header value to unquote.\n<END>", "<BEGIN>\n## `parse_cookie`", "Parse a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_subscribe API. 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 auto_subscribe API. 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...
Called to subscribe the handlers on init.
"Called to subscribe the handlers on init."
12
false
ericflo/hurricane
auto_subscribe
9,917
LDU_FT/tanghaibao/jcvi/blat
LDU_FT
[ "<BEGIN>\n## `patience_sort`", "Patience sort an iterable, xs.", " This function generates a series of pairs (x, pile), where \"pile\"\n is the 0-based index of the pile \"x\" should be placed on top of.\n Elements of \"xs\" must be less-than comparable.\n<END>", "<BEGIN>\n## `longest_monotonic_subse...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blat API. 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 blat API. 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...
%prog blat map1.txt ref.fasta Make ALLMAPS input csv based on sequences. The tab-delimited txt file include: name, LG, position, sequence.
"%prog blat map1.txt ref.fasta\n\n Make ALLMAPS input csv based on sequences. The tab-delimited txt file\n include: name, LG, position, sequence."
3,304
true
tanghaibao/jcvi
blat
9,918
LDU_FT/merll/docker-map/get_network_create_kwargs
LDU_FT
[ "<BEGIN>\n## `get_state_actions`", "For attached volumes, missing containers are created and initial containers are started and prepared with\n permissions. Outdated containers or containers with errors are recreated. The latter also applies to instance\n containers. Similarly, instance containers a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_network_create_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_network_create_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Generates keyword arguments for the Docker client to create a network. :param action: Action configuration. :type action: ActionConfig :param network_name: Network name or id. :type network_name: unicode | str :param kwargs: Additional keyword arguments to complement or override...
"Generates keyword arguments for the Docker client to create a network.\n\n :param action: Action configuration.\n :type action: ActionConfig\n :param network_name: Network name or id.\n :type network_name: unicode | str\n :param kwargs: Additional keyword arguments to complement or o...
584
false
merll/docker-map
get_network_create_kwargs
9,919
LDU_FT/craft-ai/craft-ai-client-python/add_operations
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Returns the Time instance as a usable dictionary for craftai\n<END>", "<BEGIN>\n## `create_agent`", "Create an agent.", " :param dict configuration: Form given by the craftai documentation.\n :param str agent_id: Optional. The id of the agent to create. It\n must be an str...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_operations API. 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 add_operations API. 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...
Add operations to an agent. :param str agent_id: The id of the agent to delete. It must be an str containing only characters in "a-zA-Z0-9_-" and must be between 1 and 36 characters. It must referenced an existing agent. :param list operations: Contains dictionnaries that has the form given in the ...
"Add operations to an agent.\n\n :param str agent_id: The id of the agent to delete. It must be\n an str containing only characters in \"a-zA-Z0-9_-\" and must be\n between 1 and 36 characters. It must referenced an existing agent.\n :param list operations: Contains dictionnaries that has the\n form give...
80
false
craft-ai/craft-ai-client-python
add_operations
9,920
LDU_FT/blockstack/blockstack-core/ping
LDU_FT
[ "<BEGIN>\n## `anyword_substring_search_inner`", "return True if ANY target_word matches a query_word\n<END>", "<BEGIN>\n## `search_people_by_bio`", "queries lucene index to find a nearest match, output is profile username\n<END>", "<BEGIN>\n## `order_search_results`", "order of results should be a) query ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ping API. 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 ping API. 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...
rpc_ping Returns {'alive': True} on succcess Returns {'error': ...} on error
"rpc_ping\n Returns {'alive': True} on succcess\n Returns {'error': ...} on error"
1,580
true
blockstack/blockstack-core
ping
9,921
LDU_FT/earlye/nephele/do_logGroup
LDU_FT
[ "<BEGIN>\n## `do_mfa`", "Enter a 6-digit MFA token. Nephele will execute the appropriate\n `aws` command line to authenticate that token. ", " mfa -h for more details\n<END>", "<BEGIN>\n## `do_up`", "Navigate up by one level.", " For example, if you are in `(aws)/stack:.../asg:.../`, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_logGroup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_logGroup API. 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...
Go to the specified log group. logGroup -h for detailed help
"Go to the specified log group. logGroup -h for detailed help"
52
false
earlye/nephele
do_logGroup
9,922
LDU_FT/scivision/pymap3d/enu2aer
LDU_FT
[ "<BEGIN>\n## `anglesep_meeus`", "Parameters\n ----------", " lon0 : float or numpy.ndarray of float\n longitude of first point\n lat0 : float or numpy.ndarray of float\n latitude of first point\n lon1 : float or numpy.ndarray of float\n longitude of second point\n lat1 : floa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enu2aer API. 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 enu2aer API. 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...
ENU to Azimuth, Elevation, Range Parameters ---------- e : float or np.ndarray of float ENU East coordinate (meters) n : float or np.ndarray of float ENU North coordinate (meters) u : float or np.ndarray of float ENU Up coordinate (meters) deg : bool, optional d...
"ENU to Azimuth, Elevation, Range\n\n Parameters\n ----------\n\n e : float or np.ndarray of float\n ENU East coordinate (meters)\n n : float or np.ndarray of float\n ENU North coordinate (meters)\n u : float or np.ndarray of float\n ENU Up coordinate (meters)\n deg : bool, option...
293
false
scivision/pymap3d
enu2aer
9,923
LDU_FT/vertexproject/synapse/parse_cmd_kwlist
LDU_FT
[ "<BEGIN>\n## `openDatFile`", "Open a file-like object using a pkg relative path.", " Example:", " fd = openDatFile('foopkg.barpkg/wootwoot.bin')\n<END>", "<BEGIN>\n## `scrape`", "Scrape types from a blob of text and return node tuples.", " Args:\n text (str): Text to scrape.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_cmd_kwlist API. 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 parse_cmd_kwlist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse a foo:bar=<valu>[,...] kwarg list into (prop,valu),off
"Parse a foo:bar=<valu>[,...] kwarg list into (prop,valu),off"
1,135
true
vertexproject/synapse
parse_cmd_kwlist
9,924
LDU_FT/MoseleyBioinformaticsLab/nmrstarlib/_build_saveframe
LDU_FT
[ "<BEGIN>\n## `csview`", "View chemical shift values organized by amino acid residue.", " :param view: Open in default image viewer or save file in current working directory quietly.\n :type view: :py:obj:`True` or :py:obj:`False`\n :return: None\n :rtype: :py:obj:`None`\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_saveframe API. 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 _build_saveframe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Build NMR-STAR file saveframe. :param lexer: instance of the lexical analyzer. :type lexer: :func:`~nmrstarlib.bmrblex.bmrblex` :return: Saveframe dictionary. :rtype: :py:class:`collections.OrderedDict`
"Build NMR-STAR file saveframe.\n\n :param lexer: instance of the lexical analyzer.\n :type lexer: :func:`~nmrstarlib.bmrblex.bmrblex`\n :return: Saveframe dictionary.\n :rtype: :py:class:`collections.OrderedDict`"
117
false
MoseleyBioinformaticsLab/nmrstarlib
_build_saveframe
9,925
LDU_FT/dubsmash/config-reader/_get
LDU_FT
[ "<BEGIN>\n## `_read_file_data`", "Attempts to read the contents of the given configuration file.\n :param path: Path to a configuration file.\n :raises: ConfigParseError if file does not exist or cannot be read.\n :return: Dictionary of configuration data.\n<END>", "<BEGIN>\n## `get_int`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get API. 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 _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 do...
Iterate over all the config dictionaries that have been loaded into the list of configs. If value is found, immediately return it. Otherwise, raise a ConfigKeyNotFoundError with an appropriate message. :param key: The variable to search for in the possible list of configs. :return: The correspon...
"Iterate over all the config dictionaries that have been loaded into the list of configs. If value is found,\n immediately return it. Otherwise, raise a ConfigKeyNotFoundError with an appropriate message.\n :param key: The variable to search for in the possible list of configs.\n :return: The corre...
17
false
dubsmash/config-reader
_get
9,926
LDU_FT/todddeluca/dones/add
LDU_FT
[ "<BEGIN>\n## `get`", "Get a default dones object for ns. If no dones object exists for ns yet,\n a DbDones object will be created, cached, and returned.\n<END>", "<BEGIN>\n## `open_conn`", "Return an open mysql db connection using the given credentials. Use\n `retries` and `sleep` to be robust to the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
add key to the namespace. it is fine to add a key multiple times.
"add key to the namespace. it is fine to add a key multiple times."
30
false
todddeluca/dones
add
9,927
LDU_FT/wummel/dosage/print_results
LDU_FT
[ "<BEGIN>\n## `exception`", "Write error message with traceback info.\n<END>", "<BEGIN>\n## `write`", "Write message with indentation, context and optional timestamp.\n<END>", "<BEGIN>\n## `contains_case_insensitive`", "Check if key is in adict. The search is case insensitive.\n<END>", "<BEGIN>\n## `fini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_results API. 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 print_results API. 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...
Print all comics that have at least the given number of minimum comic strips.
"Print all comics that have at least the given number of minimum comic strips."
141
false
wummel/dosage
print_results
9,928
LDU_FT/frostming/marko/find
LDU_FT
[ "<BEGIN>\n## `camel_to_snake_case`", "Takes a camelCased string and converts to snake_case.\n<END>", "<BEGIN>\n## `is_paired`", "Check if the text only contains:\n 1. blackslash escaped parentheses, or\n 2. parentheses paired.\n<END>", "<BEGIN>\n## `match_prefix`", "Check if the line starts with giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. 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 find API. 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...
This method should return an iterable containing matches of this element.
"This method should return an iterable containing matches of this element."
49
false
frostming/marko
find
9,929
LDU_FT/horejsek/python-fastjsonschema/walk
LDU_FT
[ "<BEGIN>\n## `indent`", "Decorator for allowing to use method as normal method or with\n context manager for auto-indenting code blocks.\n<END>", "<BEGIN>\n## `resolve_path`", "Return definition from path.\r", " Path is unescaped according https://tools.ietf.org/html/rfc6901\n<END>", "<BEGIN>\n## `r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk API. 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 walk API. 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...
Walk thru schema and dereferencing ``id`` and ``$ref`` instances
"Walk thru schema and dereferencing ``id`` and ``$ref`` instances"
157
false
horejsek/python-fastjsonschema
walk
9,930
LDU_FT/numba/llvmlite/set_object_cache
LDU_FT
[ "<BEGIN>\n## `create_mcjit_compiler`", "Create a MCJIT ExecutionEngine from the given *module* and\n *target_machine*.\n<END>", "<BEGIN>\n## `add_module`", "Ownership of module is transferred to the execution engine\n<END>", "<BEGIN>\n## `target_data`", "The TargetData for this execution engine.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_object_cache API. 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_object_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Set the object cache "notifyObjectCompiled" and "getBuffer" callbacks to the given Python functions.
"Set the object cache \"notifyObjectCompiled\" and \"getBuffer\"\n callbacks to the given Python functions."
226
false
numba/llvmlite
set_object_cache
9,931
LDU_FT/pecan/pecan/log_message
LDU_FT
[ "<BEGIN>\n## `route`", "This function is used to define an explicit route for a path segment.", " You generally only want to use this in situations where your desired path\n segment is not a valid Python variable/function name.", " For example, if you wanted to be able to route to:", " /path/wit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
overrides the ``log_message`` method from the wsgiref server so that normal logging works with whatever configuration the application has been set to. Levels are inferred from the HTTP status code, 4XX codes are treated as warnings, 5XX as errors and everything else as INFO level.
"overrides the ``log_message`` method from the wsgiref server so that\n normal logging works with whatever configuration the application has\n been set to.\n\n Levels are inferred from the HTTP status code, 4XX codes are treated as\n warnings, 5XX as errors and everything else as INFO level....
157
false
pecan/pecan
log_message
9,932
LDU_FT/cggh/scikit-allel/to_sparse
LDU_FT
[ "<BEGIN>\n## `mean_pairwise_difference`", "Calculate for each variant the mean number of pairwise differences\n between chromosomes sampled from within a single population.", " Parameters\n ----------", " ac : array_like, int, shape (n_variants, n_alleles)\n Allele counts array.\n an : a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_sparse API. 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 to_sparse API. 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 into a sparse matrix. Parameters ---------- format : {'coo', 'csc', 'csr', 'dia', 'dok', 'lil'} Sparse matrix format. kwargs : keyword arguments Passed through to sparse matrix constructor. Returns ------- m : scipy.sparse.spmatri...
"Convert into a sparse matrix.\n\n Parameters\n ----------\n format : {'coo', 'csc', 'csr', 'dia', 'dok', 'lil'}\n Sparse matrix format.\n kwargs : keyword arguments\n Passed through to sparse matrix constructor.\n\n Returns\n -------\n m : scipy.sp...
1,142
true
cggh/scikit-allel
to_sparse
9,933
LDU_FT/dlintott/gns3-converter/add_conf_item
LDU_FT
[ "<BEGIN>\n## `setup_argparse`", "Setup the argparse argument parser", " :return: instance of argparse\n :rtype: ArgumentParser\n<END>", "<BEGIN>\n## `do_conversion`", "Convert the topology", " :param dict topology_def: Dict containing topology file and snapshot bool.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_conf_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_conf_item API. 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...
Add a hypervisor configuration item :param instance: Hypervisor instance :param item: Item to add
"Add a hypervisor configuration item\n\n :param instance: Hypervisor instance\n :param item: Item to add"
140
false
dlintott/gns3-converter
add_conf_item
9,934
LDU_FT/MAVENSDC/PyTplot/tplot_save
LDU_FT
[ "<BEGIN>\n## `del_data`", "This function will delete tplot variables that are already stored in memory. ", " Parameters:\n name : str \n Name of the tplot variable to be deleted. If no name is provided, then \n all tplot variables will be deleted. ", " Returns:\n N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tplot_save API. 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 tplot_save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
This function will save tplot variables into a single file by using the python "pickle" function. This file can then be "restored" using tplot_restore. This is useful if you want to end the pytplot session, but save all of your data/options. All variables and plot options can be read back into tplot with the ...
"This function will save tplot variables into a single file by using the python \"pickle\" function.\n This file can then be \"restored\" using tplot_restore. This is useful if you want to end the pytplot session,\n but save all of your data/options. All variables and plot options can be read back into tplot wi...
155
false
MAVENSDC/PyTplot
tplot_save
9,935
LDU_FT/F483/btctxstore/add_hash160data
LDU_FT
[ "<BEGIN>\n## `_recover_public_key`", "Recover a public key from a signature.\n See SEC 1: Elliptic Curve Cryptography, section 4.1.6, \"Public\n Key Recovery Operation\".\n http://www.secg.org/sec1-v2.pdf\n<END>", "<BEGIN>\n## `chunks`", "Split list into chunks of the given size.\n Original order ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_hash160data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_hash160data API. 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...
Writes <hexdata> as new Pay-to-PubkeyHash output to <rawtx>.
"Writes <hexdata> as new Pay-to-PubkeyHash output to <rawtx>."
41
false
F483/btctxstore
add_hash160data
9,936
LDU_FT/diux-dev/ncluster/wait_for_file
LDU_FT
[ "<BEGIN>\n## `make_job`", "Create a job using current backend. Blocks until all tasks are up and initialized.", " Args:\n name: name of the job\n run_name: name of the run (auto-assigned if empty)\n num_tasks: number of tasks\n install_script: bash-runnable script\n **kwargs:", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Waits for file maximum of max_wait_sec. Returns True if file was detected within specified max_wait_sec Args: fn: filename on task machine max_wait_sec: how long to wait in seconds check_interval: how often to check in seconds Returns: False if waiting was was cut short by max_wait_sec l...
"Waits for file maximum of max_wait_sec. Returns True if file was detected within specified max_wait_sec\n Args:\n fn: filename on task machine\n max_wait_sec: how long to wait in seconds\n check_interval: how often to check in seconds\n Returns:\n False if waiting was was cut short by max_wai...
136
false
diux-dev/ncluster
wait_for_file
9,937
LDU_FT/admiralobvious/vyper/unmarshall_key
LDU_FT
[ "<BEGIN>\n## `_get_env`", "Wrapper around os.getenv() which replaces characters\n in the original key. This allows env vars which have different keys\n than the config object keys.\n<END>", "<BEGIN>\n## `add_config_path`", "Add a path for Vyper to search for the config file in.\n Can be c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unmarshall_key API. 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 unmarshall_key API. 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...
Takes a single key and unmarshalls it into a class.
"Takes a single key and unmarshalls it into a class."
38
false
admiralobvious/vyper
unmarshall_key
9,938
LDU_FT/xolox/python-coloredlogs/connect_to_syslog
LDU_FT
[ "<BEGIN>\n## `install`", "Enable colored terminal output for Python's :mod:`logging` module.", " :param level: The default logging level (an integer or a string with a\n level name, defaults to :data:`DEFAULT_LOG_LEVEL`).\n :param logger: The logger to which the stream handler should be a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_to_syslog API. 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 connect_to_syslog API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create a :class:`~logging.handlers.SysLogHandler`. :param address: The device file or network address of the system logging daemon (a string or tuple, defaults to the result of :func:`find_syslog_address()`). :param facility: Refer to :class:`~logging.handlers.SysLogHand...
"Create a :class:`~logging.handlers.SysLogHandler`.\n\n :param address: The device file or network address of the system logging\n daemon (a string or tuple, defaults to the result of\n :func:`find_syslog_address()`).\n :param facility: Refer to :class:`~logging.handlers.SysL...
191
false
xolox/python-coloredlogs
connect_to_syslog
9,939
LDU_FT/openvax/isovar/copy
LDU_FT
[ "<BEGIN>\n## `initial_variant_sequences_from_reads`", "Get all unique sequences from reads spanning a variant locus. This will\n include partial sequences due to reads starting in the middle of the\n sequence around around a variant.\n<END>", "<BEGIN>\n## `trim_variant_sequences`", "Trim VariantSequence...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Make copy of this GeneticCode object with optional replacement values for all fields.
"Make copy of this GeneticCode object with optional replacement\n values for all fields."
333
false
openvax/isovar
copy
9,940
LDU_FT/PureStorage-OpenConnect/rest-client/create_volume
LDU_FT
[ "<BEGIN>\n## `_check_rest_version`", "Validate a REST API version is supported by the library and target array.\n<END>", "<BEGIN>\n## `_choose_rest_version`", "Return the newest REST API version supported by target array.\n<END>", "<BEGIN>\n## `_list_available_rest_versions`", "Return a list of the REST A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_volume API. 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_volume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create a volume and return a dictionary describing it. :param volume: Name of the volume to be created. :type volume: str :param size: Size in bytes, or string representing the size of the volume to be created. :type size: int or str :param \*\*kwargs: See t...
"Create a volume and return a dictionary describing it.\n\n :param volume: Name of the volume to be created.\n :type volume: str\n :param size: Size in bytes, or string representing the size of the\n volume to be created.\n :type size: int or str\n :param \\*\\*kwa...
166
false
PureStorage-OpenConnect/rest-client
create_volume
9,941
LDU_FT/portfoliome/foil/parse_broken_json
LDU_FT
[ "<BEGIN>\n## `_`", "ISO 8601 format. Interprets naive datetime as UTC with zulu suffix.\n<END>", "<BEGIN>\n## `create_key_filter`", "Generate combinations of key, value pairs for each key in properties.", " Examples\n --------\n properties = {'ent': ['geo_rev', 'supply_chain'], 'own', 'fi'}\n >>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_broken_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_broken_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parses broken JSON that the standard Python JSON module cannot parse. Ex: {success:true} Keys do not contain quotes and the JSON cannot be parsed using the regular json encoder. YAML happens to be a superset of JSON and can parse json without quotes.
"Parses broken JSON that the standard Python JSON module cannot parse.\n\n Ex: {success:true}\n\n Keys do not contain quotes and the JSON cannot be parsed using the regular json encoder.\n YAML happens to be a superset of JSON and can parse json without quotes."
89
false
portfoliome/foil
parse_broken_json
9,942
LDU_FT/astorfi/speechpy/filterbanks
LDU_FT
[ "<BEGIN>\n## `preemphasis`", "preemphasising on the signal.", " Args:\n signal (array): The input signal.\n shift (int): The shift step.\n cof (float): The preemphasising coefficient. 0 equals to no filtering.", " Returns:\n array: The pre-emphasized signal.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filterbanks API. 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 filterbanks API. 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...
Compute the Mel-filterbanks. Each filter will be stored in one rows. The columns correspond to fft bins. Args: num_filter (int): the number of filters in the filterbank, default 20. coefficients (int): (fftpoints//2 + 1). Default is 257. sampling_freq (float): the samplerate of the sign...
"Compute the Mel-filterbanks. Each filter will be stored in one rows.\n The columns correspond to fft bins.\n\n Args:\n num_filter (int): the number of filters in the filterbank, default 20.\n coefficients (int): (fftpoints//2 + 1). Default is 257.\n sampling_freq (float): the samplerate of t...
52
false
astorfi/speechpy
filterbanks
9,943
LDU_FT/selectel/pyte/ensure_vbounds
LDU_FT
[ "<BEGIN>\n## `default_char`", "An empty character with default foreground and background colors.\n<END>", "<BEGIN>\n## `display`", "A :func:`list` of screen lines as unicode strings.\n<END>", "<BEGIN>\n## `reset`", "Reset the terminal to its initial state.", " * Scrolling margins are reset to scr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_vbounds API. 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 ensure_vbounds API. 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...
Ensure the cursor is within vertical screen bounds. :param bool use_margins: when ``True`` or when :data:`~pyte.modes.DECOM` is set, cursor is bounded by top and and bottom margins, instead of ``[0; lines - 1]``.
"Ensure the cursor is within vertical screen bounds.\n\n :param bool use_margins: when ``True`` or when\n :data:`~pyte.modes.DECOM` is set,\n cursor is bounded by top and and bottom\n margins, instead of ``[0; lines -...
127
false
selectel/pyte
ensure_vbounds
9,944
LDU_FT/seequent/properties/serialize
LDU_FT
[ "<BEGIN>\n## `serialize`", "Serialize Singleton instance to a dictionary.", " This behaves identically to HasProperties.serialize, except it also\n saves the identifying name in the dictionary as well.\n<END>", "<BEGIN>\n## `deserialize`", "Create a Singleton instance from a serialized diction...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Serialize nested HasUID instances to a flat dictionary **Parameters**: * **include_class** - If True (the default), the name of the class will also be saved to the serialized dictionary under key :code:`'__class__'` * **save_dynamic** - If True, dynamic properties are writt...
"Serialize nested HasUID instances to a flat dictionary\n\n **Parameters**:\n\n * **include_class** - If True (the default), the name of the class\n will also be saved to the serialized dictionary under key\n :code:`'__class__'`\n * **save_dynamic** - If True, dynamic properties a...
252
false
seequent/properties
serialize
9,945
LDU_FT/ArangoDB-Community/pyArango/explain
LDU_FT
[ "<BEGIN>\n## `_create`", "Creates an index of any type according to postData\n<END>", "<BEGIN>\n## `createVertex`", "adds a vertex to the graph and returns it\n<END>", "<BEGIN>\n## `deleteVertex`", "deletes a vertex from the graph as well as al linked edges\n<END>", "<BEGIN>\n## `link`", "A shorthand ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the explain API. 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 explain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns an explanation of the query. Setting allPlans to True will result in ArangoDB returning all possible plans. False returns only the optimal plan
"Returns an explanation of the query. Setting allPlans to True will result in ArangoDB returning all possible plans. False returns only the optimal plan"
105
false
ArangoDB-Community/pyArango
explain
9,946
LDU_FT/SwissDataScienceCenter/renku-python/check_for_git_repo
LDU_FT
[ "<BEGIN>\n## `_jsonld`", "Return formatted graph in JSON-LD ``format`` function.\n<END>", "<BEGIN>\n## `_rdf2dot_simple`", "Create a simple graph of processes and artifacts.\n<END>", "<BEGIN>\n## `_rdf2dot_reduced`", "A reduced dot graph.", " Adapted from original source:\n https://rdflib.readthed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_for_git_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_for_git_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. Th...
Check if a url points to a git repository.
"Check if a url points to a git repository."
121
false
SwissDataScienceCenter/renku-python
check_for_git_repo
9,947
LDU_FT/edeposit/edeposit.amqp.ftp/parse_meta
LDU_FT
[ "<BEGIN>\n## `load_users`", "Read passwd file and return dict with users and all their settings.", " Args:\n path (str, default settings.LOGIN_FILE): path of the file,\n which will be loaded (default :attr:`ftp.settings.LOGIN_FILE`).", " Returns:\n (dict): username: {pass_hash, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_meta API. 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 parse_meta API. 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...
Parse `data` to EPublication. Args: filename (str): Used to choose right parser based at suffix. data (str): Content of the metadata file. Returns: EPublication: object.
"Parse `data` to EPublication.\n\n Args:\n filename (str): Used to choose right parser based at suffix.\n data (str): Content of the metadata file.\n\n Returns:\n EPublication: object."
166
false
edeposit/edeposit.amqp.ftp
parse_meta
9,948
LDU_FT/gamechanger/mongothon/create_model
LDU_FT
[ "<BEGIN>\n## `register`", "Registers the given function as a handler to be applied\n in response to the the given event.\n<END>", "<BEGIN>\n## `apply`", "Applies all middleware functions registered against the given\n event in order to the given document.\n<END>", "<BEGIN>\n## `deregister`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_model API. 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 create_model API. 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...
Main entry point to creating a new mongothon model. Both schema and Pymongo collection objects must be provided. Returns a new class which can be used as a model class. The class name of the model class by default is inferred from the provided collection (converted to camel case). Optionally, a cl...
"Main entry point to creating a new mongothon model. Both\n schema and Pymongo collection objects must be provided.\n\n Returns a new class which can be used as a model class.\n\n The class name of the model class by default is inferred\n from the provided collection (converted to camel case).\n Optional...
59
false
gamechanger/mongothon
create_model
9,949
LDU_FT/ethereum/pyethereum/format_to_example
LDU_FT
[ "<BEGIN>\n## `_canonical_type`", "Replace aliases to the corresponding type to compute the ids.\n<END>", "<BEGIN>\n## `method_id`", "Return the unique method id.", " The signature is defined as the canonical expression of the basic\n prototype, i.e. the function name with the parenthesised list of par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_to_example API. 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 format_to_example API. 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 table to *behave* example :param table: `(caption, rows)`, each item in `rows` is `(col1, col2,...)` :return
"format table to *behave* example\n :param table: `(caption, rows)`, each item in `rows` is `(col1, col2,...)`\n :return"
138
false
ethereum/pyethereum
format_to_example
9,950
LDU_FT/bodylabs/lace/uniquified_mesh
LDU_FT
[ "<BEGIN>\n## `copy`", "Returns a deep copy with all of the numpy arrays copied\n If only is a list of strings, i.e. ['f', 'v'], then only those properties will be copied\n<END>", "<BEGIN>\n## `concatenate`", "Concatenates an arbitrary number of meshes.", " Currently supports vertices, vertex c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uniquified_mesh API. 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 uniquified_mesh API. 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...
This function returns a copy of the mesh in which vertices are copied such that each vertex appears in only one face, and hence has only one texture
"This function returns a copy of the mesh in which vertices are copied such that\n each vertex appears in only one face, and hence has only one texture"
133
false
bodylabs/lace
uniquified_mesh
9,951
LDU_FT/ArchiveTeam/wpull/scrape_links
LDU_FT
[ "<BEGIN>\n## `_update_exit_code_from_stats`", "Set the current exit code based on the Statistics.\n<END>", "<BEGIN>\n## `is_response`", "Return whether the document is likely to be a Sitemap.\n<END>", "<BEGIN>\n## `is_file`", "Return whether the file is likely a Sitemap.\n<END>", "<BEGIN>\n## `parse_url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scrape_links API. 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 scrape_links API. 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...
Convenience function for scraping from a text string.
"Convenience function for scraping from a text string."
896
false
ArchiveTeam/wpull
scrape_links
9,952
LDU_FT/google-research/batch-ppo/reset
LDU_FT
[ "<BEGIN>\n## `count_weights`", "Count learnable parameters.", " Args:\n scope: Restrict the count to a variable scope.\n exclude: Regex to match variable names to exclude.\n graph: Operate on a graph other than the current default graph.", " Returns:\n Number of learnable parameters as integer.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. 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 reset API. 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...
Reset the environment. Args: blocking: Whether to wait for the result. Returns: New observation when blocking, otherwise callable that returns the new observation.
"Reset the environment.\n\n Args:\n blocking: Whether to wait for the result.\n\n Returns:\n New observation when blocking, otherwise callable that returns the new\n observation."
362
false
google-research/batch-ppo
reset
9,953
LDU_FT/dourvaris/nano-python/accounts_frontiers
LDU_FT
[ "<BEGIN>\n## `signature_unsafe`", "Not safe to use with secret keys or secret data.\n See module docstring. This function should be used for testing only.\n<END>", "<BEGIN>\n## `checkvalid`", "Not safe to use when any argument is secret.\n See module docstring. This function should be used only for\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accounts_frontiers 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 accounts_frontiers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns a list of pairs of account and block hash representing the head block for **accounts** list :param accounts: Accounts to return frontier blocks for :type accounts: list of str :raises: :py:exc:`nano.rpc.RPCException` >>> rpc.accounts_frontiers( ... accounts...
"Returns a list of pairs of account and block hash representing the\n head block for **accounts** list\n\n :param accounts: Accounts to return frontier blocks for\n :type accounts: list of str\n\n :raises: :py:exc:`nano.rpc.RPCException`\n\n >>> rpc.accounts_frontiers(\n ... ...
574
false
dourvaris/nano-python
accounts_frontiers
9,954
LDU_FT/numan/py-analytics/_get_daily_date_range
LDU_FT
[ "<BEGIN>\n## `_get_closest_week`", "Gets the closest monday to the date provided.\n<END>", "<BEGIN>\n## `_get_daily_date_range`", "Get the range of months that we need to use as keys to scan redis.\n<END>", "<BEGIN>\n## `_get_weekly_date_range`", "Gets the range of years that we need to use as keys to get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_daily_date_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_daily_date_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get the range of months that we need to use as keys to scan redis.
"Get the range of months that we need to use as keys to scan redis."
54
false
numan/py-analytics
_get_daily_date_range
9,955
LDU_FT/shad7/tvrenamer/get_series_by_id
LDU_FT
[ "<BEGIN>\n## `execute`", "Renames a file based on the name generated using metadata.", " :param str filename: absolute path and filename of original file\n :param str formatted_name: absolute path and new filename\n<END>", "<BEGIN>\n## `get_series_by_name`", "Perform lookup for series", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_series_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_series_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Perform lookup for series :param int series_id: series id of series :returns: instance of series :rtype: object
"Perform lookup for series\n\n :param int series_id: series id of series\n :returns: instance of series\n :rtype: object"
135
false
shad7/tvrenamer
get_series_by_id
9,956
LDU_FT/pvlib/pvlib-python/_times_to_hours_after_local_midnight
LDU_FT
[ "<BEGIN>\n## `systemdef`", "Generates a dict of system parameters used throughout a simulation.", " Parameters\n ----------", " meta : dict\n meta dict either generated from a TMY file using readtmy2 or\n readtmy3, or a dict containing at least the following fields:", " ===...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _times_to_hours_after_local_midnight API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _times_to_hours_after_local_midnight API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
convert local pandas datetime indices to array of hours as floats
"convert local pandas datetime indices to array of hours as floats"
1,499
true
pvlib/pvlib-python
_times_to_hours_after_local_midnight
9,957
LDU_FT/TheOneHyer/arandomness/find_branches
LDU_FT
[ "<BEGIN>\n## `add_children`", "Adds new children nodes after filtering for duplicates", " Args:\n children (list): list of OmniTree nodes to add as children\n<END>", "<BEGIN>\n## `add_parents`", "Adds new parent nodes after filtering for duplicates", " Args:\n parents (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_branches API. 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 find_branches API. 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...
Recursively constructs a list of pointers of the tree's structure Args: labels (bool): If True, returned lists consist of node labels. If False (default), lists consist of node pointers. This option is mostly intended for ...
"Recursively constructs a list of pointers of the tree's structure\n\n Args:\n labels (bool): If True, returned lists consist of node labels.\n If False (default), lists consist of node\n pointers. This option is mostly intended for\n ...
41
false
TheOneHyer/arandomness
find_branches
9,958
LDU_FT/alfred82santa/dirty-loader/register_namespace
LDU_FT
[ "<BEGIN>\n## `register_module`", "Register a module. You could indicate position inside inner list.", " :param module: must be a string or a module object to register.\n :type module: str\n :param idx: position where you want to insert new module. By default it is inserted at the end.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_namespace 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 register_namespace 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...
Register a namespace. :param namespace: Namespace tag. :type namespace: str :param module: must be a string or a module object to register. :type module: str
"Register a namespace.\n\n :param namespace: Namespace tag.\n :type namespace: str\n :param module: must be a string or a module object to register.\n :type module: str"
33
false
alfred82santa/dirty-loader
register_namespace
9,959
LDU_FT/s1s1ty/py-jsonq/chunk
LDU_FT
[ "<BEGIN>\n## `__parse_json_data`", "Process Json data", " :@param data\n :@type data: json/dict", " :throws TypeError\n<END>", "<BEGIN>\n## `__parse_json_file`", "Process Json file data", " :@param file_path\n :@type file_path: string", " :@throws IOError\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunk API. 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 chunk API. 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...
Group the resulted collection to multiple chunk :@param size: 0 :@type size: integer :@return Chunked List
"Group the resulted collection to multiple chunk\n\n :@param size: 0\n :@type size: integer\n\n :@return Chunked List"
71
false
s1s1ty/py-jsonq
chunk
9,960
LDU_FT/ziwenxie/netease-dl/select_one_user
LDU_FT
[ "<BEGIN>\n## `download_song_by_search`", "Download a song by its name.", " :params song_name: song name.\n<END>", "<BEGIN>\n## `download_song_by_id`", "Download a song by id and save it to disk.", " :params song_id: song id.\n :params song_name: song name.\n :params folder: sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_one_user API. 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 select_one_user API. 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...
Display the users returned by search api. :params users: API['result']['userprofiles'] :return: a User object.
"Display the users returned by search api.\n\n :params users: API['result']['userprofiles']\n :return: a User object."
99
false
ziwenxie/netease-dl
select_one_user
9,961
LDU_FT/jongracecox/anybadge/badge_color
LDU_FT
[ "<BEGIN>\n## `main`", "Generate a badge based on command line arguments.\n<END>", "<BEGIN>\n## `value_is_int`", "Identify whether the value text is an int.\n<END>", "<BEGIN>\n## `color_split_position`", "The SVG x position where the color split should occur.\n<END>", "<BEGIN>\n## `badge_width`", "The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the badge_color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the badge_color API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Find the badge color based on the thresholds.
"Find the badge color based on the thresholds."
15
false
jongracecox/anybadge
badge_color
9,962
LDU_FT/micahhausler/container-transform/ingest_volumes_param
LDU_FT
[ "<BEGIN>\n## `_read_stream`", "We override the return signature of\n ``super(BaseTransformer, self)._read_stream()`` to return extra volume\n data. This is intentional.", " :param stream: A file like object\n :returns: Return the family name, containers, and volumes. If there are\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ingest_volumes_param 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 ingest_volumes_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This is for ingesting the "volumes" of a task description
"This is for ingesting the \"volumes\" of a task description"
61
false
micahhausler/container-transform
ingest_volumes_param
9,963
LDU_FT/trolldbois/ctypeslib/get_literal_kind_affinity
LDU_FT
[ "<BEGIN>\n## `init_fundamental_types`", "Registers all fundamental typekind handlers\n<END>", "<BEGIN>\n## `_handle_fundamental_types`", "Handles POD types nodes.\n see init_fundamental_types for the registration.\n<END>", "<BEGIN>\n## `_array_handler`", "Handles all array types.\n Resolves ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_literal_kind_affinity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_literal_kind_affinity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
return the list of fundamental types that are adequate for which this literal_kind is adequate
"return the list of fundamental types that are adequate for which\n this literal_kind is adequate"
88
false
trolldbois/ctypeslib
get_literal_kind_affinity
9,964
LDU_FT/jmoiron/humanize/naturaldate
LDU_FT
[ "<BEGIN>\n## `abs_timedelta`", "Returns an \"absolute\" value for a timedelta, always representing a\n time distance.\n<END>", "<BEGIN>\n## `date_and_delta`", "Turn a value into a date and a timedelta which represents how long ago\n it was. If that's not possible, return (None, value).\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the naturaldate API. 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 naturaldate API. 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...
Like naturalday, but will append a year for dates that are a year ago or more.
"Like naturalday, but will append a year for dates that are a year\n ago or more."
28
false
jmoiron/humanize
naturaldate
9,965
LDU_FT/danielhrisca/asammdf/_append_dataframe
LDU_FT
[ "<BEGIN>\n## `extract_cncomment_xml`", "extract *TX* tag or otherwise the *common_properties* from a xml comment", " Paremeters\n ----------\n comment : str\n xml string comment", " Returns\n -------\n comment : str\n extracted string\n<END>", "<BEGIN>\n## `matlab_compatible`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _append_dataframe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _append_dataframe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Appends a new data group from a Pandas data frame.
"Appends a new data group from a Pandas data frame."
381
false
danielhrisca/asammdf
_append_dataframe
9,966
LDU_FT/alecthomas/injector/provider
LDU_FT
[ "<BEGIN>\n## `provider`", "Decorator for :class:`Module` methods, registering a provider of a type.", " >>> class MyModule(Module):\n ... @provider\n ... def provide_name(self) -> str:\n ... return 'Bob'", " @provider-decoration implies @inject so you can omit it and things will\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the provider API. 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 provider API. 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...
Decorator for :class:`Module` methods, registering a provider of a type. >>> class MyModule(Module): ... @provider ... def provide_name(self) -> str: ... return 'Bob' @provider-decoration implies @inject so you can omit it and things will work just the same: >>> class MyModule2(...
"Decorator for :class:`Module` methods, registering a provider of a type.\n\n >>> class MyModule(Module):\n ... @provider\n ... def provide_name(self) -> str:\n ... return 'Bob'\n\n @provider-decoration implies @inject so you can omit it and things will\n work just the same:\n\n >>> class...
60
false
alecthomas/injector
provider
9,967
LDU_FT/BetterWorks/django-anonymizer/lorem
LDU_FT
[ "<BEGIN>\n## `varchar`", "Returns a chunk of text, of maximum length 'max_length'\n<END>", "<BEGIN>\n## `simple_pattern`", "Use a simple pattern to make the field - # is replaced with a random number,\n ? with a random letter.\n<END>", "<BEGIN>\n## `datetime`", "Returns a random datetime. If 'val' ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lorem API. 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 lorem API. 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...
Generates a paragraph of lorem ipsum text
"Generates a paragraph of lorem ipsum text"
57
false
BetterWorks/django-anonymizer
lorem
9,968
LDU_FT/inveniosoftware/invenio-oauthclient/disconnect_handler
LDU_FT
[ "<BEGIN>\n## `response_token_setter`", "Extract token from response and set it for the user.", " :param remote: The remote application.\n :param resp: The response.\n :raises invenio_oauthclient.errors.OAuthClientError: If authorization with\n remote service failed.\n :raises invenio_oauthcli...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Handle unlinking of remote account. :param remote: The remote application. :returns: The HTML response.
"Handle unlinking of remote account.\n\n :param remote: The remote application.\n :returns: The HTML response."
147
false
inveniosoftware/invenio-oauthclient
disconnect_handler
9,969
LDU_FT/tijme/not-your-average-web-crawler/patch_with_options
LDU_FT
[ "<BEGIN>\n## `get_new_requests`", "Retrieve all the new request that were found in this request.", " Returns:\n list(:class:`nyawc.http.Request`): A list of request objects.\n<END>", "<BEGIN>\n## `__make_request`", "Execute a request with the given data.", " Args:\n url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_with_options 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 patch_with_options 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...
Patch the given request with the given options (e.g. user agent). Args: request (:class:`nyawc.http.Request`): The request to patch. options (:class:`nyawc.Options`): The options to patch the request with. parent_queue_item (:class:`nyawc.QueueItem`): The parent queue item o...
"Patch the given request with the given options (e.g. user agent).\n\n Args:\n request (:class:`nyawc.http.Request`): The request to patch.\n options (:class:`nyawc.Options`): The options to patch the request with.\n parent_queue_item (:class:`nyawc.QueueItem`): The parent queue ...
220
false
tijme/not-your-average-web-crawler
patch_with_options
9,970
LDU_FT/jupyterhub/chartpress/git_remote
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 git_remote API. 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 git_remote API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return the URL for remote git repository. Depending on the system setup it returns ssh or https remote.
"Return the URL for remote git repository.\n\n Depending on the system setup it returns ssh or https remote."
31
false
jupyterhub/chartpress
git_remote
9,971
LDU_FT/infinite-library/ghetto/drop_it
LDU_FT
[ "<BEGIN>\n## `confirm`", "Console confirmation dialog based on raw_input.\n<END>", "<BEGIN>\n## `read_file`", "Read file, convert wildcards into regular expressions, skip empty lines\n and comments.\n<END>", "<BEGIN>\n## `drop_it`", "The found torrents should be in filters list and shouldn't be in blac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_it API. 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 drop_it API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
The found torrents should be in filters list and shouldn't be in blacklist.
"The found torrents should be in filters list and shouldn't be in blacklist."
10
false
infinite-library/ghetto
drop_it
9,972