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/SteveMcGrath/pySecurityCenter/download_scans | LDU_FT | [
"<BEGIN>\n## `gen_csv`",
"csv SecurityCenterObj, AssetListName, CSVFields, EmailAddress\n<END>",
"<BEGIN>\n## `login`",
"Logs the user into SecurityCenter and stores the needed token and cookies.\n<END>",
"<BEGIN>\n## `analysis`",
"Analysis\n A thin wrapper to handle vuln/event/mobile/log analysis ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_scans API.
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 download_scans API.
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... | Scan Downloader
Here we will attempt to download all of the scans that have completed between
now and AGE days ago.
sc = SecurityCenter5 object
age = how many days back do we want to pull? (default: 0)
unzip = Do we want to uncompress the nessus files? (default: False)
path = Path where the res... | "Scan Downloader\n Here we will attempt to download all of the scans that have completed between\n now and AGE days ago.\n\n sc = SecurityCenter5 object\n age = how many days back do we want to pull? (default: 0)\n unzip = Do we want to uncompress the nessus files? (default: False)\n path = Path where... | 120 | false | SteveMcGrath/pySecurityCenter | download_scans | 37,873 | |
LDU_FT/ml31415/numpy-groupies/get_aliasing | LDU_FT | [
"<BEGIN>\n## `aggregate_group_loop`",
"wraps func in lambda which prevents aggregate_numpy from\n recognising and optimising it. Instead it groups and loops.\n<END>",
"<BEGIN>\n## `step_count`",
"Return the amount of index changes within group_idx.\n<END>",
"<BEGIN>\n## `step_indices`",
"Return the edg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aliasing API.
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_aliasing API.
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... | The assembles the dict mapping strings and functions to the list of
supported function names:
e.g. alias['add'] = 'sum' and alias[sorted] = 'sort'
This funciton should only be called during import. | "The assembles the dict mapping strings and functions to the list of\n supported function names:\n e.g. alias['add'] = 'sum' and alias[sorted] = 'sort'\n This funciton should only be called during import." | 56 | false | ml31415/numpy-groupies | get_aliasing | 37,874 | |
LDU_FT/etgalloway/fullqualname/fullqualname_py3 | LDU_FT | [
"<BEGIN>\n## `fullqualname_py3`",
"Fully qualified name for objects in Python 3.\n<END>",
"<BEGIN>\n## `_fullqualname_builtin_py3`",
"Fully qualified name for 'builtin_function_or_method' objects in\n Python 3.\n<END>",
"<BEGIN>\n## `_fullqualname_function_py3`",
"Fully qualified name for 'function' ob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fullqualname_py3 API.
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 fullqualname_py3 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Fully qualified name for objects in Python 3. | "Fully qualified name for objects in Python 3." | 14 | false | etgalloway/fullqualname | fullqualname_py3 | 37,875 | |
LDU_FT/bmwcarit/zubbi/create_github_client | LDU_FT | [
"<BEGIN>\n## `verify_signature`",
"Verify that the payload was sent from our GitHub instance.\n<END>",
"<BEGIN>\n## `parse_job_files`",
"Check for job definitions in known zuul files.\n<END>",
"<BEGIN>\n## `_initialize_repo_cache`",
"Initialize the repository cache used for scraping.",
" Retrieves a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_github_client API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_github_client API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Create a github3 client per repo/installation. | "Create a github3 client per repo/installation." | 22 | false | bmwcarit/zubbi | create_github_client | 37,876 | |
LDU_FT/chrisjsewell/jsonextended/_get_keys_folder | LDU_FT | [
"<BEGIN>\n## `apply_unitschema`",
"apply the unit schema to the data",
" Parameters\n ----------\n data : dict\n uschema : dict\n units schema to apply\n as_quantity : bool\n if true, return values as pint.Quantity objects\n raise_outerr : bool\n raise error if a unit cann... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_keys_folder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_keys_folder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | get json keys from directory structure
e.g.
jdir
sub_dir1
data1.json
data2.json
sub_dir2
data.json
_get_keys_folder(jdir)
=> ['sub_dir1', 'sub_dir2']
_get_keys_folder(jdir,['sub_dir1'])
=> ['data1', 'data2']
NB: json files are identifie... | "get json keys from directory structure\n\n e.g.\n\n jdir\n sub_dir1\n data1.json\n data2.json\n sub_dir2\n data.json\n\n _get_keys_folder(jdir)\n => ['sub_dir1', 'sub_dir2']\n _get_keys_folder(jdir,['sub_dir1'])\n => ['data1', 'data2']\n\n NB: json fi... | 347 | false | chrisjsewell/jsonextended | _get_keys_folder | 37,877 | |
LDU_FT/linkedin/luminol/_denoise_scores | LDU_FT | [
"<BEGIN>\n## `_analyze_root_causes`",
"Conduct root cause analysis.\n The first metric of the list is taken as the root cause right now.\n<END>",
"<BEGIN>\n## `_load`",
"Load time series into a TimeSeries object.\n :param timeseries: a TimeSeries, a dictionary or a path to a csv file(str).\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _denoise_scores API.
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 _denoise_scores API.
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... | Denoise anomaly scores.
Low anomaly scores could be noisy. The following two series will have good correlation result with out denoise:
[0.08, 4.6, 4.6, 4.6, 1.0, 1.0]
[0.0010, 0.0012, 0.0012, 0.0008, 0.0008]
while the second series is pretty flat(suppose it has a max score of 100).
... | "Denoise anomaly scores.\n Low anomaly scores could be noisy. The following two series will have good correlation result with out denoise:\n [0.08, 4.6, 4.6, 4.6, 1.0, 1.0]\n [0.0010, 0.0012, 0.0012, 0.0008, 0.0008]\n while the second series is pretty flat(suppose it has a max score of 100).... | 95 | false | linkedin/luminol | _denoise_scores | 37,878 | |
LDU_FT/jedie/DragonPy/get_readable_string | LDU_FT | [
"<BEGIN>\n## `create_environment`",
"Creates a new environment in ``home_dir``.",
" If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.",
" If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>",
"<BEGIN>\n## `path... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_readable_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_readable_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | r"""
Convert an integer to a readable 2-character representation. This is useful for reversing
examples: 41 == ".A", 13 == "\n", 20 (space) == "__"
Returns a readable 2-char representation of an int. | "r\"\"\"\n Convert an integer to a readable 2-character representation. This is useful for reversing\n examples: 41 == \".A\", 13 == \"\\n\", 20 (space) == \"__\"\n Returns a readable 2-char representation of an int." | 223 | false | jedie/DragonPy | get_readable_string | 37,879 | |
LDU_FT/FNNDSC/chrisapp/launch | LDU_FT | [
"<BEGIN>\n## `path`",
"Define the 'path' data type that can be used by apps.\n<END>",
"<BEGIN>\n## `get_json_representation`",
"Return a JSON object with a representation of this app (type and parameters).\n<END>",
"<BEGIN>\n## `save_json_representation`",
"Save the app's JSON representation object to a J... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the launch API.
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 launch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | This method triggers the parsing of arguments. | "This method triggers the parsing of arguments." | 16 | false | FNNDSC/chrisapp | launch | 37,880 | |
LDU_FT/soravux/scoop/sendResult | LDU_FT | [
"<BEGIN>\n## `_ensureAtomicity`",
"Ensure atomicity of passed elements on the whole worker pool\n<END>",
"<BEGIN>\n## `setConst`",
"setConst(**kwargs)\n Set a constant that will be shared to every workers.",
" :param **kwargs: One or more combination(s) key=value. Key being the\n variable name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sendResult API.
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 sendResult API.
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... | Send back results to broker for distribution to parent task. | "Send back results to broker for distribution to parent task." | 251 | false | soravux/scoop | sendResult | 37,881 | |
LDU_FT/gplepage/lsqfit/buildprior | LDU_FT | [
"<BEGIN>\n## `run`",
"Append version number to lsqfit/__init__.py\n<END>",
"<BEGIN>\n## `_reformat`",
"Apply format of ``p`` to data in 1-d array ``buf``.\n<END>",
"<BEGIN>\n## `_unpack_data`",
"Unpack data and prior into ``(x, y, prior, fdata)``.",
" This routine unpacks ``data`` and ``prior`` into ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buildprior API.
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 buildprior API.
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... | Create prior to fit models in list ``models``. | "Create prior to fit models in list ``models``." | 208 | false | gplepage/lsqfit | buildprior | 37,882 | |
LDU_FT/mattimck/python-exist/_shutdown_cherrypy | LDU_FT | [
"<BEGIN>\n## `arquire_attributes`",
"Claims a list of attributes for the current client.\n Can also disable attributes. Returns update response object.\n<END>",
"<BEGIN>\n## `release_attributes`",
"Releases named attributes from this service. Returns update response object.\n<END>",
"<BEGIN>\n## `own... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _shutdown_cherrypy 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 _shutdown_cherrypy 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... | Shutdown cherrypy in one second, if it's running | "Shutdown cherrypy in one second, if it's running" | 28 | false | mattimck/python-exist | _shutdown_cherrypy | 37,883 | |
LDU_FT/inspirehep/inspire-schemas/add_affiliation | LDU_FT | [
"<BEGIN>\n## `filter_empty_parameters`",
"Decorator that is filtering empty parameters.",
" :param func: function that you want wrapping\n :type func: function\n<END>",
"<BEGIN>\n## `author_id_normalize_and_schema`",
"Detect and normalize an author UID schema.",
" Args:\n uid (string): a U... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_affiliation API.
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_affiliation API.
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 an affiliation.
Args:
value (string): affiliation value
curated_relation (bool): is relation curated
record (dict): affiliation JSON reference | "Add an affiliation.\n\n Args:\n value (string): affiliation value\n curated_relation (bool): is relation curated\n record (dict): affiliation JSON reference" | 290 | false | inspirehep/inspire-schemas | add_affiliation | 37,884 | |
LDU_FT/RedisJSON/rejson-py/jsonobjkeys | LDU_FT | [
"<BEGIN>\n## `bulk_of_jsons`",
"Replace serialized JSON values with objects in a bulk array response (list)\n<END>",
"<BEGIN>\n## `setEncoder`",
"Sets the client's encoder\n ``encoder`` should be an instance of a ``json.JSONEncoder`` class\n<END>",
"<BEGIN>\n## `setDecoder`",
"Sets the client's dec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonobjkeys API.
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 jsonobjkeys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns the key names in the dictionary JSON value under ``path`` at key
``name`` | "Returns the key names in the dictionary JSON value under ``path`` at key\n ``name``" | 43 | false | RedisJSON/rejson-py | jsonobjkeys | 37,885 | |
LDU_FT/dfm/george/set_parameter | LDU_FT | [
"<BEGIN>\n## `computed`",
"Has the processes been computed since the last update of the kernel?\n<END>",
"<BEGIN>\n## `parse_samples`",
"Parse a list of samples to make sure that it has the correct\n dimensions.",
" :param t: ``(nsamples,)`` or ``(nsamples, ndim)``\n The list of sam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_parameter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_parameter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Set a parameter value by name
Args:
name: The name of the parameter
value (float): The new value for the parameter | "Set a parameter value by name\n\n Args:\n name: The name of the parameter\n value (float): The new value for the parameter" | 111 | false | dfm/george | set_parameter | 37,886 | |
LDU_FT/fitnr/convertdate/search_weekday | LDU_FT | [
"<BEGIN>\n## `to_jd`",
"Return Julian day count of given ISO year, week, and day\n<END>",
"<BEGIN>\n## `from_jd`",
"Return tuple of ISO (year, week, day) for Julian day\n<END>",
"<BEGIN>\n## `legal_date`",
"Check if this is a legal date in the Julian calendar\n<END>",
"<BEGIN>\n## `from_jd`",
"Calcula... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_weekday API.
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 search_weekday API.
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... | Determine the Julian date for the next or previous weekday | "Determine the Julian date for the next or previous weekday" | 85 | false | fitnr/convertdate | search_weekday | 37,887 | |
LDU_FT/dmort27/panphon/fts | LDU_FT | [
"<BEGIN>\n## `fts`",
"Return features corresponding to segment as list of (value,\n feature) tuples",
" Args:\n segment (unicode): segment for which features are to be returned as\n Unicode string",
" Returns:\n list: None if `segment` c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fts API.
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 fts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Return features corresponding to segment as list of (value,
feature) tuples
Args:
segment (unicode): segment for which features are to be returned as
Unicode string
Returns:
list: None if `segment` cannot be parsed; otherwise, a list of th... | "Return features corresponding to segment as list of (value,\n feature) tuples\n\n Args:\n segment (unicode): segment for which features are to be returned as\n Unicode string\n\n Returns:\n list: None if `segment` cannot be parsed; otherwise, a l... | 112 | false | dmort27/panphon | fts | 37,888 | |
LDU_FT/jaredLunde/vital-tools/local_expiring_lru | LDU_FT | [
"<BEGIN>\n## `line`",
"Prints a line separator the full width of the terminal.",
" @separator: the #str chars to create the line from\n @color: line color from :mod:vital.debug.colors\n @padding: adds extra lines to either the top, bottom or both\n of the line via :func:padd\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the local_expiring_lru 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 local_expiring_lru 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... | Property that maps to a key in a local dict-like attribute.
self._cache must be an OrderedDict
self._cache_size must be defined as LRU size
self._cache_ttl is the expiration time in seconds
..
class Foo(object):
def __init__(self, cache_size=5000, cache_ttl=600):
... | "Property that maps to a key in a local dict-like attribute.\n self._cache must be an OrderedDict\n self._cache_size must be defined as LRU size\n self._cache_ttl is the expiration time in seconds\n ..\n class Foo(object):\n\n def __init__(self, cache_size=5000, cache_ttl=6... | 396 | false | jaredLunde/vital-tools | local_expiring_lru | 37,889 | |
LDU_FT/xoolive/traffic/douglas_peucker | LDU_FT | [
"<BEGIN>\n## `closest_point_of_approach`",
"Computes a CPA dataframe for all pairs of trajectories candidates for\n being separated by less than lateral_separation in vertical_separation.",
" In order to be computed efficiently, the method needs the following\n parameters:",
" - projection: a firs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the douglas_peucker API.
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 douglas_peucker API.
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... | Ramer-Douglas-Peucker algorithm for 2D/3D trajectories.
Simplify a trajectory by keeping the points further away from the straight
line.
Parameters:
df Optional a Pandas dataframe
tolerance float the threshold for cutting the
... | "Ramer-Douglas-Peucker algorithm for 2D/3D trajectories.\n\n Simplify a trajectory by keeping the points further away from the straight\n line.\n\n Parameters:\n df Optional a Pandas dataframe\n tolerance float the threshold for cutting the\n ... | 147 | false | xoolive/traffic | douglas_peucker | 37,890 | |
LDU_FT/klmitch/tendril/framers | LDU_FT | [
"<BEGIN>\n## `send_frame`",
"Sends a frame to the other end of the connection.\n<END>",
"<BEGIN>\n## `start`",
"Starts the TendrilManager.",
" :param acceptor: If given, specifies a callable that will be\n called with each newly received Tendril;\n that... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the framers API.
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 framers API.
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... | Reset the framers in use for the connection to be a
tendril.IdentityFramer. The framer states will be reset next
time their respective framer is used. | "Reset the framers in use for the connection to be a\n tendril.IdentityFramer. The framer states will be reset next\n time their respective framer is used." | 92 | false | klmitch/tendril | framers | 37,891 | |
LDU_FT/tensorflow/hub/add_signature | LDU_FT | [
"<BEGIN>\n## `export`",
"Exports a ModuleSpec with weights taken from a checkpoint.",
" This is an helper to export modules directly from a ModuleSpec\n without having to create a session and set the variables to the\n intended values.",
" Example usage:",
" ```python\n spec = hub.create_m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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.
The ext... | Adds a signature to the module definition.
NOTE: This must be called within a `module_fn` that is defining a Module.
Args:
name: Signature name as a string. If omitted, it is interpreted as 'default'
and is the signature used when `Module.__call__` `signature` is not
specified.
inputs: A dict ... | "Adds a signature to the module definition.\n\n NOTE: This must be called within a `module_fn` that is defining a Module.\n\n Args:\n name: Signature name as a string. If omitted, it is interpreted as 'default'\n and is the signature used when `Module.__call__` `signature` is not\n specified.\n inputs... | 488 | false | tensorflow/hub | add_signature | 37,892 | |
LDU_FT/thombashi/pytablereader/create_from_path | LDU_FT | [
"<BEGIN>\n## `load`",
"Extract tabular data as |TableData| instances from a CSV file.\n |load_source_desc_file|",
" :return:\n Loaded table data.\n |load_table_name_desc|",
" =================== ========================================\n Format specif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Create a file loader from the file extension to loading file.
Supported file extensions are as follows:
========================== =======================================
Extension Loader
========================== =======================================
... | "Create a file loader from the file extension to loading file.\n Supported file extensions are as follows:\n\n ========================== =======================================\n Extension Loader\n ========================== ==================================... | 140 | false | thombashi/pytablereader | create_from_path | 37,893 | |
LDU_FT/kivy/buildozer/set_config_from_envs | LDU_FT | [
"<BEGIN>\n## `_sdkmanager`",
"Call the sdkmanager in our Android SDK with the given arguments.\n<END>",
"<BEGIN>\n## `_locate_java`",
"If JAVA_HOME is in the environ, return $JAVA_HOME/bin/s. Otherwise,\n return s.\n<END>",
"<BEGIN>\n## `_android_get_installed_platform_tools_version`",
"Crudely par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_config_from_envs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_config_from_envs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Takes a ConfigParser, and checks every section/token for an
environment variable of the form SECTION_TOKEN, with any dots
replaced by underscores. If the variable exists, sets the config
variable to the env value. | "Takes a ConfigParser, and checks every section/token for an\n environment variable of the form SECTION_TOKEN, with any dots\n replaced by underscores. If the variable exists, sets the config\n variable to the env value." | 54 | false | kivy/buildozer | set_config_from_envs | 37,894 | |
LDU_FT/wylee/runcommands/set_attrs | LDU_FT | [
"<BEGIN>\n## `confirm`",
"Prompt for confirmation.",
" Confirmation can be aborted by typing in a no value instead of one\n of the yes values or with Ctrl-C.",
" Args:\n prompt (str): Prompt to present user [\"Really?\"]\n color (string|Color|bool) Color to print prompt string; can be\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_attrs API.
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 set_attrs API.
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... | Set the given attributes on *all* commands in collection. | "Set the given attributes on *all* commands in collection." | 111 | false | wylee/runcommands | set_attrs | 37,895 | |
LDU_FT/google/python-adb/_Connect | LDU_FT | [
"<BEGIN>\n## `_get_service_connection`",
"Based on the service, get the AdbConnection for that service or create one if it doesnt exist",
" :param service:\n :param service_command: Additional service parameters to append\n :param create: If False, dont create a connection if it does not ex... | 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 extracte... | 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 extracte... | Connect to the device.
Args:
banner: See protocol_handler.Connect.
**kwargs: See protocol_handler.Connect and adb_commands.ConnectDevice for kwargs.
Includes handle, rsa_keys, and auth_timeout_ms.
Returns:
An instance of this class if the device connected su... | "Connect to the device.\n\n Args:\n banner: See protocol_handler.Connect.\n **kwargs: See protocol_handler.Connect and adb_commands.ConnectDevice for kwargs.\n Includes handle, rsa_keys, and auth_timeout_ms.\n Returns:\n An instance of this class if the device conn... | 174 | false | google/python-adb | _Connect | 37,896 | |
LDU_FT/edublancas/sklearn-evaluation/roc | LDU_FT | [
"<BEGIN>\n## `feature_importances`",
"Get and order feature importances from a scikit-learn model\n or from an array-like structure.",
" If data is a scikit-learn model with sub-estimators (e.g. RandomForest,\n AdaBoost) the function will compute the standard deviation of each\n feature.",
" Pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the roc API.
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 roc API.
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... | Plot ROC curve.
Parameters
----------
y_true : array-like, shape = [n_samples]
Correct target values (ground truth).
y_score : array-like, shape = [n_samples] or [n_samples, 2] for binary
classification or [n_samples, n_classes] for multiclass
Target scores (estimator pre... | "Plot ROC curve.\n\n Parameters\n ----------\n y_true : array-like, shape = [n_samples]\n Correct target values (ground truth).\n y_score : array-like, shape = [n_samples] or [n_samples, 2] for binary\n classification or [n_samples, n_classes] for multiclass\n\n Target scores (est... | 104 | false | edublancas/sklearn-evaluation | roc | 37,897 | |
LDU_FT/instaloader/instaloader/anonymous_copy | LDU_FT | [
"<BEGIN>\n## `save_structure_to_file`",
"Saves a :class:`Post`, :class:`Profile` or :class:`StoryItem` to a '.json' or '.json.xz' file such that it can\n later be loaded by :func:`load_structure_from_file`.",
" If the specified filename ends in '.xz', the file will be LZMA compressed. Otherwise, a pretty-... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the anonymous_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the anonymous_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 ex... | Yield an anonymous, otherwise equally-configured copy of an Instaloader instance; Then copy its error log. | "Yield an anonymous, otherwise equally-configured copy of an Instaloader instance; Then copy its error log." | 227 | false | instaloader/instaloader | anonymous_copy | 37,898 | |
LDU_FT/PMBio/limix-backup/fit_null | LDU_FT | [
"<BEGIN>\n## `PCA`",
"run PCA, retrieving the first (components) principle components\n\treturn [s0, eig, w0]\n\ts0: factors\n\tw0: weights\n<END>",
"<BEGIN>\n## `PC_varExplained`",
"Run PCA and calculate the cumulative fraction of variance\n Args:\n Y: phenotype values\n standardize: if True... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_null API.
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 fit_null API.
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... | fit null model
Y NxP phenotype matrix
S_XX eigenvalues of the relatedness matrix
U_XX eigen vectors of the relatedness matrix | "fit null model\n\n Y NxP phenotype matrix\n S_XX eigenvalues of the relatedness matrix\n U_XX eigen vectors of the relatedness matrix" | 428 | false | PMBio/limix-backup | fit_null | 37,899 | |
LDU_FT/bokeh/bokeh/_get_custom_models | LDU_FT | [
"<BEGIN>\n## `notify_owner`",
"A decorator for mutating methods of property container classes\n that notifies owners of the property container about mutating changes.",
" Args:\n func (callable) : the container method to wrap in a notification",
" Returns:\n wrapped method",
" Exam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_custom_models 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_custom_models 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 CustomModels for models with a custom `__implementation__` | "Returns CustomModels for models with a custom `__implementation__`" | 2,090 | true | bokeh/bokeh | _get_custom_models | 37,900 | |
LDU_FT/miquelo/resort/insert | LDU_FT | [
"<BEGIN>\n## `insert`",
"Build the project.",
"\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context.\n<END>",
"<BEGIN>\n## `load`",
"Load the profile with the given name.",
"\t\t:param str prof_name:\n\t\t Profile name.\n\t\t:rtype:\n\t\t ProfileStub\n\t\t:return:\n\t\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create mail session.
:param resort.engine.execution.Context context:
Current execution context. | "Create mail session.\n\t\t\n\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context." | 125 | false | miquelo/resort | insert | 37,901 | |
LDU_FT/ddorn/GUI/_render | LDU_FT | [
"<BEGIN>\n## `select`",
"Select an arbitrary item, by possition or by reference.\n<END>",
"<BEGIN>\n## `on_select`",
"Add an action to make when an object is selected.\n Only one action can be stored this way.\n<END>",
"<BEGIN>\n## `on_unselect`",
"Add an action to make when an object is unfocused.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _render API.
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 _render API.
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... | Render the text.
Avoid using this fonction too many time as it is slow as it is low to render text and blit it. | "Render the text.\n\n Avoid using this fonction too many time as it is slow as it is low to render text and blit it." | 84 | false | ddorn/GUI | _render | 37,902 | |
LDU_FT/openeemeter/eemeter/json | LDU_FT | [
"<BEGIN>\n## `as_freq`",
"Resample data to a different frequency.",
" This method can be used to upsample or downsample meter data. The\n assumption it makes to do so is that meter data is constant and averaged\n over the given periods. For instance, to convert billing-period data to\n daily data, t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | Return a JSON-serializable representation of this result.
The output of this function can be converted to a serialized string
with :any:`json.dumps`. | "Return a JSON-serializable representation of this result.\n\n The output of this function can be converted to a serialized string\n with :any:`json.dumps`." | 213 | false | openeemeter/eemeter | json | 37,903 | |
LDU_FT/klen/pylama/parse_linters | LDU_FT | [
"<BEGIN>\n## `run`",
"MCCabe code checking.",
" :return list: List of errors.\n<END>",
"<BEGIN>\n## `split_csp_str`",
"Split comma separated string into unique values, keeping their order.",
" :returns: list of splitted values\n<END>",
"<BEGIN>\n## `parse_linters`",
"Initialize choosen linte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_linters API.
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 parse_linters API.
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... | Initialize choosen linters.
:returns: list of inited linters | "Initialize choosen linters.\n\n :returns: list of inited linters" | 81 | false | klen/pylama | parse_linters | 37,904 | |
LDU_FT/sentinel-hub/sentinel2-cloud-detector/image_predict_proba | LDU_FT | [
"<BEGIN>\n## `extract_pixels`",
"Extract pixels from array X",
" :param X: Array of images to be classified.\n :type X: numpy array, shape = [n_images, n_pixels_y, n_pixels_x, n_bands]\n :return: Reshaped 2D array\n :rtype: numpy array, [n_samples*n_pixels_y*n_pixels_x,n_bands]\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image_predict_proba API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image_predict_proba API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Predicts class probabilities for the entire image.
:param X: Array of images to be classified.
:type X: numpy array, shape = [n_images, n_pixels_y, n_pixels_x, n_bands]
:return: classification probability map
:rtype: numpy array, [n_samples, n_pixels_y, n_pixels_x] | "Predicts class probabilities for the entire image.\n\n :param X: Array of images to be classified.\n :type X: numpy array, shape = [n_images, n_pixels_y, n_pixels_x, n_bands]\n\n :return: classification probability map\n :rtype: numpy array, [n_samples, n_pixels_y, n_pixels_x]" | 30 | false | sentinel-hub/sentinel2-cloud-detector | image_predict_proba | 37,905 | |
LDU_FT/adewes/blitzdb/comparison_operator_query | LDU_FT | [
"<BEGIN>\n## `commit`",
"Commit all pending transactions to the database.",
" .. admonition:: Warning",
" This operation can be **expensive** in runtime if a large number of\n documents (>100.000) is contained in the database, since it will\n cause all database indexes ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the comparison_operator_query 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 comparison_operator_query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Generate comparison operator checking function. | "Generate comparison operator checking function." | 141 | false | adewes/blitzdb | comparison_operator_query | 37,906 | |
LDU_FT/inveniosoftware-contrib/invenio-classifier/get_acronyms | LDU_FT | [
"<BEGIN>\n## `get_acronyms`",
"Find acronyms and expansions from the fulltext.",
" If needed, acronyms can already contain a dictionary of previously found\n acronyms that will be merged with the current results.\n<END>",
"<BEGIN>\n## `_add_expansion_to_acronym_dict`",
"Add an acronym to the dictiona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_acronyms API.
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_acronyms API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Find acronyms and expansions from the fulltext.
If needed, acronyms can already contain a dictionary of previously found
acronyms that will be merged with the current results. | "Find acronyms and expansions from the fulltext.\n\n If needed, acronyms can already contain a dictionary of previously found\n acronyms that will be merged with the current results." | 178 | false | inveniosoftware-contrib/invenio-classifier | get_acronyms | 37,907 | |
LDU_FT/bigchaindb/bigchaindb-driver/get | LDU_FT | [
"<BEGIN>\n## `info`",
"Retrieves information of the node being connected to via the\n root endpoint ``'/'``.",
" Args:\n headers (dict): Optional headers to pass to the request.",
" Returns:\n dict: Details of the node that this instance is connected\n to.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Retrieves the assets that match a given text search string.
Args:
search (str): Text search string.
limit (int): Limit the number of returned documents. Defaults to
zero meaning that it returns all the matching assets.
headers (dict): Optional headers to pass... | "Retrieves the assets that match a given text search string.\n\n Args:\n search (str): Text search string.\n limit (int): Limit the number of returned documents. Defaults to\n zero meaning that it returns all the matching assets.\n headers (dict): Optional headers ... | 169 | false | bigchaindb/bigchaindb-driver | get | 37,908 | |
LDU_FT/sashahart/cookies/parse_one_response | LDU_FT | [
"<BEGIN>\n## `strip_spaces_and_quotes`",
"Remove invalid whitespace and/or single pair of dquotes and return None\n for empty strings.",
" Used to prepare cookie values, path, and domain attributes in a way which\n tolerates simple formatting mistakes and standards variations.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_one_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_one_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Turn one 'Set-Cookie:' line into a dict mapping attribute names to
attribute values (raw strings). | "Turn one 'Set-Cookie:' line into a dict mapping attribute names to\n attribute values (raw strings)." | 63 | false | sashahart/cookies | parse_one_response | 37,909 | |
LDU_FT/ciena/afkak/write_short_ascii | LDU_FT | [
"<BEGIN>\n## `_coerce_topic`",
"Ensure that the topic name is text string of a valid length.",
" :param topic: Kafka topic name. Valid characters are in the set ``[a-zA-Z0-9._-]``.\n :raises ValueError: when the topic name exceeds 249 bytes\n :raises TypeError: when the topic is not :class:`unicode` or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_short_ascii API.
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 write_short_ascii API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Encode a Kafka short string which represents text.
:param str s:
Text string (`str` on Python 3, `str` or `unicode` on Python 2) or
``None``. The string will be ASCII-encoded.
:returns: length-prefixed `bytes`
:raises:
`struct.error` for strings longer than 32767 characters | "Encode a Kafka short string which represents text.\n\n :param str s:\n Text string (`str` on Python 3, `str` or `unicode` on Python 2) or\n ``None``. The string will be ASCII-encoded.\n\n :returns: length-prefixed `bytes`\n :raises:\n `struct.error` for strings longer than 32767 character... | 326 | false | ciena/afkak | write_short_ascii | 37,910 | |
LDU_FT/ChristopherRabotin/bungiesearch/only | LDU_FT | [
"<BEGIN>\n## `update_index`",
"Updates the index for the provided model_items.\n :param model_items: a list of model_items (django Model instances, or proxy instances) which are to be indexed/updated or deleted.\n If action is 'index', the model_items must be serializable objects. If action is 'delete', the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the only API.
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 only API.
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... | Restricts the fields to be fetched when mapping. Set to `__model` to fetch all fields define in the ModelIndex. | "Restricts the fields to be fetched when mapping. Set to `__model` to fetch all fields define in the ModelIndex." | 46 | false | ChristopherRabotin/bungiesearch | only | 37,911 | |
LDU_FT/byroot/pysrt/read | LDU_FT | [
"<BEGIN>\n## `slice`",
"slice([starts_before][, starts_after][, ends_before][, ends_after]) \\\n-> SubRipFile clone",
" All arguments are optional, and should be coercible to SubRipTime\n object.",
" It reduce the set of subtitles to those that match match given time\n constraints.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
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 read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | read(source_file, [error_handling])
This method parse subtitles contained in `source_file` and append them
to the current instance.
`source_file` -> Any iterable that yield unicode strings, like a file
opened with `codecs.open()` or an array of unicode. | "read(source_file, [error_handling])\n\n This method parse subtitles contained in `source_file` and append them\n to the current instance.\n\n `source_file` -> Any iterable that yield unicode strings, like a file\n opened with `codecs.open()` or an array of unicode." | 55 | false | byroot/pysrt | read | 37,912 | |
LDU_FT/mattimck/python-exist/owned_attributes | LDU_FT | [
"<BEGIN>\n## `arquire_attributes`",
"Claims a list of attributes for the current client.\n Can also disable attributes. Returns update response object.\n<END>",
"<BEGIN>\n## `release_attributes`",
"Releases named attributes from this service. Returns update response object.\n<END>",
"<BEGIN>\n## `own... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the owned_attributes API.
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 owned_attributes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns a list of attributes owned by this service. | "Returns a list of attributes owned by this service." | 28 | false | mattimck/python-exist | owned_attributes | 37,913 | |
LDU_FT/openvax/topiary/_get_gtf_column | LDU_FT | [
"<BEGIN>\n## `transcript_sort_key`",
"Key function used to sort transcripts. Taking the negative of\n protein sequence length and nucleotide sequence length so that\n the transcripts with longest sequences come first in the list. This couldn't\n be accomplished with `reverse=True` since we're also sortin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_gtf_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_gtf_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 e... | Helper function which returns a dictionary column or raises an ValueError
abou the absence of that column in a GTF file. | "Helper function which returns a dictionary column or raises an ValueError\n abou the absence of that column in a GTF file." | 91 | false | openvax/topiary | _get_gtf_column | 37,914 | |
LDU_FT/night-crawler/django-docker-helpers/is_production | LDU_FT | [
"<BEGIN>\n## `get`",
":param variable_path: a delimiter-separated path to a nested value\n :param default: default value if there's no object by specified path\n :param coerce_type: cast a type of a value to a specified one\n :param coercer: perform a type casting with specified callback\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_production API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_production API.
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... | Reads env ``PRODUCTION`` variable as a boolean.
:param flag_name: environment variable name
:param strict: raise a ``ValueError`` if variable does not look like a normal boolean
:return: ``True`` if has truthy ``PRODUCTION`` env, ``False`` otherwise | "Reads env ``PRODUCTION`` variable as a boolean.\n\n :param flag_name: environment variable name\n :param strict: raise a ``ValueError`` if variable does not look like a normal boolean\n :return: ``True`` if has truthy ``PRODUCTION`` env, ``False`` otherwise" | 141 | false | night-crawler/django-docker-helpers | is_production | 37,915 | |
LDU_FT/quantopian/alphalens/cumulative_returns | LDU_FT | [
"<BEGIN>\n## `factor_information_coefficient`",
"Computes the Spearman Rank Correlation based Information Coefficient (IC)\n between factor values and N period forward returns for each period in\n the factor index.",
" Parameters\n ----------\n factor_data : pd.DataFrame - MultiIndex\n A M... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cumulative_returns 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 cumulative_returns 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... | Builds cumulative returns from 'period' returns. This function simulates
the cumulative effect that a series of gains or losses (the 'returns')
have on an original amount of capital over a period of time.
if F is the frequency at which returns are computed (e.g. 1 day if
'returns' contains daily values... | "Builds cumulative returns from 'period' returns. This function simulates\n the cumulative effect that a series of gains or losses (the 'returns')\n have on an original amount of capital over a period of time.\n\n if F is the frequency at which returns are computed (e.g. 1 day if\n 'returns' contains daily ... | 243 | false | quantopian/alphalens | cumulative_returns | 37,916 | |
LDU_FT/enkore/i3pystatus/update_cb | LDU_FT | [
"<BEGIN>\n## `init`",
"Creates context, when context is ready context_notify_cb is called\n<END>",
"<BEGIN>\n## `request_update`",
"Requests a sink info update (sink_info_cb is called)\n<END>",
"<BEGIN>\n## `server_info_cb`",
"Retrieves the default sink and calls request_update\n<END>",
"<BEGIN>\n## `co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_cb API.
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 update_cb API.
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... | A sink property changed, calls request_update | "A sink property changed, calls request_update" | 181 | false | enkore/i3pystatus | update_cb | 37,917 | |
LDU_FT/NORDUnet/python-norduniclient/search_nodes_by_value | LDU_FT | [
"<BEGIN>\n## `get_db_driver`",
":param uri: Bolt uri\n :type uri: str\n :param username: Neo4j username\n :type username: str\n :param password: Neo4j password\n :type password: str\n :param encrypted: Use TLS\n :type encrypted: Boolean\n :param max_pool_size: Maximum number of idle sessio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_nodes_by_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_nodes_by_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Traverses all nodes or nodes of specified label and fuzzy compares the property/properties of the node
with the supplied string.
:param manager: Neo4jDBSessionManager
:param value: Value to search for
:param prop: Which property to look for value in
:param node_type:
:type value: str
:type... | "Traverses all nodes or nodes of specified label and fuzzy compares the property/properties of the node\n with the supplied string.\n\n :param manager: Neo4jDBSessionManager\n :param value: Value to search for\n :param prop: Which property to look for value in\n :param node_type:\n\n :type value: str\... | 71 | false | NORDUnet/python-norduniclient | search_nodes_by_value | 37,918 | |
LDU_FT/mongodb/motor/unwrap_synchro | LDU_FT | [
"<BEGIN>\n## `chain_return_value`",
"Compatible way to return a value in all Pythons.",
" PEP 479, raise StopIteration(value) from a coroutine won't work forever,\n but \"return value\" doesn't work in Python 2. Instead, Motor methods that\n return values resolve a Future with it, and are implemented w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unwrap_synchro API.
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 unwrap_synchro API.
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... | Unwrap Synchro objects passed to a method and pass Motor objects instead. | "Unwrap Synchro objects passed to a method and pass Motor objects instead." | 133 | false | mongodb/motor | unwrap_synchro | 37,919 | |
LDU_FT/krischer/django-plugins/get_point_model | LDU_FT | [
"<BEGIN>\n## `get_plugin_from_string`",
"Returns plugin or plugin point class from given ``plugin_name`` string.",
" Example of ``plugin_name``::",
" 'my_app.MyPlugin'\n<END>",
"<BEGIN>\n## `get_model`",
"Returns model instance of plugin point or plugin, depending from which\n class this ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_point_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_point_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 e... | Returns plugin point model instance. Only used from plugin classes. | "Returns plugin point model instance. Only used from plugin classes." | 22 | false | krischer/django-plugins | get_point_model | 37,920 | |
LDU_FT/genialis/resolwe/_get_storage | LDU_FT | [
"<BEGIN>\n## `extend_settings`",
"Extend the settings the manager will serialize.",
" :param data_id: The :class:`~resolwe.flow.models.Data` object id\n being prepared for.\n :param files: The settings dictionary to be serialized. Keys are\n filenames, values are the objects ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_storage API.
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_storage API.
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... | Load `json` field from `Storage` object. | "Load `json` field from `Storage` object." | 627 | false | genialis/resolwe | _get_storage | 37,921 | |
LDU_FT/fdb/aufmachen/urllib_retrieve | LDU_FT | [
"<BEGIN>\n## `phantomjs_retrieve`",
"Retrieve the given URL using PhantomJS.\n PhantomJS will evaluate all scripts and return the HTML after body.onload.",
" url - The page URL to retrieve\n data - The form data. TODO: Currently ignored.",
" Returns a status code (e.g. 200) and the HTML as a unic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the urllib_retrieve API.
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 urllib_retrieve API.
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... | Retrieve the given URL using Python's built-in urllib.
url - The page URL to retrieve.
data - The form data. If you provide this will use the POST method.
Returns a status code (e.g. 200) and the HTML as a unicode string. | "Retrieve the given URL using Python's built-in urllib.\n \n url - The page URL to retrieve.\n data - The form data. If you provide this will use the POST method.\n \n Returns a status code (e.g. 200) and the HTML as a unicode string." | 43 | false | fdb/aufmachen | urllib_retrieve | 37,922 | |
LDU_FT/unt-libraries/codalib/readANVLString | LDU_FT | [
"<BEGIN>\n## `waitForURL`",
"Give it a URL. Keep trying to get a HEAD request from it until it works.\n If it doesn't work, wait a while and try again\n<END>",
"<BEGIN>\n## `doWaitWebRequest`",
"Same as doWebRequest, but with built in wait-looping\n<END>",
"<BEGIN>\n## `doWebRequest`",
"A urllib2 wrap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readANVLString API.
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 readANVLString API.
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... | Take a string in ANVL format and break it into a dictionary of key/values | "Take a string in ANVL format and break it into a dictionary of key/values" | 40 | false | unt-libraries/codalib | readANVLString | 37,923 | |
LDU_FT/biosustain/optlang/expr_to_json | LDU_FT | [
"<BEGIN>\n## `_constraint_lb_and_ub_to_gurobi_sense_rhs_and_range_value`",
"Helper function used by Constraint and Model\n<END>",
"<BEGIN>\n## `_evolve_kwargs`",
"Filter None keyword arguments. Intended to be passed on to algorithm.evolve(...)\n<END>",
"<BEGIN>\n## `parse_optimization_expression`",
"Funct... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expr_to_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expr_to_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 extr... | Converts a Sympy expression to a json-compatible tree-structure. | "Converts a Sympy expression to a json-compatible tree-structure." | 106 | false | biosustain/optlang | expr_to_json | 37,924 | |
LDU_FT/sam-cox/pytides/extrema | LDU_FT | [
"<BEGIN>\n## `_prepare`",
"Return constituent speed and equilibrium argument at a given time, and constituent node factors at given times.\n\t\tArguments:\n\t\tconstituents -- list of constituents to prepare\n\t\tt0 -- time at which to evaluate speed and equilibrium argument for each constituent\n\t\tt -- list of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extrema API.
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 extrema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | A generator for high and low tides.
Arguments:
t0 -- time after which extrema are sought
t1 -- optional time before which extrema are sought (if not given, the generator is infinite)
partition -- number of hours for which we consider the node factors to be constant (default: 2400.0) | "A generator for high and low tides.\n\t\tArguments:\n\t\tt0 -- time after which extrema are sought\n\t\tt1 -- optional time before which extrema are sought (if not given, the generator is infinite)\n\t\tpartition -- number of hours for which we consider the node factors to be constant (default: 2400.0)" | 23 | false | sam-cox/pytides | extrema | 37,925 | |
LDU_FT/thautwarm/Redy/singleton_init_by | LDU_FT | [
"<BEGIN>\n## `map_by`",
"when pycharm supports type hinting for any implementation of currying,\n map_with and map_on would be deprecated.\n >>> from Redy.Collections import Traversal, Flow\n >>> def double(x: int) -> int: return x * 2\n >>> lst: Iterable[int] = [1, 2, 3]\n >>> x = Flow(lst)[Traver... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the singleton_init_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the singleton_init_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... | >>> from Redy.Magic.Classic import singleton
>>> @singleton
>>> class S:
>>> pass
>>> assert isinstance(S, S) | ">>> from Redy.Magic.Classic import singleton\n >>> @singleton\n >>> class S:\n >>> pass\n >>> assert isinstance(S, S)" | 83 | false | thautwarm/Redy | singleton_init_by | 37,926 | |
LDU_FT/niemasd/TreeSwift/traverse_inorder | LDU_FT | [
"<BEGIN>\n## `plot_ltt`",
"Plot the Lineages Through Time (LTT) curve of a given tree",
" Args:\n ``lineages`` (``dict``): The ``lineages`` dictionary returned by a ``Tree`` object's ``lineages_through_time()`` function call",
" ``show_plot`` (``bool``): ``True`` to show the plot, otherwise `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traverse_inorder API.
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 traverse_inorder API.
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 an inorder traversal starting at this ``Node`` object
Args:
``leaves`` (``bool``): ``True`` to include leaves, otherwise ``False``
``internal`` (``bool``): ``True`` to include internal nodes, otherwise ``False`` | "Perform an inorder traversal starting at this ``Node`` object\n\n Args:\n ``leaves`` (``bool``): ``True`` to include leaves, otherwise ``False``\n\n ``internal`` (``bool``): ``True`` to include internal nodes, otherwise ``False``" | 280 | false | niemasd/TreeSwift | traverse_inorder | 37,927 | |
LDU_FT/internetarchive/doublethink/purge_stale_services | LDU_FT | [
"<BEGIN>\n## `_server_whitelist`",
"Returns list of servers that have not errored in the last five minutes.\n If all servers have errored in the last five minutes, returns list with\n one item, the server that errored least recently.\n<END>",
"<BEGIN>\n## `parse_rethinkdb_url`",
"Parses a url li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purge_stale_services 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 purge_stale_services API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Command-line utility to periodically purge stale entries from the "services" table.
It is designed to be used in conjunction with cron. | "Command-line utility to periodically purge stale entries from the \"services\" table.\n\n It is designed to be used in conjunction with cron." | 43 | false | internetarchive/doublethink | purge_stale_services | 37,928 | |
LDU_FT/xflr6/graphviz/pipe | LDU_FT | [
"<BEGIN>\n## `command`",
"Return args list for ``subprocess.Popen`` and name of the rendered file.\n<END>",
"<BEGIN>\n## `run`",
"Run the command described by cmd and return its (stdout, stderr) tuple.\n<END>",
"<BEGIN>\n## `render`",
"Render file with Graphviz ``engine`` into ``format``, return result f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipe API.
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 pipe API.
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... | Return the source piped through the Graphviz layout command.
Args:
format: The output format used for rendering (``'pdf'``, ``'png'``, etc.).
renderer: The output renderer used for rendering (``'cairo'``, ``'gd'``, ...).
formatter: The output formatter used for rendering (``... | "Return the source piped through the Graphviz layout command.\n\n Args:\n format: The output format used for rendering (``'pdf'``, ``'png'``, etc.).\n renderer: The output renderer used for rendering (``'cairo'``, ``'gd'``, ...).\n formatter: The output formatter used for renderi... | 93 | false | xflr6/graphviz | pipe | 37,929 | |
LDU_FT/mrcagney/gtfsrtk/read_gtfsr | LDU_FT | [
"<BEGIN>\n## `read_gtfsr`",
"Given a path (string or Path object) to a GTFSR feed file,\n return the corresponding GTFS feed (FeedMessage instance).\n If ``from_json``, then assume the feed file is in JSON format;\n otherwise, assume the feed file is in Protocol Buffer format.\n<END>",
"<BEGIN>\n## `wr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_gtfsr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_gtfsr API.
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... | Given a path (string or Path object) to a GTFSR feed file,
return the corresponding GTFS feed (FeedMessage instance).
If ``from_json``, then assume the feed file is in JSON format;
otherwise, assume the feed file is in Protocol Buffer format. | "Given a path (string or Path object) to a GTFSR feed file,\n return the corresponding GTFS feed (FeedMessage instance).\n If ``from_json``, then assume the feed file is in JSON format;\n otherwise, assume the feed file is in Protocol Buffer format." | 23 | false | mrcagney/gtfsrtk | read_gtfsr | 37,930 | |
LDU_FT/laginha/django-mobileesp/detectMeegoPhone | LDU_FT | [
"<BEGIN>\n## `detectIphone`",
"Return detection of an iPhone",
" Detects if the current device is an iPhone.\n<END>",
"<BEGIN>\n## `detectIphoneOrIpod`",
"Return detection of an iPhone or iPod Touch",
" Detects if the current device is an iPhone or iPod Touch.\n<END>",
"<BEGIN>\n## `detect... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detectMeegoPhone API.
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 detectMeegoPhone API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return detection of a Meego phone
Detects a phone running the Meego OS. | "Return detection of a Meego phone\n\n Detects a phone running the Meego OS." | 111 | false | laginha/django-mobileesp | detectMeegoPhone | 37,931 | |
LDU_FT/ofek/bit/bech32_create_checksum | LDU_FT | [
"<BEGIN>\n## `currency_to_satoshi`",
"Converts a given amount of currency to the equivalent number of\n satoshi. The amount can be either an int, float, or string as long as\n it is a valid input to :py:class:`decimal.Decimal`.",
" :param amount: The quantity of currency.\n :param currency: One of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bech32_create_checksum 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 bech32_create_checksum API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Compute the checksum values given HRP and data. | "Compute the checksum values given HRP and data." | 71 | false | ofek/bit | bech32_create_checksum | 37,932 | |
LDU_FT/ElsevierDev/elsapy/read | LDU_FT | [
"<BEGIN>\n## `exec_request`",
"Sends the actual request; returns response.\n<END>",
"<BEGIN>\n## `read`",
"Fetches the latest data for this entity from api.elsevier.com.\n Returns True if successful; else, False.\n<END>",
"<BEGIN>\n## `write`",
"If data exists for the entity, writes it to disk ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
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 read API.
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... | Reads the JSON representation of the author from ELSAPI.
Returns True if successful; else, False. | "Reads the JSON representation of the author from ELSAPI.\n Returns True if successful; else, False." | 18 | false | ElsevierDev/elsapy | read | 37,933 | |
LDU_FT/intelligenia/modeltranslation/get | LDU_FT | [
"<BEGIN>\n## `_get_fieldtranslations`",
"Get all the translations for this object.\n<END>",
"<BEGIN>\n## `_load_translations`",
"Loads all translations as dynamic attributes:\n\t\t<attr>_<lang_code>\n\t\t<attr>_<lang_code>_is_fuzzy\n<END>",
"<BEGIN>\n## `_set_dict_translations`",
"Establece los atributos ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Obtiene una instancia igual a ésta, pero con los atributos
dinámicos de traduccción | "Obtiene una instancia igual a ésta, pero con los atributos\n dinámicos de traduccción" | 36 | false | intelligenia/modeltranslation | get | 37,934 | |
LDU_FT/Kunstmord/datalib/return_feature_list_numpy_base | LDU_FT | [
"<BEGIN>\n## `extract_feature_base`",
"Generic function which extracts a feature and stores it in the database",
" Parameters\n ----------\n dbpath : string, path to SQLite database file\n folder_path : string, path to folder where the files are stored\n set_object : object (either TestSet or Tra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_feature_list_numpy_base 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 return_feature_list_numpy_base API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Generic function which returns a list of tuples containing, each containing the name of the feature
and the length of the corresponding 1d numpy array of the feature (or length of the list)
Parameters
----------
dbpath : string, path to SQLite database file
set_object : object (either TestSet or Tr... | "Generic function which returns a list of tuples containing, each containing the name of the feature\n and the length of the corresponding 1d numpy array of the feature (or length of the list)\n\n Parameters\n ----------\n dbpath : string, path to SQLite database file\n set_object : object (either TestSe... | 117 | false | Kunstmord/datalib | return_feature_list_numpy_base | 37,935 | |
LDU_FT/andycasey/ads/load_http_response | LDU_FT | [
"<BEGIN>\n## `execute`",
"Execute the http request to the export service\n :return ads-classic formatted export string\n<END>",
"<BEGIN>\n## `_get_field`",
"Queries the api for a single field for the record by `id`.\n This method should only be called indirectly by cached properties.\n :p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_http_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_http_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | This method should return an instantiated class and set its response
to the requests.Response object. | "This method should return an instantiated class and set its response\n to the requests.Response object." | 30 | false | andycasey/ads | load_http_response | 37,936 | |
LDU_FT/satori-ng/hooker/append | LDU_FT | [
"<BEGIN>\n## `isloaded`",
"Checks if given hook module has been loaded",
" Args:\n name (str): The name of the module to check",
" Returns:\n bool. The return code::",
" True -- Loaded\n False -- Not Loaded\n<END>",
"<BEGIN>\n## `hook`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API.
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 append API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Creates a new event. `event` may be iterable or string
Args:
event (str): Name of event to declare
Kwrgs:
help (str): Help string for the event
Raises:
TypeError
**Please** describe the event and its calling arguments in the help
string. | "Creates a new event. `event` may be iterable or string\n\n Args:\n event (str): Name of event to declare\n\n Kwrgs:\n help (str): Help string for the event\n\n Raises:\n TypeError\n\n **Please** describe the event and its calling arguments in the help\n ... | 31 | false | satori-ng/hooker | append | 37,937 | |
LDU_FT/wdbm/shijian/select_spread | LDU_FT | [
"<BEGIN>\n## `tail`",
"Return a specified number of last lines of a specified file. If there is an\n error or the file does not exist, return False.\n<END>",
"<BEGIN>\n## `convert_type_list_elements`",
"Recursively convert all elements and all elements of all sublists of a list\n to a specified type and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_spread API.
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 select_spread API.
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... | This function returns the specified number of elements of a list spread
approximately evenly. | "This function returns the specified number of elements of a list spread\n approximately evenly." | 37 | false | wdbm/shijian | select_spread | 37,938 | |
LDU_FT/monarch-initiative/dipper/_process_uniprot_ids | LDU_FT | [
"<BEGIN>\n## `_process_phenotype_hpoa`",
"see info on format here:\n http://www.human-phenotype-ontology.org/contao/index.php/annotation-guide.html",
" :param raw:\n :param limit:\n :return:\n<END>",
"<BEGIN>\n## `get_common_files`",
"Fetch the hpo-annotation-data\n [repos... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_uniprot_ids API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_uniprot_ids 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 method processes the mappings from ZFIN gene IDs to UniProtKB IDs.
Triples created:
<zfin_gene_id> a class
<zfin_gene_id> rdfs:label gene_symbol
<uniprot_id> is an Individual
<uniprot_id> has type <polypeptide>
<zfin_gene_id> has_gene_product <uniprot_id>
... | "This method processes the mappings from ZFIN gene IDs to UniProtKB IDs.\n\n Triples created:\n <zfin_gene_id> a class\n <zfin_gene_id> rdfs:label gene_symbol\n\n <uniprot_id> is an Individual\n <uniprot_id> has type <polypeptide>\n\n <zfin_gene_id> has_gene_product <uniprot_id... | 848 | false | monarch-initiative/dipper | _process_uniprot_ids | 37,939 | |
LDU_FT/JelleAalbers/multihist/normalize | LDU_FT | [
"<BEGIN>\n## `from_histogram`",
"Make a Hist1D from a numpy bin_edges + histogram pair\n :param histogram: Initial histogram\n :param bin_edges: Bin edges of histogram. Must be one longer than length of histogram\n :param axis_names: Ignored. Sorry :-)\n :return:\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns new histogram where all values along axis (in one bin of the other axes) sum to 1 | "Returns new histogram where all values along axis (in one bin of the other axes) sum to 1" | 57 | false | JelleAalbers/multihist | normalize | 37,940 | |
LDU_FT/richardkiss/pycoin/locked_blocks_iterator | LDU_FT | [
"<BEGIN>\n## `parse_as_header`",
"Parse the Block header from the file-like object\n<END>",
"<BEGIN>\n## `stream_header_legacy`",
"Stream the block header in the standard way to the file-like object f.\n<END>",
"<BEGIN>\n## `stream_header`",
"Stream the block header in the standard way to the file-like ob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the locked_blocks_iterator 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 locked_blocks_iterator 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 method loads blocks from disk, skipping any orphan blocks. | "This method loads blocks from disk, skipping any orphan blocks." | 336 | false | richardkiss/pycoin | locked_blocks_iterator | 37,941 | |
LDU_FT/MolSSI-BSE/basis_set_exchange/sort_basis | LDU_FT | [
"<BEGIN>\n## `read_gbasis`",
"Reads gbasis-formatted file data and converts it to a dictionary with the\n usual BSE fields",
" Note that the gbasis format does not store all the fields we\n have, so some fields are left blank\n<END>",
"<BEGIN>\n## `read_molcas`",
"Reads molcas-formatted fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_basis API.
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 sort_basis API.
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... | Sorts all the information in a basis set into a standard order
If use_copy is True, the input basis set is not modified. | "Sorts all the information in a basis set into a standard order\n\n If use_copy is True, the input basis set is not modified." | 408 | false | MolSSI-BSE/basis_set_exchange | sort_basis | 37,942 | |
LDU_FT/SBRG/ssbio/parse_mmtf_header | LDU_FT | [
"<BEGIN>\n## `search_ss_bonds`",
"Searches S-S bonds based on distances\n between atoms in the structure (first model only).\n Average distance is 2.05A. Threshold is 3A default.\n Returns iterator with tuples of residues.",
" ADAPTED FROM JOAO RODRIGUES' BIOPYTHON GSOC PROJECT (http... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_mmtf_header API.
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_mmtf_header API.
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 an MMTF file and return basic header-like information.
Args:
infile (str): Path to MMTF file
Returns:
dict: Dictionary of parsed header
Todo:
- Can this be sped up by not parsing the 3D coordinate info somehow?
- OR just store the sequences when this happens since it... | "Parse an MMTF file and return basic header-like information.\n\n Args:\n infile (str): Path to MMTF file\n\n Returns:\n dict: Dictionary of parsed header\n\n Todo:\n - Can this be sped up by not parsing the 3D coordinate info somehow?\n - OR just store the sequences when this happe... | 1,487 | true | SBRG/ssbio | parse_mmtf_header | 37,943 | |
LDU_FT/Azure/azure-cosmos-table-python/generate_table_shared_access_signature | LDU_FT | [
"<BEGIN>\n## `generate_account_shared_access_signature`",
"Generates a shared access signature for the table service.\n Use the returned signature with the sas_token parameter of TableService.",
" :param ResourceTypes resource_types:\n Specifies the resource types that are accessible wi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_table_shared_access_signature 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 generate_table_shared_access_signature API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | Generates a shared access signature for the table.
Use the returned signature with the sas_token parameter of TableService.
:param str table_name:
The name of the table to create a SAS token for.
:param TablePermissions permission:
The permissions associated with the sha... | "Generates a shared access signature for the table.\n Use the returned signature with the sas_token parameter of TableService.\n\n :param str table_name:\n The name of the table to create a SAS token for.\n :param TablePermissions permission:\n The permissions associated with ... | 142 | false | Azure/azure-cosmos-table-python | generate_table_shared_access_signature | 37,944 | |
LDU_FT/wavycloud/pyboto3/get_object | LDU_FT | [
"<BEGIN>\n## `create_endpoint`",
"Creates an endpoint using the provided settings.\n See also: AWS API Documentation",
" :example: response = client.create_endpoint(\n EndpointIdentifier='string',\n EndpointType='source'|'target',\n EngineName='string',\n Username='string',\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API.
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_object API.
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... | Retrieves objects from Amazon S3.
See also: AWS API Documentation
:example: response = client.get_object(
Bucket='string',
IfMatch='string',
IfModifiedSince=datetime(2015, 1, 1),
IfNoneMatch='string',
IfUnmodifiedSince=datetime(2015, 1, 1),
Key='string',... | "Retrieves objects from Amazon S3.\n See also: AWS API Documentation\n \n \n :example: response = client.get_object(\n Bucket='string',\n IfMatch='string',\n IfModifiedSince=datetime(2015, 1, 1),\n IfNoneMatch='string',\n IfUnmodifiedSince=datetime(2015, 1, 1),\n Ke... | 3,657 | true | wavycloud/pyboto3 | get_object | 37,945 | |
LDU_FT/nvbn/thefuck/get_new_command | LDU_FT | [
"<BEGIN>\n## `get_loaded_rules`",
"Yields all available rules.",
" :type rules_paths: [Path]\n :rtype: Iterable[Rule]\n<END>",
"<BEGIN>\n## `get_rules_import_paths`",
"Yields all rules import paths.",
" :rtype: Iterable[Path]\n<END>",
"<BEGIN>\n## `get_rules`",
"Returns all enabled rules.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_new_command API.
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_new_command API.
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... | Attempt to rebuild the path string by spellchecking the directories.
If it fails (i.e. no directories are a close enough match), then it
defaults to the rules of cd_mkdir.
Change sensitivity by changing MAX_ALLOWED_DIFF. Default value is 0.6 | "Attempt to rebuild the path string by spellchecking the directories.\n If it fails (i.e. no directories are a close enough match), then it\n defaults to the rules of cd_mkdir.\n Change sensitivity by changing MAX_ALLOWED_DIFF. Default value is 0.6" | 132 | false | nvbn/thefuck | get_new_command | 37,946 | |
LDU_FT/ecell/ecell4/plot_movie_with_attractive_mpl | LDU_FT | [
"<BEGIN>\n## `load_world`",
"Load a world from the given HDF5 filename.\n The return type is determined by ``ecell4_base.core.load_version_information``.",
" Parameters\n ----------\n filename : str\n A HDF5 filename.",
" Returns\n -------\n w : World\n Return one from ``BDW... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_movie_with_attractive_mpl 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 plot_movie_with_attractive_mpl API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Generate a move from the received list of instances of World,
and show it on IPython notebook. This function may require ffmpeg.
Parameters
----------
worlds : list or FixedIntervalHDF5Observer
A list of Worlds to render.
marker_size : float, default 3
Marker size for all species. S... | "Generate a move from the received list of instances of World,\n and show it on IPython notebook. This function may require ffmpeg.\n\n Parameters\n ----------\n worlds : list or FixedIntervalHDF5Observer\n A list of Worlds to render.\n marker_size : float, default 3\n Marker size for all s... | 217 | false | ecell/ecell4 | plot_movie_with_attractive_mpl | 37,947 | |
LDU_FT/jaraco/jaraco.mongodb/_add_scheme | LDU_FT | [
"<BEGIN>\n## `extract_param`",
"From a list of args, extract the one param if supplied,\n returning the value and unused args.",
" >>> extract_param('port', ['foo', '--port=999', 'bar'], type=int)\n (999, ['foo', 'bar'])\n >>> extract_param('port', ['foo', '--port', '999', 'bar'], type=int)\n (99... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_scheme API.
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 _add_scheme API.
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... | urllib.parse doesn't support the mongodb scheme, but it's easy
to make it so. | "urllib.parse doesn't support the mongodb scheme, but it's easy\n to make it so." | 82 | false | jaraco/jaraco.mongodb | _add_scheme | 37,948 | |
LDU_FT/Stranger6667/pyoffers/retry | LDU_FT | [
"<BEGIN>\n## `prepare_query_params`",
"Prepares given parameters to be used in querystring.\n<END>",
"<BEGIN>\n## `prepend_model`",
"Prepends model name if it is not already prepended.\n For example model is \"Offer\":",
" key -> Offer.key\n -key -> -Offer.key\n Offer... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Allows to retry method execution few times. | "Allows to retry method execution few times." | 19 | false | Stranger6667/pyoffers | retry | 37,949 | |
LDU_FT/alphagov/performanceplatform-collector/parse_args | LDU_FT | [
"<BEGIN>\n## `parse_time_range`",
"Convert the start/end datetimes specified by the user, specifically:\n - truncate any minutes/seconds\n - for a missing end time, use start + 24 hours\n - for a missing start time, use end - 24 hours\n - for missing start and end, use the last 24 hours\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API.
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_args API.
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 command line argument for a collector
Returns an argparse.Namespace with 'config' and 'query' options | "Parse command line argument for a collector\n\n Returns an argparse.Namespace with 'config' and 'query' options" | 56 | false | alphagov/performanceplatform-collector | parse_args | 37,950 | |
LDU_FT/bjmorgan/lattice_mc/dr | LDU_FT | [
"<BEGIN>\n## `collective_dr_squared`",
"Squared sum of total displacements for these atoms.",
" Args:\n None",
" Returns:\n (Float): The square of the summed total displacements for these atoms.\n<END>",
"<BEGIN>\n## `occupations`",
"Number of these atoms occupying a sp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | Particle displacement vector for this jump
Args:
cell_lengths (np.array(x,y,z)): Cell lengths for the orthogonal simulation cell.
Returns
(np.array(x,y,z)): dr | "Particle displacement vector for this jump\n\n Args:\n cell_lengths (np.array(x,y,z)): Cell lengths for the orthogonal simulation cell.\n\n Returns\n (np.array(x,y,z)): dr" | 213 | false | bjmorgan/lattice_mc | dr | 37,951 | |
LDU_FT/edaniszewski/bison/_find_config | LDU_FT | [
"<BEGIN>\n## `build_defaults`",
"Build a dictionary of default values from the `Scheme`.",
" Returns:\n dict: The default configurations as set by the `Scheme`.",
" Raises:\n errors.InvalidSchemeError: The `Scheme` does not contain\n valid options.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_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 extr... | Searches through the configured `config_paths` for the `config_name`
file.
If there are no `config_paths` defined, this will raise an error, so the
caller should take care to check the value of `config_paths` first.
Returns:
str: The fully qualified path to the configuratio... | "Searches through the configured `config_paths` for the `config_name`\n file.\n\n If there are no `config_paths` defined, this will raise an error, so the\n caller should take care to check the value of `config_paths` first.\n\n Returns:\n str: The fully qualified path to the conf... | 56 | false | edaniszewski/bison | _find_config | 37,952 | |
LDU_FT/jjjake/internetarchive/search_items | LDU_FT | [
"<BEGIN>\n## `prepare_metadata`",
"Prepare a metadata dict for an\n :class:`S3PreparedRequest <S3PreparedRequest>` or\n :class:`MetadataPreparedRequest <MetadataPreparedRequest>` object.",
" :type metadata: dict\n :param metadata: The metadata dict to be prepared.",
" :type source_metadata: dic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_items API.
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 search_items API.
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... | Search for items on Archive.org.
:type query: str
:param query: The Archive.org search query to yield results for. Refer to
https://archive.org/advancedsearch.php#raw for help formatting your
query.
:type fields: bool
:param fields: (optional... | "Search for items on Archive.org.\n\n :type query: str\n :param query: The Archive.org search query to yield results for. Refer to\n https://archive.org/advancedsearch.php#raw for help formatting your\n query.\n\n :type fields: bool\n :param fields: ... | 281 | false | jjjake/internetarchive | search_items | 37,953 | |
LDU_FT/lsst-sqre/sqre-apikit/get_logger | LDU_FT | [
"<BEGIN>\n## `set_flask_metadata`",
"Sets metadata on the application to be returned via metadata routes.",
" Parameters\n ----------\n app : :class:`flask.Flask` instance\n Flask application for the microservice you're adding metadata to.",
" version: `str`\n Version of your microse... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_logger API.
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_logger API.
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... | Creates a logging object compatible with Python standard logging,
but which, as a `structlog` instance, emits JSON.
Parameters
----------
file: `None` or `str` (default `None`)
If given, send log output to file; otherwise, to `stdout`.
syslog: `bool` (default `False`)
If `True`, ... | "Creates a logging object compatible with Python standard logging,\n but which, as a `structlog` instance, emits JSON.\n\n Parameters\n ----------\n file: `None` or `str` (default `None`)\n If given, send log output to file; otherwise, to `stdout`.\n syslog: `bool` (default `False`)\n If... | 39 | false | lsst-sqre/sqre-apikit | get_logger | 37,954 | |
LDU_FT/alexanderlukanin13/coolname/_parse_option | LDU_FT | [
"<BEGIN>\n## `load_config`",
"Loads configuration from a path.",
" Path can be a json file, or a directory containing config.json\n and zero or more *.txt files with word lists or phrase lists.",
" Returns config dict.",
" Raises InitializationError when something is wrong.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_option API.
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 _parse_option API.
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... | Parses option line.
Returns (name, value).
Raises ValueError on invalid syntax or unknown option. | "Parses option line.\n Returns (name, value).\n Raises ValueError on invalid syntax or unknown option." | 21 | false | alexanderlukanin13/coolname | _parse_option | 37,955 | |
LDU_FT/miguelmoreto/pycomtrade/getAnalogID | LDU_FT | [
"<BEGIN>\n## `clear`",
"Clear the internal (private) variables of the class.\n<END>",
"<BEGIN>\n## `getTime`",
"Actually, this function creates a time stamp vector \n based on the number of samples and sample rate.\n<END>",
"<BEGIN>\n## `getAnalogID`",
"Returns the COMTRADE ID of a given channel nu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getAnalogID API.
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 getAnalogID API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns the COMTRADE ID of a given channel number.
The number to be given is the same of the COMTRADE header. | "Returns the COMTRADE ID of a given channel number.\n The number to be given is the same of the COMTRADE header." | 22 | false | miguelmoreto/pycomtrade | getAnalogID | 37,956 | |
LDU_FT/telminov/sw-django-utils/sort_key_process | LDU_FT | [
"<BEGIN>\n## `random_date`",
"This function will return a random datetime between two datetime objects.\n :param start:\n :param end:\n<END>",
"<BEGIN>\n## `url_path`",
"join base_url and some GET-parameters to one; it could be absolute url optionally",
" usage example:",
" c['current_url'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_key_process API.
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 sort_key_process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | process sort-parameter value (for example, "-name")
return:
current_param - field for sorting ("name)
current_reversed - revers flag (True) | "process sort-parameter value (for example, \"-name\")\n return:\n current_param - field for sorting (\"name)\n current_reversed - revers flag (True)" | 17 | false | telminov/sw-django-utils | sort_key_process | 37,957 | |
LDU_FT/tuomas2/automate/cmd_namespace | LDU_FT | [
"<BEGIN>\n## `call_eval`",
"Value might be either name registered in System namespace, or object, either\n StatusObject or Callable. If Callable, evaluate :meth:`.call` method. If StatusObject,\n return status.\n<END>",
"<BEGIN>\n## `setup_callable_system`",
"This function basically sets... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_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.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_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.
The ext... | A read-only property that gives the namespace of the system for evaluating commands. | "A read-only property that gives the namespace of the system for evaluating commands." | 91 | false | tuomas2/automate | cmd_namespace | 37,958 | |
LDU_FT/allenai/allennlp/cleanup_global_logging | LDU_FT | [
"<BEGIN>\n## `forward`",
"Parameters\n ----------\n inputs : ``PackedSequence``, required.\n A batch first ``PackedSequence`` to run the stacked LSTM over.\n initial_state : Tuple[torch.Tensor, torch.Tensor], optional, (default = None)\n A tuple (state, memory) represent... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup_global_logging API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup_global_logging API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | This function closes any open file handles and logs set up by `prepare_global_logging`.
Parameters
----------
stdout_handler : ``logging.FileHandler``, required.
The file handler returned from `prepare_global_logging`, attached to the global logger. | "This function closes any open file handles and logs set up by `prepare_global_logging`.\n\n Parameters\n ----------\n stdout_handler : ``logging.FileHandler``, required.\n The file handler returned from `prepare_global_logging`, attached to the global logger." | 1,296 | true | allenai/allennlp | cleanup_global_logging | 37,959 | |
LDU_FT/serge-sans-paille/pythran/visit_Call | LDU_FT | [
"<BEGIN>\n## `check_specs`",
"Does nothing but raising PythranSyntaxError if specs\n are incompatible with the actual code\n<END>",
"<BEGIN>\n## `check_exports`",
"Does nothing but raising PythranSyntaxError if specs\n references an undefined global\n<END>",
"<BEGIN>\n## `visit_Import`",
"Check if i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_Call API.
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 visit_Call API.
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... | Replace function call by inlined function's body.
We can inline if it aliases on only one function. | "Replace function call by inlined function's body.\n\n We can inline if it aliases on only one function." | 547 | false | serge-sans-paille/pythran | visit_Call | 37,960 | |
LDU_FT/marrow/util/ellipsis | LDU_FT | [
"<BEGIN>\n## `pcwd`",
"A decorator to provide the functionality of the\n PreserveWorkingDirectory context manager for functions and methods.\n<END>",
"<BEGIN>\n## `cd`",
"Change the current working directory within this context.",
" Preserves the previous working directory and can be applied to remote... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ellipsis API.
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 ellipsis API.
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... | Present a block of text of given length.
If the length of available text exceeds the requested length, truncate and
intelligently append an ellipsis. | "Present a block of text of given length.\n \n If the length of available text exceeds the requested length, truncate and\n intelligently append an ellipsis." | 73 | false | marrow/util | ellipsis | 37,961 | |
LDU_FT/carpedm20/ndrive/checkStatus | LDU_FT | [
"<BEGIN>\n## `login`",
"Log in Naver and get cookie",
" Agrs:\n user_id: Naver account's login id\n password: Naver account's login password",
" Returns:\n True: Login success\n False: Login failed",
" Remarks:\n self.cookie is a di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkStatus API.
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 checkStatus API.
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... | Check status
Args:
Returns:
True: Sucess
False: Failed | "Check status\n\n Args:\n\n Returns:\n True: Sucess\n False: Failed" | 170 | false | carpedm20/ndrive | checkStatus | 37,962 | |
LDU_FT/mattharrison/rst2odp/push_pending_node | LDU_FT | [
"<BEGIN>\n## `adjust_fit`",
"given a x and y of dest, determine the ratio and return\n an (x,y,w,h) for a fitted image (note x or y could be neg).\n >>> adjust_fit(4,3,5,5)\n (0.5, 0, 3.0, 3.0)\n >>> adjust_fit(8,6,5,5)\n (1.0, 0, 6.0, 6.0)\n >>> adjust_fit(4,3,5,2)\n (0, 0.69999999999999996,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push_pending_node API.
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 push_pending_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | pending nodes are for affecting type, such as wrapping content
with text:a to make a hyperlink. Anything in pending nodes
will be written before the actual text.
User needs to remember to pop out of it. | "pending nodes are for affecting type, such as wrapping content\n with text:a to make a hyperlink. Anything in pending nodes\n will be written before the actual text.\n User needs to remember to pop out of it." | 50 | false | mattharrison/rst2odp | push_pending_node | 37,963 | |
LDU_FT/juiceinc/recipe/add_ingredients | LDU_FT | [
"<BEGIN>\n## `cauldron_extras`",
"Yield extra tuples containing a field name and a callable that takes\n a row\n<END>",
"<BEGIN>\n## `make_column_suffixes`",
"Make sure we have the right column suffixes. These will be appended\n to `id` when generating the query.\n<END>",
"<BEGIN>\n## `parse_c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_ingredients API.
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_ingredients API.
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... | Put the anonymizers in the last position of formatters | "Put the anonymizers in the last position of formatters" | 129 | false | juiceinc/recipe | add_ingredients | 37,964 | |
LDU_FT/elifesciences/elife-article/build_datasets | LDU_FT | [
"<BEGIN>\n## `build_contributors`",
"Given a list of authors from the parser, instantiate contributors\n objects and build them\n<END>",
"<BEGIN>\n## `build_datasets`",
"Given datasets in JSON format, build and return a list of dataset objects\n<END>",
"<BEGIN>\n## `build_data_availability`",
"Given da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_datasets API.
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 build_datasets API.
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... | Given datasets in JSON format, build and return a list of dataset objects | "Given datasets in JSON format, build and return a list of dataset objects" | 44 | false | elifesciences/elife-article | build_datasets | 37,965 | |
LDU_FT/pantsbuild/pants/execute | LDU_FT | [
"<BEGIN>\n## `load_file_contents`",
"Loads config from the given string payloads.",
" A handful of seed values will be set to act as if specified in the loaded config file's DEFAULT\n section, and be available for use in substitutions. The caller may override some of these\n seed values.",
" :par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
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 execute API.
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... | Resolves the specified confs for the configured targets and returns an iterator over
tuples of (conf, jar path). | "Resolves the specified confs for the configured targets and returns an iterator over\n tuples of (conf, jar path)." | 3,372 | true | pantsbuild/pants | execute | 37,966 | |
LDU_FT/zyga/python-glibc/pipe2 | LDU_FT | [
"<BEGIN>\n## `_get_fd`",
"Get a descriptor out of a file object.",
" :param fileobj:\n An integer (existing descriptor) or any object having the `fileno()`\n method.\n :raises ValueError:\n if the descriptor cannot be obtained or if the descriptor is invalid\n :returns:\n fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipe2 API.
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 pipe2 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Wrapper around ``pipe2(2)``
:param flags:
Optional flags to set. This should almost always include O_CLOEXEC so
that the resulting code is not racy (see the discussion about O_CLOEXEC
to understand why this flag is essential). It can also include
O_NONBLOCK or O_DIRECT, depending on... | "Wrapper around ``pipe2(2)``\n\n :param flags:\n Optional flags to set. This should almost always include O_CLOEXEC so\n that the resulting code is not racy (see the discussion about O_CLOEXEC\n to understand why this flag is essential). It can also include\n O_NONBLOCK or O_DIRECT, depen... | 106 | false | zyga/python-glibc | pipe2 | 37,967 | |
LDU_FT/bretth/woven/check_settings | LDU_FT | [
"<BEGIN>\n## `setupnode`",
"Install a baseline host. Can be run multiple times\n<END>",
"<BEGIN>\n## `add_repositories`",
"Adds additional sources as defined in LINUX_PACKAGE_REPOSITORIES.\n<END>",
"<BEGIN>\n## `change_ssh_port`",
"For security woven changes the default ssh port.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Validate the users settings conf prior to deploy | "Validate the users settings conf prior to deploy" | 140 | false | bretth/woven | check_settings | 37,968 | |
LDU_FT/saxix/django-concurrency/identity | LDU_FT | [
"<BEGIN>\n## `identity`",
"returns a string representing \"<pk>,<version>\" of the passed object\n<END>",
"<BEGIN>\n## `deprecated`",
"A decorator which can be used to mark functions as deprecated.\n replacement is a callable that will be called with the same args\n as the decorated function.\n >>> i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the identity API.
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 identity API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | returns a string representing "<pk>,<version>" of the passed object | "returns a string representing \"<pk>,<version>\" of the passed object" | 42 | false | saxix/django-concurrency | identity | 37,969 | |
LDU_FT/yuma-m/pychord/append_on_chord | LDU_FT | [
"<BEGIN>\n## `get_components`",
"Get components of chord quality",
" :param str root: the root note of the chord\n :param bool visible: returns the name of notes if True\n :rtype: list[str|int]\n :return: components of chord quality\n<END>",
"<BEGIN>\n## `append_on_chord`",
"Appe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_on_chord API.
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 append_on_chord API.
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... | Append on chord
To create Am7/G
q = Quality('m7')
q.append_on_chord('G', root='A')
:param str on_chord: bass note of the chord
:param str root: root note of the chord | "Append on chord\n\n To create Am7/G\n q = Quality('m7')\n q.append_on_chord('G', root='A')\n\n :param str on_chord: bass note of the chord\n :param str root: root note of the chord" | 51 | false | yuma-m/pychord | append_on_chord | 37,970 | |
LDU_FT/census-instrumentation/opencensus-python/wrap_create_channel | LDU_FT | [
"<BEGIN>\n## `get_node`",
"Generates Node message from params and system information.\n<END>",
"<BEGIN>\n## `proto_ts_from_datetime_str`",
"Converts string datetime in ISO format to protobuf timestamp.\n :type dt: str\n :param dt: string with datetime in ISO format\n :rtype: :class:`~google.protobuf.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_create_channel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_create_channel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Wrap the google.api_core.grpc_helpers.create_channel. | "Wrap the google.api_core.grpc_helpers.create_channel." | 528 | false | census-instrumentation/opencensus-python | wrap_create_channel | 37,971 | |
LDU_FT/ska-sa/hypercube/dim_lower_extent_dict | LDU_FT | [
"<BEGIN>\n## `bytes_required`",
"Returns\n -------\n int\n Estimated number of bytes required by arrays registered\n on the cube, taking their extents into account.\n<END>",
"<BEGIN>\n## `register_dimension`",
"Registers a dimension on this cube.",
" .. code-block:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dim_lower_extent_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dim_lower_extent_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns a mapping of dimension name to lower_extent | "Returns a mapping of dimension name to lower_extent" | 163 | false | ska-sa/hypercube | dim_lower_extent_dict | 37,972 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.