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/mweb/appconfig/init_default_config
LDU_FT
[ "<BEGIN>\n## `_get_type`", "Get the python type for a given string describtion for a type.", " @param stype: The string representing the type to return\n @return: The python type if available\n<END>", "<BEGIN>\n## `_format_message`", "Return a string with newlines so that the given string fits...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_default_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_default_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. T...
Initialize the config object and load the default configuration. The path to the config file must be provided. The name of the application is read from the config file. The config file stores the description and the default values for all configurations including the appl...
"Initialize the config object and load the default configuration.\n The path to the config file must be provided. The name of the\n application is read from the config file.\n The config file stores the description and the default values for\n all configurations including the...
35
false
mweb/appconfig
init_default_config
3,873
LDU_FT/proversity-org/bibblio-api-python/create_content_item
LDU_FT
[ "<BEGIN>\n## `create_content_item`", "Name: create_content_item\n\tParameters: access_token, payload (dict)\n\tReturn: dictionary\n<END>", "<BEGIN>\n## `get_content_items`", "Name: get_content_items\n\tParameters: access_token, limit (optional), page (optional)\n\tReturn: dictionary\n<END>", "<BEGIN>\n## `g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_content_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_content_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Name: create_content_item Parameters: access_token, payload (dict) Return: dictionary
"Name: create_content_item\n\tParameters: access_token, payload (dict)\n\tReturn: dictionary"
18
false
proversity-org/bibblio-api-python
create_content_item
3,874
LDU_FT/Fuyukai/asyncwebsockets/create_websocket_client
LDU_FT
[ "<BEGIN>\n## `open_websocket_server`", "A context manager which serves this websocket.", " :param filter: an async callback which accepts the connection request\n and returns a bool, or an explicit Accept/Reject message.\n<END>", "<BEGIN>\n## `create_websocket_server`", "A more low-level form of open_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_websocket_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_websocket_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...
A more low-level form of create_websocket_client. You are responsible for closing this websocket.
"A more low-level form of create_websocket_client.\n You are responsible for closing this websocket."
15
false
Fuyukai/asyncwebsockets
create_websocket_client
3,875
LDU_FT/istresearch/scrapy-cluster/_process_plugin
LDU_FT
[ "<BEGIN>\n## `load`", "Load the settings dict", " @param local: The local settings filename to use\n @param default: The default settings module to read\n @return: A dict of the loaded settings\n<END>", "<BEGIN>\n## `load_from_string`", "Loads settings from a settings_string. Expects an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_plugin API. 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 _process_plugin API. 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...
Logic to handle each plugin that is active @param plugin: a plugin dict object
"Logic to handle each plugin that is active\n\n @param plugin: a plugin dict object"
269
false
istresearch/scrapy-cluster
_process_plugin
3,876
LDU_FT/alerta/alerta/dedup_alert
LDU_FT
[ "<BEGIN>\n## `get_severity`", "Get severity of correlated alert. Used to determine previous severity.\n<END>", "<BEGIN>\n## `is_flapping`", "Return true if alert severity has changed more than X times in Y seconds\n<END>", "<BEGIN>\n## `dedup_alert`", "Update alert status, service, value, text, timeout an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dedup_alert API. 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 dedup_alert API. 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...
Update alert status, service, value, text, timeout and rawData, increment duplicate count and set repeat=True, and keep track of last receive id and time but don't append to history unless status changes.
"Update alert status, service, value, text, timeout and rawData, increment duplicate count and set\n repeat=True, and keep track of last receive id and time but don't append to history unless status changes."
34
false
alerta/alerta
dedup_alert
3,877
LDU_FT/ethan92429/onshapepy/create_assembly
LDU_FT
[ "<BEGIN>\n## `log`", "Logs a message to the console, with optional level paramater", " Args:\n - msg (str): message to send to console\n - level (int): log level; 0 for info, 1 for error (default = 0)\n<END>", "<BEGIN>\n## `parse_quantity`", "Parse an OnShape units definition\n Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_assembly API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_assembly API. 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...
Creates a new assembly element in the specified document / workspace. Args: - did (str): Document ID - wid (str): Workspace ID - name (str, default='My Assembly') Returns: - requests.Response: Onshape response data
"Creates a new assembly element in the specified document / workspace.\n\n Args:\n - did (str): Document ID\n - wid (str): Workspace ID\n - name (str, default='My Assembly')\n\n Returns:\n - requests.Response: Onshape response data"
93
false
ethan92429/onshapepy
create_assembly
3,878
LDU_FT/acsone/setuptools-odoo/_find_addons_dir
LDU_FT
[ "<BEGIN>\n## `get_git_postversion`", "return the addon version number, with a developmental version increment\n if there were git commits in the addon_dir after the last version change.", " If the last change to the addon correspond to the version number in the\n manifest it is used as is for the pytho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_addons_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_addons_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Try to find the addons dir / namespace package Returns addons_dir, addons_ns
"Try to find the addons dir / namespace package\n\n Returns addons_dir, addons_ns"
16
false
acsone/setuptools-odoo
_find_addons_dir
3,879
LDU_FT/openfisca/openfisca-survey-manager/get_value
LDU_FT
[ "<BEGIN>\n## `read_dbf`", "Read a dbf file as a pandas.DataFrame, optionally selecting the index\n variable and which columns are to be loaded.", " __author__ = \"Dani Arribas-Bel <darribas@asu.edu> \"\n ...", " Arguments\n ---------\n dbf_path : str\n Path to the DBF fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get value Parameters ---------- variable : string name of the variable table : string, default None name of the table hosting the variable Returns ------- df : DataFrame, default None A DataFrame containing the varia...
"Get value\n\n Parameters\n ----------\n variable : string\n name of the variable\n table : string, default None\n name of the table hosting the variable\n Returns\n -------\n df : DataFrame, default None\n A DataFrame containi...
80
false
openfisca/openfisca-survey-manager
get_value
3,880
LDU_FT/keenlabs/KeenClient-Python/old_encode_aes
LDU_FT
[ "<BEGIN>\n## `_initialize_client_from_environment`", "Initialize a KeenClient instance using environment variables.\n<END>", "<BEGIN>\n## `add_event`", "Adds an event.", " Depending on the persistence strategy of the client,\n this will either result in the event being uploaded to Keen\n immediatel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the old_encode_aes API. 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 old_encode_aes API. 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...
Utility method to encode some given plaintext with the given key. Important thing to note: This is not a general purpose encryption method - it has specific semantics (see below for details). Takes the given key, pads it to 32 bytes. Then takes the given plaintext and pads that to a 32 byte block size...
"Utility method to encode some given plaintext with the given key. Important thing to note:\n\n This is not a general purpose encryption method - it has specific semantics (see below for\n details).\n\n Takes the given key, pads it to 32 bytes. Then takes the given plaintext and pads that to a\n 32 byte blo...
177
false
keenlabs/KeenClient-Python
old_encode_aes
3,881
LDU_FT/dusktreader/flask-praetorian/_validate_user_class
LDU_FT
[ "<BEGIN>\n## `_verify_and_add_jwt`", "This helper method just checks and adds jwt data to the app context. Will\n not add jwt data if it is already present. Only use in this module\n<END>", "<BEGIN>\n## `auth_required`", "This decorator is used to ensure that a user is authenticated before\n being able ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_user_class 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 _validate_user_class API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Validates the supplied user_class to make sure that it has the class methods necessary to function correctly. Requirements: - ``lookup`` method. Accepts a string parameter, returns instance - ``identify`` method. Accepts an identity parameter, returns instance
"Validates the supplied user_class to make sure that it has the\n class methods necessary to function correctly.\n\n Requirements:\n\n - ``lookup`` method. Accepts a string parameter, returns instance\n - ``identify`` method. Accepts an identity parameter, returns instance"
73
false
dusktreader/flask-praetorian
_validate_user_class
3,882
LDU_FT/MaxHalford/starboost/iter_predict
LDU_FT
[ "<BEGIN>\n## `softmax`", "Can be replaced once scipy 1.3 is released, although numeric stability should be checked.\n<END>", "<BEGIN>\n## `fit`", "Fit a gradient boosting procedure to a dataset.", " Args:\n X (array-like or sparse matrix of shape (n_samples, n_features)): The training inpu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns the predicted classes for ``X`` at every stage of the boosting procedure. Arguments: X (array-like or sparse matrix of shape (n_samples, n_features)): The input samples. Sparse matrices are accepted only if they are supported by the weak model. include_init (bool...
"Returns the predicted classes for ``X`` at every stage of the boosting procedure.\n\n Arguments:\n X (array-like or sparse matrix of shape (n_samples, n_features)): The input samples.\n Sparse matrices are accepted only if they are supported by the weak model.\n include_init...
28
false
MaxHalford/starboost
iter_predict
3,883
LDU_FT/slok/prometheus-python/get_all
LDU_FT
[ "<BEGIN>\n## `negotiate`", "Process headers dict to return the format class\n (not the instance)\n<END>", "<BEGIN>\n## `add`", "Add works like replace, but only previously pushed metrics with the\n same name (and the same job and instance) will be replaced.\n (It uses HTTP met...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a list populated by tuples of 2 elements, first one is a dict with all the labels and the second elemnt is the value of the metric itself
"Returns a list populated by tuples of 2 elements, first one is\n a dict with all the labels and the second elemnt is the value\n of the metric itself"
20
false
slok/prometheus-python
get_all
3,884
LDU_FT/suurjaak/InputScope/timedelta_seconds
LDU_FT
[ "<BEGIN>\n## `start`", "Starts the listener with incoming and outgoing queues.\n<END>", "<BEGIN>\n## `fetch`", "Convenience wrapper for database SELECT and fetch all.\n<END>", "<BEGIN>\n## `fetchone`", "Convenience wrapper for database SELECT and fetch one.\n<END>", "<BEGIN>\n## `insert`", "Convenienc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timedelta_seconds API. 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 timedelta_seconds API. 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 the total timedelta duration in seconds.
"Returns the total timedelta duration in seconds."
38
false
suurjaak/InputScope
timedelta_seconds
3,885
LDU_FT/DreamLab/VmShepherd/get
LDU_FT
[ "<BEGIN>\n## `initialize_openstack`", "Initialize and refresh openstack connection\n<END>", "<BEGIN>\n## `initialize`", "Initialize static data like images and flavores and set it as object property\n<END>", "<BEGIN>\n## `create_vm`", "Create VM\n :arg preset_name: string\n :arg image: str...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
Inject all preset data to Panel and Render a Home Page
"Inject all preset data to Panel and Render a Home Page"
47
false
DreamLab/VmShepherd
get
3,886
LDU_FT/MagicTheGathering/mtg-sdk-python/get
LDU_FT
[ "<BEGIN>\n## `get`", "Invoke an HTTP GET request on a url", " Args:\n url (string): URL endpoint to request\n params (dict): Dictionary of url parameters\n Returns:\n dict: JSON response as a dictionary\n<END>", "<BEGIN>\n## `find`", "Get a resource by its id",...
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...
Invoke an HTTP GET request on a url Args: url (string): URL endpoint to request params (dict): Dictionary of url parameters Returns: dict: JSON response as a dictionary
"Invoke an HTTP GET request on a url\n\n Args:\n url (string): URL endpoint to request\n params (dict): Dictionary of url parameters\n Returns:\n dict: JSON response as a dictionary"
15
false
MagicTheGathering/mtg-sdk-python
get
3,887
LDU_FT/stepank/pyws/add_function
LDU_FT
[ "<BEGIN>\n## `add_function`", "Adds the function to the list of registered functions.\n<END>", "<BEGIN>\n## `get_one`", "Returns a function if it is registered, the context is ignored.\n<END>", "<BEGIN>\n## `get_context_data_from_headers`", "Extracts context data from request headers according to specifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_function API. 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...
Registers the function to the server's default fixed function manager.
"Registers the function to the server's default fixed function manager."
38
false
stepank/pyws
add_function
3,888
LDU_FT/what-studio/profiling/config_flag
LDU_FT
[ "<BEGIN>\n## `by_own_time_per_call`", "Sorting by exclusive elapsed time per call in descending order.\n<END>", "<BEGIN>\n## `result`", "Gets the frozen statistics to serialize by Pickle.\n<END>", "<BEGIN>\n## `dump`", "Saves the profiling result to a file", " :param dump_filename: path to a file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config_flag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config_flag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Guesses whether a CLI flag should be turned on or off from the configuration. If the configuration option value is same with the given value, it returns ``True``. :: @click.option('--ko-kr', 'locale', is_flag=True, default=config_flag('locale', 'ko_KR'))
"Guesses whether a CLI flag should be turned on or off from the\n configuration. If the configuration option value is same with the given\n value, it returns ``True``.\n\n ::\n\n @click.option('--ko-kr', 'locale', is_flag=True,\n default=config_flag('locale', 'ko_KR'))"
83
false
what-studio/profiling
config_flag
3,889
LDU_FT/rodluger/everest/LightcurveHDU
LDU_FT
[ "<BEGIN>\n## `Download`", "Submits a cluster job to the build queue to download all TPFs for a given\n campaign.", " :param int campaign: The `K2` campaign to run\n :param str queue: The name of the queue to submit to. Default `build`\n :param str email: The email to send job status notifications to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the LightcurveHDU API. 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 LightcurveHDU API. 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...
Construct the data HDU file containing the arrays and the observing info.
"Construct the data HDU file containing the arrays and the observing info."
364
false
rodluger/everest
LightcurveHDU
3,890
LDU_FT/jealous/stockstats/_get_s
LDU_FT
[ "<BEGIN>\n## `_get_p`", "get the permutation of specified range\r", " example:\r\n index x x_-2,-1_p\r\n 0 1 NaN\r\n 1 -1 NaN\r\n 2 3 2 (0.x > 0, and assigned to weight 2)\r\n 3 5 1 (2.x > 0, and assi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_s API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_s API. 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 ...
Get the column shifted by days :param df: DataFrame object :param column: name of the column to shift :param shifts: days to shift, accept one shift only :return: None
"Get the column shifted by days\r\n\r\n :param df: DataFrame object\r\n :param column: name of the column to shift\r\n :param shifts: days to shift, accept one shift only\r\n :return: None"
84
false
jealous/stockstats
_get_s
3,891
LDU_FT/nicfit/MishMash/normalizeCountry
LDU_FT
[ "<BEGIN>\n## `iterall`", "Iterate over all Library rows found in `session`.\n :param names: Optional sequence of names to filter on.\n<END>", "<BEGIN>\n## `search`", "Naive search of the database for `query`.", " :return: A dict with keys 'artists', 'albums', and 'tracks'. Each containing a list\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalizeCountry API. 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 normalizeCountry API. 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 a normalized name/code for country in ``country_str``. The input can be a code or name, the ``target`` determines output value. 3 character ISO code is the default (iso3c), 'country_name', and 'iso2c' are common also. See ``countrycode.countrycode`` for details and other options. Raises ``ValueEr...
"Return a normalized name/code for country in ``country_str``.\n The input can be a code or name, the ``target`` determines output value.\n 3 character ISO code is the default (iso3c), 'country_name', and 'iso2c'\n are common also. See ``countrycode.countrycode`` for details and other\n options. Raises ``Va...
11
false
nicfit/MishMash
normalizeCountry
3,892
LDU_FT/luismsgomes/stringology/lcp
LDU_FT
[ "<BEGIN>\n## `llcs`", "length of the longest common sequence", " This implementation takes O(len(s1) * len(s2)) time and\n O(min(len(s1), len(s2))) space.", " Use only with short strings.", " >>> llcs('a.b.cd','!a!b!c!!!d!')\n 4\n<END>", "<BEGIN>\n## `lcsr`", "longest common sequence rati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lcp API. 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 lcp API. 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...
longest common prefix >>> lcp('abcdx', 'abcdy'), lcp('', 'a'), lcp('x', 'yz') (4, 0, 0)
"longest common prefix\n\n >>> lcp('abcdx', 'abcdy'), lcp('', 'a'), lcp('x', 'yz')\n (4, 0, 0)"
29
false
luismsgomes/stringology
lcp
3,893
LDU_FT/ArabellaTech/aa-intercom/upload_intercom_user
LDU_FT
[ "<BEGIN>\n## `get_intercom_data`", "Specify the data sent to Intercom API according to event type\n<END>", "<BEGIN>\n## `get_intercom_data`", "Specify the user data sent to Intercom API\n<END>", "<BEGIN>\n## `upload_intercom_user`", "Creates or updates single user account on intercom\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_intercom_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_intercom_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Creates or updates single user account on intercom
"Creates or updates single user account on intercom"
16
false
ArabellaTech/aa-intercom
upload_intercom_user
3,894
LDU_FT/Accelize/pycosio/_head
LDU_FT
[ "<BEGIN>\n## `_copy`", "Copies file from source to destination", " Args:\n src (str or file-like object): Source file.\n dst (str or file-like object): Destination file.\n src_is_storage (bool): Source is storage.\n dst_is_storage (bool): Destination is storage.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _head API. 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 _head API. 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...
Returns object HTTP header. Args: client_kwargs (dict): Client arguments. Returns: dict: HTTP header.
"Returns object HTTP header.\n\n Args:\n client_kwargs (dict): Client arguments.\n\n Returns:\n dict: HTTP header."
498
false
Accelize/pycosio
_head
3,895
LDU_FT/astooke/gtimer/end_subdivision
LDU_FT
[ "<BEGIN>\n## `start`", "Mark the start of timing, overwriting the automatic start data written on\n import, or the automatic start at the beginning of a subdivision.", " Notes:\n Backdating: For subdivisions only. Backdate time must be in the past\n but more recent than the latest stamp in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the end_subdivision API. 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 end_subdivision API. 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...
End a user-induced timing subdivision, returning the previous level in the timing hierarchy as the target of timing commands such as stamp(). Includes a call to stop(); a previous call to stop() is OK. Returns: None Raises: GTimerError: If current subdivision was not induced by user. ...
"End a user-induced timing subdivision, returning the previous level in\n the timing hierarchy as the target of timing commands such as stamp().\n Includes a call to stop(); a previous call to stop() is OK.\n\n Returns:\n None\n\n Raises:\n GTimerError: If current subdivision was not induced b...
137
false
astooke/gtimer
end_subdivision
3,896
LDU_FT/IdentityPython/pysaml2/valid_anytype
LDU_FT
[ "<BEGIN>\n## `add_vo_information_about_user`", "Add information to the knowledge I have about the user. This is\n for Virtual organizations.", " :param name_id: The subject identifier\n :return: A possibly extended knowledge.\n<END>", "<BEGIN>\n## `create_authn_request`", "Creates an au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid_anytype API. 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 valid_anytype API. 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...
Goes through all known type validators :param val: The value to validate :return: True is value is valid otherwise an exception is raised
"Goes through all known type validators\n\n :param val: The value to validate\n :return: True is value is valid otherwise an exception is raised"
738
false
IdentityPython/pysaml2
valid_anytype
3,897
LDU_FT/LaoLiulaoliu/pgwrapper/_create_connection
LDU_FT
[ "<BEGIN>\n## `_create_connection`", ".. :py:method::", " If we hava several hosts, we can random choice one to connect\n<END>", "<BEGIN>\n## `execute`", ".. :py:method::", " :param bool result: whether query return result\n :rtype: bool", " .. note::\n True f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_connection 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 _create_connection 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...
.. :py:method:: If we hava several hosts, we can random choice one to connect
".. :py:method::\n\n If we hava several hosts, we can random choice one to connect"
48
false
LaoLiulaoliu/pgwrapper
_create_connection
3,898
LDU_FT/jmbhughes/suvi-trainer/change_class
LDU_FT
[ "<BEGIN>\n## `process_file`", "Open a single labeled image at path and get needed information, return as a dictionary\n<END>", "<BEGIN>\n## `plot_counts`", "plot the counts of a given theme from a created database over time\n<END>", "<BEGIN>\n## `query_hek`", "requests hek responses for a given time\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_class API. 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 change_class API. 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...
"on changing the classification label, update the "draw" text
"\"on changing the classification label, update the \"draw\" text"
90
false
jmbhughes/suvi-trainer
change_class
3,899
LDU_FT/bennylope/smartystreets.py/validate_args
LDU_FT
[ "<BEGIN>\n## `chunker`", "Generates n-sized chunks from the list l\n<END>", "<BEGIN>\n## `post`", "Executes most of the request.", " The parallelism parameter is useful to avoid swamping the API service with calls. Thus\n the entire set of requests won't be all made at once, but in chunked gro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_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 ext...
Ensures that *args consist of a consistent type :param f: any client method with *args parameter :return: function f
"Ensures that *args consist of a consistent type\n\n :param f: any client method with *args parameter\n :return: function f"
35
false
bennylope/smartystreets.py
validate_args
3,900
LDU_FT/aws/sagemaker-python-sdk/_sync_directories
LDU_FT
[ "<BEGIN>\n## `deploy`", "Deploy this ``Model`` to an ``Endpoint`` and optionally return a ``Predictor``.", " Create a SageMaker ``Model`` and ``EndpointConfig``, and deploy an ``Endpoint`` from this ``Model``.\n If ``self.predictor_cls`` is not None, this method returns a the result of invoking\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sync_directories API. 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 _sync_directories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Sync to_directory with from_directory by copying each file in to_directory with new contents. Files in to_directory will be overwritten by files of the same name in from_directory. We need to keep two copies of the log directory because otherwise TensorBoard picks up temp files from `aws...
"Sync to_directory with from_directory by copying each file in\n to_directory with new contents. Files in to_directory will be\n overwritten by files of the same name in from_directory. We need to\n keep two copies of the log directory because otherwise TensorBoard\n picks up temp files from...
796
false
aws/sagemaker-python-sdk
_sync_directories
3,901
LDU_FT/tango-controls/pytango/insert
LDU_FT
[ "<BEGIN>\n## `get_object_executor`", "Returns the proper executor for the given object.", " If the object has *_executors* and *_green_mode* members it returns\n the submit callable for the executor corresponding to the green_mode.\n Otherwise it returns the global executor for the given green_mode.", ...
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 ...
s.insert(i, x) same as s[i:i] = [x] Raises TypeError if x isn't a string.
"s.insert(i, x) same as s[i:i] = [x]\n Raises TypeError if x isn't a string."
577
false
tango-controls/pytango
insert
3,902
LDU_FT/pasztorpisti/py-flags/process_inline_members_definition
LDU_FT
[ "<BEGIN>\n## `unique`", "A decorator for flags classes to forbid flag aliases.\n<END>", "<BEGIN>\n## `unique_bits`", "A decorator for flags classes to forbid declaring flags with overlapping bits.\n<END>", "<BEGIN>\n## `process_inline_members_definition`", ":param members: this can be any of the following...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_inline_members_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_inline_members_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
:param members: this can be any of the following: - a string containing a space and/or comma separated list of names: e.g.: "item1 item2 item3" OR "item1,item2,item3" OR "item1, item2, item3" - tuple/list/Set of strings (names) - Mapping of (name, data) pairs - any kind of iterable that yields (na...
":param members: this can be any of the following:\n - a string containing a space and/or comma separated list of names: e.g.:\n \"item1 item2 item3\" OR \"item1,item2,item3\" OR \"item1, item2, item3\"\n - tuple/list/Set of strings (names)\n - Mapping of (name, data) pairs\n - any kind of iterable tha...
14
false
pasztorpisti/py-flags
process_inline_members_definition
3,903
LDU_FT/timknip/pycsg/build
LDU_FT
[ "<BEGIN>\n## `lerp`", "Lerp. Linear interpolation from self to a\n<END>", "<BEGIN>\n## `interpolate`", "Create a new vertex between this vertex and `other` by linearly\n interpolating all properties using a parameter of `t`. Subclasses should\n override this to interpolate additional properties....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. 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 build API. 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...
Build a BSP tree out of `polygons`. When called on an existing tree, the new polygons are filtered down to the bottom of the tree and become new nodes there. Each set of polygons is partitioned using the first polygon (no heuristic is used to pick a good split).
"Build a BSP tree out of `polygons`. When called on an existing tree, the\n new polygons are filtered down to the bottom of the tree and become new\n nodes there. Each set of polygons is partitioned using the first polygon\n (no heuristic is used to pick a good split)."
52
false
timknip/pycsg
build
3,904
LDU_FT/cons3rt/pycons3rt/download
LDU_FT
[ "<BEGIN>\n## `getdict`", "Returns a standard python Dict with computed values\n from the DynDict\n :param source: (DynDict) input\n :return: (dict) Containing computed values\n<END>", "<BEGIN>\n## `get_ec2_client`", "Gets an EC2 client", " :return: boto3.client object\n :raises: AWSAPIError\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. 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 download API. 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...
Module method for downloading from S3 This public module method takes a key and the full path to the destination directory, assumes that the args have been validated by the public caller methods, and attempts to download the specified key to the dest_dir. :param download_info: (dict) Contains the...
"Module method for downloading from S3\n\n This public module method takes a key and the full path to\n the destination directory, assumes that the args have been\n validated by the public caller methods, and attempts to\n download the specified key to the dest_dir.\n\n :param download_info: (dict) Cont...
386
false
cons3rt/pycons3rt
download
3,905
LDU_FT/thombashi/SimpleSQLite/select_as_dict
LDU_FT
[ "<BEGIN>\n## `set_log_level`", "Set logging level of this module. Using\n `logbook <https://logbook.readthedocs.io/en/stable/>`__ module for logging.", " :param int log_level:\n One of the log level of\n `logbook <https://logbook.readthedocs.io/en/stable/api/base.html>`__.\n Disabled ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_as_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_as_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get data in the database and return fetched data as a |OrderedDict| list. :param str table_name: |arg_select_table_name| :param list columns: |arg_select_as_xx_columns| :param where: |arg_select_where| :type where: |arg_where_type| :param str extra: |arg_select_extra| ...
"Get data in the database and return fetched data as a\n |OrderedDict| list.\n\n :param str table_name: |arg_select_table_name|\n :param list columns: |arg_select_as_xx_columns|\n :param where: |arg_select_where|\n :type where: |arg_where_type|\n :param str extra: |arg_select_e...
185
false
thombashi/SimpleSQLite
select_as_dict
3,906
LDU_FT/ael-code/pyFsdb/add
LDU_FT
[ "<BEGIN>\n## `copy_content`", "copy the content of `origin` to `dstPath` in a safe manner.", " this function will first copy the content to a temporary file\n and then move it atomically to the requested destination.", " if some error occurred during content copy or file movement\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add new element to fsdb. Args: origin -- could be the path of a file or a readable/seekable object ( fileobject, stream, stringIO...) Returns: String rapresenting the digest of the file
"Add new element to fsdb.\n\n Args:\n origin -- could be the path of a file or a readable/seekable object ( fileobject, stream, stringIO...)\n Returns:\n String rapresenting the digest of the file"
42
false
ael-code/pyFsdb
add
3,907
LDU_FT/quantopian/empyrical/conditional_value_at_risk
LDU_FT
[ "<BEGIN>\n## `_adjust_returns`", "Returns the returns series adjusted by adjustment_factor. Optimizes for the\n case of adjustment_factor being 0 by returning returns itself, not a copy!", " Parameters\n ----------\n returns : pd.Series or np.ndarray\n adjustment_factor : pd.Series or np.ndarray ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conditional_value_at_risk 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 conditional_value_at_risk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Conditional value at risk (CVaR) of a returns stream. CVaR measures the expected single-day returns of an asset on that asset's worst performing days, where "worst-performing" is defined as falling below ``cutoff`` as a percentile of all daily returns. Parameters ---------- returns : pandas.Se...
"Conditional value at risk (CVaR) of a returns stream.\n\n CVaR measures the expected single-day returns of an asset on that asset's\n worst performing days, where \"worst-performing\" is defined as falling below\n ``cutoff`` as a percentile of all daily returns.\n\n Parameters\n ----------\n returns ...
253
false
quantopian/empyrical
conditional_value_at_risk
3,908
LDU_FT/conchoecia/gloTK/generate_report
LDU_FT
[ "<BEGIN>\n## `meraculous_runner`", "Check to make sure that the allAssembliesDir has been created, if not,\n make it. This will only execute for the first time an assembly has been\n run in this directory.", " Run the directory from allAssembliesDir. The self.callString instance\n at...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_report API. 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 generate_report API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
This method does most of the work for this class. It generates an individual report for the instance.
"This method does most of the work for this class. It generates an\n individual report for the instance."
73
false
conchoecia/gloTK
generate_report
3,909
LDU_FT/amcfague/webunit2/_prepare_basicauth
LDU_FT
[ "<BEGIN>\n## `assertHeader`", "Returns `True` if ``name`` was in the headers and, if ``value`` is\n True, whether or not the values match, or `False` otherwise.\n<END>", "<BEGIN>\n## `assertCookie`", "Returns `True` if:", " - the cookie name appears in the response\n - if value ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_basicauth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_basicauth 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...
Handles BasicAuth preparation and error handling. Either both ``username`` and ``password`` must be defined, or neither. Defining one but not the other will result in an :class:`AssertionError`. ``username`` ``password`` Returns a tuple of ``(header_key, header_value)`` which...
"Handles BasicAuth preparation and error handling. Either both\n ``username`` and ``password`` must be defined, or neither. Defining\n one but not the other will result in an :class:`AssertionError`.\n\n ``username``\n ``password``\n\n Returns a tuple of ``(header_key, header_value)...
26
false
amcfague/webunit2
_prepare_basicauth
3,910
LDU_FT/biocore/burrito-fillings/getTmpFilename
LDU_FT
[ "<BEGIN>\n## `raxml_alignment`", "Run raxml on alignment object", " align_obj: Alignment object\n params: you can set any params except -w and -n", " returns: tuple (phylonode,\n parsimonyphylonode,\n log likelihood,\n total exec time)\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTmpFilename API. 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 getTmpFilename API. 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...
Define Tmp filename to contain .fasta suffix, since pplacer requires the suffix to be .fasta
"Define Tmp filename to contain .fasta suffix, since pplacer requires\n the suffix to be .fasta"
618
false
biocore/burrito-fillings
getTmpFilename
3,911
LDU_FT/JNPRAutomate/pyJunosManager/load_config_template
LDU_FT
[ "<BEGIN>\n## `open_config`", "Opens the configuration of the currently connected device", " Args:\n :type: The type of configuration you want to open. Any string can be provided, however the standard supported options are: **exclusive**, **private**, and **shared**. The default mode is **share...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
:template: A templated string using Jinja2 templates :template_vars: A dict containing the vars used in the :template: string :type: The type of configuration to load. The default is "text" or a standard Junos config block. Other options are: "set" for set style commands, "xml" for xml configs ...
":template: A templated string using Jinja2 templates\n :template_vars: A dict containing the vars used in the :template: string\n :type: The type of configuration to load. The default is \"text\" or a standard Junos config block. Other options are: \"set\" for set style commands, \"xml\" for xml configs\...
38
false
JNPRAutomate/pyJunosManager
load_config_template
3,912
LDU_FT/Azure/blobxfer/_finalize_upload
LDU_FT
[ "<BEGIN>\n## `set_verbose_logger_handlers`", "Set logger handler formatters to more detail\n<END>", "<BEGIN>\n## `join_thread`", "Join a thread\n :type threading.Thread thr: thread to join\n<END>", "<BEGIN>\n## `merge_dict`", "Recursively merge dictionaries: dict2 on to dict1. This differs\n from di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _finalize_upload API. 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 _finalize_upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Finalize file upload :param Uploader self: this :param blobxfer.models.upload.Descriptor ud: upload descriptor
"Finalize file upload\n :param Uploader self: this\n :param blobxfer.models.upload.Descriptor ud: upload descriptor"
447
false
Azure/blobxfer
_finalize_upload
3,913
LDU_FT/goldmann/docker-squash/_read_layer_paths
LDU_FT
[ "<BEGIN>\n## `_validate_number_of_layers`", "Makes sure that the specified number of layers to squash\n is a valid number\n<END>", "<BEGIN>\n## `_prepare_tmp_directory`", "Creates temporary directory that is used to work on layers\n<END>", "<BEGIN>\n## `_layers_to_squash`", "Prepares a list of laye...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_layer_paths API. 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 _read_layer_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
In case of v2 format, layer id's are not the same as the id's used in the exported tar archive to name directories for layers. These id's can be found in the configuration files saved with the image - we need to read them.
"In case of v2 format, layer id's are not the same as the id's\n used in the exported tar archive to name directories for layers.\n These id's can be found in the configuration files saved with\n the image - we need to read them."
34
false
goldmann/docker-squash
_read_layer_paths
3,914
LDU_FT/seperman/deepdiff/to_json
LDU_FT
[ "<BEGIN>\n## `__report_result`", "Add a detected change to the reference-style result dictionary.\n report_type will be added to level.\n (We'll create the text-style report from there later.)\n :param report_type: A well defined string key describing the type of change.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
Dump json of the text view. **Parameters** default_mapping : default_mapping, dictionary(optional), a dictionary of mapping of different types to json types. by default DeepDiff converts certain data types. For example Decimals into floats so they can be exported into json. If you have...
"Dump json of the text view.\n **Parameters**\n\n default_mapping : default_mapping, dictionary(optional), a dictionary of mapping of different types to json types.\n\n by default DeepDiff converts certain data types. For example Decimals into floats so they can be exported into json.\n If y...
46
false
seperman/deepdiff
to_json
3,915
LDU_FT/schlamar/cov-core/start
LDU_FT
[ "<BEGIN>\n## `set_env`", "Put info about coverage into the env so that subprocesses can activate coverage.\n<END>", "<BEGIN>\n## `finish`", "Stop coverage, save data to file and set the list of coverage objects to report on.\n<END>", "<BEGIN>\n## `start`", "Ensure coverage rc file rsynced if appropriate.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Ensure coverage rc file rsynced if appropriate.
"Ensure coverage rc file rsynced if appropriate."
14
false
schlamar/cov-core
start
3,916
LDU_FT/sio2project/filetracker/main
LDU_FT
[ "<BEGIN>\n## `get_file`", "Retrieves file identified by ``name``.", " The file is saved as ``save_to``. If ``add_to_cache`` is ``True``,\n the file is added to the local store. If ``force_refresh`` is\n ``True``, local cache is not examined if a remote store is\n configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
A convenience ``main`` method for running WSGI-compatible HTTP application as CGI, FCGI or standalone (with auto-detection).
"A convenience ``main`` method for running WSGI-compatible HTTP\n application as CGI, FCGI or standalone (with auto-detection)."
84
false
sio2project/filetracker
main
3,917
LDU_FT/holgern/pyedflib/setPrefilter
LDU_FT
[ "<BEGIN>\n## `short_path`", "Return relative or absolute path name, whichever is shortest.\n<END>", "<BEGIN>\n## `get_all_dict`", "Return a copy of the __all__ dict with irrelevant items removed.\n<END>", "<BEGIN>\n## `compare`", "Return sets of objects only in __all__, refguide, or completely missing.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setPrefilter API. 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 setPrefilter API. 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...
Sets the prefilter of signal edfsignal ("HP:0.1Hz", "LP:75Hz N:50Hz", etc.) :param edfsignal: int :param prefilter: str Notes ----- This function is optional for every signal and can be called only after opening a file in writemode and before the first sample write action.
"Sets the prefilter of signal edfsignal (\"HP:0.1Hz\", \"LP:75Hz N:50Hz\", etc.)\n\n :param edfsignal: int\n :param prefilter: str\n\n Notes\n -----\n This function is optional for every signal and can be called only after opening a file in writemode and before the first sample write ...
135
false
holgern/pyedflib
setPrefilter
3,918
LDU_FT/TC01/calcpkg/printData
LDU_FT
[ "<BEGIN>\n## `structureOutput`", "Formats the output of a list of packages\n<END>", "<BEGIN>\n## `count`", "Counts the number of ticalc.org files containing some search term, doesn't return them\n<END>", "<BEGIN>\n## `searchHierarchy`", "Core function to search directory structure for child files and fold...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the printData API. 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 printData API. 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...
Output all the file data to be written to any writable output
"Output all the file data to be written to any writable output"
62
false
TC01/calcpkg
printData
3,919
LDU_FT/mathiasertl/xmpp-backends/create_reservation
LDU_FT
[ "<BEGIN>\n## `rpc`", "Generic helper function to call an RPC method.\n<END>", "<BEGIN>\n## `message_user`", "Currently use send_message_chat and discard subject, because headline messages are not\n stored by mod_offline.\n<END>", "<BEGIN>\n## `module`", "The module specified by the ``library`` attr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_reservation 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 create_reservation 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...
Reserve a new account. This method is called when a user account should be reserved, meaning that the account can no longer be registered by anybody else but the user cannot yet log in either. This is useful if e.g. an email confirmation is still pending. The default implementation cal...
"Reserve a new account.\n\n This method is called when a user account should be reserved, meaning that the account can no longer\n be registered by anybody else but the user cannot yet log in either. This is useful if e.g. an email\n confirmation is still pending.\n\n The default implementat...
63
false
mathiasertl/xmpp-backends
create_reservation
3,920
LDU_FT/solocompt/plugs-mail/get_instance_of
LDU_FT
[ "<BEGIN>\n## `validate_context`", "Make sure there are no duplicate context objects\n or we might end up with switched data", " Converting the tuple to a set gets rid of the\n eventual duplicate objects, comparing the length\n of the original tuple and set tells us if we\n hav...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance_of API. 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_instance_of API. 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...
Search the data to find a instance of a model specified in the template
"Search the data to find a instance\n of a model specified in the template"
28
false
solocompt/plugs-mail
get_instance_of
3,921
LDU_FT/binux/pyspider/on_task_done
LDU_FT
[ "<BEGIN>\n## `get_encoding`", "Get encoding from request headers or page head.\n<END>", "<BEGIN>\n## `encoding`", "encoding of Response.content.", " if Response.encoding is None, encoding will be guessed\n by header or content or chardet if available.\n<END>", "<BEGIN>\n## `text`", "Conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_task_done API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_task_done API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Called when a task is done and success, called by `on_task_status`
"Called when a task is done and success, called by `on_task_status`"
126
false
binux/pyspider
on_task_done
3,922
LDU_FT/b3j0f/aop/_weave
LDU_FT
[ "<BEGIN>\n## `find_ctx`", "Find a Pointcut ctx which is a class/instance related to input\n function/method.", " :param elt: elt from where find a ctx.\n :return: elt ctx. None if no ctx available or if elt is a None method.\n<END>", "<BEGIN>\n## `base_ctx`", "Get base ctx.", " :param ctx: ini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _weave API. 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 _weave API. 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 ...
Weave deeply advices in target. :param callable target: target from where checking pointcut and weaving advices. :param advices: advices to weave on target. :param ctx: target ctx (class or instance). :param pointcut: condition for weaving advices on joinpointe. The condition depends on...
"Weave deeply advices in target.\n\n :param callable target: target from where checking pointcut and\n weaving advices.\n :param advices: advices to weave on target.\n :param ctx: target ctx (class or instance).\n :param pointcut: condition for weaving advices on joinpointe.\n The condition de...
79
false
b3j0f/aop
_weave
3,923
LDU_FT/opentok/Opentok-Python-SDK/stop_broadcast
LDU_FT
[ "<BEGIN>\n## `get_stream_url`", "this method returns the url to get streams information\n<END>", "<BEGIN>\n## `force_disconnect_url`", "this method returns the force disconnect url endpoint\n<END>", "<BEGIN>\n## `set_archive_layout_url`", "this method returns the url to set the archive layout\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop_broadcast API. 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 stop_broadcast API. 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...
Use this method to stop a live broadcast of an OpenTok session :param String broadcast_id: The ID of the broadcast you want to stop :rtype A Broadcast object, which contains information of the broadcast: id, sessionId projectId, createdAt, updatedAt and resolution
"Use this method to stop a live broadcast of an OpenTok session\n\n :param String broadcast_id: The ID of the broadcast you want to stop\n\n :rtype A Broadcast object, which contains information of the broadcast: id, sessionId\n projectId, createdAt, updatedAt and resolution"
128
false
opentok/Opentok-Python-SDK
stop_broadcast
3,924
LDU_FT/erget/StereoVision/_replace_bm
LDU_FT
[ "<BEGIN>\n## `get_frames_singleimage`", "Get current left and right frames from a single image,\n by splitting the image in half.\n<END>", "<BEGIN>\n## `show_frames`", "Show current frames from cameras.", " ``wait`` is the wait interval in milliseconds before the window closes.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _replace_bm API. 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 _replace_bm API. 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...
Replace ``_block_matcher`` with current values.
"Replace ``_block_matcher`` with current values."
83
false
erget/StereoVision
_replace_bm
3,925
LDU_FT/radjkarl/imgProcessor/toFloatArray
LDU_FT
[ "<BEGIN>\n## `polynomial`", "replace all masked values\r\n calculate flatField from 2d-polynomal fit filling\r\n all high gradient areas within averaged fit-image\r", " returns flatField, average background level, fitted image, valid indices mask\n<END>", "<BEGIN>\n## `exampleSignals`", "std ... st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toFloatArray API. 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 toFloatArray API. 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...
transform an unsigned integer array into a float array of the right size
"transform an unsigned integer array into a\r\n float array of the right size"
462
false
radjkarl/imgProcessor
toFloatArray
3,926
LDU_FT/zxylvlp/PingPHP/p_UseTrait
LDU_FT
[ "<BEGIN>\n## `t_DOCCOMMENT`", "r'((\\'\\'\\'((?!\\'\\'\\')[\\s\\S])*\\'\\'\\')|(\\'{6,8})|(\"\"\"((?!\"\"\")[\\s\\S])*\"\"\")|(\"{6,8}))[ \\t]*\\n\n<END>", "<BEGIN>\n## `t_NATIVEPHP`", "r'<\\?php((?!<\\?php)[\\s\\S])*\\?>[ \\t]*(?=\\n)\n<END>", "<BEGIN>\n## `t_INDENTIFIER`", "r'(\\$?[_a-zA-Z][_a-zA-Z0-9]*...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_UseTrait API. 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 p_UseTrait API. 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...
UseTrait : UseNamespace Terminator | UseNamespace COLON Terminator UseTraitContent
"UseTrait : UseNamespace Terminator\n | UseNamespace COLON Terminator UseTraitContent"
74
false
zxylvlp/PingPHP
p_UseTrait
3,927
LDU_FT/aetros/aetros-cli/commit_file
LDU_FT
[ "<BEGIN>\n## `Popen`", "Executes a command using subprocess.Popen and redirects output to AETROS and stdout.\n Parses stdout as well for stdout API calls.", " Use read_line argument to read stdout of command's stdout line by line.\n Use returned process stdin to communicate with the command.", " :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Add a new file as blob in the storage, add its tree entry into the index and commit the index. :param message: str :param path: str :param content: str :return:
"Add a new file as blob in the storage, add its tree entry into the index and commit the index.\n\n :param message: str\n :param path: str\n :param content: str\n :return:"
183
false
aetros/aetros-cli
commit_file
3,928
LDU_FT/niemasd/TreeSwift/read_tree_newick
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 read_tree_newick API. 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 read_tree_newick API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Read a tree from a Newick string or file Args: ``newick`` (``str``): Either a Newick string or the path to a Newick file (plain-text or gzipped) Returns: ``Tree``: The tree represented by ``newick``. If the Newick file has multiple trees (one per line), a ``list`` of ``Tree`` objects will be r...
"Read a tree from a Newick string or file\n\n Args:\n ``newick`` (``str``): Either a Newick string or the path to a Newick file (plain-text or gzipped)\n\n Returns:\n ``Tree``: The tree represented by ``newick``. If the Newick file has multiple trees (one per line), a ``list`` of ``Tree`` objects wi...
280
false
niemasd/TreeSwift
read_tree_newick
3,929
LDU_FT/pauleveritt/kaybee/set_entries
LDU_FT
[ "<BEGIN>\n## `render`", "Given a Sphinx builder and context with sphinx_app in it,\n generate HTML\n<END>", "<BEGIN>\n## `in_navitem`", "Given href of nav item, determine if resource is in it\n<END>", "<BEGIN>\n## `is_published`", "Return true if this resource has published date in the past\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_entries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Provide the template the data for the toc entries
"Provide the template the data for the toc entries"
71
false
pauleveritt/kaybee
set_entries
3,930
LDU_FT/jreese/aiosqlite/execute_insert
LDU_FT
[ "<BEGIN>\n## `connect`", "Create and return a connection proxy to the sqlite database.\n<END>", "<BEGIN>\n## `_execute`", "Execute the given function on the shared connection's thread.\n<END>", "<BEGIN>\n## `fetchmany`", "Fetch up to `cursor.arraysize` number of rows.\n<END>", "<BEGIN>\n## `run`", "Ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_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 ex...
Helper to insert and get the last_insert_rowid.
"Helper to insert and get the last_insert_rowid."
22
false
jreese/aiosqlite
execute_insert
3,931
LDU_FT/ransford/sllurp/calculate_check_digit
LDU_FT
[ "<BEGIN>\n## `decode_tve_parameter`", "Generic byte decoding function for TVE parameters.", " Given an array of bytes, tries to interpret a TVE parameter from the\n beginning of the array. Returns the decoded data and the number of bytes\n it read.\n<END>", "<BEGIN>\n## `tagReportCallback`", "Func...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_check_digit 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 calculate_check_digit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Given a GTIN (8-14) or SSCC, calculate its appropriate check digit
"Given a GTIN (8-14) or SSCC, calculate its appropriate check digit"
59
false
ransford/sllurp
calculate_check_digit
3,932
LDU_FT/JamesPHoughton/pysd/run
LDU_FT
[ "<BEGIN>\n## `parse`", "context : <string> 'eqn', 'defn'\n If context is set to equation, lone identifiers will be parsed as calls to elements\n If context is set to definition, lone identifiers will be cleaned and returned.\n<END>", "<BEGIN>\n## `read_tabular`", "Reads a vensim ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Simulate the model's behavior over time. Return a pandas dataframe with timestamps as rows, model elements as columns. Parameters ---------- params : dictionary Keys are strings of model component names. Values are numeric or pandas Series. Nu...
"Simulate the model's behavior over time.\n Return a pandas dataframe with timestamps as rows,\n model elements as columns.\n\n Parameters\n ----------\n params : dictionary\n Keys are strings of model component names.\n Values are numeric or pandas Series.\n ...
268
false
JamesPHoughton/pysd
run
3,933
LDU_FT/imu-hupeng/cos-python3-sdk/upload_file_from_url
LDU_FT
[ "<BEGIN>\n## `create_folder`", "创建目录(https://www.qcloud.com/document/product/436/6061)", " :param dir_name:要创建的目录的目录的名称\n :return 返回True创建成功,返回False创建失败\n<END>", "<BEGIN>\n## `list_folder`", "列目录(https://www.qcloud.com/document/product/436/6062)", " :param dir_name:文件夹名称\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file_from_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file_from_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
简单上传文件(https://www.qcloud.com/document/product/436/6066) :param url: 文件url地址 :param file_name: 文件名称 :param dir_name: 文件夹名称(可选) :return:json数据串
"简单上传文件(https://www.qcloud.com/document/product/436/6066)\n\n :param url: 文件url地址\n :param file_name: 文件名称\n :param dir_name: 文件夹名称(可选)\n :return:json数据串"
24
false
imu-hupeng/cos-python3-sdk
upload_file_from_url
3,934
LDU_FT/pv8/noipy/load
LDU_FT
[ "<BEGIN>\n## `execute_update`", "Execute the update based on command line args and returns a dictionary\n with 'execution result, ''response code', 'response info' and\n 'process friendly message'.\n<END>", "<BEGIN>\n## `update_dns`", "Call No-IP API based on dict login_info and return the status code.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load provider specific auth info from file
"Load provider specific auth info from file"
14
false
pv8/noipy
load
3,935
LDU_FT/Duke-QCD/hic/pdf
LDU_FT
[ "<BEGIN>\n## `qn`", "Calculate the complex flow vector `Q_n`.", " :param array-like phi: Azimuthal angles.", " :param int n: One or more harmonics to calculate.", " :returns:\n A single complex number if only one ``n`` was given or a complex array\n for multiple ``n``.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pdf API. 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 pdf API. 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...
r""" Evaluate the flow PDF `dN/d\phi`. :param array-like phi: Azimuthal angles. :returns: The flow PDF evaluated at ``phi``.
"r\"\"\"\n Evaluate the flow PDF `dN/d\\phi`.\n\n :param array-like phi: Azimuthal angles.\n\n :returns: The flow PDF evaluated at ``phi``."
30
false
Duke-QCD/hic
pdf
3,936
LDU_FT/venmo/slouch/_handle_command_response
LDU_FT
[ "<BEGIN>\n## `_dual_decorator`", "This is a decorator that converts a paramaterized decorator for\n no-param use.", " source: http://stackoverflow.com/questions/3888158\n<END>", "<BEGIN>\n## `help`", "Usage: help [<command>]", " With no arguments, print the form of all supported commands.\n Wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_command_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_command_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Either send a message (choosing between rtm and postMessage) or ignore the response. :param event: a slacker event dict :param res: a string, a dict, or None. See the command docstring for what these represent.
"Either send a message (choosing between rtm and postMessage) or ignore the response.\n\n :param event: a slacker event dict\n :param res: a string, a dict, or None.\n See the command docstring for what these represent."
39
false
venmo/slouch
_handle_command_response
3,937
LDU_FT/GoogleCloudPlatform/appengine-pipelines/with_params
LDU_FT
[ "<BEGIN>\n## `_get_task_target`", "Get the default target for a pipeline task.", " Current version id format is: user_defined_version.minor_version_number\n Current module id is just the module's name. It could be \"default\"", " Returns:\n A complete target name is of format version.module. If module i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Modify various execution parameters of a Pipeline before it runs. This method has no effect in test mode. Args: kwargs: Attributes to modify on this Pipeline instance before it has been executed. Returns: This Pipeline instance, for easy chaining.
"Modify various execution parameters of a Pipeline before it runs.\n\n This method has no effect in test mode.\n\n Args:\n kwargs: Attributes to modify on this Pipeline instance before it has\n been executed.\n\n Returns:\n This Pipeline instance, for easy chaining."
222
false
GoogleCloudPlatform/appengine-pipelines
with_params
3,938
LDU_FT/exxeleron/qPython/array_to_raw_qtemporal
LDU_FT
[ "<BEGIN>\n## `read`", "Reads and optionally parses a single message.", " :Parameters:\n - `source` - optional data buffer to be read, if not specified data is \n read from the wrapped stream\n :Options:\n - `raw` (`boolean`) - indicates whether read data should parsed or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the array_to_raw_qtemporal 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 array_to_raw_qtemporal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Converts `numpy.array` containing ``datetime64``/``timedelta64`` to raw q representation. Examples: >>> na_dt = numpy.arange('1999-01-01', '2005-12-31', dtype='datetime64[D]') >>> print(array_to_raw_qtemporal(na_dt, qtype = QDATE_LIST)) [-365 -364 -363 ..., 2188 2189 2190] >>> ...
"Converts `numpy.array` containing ``datetime64``/``timedelta64`` to raw\n q representation.\n \n Examples:\n \n >>> na_dt = numpy.arange('1999-01-01', '2005-12-31', dtype='datetime64[D]')\n >>> print(array_to_raw_qtemporal(na_dt, qtype = QDATE_LIST))\n [-365 -364 -363 ..., 2188 2189 2190]\n ...
127
false
exxeleron/qPython
array_to_raw_qtemporal
3,939
LDU_FT/log2timeline/dfdatetime/_GetNormalizedTimestamp
LDU_FT
[ "<BEGIN>\n## `_GetNormalizedTimestamp`", "Retrieves the normalized timestamp.", " Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _GetNormalizedTimestamp 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 _GetNormalizedTimestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Retrieves the normalized timestamp. Returns: decimal.Decimal: normalized timestamp, which contains the number of seconds since January 1, 1970 00:00:00 and a fraction of second used for increased precision, or None if the normalized timestamp cannot be determined.
"Retrieves the normalized timestamp.\n\n Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized timestamp cannot be\n determined."
244
false
log2timeline/dfdatetime
_GetNormalizedTimestamp
3,940
LDU_FT/coursera-dl/coursera-dl/list_courses
LDU_FT
[ "<BEGIN>\n## `parse_args`", "Parse the arguments/options passed to the program on the command line.\n<END>", "<BEGIN>\n## `random_string`", "Return a pseudo-random string of specified length.\n<END>", "<BEGIN>\n## `clean_filename`", "Sanitize a string to be used as a filename.", " If minimal_change i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_courses API. 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 list_courses API. 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...
List enrolled courses. @param args: Command-line arguments. @type args: namedtuple
"List enrolled courses.\n\n @param args: Command-line arguments.\n @type args: namedtuple"
246
false
coursera-dl/coursera-dl
list_courses
3,941
LDU_FT/trezor/python-trezor/_crc16_checksum
LDU_FT
[ "<BEGIN>\n## `encode_pin`", "Transform correct PIN according to the displayed matrix.\n<END>", "<BEGIN>\n## `address_from_public_key`", "Returns the base32-encoded version of pk_bytes (G...)\n<END>", "<BEGIN>\n## `parse_transaction_bytes`", "Parses base64data into a map with the following keys:\n t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _crc16_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. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _crc16_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. The e...
Returns the CRC-16 checksum of bytearray bytes Ported from Java implementation at: http://introcs.cs.princeton.edu/java/61data/CRC16CCITT.java.html Initial value changed to 0x0000 to match Stellar configuration.
"Returns the CRC-16 checksum of bytearray bytes\n\n Ported from Java implementation at: http://introcs.cs.princeton.edu/java/61data/CRC16CCITT.java.html\n\n Initial value changed to 0x0000 to match Stellar configuration."
52
false
trezor/python-trezor
_crc16_checksum
3,942
LDU_FT/slightlynybbled/tk_tools/_draw_background
LDU_FT
[ "<BEGIN>\n## `to_absolute`", "Converts coordinates provided with reference to the center \\\n of the canvas (0, 0) to absolute coordinates which are used \\\n by the canvas object in which (0, 0) is located in the top \\\n left of the object.", " :param x: x value in pixels\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _draw_background API. 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 _draw_background API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Draws the background of the dial :param divisions: the number of divisions between 'ticks' shown on the dial :return: None
"Draws the background of the dial\n\n :param divisions: the number of divisions\n between 'ticks' shown on the dial\n :return: None"
106
false
slightlynybbled/tk_tools
_draw_background
3,943
LDU_FT/mfussenegger/cr8/_parse_java_version
LDU_FT
[ "<BEGIN>\n## `to_int`", "converts a string to an integer", " >>> to_int('1_000_000')\n 1000000", " >>> to_int('1e6')\n 1000000", " >>> to_int('1000')\n 1000\n<END>", "<BEGIN>\n## `dicts_from_lines`", "returns a generator producing dicts from json lines", " 1 JSON object per line i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_java_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_java_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return the version number found in the first line of `java -version` >>> _parse_java_version('openjdk version "11.0.2" 2018-10-16') (11, 0, 2)
"Return the version number found in the first line of `java -version`\n\n >>> _parse_java_version('openjdk version \"11.0.2\" 2018-10-16')\n (11, 0, 2)"
146
false
mfussenegger/cr8
_parse_java_version
3,944
LDU_FT/JdeRobot/base/compile_all
LDU_FT
[ "<BEGIN>\n## `bytes_needed`", "return number of bytes needed for next parsing stage\n<END>", "<BEGIN>\n## `__callbacks`", "this method exists only to make profiling results easier to read\n<END>", "<BEGIN>\n## `parse_char`", "input some data bytes, possibly returning a new message\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Compile style.qrc using rcc, pyside-rcc and pyrcc4
"Compile style.qrc using rcc, pyside-rcc and pyrcc4"
1,991
true
JdeRobot/base
compile_all
3,945
LDU_FT/matthewgilbert/mapping/get_multiplier
LDU_FT
[ "<BEGIN>\n## `plot_composition`", "Plot time series of generics and label underlying instruments which\n these series are composed of.", " Parameters:\n -----------\n df: pd.DataFrame\n DataFrame of time series to be plotted. Each column is a generic time\n series.\n intervals: pd.D...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_multiplier API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_multiplier API. 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 tradeable instrument multiplier based on generic asset multipliers and weights mapping from generics to tradeables. Parameters ---------- weights: pandas.DataFrame or dict A pandas.DataFrame of loadings of generic contracts on tradeable instruments **for a given date**. The co...
"Determine tradeable instrument multiplier based on generic asset\n multipliers and weights mapping from generics to tradeables.\n\n Parameters\n ----------\n weights: pandas.DataFrame or dict\n A pandas.DataFrame of loadings of generic contracts on tradeable\n instruments **for a given date**...
92
false
matthewgilbert/mapping
get_multiplier
3,946
LDU_FT/siemens/django-mantis-stix-importer/xml_import
LDU_FT
[ "<BEGIN>\n## `xml_import`", "Import a STIX or CybOX xml from file <filepath> or a string passed as ``xml_content``", " You can furhter provide:", " - a list of InfoObjects as markings with which all generated Information Objects\n will be associated (e.g., in order to provide prove...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xml_import API. 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 xml_import API. 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...
Import a STIX or CybOX xml from file <filepath> or a string passed as ``xml_content`` You can furhter provide: - a list of InfoObjects as markings with which all generated Information Objects will be associated (e.g., in order to provide provenance function) - a default identif...
"Import a STIX or CybOX xml from file <filepath> or a string passed as ``xml_content``\n\n You can furhter provide:\n\n - a list of InfoObjects as markings with which all generated Information Objects\n will be associated (e.g., in order to provide provenance function)\n - a default ...
46
false
siemens/django-mantis-stix-importer
xml_import
3,947
LDU_FT/adafruit/Adafruit_Python_VCNL40xx/read_ambient
LDU_FT
[ "<BEGIN>\n## `_wait_response`", "Wait for a response to be ready (the provided ready bits are set).\n If the specified timeout (in seconds) is exceeded and error will be\n thrown.\n<END>", "<BEGIN>\n## `read_proximity`", "Read the sensor proximity and return it as an unsigned 16-bit value.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_ambient API. 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 read_ambient API. 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...
Read the ambient light sensor and return it as an unsigned 16-bit value.
"Read the ambient light sensor and return it as an unsigned 16-bit value."
12
false
adafruit/Adafruit_Python_VCNL40xx
read_ambient
3,948
LDU_FT/openai/universe/_get_writer
LDU_FT
[ "<BEGIN>\n## `send_KeyEvent`", "For most ordinary keys, the \"keysym\" is the same as the\n corresponding ASCII value. Other common keys are shown in the\n KEY_ constants.\n<END>", "<BEGIN>\n## `send_PointerEvent`", "Indicates either pointer movement or a pointer button press or\n rel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_writer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_writer API. 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 a tuple of (log_fn, log_f, bin_fn, bin_f) to be written to by vectorized env channel i Or all Nones if recording is inactive on that channel
"Returns a tuple of (log_fn, log_f, bin_fn, bin_f) to be written to by vectorized env channel i\n Or all Nones if recording is inactive on that channel"
126
false
openai/universe
_get_writer
3,949
LDU_FT/juju/charm-helpers/is_compliant
LDU_FT
[ "<BEGIN>\n## `get_ubuntu_release_from_sentry`", "Get Ubuntu release codename from sentry unit.", " :param sentry_unit: amulet sentry/service unit pointer\n :returns: list of strings - release codename, failure message\n<END>", "<BEGIN>\n## `validate_services`", "Validate that lists of commands...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_compliant API. 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 is_compliant API. 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...
Checks if the directory is compliant. Used to determine if the path specified and all of its children directories are in compliance with the check itself. :param path: the directory path to check :returns: True if the directory tree is compliant, otherwise False.
"Checks if the directory is compliant.\n\n Used to determine if the path specified and all of its children\n directories are in compliance with the check itself.\n\n :param path: the directory path to check\n :returns: True if the directory tree is compliant, otherwise False."
1,689
true
juju/charm-helpers
is_compliant
3,950
LDU_FT/carljm/django-adminfiles/favorites_remove
LDU_FT
[ "<BEGIN>\n## `get_uploads`", "Return a generator yielding uploads referenced in the given text.\n<END>", "<BEGIN>\n## `parse_match`", "Accept an re match object resulting from an ``UPLOAD_RE`` match\n and return a two-tuple where the first element is the\n corresponding ``FileUpload`` and the second is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the favorites_remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the favorites_remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Remove a photo from the user's favorites.
"Remove a photo from the user's favorites."
67
false
carljm/django-adminfiles
favorites_remove
3,951
LDU_FT/tadashi-aikawa/owlmixin/to_dicts
LDU_FT
[ "<BEGIN>\n## `from_dict`", "From dict to instance", " :param d: Dict\n :param force_snake_case: Keys are transformed to snake case in order to compliant PEP8 if True\n :param force_cast: Cast forcibly if True\n :param restrict: Prohibit extra parameters if True\n :return: Inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dicts API. 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...
From instance to dict :param ignore_none: Properties which is None are excluded if True :param force_value: Transform to value using to_value (default: str()) of ValueTransformer which inherited if True :param ignore_empty: Properties which is empty are excluded if True :return: List[Di...
"From instance to dict\n\n :param ignore_none: Properties which is None are excluded if True\n :param force_value: Transform to value using to_value (default: str()) of ValueTransformer which inherited if True\n :param ignore_empty: Properties which is empty are excluded if True\n :return: L...
248
false
tadashi-aikawa/owlmixin
to_dicts
3,952
LDU_FT/SALib/SALib/compute_grouped_sigma
LDU_FT
[ "<BEGIN>\n## `analyze`", "Perform a fractional factorial analysis", " Returns a dictionary with keys 'ME' (main effect) and 'IE' (interaction\n effect). The techniques bulks out the number of parameters with dummy\n parameters to the nearest 2**n. Any results involving dummy parameters\n could indi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_grouped_sigma 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 compute_grouped_sigma 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 sigma for the groups of parameter values in the argument ungrouped_metric where the group consists of no more than one parameter
"Returns sigma for the groups of parameter values in the\n argument ungrouped_metric where the group consists of no more than\n one parameter"
249
false
SALib/SALib
compute_grouped_sigma
3,953
LDU_FT/python-fedex-devs/python-fedex/sobject_to_dict
LDU_FT
[ "<BEGIN>\n## `transfer_config_dict`", "This is a utility function used in the certification modules to transfer\n the data dicts above to SOAP objects. This avoids repetition and allows\n us to store all of our variable configuration here rather than in\n each certification script.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sobject_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sobject_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Converts a suds object to a dict. Includes advanced features. :param json_serialize: If set, changes date and time types to iso string. :param key_to_lower: If set, changes index key name to lower case. :param obj: suds object :return: dict object
"Converts a suds object to a dict. Includes advanced features.\n :param json_serialize: If set, changes date and time types to iso string.\n :param key_to_lower: If set, changes index key name to lower case.\n :param obj: suds object\n :return: dict object"
92
false
python-fedex-devs/python-fedex
sobject_to_dict
3,954
LDU_FT/adamziel/python_translate/all
LDU_FT
[ "<BEGIN>\n## `load_messages`", "Loads translation found in a directory.", " @type directory: string\n @param directory: The directory to search", " @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump", " @raises: ValueError\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Gets the messages within a given domain. If domain is None, it returns all messages. @type id: The @param id: message id @rtype: dict @return: A dict of messages
"Gets the messages within a given domain.\n\n If domain is None, it returns all messages.\n\n @type id: The\n @param id: message id\n\n @rtype: dict\n @return: A dict of messages"
136
false
adamziel/python_translate
all
3,955
LDU_FT/has2k1/plydata/temporary_key
LDU_FT
[ "<BEGIN>\n## `set_option`", "Set plydata option", " Parameters\n ----------\n name : str\n Name of the option\n value : object\n New value of the option", " Returns\n -------\n old : object\n Old value of the option", " See also\n --------\n :class:`options...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temporary_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temporary_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Context manager that removes key from dictionary on closing The dictionary will hold the key for the duration of the context. Parameters ---------- d : dict-like Dictionary in which to insert a temporary key. key : hashable Location at which to insert ``value``. value : obj...
"Context manager that removes key from dictionary on closing\n\n The dictionary will hold the key for the duration of\n the context.\n\n Parameters\n ----------\n d : dict-like\n Dictionary in which to insert a temporary key.\n key : hashable\n Location at which to insert ``value``.\n ...
119
false
has2k1/plydata
temporary_key
3,956
LDU_FT/jim-easterbrook/pyctools/write_init_files
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect an output to any callable object.", " :param str output_name: the output to connect. Must be one of\n the ``'self'`` outputs in the ``linkages`` parameter.", " :param callable input_method: the thread-safe callable to invoke\n when :py:meth...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_init_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_init_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Make sure package hierarchy is a "pkgutil-style namespace package". For more detail see https://packaging.python.org/guides/packaging-namespace-packages/
"Make sure package hierarchy is a \"pkgutil-style namespace\n package\". For more detail see\n https://packaging.python.org/guides/packaging-namespace-packages/"
158
false
jim-easterbrook/pyctools
write_init_files
3,957
LDU_FT/BetterWorks/django-anonymizer/city
LDU_FT
[ "<BEGIN>\n## `varchar`", "Returns a chunk of text, of maximum length 'max_length'\n<END>", "<BEGIN>\n## `simple_pattern`", "Use a simple pattern to make the field - # is replaced with a random number,\n ? with a random letter.\n<END>", "<BEGIN>\n## `datetime`", "Returns a random datetime. If 'val' ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the city API. 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 city API. 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...
Generates a random city name. Resembles the name of US/UK city.
"Generates a random city name. Resembles the name of US/UK city."
57
false
BetterWorks/django-anonymizer
city
3,958
LDU_FT/PBR/MQ2/convert_inputfiles
LDU_FT
[ "<BEGIN>\n## `add_qtl_to_marker`", "Add the number of QTLs found for a given marker.", " :arg marker, the marker we are looking for the QTL's.\n :arg qtls, the list of all QTLs found.\n<END>", "<BEGIN>\n## `add_qtl_to_map`", "This function adds to a genetic map for each marker the number\n of signi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_inputfiles 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 convert_inputfiles 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...
Convert the input files present in the given folder or inputfile. This method creates the matrix representation of the QTLs results providing for each marker position the LOD value found for each trait as well as a representation of the genetic map used in the experiment. ...
"Convert the input files present in the given folder or\n inputfile.\n This method creates the matrix representation of the QTLs\n results providing for each marker position the LOD value found\n for each trait as well as a representation of the genetic map\n used in the experiment.\n...
98
false
PBR/MQ2
convert_inputfiles
3,959
LDU_FT/bslatkin/dpxdt/find_run
LDU_FT
[ "<BEGIN>\n## `add`", "Adds a work item to a queue.", " Args:\n queue_name: Name of the queue to add the work item to.\n payload: Optional. Payload that describes the work to do as a string.\n If not a string and content_type is not provided, then this\n function assumes th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Finds the last good run of the given name for a release.
"Finds the last good run of the given name for a release."
180
false
bslatkin/dpxdt
find_run
3,960
LDU_FT/ninapavlich/django-imagekit-cropper/source_group_receiver
LDU_FT
[ "<BEGIN>\n## `source_group_receiver`", "Relay source group signals to the appropriate spec strategy.\n<END>", "<BEGIN>\n## `instance_ik_model_receiver`", "A method decorator that filters out sign_original_specals coming from models that don't\n have fields that function as ImageFieldSourceGroup sources.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the source_group_receiver 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 source_group_receiver API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Relay source group signals to the appropriate spec strategy.
"Relay source group signals to the appropriate spec strategy."
10
false
ninapavlich/django-imagekit-cropper
source_group_receiver
3,961
LDU_FT/dixudx/rtcclient/getChanges
LDU_FT
[ "<BEGIN>\n## `getRoles`", "Get all :class:`rtcclient.models.Role` objects in this project\n area", " If no :class:`Roles` are retrieved, `None` is returned.", " :return: a :class:`list` that contains all\n :class:`rtcclient.models.Role` objects\n :rtype: list\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getChanges API. 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 getChanges API. 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...
Get all :class:`rtcclient.models.Change` objects in this changeset :return: a :class:`list` contains all the :class:`rtcclient.models.Change` objects :rtype: list
"Get all :class:`rtcclient.models.Change` objects in this changeset\n\n :return: a :class:`list` contains all the\n :class:`rtcclient.models.Change` objects\n :rtype: list"
285
false
dixudx/rtcclient
getChanges
3,962
LDU_FT/JdeRobot/base/_dcm_to_euler
LDU_FT
[ "<BEGIN>\n## `bytes_needed`", "return number of bytes needed for next parsing stage\n<END>", "<BEGIN>\n## `__callbacks`", "this method exists only to make profiling results easier to read\n<END>", "<BEGIN>\n## `parse_char`", "input some data bytes, possibly returning a new message\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dcm_to_euler API. 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 _dcm_to_euler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create DCM from euler angles :param dcm: 3x3 dcm array :returns: array [roll, pitch, yaw] in rad
"Create DCM from euler angles\n :param dcm: 3x3 dcm array\n :returns: array [roll, pitch, yaw] in rad"
1,991
true
JdeRobot/base
_dcm_to_euler
3,963
LDU_FT/jarrekk/imgkit/_find_options_in_meta
LDU_FT
[ "<BEGIN>\n## `_gegetate_args`", "Generator of args parts based on options specification.\n<END>", "<BEGIN>\n## `_command`", "Generator of all command parts\n :type options: object\n :return:\n<END>", "<BEGIN>\n## `_normalize_options`", "Generator of 2-tuples (option-key, option-value).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_options_in_meta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_options_in_meta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Reads 'content' and extracts options encoded in HTML meta tags :param content: str or file-like object - contains HTML to parse returns: dict: {config option: value}
"Reads 'content' and extracts options encoded in HTML meta tags\n\n :param content: str or file-like object - contains HTML to parse\n\n returns:\n dict: {config option: value}"
21
false
jarrekk/imgkit
_find_options_in_meta
3,964
LDU_FT/lreis2415/PyGeoC/pbias
LDU_FT
[ "<BEGIN>\n## `get_cell_length`", "Get flow direction induced cell length dict.\n Args:\n flow_model: Currently, \"TauDEM\", \"ArcGIS\", and \"Whitebox\" are supported.\n<END>", "<BEGIN>\n## `get_cell_shift`", "Get flow direction induced cell shift dict.\n Args:\n flow_model...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pbias API. 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 pbias API. 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...
Calculate PBIAS, or percent model bias. Args: obsvalues: observe values array simvalues: simulate values array Examples: >>> obs = [2.92, 2.75, 2.01, 1.09, 2.87, 1.43, 1.96,\ 4.00, 2.24, 29.28, 5.88, 0.86, 13.21] >>> sim = [2.90, 2...
"Calculate PBIAS, or percent model bias.\n\n Args:\n obsvalues: observe values array\n simvalues: simulate values array\n\n Examples:\n >>> obs = [2.92, 2.75, 2.01, 1.09, 2.87, 1.43, 1.96,\\\n 4.00, 2.24, 29.28, 5.88, 0.86, 13.21]\n >>> sim...
259
false
lreis2415/PyGeoC
pbias
3,965
LDU_FT/Cognexa/cxflow/resume
LDU_FT
[ "<BEGIN>\n## `_write_header`", "Write CSV header row with column names.", " Column names are inferred from the ``epoch_data`` and ``self.variables`` (if specified).\n Variables and streams expected later on are stored in ``self._variables`` and ``self._streams`` respectively.", " :param e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resume API. 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 resume API. 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 ...
Load config from the directory specified and start the training. :param config_path: path to the config file or the directory in which it is stored :param restore_from: backend-specific path to the already trained model to be restored from. If ``None`` is passed, it is inferred from th...
"Load config from the directory specified and start the training.\n\n :param config_path: path to the config file or the directory in which it is stored\n :param restore_from: backend-specific path to the already trained model to be restored from.\n If ``None`` is passed, it is inferred fr...
325
false
Cognexa/cxflow
resume
3,966
LDU_FT/GluuFederation/oxd-python/set
LDU_FT
[ "<BEGIN>\n## `register_site`", "Function to register the site and generate a unique ID for the site", " Returns:\n **string:** The ID of the site (also called client id) if the registration is successful", " Raises:\n **OxdServerError:** If the site registration fails.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. 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 set API. 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...
set function sets a particular value for the specified key in the specified section and writes it to the config file. Parameters: * **section (string):** the section under which the config should be saved. Only accepted values are - oxd, client * **key (string):** the key/name ...
"set function sets a particular value for the specified key in the\n specified section and writes it to the config file.\n\n Parameters:\n * **section (string):** the section under which the config should be saved. Only accepted values are - oxd, client\n\n * **key (string):** the ke...
124
false
GluuFederation/oxd-python
set
3,967
LDU_FT/raphaelvallat/pingouin/circ_corrcl
LDU_FT
[ "<BEGIN>\n## `plot_blandaltman`", "Generate a Bland-Altman plot to compare two sets of measurements.", " Parameters\n ----------\n x, y : np.array or list\n First and second measurements.\n agreement : float\n Multiple of the standard deviation to plot limit of agreement bounds.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the circ_corrcl API. 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 circ_corrcl API. 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...
Correlation coefficient between one circular and one linear variable random variables. Parameters ---------- x : np.array First circular variable (expressed in radians) y : np.array Second circular variable (linear) tail : string Specify whether to return 'one-sided' or ...
"Correlation coefficient between one circular and one linear variable\n random variables.\n\n Parameters\n ----------\n x : np.array\n First circular variable (expressed in radians)\n y : np.array\n Second circular variable (linear)\n tail : string\n Specify whether to return 'one...
1,159
true
raphaelvallat/pingouin
circ_corrcl
3,968
LDU_FT/cytoscape/py2cytoscape/add_edge
LDU_FT
[ "<BEGIN>\n## `to_networkx`", "Return this network in NetworkX graph object.", " :return: Network as NetworkX graph object\n<END>", "<BEGIN>\n## `to_dataframe`", "Return this network in pandas DataFrame.", " :return: Network as DataFrame. This is equivalent to SIF.\n<END>", "<BEGIN>\n## `a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_edge API. 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 add_edge API. 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...
Add a new edge between two existing nodes in a network. The names of the nodes must be specified and much match the value in the 'name' column for each node. :param isDirected (string, optional): Whether the edge should be directed or not. Even though all edges in Cytoscape have a s...
"Add a new edge between two existing nodes in a network. The names of the\n nodes must be specified and much match the value in the 'name' column for\n each node.\n\n :param isDirected (string, optional): Whether the edge should be directed\n or not. Even though all edges in Cytoscape ha...
598
false
cytoscape/py2cytoscape
add_edge
3,969
LDU_FT/pmacosta/pcsv/header
LDU_FT
[ "<BEGIN>\n## `dsort`", "r\"\"\"\n Sort file data.", " :param fname: Name of the comma-separated values file to sort\n :type fname: FileNameExists_", " :param order: Sort order\n :type order: :ref:`CsvColFilter`", " :param has_header: Flag that indicates whether the comma-separated\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
r""" Return data header. When the raw (input) data is used the data header is a list of the comma-separated values file header if the file is loaded with header (each list item is a column header) or a list of column numbers if the file is loaded without header (column zero is t...
"r\"\"\"\n Return data header.\n\n When the raw (input) data is used the data header is a list of the\n comma-separated values file header if the file is loaded with header\n (each list item is a column header) or a list of column numbers if the\n file is loaded without header (column...
171
false
pmacosta/pcsv
header
3,970
LDU_FT/bmweiner/skillful/signature_cert_chain_url
LDU_FT
[ "<BEGIN>\n## `timestamp`", "Validate timestamp specified by request.", " See `validate.request` for additional info.", " Args:\n stamp: str. Time request was made as ISO 8601 timestamp.\n tolerance: int. Number of seconds request remains valid from timestamp.", " Returns\n bool...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signature_cert_chain_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signature_cert_chain_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Validate URL specified by SignatureCertChainUrl. See `validate.request` for additional info. Args: url: str. SignatureCertChainUrl header value sent by request. Returns: bool: True if valid, False otherwise.
"Validate URL specified by SignatureCertChainUrl.\n\n See `validate.request` for additional info.\n\n Args:\n url: str. SignatureCertChainUrl header value sent by request.\n\n Returns:\n bool: True if valid, False otherwise."
94
false
bmweiner/skillful
signature_cert_chain_url
3,971
LDU_FT/datadotworld/data.world-py/fetch_liked_projects
LDU_FT
[ "<BEGIN>\n## `download_dataset`", "Download dataset\n This endpoint will return a .zip containing all files within the dataset as originally uploaded. If you are interested retrieving clean data extracted from those files by data.world, check out `GET:/sql` and `GET:/sparql`.\n This method makes a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_liked_projects 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 fetch_liked_projects API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
List liked projects Fetch projects that the currently authenticated user likes. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(...
"List liked projects\n Fetch projects that the currently authenticated user likes.\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please define a `callback` function\n to be invoked when receiving the response.\n >>> def callback_fun...
398
false
datadotworld/data.world-py
fetch_liked_projects
3,972