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/hosford42/xcs/_get_average_time_stamp
LDU_FT
[ "<BEGIN>\n## `random`", "Create a bit string of the given length, with the probability of\n each bit being set equal to bit_prob, which defaults to .5.", " Usage:\n # Create a random BitString of length 10 with mostly zeros.\n bits = BitString.random(10, bit_prob=.1)", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_average_time_stamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_average_time_stamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return the average time stamp for the rules in this action set.
"Return the average time stamp for the rules in this action\n set."
159
false
hosford42/xcs
_get_average_time_stamp
143,373
LDU_FT/thespacedoctor/fundamentals/_fetch
LDU_FT
[ "<BEGIN>\n## `main`", "The main function used when ``yaml_to_database.py`` when installed as a cl tool\n<END>", "<BEGIN>\n## `ingest`", "*ingest the contents of the directory of yaml files into a database*", " **Return:**\n - None", " **Usage:**", " To import an entir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fetch API. 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 _fetch API. 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 ...
*Retrieve an HTML document or file from the web at a given URL* **Key Arguments:** - ``url`` -- the URL of the document or file **Return:** - ``url`` -- the URL of the document or file, or None if an error occured - ``body`` -- the text content of the HTML document.
"*Retrieve an HTML document or file from the web at a given URL*\n\n **Key Arguments:**\n - ``url`` -- the URL of the document or file\n\n **Return:**\n - ``url`` -- the URL of the document or file, or None if an error occured\n - ``body`` -- the text content of the HTML document."
306
false
thespacedoctor/fundamentals
_fetch
143,374
LDU_FT/wtsi-hgi/consul-lock/_acquire_lock_and_execute
LDU_FT
[ "<BEGIN>\n## `get_consul_configuration_from_environment`", "Gets configuration on how to connect to Consul from the environment.\n :return: the configuration derived from the environment\n :raises KeyError: if a required environment variable has not been set\n<END>", "<BEGIN>\n## `create_logger`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _acquire_lock_and_execute 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 _acquire_lock_and_execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Executes whilst holding a lock, exiting after the execute returns with the executables return code. :param lock_manager: the lock manager :param configuration: the configuration
"Executes whilst holding a lock, exiting after the execute returns with the executables return code.\n :param lock_manager: the lock manager\n :param configuration: the configuration"
55
false
wtsi-hgi/consul-lock
_acquire_lock_and_execute
143,375
LDU_FT/kalbhor/MusicNow/get_lyrics_letssingit
LDU_FT
[ "<BEGIN>\n## `add_config`", "Prompts user for API keys, adds them in an .ini file stored in the same\n location as that of the script\n<END>", "<BEGIN>\n## `get_tracks_from_album`", "Gets tracks from an album using Spotify's API\n<END>", "<BEGIN>\n## `get_url`", "Provides user with a list of songs to c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lyrics_letssingit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lyrics_letssingit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Scrapes the lyrics of a song since spotify does not provide lyrics takes song title as arguement
"Scrapes the lyrics of a song since spotify does not provide lyrics\n takes song title as arguement"
18
false
kalbhor/MusicNow
get_lyrics_letssingit
143,376
LDU_FT/theelous3/asks/_redirect
LDU_FT
[ "<BEGIN>\n## `request`", "Base function for one time http requests.", " Args:\n method (str): The http method to use. For example 'GET'\n uri (str): The url of the resource.\n Example: 'https://example.com/stuff'\n kwargs: Any number of arguments supported, found here:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _redirect API. 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 _redirect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Calls the _check_redirect method of the supplied response object in order to determine if the http status code indicates a redirect. Returns: Response: May or may not be the result of recursive calls due to redirects! Notes: If it does redirect, it calls the...
"Calls the _check_redirect method of the supplied response object\n in order to determine if the http status code indicates a redirect.\n\n Returns:\n Response: May or may not be the result of recursive calls due\n to redirects!\n\n Notes:\n If it does redirect, it ...
75
false
theelous3/asks
_redirect
143,377
LDU_FT/Robpol86/terminaltables/table_width
LDU_FT
[ "<BEGIN>\n## `combine`", "Zip borders between items in `line`.", " e.g. ('l', '1', 'c', '2', 'c', '3', 'r')", " :param iter line: List to iterate.\n :param left: Left border.\n :param intersect: Column separator.\n :param right: Right border.", " :return: Yields combined objects.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the table_width API. 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 table_width API. 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...
Determine the width of the entire table including borders and padding. :param iter outer_widths: List of widths (with padding) for each column. :param int outer_border: Sum of left and right outer border visible widths. :param int inner_border: Visible width of the inner border character. :return: The...
"Determine the width of the entire table including borders and padding.\n\n :param iter outer_widths: List of widths (with padding) for each column.\n :param int outer_border: Sum of left and right outer border visible widths.\n :param int inner_border: Visible width of the inner border character.\n\n :retu...
88
false
Robpol86/terminaltables
table_width
143,378
LDU_FT/SHDShim/pytheos/speziale_pth
LDU_FT
[ "<BEGIN>\n## `constq_grun`", "calculate Gruneisen parameter for constant q", " :param v: unit-cell volume in A^3\n :param v0: unit-cell volume in A^3 at 1 bar\n :param gamma0: Gruneisen parameter at 1 bar\n :param q: logarithmic derivative of Grunseinen parameter\n :return: Gruneisen parameter at...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the speziale_pth API. 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 speziale_pth API. 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...
calculate thermal pressure for the Speziale equation :param v: unit-cell volume in A^3 :param temp: temperature in K :param v0: unit-cell volume in A^3 at 1 bar :param gamma0: Gruneisen parameter at 1 bar :param q0: logarithmic derivative of Gruneisen parameter :param q1: logarithmic derivative...
"calculate thermal pressure for the Speziale equation\n\n :param v: unit-cell volume in A^3\n :param temp: temperature in K\n :param v0: unit-cell volume in A^3 at 1 bar\n :param gamma0: Gruneisen parameter at 1 bar\n :param q0: logarithmic derivative of Gruneisen parameter\n :param q1: logarithmic de...
234
false
SHDShim/pytheos
speziale_pth
143,379
LDU_FT/twilio/twilio-python/get_instance
LDU_FT
[ "<BEGIN>\n## `stream`", "Streams KeyInstance records from the API as a generator stream.\n This operation lazily loads records as efficiently as possible until the limit\n is reached.\n The results are returned as a generator, so this operation is memory efficient.", " :param int lim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instance API. 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...
Build an instance of MemberInstance :param dict payload: Payload response from the API :returns: twilio.rest.api.v2010.account.queue.member.MemberInstance :rtype: twilio.rest.api.v2010.account.queue.member.MemberInstance
"Build an instance of MemberInstance\n\n :param dict payload: Payload response from the API\n\n :returns: twilio.rest.api.v2010.account.queue.member.MemberInstance\n :rtype: twilio.rest.api.v2010.account.queue.member.MemberInstance"
4,304
true
twilio/twilio-python
get_instance
143,380
LDU_FT/ellmetha/django-machina/get_permission
LDU_FT
[ "<BEGIN>\n## `recurseforumcontents`", "Iterates over the content nodes and renders the contained forum block for each node.\n<END>", "<BEGIN>\n## `forum_list`", "Renders the considered forum list.", " This will render the given list of forums by respecting the order and the depth of each\n forum in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_permission API. 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_permission API. 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...
This will return a boolean indicating if the considered permission is granted for the passed user. Usage:: {% get_permission 'can_access_moderation_panel' request.user as var %}
"This will return a boolean indicating if the considered permission is granted for the passed\n user.\n\n Usage::\n\n {% get_permission 'can_access_moderation_panel' request.user as var %}"
293
false
ellmetha/django-machina
get_permission
143,381
LDU_FT/dshean/pygeotools/writevrt
LDU_FT
[ "<BEGIN>\n## `fn_check_full`", "Check for file existence", " Avoids race condition, but slower than os.path.exists.", " Parameters\n ----------\n fn : str\n Input filename string.", " Returns\n -------\n status \n True if file exists, False otherwise.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the writevrt API. 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 writevrt API. 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...
Write out a vrt to accompany a csv of points
"Write out a vrt to accompany a csv of points"
322
false
dshean/pygeotools
writevrt
143,382
LDU_FT/mvantellingen/wsgi-basic-auth/_users_from_environ
LDU_FT
[ "<BEGIN>\n## `_users_from_environ`", "Environment value via `user:password|user2:password2`\n<END>", "<BEGIN>\n## `_exclude_paths_from_environ`", "Environment value via `/login;/register`\n<END>", "<BEGIN>\n## `_include_paths_from_environ`", "Environment value via `/login;/register`\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _users_from_environ 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 _users_from_environ 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...
Environment value via `user:password|user2:password2`
"Environment value via `user:password|user2:password2`"
16
false
mvantellingen/wsgi-basic-auth
_users_from_environ
143,383
LDU_FT/pytest-dev/pytest-xdist/rsync_roots
LDU_FT
[ "<BEGIN>\n## `has_pending`", "Return True if there are pending test items.", " This indicates that collection has finished and nodes are still\n processing test items, so this can be thought of as\n \"the scheduler is active\".\n<END>", "<BEGIN>\n## `add_node`", "Add a new node to the s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rsync_roots API. 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 rsync_roots API. 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...
Rsync the set of roots to the node's gateway cwd.
"Rsync the set of roots to the node's gateway cwd."
92
false
pytest-dev/pytest-xdist
rsync_roots
143,384
LDU_FT/rigetti/pyquil/field
LDU_FT
[ "<BEGIN>\n## `to_latex`", "Translates a given pyquil Program to a TikZ picture in a Latex document.", " :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field API. 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 field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return an object to identify dataclass fields. default is the default value of the field. default_factory is a 0-argument function called to initialize a field's value. If init is True, the field will be a parameter to the class's __init__() function. If repr is True, the field will be included in t...
"Return an object to identify dataclass fields.\n\n default is the default value of the field. default_factory is a\n 0-argument function called to initialize a field's value. If init\n is True, the field will be a parameter to the class's __init__()\n function. If repr is True, the field will be include...
1,152
true
rigetti/pyquil
field
143,385
LDU_FT/ClearcodeHQ/mirakuru/_clear_process
LDU_FT
[ "<BEGIN>\n## `pre_start_check`", "Check if process accepts connections.", " .. note::", " Process will be considered started, when it'll be able to accept\n TCP connections as defined in initializer.\n<END>", "<BEGIN>\n## `after_start_check`", "Check if defined URL returns exp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clear_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clear_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Close stdin/stdout of subprocess. It is required because of ResourceWarning in Python 3.
"Close stdin/stdout of subprocess.\n\n It is required because of ResourceWarning in Python 3."
49
false
ClearcodeHQ/mirakuru
_clear_process
143,386
LDU_FT/Yipit/eventlib/get_ip
LDU_FT
[ "<BEGIN>\n## `listen_for_events`", "Pubsub event listener", " Listen for events in the pubsub bus and calls the process function\n when somebody comes to play.\n<END>", "<BEGIN>\n## `get_ip`", "Return the IP address inside the HTTP_X_FORWARDED_FOR var inside\n the `request` object.", " The ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the IP address inside the HTTP_X_FORWARDED_FOR var inside the `request` object. The return of this function can be overrided by the `LOCAL_GEOLOCATION_IP` variable in the `conf` module. This function will skip local IPs (starting with 10. and equals to 127.0.0.1).
"Return the IP address inside the HTTP_X_FORWARDED_FOR var inside\n the `request` object.\n\n The return of this function can be overrided by the\n `LOCAL_GEOLOCATION_IP` variable in the `conf` module.\n\n This function will skip local IPs (starting with 10. and equals to\n 127.0.0.1)."
57
false
Yipit/eventlib
get_ip
143,387
LDU_FT/reincubate/ricloud/fetch_data
LDU_FT
[ "<BEGIN>\n## `error_message_and_exit`", "Prints error messages in blue, the failed task result and quits.\n<END>", "<BEGIN>\n## `print_prompt_values`", "Prints prompt title and choices with a bit of formatting.\n<END>", "<BEGIN>\n## `prompt_for_input`", "Prints prompt instruction and does basic input pars...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_data API. 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 fetch_data API. 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...
Prompt for a data type choice and execute the `fetch_data` task. The results are saved to a file in json format.
"Prompt for a data type choice and execute the `fetch_data` task.\n The results are saved to a file in json format."
50
false
reincubate/ricloud
fetch_data
143,388
LDU_FT/gboeing/osmnx/get_http_headers
LDU_FT
[ "<BEGIN>\n## `config`", "Configure osmnx by setting the default global vars to desired values.", " Parameters\n ---------\n data_folder : string\n where to save and load data files\n logs_folder : string\n where to write the log files\n imgs_folder : string\n where to save fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_http_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_http_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Update the default requests HTTP headers with OSMnx info. Parameters ---------- user_agent : str the user agent string, if None will set with OSMnx default referer : str the referer string, if None will set with OSMnx default accept_language : str make accept-language explic...
"Update the default requests HTTP headers with OSMnx info.\n\n Parameters\n ----------\n user_agent : str\n the user agent string, if None will set with OSMnx default\n referer : str\n the referer string, if None will set with OSMnx default\n accept_language : str\n make accept-langu...
479
false
gboeing/osmnx
get_http_headers
143,389
LDU_FT/hzdg/django-ecstatic/collect
LDU_FT
[ "<BEGIN>\n## `rename_file`", "Renames a file and updates the model field to point to the new file.\n Returns True if a change has been made; otherwise False\n<END>", "<BEGIN>\n## `post_process`", "Overridden to work around https://code.djangoproject.com/ticket/19111\n<END>", "<BEGIN>\n## `post_proces...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect API. 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 collect API. 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...
Perform the bulk of the work of collectstatic. Split off from handle_noargs() to facilitate testing.
"Perform the bulk of the work of collectstatic.\n\n Split off from handle_noargs() to facilitate testing."
15
false
hzdg/django-ecstatic
collect
143,390
LDU_FT/YosaiProject/yosai/clear_cached_authorization_info
LDU_FT
[ "<BEGIN>\n## `on_successful_login`", "Reacts to the successful login attempt by first always\n forgetting any previously stored identity. Then if the authc_token\n is a ``RememberMe`` type of token, the associated identity\n will be remembered for later retrieval during a new user session.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_cached_authorization_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_cached_authorization_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
This process prevents stale authorization data from being used. If any authorization data for an account is changed at runtime, such as adding or removing roles and/or permissions, the subclass implementation of AccountStoreRealm should clear the cached AuthorizationInfo for that account...
"This process prevents stale authorization data from being used.\n If any authorization data for an account is changed at runtime, such as\n adding or removing roles and/or permissions, the subclass implementation\n of AccountStoreRealm should clear the cached AuthorizationInfo for that\n ac...
335
false
YosaiProject/yosai
clear_cached_authorization_info
143,391
LDU_FT/praekeltfoundation/molo/download_file
LDU_FT
[ "<BEGIN>\n## `generate_slug`", "Returns a new unique slug. Object must provide a SlugField called slug.\n URL friendly slugs are generated using django.template.defaultfilters'\n slugify. Numbers are added to the end of slugs for uniqueness.", " based on implementation in jmbo.utils\n https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create and download a zip file containing the media file.
"Create and download a zip file containing the media file."
101
false
praekeltfoundation/molo
download_file
143,392
LDU_FT/getsentry/sentry-python/format_and_strip
LDU_FT
[ "<BEGIN>\n## `init`", "Initializes the SDK and optionally integrations.", " This takes the same arguments as the client constructor.\n<END>", "<BEGIN>\n## `current`", "Returns the current instance of the hub.\n<END>", "<BEGIN>\n## `get_integration`", "Returns the integration for this hub by name or c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_and_strip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_and_strip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Format a string containing %s for placeholders and call `strip_string` on each parameter. The string template itself does not have a maximum length. TODO: handle other placeholders, not just %s
"Format a string containing %s for placeholders and call `strip_string`\n on each parameter. The string template itself does not have a maximum\n length.\n\n TODO: handle other placeholders, not just %s"
57
false
getsentry/sentry-python
format_and_strip
143,393
LDU_FT/pyopenapi/pyswagger/_validate_param
LDU_FT
[ "<BEGIN>\n## `swagger`", "some preparation before returning Swagger object\n<END>", "<BEGIN>\n## `apply_with`", "constructor", " :param str v: accept six.string_types, six.binary_type\n<END>", "<BEGIN>\n## `scope_compose`", "compose a new scope", " :param str scope: current scope\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
validate option combination of Parameter object
"validate option combination of Parameter object"
162
false
pyopenapi/pyswagger
_validate_param
143,394
LDU_FT/cmorisse/ikp3db/reply
LDU_FT
[ "<BEGIN>\n## `set_trace`", "Breaks on the line that invoked this function or at given frame.\n User can then resume execution.", " To call set_trace() use:", " .. code-block:: python", " import ikp3db ; ikp3db.set_trace()", " :param a_frame: The frame at which to break on.\n :type a_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reply API. 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 reply API. 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 response from a previouslsy received command message, send it and return number of sent bytes. :param result: Used to send back the result of the command execution to the debugger client. :type result: dict See send() above for others paramete...
"Build a response from a previouslsy received command message, send it\n and return number of sent bytes.\n \n :param result: Used to send back the result of the command execution to \n the debugger client.\n :type result: dict\n\n See send() above for others ...
109
false
cmorisse/ikp3db
reply
143,395
LDU_FT/AshleySetter/optoanalysis/calc_phase_space_density
LDU_FT
[ "<BEGIN>\n## `InterpretWaveform`", "Take the raw binary from a file saved from the LeCroy, read from a file using \n the 2 lines:\n with open(filename, \"rb\") as file:\n raw = file.read()\n And extracts various properties of the saved time trace.", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_phase_space_density 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 calc_phase_space_density API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Calculates the partition function of your system at each point in time. Parameters ---------- mass : float The mass of the particle in kg omega_array : array array which represents omega at every point in your time trace and should therefore have ...
"Calculates the partition function of your system at each point in time.\n \n Parameters\n ----------\n mass : float\n The mass of the particle in kg\n omega_array : array\n array which represents omega at every point in your time trace\n and should theref...
402
false
AshleySetter/optoanalysis
calc_phase_space_density
143,396
LDU_FT/cuducos/getgist/get_gists
LDU_FT
[ "<BEGIN>\n## `run_getgist`", "Passes user inputs to GetGist() and calls get()\n<END>", "<BEGIN>\n## `run_getmy`", "Shortcut for run_getgist() reading username from env var\n<END>", "<BEGIN>\n## `run_putgist`", "Passes user inputs to GetGist() and calls put()\n<END>", "<BEGIN>\n## `get`", "Reads the re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gists API. 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_gists API. 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...
List generator containing gist relevant information such as id, description, filenames and raw URL (dict).
"List generator containing gist relevant information\n such as id, description, filenames and raw URL (dict)."
44
false
cuducos/getgist
get_gists
143,397
LDU_FT/dw/mitogen/append
LDU_FT
[ "<BEGIN>\n## `setup`", "Install handlers for Mitogen loggers to redirect them into the Ansible\n display framework. Ansible installs its own logging framework handlers when\n C.DEFAULT_LOG_PATH is set, therefore disable propagation for our handlers.\n<END>", "<BEGIN>\n## `dict_diff`", "Return a dict rep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Append the bytestring `s` to the compressor state and return the final compressed output.
"Append the bytestring `s` to the compressor state and return the\n final compressed output."
843
false
dw/mitogen
append
143,398
LDU_FT/starling-lab/rnlp/_writeWordFromSentenceInBlock
LDU_FT
[ "<BEGIN>\n## `_writeSentenceInBlock`", "writes the sentence in a block to a file with the id\n<END>", "<BEGIN>\n## `_writeWordFromSentenceInBlock`", "writes the word from a sentence in a block to a file with the id\n<END>", "<BEGIN>\n## `_writeBk`", "Writes a background file to disk.", " :param targe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _writeWordFromSentenceInBlock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _writeWordFromSentenceInBlock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
writes the word from a sentence in a block to a file with the id
"writes the word from a sentence in a block to a file with the id"
50
false
starling-lab/rnlp
_writeWordFromSentenceInBlock
143,399
LDU_FT/joferkington/mpldatacursor/enable
LDU_FT
[ "<BEGIN>\n## `_event_ignored`", "Decide whether or not to ignore a click/hover event.\n<END>", "<BEGIN>\n## `_show_annotation_box`", "Update an existing box or create an annotation box for an event.\n<END>", "<BEGIN>\n## `event_info`", "Get a dict of info for the artist selected by \"event\".\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable API. 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 enable API. 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 ...
Connects callbacks and makes artists pickable. If the datacursor has already been enabled, this function has no effect.
"Connects callbacks and makes artists pickable. If the datacursor has\n already been enabled, this function has no effect."
80
false
joferkington/mpldatacursor
enable
143,400
LDU_FT/Robpol86/sphinxcontrib-imgur/_parse
LDU_FT
[ "<BEGIN>\n## `query_api`", "Query the Imgur API.", " :raise APIError: When Imgur responds with errors or unexpected data.", " :param sphinx.application.Sphinx app: Sphinx application object.\n :param str client_id: Imgur API client ID to use. https://api.imgur.com/oauth2\n :param str imgur_id: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Parse API response. :param dict data: Parsed JSON response from API 'data' key. :return: Image instances. :rtype: list.
"Parse API response.\n\n :param dict data: Parsed JSON response from API 'data' key.\n\n :return: Image instances.\n :rtype: list."
90
false
Robpol86/sphinxcontrib-imgur
_parse
143,401
LDU_FT/jwodder/doapi/_wait
LDU_FT
[ "<BEGIN>\n## `fetch`", "Fetch & return a new `Action` object representing the action's current\n state", " :rtype: Action\n :raises DOAPIError: if the API endpoint replies with an error\n<END>", "<BEGIN>\n## `fetch_resource`", "Fetch & return the resource that the action operated on, or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait API. 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 _wait API. 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...
r""" Calls the ``fetch`` method of each object in ``objects`` periodically until the ``attr`` attribute of each one equals ``value``, yielding the final state of each object as soon as it satisfies the condition. If ``wait_time`` is exceeded, a `WaitTimeoutError` (containing any ...
"r\"\"\"\n Calls the ``fetch`` method of each object in ``objects`` periodically\n until the ``attr`` attribute of each one equals ``value``, yielding the\n final state of each object as soon as it satisfies the condition.\n\n If ``wait_time`` is exceeded, a `WaitTimeoutError` (containing an...
176
false
jwodder/doapi
_wait
143,402
LDU_FT/b3j0f/schema/unregistercls
LDU_FT
[ "<BEGIN>\n## `_getter`", "Called when the parent element tries to get this property value.", " :param obj: parent object.\n<END>", "<BEGIN>\n## `_setter`", "Called when the parent element tries to set this property value.", " :param obj: parent object.\n :param value: new value to use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unregistercls API. 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 unregistercls API. 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...
Unregister schema class or associated data_types. :param type schemacls: sub class of Schema. :param list data_types: data_types to unregister.
"Unregister schema class or associated data_types.\n\n :param type schemacls: sub class of Schema.\n :param list data_types: data_types to unregister."
101
false
b3j0f/schema
unregistercls
143,403
LDU_FT/gautammishra/lyft-rides-python-sdk/error_handler
LDU_FT
[ "<BEGIN>\n## `_build_headers`", "Create headers for the request.\n Parameters\n method (str)\n HTTP method (e.g. 'POST').\n auth_session (Session)\n The Session object containing OAuth 2.0 credentials.\n Returns\n headers (dict)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Error Handler to surface 4XX and 5XX errors. Attached as a callback hook on the Request object. Parameters response (requests.Response) The HTTP response from an API request. **kwargs Arbitrary keyword arguments. Raises ClientError (ApiError) Raise...
"Error Handler to surface 4XX and 5XX errors.\n Attached as a callback hook on the Request object.\n Parameters\n response (requests.Response)\n The HTTP response from an API request.\n **kwargs\n Arbitrary keyword arguments.\n Raises\n ClientError (ApiError)\n ...
52
false
gautammishra/lyft-rides-python-sdk
error_handler
143,404
LDU_FT/jleinonen/pytmatrix/ext_xsect
LDU_FT
[ "<BEGIN>\n## `get_SZ`", "Compute the scattering matrices for the given PSD and geometries.", " Returns:\n The new amplitude (S) and phase (Z) matrices.\n<END>", "<BEGIN>\n## `init_scatter_table`", "Initialize the scattering lookup tables.", " Initialize the scattering lookup table...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ext_xsect API. 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 ext_xsect API. 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...
Extinction cross section for the current setup, with polarization. Args: scatterer: a Scatterer instance. h_pol: If True (default), use horizontal polarization. If False, use vertical polarization. Returns: The extinction cross section.
"Extinction cross section for the current setup, with polarization. \n\n Args:\n scatterer: a Scatterer instance.\n h_pol: If True (default), use horizontal polarization.\n If False, use vertical polarization.\n\n Returns:\n The extinction cross section."
115
false
jleinonen/pytmatrix
ext_xsect
143,405
LDU_FT/drslump/pyshould/unregister
LDU_FT
[ "<BEGIN>\n## `resolve`", "Resolve the current expression against the supplied value\n<END>", "<BEGIN>\n## `_assertion`", "Perform the actual assertion for the given matcher and value. Override\n this method to apply a special configuration when performing the assertion.\n If the assertio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unregister API. 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 unregister API. 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...
Unregister a matcher (or alias) from the registry
"Unregister a matcher (or alias) from the registry"
26
false
drslump/pyshould
unregister
143,406
LDU_FT/ethereum/py-evm/join
LDU_FT
[ "<BEGIN>\n## `new_transaction`", "Create and return a transaction sending amount from <from_> to <to>.", " The transaction will be signed with the given private key.\n<END>", "<BEGIN>\n## `idfn`", "Function for pytest to produce uniform names for fixtures.\n<END>", "<BEGIN>\n## `get_fixtures_file_hash`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API. 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 join API. 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...
Join several DBDiff objects into a single DBDiff object. In case of a conflict, changes in diffs that come later in ``diffs`` will overwrite changes from earlier changes.
"Join several DBDiff objects into a single DBDiff object.\n\n In case of a conflict, changes in diffs that come later\n in ``diffs`` will overwrite changes from earlier changes."
422
false
ethereum/py-evm
join
143,407
LDU_FT/pr-omethe-us/PyKED/get_datapoints
LDU_FT
[ "<BEGIN>\n## `search_orcid`", "Search the ORCID public API", " Specfically, return a dictionary with the personal details\n (name, etc.) of the person associated with the given ORCID", " Args:\n orcid (`str`): The ORCID to be searched", " Returns:\n `dict`: Dictionary with the JSON...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_datapoints API. 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_datapoints API. 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...
Parse datapoints with ignition delay from file. Args: root (`~xml.etree.ElementTree.Element`): Root of ReSpecTh XML file Returns: properties (`dict`): Dictionary with ignition delay data
"Parse datapoints with ignition delay from file.\n\n Args:\n root (`~xml.etree.ElementTree.Element`): Root of ReSpecTh XML file\n\n Returns:\n properties (`dict`): Dictionary with ignition delay data"
124
false
pr-omethe-us/PyKED
get_datapoints
143,408
LDU_FT/atarashansky/self-assembling-manifold/run_tsne
LDU_FT
[ "<BEGIN>\n## `preprocess_data`", "Log-normalizes and filters the expression data.", " Parameters\n ----------", " div : float, optional, default 1\n The factor by which the gene expression will be divided prior to\n log normalization.", " downsample : float,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_tsne API. 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 run_tsne API. 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...
Wrapper for sklearn's t-SNE implementation. See sklearn for the t-SNE documentation. All arguments are the same with the exception that 'metric' is set to 'precomputed' by default, implying that this function expects a distance matrix by default.
"Wrapper for sklearn's t-SNE implementation.\n\n See sklearn for the t-SNE documentation. All arguments are the same\n with the exception that 'metric' is set to 'precomputed' by default,\n implying that this function expects a distance matrix by default."
125
false
atarashansky/self-assembling-manifold
run_tsne
143,409
LDU_FT/uw-it-aca/uw-restclients-sws/get_term_after
LDU_FT
[ "<BEGIN>\n## `get_term_by_year_and_quarter`", "Returns a uw_sws.models.Term object,\n for the passed year and quarter.\n<END>", "<BEGIN>\n## `get_current_term`", "Returns a uw_sws.models.Term object,\n for the current term.\n<END>", "<BEGIN>\n## `get_term_before`", "Returns a uw_sws.models.Term obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_term_after API. 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_term_after API. 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...
Returns a uw_sws.models.Term object, for the term after the term given.
"Returns a uw_sws.models.Term object,\n for the term after the term given."
74
false
uw-it-aca/uw-restclients-sws
get_term_after
143,410
LDU_FT/penguinmenac3/starttf/easy_train_and_evaluate
LDU_FT
[ "<BEGIN>\n## `easy_train_and_evaluate`", "Train and evaluate your model without any boilerplate code.", " 1) Write your data using the starttf.tfrecords.autorecords.write_data method.\n 2) Create your hyper parameter file containing all required fields and then load it using\n starttf.utils.hyper_p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the easy_train_and_evaluate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the easy_train_and_evaluate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Train and evaluate your model without any boilerplate code. 1) Write your data using the starttf.tfrecords.autorecords.write_data method. 2) Create your hyper parameter file containing all required fields and then load it using starttf.utils.hyper_params.load_params method. Minimal Sample Hyper...
"Train and evaluate your model without any boilerplate code.\n\n 1) Write your data using the starttf.tfrecords.autorecords.write_data method.\n 2) Create your hyper parameter file containing all required fields and then load it using\n starttf.utils.hyper_params.load_params method.\n Minimal Sample...
120
false
penguinmenac3/starttf
easy_train_and_evaluate
143,411
LDU_FT/hackedd/gw2api/encode_coin_link
LDU_FT
[ "<BEGIN>\n## `set_cache_dir`", "Set the directory to cache JSON responses from most API endpoints.\n<END>", "<BEGIN>\n## `get_cached`", "Request a resource form the API, first checking if there is a cached\n response available. Returns the parsed JSON data.\n<END>", "<BEGIN>\n## `skin_details`", "T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_coin_link API. 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 encode_coin_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Encode a chat link for an amount of coins.
"Encode a chat link for an amount of coins."
188
false
hackedd/gw2api
encode_coin_link
143,412
LDU_FT/dokterbob/django-multilingual-model/unicode_wrapper
LDU_FT
[ "<BEGIN>\n## `clean`", "Make sure there is at least a translation has been filled in. If a\n default language has been specified, make sure that it exists amongst\n translations.\n<END>", "<BEGIN>\n## `_get_default_language`", "If a default language has been set, and is still available in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unicode_wrapper API. 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 unicode_wrapper API. 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...
Wrapper to allow for easy unicode representation of an object by the specified property. If this wrapper is not able to find the right translation of the specified property, it will return the default value instead. Example:: def __unicode__(self): return uni...
"Wrapper to allow for easy unicode representation of an object by\n the specified property. If this wrapper is not able to find the\n right translation of the specified property, it will return the\n default value instead.\n\n Example::\n def __unicode__(self):\n re...
13
false
dokterbob/django-multilingual-model
unicode_wrapper
143,413
LDU_FT/pmneila/morphsnakes/evolve_visual
LDU_FT
[ "<BEGIN>\n## `visual_callback_2d`", "Returns a callback than can be passed as the argument `iter_callback`\n of `morphological_geodesic_active_contour` and\n `morphological_chan_vese` for visualizing the evolution\n of the levelsets. Only works for 2D images.", " Parameters\n ----------\n back...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evolve_visual API. 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 evolve_visual API. 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...
Visual evolution of a morphological snake. Parameters ---------- msnake : MorphGAC or MorphACWE instance The morphological snake solver. fig: object, optional Handles to actual figure. levelset : array-like, optional If given, the levelset of the solver is initialized to...
"Visual evolution of a morphological snake.\n \n Parameters\n ----------\n msnake : MorphGAC or MorphACWE instance\n The morphological snake solver.\n fig: object, optional\n Handles to actual figure.\n levelset : array-like, optional\n If given, the levelset of the solver is init...
66
false
pmneila/morphsnakes
evolve_visual
143,414
LDU_FT/oscarlazoarjona/fast/plot_populations
LDU_FT
[ "<BEGIN>\n## `fit_lorentizan`", "Fits a lorentzian curve using p0=[x0,A,gamma] as an initial guess.\r\n\tIt returns a curve with N_points.\n<END>", "<BEGIN>\n## `electric_field_amplitude_gaussian`", "Return the amplitude of the electric field for a Gaussian beam.\r", " This the amplitude at the center of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_populations API. 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 plot_populations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
r"""Plot the populations of a density matrix.
"r\"\"\"Plot the populations of a density matrix."
668
false
oscarlazoarjona/fast
plot_populations
143,415
LDU_FT/erikrose/blessings/location
LDU_FT
[ "<BEGIN>\n## `derivative_colors`", "Return the names of valid color variants, given the base colors.\n<END>", "<BEGIN>\n## `split_into_formatters`", "Split a possibly compound format string into segments.", " >>> split_into_formatters('bold_underline_bright_blue_on_red')\n ['bold', 'underline', 'brigh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the location API. 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 location API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return a context manager for temporarily moving the cursor. Move the cursor to a certain position on entry, let you print stuff there, then return the cursor to its original position:: term = Terminal() with term.location(2, 5): print('Hello, world!') ...
"Return a context manager for temporarily moving the cursor.\n\n Move the cursor to a certain position on entry, let you print stuff\n there, then return the cursor to its original position::\n\n term = Terminal()\n with term.location(2, 5):\n print('Hello, world!')\n ...
25
false
erikrose/blessings
location
143,416
LDU_FT/rlabbe/filterpy/_compute_weights
LDU_FT
[ "<BEGIN>\n## `reset`", "reset filter back to state at time of construction\n<END>", "<BEGIN>\n## `update`", "Update filter with new measurement `z`", " Returns\n -------", " x : np.array\n estimate for this time step (same as self.x)\n<END>", "<BEGIN>\n## `errors`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_weights API. 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 _compute_weights API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Computes the weights for the scaled unscented Kalman filter.
"Computes the weights for the scaled unscented Kalman filter."
665
false
rlabbe/filterpy
_compute_weights
143,417
LDU_FT/AguaClara/aide_document-DEPRECATED/add_frontmatter
LDU_FT
[ "<BEGIN>\n## `render_document`", "Combines a MarkDown template file from the aide_document package with a local associated YAML data file, then outputs the rendered combination to a local MarkDown output file.", " Parameters\n ==========\n template_name : String\n Exact name of the MarkDown temp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_frontmatter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_frontmatter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Adds basic frontmatter to a MarkDown file that will be used in a Jekyll project. Parameters ========== file_name : String Relative file path from where this method is called to the location of the file that will have frontmatter added. title : String Title of the page that will go into ...
"Adds basic frontmatter to a MarkDown file that will be used in a Jekyll project.\n\n Parameters\n ==========\n file_name : String\n Relative file path from where this method is called to the location of the file that will have frontmatter added.\n title : String\n Title of the page that will ...
36
false
AguaClara/aide_document-DEPRECATED
add_frontmatter
143,418
LDU_FT/python-escpos/python-escpos/_get_codepage_char_list
LDU_FT
[ "<BEGIN>\n## `get_profile`", "Get the profile by name; if no name is given, return the\n default profile.\n<END>", "<BEGIN>\n## `get_profile_class`", "For the given profile name, load the data from the external\n database, then generate dynamically a class.\n<END>", "<BEGIN>\n## `get_font`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_codepage_char_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_codepage_char_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Get codepage character list Gets characters 128-255 for a given code page, as an array. :param encoding: The name of the encoding. This must appear in the CodePage list
"Get codepage character list\n\n Gets characters 128-255 for a given code page, as an array.\n\n :param encoding: The name of the encoding. This must appear in the CodePage list"
74
false
python-escpos/python-escpos
_get_codepage_char_list
143,419
LDU_FT/partofthething/ace/_update_mean_in_window
LDU_FT
[ "<BEGIN>\n## `run_friedman82_super`", "Run Friedman's test of fixed-span smoothers from Figure 2b.\n<END>", "<BEGIN>\n## `validate_supersmoother_bass`", "Validate the supersmoother with extra bass.\n<END>", "<BEGIN>\n## `unsort_vector`", "Upermutate 1-D data that is sorted by indices_of_increasing.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_mean_in_window 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 _update_mean_in_window API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Compute mean in window the slow way. useful for first step. Considers all values in window See Also -------- _add_observation_to_means : fast update of mean for single observation addition _remove_observation_from_means : fast update of mean for single observation removal
"Compute mean in window the slow way. useful for first step.\n\n Considers all values in window\n\n See Also\n --------\n _add_observation_to_means : fast update of mean for single observation addition\n _remove_observation_from_means : fast update of mean for single observation remov...
115
false
partofthething/ace
_update_mean_in_window
143,420
LDU_FT/PyCQA/pylint-django/is_model_mpttmeta_subclass
LDU_FT
[ "<BEGIN>\n## `register`", "Required method to auto register this checker.\n<END>", "<BEGIN>\n## `ignore_import_warnings_for_related_fields`", "Replaces the leave_module method on the VariablesChecker class to\n prevent unused-import warnings which are caused by the ForeignKey\n and OneToOneField transfo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_model_mpttmeta_subclass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_model_mpttmeta_subclass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Checks that node is derivative of MPTTMeta class.
"Checks that node is derivative of MPTTMeta class."
32
false
PyCQA/pylint-django
is_model_mpttmeta_subclass
143,421
LDU_FT/szastupov/aiotg/get_chat_member
LDU_FT
[ "<BEGIN>\n## `loop`", "Return bot's main loop as coroutine. Use with asyncio.", " :Example:", " >>> loop = asyncio.get_event_loop()\n >>> loop.run_until_complete(bot.loop())", " or", " >>> loop = asyncio.get_event_loop()\n >>> loop.create_task(bot.loop())\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chat_member API. 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_chat_member API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get information about a member of a chat. :param int user_id: Unique identifier of the target user
"Get information about a member of a chat.\n\n :param int user_id: Unique identifier of the target user"
134
false
szastupov/aiotg
get_chat_member
143,422
LDU_FT/openstack/horizon/keypair_field_data
LDU_FT
[ "<BEGIN>\n## `volume_list_paged`", "List volumes with pagination.", " To see all volumes in the cloud as an admin you can pass in a special\n search option: {'all_tenants': 1}\n<END>", "<BEGIN>\n## `extension_supported`", "This method will determine if Cinder supports a given extension name.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keypair_field_data 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 keypair_field_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Returns a list of tuples of all keypairs. Generates a list of keypairs available to the user (request). And returns a list of (id, name) tuples. :param request: django http request object :param include_empty_option: flag to include a empty tuple in the front of the list :return: list of (...
"Returns a list of tuples of all keypairs.\n\n Generates a list of keypairs available to the user (request). And returns\n a list of (id, name) tuples.\n\n :param request: django http request object\n :param include_empty_option: flag to include a empty tuple in the front of\n the list\n :return: ...
831
false
openstack/horizon
keypair_field_data
143,423
LDU_FT/joshspeagle/dynesty/unitcheck
LDU_FT
[ "<BEGIN>\n## `runplot`", "Plot live points, ln(likelihood), ln(weight), and ln(evidence)\n as a function of ln(prior volume).", " Parameters\n ----------\n results : :class:`~dynesty.results.Results` instance\n A :class:`~dynesty.results.Results` instance from a nested\n sampling run."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unitcheck API. 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 unitcheck API. 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...
Check whether `u` is inside the unit cube. Given a masked array `nonperiodic`, also allows periodic boundaries conditions to exceed the unit cube.
"Check whether `u` is inside the unit cube. Given a masked array\n `nonperiodic`, also allows periodic boundaries conditions to exceed\n the unit cube."
709
false
joshspeagle/dynesty
unitcheck
143,424
LDU_FT/pedrotgn/pyactor/set_context
LDU_FT
[ "<BEGIN>\n## `set_context`", "This function initializes the context of execution deciding which\n type of threads are being used: classic python threads or green\n threads, provided by Gevent.", " This should be called first of all in every execution, otherwise,\n the library would not work.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_context API. 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_context API. 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...
This function initializes the context of execution deciding which type of threads are being used: classic python threads or green threads, provided by Gevent. This should be called first of all in every execution, otherwise, the library would not work. The default module is 'thread'. :param s...
"This function initializes the context of execution deciding which\n type of threads are being used: classic python threads or green\n threads, provided by Gevent.\n\n This should be called first of all in every execution, otherwise,\n the library would not work.\n\n The default module is 'thread'.\n\n ...
102
false
pedrotgn/pyactor
set_context
143,425
LDU_FT/persephone-tools/persephone/transcribe
LDU_FT
[ "<BEGIN>\n## `handle_unhandled_exception`", "Handler for unhandled exceptions that will write to the logs\n<END>", "<BEGIN>\n## `write_transcriptions`", "Write the utterance transcriptions to files in the tgt_dir. Is lazy and\n checks if the file already exists.", " Args:\n utterances: A list o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transcribe API. 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 transcribe API. 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...
Transcribes an untranscribed dataset. Similar to eval() except no reference translation is assumed, thus no LER is calculated.
"Transcribes an untranscribed dataset. Similar to eval() except\n no reference translation is assumed, thus no LER is calculated."
219
false
persephone-tools/persephone
transcribe
143,426
LDU_FT/ldo/dbussy/get_version
LDU_FT
[ "<BEGIN>\n## `data_key`", "returns a unique value that allows data to be used as a dict/set key.\n<END>", "<BEGIN>\n## `get_version`", "returns the libdbus library version as a tuple of integers (major, minor, micro).\n<END>", "<BEGIN>\n## `matches_rule`", "does Message message match against the specified...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
returns the libdbus library version as a tuple of integers (major, minor, micro).
"returns the libdbus library version as a tuple of integers (major, minor, micro)."
74
false
ldo/dbussy
get_version
143,427
LDU_FT/pytroll/posttroll/get_pub_address
LDU_FT
[ "<BEGIN>\n## `restart_listener`", "Restart listener after configuration update.\n<END>", "<BEGIN>\n## `create_subscriber`", "Create a subscriber instance using specified addresses and\n message types.\n<END>", "<BEGIN>\n## `heartbeat`", "Send a heartbeat ... but only if *min_interval* seconds has p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pub_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pub_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get the address of the publisher for a given publisher *name* from the nameserver on *nameserver* (localhost by default).
"Get the address of the publisher for a given publisher *name* from the\n nameserver on *nameserver* (localhost by default)."
46
false
pytroll/posttroll
get_pub_address
143,428
LDU_FT/olt/scriptine/autocmds
LDU_FT
[ "<BEGIN>\n## `autocmds`", "Parse and run commands.", " Will search ``namespace`` for functions that end with ``command_suffix``.", " :param namespace: the namespace/module to search for commands\n :param args: the arguments for the command parser. defaults to\n :data:`sys.argv`\n :param com...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autocmds API. 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 autocmds API. 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...
Parse and run commands. Will search ``namespace`` for functions that end with ``command_suffix``. :param namespace: the namespace/module to search for commands :param args: the arguments for the command parser. defaults to :data:`sys.argv` :param command_suffix: function name suffix th...
"Parse and run commands.\n \n Will search ``namespace`` for functions that end with ``command_suffix``.\n \n :param namespace: the namespace/module to search for commands\n :param args: the arguments for the command parser. defaults to\n :data:`sys.argv`\n :param command_suffix: function name s...
84
false
olt/scriptine
autocmds
143,429
LDU_FT/Bogdanp/anom-py/is_not_none
LDU_FT
[ "<BEGIN>\n## `_transactions`", "list[Transaction]: The current stack of Transactions.\n<END>", "<BEGIN>\n## `transactional`", "Decorates functions so that all of their operations (except for\n queries) run inside a Datastore transaction.", " Parameters:\n adapter(Adapter, optional): The Adapter t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_not_none API. 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 is_not_none API. 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...
bool: True if the value of a property is not None.
"bool: True if the value of a property is not None."
91
false
Bogdanp/anom-py
is_not_none
143,430
LDU_FT/damirazo/py-config-parser/get_bool
LDU_FT
[ "<BEGIN>\n## `register_conversion_handler`", "u\"\"\"\n Регистрация обработчика конвертирования", " :param name: Имя обработчика в таблице соответствия\n :param handler: Обработчик\n<END>", "<BEGIN>\n## `conversion_handler`", "u\"\"\"\n Возвращает обработчик конвертации с указанн...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bool API. 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...
u""" Возвращает значение, приведенное к булеву
"u\"\"\"\n Возвращает значение, приведенное к булеву"
20
false
damirazo/py-config-parser
get_bool
143,431
LDU_FT/jkitzes/macroeco/ssad
LDU_FT
[ "<BEGIN>\n## `get_theme_dir`", "Returns path to directory containing this package's theme.", " This is designed to be used when setting the ``html_theme_path``\n option within Sphinx's ``conf.py`` file.\n<END>", "<BEGIN>\n## `_geom_solve_p_from_mu`", "For the geom_uptrunc, given mu and b, return p.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ssad API. 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 ssad API. 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...
Calculates an empirical intra-specific spatial abundance distribution Parameters ---------- {0} Returns ------- {1} Result has one column giving the individuals of species in each subplot. Notes ----- {2} {3} Examples -------- {4} >>> # Get the spatial ...
"Calculates an empirical intra-specific spatial abundance distribution\n\n Parameters\n ----------\n {0}\n\n Returns\n -------\n {1} Result has one column giving the individuals of species in each\n subplot.\n\n Notes\n -----\n {2}\n\n {3}\n\n Examples\n --------\n\n {4}\n\n ...
337
false
jkitzes/macroeco
ssad
143,432
LDU_FT/OpenGov/carpenter/convert_to_row_table
LDU_FT
[ "<BEGIN>\n## `get_cell_type`", "Returns a type to be used in table cell analysis. This is either\n 'basestring' or '(int, float)'.\n<END>", "<BEGIN>\n## `check_cell_type`", "Checks the cell type to see if it represents the cell_type passed in.", " Args:\n cell_type: The type id for a cell match...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_row_table 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 convert_to_row_table 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 the block into row titled elements. These elements are copied into the return table, which can be much longer than the original block. Args: add_units: Indicates if units should be appened to each row item. Returns: A row-titled table representing the data in ...
"Converts the block into row titled elements. These elements are copied into the return\n table, which can be much longer than the original block.\n\n Args:\n add_units: Indicates if units should be appened to each row item.\n\n Returns:\n A row-titled table representing the ...
123
false
OpenGov/carpenter
convert_to_row_table
143,433
LDU_FT/googlefonts/fontmake/remove_overlaps
LDU_FT
[ "<BEGIN>\n## `exclude_args`", "Delete options that are not appropriate for a following code path; exit\n with an error if excluded options were passed in by the user.", " argparse generates a namespace with all options it knows, but not every\n attribute should be passed to all code paths (i.e. options...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_overlaps API. 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 remove_overlaps API. 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...
Remove overlaps in UFOs' glyphs' contours.
"Remove overlaps in UFOs' glyphs' contours."
57
false
googlefonts/fontmake
remove_overlaps
143,434
LDU_FT/inveniosoftware/invenio-oauth2server/monkeypatch_oauthlib_urlencode_chars
LDU_FT
[ "<BEGIN>\n## `require_api_auth`", "Decorator to require API authentication using OAuth token.", " :param allow_anonymous: Allow access without OAuth token\n (default: ``False``).\n<END>", "<BEGIN>\n## `require_oauth_scopes`", "r\"\"\"Decorator to require a list of OAuth scopes.", " Decorator ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the monkeypatch_oauthlib_urlencode_chars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the monkeypatch_oauthlib_urlencode_chars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Monkeypatch OAuthlib set of "URL encoded"-safe characters. .. note:: OAuthlib keeps a set of characters that it considers as valid inside an URL-encoded query-string during parsing of requests. The issue is that this set of characters wasn't designed to be confi...
"Monkeypatch OAuthlib set of \"URL encoded\"-safe characters.\n\n .. note::\n\n OAuthlib keeps a set of characters that it considers as valid\n inside an URL-encoded query-string during parsing of requests. The\n issue is that this set of characters wasn't designed to be\n ...
92
false
inveniosoftware/invenio-oauth2server
monkeypatch_oauthlib_urlencode_chars
143,435
LDU_FT/sassoftware/saspy/sasqc
LDU_FT
[ "<BEGIN>\n## `submit`", "This method is used to submit any SAS code. It returns the Log and Listing as a python dictionary.", " - code - the SAS statements you want to execute\n - results - format of results. 'HTML' by default, alternatively 'TEXT'\n - prompt - dict of names:flags to pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sasqc API. 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 sasqc API. 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...
This methods creates a SASqc object which you can use to run various analytics. See the sasqc.py module. :return: sasqc object
"This methods creates a SASqc object which you can use to run various analytics. See the sasqc.py module.\n\n :return: sasqc object"
469
false
sassoftware/saspy
sasqc
143,436
LDU_FT/davidblaisonneau-orange/foreman/checkAndCreate
LDU_FT
[ "<BEGIN>\n## `importPuppetClasses`", "Function importPuppetClasses\n Force the reload of puppet classes", " @param smartProxyId: smartProxy Id\n @return RETURN: the API result\n<END>", "<BEGIN>\n## `enhance`", "Function enhance\n Enhance the object with new item or enhanced items...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkAndCreate API. 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 checkAndCreate API. 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...
Function checkAndCreate check And Create procedure for an hostgroup - check the hostgroup is not existing - create the hostgroup - Add puppet classes from puppetClassesId - Add params from hostgroupConf @param key: The hostgroup name or ID @param payload: The des...
"Function checkAndCreate\n check And Create procedure for an hostgroup\n - check the hostgroup is not existing\n - create the hostgroup\n - Add puppet classes from puppetClassesId\n - Add params from hostgroupConf\n\n @param key: The hostgroup name or ID\n @param payload...
118
false
davidblaisonneau-orange/foreman
checkAndCreate
143,437
LDU_FT/romansalin/django-seo2/_resolve_value
LDU_FT
[ "<BEGIN>\n## `escape_tags`", "Strips text from the given html string, leaving only tags.\n This functionality requires BeautifulSoup, nothing will be\n done otherwise.", " This isn't perfect. Someone could put javascript in here:\n <a onClick=\"alert('hi');\">test</a>", " So if you use ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_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 ex...
Returns an appropriate value for the given name.
"Returns an appropriate value for the given name."
21
false
romansalin/django-seo2
_resolve_value
143,438
LDU_FT/VonStruddle/PyHunter/email_finder
LDU_FT
[ "<BEGIN>\n## `domain_search`", "Return all the email addresses found for a given domain.", " :param domain: The domain on which to search for emails. Must be\n defined if company is not.", " :param company: The name of the company on which to search for emails.\n Must be defined if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the email_finder API. 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 email_finder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Find the email address of a person given its name and company's domain. :param domain: The domain of the company where the person works. Must be defined if company is not. :param company: The name of the company where the person works. Must be defined if domain is not. :param ...
"Find the email address of a person given its name and company's domain.\n\n :param domain: The domain of the company where the person works. Must\n be defined if company is not.\n\n :param company: The name of the company where the person works. Must\n be defined if domain is not.\n\n ...
87
false
VonStruddle/PyHunter
email_finder
143,439
LDU_FT/Unidata/siphon/filter_time_nearest
LDU_FT
[ "<BEGIN>\n## `open_store_variable`", "Turn CDMRemote variable into something like a numpy.ndarray.\n<END>", "<BEGIN>\n## `get_attrs`", "Get the global attributes from underlying data set.\n<END>", "<BEGIN>\n## `get_dimensions`", "Get the dimensions from underlying data set.\n<END>", "<BEGIN>\n## `_find_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_time_nearest 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 filter_time_nearest 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...
Filter keys for an item closest to the desired time. Loops over all keys in the collection and uses `regex` to extract and build `datetime`s. The collection of `datetime`s is compared to `start` and the value that has a `datetime` closest to that requested is returned.If none of the keys in the...
"Filter keys for an item closest to the desired time.\n\n Loops over all keys in the collection and uses `regex` to extract and build\n `datetime`s. The collection of `datetime`s is compared to `start` and the value that\n has a `datetime` closest to that requested is returned.If none of the keys i...
309
false
Unidata/siphon
filter_time_nearest
143,440
LDU_FT/jpype-project/jpype/get_jvm_path
LDU_FT
[ "<BEGIN>\n## `_javahome_binary`", "for osx > 10.5 we have the nice util /usr/libexec/java_home available. Invoke it and\n return its output. It seems this tool has been removed in osx 10.9.\n<END>", "<BEGIN>\n## `_get_from_registry`", "Retrieves the path to the default Java installation stored in the\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_jvm_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_jvm_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Retrieves the path to the default or first found JVM library :return: The path to the JVM shared library file :raise ValueError: No JVM library found
"Retrieves the path to the default or first found JVM library\n\n :return: The path to the JVM shared library file\n :raise ValueError: No JVM library found"
46
false
jpype-project/jpype
get_jvm_path
143,441
LDU_FT/todddeluca/dones/doTransaction
LDU_FT
[ "<BEGIN>\n## `get`", "Get a default dones object for ns. If no dones object exists for ns yet,\n a DbDones object will be created, cached, and returned.\n<END>", "<BEGIN>\n## `open_conn`", "Return an open mysql db connection using the given credentials. Use\n `retries` and `sleep` to be robust to the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doTransaction API. 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 doTransaction API. 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...
wrap a connection in a transaction. starts a transaction, yields the conn, and then if an exception occurs, calls rollback(). otherwise calls commit(). start: if True, executes 'START TRANSACTION' sql before yielding conn. Useful for connections that are autocommit by default. startSQL: override if 'START TR...
"wrap a connection in a transaction. starts a transaction, yields the conn, and then if an exception occurs, calls rollback(). otherwise calls commit().\n start: if True, executes 'START TRANSACTION' sql before yielding conn. Useful for connections that are autocommit by default.\n startSQL: override if 'START...
30
false
todddeluca/dones
doTransaction
143,442
LDU_FT/kivy/python-for-android/_unpack_aar
LDU_FT
[ "<BEGIN>\n## `dist_dir`", "The dist dir at which to place the finished distribution.\n<END>", "<BEGIN>\n## `check_recipe_choices`", "Checks what recipes are being built to see which of the alternative\n and optional dependencies are being used,\n and returns a list of these.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unpack_aar API. 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 _unpack_aar API. 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...
Unpack content of .aar bundle and copy to current dist dir.
"Unpack content of .aar bundle and copy to current dist dir."
404
false
kivy/python-for-android
_unpack_aar
143,443
LDU_FT/Gjum/agarnet/get_party_address
LDU_FT
[ "<BEGIN>\n## `gcommer_claim`", "Try to get a token for this server address.\n `address` has to be ip:port, e.g. `'1.2.3.4:1234'`\n Returns tuple(address, token)\n<END>", "<BEGIN>\n## `gcommer_donate`", "Donate a token for this server address.\n `address` and `token` should be the return values from f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_party_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_party_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns the address (`'IP:port'` string) of the party server. To generate a `party_token`: ``` from agarnet.utils import find_server _, token = find_server(mode='party') ``` Makes a request to http://m.agar.io/getToken to get the address.
"Returns the address (`'IP:port'` string) of the party server.\n\n To generate a `party_token`:\n ```\n from agarnet.utils import find_server\n _, token = find_server(mode='party')\n ```\n\n Makes a request to http://m.agar.io/getToken to get the address."
57
false
Gjum/agarnet
get_party_address
143,444
LDU_FT/sloria/konch/make_banner
LDU_FT
[ "<BEGIN>\n## `transform`", "Expand pattern into an (almost) equivalent one, but with single Either.", " Example: ((-a | -b) (-c | -d)) => (-a -c | -a -d | -b -c | -b -d)\n Quirks: [-a] => (-a), (-a...) => (-a -a)\n<END>", "<BEGIN>\n## `parse_long`", "long ::= '--' chars [ ( ' ' | '=' ) chars ] ;\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_banner API. 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 make_banner API. 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...
Generates a full banner with version info, the given text, and a formatted list of context variables.
"Generates a full banner with version info, the given text, and a\n formatted list of context variables."
44
false
sloria/konch
make_banner
143,445
LDU_FT/django-admin-tools/django-admin-tools/is_selected
LDU_FT
[ "<BEGIN>\n## `set_preferences`", "This view serves and validates a preferences form.\n<END>", "<BEGIN>\n## `admin_tools_render_menu`", "Template tag that renders the menu, it takes an optional ``Menu`` instance\n as unique argument, if not given, the menu will be retrieved with the\n ``get_admin_menu`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_selected API. 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 is_selected API. 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...
Helper method that returns ``True`` if the menu item is active. A menu item is considered as active if it's URL or one of its descendants URL is equals to the current URL.
"Helper method that returns ``True`` if the menu item is active.\n A menu item is considered as active if it's URL or one of its\n descendants URL is equals to the current URL."
60
false
django-admin-tools/django-admin-tools
is_selected
143,446
LDU_FT/emory-libraries/eulcommon/messages
LDU_FT
[ "<BEGIN>\n## `search_terms`", "Takes a search string and parses it into a list of keywords and\n phrases.\n<END>", "<BEGIN>\n## `pages_to_show`", "Generate a dictionary of pages to show around the current page. Show\n 3 numbers on either side of the specified page, or more if close to end or\n beginn...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the messages API. 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 messages API. 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...
A generator yielding the :class:`MacIndexMessage` structures in this index file.
"A generator yielding the :class:`MacIndexMessage`\n structures in this index file."
52
false
emory-libraries/eulcommon
messages
143,447
LDU_FT/littlemo/moear-spider-zhihudaily/parse
LDU_FT
[ "<BEGIN>\n## `register`", "调用方可根据主键字段进行爬虫的创建或更新操作", " :return: 返回符合接口定义的字典数据\n :rtype: dict\n<END>", "<BEGIN>\n## `crawl`", "执行爬取操作,并阻塞直到爬取完成,返回结果数据。\n 此处考虑到 Scrapy 本身的并发特性,故通过临时文件方式做数据传递,\n 将临时路径传递到爬虫业务中,并在爬取结束后对文件进行读取、 JSON 反序列化,返回", " :return: 返回符合接口定义的字典对象\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
根据对 ``start_urls`` 中提供链接的请求响应包内容,解析生成具体文章链接请求 :param Response response: 由 ``Scrapy`` 调用并传入的请求响应对象
"根据对 ``start_urls`` 中提供链接的请求响应包内容,解析生成具体文章链接请求\n\n :param Response response: 由 ``Scrapy`` 调用并传入的请求响应对象"
19
false
littlemo/moear-spider-zhihudaily
parse
143,448
LDU_FT/QunarOPS/qg.core/marshall_now
LDU_FT
[ "<BEGIN>\n## `import_class`", "Returns a class from a string including module and class.\n<END>", "<BEGIN>\n## `import_object_ns`", "Tries to import object from default namespace.", " Imports a class and return an instance of it, first by trying\n to find the class in a default namespace, then failing...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marshall_now API. 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 marshall_now API. 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...
Make an rpc-safe datetime with microseconds. Note: tzinfo is stripped, but not required for relative times.
"Make an rpc-safe datetime with microseconds.\n\n Note: tzinfo is stripped, but not required for relative times."
74
false
QunarOPS/qg.core
marshall_now
143,449
LDU_FT/InfoAgeTech/django-core/delete_url_link
LDU_FT
[ "<BEGIN>\n## `build_link`", "Builds an html link.", " :param href: link for the anchor element\n :param text: text for the anchor element\n :param attrs: other attribute kwargs", " >>> build_link('xyz.com', 'hello', 'big')\n u'<a href=\"xyz.com\" class=\"big\">hello</a>'\n >>> build_link('xy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_url_link API. 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 delete_url_link API. 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 assumes that the "get_delete_url_link" method has been implemented on the obj.
"This method assumes that the \"get_delete_url_link\" method has been\n implemented on the obj."
206
false
InfoAgeTech/django-core
delete_url_link
143,450
LDU_FT/frostming/marko/find_links_or_emphs
LDU_FT
[ "<BEGIN>\n## `camel_to_snake_case`", "Takes a camelCased string and converts to snake_case.\n<END>", "<BEGIN>\n## `is_paired`", "Check if the text only contains:\n 1. blackslash escaped parentheses, or\n 2. parentheses paired.\n<END>", "<BEGIN>\n## `match_prefix`", "Check if the line starts with giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_links_or_emphs 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 find_links_or_emphs 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...
Fink links/images or emphasis from text. :param text: the original text. :param root_node: a reference to the root node of the AST. :returns: an iterable of match object.
"Fink links/images or emphasis from text.\n\n :param text: the original text.\n :param root_node: a reference to the root node of the AST.\n :returns: an iterable of match object."
49
false
frostming/marko
find_links_or_emphs
143,451
LDU_FT/biocore-ntnu/epic/_factln
LDU_FT
[ "<BEGIN>\n## `multiple_files_count_reads_in_windows`", "Use count_reads on multiple files and store result in dict.", " Untested since does the same thing as count reads.\n<END>", "<BEGIN>\n## `_merge_files`", "Merge lists of chromosome bin df chromosome-wise.", " windows is an OrderedDict where the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _factln API. 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 _factln API. 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...
Computes logfactorial regularly for tractable numbers, uses Ramanujans approximation otherwise.
"Computes logfactorial regularly for tractable numbers, uses Ramanujans approximation otherwise."
36
false
biocore-ntnu/epic
_factln
143,452
LDU_FT/pivotal-energy-solutions/django-datatable-view/update_object
LDU_FT
[ "<BEGIN>\n## `resolve_orm_path`", "Follows the queryset-style query path of ``orm_path`` starting from ``model`` class. If the\n path ends up referring to a bad field name, ``django.db.models.fields.FieldDoesNotExist`` will\n be raised.\n<END>", "<BEGIN>\n## `get_model_at_related_field`", "Looks up ``a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Saves the new value to the target object.
"Saves the new value to the target object."
128
false
pivotal-energy-solutions/django-datatable-view
update_object
143,453
LDU_FT/Thermondo/django-heroku-connect/_replaced
LDU_FT
[ "<BEGIN>\n## `_replaced`", "Replace elements in iterable with values from an alias dict, suppressing empty values.", " Used to consistently enhance how certain fields are displayed in list and detail pages.\n<END>", "<BEGIN>\n## `_get_admin_route_name`", "Get the base name of the admin route for a model ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _replaced API. 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 _replaced API. 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...
Replace elements in iterable with values from an alias dict, suppressing empty values. Used to consistently enhance how certain fields are displayed in list and detail pages.
"Replace elements in iterable with values from an alias dict, suppressing empty values.\n\n Used to consistently enhance how certain fields are displayed in list and detail pages."
98
false
Thermondo/django-heroku-connect
_replaced
143,454
LDU_FT/ssato/python-anytemplate/render
LDU_FT
[ "<BEGIN>\n## `fallback_render`", "Render from given template and context.", " This is a basic implementation actually does nothing and just returns\n the content of given template file `template`.", " :param template: Template file path\n :param context: A dict or dict-like object to instantiate g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
:param template: Template file path :param context: A dict or dict-like object to instantiate given template file :param at_paths: Template search paths :param at_encoding: Template encoding :param kwargs: Keyword arguments passed to the template engine to render ...
":param template: Template file path\n :param context: A dict or dict-like object to instantiate given\n template file\n :param at_paths: Template search paths\n :param at_encoding: Template encoding\n :param kwargs: Keyword arguments passed to the template engine to\n ...
156
false
ssato/python-anytemplate
render
143,455
LDU_FT/offu/WeRoBot/get_reply
LDU_FT
[ "<BEGIN>\n## `make_view`", "为一个 BaseRoBot 生成 Flask view。", " Usage ::", " from werobot import WeRoBot", " robot = WeRoBot(token='token')", " @robot.handler\n def hello(message):\n return 'Hello World!'", " from flask import Flask\n from werobot.con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reply API. 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_reply API. 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...
根据 message 的内容获取 Reply 对象。 :param message: 要处理的 message :return: 获取的 Reply 对象
"根据 message 的内容获取 Reply 对象。\n\n :param message: 要处理的 message\n :return: 获取的 Reply 对象"
223
false
offu/WeRoBot
get_reply
143,456
LDU_FT/billy-yoyo/RainbowSixSiege-Python-API/get_operator_statistic
LDU_FT
[ "<BEGIN>\n## `connect`", "|coro|", " Connect to ubisoft, automatically called when needed\n<END>", "<BEGIN>\n## `get_players`", "|coro|", " get a list of players matching the term on that platform,\n exactly one of uid and name must be given, platform must be given,\n this list...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_operator_statistic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_operator_statistic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
|coro| Gets the operator unique statistic from the operator definitions dict Returns ------- str the name of the operator unique statistic
"|coro|\n\n Gets the operator unique statistic from the operator definitions dict\n\n Returns\n -------\n str\n the name of the operator unique statistic"
87
false
billy-yoyo/RainbowSixSiege-Python-API
get_operator_statistic
143,457
LDU_FT/ASKIDA/Selenium2LibraryExtension/element_value_should_not_contain
LDU_FT
[ "<BEGIN>\n## `wait_until_element_has_focus`", "Waits until the element identified by `locator` has focus.\n\t\tYou might rather want to use `Element Focus Should Be Set`", "\t\t| *Argument* | *Description* | *Example* |\n\t\t| locator | Selenium 2 element locator | id=my_id |\n\t\t| timeout | maximum time to wa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the element_value_should_not_contain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the element_value_should_not_contain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Verifies the element identified by `locator` does not contain the specified value. | *Argument* | *Description* | *Example* | | locator | Selenium 2 element locator | id=my_id | | value | value it should not contain | Slim Shady |
"Verifies the element identified by `locator` does not contain the specified value.\n\n\t\t| *Argument* | *Description* | *Example* |\n\t\t| locator | Selenium 2 element locator | id=my_id |\n\t\t| value | value it should not contain | Slim Shady |"
76
false
ASKIDA/Selenium2LibraryExtension
element_value_should_not_contain
143,458
LDU_FT/clinicedc/edc-notification/subscribe
LDU_FT
[ "<BEGIN>\n## `notify`", "Overridden to only call `notify` if model matches.\n<END>", "<BEGIN>\n## `notification_on_post_create_historical_record`", "Checks and processes any notifications for this model.", " Processes if `label_lower` is in site_notifications.models.", " Note, this is the post_creat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns a response after attempting to subscribe a member to the list.
"Returns a response after attempting to subscribe\n a member to the list."
54
false
clinicedc/edc-notification
subscribe
143,459
LDU_FT/SheffieldML/GPy/predictive_variance
LDU_FT
[ "<BEGIN>\n## `pdf_link`", ":param link_f: latent variables link(f)\n :type link_f: Nx1 array\n :param y: data\n :type y: Nx1 array\n :param Y_metadata: includes censoring information in dictionary key 'censored'\n :returns: likelihood evaluated for this point\n :rtype: fl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predictive_variance 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 predictive_variance 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...
Approximation to the predictive variance: V(Y_star) The following variance decomposition is used: V(Y_star) = E( V(Y_star|f_star)**2 ) + V( E(Y_star|f_star) )**2 :param mu: mean of posterior :param sigma: standard deviation of posterior :predictive_mean: output's predictive mea...
"Approximation to the predictive variance: V(Y_star)\n\n The following variance decomposition is used:\n V(Y_star) = E( V(Y_star|f_star)**2 ) + V( E(Y_star|f_star) )**2\n\n :param mu: mean of posterior\n :param sigma: standard deviation of posterior\n :predictive_mean: output's predic...
1,670
true
SheffieldML/GPy
predictive_variance
143,460
LDU_FT/ShopRunner/apparate/delete_old_versions
LDU_FT
[ "<BEGIN>\n## `_update_value`", "creates (if needed) and updates the value of the key in the config with a\n value entered by the user", " Parameters\n ----------\n config: ConfigParser object\n existing configuration\n key: string\n key to update\n instruction: string\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_old_versions 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 delete_old_versions 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...
delete any other versions of the same library where: it has the same major version it has a smaller minor version it lives in prod_folder Parameters ---------- logger: logging object configured in cli_commands.py match: FilenameMatch object match object with libr...
"delete any other versions of the same library where:\n it has the same major version\n it has a smaller minor version\n it lives in prod_folder\n\n Parameters\n ----------\n logger: logging object\n configured in cli_commands.py\n match: FilenameMatch object\n match objec...
44
false
ShopRunner/apparate
delete_old_versions
143,461
LDU_FT/OCA/vertical-hotel/unlink
LDU_FT
[ "<BEGIN>\n## `_offset_format_timestamp1`", "Convert a source timeStamp string into a destination timeStamp string,\n attempting to apply the correct offset if both the server and local\n timeZone are recognized,or no offset at all if they aren't or if\n tz_offset is false (i.e. assuming they are both in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unlink API. 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 unlink API. 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 ...
Overrides orm unlink method. @param self: The object pointer @return: True/False.
"Overrides orm unlink method.\n @param self: The object pointer\n @return: True/False."
71
false
OCA/vertical-hotel
unlink
143,462
LDU_FT/twisted/axiom/dependsOn
LDU_FT
[ "<BEGIN>\n## `upgradeProcessor1to2`", "Batch processors stopped polling at version 2, so they no longer needed the\n idleInterval attribute. They also gained a scheduled attribute which\n tracks their interaction with the scheduler. Since they stopped polling,\n we also set them up as a timed event her...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dependsOn API. 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 dependsOn API. 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...
This function behaves like L{axiom.attributes.reference} but with an extra behaviour: when this item is installed (via L{axiom.dependency.installOn} on a target item, the type named here will be instantiated and installed on the target as well. For example:: class Foo(Item): counte...
"This function behaves like L{axiom.attributes.reference} but with\n an extra behaviour: when this item is installed (via\n L{axiom.dependency.installOn} on a target item, the\n type named here will be instantiated and installed on the target\n as well.\n\n For example::\n\n class Foo(Item):\n ...
479
false
twisted/axiom
dependsOn
143,463
LDU_FT/project-generator/project_generator_definitions/get_mcu_definition
LDU_FT
[ "<BEGIN>\n## `get_tool_definition`", "Returns tool specific dic or None if it does not exist for defined tool\n<END>", "<BEGIN>\n## `is_supported`", "Returns True if target is supported by definitions\n<END>", "<BEGIN>\n## `get_mcu_definition`", "Parse project file to get mcu definition\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mcu_definition API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mcu_definition 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...
Parse project file to get mcu definition
"Parse project file to get mcu definition"
10
false
project-generator/project_generator_definitions
get_mcu_definition
143,464
LDU_FT/rix0rrr/gcl/find_value_at_cursor
LDU_FT
[ "<BEGIN>\n## `from_spec`", "Return a schema object from a spec.", " A spec is either a string for a scalar type, or a list of 0 or 1 specs,\n or a dictionary with two elements: {'fields': { ... }, required: [...]}.\n<END>", "<BEGIN>\n## `validate`", "Validate an object according to its own AND an external...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_value_at_cursor 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_value_at_cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Find the value of the object under the cursor.
"Find the value of the object under the cursor."
129
false
rix0rrr/gcl
find_value_at_cursor
143,465
LDU_FT/Titan-C/slaveparticles/bethe_fermi_ene
LDU_FT
[ "<BEGIN>\n## `destruct`", "Fermion annihilation operator in matrix representation for a indexed\n particle in a bounded N-particles fermion fock space\n<END>", "<BEGIN>\n## `plot_degbandshalffill`", "Plot of Quasiparticle weight for degenerate\n half-filled bands, showing the Mott transition\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bethe_fermi_ene API. 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 bethe_fermi_ene API. 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...
product of the bethe lattice dos, fermi distribution an weighted by energy
"product of the bethe lattice dos, fermi distribution an weighted\n by energy"
78
false
Titan-C/slaveparticles
bethe_fermi_ene
143,466
LDU_FT/kylef/refract.py/serialise
LDU_FT
[ "<BEGIN>\n## `find_element_class`", "Finds an element class for the given element name contained within the\n registry.", " Returns Element when there is no matching element subclass.", " >>> registry.find_element_class('string')\n String", " >>> registry.find_element_clas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialise API. 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 serialise API. 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...
Serialises the given element into JSON. >>> JSONSerialiser().serialise(String(content='Hello')) '{"element": "string", "content": "Hello"}'
"Serialises the given element into JSON.\n\n >>> JSONSerialiser().serialise(String(content='Hello'))\n '{\"element\": \"string\", \"content\": \"Hello\"}'"
41
false
kylef/refract.py
serialise
143,467
LDU_FT/jaywink/federation/verify
LDU_FT
[ "<BEGIN>\n## `check_sender_and_entity_handle_match`", "Ensure that sender and entity handles match.", " Basically we've already verified the sender is who they say when receiving the payload. However, the sender might\n be trying to set another author in the payload itself, since Diaspora has the sender i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. 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 verify API. 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 ...
Verify Magic Envelope document against public key.
"Verify Magic Envelope document against public key."
230
false
jaywink/federation
verify
143,468
LDU_FT/rstoneback/pysatMagVect/cross_product
LDU_FT
[ "<BEGIN>\n## `add_mag_drift_unit_vectors_ecef`", "Adds unit vectors expressing the ion drift coordinate system\n organized by the geomagnetic field. Unit vectors are expressed\n in ECEF coordinates.", " Parameters\n ----------\n inst : pysat.Instrument\n Instrument object that will get uni...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cross_product API. 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 cross_product API. 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...
Cross product of two vectors, v1 x v2 Parameters ---------- x1 : float or array-like X component of vector 1 y1 : float or array-like Y component of vector 1 z1 : float or array-like Z component of vector 1 x2 : float or array-like X component of vector 2 ...
"Cross product of two vectors, v1 x v2\n \n Parameters\n ----------\n x1 : float or array-like\n X component of vector 1\n y1 : float or array-like\n Y component of vector 1\n z1 : float or array-like\n Z component of vector 1\n x2 : float or array-like\n X component of ...
108
false
rstoneback/pysatMagVect
cross_product
143,469
LDU_FT/dronekit/dronekit-python/remove_message_listener
LDU_FT
[ "<BEGIN>\n## `condition_yaw`", "Send MAV_CMD_CONDITION_YAW message to point vehicle at a specified heading (in degrees).", " This method sets an absolute heading by default, but you can set the `relative` parameter\n to `True` to set yaw relative to the current yaw heading.", " By default the yaw of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_message_listener 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 remove_message_listener API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Removes a message listener (that was previously added using :py:func:`add_message_listener`). See :ref:`mavlink_messages` for more information. :param String name: The name of the message for which the listener is to be removed (or '*' to remove an 'all messages' observer). :param fn: The list...
"Removes a message listener (that was previously added using :py:func:`add_message_listener`).\n\n See :ref:`mavlink_messages` for more information.\n\n :param String name: The name of the message for which the listener is to be removed (or '*' to remove an 'all messages' observer).\n :param fn: Th...
290
false
dronekit/dronekit-python
remove_message_listener
143,470
LDU_FT/lambdalisue/maidenhair/get_system_root_directory
LDU_FT
[ "<BEGIN>\n## `load`", "Load data from file matched with given glob pattern.", " Return value will be a list of data unless :attr:`unite` is `True`.\n If :attr:`unite` is `True` then all data will be united into a single data.", " Parameters\n ----------\n pathname : string or list\n A gl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_system_root_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_system_root_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Get system root directory (application installed root directory) Returns ------- string A full path
"Get system root directory (application installed root directory)\n\n Returns\n -------\n string\n A full path"
128
false
lambdalisue/maidenhair
get_system_root_directory
143,471
LDU_FT/konstantinstadler/pymrio/save
LDU_FT
[ "<BEGIN>\n## `load_all`", "Loads a full IO system with all extension in path", " Parameters\n ----------\n path : pathlib.Path or string\n Path or path with para file name for the data to load.\n This must either point to the directory containing the uncompressed\n data or the loca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Saving the system to path Parameters ---------- path : pathlib.Path or string path for the saved data (will be created if necessary, data within will be overwritten). table_format : string Format to save the DataFrames: - 'pkl' : Bi...
"Saving the system to path\n\n\n Parameters\n ----------\n path : pathlib.Path or string\n path for the saved data (will be created if necessary, data\n within will be overwritten).\n\n table_format : string\n Format to save the DataFrames:\n\n ...
433
false
konstantinstadler/pymrio
save
143,472