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/django-haystack/pysolr/force_bytes
LDU_FT
[ "<BEGIN>\n## `force_unicode`", "Forces a bytestring to become a Unicode string.\n<END>", "<BEGIN>\n## `force_bytes`", "Forces a Unicode string to become a bytestring.\n<END>", "<BEGIN>\n## `unescape_html`", "Removes HTML or XML character references and entities from a text string.", " @param text The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the force_bytes API. 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 force_bytes API. 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...
Forces a Unicode string to become a bytestring.
"Forces a Unicode string to become a bytestring."
102
false
django-haystack/pysolr
force_bytes
17,673
LDU_FT/ValvePython/steam/create_emergency_codes
LDU_FT
[ "<BEGIN>\n## `generate_twofactor_code_for_time`", "Generate Steam 2FA code for timestamp", " :param shared_secret: authenticator shared secret\n :type shared_secret: bytes\n :param timestamp: timestamp to use, if left out uses current time\n :type timestamp: int\n :return: steam two factor code\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_emergency_codes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_emergency_codes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Generate emergency codes :param code: SMS code :type code: str :raises: :class:`SteamAuthenticatorError` :return: list of codes :rtype: list .. note:: A confirmation code is required to generate emergency codes and this method needs to be called ...
"Generate emergency codes\n\n :param code: SMS code\n :type code: str\n :raises: :class:`SteamAuthenticatorError`\n :return: list of codes\n :rtype: list\n\n .. note::\n A confirmation code is required to generate emergency codes and this method needs\n to...
385
false
ValvePython/steam
create_emergency_codes
17,674
LDU_FT/ssalentin/plip/classify_by_name
LDU_FT
[ "<BEGIN>\n## `process_pdb`", "Analysis of a single PDB file. Can generate textual reports XML, PyMOL session files and images as output.\n<END>", "<BEGIN>\n## `download_structure`", "Given a PDB ID, downloads the corresponding PDB structure.\n Checks for validity of ID and handles error while downloading.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classify_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classify_by_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Classify a (composite) ligand by the HETID(s)
"Classify a (composite) ligand by the HETID(s)"
176
false
ssalentin/plip
classify_by_name
17,675
LDU_FT/sentinel-hub/eo-learn/_upsampling
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute computation of blobs on input eopatch", " :param eopatch: Input eopatch\n :type eopatch: eolearn.core.EOPatch\n :return: EOPatch instance with new key holding the blob image.\n :rtype: eolearn.core.EOPatch\n<END>", "<BEGIN>\n## `_check_classifier`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _upsampling API. 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 _upsampling API. 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...
Upsample the low-resolution array to the original high-resolution grid :param lr_array: Low-resolution array to be upsampled :param rescale: Rescale factor for rows/columns :param reference_shape: Original size of high-resolution eopatch. Tuple with dimension for time, height and ...
"Upsample the low-resolution array to the original high-resolution grid\n\n :param lr_array: Low-resolution array to be upsampled\n :param rescale: Rescale factor for rows/columns\n :param reference_shape: Original size of high-resolution eopatch. Tuple with dimension for time, height and\n ...
453
false
sentinel-hub/eo-learn
_upsampling
17,676
LDU_FT/google/textfsm/_AppendRecord
LDU_FT
[ "<BEGIN>\n## `_SetValues`", "Set values from supplied dictionary or list.", " Args:\n values: A Row, dict indexed by column name, or list.", " Raises:\n TypeError: Argument is not a list or dict, or list is not equal row\n length or dictionary keys don't match.\n<END>", "<BEGIN>\n## `Fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _AppendRecord API. 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 _AppendRecord API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Adds current record to result if well formed.
"Adds current record to result if well formed."
149
false
google/textfsm
_AppendRecord
17,677
LDU_FT/sloria/doitlive/run
LDU_FT
[ "<BEGIN>\n## `run`", "Main function for \"magic-running\" a list of commands.\n<END>", "<BEGIN>\n## `completion`", "Output completion (to be eval'd).", " For bash or zsh, add the following to your .bashrc or .zshrc:", " eval \"$(doitlive completion)\"", " For fish, add the following to ~/.c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Main function for "magic-running" a list of commands.
"Main function for \"magic-running\" a list of commands."
31
false
sloria/doitlive
run
17,678
LDU_FT/buguroo/pyknow/worth
LDU_FT
[ "<BEGIN>\n## `changes`", "Pass the given changes to the root_node.\n<END>", "<BEGIN>\n## `build_alpha_part`", "Given a set of already adapted rules, build the alpha part of\n the RETE network starting at `root_node`.\n<END>", "<BEGIN>\n## `build_beta_part`", "Given a set of already adapted rules, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the worth API. 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 worth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns `True` if the watcher `what` would log under `level_name`.
"Returns `True` if the watcher `what` would log under `level_name`."
78
false
buguroo/pyknow
worth
17,679
LDU_FT/msmbuilder/msmbuilder/gather_metadata
LDU_FT
[ "<BEGIN>\n## `fraction_visited`", "Calculate the fraction of times a walker on `tprob` going from `sources`\n to `sinks` will travel through the set of states `waypoints` en route.", " Computes the conditional committors q^{ABC^+} and uses them to find the\n fraction of paths mentioned above.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gather_metadata API. 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 gather_metadata API. 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...
Given a glob and a parser object, create a metadata dataframe. Parameters ---------- fn_glob : str Glob string to find trajectory files. parser : descendant of _Parser Object that handles conversion of filenames to metadata rows.
"Given a glob and a parser object, create a metadata dataframe.\n\n Parameters\n ----------\n fn_glob : str\n Glob string to find trajectory files.\n parser : descendant of _Parser\n Object that handles conversion of filenames to metadata rows."
721
false
msmbuilder/msmbuilder
gather_metadata
17,680
LDU_FT/treethought/flask-assistant/app_intents
LDU_FT
[ "<BEGIN>\n## `build_item`", "Builds an item that may be added to List or Carousel\n<END>", "<BEGIN>\n## `suggest`", "Use suggestion chips to hint at responses to continue or pivot the conversation\n<END>", "<BEGIN>\n## `link_out`", "Presents a chip similar to suggestion, but instead links to a url\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the app_intents API. 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 app_intents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a list of Intent objects created from the assistant's acion functions
"Returns a list of Intent objects created from the assistant's acion functions"
65
false
treethought/flask-assistant
app_intents
17,681
LDU_FT/qiniu/python-sdk/delete_after_days
LDU_FT
[ "<BEGIN>\n## `execute`", "执行持久化处理:", " Args:\n key: 待处理的源文件\n fops: 处理详细操作,规格详见 https://developer.qiniu.com/dora/manual/1291/persistent-data-processing-pfop\n force: 强制执行持久化处理开关", " Returns:\n 一个dict变量,返回持久化处理的persistentId,类似{\"persistentId\": 54...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_after_days API. 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 delete_after_days API. 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: 一个dict变量,返回结果类似: [ { "code": <HttpCode int>, "data": <Data> }, { "code": <HttpCode int> }, { "code": <HttpCode int> }, { "code": <HttpCode int> }, { "code": <HttpCod...
"更新文件生命周期\n\n Returns:\n 一个dict变量,返回结果类似:\n [\n { \"code\": <HttpCode int>, \"data\": <Data> },\n { \"code\": <HttpCode int> },\n { \"code\": <HttpCode int> },\n { \"code\": <HttpCode int> },\n ...
337
false
qiniu/python-sdk
delete_after_days
17,682
LDU_FT/mattharrison/rst2odp/get_node
LDU_FT
[ "<BEGIN>\n## `adjust_fit`", "given a x and y of dest, determine the ratio and return\n an (x,y,w,h) for a fitted image (note x or y could be neg).\n >>> adjust_fit(4,3,5,5)\n (0.5, 0, 3.0, 3.0)\n >>> adjust_fit(8,6,5,5)\n (1.0, 0, 6.0, 6.0)\n >>> adjust_fit(4,3,5,2)\n (0, 0.69999999999999996,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
return etree Element representing this slide
"return etree Element representing this slide"
50
false
mattharrison/rst2odp
get_node
17,683
LDU_FT/eleme/meepo/session_commit
LDU_FT
[ "<BEGIN>\n## `zmq_sub`", "0mq fanout sub.", " This sub will use zeromq to fanout the events.", " :param bind: the zmq pub socket or zmq device socket.\n :param tables: the events of tables to follow.\n :param forwarder: set to True if zmq pub to a forwarder device.\n :param green: weather to us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the session_commit API. 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 session_commit API. 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...
Pub the events after the session committed. This method should be linked to sqlalchemy "after_commit" event.
"Pub the events after the session committed.\n\n This method should be linked to sqlalchemy \"after_commit\" event."
110
false
eleme/meepo
session_commit
17,684
LDU_FT/bulkan/robotframework-requests/create_client_cert_session
LDU_FT
[ "<BEGIN>\n## `_create_session`", "Create Session: create a HTTP session to a server", " ``url`` Base url of the server", " ``alias`` Robot Framework alias to identify the session", " ``headers`` Dictionary of default headers", " ``cookies`` Dictionary of cookies", " ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_client_cert_session 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 create_client_cert_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Create Session: create a HTTP session to a server ``url`` Base url of the server ``alias`` Robot Framework alias to identify the session ``headers`` Dictionary of default headers ``cookies`` Dictionary of cookies ``client_certs`` ['client certificate', 'client key'] PEM file...
"Create Session: create a HTTP session to a server\n\n ``url`` Base url of the server\n\n ``alias`` Robot Framework alias to identify the session\n\n ``headers`` Dictionary of default headers\n\n ``cookies`` Dictionary of cookies\n\n ``client_certs`` ['client certificate', 'client key...
151
false
bulkan/robotframework-requests
create_client_cert_session
17,685
LDU_FT/rpcope1/PythonConfluenceAPI/request_patch
LDU_FT
[ "<BEGIN>\n## `request_patch`", "Maintains the existing api for Session.request.\n Used by all of the higher level methods, e.g. Session.get.\n The background_callback param allows you to do some processing on the\n response in the background, e.g. call resp.json() so that json parsing\n happens in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_patch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_patch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Maintains the existing api for Session.request. Used by all of the higher level methods, e.g. Session.get. The background_callback param allows you to do some processing on the response in the background, e.g. call resp.json() so that json parsing happens in the background thread.
"Maintains the existing api for Session.request.\n Used by all of the higher level methods, e.g. Session.get.\n The background_callback param allows you to do some processing on the\n response in the background, e.g. call resp.json() so that json parsing\n happens in the background thread."
140
false
rpcope1/PythonConfluenceAPI
request_patch
17,686
LDU_FT/glomex/gcdt/get_base_ami
LDU_FT
[ "<BEGIN>\n## `list_functions`", "List the deployed lambda functions and print configuration.", " :return: exit_code\n<END>", "<BEGIN>\n## `deploy_lambda`", "Create or update a lambda function.", " :param awsclient:\n :param function_name:\n :param role:\n :param handler_filename:\n :para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_base_ami API. 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_base_ami API. 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...
DEPRECATED!!! return the latest version of our base AMI we can't use tags for this, so we have only the name as resource note: this functionality is deprecated since this only works for "old" baseami.
"DEPRECATED!!!\n return the latest version of our base AMI\n we can't use tags for this, so we have only the name as resource\n note: this functionality is deprecated since this only works for \"old\"\n baseami."
301
false
glomex/gcdt
get_base_ami
17,687
LDU_FT/maxweisspoker/simplebitcoinfuncs/sign
LDU_FT
[ "<BEGIN>\n## `sign`", "Returns a DER-encoded signature from a input of a hash and private\n key, and optionally a K value.", " Hash and private key inputs must be 64-char hex strings,\n k input is an int/long.", " >>> h = 'f7011e94125b5bba7f62eb25efe23339eb1637539206c87df3ee61b5ec6b023e'\n >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign API. 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 sign API. 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...
Returns a DER-encoded signature from a input of a hash and private key, and optionally a K value. Hash and private key inputs must be 64-char hex strings, k input is an int/long. >>> h = 'f7011e94125b5bba7f62eb25efe23339eb1637539206c87df3ee61b5ec6b023e' >>> p = 'c05694a7af0e01dceb63e5912a415c28d3f...
"Returns a DER-encoded signature from a input of a hash and private\n key, and optionally a K value.\n\n Hash and private key inputs must be 64-char hex strings,\n k input is an int/long.\n\n >>> h = 'f7011e94125b5bba7f62eb25efe23339eb1637539206c87df3ee61b5ec6b023e'\n >>> p = 'c05694a7af0e01dceb63e5912a4...
91
false
maxweisspoker/simplebitcoinfuncs
sign
17,688
LDU_FT/Parsl/libsubmit/status
LDU_FT
[ "<BEGIN>\n## `_status`", "Internal: Do not call. Returns the status list for a list of job_ids", " Args:\n self", " Returns:\n [status...] : Status list of all jobs\n<END>", "<BEGIN>\n## `submit`", "Submits the command onto an Local Resource Manager job of blocksize...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. 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 status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get the status of a list of jobs identified by their ids. Parameters ---------- job_ids : list of str Identifiers for the jobs. Returns ------- list of int Status codes for each requested job.
"Get the status of a list of jobs identified by their ids.\n\n Parameters\n ----------\n job_ids : list of str\n Identifiers for the jobs.\n\n Returns\n -------\n list of int\n Status codes for each requested job."
99
false
Parsl/libsubmit
status
17,689
LDU_FT/CTPUG/wafer/find_non_contiguous
LDU_FT
[ "<BEGIN>\n## `build_object`", "Override django-bakery to skip profiles that raise 404\n<END>", "<BEGIN>\n## `generate_schedule`", "Helper function which creates an ordered list of schedule days\n<END>", "<BEGIN>\n## `get_context_data`", "Allow adding a 'render_description' parameter\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_non_contiguous 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_non_contiguous 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...
Find any items that have slots that aren't contiguous
"Find any items that have slots that aren't contiguous"
72
false
CTPUG/wafer
find_non_contiguous
17,690
LDU_FT/ambitioninc/newrelic-api/list
LDU_FT
[ "<BEGIN>\n## `update`", "Updates any of the optional parameters of the alert condition nrql", " :type alert_condition_nrql_id: int\n :param alert_condition_nrql_id: Alerts condition NRQL id to update", " :type policy_id: int\n :param policy_id: Alert policy id where target alert co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extracted do...
:type filter_title: str :param filter_title: Filter by dashboard title :type filter_ids: list of ints :param filter_ids: Filter by dashboard ids :type page: int :param page: Pagination index :rtype: dict :return: The JSON response of the API, with an additional...
":type filter_title: str\n :param filter_title: Filter by dashboard title\n\n :type filter_ids: list of ints\n :param filter_ids: Filter by dashboard ids\n\n :type page: int\n :param page: Pagination index\n\n :rtype: dict\n :return: The JSON response of the API, with an...
299
false
ambitioninc/newrelic-api
list
17,691
LDU_FT/cronofy/pycronofy/validate
LDU_FT
[ "<BEGIN>\n## `format_event_time`", "Accepts either an ISO 8601 string, a dict with a time and tzid OR a datetime object.\n Must be in UTC format:", " 2016-01-31T12:33:00Z\n 2016-01-31T12:33:00UTC\n 2016-01-31T12:33:00+00:00", " https://en.wikipedia.org/wiki/ISO_8601", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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...
Validate a method based on the METHOD_RULES above. Raises a PyCronofyValidationError on error. :param string method: Method being validated. :param Auth auth: Auth instance. :param *args: Positional arguments for method. :param **kwargs: Keyword arguments for method.
"Validate a method based on the METHOD_RULES above.\n\n Raises a PyCronofyValidationError on error.\n\n :param string method: Method being validated.\n :param Auth auth: Auth instance.\n :param *args: Positional arguments for method.\n :param **kwargs: Keyword arguments for method."
111
false
cronofy/pycronofy
validate
17,692
LDU_FT/jhermann/rudiments/serror
LDU_FT
[ "<BEGIN>\n## `auth_pair`", "Return username/password tuple, possibly prompting the user for them.\n<END>", "<BEGIN>\n## `_get_auth`", "Try to get login auth from known sources.\n<END>", "<BEGIN>\n## `_get_auth_from_keyring`", "Try to get credentials using `keyring <https://github.com/jaraco/keyring>`_.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serror API. 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 serror API. 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 ...
Print a styled error message, while using any arguments to format the message.
"Print a styled error message, while using any arguments to format the message."
59
false
jhermann/rudiments
serror
17,693
LDU_FT/gtsystem/parallelpipe/set_in
LDU_FT
[ "<BEGIN>\n## `iterqueue`", "Iterate all value from the queue until the ``expected`` number of EXIT elements is\n received\n<END>", "<BEGIN>\n## `set_in`", "Set the queue in input and the number of parallel tasks that send inputs\n<END>", "<BEGIN>\n## `set_out`", "Set the queue in output and the number ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_in API. 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 set_in API. 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 ...
Set the queue in input and the number of parallel tasks that send inputs
"Set the queue in input and the number of parallel tasks that send inputs"
18
false
gtsystem/parallelpipe
set_in
17,694
LDU_FT/CamDavidsonPilon/lifelines/_concordance_summary_statistics
LDU_FT
[ "<BEGIN>\n## `right_censor_lifetimes`", "Right censor the deaths, uniformly\n lifetimes: (n,) array of positive random variables\n max_: the max time a censorship can occur\n min_: the min time a censorship can occur", " Returns\n The actual observations including uniform right censoring,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _concordance_summary_statistics 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 _concordance_summary_statistics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Find the concordance index in n * log(n) time. Assumes the data has been verified by lifelines.utils.concordance_index first.
"Find the concordance index in n * log(n) time.\n\n Assumes the data has been verified by lifelines.utils.concordance_index first."
603
false
CamDavidsonPilon/lifelines
_concordance_summary_statistics
17,695
LDU_FT/google/pyu2f/ReadLsbBytes
LDU_FT
[ "<BEGIN>\n## `ToByteArray`", "Serialize the command.", " Encodes the command as per the U2F specs, using the standard\n ISO 7816-4 extended encoding. All Commands expect data, so\n Le is always present.", " Returns:\n Python bytearray of the encoded command.\n<END>", "<BEGIN>\n## `_BuildPl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ReadLsbBytes API. 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 ReadLsbBytes API. 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...
Reads value_size bytes from rd at offset, least signifcant byte first.
"Reads value_size bytes from rd at offset, least signifcant byte first."
95
false
google/pyu2f
ReadLsbBytes
17,696
LDU_FT/yjzhang/uncurl_python/poisson_estimate_state
LDU_FT
[ "<BEGIN>\n## `_create_m_objective`", "Creates an objective function and its derivative for M, given W and X", " Args:\n w (array): clusters x cells\n X (array): genes x cells\n<END>", "<BEGIN>\n## `initialize_from_assignments`", "Creates a weight initialization matrix from Poisson clusterin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the poisson_estimate_state 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 poisson_estimate_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Uses a Poisson Covex Mixture model to estimate cell states and cell state mixing weights. To lower computational costs, use a sparse matrix, set disp to False, and set tol to 0. Args: data (array): genes x cells array or sparse matrix. clusters (int): number of mixture components i...
"Uses a Poisson Covex Mixture model to estimate cell states and\n cell state mixing weights.\n\n To lower computational costs, use a sparse matrix, set disp to False, and set tol to 0.\n\n Args:\n data (array): genes x cells array or sparse matrix.\n clusters (int): number of mixture components\n...
265
false
yjzhang/uncurl_python
poisson_estimate_state
17,697
LDU_FT/mushkevych/synergy_odm/validate
LDU_FT
[ "<BEGIN>\n## `validate`", "Performs validation of the value.\n :param value: value to validate\n :raise ValidationError if the value is invalid\n<END>", "<BEGIN>\n## `validate`", "Make sure that value is of the right type\n<END>", "<BEGIN>\n## `validate`", "Make sure that the inspected value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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...
Performs validation of the value. :param value: value to validate :raise ValidationError if the value is invalid
"Performs validation of the value.\n :param value: value to validate\n :raise ValidationError if the value is invalid"
12
false
mushkevych/synergy_odm
validate
17,698
LDU_FT/lins05/slackbot/direct_reply
LDU_FT
[ "<BEGIN>\n## `to_utf8`", "Convert a string to utf8. If the argument is an iterable\n (list/tuple/set), then each element of it would be converted instead.", " >>> to_utf8('a')\n 'a'\n >>> to_utf8(u'a')\n 'a'\n >>> to_utf8([u'a', u'b', u'\\u4f60'])\n ['a', 'b', '\\\\xe4\\\\xbd\\\\xa0']\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the direct_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the direct_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 extr...
Send a reply via direct message using RTM API
"Send a reply via direct message using RTM API"
26
false
lins05/slackbot
direct_reply
17,699
LDU_FT/jeroyang/txttk/is_solid
LDU_FT
[ "<BEGIN>\n## `from_scale`", "deprecated, for backward compactbility\n try to use from_score\n<END>", "<BEGIN>\n## `condense`", "Given multiple strings, returns a compressed regular expression just\n for these strings", " >>> condense(['she', 'he', 'her', 'hemoglobin'])\n 'he(moglobin|r)?|she...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_solid API. 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 is_solid API. 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...
Check the given regular expression is solid. >>> is_solid(r'a') True >>> is_solid(r'[ab]') True >>> is_solid(r'(a|b|c)') True >>> is_solid(r'(a|b|c)?') True >>> is_solid(r'(a|b)(c)') False >>> is_solid(r'(a|b)(c)?') False
"Check the given regular expression is solid.\n\n >>> is_solid(r'a')\n True\n >>> is_solid(r'[ab]')\n True\n >>> is_solid(r'(a|b|c)')\n True\n >>> is_solid(r'(a|b|c)?')\n True\n >>> is_solid(r'(a|b)(c)')\n False\n >>> is_solid(r'(a|b)(c)?')\n False"
49
false
jeroyang/txttk
is_solid
17,700
LDU_FT/ContextLab/hypertools/check_geo
LDU_FT
[ "<BEGIN>\n## `default_params`", "Loads and updates default model parameters", " Parameters\n ----------", " model : str\n The name of a model", " update_dict : dict\n A dict to update default parameters", " Returns\n ----------", " params : dict\n A dictionary o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_geo API. 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 check_geo API. 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...
Checks a geo and makes sure the text fields are not binary
"Checks a geo and makes sure the text fields are not binary"
239
false
ContextLab/hypertools
check_geo
17,701
LDU_FT/bear/parsedatetime/_partialParseDateStd
LDU_FT
[ "<BEGIN>\n## `_parse_date_rfc822`", "Parse an RFC822, RFC1123, RFC2822, or asctime-style date\n<END>", "<BEGIN>\n## `_initSymbols`", "Initialize symbols and single character constants.\n<END>", "<BEGIN>\n## `_convertUnitAsWords`", "Converts text units into their number value.", " @type unitText:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _partialParseDateStd 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 _partialParseDateStd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
test if giving C{s} matched CRE_DATE, used by L{parse()} @type s: string @param s: date/time text to evaluate @type sourceTime: struct_time @param sourceTime: C{struct_time} value to use as the base @rtype: tuple @return: tuple of remained date/time...
"test if giving C{s} matched CRE_DATE, used by L{parse()}\n\n @type s: string\n @param s: date/time text to evaluate\n @type sourceTime: struct_time\n @param sourceTime: C{struct_time} value to use as the base\n\n @rtype: tuple\n @return: tuple of remained ...
131
false
bear/parsedatetime
_partialParseDateStd
17,702
LDU_FT/MSchnei/pyprf_feature/crtPwBoxCarFn
LDU_FT
[ "<BEGIN>\n## `pyprf`", "Main function for pRF mapping.", " Parameters\n ----------\n strCsvCnfg : str\n Absolute file path of config file.\n lgcTest : Boolean\n Whether this is a test (pytest). If yes, absolute path of pyprf libary\n will be prepended to config file paths.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crtPwBoxCarFn API. 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 crtPwBoxCarFn API. 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 pixel-wise boxcar functions. Parameters ---------- input1 : 2d numpy array, shape [n_samples, n_measurements] Description of input 1. input2 : float, positive Description of input 2. Returns ------- data : 2d numpy array, shape [n_samples, n_measurements] Closed...
"Create pixel-wise boxcar functions.\n\n Parameters\n ----------\n input1 : 2d numpy array, shape [n_samples, n_measurements]\n Description of input 1.\n input2 : float, positive\n Description of input 2.\n Returns\n -------\n data : 2d numpy array, shape [n_samples, n_measurements]\n ...
266
false
MSchnei/pyprf_feature
crtPwBoxCarFn
17,703
LDU_FT/ClimateImpactLab/DataFS/bump
LDU_FT
[ "<BEGIN>\n## `_generate_manager`", "Generate a manager from a manager_config dictionary", " Parameters\n ----------", " manager_config : dict\n Configuration with keys class, args, and kwargs\n used to generate a new datafs.manager object", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bump API. 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 bump API. 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...
Increment the version and/or pre-release value Parameters ---------- kind : str Increment the version. Can be ``major``, ``minor``, or ``patch``, corresponding to the three segments of the version number (in order). A value of ``None`` will not increment the...
"Increment the version and/or pre-release value\n\n Parameters\n ----------\n\n kind : str\n Increment the version. Can be ``major``, ``minor``, or ``patch``,\n corresponding to the three segments of the version number (in\n order). A value of ``None`` will not incr...
318
false
ClimateImpactLab/DataFS
bump
17,704
LDU_FT/imjoey/pyhaproxy/build_configuration
LDU_FT
[ "<BEGIN>\n## `build_configuration`", "Parse the haproxy config file", " Raises:\n Exception: when there are unsupported section", " Returns:\n config.Configuration: haproxy config object\n<END>", "<BEGIN>\n## `build_global`", "parse `global` section, and return the conf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_configuration 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 build_configuration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Parse the haproxy config file Raises: Exception: when there are unsupported section Returns: config.Configuration: haproxy config object
"Parse the haproxy config file\n\n Raises:\n Exception: when there are unsupported section\n\n Returns:\n config.Configuration: haproxy config object"
35
false
imjoey/pyhaproxy
build_configuration
17,705
LDU_FT/hharnisc/python-meteor/find_one
LDU_FT
[ "<BEGIN>\n## `_reconnected`", "Reconnect", " Currently we get a new session every time so we have\n to clear all the data an resubscribe\n<END>", "<BEGIN>\n## `login`", "Login with a username and password", " Arguments:\n user - username or email address\n password - the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_one API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_one API. 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 one item from a collection Arguments: collection - collection to search Keyword Arguments: selector - the query (default returns first item found)
"Return one item from a collection\n\n Arguments:\n collection - collection to search\n\n Keyword Arguments:\n selector - the query (default returns first item found)"
40
false
hharnisc/python-meteor
find_one
17,706
LDU_FT/torfsen/service/start
LDU_FT
[ "<BEGIN>\n## `_detach_process`", "Detach daemon process.", " Forks the current process into a parent and a detached child. The\n child process resides in its own process group, has no controlling\n terminal attached and is cleaned up by the init process.", " Returns ``True`` for the parent and ``F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Start the daemon process. The daemon process is started in the background and the calling process returns. Once the daemon process is initialized it calls the :py:meth:`run` method. If ``block`` is true then the call blocks until the daemon process has started. ``block...
"Start the daemon process.\n\n The daemon process is started in the background and the calling\n process returns.\n\n Once the daemon process is initialized it calls the\n :py:meth:`run` method.\n\n If ``block`` is true then the call blocks until the daemon\n process has starte...
40
false
torfsen/service
start
17,707
LDU_FT/475Cumulus/TBone/to_data
LDU_FT
[ "<BEGIN>\n## `request_args`", "Returns the arguments passed with the request in a dictionary.\n Returns both URL resolved arguments and query string arguments.\n<END>", "<BEGIN>\n## `connect`", "Connects a signal to a receiver function", " :param receiver:\n The callback function wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted...
Coerce python data type to simple form for serialization. If default value was defined returns the default value if None was passed. Throw exception is value is ``None`` is ``required`` is set to ``True``
"Coerce python data type to simple form for serialization.\n If default value was defined returns the default value if None was passed.\n Throw exception is value is ``None`` is ``required`` is set to ``True``"
100
false
475Cumulus/TBone
to_data
17,708
LDU_FT/amoffat/sh/encode_to_py3bytes_or_py2str
LDU_FT
[ "<BEGIN>\n## `encode_to_py3bytes_or_py2str`", "takes anything and attempts to return a py2 string or py3 bytes. this\n is typically used when creating command + arguments to be executed via\n os.exec*\n<END>", "<BEGIN>\n## `get_exc_from_name`", "takes an exception name, like:", " ErrorReturnCo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_to_py3bytes_or_py2str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_to_py3bytes_or_py2str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
takes anything and attempts to return a py2 string or py3 bytes. this is typically used when creating command + arguments to be executed via os.exec*
"takes anything and attempts to return a py2 string or py3 bytes. this\n is typically used when creating command + arguments to be executed via\n os.exec*"
83
false
amoffat/sh
encode_to_py3bytes_or_py2str
17,709
LDU_FT/senaite/senaite.jsonapi/disable_csrf_protection
LDU_FT
[ "<BEGIN>\n## `get`", "Get a JSON compatible structure for the named attribute\n<END>", "<BEGIN>\n## `json_data`", "Get a JSON compatible value of the field\n<END>", "<BEGIN>\n## `set`", "Set the attribute to the given value.", " The keyword arguments represent the other attribute values\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable_csrf_protection 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 disable_csrf_protection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
disables the CSRF protection https://pypi.python.org/pypi/plone.protect
"disables the CSRF protection\n https://pypi.python.org/pypi/plone.protect"
205
false
senaite/senaite.jsonapi
disable_csrf_protection
17,710
LDU_FT/kylef/maintain/run
LDU_FT
[ "<BEGIN>\n## `detected_releasers`", "Returns all of the releasers that are compatible with the project.\n<END>", "<BEGIN>\n## `check_version_consistency`", "Determine if any releasers have inconsistent versions\n<END>", "<BEGIN>\n## `gather_repositories`", "Collects all of the repositories. The current im...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Runs given command on all repos and checks status $ maintain repo run -- git checkout master
"Runs given command on all repos and checks status\n\n $ maintain repo run -- git checkout master"
11
false
kylef/maintain
run
17,711
LDU_FT/invoice-x/invoice2data/write_to_file
LDU_FT
[ "<BEGIN>\n## `to_text`", "Wraps Tesseract 4 OCR with custom language model.", " Parameters\n ----------\n path : str\n path of electronic invoice in JPG or PNG format", " Returns\n -------\n extracted_str : str\n returns extracted text from image in JPG or PNG format\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_to_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 write_to_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...
Export extracted fields to json Appends .json to path if missing and generates json file in specified directory, if not then in root Parameters ---------- data : dict Dictionary of extracted fields path : str directory to save generated json file Notes ---- Do give fil...
"Export extracted fields to json\n\n Appends .json to path if missing and generates json file in specified directory, if not then in root\n\n Parameters\n ----------\n data : dict\n Dictionary of extracted fields\n path : str\n directory to save generated json file\n\n Notes\n ----\n ...
69
false
invoice-x/invoice2data
write_to_file
17,712
LDU_FT/ppb/pursuedpybear/on_stop_scene
LDU_FT
[ "<BEGIN>\n## `on_start_scene`", "Start a new scene. The current scene pauses.\n<END>", "<BEGIN>\n## `on_stop_scene`", "Stop a running scene. If there's a scene on the stack, it resumes.\n<END>", "<BEGIN>\n## `on_replace_scene`", "Replace the running scene with a new one.\n<END>", "<BEGIN>\n## `register`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_stop_scene API. 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 on_stop_scene API. 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...
Stop a running scene. If there's a scene on the stack, it resumes.
"Stop a running scene. If there's a scene on the stack, it resumes."
53
false
ppb/pursuedpybear
on_stop_scene
17,713
LDU_FT/Microsoft/malmo/updateQTable
LDU_FT
[ "<BEGIN>\n## `angvel`", "Use sigmoid function to choose a delta that will help smoothly steer from current angle to target angle.\n<END>", "<BEGIN>\n## `pointTo`", "Steer towards the target pitch/yaw, return True when within the given tolerance threshold.\n<END>", "<BEGIN>\n## `download`", "Download Malmo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updateQTable API. 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 updateQTable API. 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...
Change q_table to reflect what we have learnt.
"Change q_table to reflect what we have learnt."
80
false
Microsoft/malmo
updateQTable
17,714
LDU_FT/alorence/pysvg-py3/convertTupleArrayToPoints
LDU_FT
[ "<BEGIN>\n## `getAllElementsOfHirarchy`", "returns ALL elements of the complete hirarchy as a flat list\n<END>", "<BEGIN>\n## `getElementByID`", "returns an element with the specific id and the position of that element within the svg elements array\n<END>", "<BEGIN>\n## `getElementsByType`", "retrieves al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convertTupleArrayToPoints 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 convertTupleArrayToPoints API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Method used to convert an array of tuples (x,y) into a string suitable for createPolygon or createPolyline @type arrayOfPointTuples: An array containing tuples eg.[(x1,y1),(x2,y2] @param arrayOfPointTuples: All points needed to create the shape @return a string in the form "x1,y1 x2,y2...
"Method used to convert an array of tuples (x,y) into a string\n suitable for createPolygon or createPolyline\n @type arrayOfPointTuples: An array containing tuples eg.[(x1,y1),(x2,y2]\n @param arrayOfPointTuples: All points needed to create the shape\n @return a string in the form \"x1,y1...
75
false
alorence/pysvg-py3
convertTupleArrayToPoints
17,715
LDU_FT/shaunduncan/smokesignal/clear
LDU_FT
[ "<BEGIN>\n## `install_twisted`", "If twisted is available, make `emit' return a DeferredList", " This has been successfully tested with Twisted 14.0 and later.\n<END>", "<BEGIN>\n## `emit`", "Emits a single signal to call callbacks registered to respond to that signal.\n Optionally accepts args and kw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. 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 clear API. 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...
Clears all callbacks for a particular signal or signals
"Clears all callbacks for a particular signal or signals"
24
false
shaunduncan/smokesignal
clear
17,716
LDU_FT/CodeReclaimers/neat-python/plot_stats
LDU_FT
[ "<BEGIN>\n## `eval_genome`", "This function will be run in parallel by ParallelEvaluator. It takes two\n arguments (a single genome and the genome class configuration data) and\n should return one float (that genome's fitness).", " Note that this function needs to be in module scope for multiprocessin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_stats API. 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 plot_stats API. 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...
Plots the population's average and best fitness.
"Plots the population's average and best fitness."
121
false
CodeReclaimers/neat-python
plot_stats
17,717
LDU_FT/eventbrite/eventbrite-sdk-python/delete_tracking_beacon
LDU_FT
[ "<BEGIN>\n## `objectify`", "Converts the returned value from a models.Payload to\n a models.EventbriteObject. Used by the access methods\n of the client.Eventbrite object\n<END>", "<BEGIN>\n## `get_category`", "GET /categories/:id/\n Gets a :format:`category` by ID as ``category``.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_tracking_beacon 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 delete_tracking_beacon API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
DELETE /tracking_beacons/:tracking_beacons_id/ Delete the :format:`tracking_beacons` with the specified :tracking_beacons_id.
"DELETE /tracking_beacons/:tracking_beacons_id/\n Delete the :format:`tracking_beacons` with the specified :tracking_beacons_id."
194
false
eventbrite/eventbrite-sdk-python
delete_tracking_beacon
17,718
LDU_FT/couchbase/couchbase-python-client/design_list
LDU_FT
[ "<BEGIN>\n## `set_json_converters`", "Modify the default JSON conversion functions. This affects all\n :class:`~couchbase.bucket.Bucket` instances.", " These functions will called instead of the default ones (``json.dumps``\n and ``json.loads``) to encode and decode JSON (when :const:`FMT_JSON` is\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the design_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. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the design_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. The extra...
List all design documents for the current bucket. :return: A :class:`~couchbase.result.HttpResult` containing a dict, with keys being the ID of the design document. .. note:: This information is derived using the ``pools/default/buckets/<bucket>ddocs`` endpoint, bu...
"List all design documents for the current bucket.\n\n :return: A :class:`~couchbase.result.HttpResult` containing\n a dict, with keys being the ID of the design document.\n\n .. note::\n\n This information is derived using the\n ``pools/default/buckets/<bucket>ddocs`` end...
806
false
couchbase/couchbase-python-client
design_list
17,719
LDU_FT/cstatz/maui/__rmath
LDU_FT
[ "<BEGIN>\n## `slice_local_to_global`", "Calculate start and stop index for mapping sliced index", " :param index_slice: sliced index?\n :param axis: current axis to calculate\n :return: slice object as calculated\n<END>", "<BEGIN>\n## `local_to_global`", "Calculate local index from glob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __rmath API. 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 __rmath API. 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...
reverse operator function :param f: operator.add/sub/mul... used operator :param x: other object field should be add/sub... with :return: dictionary (same shape as field.d) with result of operation
"reverse operator function\n :param f: operator.add/sub/mul... used operator\n :param x: other object field should be add/sub... with\n :return: dictionary (same shape as field.d) with result of operation"
54
false
cstatz/maui
__rmath
17,720
LDU_FT/utiasSTARS/pykitti/read_calib_file
LDU_FT
[ "<BEGIN>\n## `to_array_list`", "Converts a dataframe to a list of arrays, with one array for every unique index entry.\n Index is assumed to be 0-based contiguous. If there is a missing index entry, an empty\n numpy array is returned for it.\n Elements in the arrays are sorted by their id.\n :param df...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_calib_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_calib_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 e...
Read in a calibration file and parse into a dictionary.
"Read in a calibration file and parse into a dictionary."
25
false
utiasSTARS/pykitti
read_calib_file
17,721
LDU_FT/leonidessaguisagjr/unicodeutil/_unichr
LDU_FT
[ "<BEGIN>\n## `preservesurrogates`", "Function for splitting a string into a list of characters, preserving surrogate pairs.", " In python 2, unicode characters above 0x10000 are stored as surrogate pairs. For example, the Unicode character\n u\"\\U0001e900\" is stored as the surrogate pair u\"\\ud83a\\ud...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unichr API. 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 _unichr API. 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...
Helper function for taking a Unicode scalar value and returning a Unicode character. :param s: Unicode scalar value to convert. :return: Unicode character
"Helper function for taking a Unicode scalar value and returning a Unicode character.\n\n :param s: Unicode scalar value to convert.\n :return: Unicode character"
86
false
leonidessaguisagjr/unicodeutil
_unichr
17,722
LDU_FT/Azure/azure-kusto-python/_execute
LDU_FT
[ "<BEGIN>\n## `ingest_from_dataframe`", "Enqueuing an ingest command from local files.\n :param pandas.DataFrame df: input dataframe to ingest.\n :param azure.kusto.ingest.IngestionProperties ingestion_properties: Ingestion properties.\n<END>", "<BEGIN>\n## `ingest_from_file`", "Enqueuing an inge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Executes given query against this client
"Executes given query against this client"
40
false
Azure/azure-kusto-python
_execute
17,723
LDU_FT/GoogleCloudPlatform/appengine-pipelines/fill_slot
LDU_FT
[ "<BEGIN>\n## `_get_task_target`", "Get the default target for a pipeline task.", " Current version id format is: user_defined_version.minor_version_number\n Current module id is just the module's name. It could be \"default\"", " Returns:\n A complete target name is of format version.module. If module i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_slot API. 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 fill_slot API. 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...
Fills a slot, enqueueing a task to trigger pending barriers. Args: filler_pipeline_key: db.Key or stringified key of the _PipelineRecord that filled this slot. slot: The Slot instance to fill. value: The serializable value to assign. Raises: UnexpectedPipelineError if the _Slot...
"Fills a slot, enqueueing a task to trigger pending barriers.\n\n Args:\n filler_pipeline_key: db.Key or stringified key of the _PipelineRecord\n that filled this slot.\n slot: The Slot instance to fill.\n value: The serializable value to assign.\n\n Raises:\n UnexpectedPipelineError if...
222
false
GoogleCloudPlatform/appengine-pipelines
fill_slot
17,724
LDU_FT/Kyria/EsiPy/head
LDU_FT
[ "<BEGIN>\n## `make_cache_key`", "Generate a cache key from request object data\n<END>", "<BEGIN>\n## `check_cache`", "check if a cache fits esipy needs or not\n<END>", "<BEGIN>\n## `get_cache_time_left`", "return the time left in second for an expires header\n<END>", "<BEGIN>\n## `generate_code_verifier...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the head API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the head API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Take a request_and_response object from pyswagger.App, check and prepare everything to make a valid HEAD request :param req_and_resp: the request and response object from pyswagger.App :param opt: options, see pyswagger/blob/master/pyswagger/io.py#L144 :param raise_on_error: boolea...
"Take a request_and_response object from pyswagger.App, check\r\n and prepare everything to make a valid HEAD request\r\n\r\n :param req_and_resp: the request and response object from pyswagger.App\r\n :param opt: options, see pyswagger/blob/master/pyswagger/io.py#L144\r\n :param raise_on_er...
87
false
Kyria/EsiPy
head
17,725
LDU_FT/fred49/argtoolbox/_load
LDU_FT
[ "<BEGIN>\n## `query_yes_no`", "Just prompt the user for a yes/no question\n<END>", "<BEGIN>\n## `_query_yes_no`", "Ask a yes/no question via raw_input() and return their answer.", " \"question\" is a string that is presented to the user.\n \"default\" is the presumed answer if the user just hits <Ente...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
One you have added all your configuration data (Section, Element, ...) you need to load data from the config file.
"One you have added all your configuration data (Section, Element,\n ...) you need to load data from the config file."
46
false
fred49/argtoolbox
_load
17,726
LDU_FT/Skype4Py/Skype4Py/Attach
LDU_FT
[ "<BEGIN>\n## `AsyncSearchUsers`", "Asynchronously searches for Skype users.", " :Parameters:\n Target : unicode\n Search target (name or email address).", " :return: A search identifier. It will be passed along with the results to the\n `SkypeEvents.AsyncSearc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Attach API. 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 Attach API. 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 ...
Establishes a connection to Skype. :Parameters: Protocol : int Minimal Skype protocol version. Wait : bool If set to False, blocks forever until the connection is established. Otherwise, timeouts after the `Timeout`.
"Establishes a connection to Skype.\n\n :Parameters:\n Protocol : int\n Minimal Skype protocol version.\n Wait : bool\n If set to False, blocks forever until the connection is established. Otherwise, timeouts\n after the `Timeout`."
213
false
Skype4Py/Skype4Py
Attach
17,727
LDU_FT/google/transitfeed/_LineWrap
LDU_FT
[ "<BEGIN>\n## `GetClosestPoint`", "Returns the point on the great circle segment ab closest to x.\n<END>", "<BEGIN>\n## `Norm2`", "Returns the L_2 (Euclidean) norm of self.\n<END>", "<BEGIN>\n## `Plus`", "Returns a new point which is the pointwise sum of self and other.\n<END>", "<BEGIN>\n## `Minus`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _LineWrap API. 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 _LineWrap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
A word-wrap function that preserves existing line breaks and most spaces in the text. Expects that existing line breaks are posix newlines (\n). Taken from: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/148061
"A word-wrap function that preserves existing line breaks\n and most spaces in the text. Expects that existing line\n breaks are posix newlines (\\n).\n\n Taken from:\n http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/148061"
708
false
google/transitfeed
_LineWrap
17,728
LDU_FT/bmcfee/pumpp/n_frames
LDU_FT
[ "<BEGIN>\n## `sample`", "Sample a patch from the data object", " Parameters\n ----------\n data : dict\n A data dict as produced by pumpp.Pump.transform", " interval : slice\n The time interval to sample", " Returns\n -------\n data_slic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the n_frames API. 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 n_frames API. 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...
Get the number of frames for a given duration Parameters ---------- duration : number >= 0 The duration, in seconds Returns ------- n_frames : int >= 0 The number of frames at this extractor's sampling rate and hop length
"Get the number of frames for a given duration\n\n Parameters\n ----------\n duration : number >= 0\n The duration, in seconds\n\n Returns\n -------\n n_frames : int >= 0\n The number of frames at this extractor's sampling rate and\n hop length"
291
false
bmcfee/pumpp
n_frames
17,729
LDU_FT/sveetch/djangocodemirror/css
LDU_FT
[ "<BEGIN>\n## `codemirror_settings_update`", "Return a new dictionnary of configs updated with given parameters.", " You may use ``on`` and ``names`` arguments to select config or filter out\n some configs from returned dict.", " Arguments:\n configs (dict): Dictionnary of configurations to upd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the css API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the css API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns all needed CSS filepaths for given config name (if given) or every registred config instead (if no name is given). Keyword Arguments: name (string): Specific config name to use instead of all. Returns: list: List of CSS file paths.
"Returns all needed CSS filepaths for given config name (if\n given) or every registred config instead (if no name is given).\n\n Keyword Arguments:\n name (string): Specific config name to use instead of all.\n\n Returns:\n list: List of CSS file paths."
125
false
sveetch/djangocodemirror
css
17,730
LDU_FT/cdgriffith/Reusables/cut
LDU_FT
[ "<BEGIN>\n## `datetime_format`", "Replaces format style phrases (listed in the dt_exps dictionary)\n with this datetime instance's information.", " .. code :: python", " reusables.datetime_format(\"Hey, it's {month-full} already!\")\n \"Hey, it's March already!\"", " :param desired_fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cut API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cut API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Split a string into a list of N characters each. .. code:: python reusables.cut("abcdefghi") # ['ab', 'cd', 'ef', 'gh', 'i'] trailing gives you the following options: * normal: leaves remaining characters in their own last position * remove: return the list without the remainder char...
"Split a string into a list of N characters each.\n\n .. code:: python\n\n reusables.cut(\"abcdefghi\")\n # ['ab', 'cd', 'ef', 'gh', 'i']\n\n trailing gives you the following options:\n\n * normal: leaves remaining characters in their own last position\n * remove: return the list without the r...
320
false
cdgriffith/Reusables
cut
17,731
LDU_FT/dfm/transit/duration
LDU_FT
[ "<BEGIN>\n## `light_curve`", "Get the light curve evaluated at a list of times using the current\n model.", " :param t:\n The times where the light curve should be evaluated (in days).", " :param tol:\n The stopping criterion for the exposure time integration.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the duration API. 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 duration API. 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...
The approximate duration of the transit :math:`T_\mathrm{tot}` from Equation (14) in Winn (2010).
"The approximate duration of the transit :math:`T_\\mathrm{tot}` from\n Equation (14) in Winn (2010)."
25
false
dfm/transit
duration
17,732
LDU_FT/nsfmc/swatch/chunk_count
LDU_FT
[ "<BEGIN>\n## `chunk_count`", "return the number of byte-chunks in a swatch object", " this recursively walks the swatch list, returning 1 for a single color &\n returns 2 for each folder plus 1 for each color it contains\n<END>", "<BEGIN>\n## `chunk_for_color`", "builds up a byte-chunk for a color", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunk_count API. 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 chunk_count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
return the number of byte-chunks in a swatch object this recursively walks the swatch list, returning 1 for a single color & returns 2 for each folder plus 1 for each color it contains
"return the number of byte-chunks in a swatch object\n\n this recursively walks the swatch list, returning 1 for a single color &\n returns 2 for each folder plus 1 for each color it contains"
25
false
nsfmc/swatch
chunk_count
17,733
LDU_FT/laurencium/Causalinference/_summarize_pscore
LDU_FT
[ "<BEGIN>\n## `reset`", "Reinitializes data to original inputs, and drops any estimated\n\t\tresults.\n<END>", "<BEGIN>\n## `est_propensity`", "Estimates the propensity scores given list of covariates to\n\t\tinclude linearly or quadratically.", "\t\tThe propensity score is the conditional probability of\n\t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _summarize_pscore API. 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 _summarize_pscore API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Called by Strata class during initialization.
"Called by Strata class during initialization."
44
false
laurencium/Causalinference
_summarize_pscore
17,734
LDU_FT/openvax/mhcflurry/get_current_release_downloads
LDU_FT
[ "<BEGIN>\n## `extend`", "Return a new HyperparameterDefaults instance containing the\n hyperparameters from the current instance combined with\n those from other.", " It is an error if self and other have any hyperparameters in\n common.\n<END>", "<BEGIN>\n## `with_defaults`", "G...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_current_release_downloads 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 get_current_release_downloads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Return a dict of all available downloads in the current release. The dict keys are the names of the downloads. The values are a dict with two entries: downloaded : bool Whether the download is currently available locally metadata : dict Info about the download from downloads.yml such ...
"Return a dict of all available downloads in the current release.\n\n The dict keys are the names of the downloads. The values are a dict\n with two entries:\n\n downloaded : bool\n Whether the download is currently available locally\n\n metadata : dict\n Info about the download from downloads...
272
false
openvax/mhcflurry
get_current_release_downloads
17,735
LDU_FT/azraq27/neural/inside_brain
LDU_FT
[ "<BEGIN>\n## `connectivity_map`", "Will perform connectivity analysis on ``dset`` using seed point ``(x,y,z)`` (in RAI order) with a sphere of radius ``radius``.\n Does not perform any preprocessing of ``dset``. This should be already motion corrected, noise-regressed, residualized, etc.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inside_brain API. 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 inside_brain API. 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...
calculates the percentage of voxels above a statistical threshold inside a brain mask vs. outside it if ``atlas`` is ``None``, it will try to find ``TT_N27``
"calculates the percentage of voxels above a statistical threshold inside a brain mask vs. outside it\n \n if ``atlas`` is ``None``, it will try to find ``TT_N27``"
232
false
azraq27/neural
inside_brain
17,736
LDU_FT/fedora-infra/fmn.rules/taskotron_task_outcome
LDU_FT
[ "<BEGIN>\n## `pagure_specific_project_filter`", "Particular pagure projects", " Adding this rule allows you to get notifications for one or more\n `pagure.io <https://pagure.io>`_ projects. Specify multiple\n projects by separating them with a comma ','.\n<END>", "<BEGIN>\n## `pagure_specific_proj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the taskotron_task_outcome 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 taskotron_task_outcome API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Particular taskotron task outcome With this rule, you can limit messages to only those of particular `taskotron <https://taskotron.fedoraproject.org/>`_ task outcome. You can specify several outcomes by separating them with a comma ',', i.e.: ``PASSED,FAILED``. The full list of supported outcomes...
"Particular taskotron task outcome\n\n With this rule, you can limit messages to only those of particular\n `taskotron <https://taskotron.fedoraproject.org/>`_ task outcome.\n\n You can specify several outcomes by separating them with a comma ',',\n i.e.: ``PASSED,FAILED``.\n\n The full list of supported...
95
false
fedora-infra/fmn.rules
taskotron_task_outcome
17,737
LDU_FT/jmoiron/speedparser/_parse_date_perforce
LDU_FT
[ "<BEGIN>\n## `strip_outer_tag`", "Strips the outer tag, if text starts with a tag. Not entity aware;\n designed to quickly strip outer tags from lxml cleaner output. Only\n checks for <p> and <div> outer tags.\n<END>", "<BEGIN>\n## `munge_author`", "If an author contains an email and a name in it, mak...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_date_perforce 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 _parse_date_perforce API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
parse a date in yyyy/mm/dd hh:mm:ss TTT format
"parse a date in yyyy/mm/dd hh:mm:ss TTT format"
32
false
jmoiron/speedparser
_parse_date_perforce
17,738
LDU_FT/GaretJax/lancet/checkout
LDU_FT
[ "<BEGIN>\n## `load_config`", "Loads and parses an INI style configuration file using Python's built-in\n configparser module. If path is specified, load it.\n If ``defaults`` (a list of strings) is given, try to load each entry as a\n file, without throwing any error if the operation fails.\n If ``def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkout API. 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 checkout API. 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...
Checkout the branch for the given issue. It is an error if the branch does no exist yet.
"Checkout the branch for the given issue.\n\n It is an error if the branch does no exist yet."
50
false
GaretJax/lancet
checkout
17,739
LDU_FT/RockFeng0/rtsf/_load_csv_file
LDU_FT
[ "<BEGIN>\n## `get_summary`", "summarize the report data\r\n @param list_all: a list which save the report data\r\n @param kwargs: such as\r\n show_all: True/False report show all status cases\r\n proj_name: project name \r\n home_page: ho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_csv_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_csv_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 ex...
load csv file and check file content format @param csv_file: csv file path e.g. csv file content: username,password test1,111111 test2,222222 test3,333333 @return list of parameter, each paramete...
"load csv file and check file content format\r\n @param\r\n csv_file: csv file path\r\n e.g. csv file content:\r\n username,password\r\n test1,111111\r\n test2,222222\r\n test3,333333\r\n @return\r\n list of param...
53
false
RockFeng0/rtsf
_load_csv_file
17,740
LDU_FT/jeremymcrae/denovonear/get_transcript_ids_for_ensembl_gene_ids
LDU_FT
[ "<BEGIN>\n## `get_cached_data`", "get cached data for a url if stored in the cache and not outdated", " Args:\n url: URL for the Ensembl REST service", " Returns:\n data if data in cache, else None\n<END>", "<BEGIN>\n## `cache_url_data`", "cache the data retrieved from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transcript_ids_for_ensembl_gene_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transcript_ids_for_ensembl_gene_ids API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
fetch the ensembl transcript IDs for a given ensembl gene ID. Args: gene_ids: list of Ensembl gene IDs for the gene hgnc_symbols: list of possible HGNC symbols for gene
"fetch the ensembl transcript IDs for a given ensembl gene ID.\n \n Args:\n gene_ids: list of Ensembl gene IDs for the gene\n hgnc_symbols: list of possible HGNC symbols for gene"
112
false
jeremymcrae/denovonear
get_transcript_ids_for_ensembl_gene_ids
17,741
LDU_FT/ajslater/picopt/_walk_all_files
LDU_FT
[ "<BEGIN>\n## `_get_timestamp`", "Get the timestamp from the timestamp file.", " Optionally mark it for removal if we're going to write another one.\n<END>", "<BEGIN>\n## `_get_timestamp_cached`", "Get the timestamp from the cache or fill the cache\n Much quicker than reading the same files over and ov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _walk_all_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _walk_all_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Optimize the files from the arugments list in two batches. One for absolute paths which are probably outside the current working directory tree and one for relative files.
"Optimize the files from the arugments list in two batches.\n\n One for absolute paths which are probably outside the current\n working directory tree and one for relative files."
86
false
ajslater/picopt
_walk_all_files
17,742
LDU_FT/Thermondo/django-heroku-connect/create_heroku_connect_schema
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 create_heroku_connect_schema API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_heroku_connect_schema API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Create Heroku Connect schema. Note: This function is only meant to be used for local development. In a production environment the schema will be created by Heroku Connect. Args: using (str): Alias for database connection. Returns: bool: ``True`` if the schema was c...
"Create Heroku Connect schema.\n\n Note:\n This function is only meant to be used for local development.\n In a production environment the schema will be created by\n Heroku Connect.\n\n Args:\n using (str): Alias for database connection.\n\n Returns:\n bool: ``True`` if the ...
98
false
Thermondo/django-heroku-connect
create_heroku_connect_schema
17,743
LDU_FT/ishepard/pydriller/get_list_commits
LDU_FT
[ "<BEGIN>\n## `get_head`", "Get the head commit.", " :return: Commit of the head commit\n<END>", "<BEGIN>\n## `get_list_commits`", "Return a generator of commits of all the commits in the repo.", " :return: Generator[Commit], the generator of all the commits in the\n repo\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_list_commits API. 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_list_commits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return a generator of commits of all the commits in the repo. :return: Generator[Commit], the generator of all the commits in the repo
"Return a generator of commits of all the commits in the repo.\n\n :return: Generator[Commit], the generator of all the commits in the\n repo"
62
false
ishepard/pydriller
get_list_commits
17,744
LDU_FT/ConsenSys/mythril-classic/_get_block_number
LDU_FT
[ "<BEGIN>\n## `_get_account`", "Get account by address.", " :param address:\n :return:\n<END>", "<BEGIN>\n## `_get_block_hash`", "Get block hash by block number.", " :param number:\n :return:\n<END>", "<BEGIN>\n## `_get_head_block`", "Get head block header.", " :ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_block_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_block_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get block number by its hash. :param block_hash: :return:
"Get block number by its hash.\n\n :param block_hash:\n :return:"
376
false
ConsenSys/mythril-classic
_get_block_number
17,745
LDU_FT/alexa/alexa-skills-kit-sdk-for-python/lambda_handler
LDU_FT
[ "<BEGIN>\n## `invoke`", "Invokes the dispatcher, to handle the request envelope and\n return a response envelope.", " :param request_envelope: Request Envelope instance containing\n request information\n :type request_envelope: RequestEnvelope\n :param context: Context pas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lambda_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lambda_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 ex...
Create a handler function that can be used as handler in AWS Lambda console. The lambda handler provides a handler function, that acts as an entry point to the AWS Lambda console. Users can set the lambda_handler output to a variable and set the variable as AWS Lambda Handler on...
"Create a handler function that can be used as handler in\n AWS Lambda console.\n\n The lambda handler provides a handler function, that acts as\n an entry point to the AWS Lambda console. Users can set the\n lambda_handler output to a variable and set the variable as\n AWS Lambda Han...
285
false
alexa/alexa-skills-kit-sdk-for-python
lambda_handler
17,746
LDU_FT/mcocdawc/chemcoord/get_inertia
LDU_FT
[ "<BEGIN>\n## `_check_construction_table`", "Checks if a construction table uses valid references.\n Raises an exception (UndefinedCoordinateSystem) otherwise.\n<END>", "<BEGIN>\n## `_get_frag_constr_table`", "Create a construction table for a Zmatrix.", " A construction table is basically a Zm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_inertia API. 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_inertia API. 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...
Calculate the inertia tensor and transforms along rotation axes. This function calculates the inertia tensor and returns a 4-tuple. The unit is ``amu * length-unit-of-xyz-file**2`` Args: None Returns: dict: The returned dictionary has four poss...
"Calculate the inertia tensor and transforms along\n rotation axes.\n\n This function calculates the inertia tensor and returns\n a 4-tuple.\n\n The unit is ``amu * length-unit-of-xyz-file**2``\n\n Args:\n None\n\n Returns:\n dict: The returned dictionary ...
503
false
mcocdawc/chemcoord
get_inertia
17,747
LDU_FT/aisthesis/pynance/bollinger
LDU_FT
[ "<BEGIN>\n## `optimize`", "Return parameters for portfolio optimization.", " Parameters\n ----------\n exp_rets : ndarray\n Vector of expected returns for each investment..\n covs : ndarray\n Covariance matrix for the given investments.", " Returns\n ---------\n a : ndarray\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bollinger API. 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 bollinger API. 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...
Bollinger bands Returns bolldf, smadf where bolldf is a DataFrame containing Bollinger bands with columns 'Upper' and 'Lower' and smadf contains the simple moving average. Parameters ---------- eqdata : DataFrame Must include a column specified in the `selection` parameter or, ...
"Bollinger bands\n\n Returns bolldf, smadf where bolldf is a DataFrame containing\n Bollinger bands with columns 'Upper' and 'Lower' and smadf contains\n the simple moving average.\n\n Parameters\n ----------\n eqdata : DataFrame\n Must include a column specified in the `selection` parameter or...
231
false
aisthesis/pynance
bollinger
17,748
LDU_FT/botstory/botstory/iterate_storyline
LDU_FT
[ "<BEGIN>\n## `desc`", "Describe Class Dependency", " :param reg: should we register this class as well\n :param t: custom type as well\n :return:\n<END>", "<BEGIN>\n## `get_validator`", "ask every matcher whether it can serve such filter data", " :param filter_data:\n :return:\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate_storyline API. 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 iterate_storyline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
iterate the last storyline from the last visited story part :param ctx: :return:
"iterate the last storyline from the last visited story part\n\n :param ctx:\n :return:"
72
false
botstory/botstory
iterate_storyline
17,749
LDU_FT/jadolg/rocketchat_API/groups_get_integrations
LDU_FT
[ "<BEGIN>\n## `directory`", "Search by users or channels on all server.\n<END>", "<BEGIN>\n## `spotlight`", "Searches for users or rooms that are visible to the user.\n<END>", "<BEGIN>\n## `users_info`", "Gets a user’s information, limited to the caller’s permissions.\n<END>", "<BEGIN>\n## `chat_search`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groups_get_integrations 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 groups_get_integrations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Retrieves the integrations which the group has
"Retrieves the integrations which the group has"
82
false
jadolg/rocketchat_API
groups_get_integrations
17,750
LDU_FT/python-beaver/python-beaver/callback
LDU_FT
[ "<BEGIN>\n## `open`", "Opens the file with the appropriate call\n<END>", "<BEGIN>\n## `_buffer_extract`", "Extract takes an arbitrary string of input data and returns an array of\n tokenized entities, provided there were any available to extract. This\n makes for easy processing of datagrams us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callback API. 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 callback API. 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...
publishes lines one by one to the given topic
"publishes lines one by one to the given topic"
58
false
python-beaver/python-beaver
callback
17,751
LDU_FT/seperman/s3utils/cp_cropduster_image
LDU_FT
[ "<BEGIN>\n## `connect`", "Establish the connection. This is done automatically for you.", " If you lose the connection, you can manually run this to be re-connected.\n<END>", "<BEGIN>\n## `connect_cloudfront`", "Connect to Cloud Front. This is done automatically for you when needed.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cp_cropduster_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cp_cropduster_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Deal with saving cropduster images to S3. Cropduster is a Django library for resizing editorial images. S3utils was originally written to put cropduster images on S3 bucket. Extra Items in your Django Settings ----------------------------------- MEDIA_ROOT : string Django m...
"Deal with saving cropduster images to S3. Cropduster is a Django library for resizing editorial images.\n S3utils was originally written to put cropduster images on S3 bucket.\n\n Extra Items in your Django Settings\n -----------------------------------\n\n MEDIA_ROOT : string\n ...
74
false
seperman/s3utils
cp_cropduster_image
17,752
LDU_FT/twitterdev/search-tweets-python/convert_utc_time
LDU_FT
[ "<BEGIN>\n## `parse_version`", "Parses the program's version from a python variable declaration.\n<END>", "<BEGIN>\n## `make_session`", "Creates a Requests Session for use. Accepts a bearer token\n for premiums users and will override username and password information if\n present.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_utc_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_utc_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Handles datetime argument conversion to the GNIP API format, which is `YYYYMMDDHHSS`. Flexible passing of date formats in the following types:: - YYYYmmDDHHMM - YYYY-mm-DD - YYYY-mm-DD HH:MM - YYYY-mm-DDTHH:MM Args: datetime_str (str): valid formats are listed above. ...
"Handles datetime argument conversion to the GNIP API format, which is\n `YYYYMMDDHHSS`. Flexible passing of date formats in the following types::\n\n - YYYYmmDDHHMM\n - YYYY-mm-DD\n - YYYY-mm-DD HH:MM\n - YYYY-mm-DDTHH:MM\n\n Args:\n datetime_str (str): valid formats are listed...
88
false
twitterdev/search-tweets-python
convert_utc_time
17,753
LDU_FT/typemytype/booleanOperations/_scalePoints
LDU_FT
[ "<BEGIN>\n## `_prepPointsForSegments`", "Move any off curves at the end of the contour\n to the beginning of the contour. This makes\n segmentation easier.\n<END>", "<BEGIN>\n## `_reversePoints`", "Reverse the points. This differs from the\n reversal point pen in RoboFab in that it doesn't\n worry...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _scalePoints API. 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 _scalePoints API. 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...
Scale points and optionally convert them to integers.
"Scale points and optionally convert them to integers."
24
false
typemytype/booleanOperations
_scalePoints
17,754
LDU_FT/MartijnBraam/pyElectronics/angular_rate
LDU_FT
[ "<BEGIN>\n## `read`", "Read the pin state of an input pin.\n Make sure you put the pin in input modus with the IODIR* register or direction_* attribute first.", " :Example:", " >>> expander = MCP23017I2C(gw)\n >>> # Read the logic level on pin B3\n >>> expander.read('B3')\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the angular_rate API. 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 angular_rate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return the angular rate for every axis in degree/second. :returns: Angular rate for every axis as a tuple :Example: >>> sensor = MPU6050I2C(gw) >>> sensor.wakeup() >>> sensor.angular_rate() (1.380859375, 1.6318359375, 1.8828125)
"Return the angular rate for every axis in degree/second.\n\n :returns: Angular rate for every axis as a tuple\n\n :Example:\n\n >>> sensor = MPU6050I2C(gw)\n >>> sensor.wakeup()\n >>> sensor.angular_rate()\n (1.380859375, 1.6318359375, 1.8828125)"
88
false
MartijnBraam/pyElectronics
angular_rate
17,755
LDU_FT/kcolford/txt2boil/genOutputs
LDU_FT
[ "<BEGIN>\n## `nextComment`", "Return the next comment found in text starting at start.\n<END>", "<BEGIN>\n## `isLineComment`", "Return true if the text is a line comment.\n<END>", "<BEGIN>\n## `code`", "Return the code instead of the comments.\n<END>", "<BEGIN>\n## `collectTriggers`", "Return a dictio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the genOutputs API. 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 genOutputs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return a list out template outputs based on the triggers found in the code and the template they create.
"Return a list out template outputs based on the triggers found in\n the code and the template they create."
15
false
kcolford/txt2boil
genOutputs
17,756
LDU_FT/Cue/scales/jsonFormat
LDU_FT
[ "<BEGIN>\n## `lookup`", "Traverses the source, looking up each key. Returns None if can't find anything instead of raising an exception.\n<END>", "<BEGIN>\n## `connect`", "Connects to the Graphite server if not already connected.\n<END>", "<BEGIN>\n## `disconnect`", "Disconnect from the Graphite server i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonFormat API. 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 jsonFormat API. 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...
Formats as JSON, writing to the given object.
"Formats as JSON, writing to the given object."
72
false
Cue/scales
jsonFormat
17,757
LDU_FT/BlackEarth/bf/gswrite
LDU_FT
[ "<BEGIN>\n## `gswrite`", "use ghostscript to create output file(s) from the PDF\n<END>", "<BEGIN>\n## `merge_stylesheets`", "merge the given CSS files, in order, into a single stylesheet. First listed takes priority.\n<END>", "<BEGIN>\n## `all_selectors`", "return a sorted list of selectors that occur in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gswrite API. 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 gswrite API. 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...
use ghostscript to create output file(s) from the PDF
"use ghostscript to create output file(s) from the PDF"
16
false
BlackEarth/bf
gswrite
17,758
LDU_FT/openeemeter/eemeter/get_single_hdd_only_candidate_model
LDU_FT
[ "<BEGIN>\n## `as_freq`", "Resample data to a different frequency.", " This method can be used to upsample or downsample meter data. The\n assumption it makes to do so is that meter data is constant and averaged\n over the given periods. For instance, to convert billing-period data to\n daily data, t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_hdd_only_candidate_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_hdd_only_candidate_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Return a single candidate hdd-only model for a particular balance point. Parameters ---------- data : :any:`pandas.DataFrame` A DataFrame containing at least the column ``meter_value`` and ``hdd_<balance_point>`` DataFrames of this form can be made using the :any:`eemete...
"Return a single candidate hdd-only model for a particular balance\n point.\n\n Parameters\n ----------\n data : :any:`pandas.DataFrame`\n A DataFrame containing at least the column ``meter_value`` and\n ``hdd_<balance_point>``\n DataFrames of this form can be made using the\n :a...
213
false
openeemeter/eemeter
get_single_hdd_only_candidate_model
17,759
LDU_FT/SillyFreak/ConcurrentUtils/wait_for_start
LDU_FT
[ "<BEGIN>\n## `component_coro_wrapper`", "\\\n This function wraps a component workload to conform to the required lifecycle.\n The following behavior is the passed coroutine function's responsibility:", " - it must send `Component.EVENT_START` to its owner after the task is initialized;\n - it must ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_start API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
\ Start the component. This waits for `Component.EVENT_START` to be sent from the task. If the task returns without an event, a `LifecycleError` is raised with a `Success` as its cause. If the task raises an exception before any event, that exception is raised. If the task sends a differ...
"\\\n Start the component. This waits for `Component.EVENT_START` to be sent from the task.\n If the task returns without an event, a `LifecycleError` is raised with a `Success` as its cause.\n If the task raises an exception before any event, that exception is raised.\n If the task sends a ...
46
false
SillyFreak/ConcurrentUtils
wait_for_start
17,760
LDU_FT/wcember/pypub/clean
LDU_FT
[ "<BEGIN>\n## `add_chapter`", "Add a Chapter to your epub.", " Args:\n c (Chapter): A Chapter object representing your chapter.", " Raises:\n TypeError: Raised if a Chapter object isn't supplied to this\n method.\n<END>", "<BEGIN>\n## `create_epub`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. 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 clean API. 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...
Sanitizes HTML. Tags not contained as keys in the tag_dictionary input are removed, and child nodes are recursively moved to parent of removed node. Attributes not contained as arguments in tag_dictionary are removed. Doctype is set to <!DOCTYPE html>. Args: input_string (basestring): A (possib...
"Sanitizes HTML. Tags not contained as keys in the tag_dictionary input are\n removed, and child nodes are recursively moved to parent of removed node.\n Attributes not contained as arguments in tag_dictionary are removed.\n Doctype is set to <!DOCTYPE html>.\n\n Args:\n input_string (basestring): A ...
49
false
wcember/pypub
clean
17,761
LDU_FT/jorgenschaefer/elpy/rpc_get_assignment
LDU_FT
[ "<BEGIN>\n## `get_pydoc_completions`", "Get possible completions for modulename for pydoc.", " Returns a list of possible values to be passed to pydoc.\n<END>", "<BEGIN>\n## `get_modules`", "Return a list of modules and packages under modulename.", " If modulename is not given, return a list of all ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rpc_get_assignment 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 rpc_get_assignment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get the location of the assignment for the symbol at the offset.
"Get the location of the assignment for the symbol at the offset."
97
false
jorgenschaefer/elpy
rpc_get_assignment
17,762
LDU_FT/pjuren/pyokit/regionsIntersection
LDU_FT
[ "<BEGIN>\n## `__trim_extensions_dot`", "trim leading dots from extensions and drop any empty strings.\n<END>", "<BEGIN>\n## `__split_genomic_interval_filename`", "Split a filename of the format chrom:start-end.ext or chrom.ext (full chrom).", " :return: tuple of (chrom, start, end) -- 'start' and 'end' are...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the regionsIntersection 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 regionsIntersection 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...
given two lists of genomic regions with chromosome, start and end coordinates, return a new list of regions which is the intersection of those two sets. Lists must be sorted by chromosome and start index :return: new list that represents the intersection of the two input lists. output regions will all...
"given two lists of genomic regions with chromosome, start and end\n coordinates, return a new list of regions which is the intersection of those\n two sets. Lists must be sorted by chromosome and start index\n\n :return: new list that represents the intersection of the two input lists.\n output regions wi...
519
false
pjuren/pyokit
regionsIntersection
17,763
LDU_FT/UAVCAN/pyuavcan/parse_namespaces
LDU_FT
[ "<BEGIN>\n## `enum_mark_last`", "Returns a generator over iterable that tells whether the current item is the last one.\n Usage:\n >>> iterable = range(10)\n >>> for index, is_last, item in enum_mark_last(iterable):\n >>> print(index, item, end='\\n' if is_last else ', ')\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_namespaces API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_namespaces API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Use only this function to parse DSDL definitions. This function takes a list of root namespace directories (containing DSDL definition files to parse) and an optional list of search directories (containing DSDL definition files that can be referenced from the types that are going to be parsed). Returns...
"Use only this function to parse DSDL definitions.\n This function takes a list of root namespace directories (containing DSDL definition files to parse) and an\n optional list of search directories (containing DSDL definition files that can be referenced from the types\n that are going to be parsed).\n\n R...
65
false
UAVCAN/pyuavcan
parse_namespaces
17,764
LDU_FT/shad7/tvdbapi_client/_make_opt_list
LDU_FT
[ "<BEGIN>\n## `error_map`", "Wrap exceptions raised by requests.", " .. py:decorator:: error_map\n<END>", "<BEGIN>\n## `_make_opt_list`", "Generate a list of tuple containing group, options", " :param opts: option lists associated with a group\n :type opts: list\n :param group: name of an optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_opt_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. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_opt_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. The ex...
Generate a list of tuple containing group, options :param opts: option lists associated with a group :type opts: list :param group: name of an option group :type group: str :return: a list of (group_name, opts) tuples :rtype: list
"Generate a list of tuple containing group, options\n\n :param opts: option lists associated with a group\n :type opts: list\n :param group: name of an option group\n :type group: str\n :return: a list of (group_name, opts) tuples\n :rtype: list"
34
false
shad7/tvdbapi_client
_make_opt_list
17,765
LDU_FT/wakatime/wakatime/format
LDU_FT
[ "<BEGIN>\n## `wrap`", "[MS-NLMP] v28.0 2016-07-14", " 3.4.6 GSS_WrapEx()\n Emulates the GSS_Wrap() implementation to sign and seal messages if the correct flags\n are set.", " @param message: The message data that will be wrapped\n @return message: The message that has been ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. 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 format API. 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 ...
Format ``tokensource``, an iterable of ``(tokentype, tokenstring)`` tuples and write it into ``outfile``. This implementation calculates where it should draw each token on the pixmap, then calculates the required pixmap size and draws the items.
"Format ``tokensource``, an iterable of ``(tokentype, tokenstring)``\n tuples and write it into ``outfile``.\n\n This implementation calculates where it should draw each token on the\n pixmap, then calculates the required pixmap size and draws the items."
623
false
wakatime/wakatime
format
17,766
LDU_FT/goshuirc/irc/handler
LDU_FT
[ "<BEGIN>\n## `sort_prefixes`", "Returns a sorted list of prefixes.", " Args:\n orig (str): Unsorted list of prefixes.\n prefixes (str): List of prefixes, from highest-priv to lowest.\n<END>", "<BEGIN>\n## `parse_modes`", "Return a modelist.", " Args:\n params (list of str): Para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
Register this function as an event handler. Args: direction (str): ``in``, ``out``, ``both``, ``raw``. verb (str): Event name. priority (int): Handler priority (lower priority executes first). Example: These handlers print out a pretty raw log:: ...
"Register this function as an event handler.\n\n Args:\n direction (str): ``in``, ``out``, ``both``, ``raw``.\n verb (str): Event name.\n priority (int): Handler priority (lower priority executes first).\n\n Example:\n These handlers print out a pretty raw log::...
97
false
goshuirc/irc
handler
17,767
LDU_FT/openvax/datacache/_create_index
LDU_FT
[ "<BEGIN>\n## `connect_if_correct_version`", "Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.", " Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.", " TODO: Make a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates an index over multiple columns of a given table. Parameters ---------- table_name : str index_columns : iterable of str Which columns should be indexed
"Creates an index over multiple columns of a given table.\n\n Parameters\n ----------\n table_name : str\n\n index_columns : iterable of str\n Which columns should be indexed"
101
false
openvax/datacache
_create_index
17,768
LDU_FT/qntm/greenery/strings
LDU_FT
[ "<BEGIN>\n## `null`", "An FSM accepting nothing (not even the empty string). This is\n\t\tdemonstrates that this is possible, and is also extremely useful\n\t\tin some situations\n<END>", "<BEGIN>\n## `parallel`", "Crawl several FSMs in parallel, mapping the states of a larger meta-FSM.\n\t\tTo determine whet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strings API. 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 strings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Generate strings (lists of symbols) that this FSM accepts. Since there may be infinitely many of these we use a generator instead of constructing a static list. Strings will be sorted in order of length and then lexically. This procedure uses arbitrary amounts of memory but is very fast. There may be more e...
"Generate strings (lists of symbols) that this FSM accepts. Since there may\n\t\t\tbe infinitely many of these we use a generator instead of constructing a\n\t\t\tstatic list. Strings will be sorted in order of length and then lexically.\n\t\t\tThis procedure uses arbitrary amounts of memory but is very fast. There\n\t...
63
false
qntm/greenery
strings
17,769
LDU_FT/OTL/jps/pub
LDU_FT
[ "<BEGIN>\n## `launch_modules_with_names`", "launch module.main functions in another process\n<END>", "<BEGIN>\n## `publish`", "Publish payload to the topic", " .. note:: If you publishes just after creating Publisher instance, it will causes\n lost of message. You have to add sleep if you j...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pub API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pub API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
publishes the data to the topic :param topic_name: name of the topic :param json_msg: data to be published :param repeat_rate: if None, publishes once. if not None, it is used as [Hz].
"publishes the data to the topic\n\n :param topic_name: name of the topic\n :param json_msg: data to be published\n :param repeat_rate: if None, publishes once. if not None, it is used as [Hz]."
31
false
OTL/jps
pub
17,770
LDU_FT/toomore/goristock/now
LDU_FT
[ "<BEGIN>\n## `output`", "re = \"\"\"<table>\n <tr><td>%(name)s</td><td>%(c)s</td><td>%(range)+.2f(%(pp)+.2f%%)</td></tr>\n <tr><td>%(stock_no)s</td><td>%(value)s</td><td>%(time)s</td></tr></table>\"\"\" % {\n<END>", "<BEGIN>\n## `Rt_display`", "For real time stock display\n 即時盤用,顯示目...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
Display Taiwan Time now 顯示台灣此刻時間
"Display Taiwan Time now\n 顯示台灣此刻時間"
62
false
toomore/goristock
now
17,771
LDU_FT/dsoprea/PySchedules/_endLineupsNode
LDU_FT
[ "<BEGIN>\n## `_startXTVDNode`", "Process the start of the top-level xtvd node\n<END>", "<BEGIN>\n## `_startStationsNode`", "Process the start of a node under xtvd/stations\n<END>", "<BEGIN>\n## `_endStationsNode`", "Process the end of a node under xtvd/stations\n<END>", "<BEGIN>\n## `_startLineupsNode`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _endLineupsNode API. 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 _endLineupsNode API. 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...
Process the end of a node under xtvd/lineups
"Process the end of a node under xtvd/lineups"
50
false
dsoprea/PySchedules
_endLineupsNode
17,772