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/doconix/django-mako-plus/get_action_by_dest
LDU_FT
[ "<BEGIN>\n## `run_command`", "Runs a command, piping all output to the DMP log.\n The args should be separate arguments so paths and subcommands can have spaces in them:", " ret = run_command('ls', '-l', '/Users/me/My Documents')\n print(ret.code)\n print(ret.stdout)\n print(ret.s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_action_by_dest API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_action_by_dest 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...
Retrieves the given parser action object by its dest= attribute
"Retrieves the given parser action object by its dest= attribute"
207
false
doconix/django-mako-plus
get_action_by_dest
23,473
LDU_FT/ajenhl/tacl/prune_by_ngram
LDU_FT
[ "<BEGIN>\n## `_format_content`", "Returns `content` with consecutive spaces converted to non-break\n spaces, and linebreak converted into HTML br elements.", " :param content: text to format\n :type content: `str`\n :rtype: `str`\n<END>", "<BEGIN>\n## `_prepare_text`", "Returns `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prune_by_ngram API. 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 prune_by_ngram API. 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...
Removes results rows whose n-gram is in `ngrams`. :param ngrams: n-grams to remove :type ngrams: `list` of `str`
"Removes results rows whose n-gram is in `ngrams`.\n\n :param ngrams: n-grams to remove\n :type ngrams: `list` of `str`"
463
false
ajenhl/tacl
prune_by_ngram
23,474
LDU_FT/pypa/bandersnatch/metadata_verify
LDU_FT
[ "<BEGIN>\n## `_determine_unfiltered_package_names`", "Return a list of package names to be filtered base on the configuration\n file.\n<END>", "<BEGIN>\n## `check_match`", "Check if the package name matches against a project that is blacklisted\n in the configuration.", " Parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metadata_verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metadata_verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Crawl all saved JSON metadata or online to check we have all packages if delete - generate a diff of unowned files
"Crawl all saved JSON metadata or online to check we have all packages\n if delete - generate a diff of unowned files"
70
false
pypa/bandersnatch
metadata_verify
23,475
LDU_FT/loganasherjones/yapconf/spawn_watcher
LDU_FT
[ "<BEGIN>\n## `change_case`", "Changes the case to snake/kebab case depending on the separator.", " As regexes can be confusing, I'll just go through this line by line as an\n example with the following string: ' Foo2Boo_barBaz bat'", " 1. Remove whitespaces from beginning/end. => 'Foo2Boo_barBaz bat-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spawn_watcher API. 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 spawn_watcher API. 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...
Spawns a config watcher in a separate daemon thread. If a particular config value changes, and the item has a ``watch_target`` defined, then that method will be called. If a ``target`` is passed in, then it will call the ``target`` anytime the config changes. Args: ...
"Spawns a config watcher in a separate daemon thread.\n\n If a particular config value changes, and the item has a\n ``watch_target`` defined, then that method will be called.\n\n If a ``target`` is passed in, then it will call the ``target``\n anytime the config changes.\n\n Args:\n ...
139
false
loganasherjones/yapconf
spawn_watcher
23,476
LDU_FT/dwkim78/upsilon/get_eta
LDU_FT
[ "<BEGIN>\n## `sigma_clipping`", "Remove any fluctuated data points by magnitudes.", " Parameters\n ----------\n date : array_like\n An array of dates.\n mag : array_like\n An array of magnitudes.\n err : array_like\n An array of magnitude errors.\n threshold : float, optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_eta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_eta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return Eta feature. Parameters ---------- mag : array_like An array of magnitudes. std : array_like A standard deviation of magnitudes. Returns ------- eta : float The value of Eta index.
"Return Eta feature.\n\n Parameters\n ----------\n mag : array_like\n An array of magnitudes.\n std : array_like\n A standard deviation of magnitudes.\n\n Returns\n -------\n eta : float\n The value of Eta index."
80
false
dwkim78/upsilon
get_eta
23,477
LDU_FT/marcinmiklitz/pywindow/max_dim
LDU_FT
[ "<BEGIN>\n## `unique`", "Return a list of unique items (similar to set functionality).", " Parameters\n ----------\n input_list : list\n A list containg some items that can occur more than once.", " Returns\n -------\n list\n A list with only unique occurances of an item.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the max_dim API. 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 max_dim API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the maximum diameter of a molecule. Parameters ---------- elements : numpy.ndarray An array of all elements (type: str) in a molecule. coordinates : numpy.ndarray An array containing molecule's coordinates. Returns -------
"Return the maximum diameter of a molecule.\n\n Parameters\n ----------\n elements : numpy.ndarray\n An array of all elements (type: str) in a molecule.\n\n coordinates : numpy.ndarray\n An array containing molecule's coordinates.\n\n Returns\n -------"
303
false
marcinmiklitz/pywindow
max_dim
23,478
LDU_FT/dmbee/seglearn/fit_transform
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the model", " Fit all the transforms one after the other and transform the\n data, then fit the transformed data using the final estimator.", " Parameters\n ----------\n X : iterable\n Training data. Must fulfill input requirements of fir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_transform API. 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 fit_transform API. 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...
Fit the model and transform with the final estimator Fits all the transforms one after the other and transforms the data, then uses fit_transform on transformed data with the final estimator. Parameters ---------- X : iterable Training data. Must fulfill inpu...
"Fit the model and transform with the final estimator\n Fits all the transforms one after the other and transforms the\n data, then uses fit_transform on transformed data with the final\n estimator.\n\n Parameters\n ----------\n X : iterable\n Training data. Must ful...
165
false
dmbee/seglearn
fit_transform
23,479
LDU_FT/anchor/elasticsearchadmin/get_index_translog_disable_flush
LDU_FT
[ "<BEGIN>\n## `booleanise`", "Normalise a 'stringified' Boolean to a proper Python Boolean.", " ElasticSearch has a habit of returning \"true\" and \"false\" in its \n JSON responses when it should be returning `true` and `false`. If \n `b` looks like a stringified Boolean true, return True. If `b` \n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_index_translog_disable_flush API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_index_translog_disable_flush API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Return a dictionary showing the position of the 'translog.disable_flush' knob for each index in the cluster. The dictionary will look like this: { "index1": True, # Autoflushing DISABLED "index2": False, # Autoflushing ENABLED "inde...
"Return a dictionary showing the position of the \n 'translog.disable_flush' knob for each index in the cluster.\n\n The dictionary will look like this:\n\n {\n \"index1\": True, # Autoflushing DISABLED\n \"index2\": False, # Autoflushing ENABLED\n ...
20
false
anchor/elasticsearchadmin
get_index_translog_disable_flush
23,480
LDU_FT/mayfield/shellish/render_filter
LDU_FT
[ "<BEGIN>\n## `hone_cache`", "A caching decorator that follows after the style of lru_cache. Calls\n that are sharper than previous requests are returned from the cache after\n honing in on the requested results using the `refineby` technique.", " The `refineby` technique can be `startswith`, `container...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_filter API. 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 render_filter API. 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...
Produce formatted output from the raw data stream.
"Produce formatted output from the raw data stream."
172
false
mayfield/shellish
render_filter
23,481
LDU_FT/saltant-org/saltant-py/create
LDU_FT
[ "<BEGIN>\n## `sync`", "Sync this model with latest data on the saltant server.", " Note that in addition to returning the updated object, it also\n updates the existing object.", " Returns:\n :class:`saltant.models.base_task_type.BaseTaskType`:\n This task type i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. 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 create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a task whitelist. Args: name (str): The name of the task whitelist. description (str, optional): A description of the task whitelist. whitelisted_container_task_types (list, optional): A list of whitelisted container task type IDs. whitelis...
"Create a task whitelist.\n\n Args:\n name (str): The name of the task whitelist.\n description (str, optional): A description of the task whitelist.\n whitelisted_container_task_types (list, optional): A list of\n whitelisted container task type IDs.\n ...
134
false
saltant-org/saltant-py
create
23,482
LDU_FT/python-tap/tappy/_write_plan
LDU_FT
[ "<BEGIN>\n## `check`", "Check the status of all provided data and update the suite.\n<END>", "<BEGIN>\n## `handle_skipping_plan`", "Handle a plan that contains a SKIP directive.\n<END>", "<BEGIN>\n## `format_exception`", "Format an exception as diagnostics output.", " exception is the tuple as expect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_plan API. 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 _write_plan API. 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...
Write the plan line to the stream. If we have a plan and have not yet written it out, write it to the given stream.
"Write the plan line to the stream.\n\n If we have a plan and have not yet written it out, write it to\n the given stream."
47
false
python-tap/tappy
_write_plan
23,483
LDU_FT/wtsi-hgi/consul-lock/execute_with_lock
LDU_FT
[ "<BEGIN>\n## `get_consul_configuration_from_environment`", "Gets configuration on how to connect to Consul from the environment.\n :return: the configuration derived from the environment\n :raises KeyError: if a required environment variable has not been set\n<END>", "<BEGIN>\n## `create_logger`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_with_lock API. 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 execute_with_lock API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
TODO :param executable: :param lock: :param capture_stdout: :param capture_stderr: :return:
"TODO\n :param executable:\n :param lock:\n :param capture_stdout:\n :param capture_stderr:\n :return:"
55
false
wtsi-hgi/consul-lock
execute_with_lock
23,484
LDU_FT/MisterY/pydatum/from_iso_long_date
LDU_FT
[ "<BEGIN>\n## `add_months`", "Add a number of months to the given date\n<END>", "<BEGIN>\n## `from_iso_long_date`", "Parse ISO date string (YYYY-MM-DDTHH:mm:ss)\n<END>", "<BEGIN>\n## `to_iso_string`", "Returns full ISO string for the given date\n<END>", "<BEGIN>\n## `end_of_month`", "Provides end of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_iso_long_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_iso_long_date API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Parse ISO date string (YYYY-MM-DDTHH:mm:ss)
"Parse ISO date string (YYYY-MM-DDTHH:mm:ss)"
18
false
MisterY/pydatum
from_iso_long_date
23,485
LDU_FT/keepkey/python-keepkey/_get_cache_name
LDU_FT
[ "<BEGIN>\n## `enumerate`", "Return a list of available KeepKey devices.\n<END>", "<BEGIN>\n## `sec_to_public_pair`", "Convert a public key in sec binary format to a public pair.\n<END>", "<BEGIN>\n## `parse_path`", "Convert BIP32 path string to list of uint32 integers with hardened flags.\n Several con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cache_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cache_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 e...
returns a name for the module's cache db.
"returns a name for the module's cache db."
24
false
keepkey/python-keepkey
_get_cache_name
23,486
LDU_FT/Legobot/Legobot/set_metadata
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a server.", " This overrides the function in SimpleIRCClient\n to provide SSL functionality.", " :param args:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `set_metadata`", "This function sets the metadata that is common between p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extr...
This function sets the metadata that is common between pub and priv
"This function sets the metadata that is common between pub and priv"
119
false
Legobot/Legobot
set_metadata
23,487
LDU_FT/scanny/python-pptx/yVal_xml
LDU_FT
[ "<BEGIN>\n## `convert_to_xml`", "Convert signed angle float like -42.42 to int 60000 per degree,\n normalized to positive value.\n<END>", "<BEGIN>\n## `convert_to_xml`", "Convert signed angle float like -427.42 to int 60000 per degree.", " Value is normalized to a positive value less than 360 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the yVal_xml API. 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 yVal_xml API. 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 the ``<c:yVal>`` element for this series as unicode text. This element contains the Y values for this series.
"Return the ``<c:yVal>`` element for this series as unicode text. This\n element contains the Y values for this series."
990
false
scanny/python-pptx
yVal_xml
23,488
LDU_FT/DsixTools/python-smeftrunner/vMh2_to_m2Lambda
LDU_FT
[ "<BEGIN>\n## `load`", "Load a parameter file in DSixTools SLHA-like format or its JSON or\n YAML representation.\n<END>", "<BEGIN>\n## `lha2matrix`", "Return a matrix given a list of values of the form\n [[1, 1, float], [1, 2, float], ...]\n referring to the (1,1)-element etc.\n `shape` is the sha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vMh2_to_m2Lambda API. 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 vMh2_to_m2Lambda API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Function to numerically determine the parameters of the Higgs potential given the physical Higgs VEV and mass.
"Function to numerically determine the parameters of the Higgs potential\n given the physical Higgs VEV and mass."
58
false
DsixTools/python-smeftrunner
vMh2_to_m2Lambda
23,489
LDU_FT/psss/did/copies
LDU_FT
[ "<BEGIN>\n## `search`", "Perform issue search for given stats instance\n<END>", "<BEGIN>\n## `updated`", "True if the issue was commented by given user\n<END>", "<BEGIN>\n## `issues`", "Filter unique issues for given activity type and email\n<END>", "<BEGIN>\n## `_fetch_activities`", "Get organization...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copies API. 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 copies API. 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 ...
All test case copies created by the user
"All test case copies created by the user"
118
false
psss/did
copies
23,490
LDU_FT/tBaxter/tango-articles/get_absolute_url
LDU_FT
[ "<BEGIN>\n## `auto_tweet`", "Allows auto-tweeting newly created object to twitter\n on accounts configured in settings.", " You MUST create an app to allow oAuth authentication to work:\n -- https://dev.twitter.com/apps/\n You also must set the app to \"Read and Write\" access level,\n and creat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_absolute_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_absolute_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
If override_url was given, use that. Otherwise, if the content belongs to a blog, use a blog url. If not, use a regular article url.
"If override_url was given, use that.\r\n Otherwise, if the content belongs to a blog, use a blog url.\r\n If not, use a regular article url."
17
false
tBaxter/tango-articles
get_absolute_url
23,491
LDU_FT/kiwiz/gkeepapi/load
LDU_FT
[ "<BEGIN>\n## `login`", "Authenticate to Google with the provided credentials.", " Args:\n email (str): The account to use.\n password (str): The account password.\n android_id (str): An identifier for this client.", " Raises:\n LoginException: If there...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Unserialize from raw representation. (Wrapper) Args: raw (dict): Raw. Raises: ParseException: If there was an error parsing data.
"Unserialize from raw representation. (Wrapper)\n\n Args:\n raw (dict): Raw.\n Raises:\n ParseException: If there was an error parsing data."
164
false
kiwiz/gkeepapi
load
23,492
LDU_FT/snipsco/snipsmanagercore/run
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse a json response into an intent.", " :param payload: a JSON object representing an intent.\n :param candidate_classes: a list of classes representing various\n intents, each having their own `parse`\n me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run a function in a separate thread. :param target: the function to run. :param args: the parameters to pass to the function.
"Run a function in a separate thread.\n\n :param target: the function to run.\n :param args: the parameters to pass to the function."
60
false
snipsco/snipsmanagercore
run
23,493
LDU_FT/twisted/axiom/itemAdded
LDU_FT
[ "<BEGIN>\n## `upgradeProcessor1to2`", "Batch processors stopped polling at version 2, so they no longer needed the\n idleInterval attribute. They also gained a scheduled attribute which\n tracks their interaction with the scheduler. Since they stopped polling,\n we also set them up as a timed event her...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the itemAdded API. 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 itemAdded API. 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...
Called to indicate that a new item of the type monitored by this batch processor is being added to the database. If this processor is not already scheduled to run, this will schedule it. It will also start the batch process if it is not yet running and there are any registered remote l...
"Called to indicate that a new item of the type monitored by this batch\n processor is being added to the database.\n\n If this processor is not already scheduled to run, this will schedule\n it. It will also start the batch process if it is not yet running and\n there are any registered re...
479
false
twisted/axiom
itemAdded
23,494
LDU_FT/eyeseast/propublica-congress/by_range
LDU_FT
[ "<BEGIN>\n## `filter`", "Takes a chamber and Congress,\n OR state and district, returning a list of members\n<END>", "<BEGIN>\n## `compare`", "See how often two members voted together in a given Congress.\n Takes two member IDs, a chamber and a Congress number.\n<END>", "<BEGIN>\n## `by_member...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return votes cast in a chamber between two dates, up to one month apart.
"Return votes cast in a chamber between two dates,\n up to one month apart."
23
false
eyeseast/propublica-congress
by_range
23,495
LDU_FT/leancloud/python-sdk/get
LDU_FT
[ "<BEGIN>\n## `become`", "通过 session token 获取用户对象", " :param session_token: 用户的 session token\n :return: leancloud.User\n<END>", "<BEGIN>\n## `sign_up`", "创建一个新用户。新创建的 User 对象,应该使用此方法来将数据保存至服务器,而不是使用 save 方法。\n 用户对象上必须包含 username 和 password 两个字段\n<END>", "<BEGIN>\n## `login`", "登陆用户。...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
根据 objectId 查询。 :param object_id: 要查询对象的 objectId :return: 查询结果 :rtype: Object
"根据 objectId 查询。\n\n :param object_id: 要查询对象的 objectId\n :return: 查询结果\n :rtype: Object"
161
false
leancloud/python-sdk
get
23,496
LDU_FT/iskandr/fancyimpute/_most_frequent
LDU_FT
[ "<BEGIN>\n## `_svd_step`", "Returns reconstructed X from low-rank thresholded SVD and\n the rank achieved.\n<END>", "<BEGIN>\n## `fill`", "Parameters\n ----------\n X : np.array\n Data array containing NaN entries", " missing_mask : np.array\n Boolean array ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _most_frequent API. 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 _most_frequent API. 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...
Compute the most frequent value in a 1d array extended with [extra_value] * n_repeat, where extra_value is assumed to be not part of the array.
"Compute the most frequent value in a 1d array extended with\n [extra_value] * n_repeat, where extra_value is assumed to be not part\n of the array."
137
false
iskandr/fancyimpute
_most_frequent
23,497
LDU_FT/hyperledger-archives/indy-anoncreds/createClaimRequests
LDU_FT
[ "<BEGIN>\n## `get_hash_as_int`", "Enumerate over the input tuple and generate a hash using the tuple values", " :param args: sequence of either group or integer elements\n :param group: pairing group if an element is a group element\n :return:\n<END>", "<BEGIN>\n## `randomString`", "Generate a rand...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createClaimRequests 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 createClaimRequests 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...
Creates a claim request to the issuer. :param schemaIds: The schema IDs (references to claim definition schema) :param proverId: a prover ID request a claim for (if None then the current prover default ID is used) :param reqNonRevoc: whether to request non-revocation claim ...
"Creates a claim request to the issuer.\n\n :param schemaIds: The schema IDs (references to claim\n definition schema)\n :param proverId: a prover ID request a claim for (if None then\n the current prover default ID is used)\n :param reqNonRevoc: whether to request non-revocation clai...
48
false
hyperledger-archives/indy-anoncreds
createClaimRequests
23,498
LDU_FT/insightindustry/validator-collection/datetime
LDU_FT
[ "<BEGIN>\n## `disable_on_env`", "Disable the ``func`` called if its name is present in ``VALIDATORS_DISABLED``.", " :param func: The function/validator to be disabled.\n :type func: callable", " :returns: If disabled, the ``value`` (first positional argument) passed to\n ``func``. If enabled, th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime API. 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 datetime API. 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 that ``value`` is a valid datetime. .. caution:: If supplying a string, the string needs to be in an ISO 8601-format to pass validation. If it is not in an ISO 8601-format, validation will fail. :param value: The value to validate. :type value: :class:`str <python:str>` / :class:`dat...
"Validate that ``value`` is a valid datetime.\n\n .. caution::\n\n If supplying a string, the string needs to be in an ISO 8601-format to pass\n validation. If it is not in an ISO 8601-format, validation will fail.\n\n :param value: The value to validate.\n :type value: :class:`str <python:str>` / :c...
599
false
insightindustry/validator-collection
datetime
23,499
LDU_FT/googleapis/dialogflow-python-client-v2/delete_entity_type
LDU_FT
[ "<BEGIN>\n## `from_service_account_file`", "Creates an instance of this client using the provided credentials\n file.", " Args:\n filename (str): The path to the service account private key json\n file.\n args: Additional arguments to pass to the constructor.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_entity_type 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 delete_entity_type 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...
Delete entity type with the given entity type name.
"Delete entity type with the given entity type name."
280
false
googleapis/dialogflow-python-client-v2
delete_entity_type
23,500
LDU_FT/linkedin/Zopkio/open_remote_file
LDU_FT
[ "<BEGIN>\n## `make_machine_mapping`", "Convert the machine list argument from a list of names into a mapping of logical names to\n physical hosts. This is similar to the _parse_configs function but separated to provide the\n opportunity for extension and additional checking of machine access\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_remote_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_remote_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 ...
:param hostname: :param filename: :return:
":param hostname:\r\n :param filename:\r\n :return:"
85
false
linkedin/Zopkio
open_remote_file
23,501
LDU_FT/grantmcconnaughey/django-avatar/_get_next
LDU_FT
[ "<BEGIN>\n## `_get_next`", "The part that's the least straightforward about views in this module is\n how they determine their redirects after they have finished computation.", " In short, they will try and determine the next place to go in the\n following order:", " 1. If there is a variable name...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_next API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_next API. 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...
The part that's the least straightforward about views in this module is how they determine their redirects after they have finished computation. In short, they will try and determine the next place to go in the following order: 1. If there is a variable named ``next`` in the *POST* parameters, the ...
"The part that's the least straightforward about views in this module is\n how they determine their redirects after they have finished computation.\n\n In short, they will try and determine the next place to go in the\n following order:\n\n 1. If there is a variable named ``next`` in the *POST* parameters, ...
14
false
grantmcconnaughey/django-avatar
_get_next
23,502
LDU_FT/Bystroushaak/zeo_connector/retry_and_reset
LDU_FT
[ "<BEGIN>\n## `_get_db`", "Open the connection to the database based on the configuration file.\n<END>", "<BEGIN>\n## `transaction_manager`", "Decorator which wraps whole function into ``with transaction.manager:``.\n<END>", "<BEGIN>\n## `retry_and_reset`", "Decorator used to make sure, that operation on Z...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_and_reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_and_reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Decorator used to make sure, that operation on ZEO object will be retried, if there is ``ConnectionStateError`` exception.
"Decorator used to make sure, that operation on ZEO object will be retried,\n if there is ``ConnectionStateError`` exception."
11
false
Bystroushaak/zeo_connector
retry_and_reset
23,503
LDU_FT/edublancas/sklearn-evaluation/feature_importances
LDU_FT
[ "<BEGIN>\n## `feature_importances`", "Get and order feature importances from a scikit-learn model\n or from an array-like structure.", " If data is a scikit-learn model with sub-estimators (e.g. RandomForest,\n AdaBoost) the function will compute the standard deviation of each\n feature.", " Pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the feature_importances 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 feature_importances 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...
Get and order feature importances from a scikit-learn model or from an array-like structure. If data is a scikit-learn model with sub-estimators (e.g. RandomForest, AdaBoost) the function will compute the standard deviation of each feature. Parameters ---------- data : sklearn model or array-li...
"Get and order feature importances from a scikit-learn model\n or from an array-like structure. If data is a scikit-learn model with\n sub-estimators (e.g. RandomForest, AdaBoost) the function will compute the\n standard deviation of each feature.\n\n Parameters\n ----------\n data : sklearn model or ...
104
false
edublancas/sklearn-evaluation
feature_importances
23,504
LDU_FT/InQuest/python-sandboxapi/_request
LDU_FT
[ "<BEGIN>\n## `_request`", "Robustness wrapper. Tries up to 3 times to dance with the Sandbox API.", " :type uri: str\n :param uri: URI to append to base_url.\n :type params: dict\n :param params: Optional parameters for API.\n :type files: dict\n :param f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API. 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 _request API. 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...
Robustness wrapper. Tries up to 3 times to dance with the Sandbox API. :type uri: str :param uri: URI to append to base_url. :type params: dict :param params: Optional parameters for API. :type files: dict :param files: Optional dictionary of files for m...
"Robustness wrapper. Tries up to 3 times to dance with the Sandbox API.\n\n :type uri: str\n :param uri: URI to append to base_url.\n :type params: dict\n :param params: Optional parameters for API.\n :type files: dict\n :param files: Optional dictionary of fil...
93
false
InQuest/python-sandboxapi
_request
23,505
LDU_FT/frmdstryr/enamlx/setDeclaration
LDU_FT
[ "<BEGIN>\n## `_prefetch_items`", "When the current_row in the model changes (whether from scrolling) or\n set by the application. Make sure the results are loaded!\n<END>", "<BEGIN>\n## `refresh_items`", "Refresh the items of the pattern.", " This method destroys the old items and creates and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setDeclaration API. 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 setDeclaration API. 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...
Set the declaration this model will use for rendering the the headers.
"Set the declaration this model will use for rendering\n the the headers."
133
false
frmdstryr/enamlx
setDeclaration
23,506
LDU_FT/stxnext/mappet/update
LDU_FT
[ "<BEGIN>\n## `no_empty_value`", "Raises an exception if function argument is empty.\n<END>", "<BEGIN>\n## `to_bool`", "Converts human boolean-like values to Python boolean.", " Falls back to :class:`bool` when ``value`` is not recognized.", " :param value: the value to convert\n :returns: ``True`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. 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 update API. 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 ...
u"""Updating or creation of new simple nodes. Each dict key is used as a tagname and value as text.
"u\"\"\"Updating or creation of new simple nodes.\n\n Each dict key is used as a tagname and value as text."
66
false
stxnext/mappet
update
23,507
LDU_FT/Roastero/freshroastsr700/_connect
LDU_FT
[ "<BEGIN>\n## `fan_speed`", "Verifies the value is between 1 and 9 inclusively.\n<END>", "<BEGIN>\n## `heat_setting`", "Verifies that the heat setting is between 0 and 3.\n<END>", "<BEGIN>\n## `heater_level`", "Verifies that the heater_level is between 0 and heater_segments.\n Can only be called ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Do not call this directly - call auto_connect() or connect(), which will call _connect() for you. Connects to the roaster and creates communication thread. Raises a RoasterLokkupError exception if the hardware is not found.
"Do not call this directly - call auto_connect() or connect(),\n which will call _connect() for you.\n\n Connects to the roaster and creates communication thread.\n Raises a RoasterLokkupError exception if the hardware is not found."
61
false
Roastero/freshroastsr700
_connect
23,508
LDU_FT/pyinvoke/invocations/sudo_run
LDU_FT
[ "<BEGIN>\n## `confirm`", "Ask user a yes/no question and return their response as a boolean.", " ``question`` should be a simple, grammatically complete question such as\n \"Do you wish to continue?\", and will have a string similar to ``\" [Y/n] \"``\n appended automatically. This function will *not* ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sudo_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sudo_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Run some command under Travis-oriented sudo subshell/virtualenv. :param str command: Command string to run, e.g. ``inv coverage``, ``inv integration``, etc. (Does not necessarily need to be an Invoke task, but...)
"Run some command under Travis-oriented sudo subshell/virtualenv.\n\n :param str command:\n Command string to run, e.g. ``inv coverage``, ``inv integration``, etc.\n (Does not necessarily need to be an Invoke task, but...)"
126
false
pyinvoke/invocations
sudo_run
23,509
LDU_FT/iotile/coretools/_versioned_implib_symlinks
LDU_FT
[ "<BEGIN>\n## `_value_length`", "Given an integer or list of them, convert it to an array of bytes.\n<END>", "<BEGIN>\n## `_parse_line`", "Parse a line in a TileBus file", " Args:\n line_no (int): The line number for printing useful error messages\n line (string): The line that w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _versioned_implib_symlinks 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 _versioned_implib_symlinks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Generate link names that should be created for a versioned shared library. Returns a list in the form [ (link, linktarget), ... ]
"Generate link names that should be created for a versioned shared library.\n Returns a list in the form [ (link, linktarget), ... ]"
4,849
true
iotile/coretools
_versioned_implib_symlinks
23,510
LDU_FT/dirko/pyhacrf/predict_proba
LDU_FT
[ "<BEGIN>\n## `transform`", "Transform sequence pairs to feature arrays that can be used as input to `Hacrf` models.", " Parameters\n ----------\n raw_X : List of (sequence1_n, sequence2_n) pairs, one for each training example n.\n y : (ignored)", " Returns\n -------\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_proba API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_proba API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Probability estimates. The returned estimates for all classes are ordered by the label of classes. Parameters ---------- X : List of ndarrays, one for each training example. Each training example's shape is (string1_len, string2_len, n_features, where st...
"Probability estimates.\n\n The returned estimates for all classes are ordered by the\n label of classes.\n\n Parameters\n ----------\n X : List of ndarrays, one for each training example.\n Each training example's shape is (string1_len, string2_len, n_features, where\n ...
46
false
dirko/pyhacrf
predict_proba
23,511
LDU_FT/michael-lazar/rtv/get_arrow
LDU_FT
[ "<BEGIN>\n## `refresh_content`", "Re-download all subscriptions and reset the page index\n<END>", "<BEGIN>\n## `select_subreddit`", "Store the selected subreddit and return to the subreddit page\n<END>", "<BEGIN>\n## `alias_function`", "Create a RedditContentObject function mapped to a BaseReddit function...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arrow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arrow API. 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...
Curses does define constants for symbols (e.g. curses.ACS_BULLET). However, they rely on using the curses.addch() function, which has been found to be buggy and a general PITA to work with. By defining them as unicode points they can be added via the more reliable curses.addstr(). http:/...
"Curses does define constants for symbols (e.g. curses.ACS_BULLET).\n However, they rely on using the curses.addch() function, which has been\n found to be buggy and a general PITA to work with. By defining them as\n unicode points they can be added via the more reliable curses.addstr().\n h...
919
false
michael-lazar/rtv
get_arrow
23,512
LDU_FT/pypa/twine/find_candidate_metadata_files
LDU_FT
[ "<BEGIN>\n## `from_args`", "Return an UploadToDeprecatedPyPIDetected instance.\n<END>", "<BEGIN>\n## `check_status_code`", "Shouldn't happen, thanks to the UploadToDeprecatedPyPIDetected\n exception, but this is in case that breaks and it does.\n<END>", "<BEGIN>\n## `no_positional`", "A decorator that ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_candidate_metadata_files 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 find_candidate_metadata_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Filter files that may be METADATA files.
"Filter files that may be METADATA files."
14
false
pypa/twine
find_candidate_metadata_files
23,513
LDU_FT/twitterdev/tweet_parser/get_most_unrolled_urls
LDU_FT
[ "<BEGIN>\n## `get_entities`", "Helper function to simply grabbing the entities. \\n\n Caveat: In the case of Retweets, a Retweet is stored as\n \"RT @someone: Some awesome status\". In the case where pre-appending\n the string \"RT @someone:\" causes the Tweet to exceed 140 characters,\n entites (hash...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_most_unrolled_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_most_unrolled_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
For each url included in the Tweet "urls", get the most unrolled version available. Only return 1 url string per url in tweet.tweet_links In order of preference for "most unrolled" (keys from the dict at tweet.tweet_links): \n 1. `unwound`/`url` \n 2. `expanded_url` \n 3. `url` Args: ...
"For each url included in the Tweet \"urls\", get the most unrolled\n version available. Only return 1 url string per url in tweet.tweet_links\n In order of preference for \"most unrolled\"\n (keys from the dict at tweet.tweet_links): \\n\n 1. `unwound`/`url` \\n\n 2. `expanded_url` \\n\n 3. `url`\n\n...
170
false
twitterdev/tweet_parser
get_most_unrolled_urls
23,514
LDU_FT/tuomas2/automate/toggle_object_status
LDU_FT
[ "<BEGIN>\n## `call_eval`", "Value might be either name registered in System namespace, or object, either\n StatusObject or Callable. If Callable, evaluate :meth:`.call` method. If StatusObject,\n return status.\n<END>", "<BEGIN>\n## `setup_callable_system`", "This function basically sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toggle_object_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toggle_object_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. ...
Toggle boolean-valued sensor status between ``True`` and ``False``.
"Toggle boolean-valued sensor status between ``True`` and ``False``."
91
false
tuomas2/automate
toggle_object_status
23,515
LDU_FT/jalanb/pysyte/config
LDU_FT
[ "<BEGIN>\n## `get_caselessly`", "Find the sought key in the given dictionary regardless of case", " >>> things = {'Fred' : 9}\n >>> print(get_caselessly(things, 'fred'))\n 9\n<END>", "<BEGIN>\n## `append_value`", "Append those items to the values for that key\n<END>", "<BEGIN>\n## `extend_values`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Set that config key to that value Unless local is set to False: only change local config
"Set that config key to that value\n\n Unless local is set to False: only change local config"
224
false
jalanb/pysyte
config
23,516
LDU_FT/dpursehouse/pygerrit2/translate_kwargs
LDU_FT
[ "<BEGIN>\n## `_decode_response`", "Strip off Gerrit's magic prefix and decode a response.", " :returns:\n Decoded JSON content as a dict, or raw text if content could not be\n decoded as JSON.", " :raises:\n requests.HTTPError if the response contains an HTTP error status code.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate_kwargs API. 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 translate_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Translate kwargs replacing `data` with `json` if necessary.
"Translate kwargs replacing `data` with `json` if necessary."
22
false
dpursehouse/pygerrit2
translate_kwargs
23,517
LDU_FT/twidi/django-adv-cache-tag/render_node
LDU_FT
[ "<BEGIN>\n## `prepare_params`", "Prepare the parameters passed to the templatetag\n<END>", "<BEGIN>\n## `get_expire_time`", "Return the expire time passed to the templatetag.\n Must be None or an integer.\n<END>", "<BEGIN>\n## `get_version`", "Return the stringified version passed to the templateta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_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 extra...
Render the template and save the generated content
"Render the template and save the generated content"
34
false
twidi/django-adv-cache-tag
render_node
23,518
LDU_FT/specialunderwear/django-easymode/find_extra_attrs
LDU_FT
[ "<BEGIN>\n## `serialize`", "Serialize a queryset.\n THE OUTPUT OF THIS SERIALIZER IS NOT MEANT TO BE SERIALIZED BACK\n INTO THE DB.\n<END>", "<BEGIN>\n## `start_serialization`", "Start serialization -- open the XML document and the root element.\n<END>", "<BEGIN>\n## `handle_field`", "Called...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_extra_attrs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_extra_attrs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
finds extra attributes in *value* if they are there
"finds extra attributes in *value* if they are there"
136
false
specialunderwear/django-easymode
find_extra_attrs
23,519
LDU_FT/sprockets/sprockets.mixins.http/_http_resp_rate_limited
LDU_FT
[ "<BEGIN>\n## `append_response`", "Append the response to the stack of responses.", " :param tornado.httpclient.HTTPResponse response: The HTTP response\n<END>", "<BEGIN>\n## `body`", "Returns the HTTP response body, deserialized if possible.", " :rtype: mixed\n<END>", "<BEGIN>\n## `links`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _http_resp_rate_limited 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 _http_resp_rate_limited API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Extract the ``Retry-After`` header value if the request was rate limited and return a future to sleep for the specified duration. :param tornado.httpclient.HTTPResponse response: The response :rtype: tornado.concurrent.Future
"Extract the ``Retry-After`` header value if the request was rate\n limited and return a future to sleep for the specified duration.\n\n :param tornado.httpclient.HTTPResponse response: The response\n :rtype: tornado.concurrent.Future"
35
false
sprockets/sprockets.mixins.http
_http_resp_rate_limited
23,520
LDU_FT/scikit-learn-contrib/hdbscan/to_networkx
LDU_FT
[ "<BEGIN>\n## `_tree_to_labels`", "Converts a pretrained tree and cluster size into a\n set of labels and probabilities.\n<END>", "<BEGIN>\n## `check_precomputed_distance_matrix`", "Perform check_array(X) after removing infinite values (numpy.inf) from the given distance matrix.\n<END>", "<BEGIN>\n## `hdb...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_networkx API. 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 to_networkx API. 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 a NetworkX DiGraph object representing the condensed tree. Edge weights in the graph are the lamba values at which child nodes 'leave' the parent cluster. Nodes have a `size` attribute attached giving the number of points that are in the cluster (or 1 if it is a singleton point)...
"Return a NetworkX DiGraph object representing the condensed tree.\n\n Edge weights in the graph are the lamba values at which child nodes\n 'leave' the parent cluster.\n\n Nodes have a `size` attribute attached giving the number of points\n that are in the cluster (or 1 if it is a singleton...
224
false
scikit-learn-contrib/hdbscan
to_networkx
23,521
LDU_FT/mcs07/PubChemPy/get_substances
LDU_FT
[ "<BEGIN>\n## `request`", "Construct API request from parameters and return the response.", " Full specification at http://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST.html\n<END>", "<BEGIN>\n## `get`", "Request wrapper that automatically handles async requests.\n<END>", "<BEGIN>\n## `get_json`", "Reque...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_substances API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_substances API. 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...
Retrieve the specified substance records from PubChem. :param identifier: The substance identifier to use as a search query. :param namespace: (optional) The identifier type, one of sid, name or sourceid/<source name>. :param as_dataframe: (optional) Automatically extract the :class:`~pubchempy.Substance` ...
"Retrieve the specified substance records from PubChem.\n\n :param identifier: The substance identifier to use as a search query.\n :param namespace: (optional) The identifier type, one of sid, name or sourceid/<source name>.\n :param as_dataframe: (optional) Automatically extract the :class:`~pubchempy.Substa...
83
false
mcs07/PubChemPy
get_substances
23,522
LDU_FT/wbond/pybars3/_extract_word
LDU_FT
[ "<BEGIN>\n## `prepare`", "Prepares a value to be added to the result", " :param value:\n The value to add to the result", " :param should_escape:\n If the string should be HTML-escaped", " :return:\n A unicode string or strlist\n<END>", "<BEGIN>\n## `grow`", "Make the list ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_word API. 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 _extract_word API. 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...
Extracts the word that falls at or around a specific position :param source: The template source as a unicode string :param position: The position where the word falls :return: The word
"Extracts the word that falls at or around a specific position\n\n :param source:\n The template source as a unicode string\n :param position:\n The position where the word falls\n\n :return:\n The word"
22
false
wbond/pybars3
_extract_word
23,523
LDU_FT/sashahart/cookies/render_request
LDU_FT
[ "<BEGIN>\n## `strip_spaces_and_quotes`", "Remove invalid whitespace and/or single pair of dquotes and return None\n for empty strings.", " Used to prepare cookie values, path, and domain attributes in a way which\n tolerates simple formatting mistakes and standards variations.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_request API. 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 render_request API. 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...
Render as a string formatted for HTTP request headers (simple 'Cookie: ' style).
"Render as a string formatted for HTTP request headers\n (simple 'Cookie: ' style)."
63
false
sashahart/cookies
render_request
23,524
LDU_FT/a10networks/a10-neutron-lbaas/create_a10_device_instance
LDU_FT
[ "<BEGIN>\n## `create_a10_device_instance`", "Attempt to create instance using neutron context\n<END>", "<BEGIN>\n## `vport_meta`", "Get the vport meta, no matter which name was used\n<END>", "<BEGIN>\n## `apply_template`", "Applies every callable in any Mapping or Iterable\n<END>", "<BEGIN>\n## `initial...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_a10_device_instance 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_a10_device_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Attempt to create instance using neutron context
"Attempt to create instance using neutron context"
20
false
a10networks/a10-neutron-lbaas
create_a10_device_instance
23,525
LDU_FT/fhs/pyhdf/setfields
LDU_FT
[ "<BEGIN>\n## `end`", "Close the V interface.", " Args::", " No argument", " Returns::", " None", " C library equivalent : Vend\n<END>", "<BEGIN>\n## `attach`", "Open an existing vgroup given its name or its reference\n number, or create a new vgroup, ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setfields API. 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 setfields API. 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...
Define the name and order of the fields to access with the read() and write() methods. Args:: fldNames variable length argument specifying one or more vdata field names Returns:: None C library equivalent : VSsetfields setfields() in...
"Define the name and order of the fields to access\n with the read() and write() methods.\n\n Args::\n\n fldNames variable length argument specifying one or more\n vdata field names\n\n Returns::\n\n None\n\n C library equivalent : VSsetfields\n\n ...
605
false
fhs/pyhdf
setfields
23,526
LDU_FT/leonidessaguisagjr/unicodeutil/lookup_by_partial_name
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 lookup_by_partial_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_by_partial_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....
Similar to lookup_by_name(name), this method uses loose matching rule UAX44-LM2 to attempt to find the UnicodeCharacter associated with a name. However, it attempts to permit even looser matching by doing a substring search instead of a simple match. This method will return a generator that yields ins...
"Similar to lookup_by_name(name), this method uses loose matching rule UAX44-LM2 to attempt to find the\n UnicodeCharacter associated with a name. However, it attempts to permit even looser matching by doing a\n substring search instead of a simple match. This method will return a generator that yields ...
86
false
leonidessaguisagjr/unicodeutil
lookup_by_partial_name
23,527
LDU_FT/Cog-Creators/Red-Lavalink/disconnect
LDU_FT
[ "<BEGIN>\n## `wait_until_ready`", "Waits for the underlying node to become ready.", " If no_raise is set, returns false when a timeout occurs instead of propogating TimeoutError.\n A timeout of None means to wait indefinitely.\n<END>", "<BEGIN>\n## `connect`", "Connects to the voice channel as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect API. 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 disconnect API. 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...
Shuts down and disconnects the websocket.
"Shuts down and disconnects the websocket."
103
false
Cog-Creators/Red-Lavalink
disconnect
23,528
LDU_FT/jcushman/pdfquery/get_page_number
LDU_FT
[ "<BEGIN>\n## `_append_sorted`", "Add el as a child of root, or as a child of one of root's children.\r\n Comparator is a function(a, b) returning > 0 if a is a child of b, < 0 if\r\n b is a child of a, 0 if neither.\n<END>", "<BEGIN>\n## `_box_in_box`", "Return True if child is contained within el.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_page_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 e...
Given an index, return page label as specified by catalog['PageLabels']['Nums'] In a PDF, page labels are stored as a list of pairs, like [starting_index, label_format, starting_index, label_format ...] For example: [0, {'S': 'D', 'St': 151}, 4, {'S':'R', 'P':'Foo'}] ...
"Given an index, return page label as specified by\r\n catalog['PageLabels']['Nums']\r\n\r\n In a PDF, page labels are stored as a list of pairs, like\r\n [starting_index, label_format, starting_index, label_format ...]\r\n\r\n For example:\r\n [0, {'S': 'D', 'St': 151}, 4, {'S':'R', ...
37
false
jcushman/pdfquery
get_page_number
23,529
LDU_FT/google/python_portpicker/_pick_unused_port_without_server
LDU_FT
[ "<BEGIN>\n## `_should_allocate_port`", "Determine if we should allocate a port for use by the given process id.\n<END>", "<BEGIN>\n## `_parse_command_line`", "Configure and parse our command line flags.\n<END>", "<BEGIN>\n## `_parse_port_ranges`", "Given a 'N-P,X-Y' description of port ranges, return a se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pick_unused_port_without_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pick_unused_port_without_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Pick an available network port without the help of a port server. This code ensures that the port is available on both TCP and UDP. This function is an implementation detail of PickUnusedPort(), and should not be called by code outside of this module. Returns: A port number that is unused on bo...
"Pick an available network port without the help of a port server.\n\n This code ensures that the port is available on both TCP and UDP.\n\n This function is an implementation detail of PickUnusedPort(), and\n should not be called by code outside of this module.\n\n Returns:\n A port number that is unu...
42
false
google/python_portpicker
_pick_unused_port_without_server
23,530
LDU_FT/IBM/ibm-cos-sdk-python-s3transfer/store
LDU_FT
[ "<BEGIN>\n## `store`", "store a config value in a dictionary, these values are used to populate a trasnfer spec\n validation -- check type, check allowed values and rename if required\n<END>", "<BEGIN>\n## `multi_session`", "convert the multi_session param a number\n<END>", "<BEGIN>\n## `_raw_asp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store API. 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 store API. 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...
store a config value in a dictionary, these values are used to populate a trasnfer spec validation -- check type, check allowed values and rename if required
"store a config value in a dictionary, these values are used to populate a trasnfer spec\n validation -- check type, check allowed values and rename if required"
89
false
IBM/ibm-cos-sdk-python-s3transfer
store
23,531
LDU_FT/The-Politico/politico-civic-election-night/get_override_votes
LDU_FT
[ "<BEGIN>\n## `get_images`", "Object of images serialized by tag name.\n<END>", "<BEGIN>\n## `get_override_votes`", "Votes entered into backend.\n Only used if ``override_ap_votes = True``.\n<END>", "<BEGIN>\n## `get_queryset`", "Returns a queryset of all executive offices holding an election on\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_override_votes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_override_votes 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...
Votes entered into backend. Only used if ``override_ap_votes = True``.
"Votes entered into backend.\n Only used if ``override_ap_votes = True``."
62
false
The-Politico/politico-civic-election-night
get_override_votes
23,532
LDU_FT/night-crawler/django-docker-helpers/wf
LDU_FT
[ "<BEGIN>\n## `get`", ":param variable_path: a delimiter-separated path to a nested value\n :param default: default value if there's no object by specified path\n :param coerce_type: cast a type of a value to a specified one\n :param coercer: perform a type casting with specified callback\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Writes a given ``raw_str`` into a ``stream``. Ignores output if ``prevent_completion_polluting`` is set and there's no extra ``sys.argv`` arguments present (a bash completion issue). :param raw_str: a raw string to print :param flush: execute ``flush()`` :param prevent_completion_polluting: don't write...
"Writes a given ``raw_str`` into a ``stream``. Ignores output if ``prevent_completion_polluting`` is set and there's\n no extra ``sys.argv`` arguments present (a bash completion issue).\n\n :param raw_str: a raw string to print\n :param flush: execute ``flush()``\n :param prevent_completion_polluting: don't...
141
false
night-crawler/django-docker-helpers
wf
23,533
LDU_FT/kobejohn/PQHelper/_is_impossible_by_count
LDU_FT
[ "<BEGIN>\n## `_create_board_image_cv`", "Return a cv image of the board or empty board if not provided.\n<END>", "<BEGIN>\n## `_draw_swap_cv`", "Add a white tile border to indicate the swap.\n<END>", "<BEGIN>\n## `_convert_cv_to_tk`", "Convert an OpenCV image to a tkinter PhotoImage\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_impossible_by_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_impossible_by_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...
Disallow any board that has insufficient tile count to solve.
"Disallow any board that has insufficient tile count to solve."
114
false
kobejohn/PQHelper
_is_impossible_by_count
23,534
LDU_FT/taskcluster/taskcluster-client.py/status
LDU_FT
[ "<BEGIN>\n## `ping`", "Ping Server", " Respond without doing anything.\n This endpoint is used to check that the service is up.", " This method is ``stable``\n<END>", "<BEGIN>\n## `githubWebHookConsumer`", "Consume GitHub WebHook", " Capture a GitHub event and publish it via ...
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 task status Get task status structure from `taskId` This method gives output: ``v1/task-status-response.json#`` This method is ``stable``
"Get task status\n\n Get task status structure from `taskId`\n\n This method gives output: ``v1/task-status-response.json#``\n\n This method is ``stable``"
997
false
taskcluster/taskcluster-client.py
status
23,535
LDU_FT/tensorflow/mesh/multiply
LDU_FT
[ "<BEGIN>\n## `make_layer_stack`", "Configurable layer stack.", " Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>", "<BEGIN>\n## `make_bitransformer`", "Gin-configurable bitransformer constructor.", " In your config file you nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multiply API. 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 multiply API. 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...
Binary multiplication with broadcasting. Args: x1: a Tensor x2: a Tensor output_shape: an optional Shape name: an optional string Returns: a Tensor
"Binary multiplication with broadcasting.\n\n Args:\n x1: a Tensor\n x2: a Tensor\n output_shape: an optional Shape\n name: an optional string\n Returns:\n a Tensor"
958
false
tensorflow/mesh
multiply
23,536
LDU_FT/hyperboria/python-cjdns/bdecode
LDU_FT
[ "<BEGIN>\n## `bdecode`", "Decodes a bencoded bytearray and returns it as a python object\n<END>", "<BEGIN>\n## `readme`", "Reads a markdown file and returns the contents formatted as rst\n<END>", "<BEGIN>\n## `_receiverThread`", "Receiving messages from cjdns admin server\n<END>", "<BEGIN>\n## `connect`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bdecode API. 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 bdecode API. 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...
Decodes a bencoded bytearray and returns it as a python object
"Decodes a bencoded bytearray and returns it as a python object"
10
false
hyperboria/python-cjdns
bdecode
23,537
LDU_FT/edx/edx-django-utils/get_cached_response
LDU_FT
[ "<BEGIN>\n## `accumulate_metric`", "Accumulate a custom metric (name and value) in the metrics cache.\n<END>", "<BEGIN>\n## `_batch_report`", "Report the collected custom metrics to New Relic.\n<END>", "<BEGIN>\n## `process_response`", "Logs memory data after processing response.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Retrieves a CachedResponse for the provided key. Args: key (string) Returns: A CachedResponse with is_found status and value.
"Retrieves a CachedResponse for the provided key.\n\n Args:\n key (string)\n\n Returns:\n A CachedResponse with is_found status and value."
55
false
edx/edx-django-utils
get_cached_response
23,538
LDU_FT/pyca/pynacl/kdf
LDU_FT
[ "<BEGIN>\n## `ensure`", "Return if a condition is true, otherwise raise a caller-configurable\n :py:class:`Exception`\n :param bool cond: the condition to be checked\n :param sequence args: the arguments to be passed to the exception's\n constructor\n The only accepted named p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kdf API. 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 kdf API. 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...
Derive a ``size`` bytes long key from a caller-supplied ``password`` and ``salt`` pair using the argon2i memory-hard construct. the enclosing module provides the constants - :py:const:`.OPSLIMIT_INTERACTIVE` - :py:const:`.MEMLIMIT_INTERACTIVE` - :py:const:`.OPSLIMIT_MODERATE` ...
"Derive a ``size`` bytes long key from a caller-supplied\n ``password`` and ``salt`` pair using the argon2i\n memory-hard construct.\n\n the enclosing module provides the constants\n\n - :py:const:`.OPSLIMIT_INTERACTIVE`\n - :py:const:`.MEMLIMIT_INTERACTIVE`\n - :py:const:`.OPSLIMIT_MODERA...
266
false
pyca/pynacl
kdf
23,539
LDU_FT/rorr73/LifeSOSpy/async_set_operation_mode
LDU_FT
[ "<BEGIN>\n## `has_value`", "True if specified value exists in int enum; otherwise, False.\n<END>", "<BEGIN>\n## `parse_name`", "Parse specified name for IntEnum; return default if not found.\n<END>", "<BEGIN>\n## `parse_value`", "Parse specified value for IntEnum; return default if not found.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the async_set_operation_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the async_set_operation_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Set the operation mode on the base unit. :param operation_mode: the operation mode to change to :param password: if specified, will be used instead of the password property when issuing the command
"Set the operation mode on the base unit.\n\n :param operation_mode: the operation mode to change to\n :param password: if specified, will be used instead of the password\n property when issuing the command"
84
false
rorr73/LifeSOSpy
async_set_operation_mode
23,540
LDU_FT/squaresLab/BugZoo/build
LDU_FT
[ "<BEGIN>\n## `is_installed`", "Determines whether the Docker image for a given bug has been installed\n on the server.\n<END>", "<BEGIN>\n## `register`", "Dynamically registers a given bug with the server. Note that the\n registration will not persist beyond the lifetime of the server.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Builds the Docker image associated with a given bug. See: `BuildManager.build`
"Builds the Docker image associated with a given bug.\n\n See: `BuildManager.build`"
247
false
squaresLab/BugZoo
build
23,541
LDU_FT/trolldbois/ctypeslib/set_location
LDU_FT
[ "<BEGIN>\n## `init_fundamental_types`", "Registers all fundamental typekind handlers\n<END>", "<BEGIN>\n## `_handle_fundamental_types`", "Handles POD types nodes.\n see init_fundamental_types for the registration.\n<END>", "<BEGIN>\n## `_array_handler`", "Handles all array types.\n Resolves ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_location API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_location API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Location is also used for codegeneration ordering.
"Location is also used for codegeneration ordering."
88
false
trolldbois/ctypeslib
set_location
23,542
LDU_FT/gwww/elkm1/get_descriptions
LDU_FT
[ "<BEGIN>\n## `housecode_to_index`", "Convert a X10 housecode to a zero-based index\n<END>", "<BEGIN>\n## `index_to_housecode`", "Convert a zero-based index to a X10 housecode.\n<END>", "<BEGIN>\n## `_check_message_valid`", "Check packet length valid and that checksum is good.\n<END>", "<BEGIN>\n## `zb_e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_descriptions API. 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_descriptions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Gets the descriptions for specified type. When complete the callback is called with a list of descriptions
"Gets the descriptions for specified type.\n When complete the callback is called with a list of descriptions"
32
false
gwww/elkm1
get_descriptions
23,543
LDU_FT/delfick/gitmit/tree_structures_for
LDU_FT
[ "<BEGIN>\n## `relpath_for`", "Find the relative path from here from the parent_dir\n<END>", "<BEGIN>\n## `find`", "Find all the files we want to find commit times for, and any extra files\n under symlinks.", " Then find the commit times for those files and return a dictionary of\n {rela...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree_structures_for 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 tree_structures_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return the entries for this commit, the entries of the parent commits, and the difference between the two (current_files - parent_files)
"Return the entries for this commit, the entries of the parent commits,\n and the difference between the two (current_files - parent_files)"
57
false
delfick/gitmit
tree_structures_for
23,544
LDU_FT/jeffknupp/sandman/update_resource
LDU_FT
[ "<BEGIN>\n## `endpoint`", "Return the :class:`sandman.model.Model`'s endpoint.", " :rtype: string\n<END>", "<BEGIN>\n## `resource_uri`", "Return the URI at which the resource can be found.", " :rtype: string\n<END>", "<BEGIN>\n## `primary_key`", "Return the name of the table's primary ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_resource API. 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 update_resource API. 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...
Replace the contents of a resource with *data* and return an appropriate *Response*. :param resource: :class:`sandman.model.Model` to be updated :param data: New values for the fields in *resource*
"Replace the contents of a resource with *data* and return an appropriate\n *Response*.\n\n :param resource: :class:`sandman.model.Model` to be updated\n :param data: New values for the fields in *resource*"
126
false
jeffknupp/sandman
update_resource
23,545
LDU_FT/piglei/uwsgi-sloth/format_data
LDU_FT
[ "<BEGIN>\n## `merge_with`", "Merge this ``ValuesAggregation`` with another one\n<END>", "<BEGIN>\n## `force_bytes`", "A function turns \"s\" into bytes object, similar to django.utils.encoding.force_bytes\n<END>", "<BEGIN>\n## `force_text`", "A function turns \"s\" into text type, similar to django.utils....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_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 extra...
Fomat data from LogAnalyzer for render purpose
"Fomat data from LogAnalyzer for render purpose"
25
false
piglei/uwsgi-sloth
format_data
23,546
LDU_FT/dschep/ntfy/notify
LDU_FT
[ "<BEGIN>\n## `notify`", "Required parameters:\n * ``user_key``", " Optional parameters:\n * ``sound``\n * ``priority``\n * ``expire``\n * ``retry``\n * ``callback``\n * ``api_token`` - use your own application token\n * ``device`` - target a device, if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify API. 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 notify API. 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 ...
adapted from https://gist.github.com/baliw/4020619
"adapted from https://gist.github.com/baliw/4020619"
44
false
dschep/ntfy
notify
23,547
LDU_FT/MacHu-GWU/pymongo_mate-project/_freq_parser
LDU_FT
[ "<BEGIN>\n## `read_csv_arg_preprocess`", "Automatically decide if we need to use iterator mode to read a csv file.", " :param abspath: csv file absolute path.\n :param memory_usage: max memory will be used for pandas.read_csv().\n<END>", "<BEGIN>\n## `smart_insert`", "An optimized Insert strategy.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _freq_parser API. 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 _freq_parser API. 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...
Parse timedelta. Valid keywords "days", "day", "d", "hours", "hour", "h", "minutes", "minute", "min", "m", "seconds", "second", "sec", "s", "weeks", "week", "w",
"Parse timedelta.\n\n Valid keywords \"days\", \"day\", \"d\", \"hours\", \"hour\", \"h\",\n \"minutes\", \"minute\", \"min\", \"m\", \"seconds\", \"second\", \"sec\", \"s\",\n \"weeks\", \"week\", \"w\","
188
false
MacHu-GWU/pymongo_mate-project
_freq_parser
23,548
LDU_FT/thornomad/django-hitcount/_update_hit_count
LDU_FT
[ "<BEGIN>\n## `filter_active`", "Return only the 'active' hits.", " How you count a hit/view will depend on personal choice: Should the\n same user/visitor *ever* be counted twice? After a week, or a month,\n or a year, should their view be counted again?", " The defaulf is to cons...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_hit_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_hit_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...
Deprecated in 1.2. Use hitcount.views.Hit CountMixin.hit_count() instead.
"Deprecated in 1.2. Use hitcount.views.Hit CountMixin.hit_count() instead."
28
false
thornomad/django-hitcount
_update_hit_count
23,549
LDU_FT/toumorokoshi/sprinter/validate
LDU_FT
[ "<BEGIN>\n## `whitespace_smart_split`", "Split a command by whitespace, taking care to not split on\n whitespace within quotes.", " >>> whitespace_smart_split(\"test this \\\\\\\"in here\\\\\\\" again\")\n ['test', 'this', '\"in here\"', 'again']\n<END>", "<BEGIN>\n## `sync`", "execute the steps re...
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...
validates the feature configuration, and returns a list of errors (empty list if no error) validate should: * required variables * warn on unused variables errors should either be reported via self._log_error(), or raise an exception
"validates the feature configuration, and returns a list of errors (empty list if no error)\n\n validate should:\n\n * required variables\n * warn on unused variables\n\n errors should either be reported via self._log_error(), or raise an exception"
150
false
toumorokoshi/sprinter
validate
23,550
LDU_FT/Riparo/nougat/load_from_object
LDU_FT
[ "<BEGIN>\n## `is_middleware`", "test whether it is a middleware\n :return: Boolean\n<END>", "<BEGIN>\n## `set_header`", "set response header\n :param key: the key of header\n :param value: the value of header\n<END>", "<BEGIN>\n## `send_http_response`", "generate http response payload and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
load all upper parameters of object as config parameters :param object_name: the object you wanna load :return:
"load all upper parameters of object as config parameters\n :param object_name: the object you wanna load\n :return:"
16
false
Riparo/nougat
load_from_object
23,551
LDU_FT/buildinspace/peru/find_project_file
LDU_FT
[ "<BEGIN>\n## `_find_plugin_dir`", "Find the directory containing the plugin definition for the given type.\n Do this by searching all the paths where plugins can live for a dir that\n matches the type name.\n<END>", "<BEGIN>\n## `_get_plugin_install_dirs`", "Return all the places on the filesystem where...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_project_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_project_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...
Walk up the directory tree until we find a file of the given name.
"Walk up the directory tree until we find a file of the given name."
75
false
buildinspace/peru
find_project_file
23,552
LDU_FT/MahjongRepository/mahjong/string_to_136_array
LDU_FT
[ "<BEGIN>\n## `calculate_scores`", "Calculate how much scores cost a hand with given han and fu\n :param han: int\n :param fu: int\n :param config: HandConfig object\n :param is_yakuman: boolean\n :return: a dictionary with main and additional cost\n for ron additional cos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the string_to_136_array 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 string_to_136_array 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...
Method to convert one line string tiles format to the 136 array. You can pass r instead of 5 for it to become a red five from that suit. To prevent old usage without red, has_aka_dora has to be True for this to do that. We need it to increase readability of our tests
"Method to convert one line string tiles format to the 136 array.\n You can pass r instead of 5 for it to become a red five from \n that suit. To prevent old usage without red, \n has_aka_dora has to be True for this to do that.\n We need it to increase readability of our tests"
41
false
MahjongRepository/mahjong
string_to_136_array
23,553
LDU_FT/proycon/clam/get
LDU_FT
[ "<BEGIN>\n## `convertforinput`", "Convert from target format into one of the source formats. Relevant if converters are used in InputTemplates. Metadata already is metadata for the to-be-generated file. 'filepath' is both the source and the target file, the source file will be erased and overwritten with the conv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Main Get method: Get project state, parameters, outputindex
"Main Get method: Get project state, parameters, outputindex"
194
false
proycon/clam
get
23,554
LDU_FT/pydsigner/taskit/add_backends
LDU_FT
[ "<BEGIN>\n## `_wait`", "Based upon an extract from threading.Condition().wait(). Immediately \n tries to acquire the lock, and then sleeps for a period of time (going \n 1/2ms..1ms..2ms..4ms...50ms..50ms), repeating until the lock is \n acquired or the timeout limit is reached.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_backends API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_backends API. 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...
See the documentation for __init__() to see an explanation of the *backends argument.
"See the documentation for __init__() to see an explanation of the \n *backends argument."
59
false
pydsigner/taskit
add_backends
23,555
LDU_FT/jkwill87/teletype/ascii_mode
LDU_FT
[ "<BEGIN>\n## `set_style`", "Sets primary and secondary component styles.\n<END>", "<BEGIN>\n## `set_char`", "Updates charters used to render components.\n<END>", "<BEGIN>\n## `ascii_mode`", "Disables color and switches to an ASCII character set if True.\n<END>", "<BEGIN>\n## `erase_lines`", "Erases n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ascii_mode API. 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 ascii_mode API. 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...
Disables color and switches to an ASCII character set if True.
"Disables color and switches to an ASCII character set if True."
16
false
jkwill87/teletype
ascii_mode
23,556
LDU_FT/gunthercox/ChatterBot/create
LDU_FT
[ "<BEGIN>\n## `get_response`", "Return the bot's response based on the input.", " :param statement: An statement object or string.\n :returns: A response to the input.\n :rtype: Statement", " :param additional_response_selection_parameters: Parameters to pass to the\n cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. 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 create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Creates a new statement matching the keyword arguments specified. Returns the created statement.
"Creates a new statement matching the keyword arguments specified.\n Returns the created statement."
158
false
gunthercox/ChatterBot
create
23,557
LDU_FT/GoogleCloudPlatform/google-cloud-datastore/to_timestamp
LDU_FT
[ "<BEGIN>\n## `get_default_connection`", "Returns the default datastore connection.", " Defaults endpoint to helper.get_project_endpoint_from_env() and\n credentials to helper.get_credentials_from_env().", " Use set_options to override defaults.\n<END>", "<BEGIN>\n## `get_all`", "Query for all Todo item...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_timestamp API. 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 to_timestamp API. 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...
Convert datetime to google.protobuf.Timestamp. Args: dt: a timezone naive datetime. timestamp: a google.protobuf.Timestamp to populate. Raises: TypeError: if a timezone aware datetime was provided.
"Convert datetime to google.protobuf.Timestamp.\n\n Args:\n dt: a timezone naive datetime.\n timestamp: a google.protobuf.Timestamp to populate.\n\n Raises:\n TypeError: if a timezone aware datetime was provided."
94
false
GoogleCloudPlatform/google-cloud-datastore
to_timestamp
23,558
LDU_FT/qubole/qds-sdk-py/parse
LDU_FT
[ "<BEGIN>\n## `_parse_list`", "Parse command line arguments to construct a dictionary of cluster\n parameters that can be used to determine which clusters to list.", " Args:\n `args`: sequence of arguments", " Returns:\n Dictionary that can be used to determine which ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse command line arguments to construct a dictionary of command parameters that can be used to create a command Args: `args`: sequence of arguments Returns: Dictionary that can be used in create method Raises: ParseError: when the arguments are no...
"Parse command line arguments to construct a dictionary of command\n parameters that can be used to create a command\n\n Args:\n `args`: sequence of arguments\n\n Returns:\n Dictionary that can be used in create method\n\n Raises:\n ParseError: when the argum...
316
false
qubole/qds-sdk-py
parse
23,559
LDU_FT/elmotec/massedit/set_code_exprs
LDU_FT
[ "<BEGIN>\n## `get_function`", "Retrieve the function defined by the function_name.", " Arguments:\n fn_name: specification of the type module:function_name.\n<END>", "<BEGIN>\n## `parse_command_line`", "Parse command line argument. See -h option.", " Arguments:\n argv: arguments on the com...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_code_exprs API. 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 set_code_exprs API. 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...
Convenience: sets all the code expressions at once.
"Convenience: sets all the code expressions at once."
43
false
elmotec/massedit
set_code_exprs
23,560
LDU_FT/mapillary/mapillary_tools/get_lat_lon_time_from_gpx
LDU_FT
[ "<BEGIN>\n## `convert_from_gps_time`", "Convert gps time in ticks to standard time.\n<END>", "<BEGIN>\n## `upload`", "Upload local images to Mapillary\n Args:\n import_path: Directory path to where the images are stored.\n verbose: Print extra warnings and errors.\n skip_subfolders: Sk...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lat_lon_time_from_gpx API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lat_lon_time_from_gpx API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Read location and time stamps from a track in a GPX file. Returns a list of tuples (time, lat, lon). GPX stores time in UTC, by default we assume your camera used the local time and convert accordingly.
"Read location and time stamps from a track in a GPX file.\n\n Returns a list of tuples (time, lat, lon).\n\n GPX stores time in UTC, by default we assume your camera used the local time\n and convert accordingly."
96
false
mapillary/mapillary_tools
get_lat_lon_time_from_gpx
23,561
LDU_FT/rigetti/pyquil/exitCircuitGate
LDU_FT
[ "<BEGIN>\n## `to_latex`", "Translates a given pyquil Program to a TikZ picture in a Latex document.", " :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exitCircuitGate API. 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 exitCircuitGate API. 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...
PyQuil has no constructs yet for representing gate instructions within a DEFCIRCUIT (ie. gates where the qubits are inputs to the call to the circuit). Therefore we parse them as a raw instructions.
"PyQuil has no constructs yet for representing gate instructions within a DEFCIRCUIT (ie. gates where the qubits\n are inputs to the call to the circuit). Therefore we parse them as a raw instructions."
1,152
true
rigetti/pyquil
exitCircuitGate
23,562
LDU_FT/django-dbbackup/django-dbbackup/run_command
LDU_FT
[ "<BEGIN>\n## `_cleanup_old_backups`", "Cleanup old backups, keeping the number of backups specified by\n DBBACKUP_CLEANUP_KEEP and any backups that occur on first of the month.\n<END>", "<BEGIN>\n## `_explore_storage`", "Generator of all files contained in media storage.\n<END>", "<BEGIN>\n## `backup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Launch a shell command line. :param command: Command line to launch :type command: str :param stdin: Standard input of command :type stdin: file :param env: Environment variable used in command :type env: dict :return: Standard output of command :rtype: f...
"Launch a shell command line.\n\n :param command: Command line to launch\n :type command: str\n :param stdin: Standard input of command\n :type stdin: file\n :param env: Environment variable used in command\n :type env: dict\n :return: Standard output of command\n ...
99
false
django-dbbackup/django-dbbackup
run_command
23,563
LDU_FT/VikParuchuri/percept/_configure_logging
LDU_FT
[ "<BEGIN>\n## `train`", "Calculate the standard deviations and means in the training data\n<END>", "<BEGIN>\n## `predict`", "Adjust new input by the values in the training data\n<END>", "<BEGIN>\n## `save`", "Save an object, and use id_code in the filename\n obj - any object\n id_code - uniqu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _configure_logging API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _configure_logging API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Setting up logging from logging config in settings
"Setting up logging from logging config in settings"
72
false
VikParuchuri/percept
_configure_logging
23,564
LDU_FT/capless/warrant/get_user
LDU_FT
[ "<BEGIN>\n## `dict_to_cognito`", ":param attributes: Dictionary of User Pool attribute names/values\n :return: list of User Pool attribute formatted dicts: {'Name': <attr_name>, 'Value': <attr_value>}\n<END>", "<BEGIN>\n## `snake_to_camel`", ":param snake_str: string\n :return: string converted from a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns a UserObj (or whatever the self.user_class is) by using the user's access token. :param attr_map: Dictionary map from Cognito attributes to attribute names we would like to show to our users :return:
"Returns a UserObj (or whatever the self.user_class is) by using the\n user's access token.\n :param attr_map: Dictionary map from Cognito attributes to attribute\n names we would like to show to our users\n :return:"
61
false
capless/warrant
get_user
23,565
LDU_FT/Phyks/libbmc/get_plaintext_citations
LDU_FT
[ "<BEGIN>\n## `is_valid`", "Check that a given HAL id is a valid one.", " :param hal_id: The HAL id to be checked.\n :returns: Boolean indicating whether the HAL id is valid or not.", " >>> is_valid(\"hal-01258754, version 1\")\n True", " >>> is_valid(\"hal-01258754\")\n True", " >>> i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plaintext_citations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plaintext_citations 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 BibTeX file to get a clean list of plaintext citations. :param bibtex: Either the path to the BibTeX file or the content of a \ BibTeX file. :returns: A list of cleaned plaintext citations.
"Parse a BibTeX file to get a clean list of plaintext citations.\n\n :param bibtex: Either the path to the BibTeX file or the content of a \\\n BibTeX file.\n :returns: A list of cleaned plaintext citations."
271
false
Phyks/libbmc
get_plaintext_citations
23,566
LDU_FT/facelessuser/bracex/get_sequence
LDU_FT
[ "<BEGIN>\n## `set_expanding`", "Set that we are expanding a sequence, and return whether a release is required by the caller.\n<END>", "<BEGIN>\n## `squash`", "Returns a generator that squashes two iterables into one.", " ```\n ['this', 'that'], [[' and', ' or']] => ['this and', 'this or', 'th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sequence API. 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_sequence API. 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...
Get the sequence. Get sequence between `{}`, such as: `{a,b}`, `{1..2[..inc]}`, etc. It will basically crawl to the end or find a valid series.
"Get the sequence.\n\n Get sequence between `{}`, such as: `{a,b}`, `{1..2[..inc]}`, etc.\n It will basically crawl to the end or find a valid series."
20
false
facelessuser/bracex
get_sequence
23,567
LDU_FT/stephrdev/django-formwizard/get_prev_step
LDU_FT
[ "<BEGIN>\n## `as_view`", "This method is used within urls.py to create unique formwizard\n instances for every request. We need to override this method because\n we add some kwargs which are needed to make the formwizard usable.\n<END>", "<BEGIN>\n## `get_initkwargs`", "Creates a dict with all n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prev_step API. 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 get_prev_step API. 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...
Returns the previous step before the given `step`. If there are no steps available, None will be returned. If the `step` argument is None, the current step will be determined automatically.
"Returns the previous step before the given `step`. If there are no\n steps available, None will be returned. If the `step` argument is\n None, the current step will be determined automatically."
60
false
stephrdev/django-formwizard
get_prev_step
23,568
LDU_FT/eumis/pyviews/run_code
LDU_FT
[ "<BEGIN>\n## `parse_expression`", "Returns tuple with expression type and expression body\n<END>", "<BEGIN>\n## `register_single`", "Generates resolver to return singleton value and adds it to global container\n<END>", "<BEGIN>\n## `wrap_with_scope`", "Wraps function with scope. If scope_name is None curr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_code API. 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 node content as python module and adds its definitions to globals
"Executes node content as python module and adds its definitions to globals"
34
false
eumis/pyviews
run_code
23,569
LDU_FT/alvarogzp/telegram-bot-framework/_get_worker_pools_names
LDU_FT
[ "<BEGIN>\n## `default_format`", "Returns full name (first and last) if name is available.\n If not, returns username if available.\n If not available too, returns the user id as a string.\n<END>", "<BEGIN>\n## `full_name`", "Returns the first and last name of the user separated by a space.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_worker_pools_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_worker_pools_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
May contain sensitive info (like user ids). Use with care.
"May contain sensitive info (like user ids). Use with care."
36
false
alvarogzp/telegram-bot-framework
_get_worker_pools_names
23,570
LDU_FT/smdabdoub/phylotoast/relative_abundance
LDU_FT
[ "<BEGIN>\n## `sample_group`", "Iterate through all categories in an OrderedDict and return category name if SampleID\n present in that category.", " :type sid: str\n :param sid: SampleID from dataset.", " :type groups: OrderedDict\n :param groups: Returned dict from phylotoast.util.gather_categ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relative_abundance 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 relative_abundance 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...
Calculate the relative abundance of each OTUID in a Sample. :type biomf: A BIOM file. :param biomf: OTU table format. :type sampleIDs: list :param sampleIDs: A list of sample id's from BIOM format OTU table. :rtype: dict :return: Returns a keyed on SampleIDs, and the values are dictionaries k...
"Calculate the relative abundance of each OTUID in a Sample.\n\n :type biomf: A BIOM file.\n :param biomf: OTU table format.\n\n :type sampleIDs: list\n :param sampleIDs: A list of sample id's from BIOM format OTU table.\n\n :rtype: dict\n :return: Returns a keyed on SampleIDs, and the values are dict...
200
false
smdabdoub/phylotoast
relative_abundance
23,571
LDU_FT/portfors-lab/sparkle/spike_times
LDU_FT
[ "<BEGIN>\n## `purgeDeletedWidgets`", "Finds old references to stashed fields and deletes them\n<END>", "<BEGIN>\n## `set_calibration`", "See :meth:`AbstractAcquisitionRunner<sparkle.run.abstract_acquisition.AbstractAcquisitionRunner.set_calibration>`\n<END>", "<BEGIN>\n## `set_current_stim_parameter`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spike_times API. 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 spike_times API. 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...
Detect spikes from a given signal :param signal: Spike trace recording (vector) :type signal: numpy array :param threshold: Threshold value to determine spikes :type threshold: float :param absval: Whether to apply absolute value to signal before thresholding :type absval: bool :returns: li...
"Detect spikes from a given signal\n\n :param signal: Spike trace recording (vector)\n :type signal: numpy array\n :param threshold: Threshold value to determine spikes\n :type threshold: float\n :param absval: Whether to apply absolute value to signal before thresholding\n :type absval: bool\n :re...
834
false
portfors-lab/sparkle
spike_times
23,572