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/mediawiki-utilities/python-mwtypes/extract_extension
LDU_FT
[ "<BEGIN>\n## `initialize`", "Contributing user's identifier : int | None\n<END>", "<BEGIN>\n## `reader`", "Turns a path to a dump file into a file-like object of (decompressed)\n XML data assuming that '7z' is installed and will know what to do.", " :Parameters:\n path : `str`\n the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_extension API. 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 extract_extension API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Reads a file path and returns the extension or None if the path contains no extension. :Parameters: path : str A filesystem path
"Reads a file path and returns the extension or None if the path\n contains no extension.\n\n :Parameters:\n path : str\n A filesystem path"
41
false
mediawiki-utilities/python-mwtypes
extract_extension
8,373
LDU_FT/apple/turicreate/predict
LDU_FT
[ "<BEGIN>\n## `ReadTag`", "Read a tag from the buffer, and return a (tag_bytes, new_pos) tuple.", " We return the raw bytes of the tag rather than decoding them. The raw\n bytes can then be used to look up the proper decoder. This effectively allows\n us to trade some work that would be done in pure-python ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Predict object instances in an sframe of images. Parameters ---------- dataset : SFrame | SArray | turicreate.Image The images on which to perform object detection. If dataset is an SFrame, it must have a column with the same name as the feature column during...
"Predict object instances in an sframe of images.\n\n Parameters\n ----------\n dataset : SFrame | SArray | turicreate.Image\n The images on which to perform object detection.\n If dataset is an SFrame, it must have a column with the same name\n as the feature colum...
7,340
true
apple/turicreate
predict
8,374
LDU_FT/opendatateam/udata/temporal_from_literal
LDU_FT
[ "<BEGIN>\n## `save`", "PeriodicTask is dynamic and save behavior changed\n See: https://github.com/zakird/celerybeat-mongo/commit/dfbbd20edde91134b57f5406d0ce4eac59d6899b\n<END>", "<BEGIN>\n## `has_manifest`", "Verify the existance of a JSON assets manifest\n<END>", "<BEGIN>\n## `from_manifest`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the temporal_from_literal 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 temporal_from_literal 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 temporal coverage from a literal ie. either: - an ISO date range - a single ISO date period (month,year)
"Parse a temporal coverage from a literal ie. either:\n - an ISO date range\n - a single ISO date period (month,year)"
476
false
opendatateam/udata
temporal_from_literal
8,375
LDU_FT/ofir123/py-printer/get_printer
LDU_FT
[ "<BEGIN>\n## `get_printer`", "Returns an already initialized instance of the printer.", " :param colors: If False, no colors will be printed.\n :param width_limit: If True, printing width will be limited by console width.\n :param disabled: If True, nothing will be printed.\n<END>", "<BEGIN>\n## `_ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_printer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_printer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns an already initialized instance of the printer. :param colors: If False, no colors will be printed. :param width_limit: If True, printing width will be limited by console width. :param disabled: If True, nothing will be printed.
"Returns an already initialized instance of the printer.\n\n :param colors: If False, no colors will be printed.\n :param width_limit: If True, printing width will be limited by console width.\n :param disabled: If True, nothing will be printed."
46
false
ofir123/py-printer
get_printer
8,376
LDU_FT/rasguanabana/ytfs/unregisterHandler
LDU_FT
[ "<BEGIN>\n## `__getChannelId`", "Obtain channel id for channel name, if present in ``self.search_params``.\n<END>", "<BEGIN>\n## `__searchParser`", "Parse `query` for advanced search options.", " Parameters\n ----------\n query : str\n Search query to parse. Besides a search ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unregisterHandler API. 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 unregisterHandler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Unregister a file descriptor. Clean data, if such operation has been scheduled. Parameters ---------- fh : int File descriptor.
"Unregister a file descriptor. Clean data, if such operation has been scheduled.\n\n Parameters\n ----------\n fh : int\n File descriptor."
109
false
rasguanabana/ytfs
unregisterHandler
8,377
LDU_FT/kislyuk/ensure/ensure_annotations
LDU_FT
[ "<BEGIN>\n## `ensure_annotations`", "Decorator to be used on functions with annotations. Runs type checks to enforce annotations. Raises\n :class:`EnsureError` if any argument passed to *f* is not of the type specified by the annotation. Also raises\n :class:`EnsureError` if the return value of *f* is not o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_annotations 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 ensure_annotations 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...
Decorator to be used on functions with annotations. Runs type checks to enforce annotations. Raises :class:`EnsureError` if any argument passed to *f* is not of the type specified by the annotation. Also raises :class:`EnsureError` if the return value of *f* is not of the type specified by the annotation. Examp...
"Decorator to be used on functions with annotations. Runs type checks to enforce annotations. Raises\n :class:`EnsureError` if any argument passed to *f* is not of the type specified by the annotation. Also raises\n :class:`EnsureError` if the return value of *f* is not of the type specified by the annotation. Ex...
81
false
kislyuk/ensure
ensure_annotations
8,378
LDU_FT/bernardopires/django-tenant-schemas/best_practice
LDU_FT
[ "<BEGIN>\n## `clean_tenant_url`", "Removes the TENANT_TOKEN from a particular string\n<END>", "<BEGIN>\n## `app_labels`", "Returns a list of app labels of the given apps_list, now properly handles\n new Django 1.7+ application registry.", " https://docs.djangoproject.com/en/1.8/ref/applications/#djan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the best_practice API. 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 best_practice API. 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...
Test for configuration recommendations. These are best practices, they avoid hard to find bugs and unexpected behaviour.
"Test for configuration recommendations. These are best practices, they\n avoid hard to find bugs and unexpected behaviour."
31
false
bernardopires/django-tenant-schemas
best_practice
8,379
LDU_FT/PyMLGame/pymlgame/_del_controller
LDU_FT
[ "<BEGIN>\n## `update`", "Update the screens contents in every loop.\n<END>", "<BEGIN>\n## `render`", "Send the current screen content to Mate Light.\n<END>", "<BEGIN>\n## `gameloop`", "A game loop that circles through the methods.\n<END>", "<BEGIN>\n## `init`", "Initialize PyMLGame. This creates a con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _del_controller API. 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 _del_controller API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Remove controller from internal list and tell the game. :param uid: Unique id of the controller :type uid: str
"Remove controller from internal list and tell the game.\n\n :param uid: Unique id of the controller\n :type uid: str"
63
false
PyMLGame/pymlgame
_del_controller
8,380
LDU_FT/rytilahti/python-songpal/asdict
LDU_FT
[ "<BEGIN>\n## `make`", "Create a container.", " Reports extra keys as well as missing ones.\n Thanks to habnabit for the idea!\n<END>", "<BEGIN>\n## `create_post_request`", "Call the given method over POST.", " :param method: Name of the method\n :param params: dict of parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asdict API. 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 asdict API. 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 a dictionary describing the method. This can be used to dump the information into a JSON file.
"Return a dictionary describing the method.\n\n This can be used to dump the information into a JSON file."
86
false
rytilahti/python-songpal
asdict
8,381
LDU_FT/spacetelescope/stsci.tools/print_tasknames
LDU_FT
[ "<BEGIN>\n## `stsci`", "For STScI GEIS files, need to do extra steps.\n<END>", "<BEGIN>\n## `stsci2`", "For STScI GEIS files, need to do extra steps.\n<END>", "<BEGIN>\n## `readgeis`", "Input GEIS files \"input\" will be read and a HDUList object will\n be returned.", " The user can use the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_tasknames API. 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 print_tasknames API. 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...
Print a message listing TEAL-enabled tasks available under a given installation directory (where pkgName resides). If always is True, this will always print when tasks are found; otherwise it will only print found tasks when in interactive mode. The parameter 'hidden' supports a ...
"Print a message listing TEAL-enabled tasks available under a\n given installation directory (where pkgName resides).\n If always is True, this will always print when tasks are\n found; otherwise it will only print found tasks when in interactive\n mode.\n The parameter 'hidden' suppo...
917
false
spacetelescope/stsci.tools
print_tasknames
8,382
LDU_FT/jaredLunde/redis_structures/update
LDU_FT
[ "<BEGIN>\n## `_hashed_key`", "Returns 16-digit numeric hash of the redis key\n<END>", "<BEGIN>\n## `expire_at`", "Sets the expiration time of :prop:key_prefix to @_time\n @_time: absolute Unix timestamp (seconds since January 1, 1970)\n<END>", "<BEGIN>\n## `pexpire_at`", "Sets the expiration ti...
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 ...
Set given keys to their respective values @data: #dict or :class:RedisMap of |{key: value}| entries to set
"Set given keys to their respective values\n @data: #dict or :class:RedisMap of |{key: value}| entries to set"
216
false
jaredLunde/redis_structures
update
8,383
LDU_FT/albahnsen/CostSensitiveClassification/fit_predict
LDU_FT
[ "<BEGIN>\n## `_partition_estimators`", "Private function used to partition estimators between jobs.\n<END>", "<BEGIN>\n## `_parallel_build_estimators`", "Private function used to build a batch of estimators within a job.\n<END>", "<BEGIN>\n## `_parallel_predict_proba`", "Private function used to compute (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Calculate the prediction using the Bayes minimum risk classifier. Parameters ---------- y_prob : array-like of shape = [n_samples, 2] Predicted probabilities. cost_mat : array-like of shape = [n_samples, 4] Cost matrix of the classification problem W...
"Calculate the prediction using the Bayes minimum risk classifier.\n\n Parameters\n ----------\n y_prob : array-like of shape = [n_samples, 2]\n Predicted probabilities.\n\n cost_mat : array-like of shape = [n_samples, 4]\n Cost matrix of the classification problem\n ...
334
false
albahnsen/CostSensitiveClassification
fit_predict
8,384
LDU_FT/coghost/izen/uniqid
LDU_FT
[ "<BEGIN>\n## `encrypt`", "简单封装系统加密", " :param plain: 待加密内容\n :type plain: ``str/bytes``\n :param algorithm: 加密算法\n :type algorithm: str\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `aes_obj`", "生成aes加密所需要的 ``key, iv``", " .. warning:: 每个AES.new对象, 只能使用一次", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uniqid API. 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 uniqid API. 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 ...
使用网卡的物理地址 ``默认wlan0`` 来作为标识 - 置位 ``is_hex``, 来确定返回 ``16进制/10进制格式`` :param iface: ``网络接口(默认wlan0)`` :type iface: str :param is_hex: ``True(返回16进制)/False(10进制)`` :type is_hex: bool :return: ``mac地址/空`` :rtype: str
"使用网卡的物理地址 ``默认wlan0`` 来作为标识\n\n - 置位 ``is_hex``, 来确定返回 ``16进制/10进制格式``\n\n :param iface: ``网络接口(默认wlan0)``\n :type iface: str\n :param is_hex: ``True(返回16进制)/False(10进制)``\n :type is_hex: bool\n :return: ``mac地址/空``\n :rtype: str"
273
false
coghost/izen
uniqid
8,385
LDU_FT/walkr/oi/split
LDU_FT
[ "<BEGIN>\n## `new_parser`", "Create a command line argument parser", " Add a few default flags, such as --version\n for displaying the program version when invoked\n<END>", "<BEGIN>\n## `add_command`", "Register a new function with a the name `command` and\n `description` (which will be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split API. 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 split API. 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...
Split text into arguments accounting for muti-word arguments which are double quoted
"Split text into arguments accounting for muti-word arguments\n which are double quoted"
22
false
walkr/oi
split
8,386
LDU_FT/thautwarm/Redy/increment
LDU_FT
[ "<BEGIN>\n## `map_by`", "when pycharm supports type hinting for any implementation of currying,\n map_with and map_on would be deprecated.\n >>> from Redy.Collections import Traversal, Flow\n >>> def double(x: int) -> int: return x * 2\n >>> lst: Iterable[int] = [1, 2, 3]\n >>> x = Flow(lst)[Traver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the increment API. 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 increment API. 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...
increment the version number with `n` at index `i`. >>> from Redy.Tools.Version import Version >>> a = Version('1.0.0.2') >>> a.increment(version_number_idx=2, increment=1) >>> assert a == ('1.0.1.0') >>> print(a[0]) >>> a[0] = 2
"increment the version number with `n` at index `i`.\n >>> from Redy.Tools.Version import Version\n >>> a = Version('1.0.0.2')\n >>> a.increment(version_number_idx=2, increment=1)\n >>> assert a == ('1.0.1.0')\n >>> print(a[0])\n >>> a[0] = 2"
83
false
thautwarm/Redy
increment
8,387
LDU_FT/jrief/django-angular/rectify_multipart_form_data
LDU_FT
[ "<BEGIN>\n## `THUMBNAIL_OPTIONS`", "Set the size as a 2-tuple for thumbnailed images after uploading them.\n<END>", "<BEGIN>\n## `get_context`", "Some widgets require a modified rendering context, if they contain angular directives.\n<END>", "<BEGIN>\n## `errors`", "Returns a TupleErrorList for this field...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rectify_multipart_form_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rectify_multipart_form_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
If a widget was converted and the Form data was submitted through a multipart request, then these data fields must be converted to suit the Django Form validation
"If a widget was converted and the Form data was submitted through a multipart request,\n then these data fields must be converted to suit the Django Form validation"
63
false
jrief/django-angular
rectify_multipart_form_data
8,388
LDU_FT/seleniumbase/SeleniumBase/create_folder
LDU_FT
[ "<BEGIN>\n## `generate_application_string`", "Generate an application string based on some of the given information\n that can be pulled from the test object: app_env, start_time.\n<END>", "<BEGIN>\n## `_filter_xpath_grouping`", "This method removes the outer parentheses for xpath grouping.\n Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_folder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_folder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates a folder of the given name if it doesn't already exist.
"Creates a folder of the given name if it doesn't already exist."
362
false
seleniumbase/SeleniumBase
create_folder
8,389
LDU_FT/amicks/Speculator/eval_from_json
LDU_FT
[ "<BEGIN>\n## `set_targets`", "Sets target market trend for a date", " Args:\n x: Pandas DataFrame of market features\n delta: Positive number defining a price buffer between what is\n classified as a bullish/bearish market for the training set.\n delta is equivalent to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_from_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval_from_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Evaluates OBV from JSON (typically Poloniex API response) Args: json: List of dates where each entry is a dict of raw market data. Returns: Float of OBV
"Evaluates OBV from JSON (typically Poloniex API response)\n\n Args:\n json: List of dates where each entry is a dict of raw market data.\n\n Returns:\n Float of OBV"
104
false
amicks/Speculator
eval_from_json
8,390
LDU_FT/robotframework/Rammbock/bin
LDU_FT
[ "<BEGIN>\n## `log_background_messages`", "Forwards messages logged on background to Robot Framework log.", " By default forwards all messages logged by all threads, but can be\n limited to a certain thread by passing thread's name as an argument.", " Logged messages are removed from the m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bin API. 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 bin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add new binary field to template. This keyword has to be called within a binary container. See `New Binary Container`.
"Add new binary field to template.\n\n This keyword has to be called within a binary container. See `New Binary\n Container`."
234
false
robotframework/Rammbock
bin
8,391
LDU_FT/yueyoum/social-oauth/set_header
LDU_FT
[ "<BEGIN>\n## `cookie_encode`", "Encode and sign a pickle-able object. Return a (byte) string\n<END>", "<BEGIN>\n## `cookie_decode`", "Verify and decode an encoded string. Return an object or None.\n<END>", "<BEGIN>\n## `load`", "Import a module or fetch an object from a module.", " * ``package.mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Create a new response header, replacing any previously defined headers with the same name.
"Create a new response header, replacing any previously defined\n headers with the same name."
63
false
yueyoum/social-oauth
set_header
8,392
LDU_FT/Britefury/batchup/download_and_verify
LDU_FT
[ "<BEGIN>\n## `num_batches`", "Compute the number of mini-batches required to cover a data set of\n size `n` using batches of size `batch_size`.", " Parameters\n ----------\n n: int\n the number of samples in the data set\n batch_size: int\n the mini-batch size", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_and_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_and_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. T...
Download a file to a given path from a given URL, if it does not exist. After downloading it, verify it integrity by checking the SHA-256 hash. Parameters ---------- path: str The (destination) path of the file on the local filesystem source_url: str The URL from which to download t...
"Download a file to a given path from a given URL, if it does not exist.\n After downloading it, verify it integrity by checking the SHA-256 hash.\n\n Parameters\n ----------\n path: str\n The (destination) path of the file on the local filesystem\n source_url: str\n The URL from which to d...
194
false
Britefury/batchup
download_and_verify
8,393
LDU_FT/aio-libs/aiohttp/has_body
LDU_FT
[ "<BEGIN>\n## `_cleanup_closed`", "Double confirmation for transport close.\n Some broken ssl servers may leave socket open without proper close.\n<END>", "<BEGIN>\n## `_available_connections`", "Return number of available connections taking into account\n the limit, limit_per_host and the connec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_body API. 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 has_body API. 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 True if request's HTTP BODY can be read, False otherwise.
"Return True if request's HTTP BODY can be read, False otherwise."
233
false
aio-libs/aiohttp
has_body
8,394
LDU_FT/david-cortes/costsensitive/decision_function
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit one classifier comparing each pair of classes", " Parameters\n ----------\n X : array (n_samples, n_features)\n The data on which to fit a cost-sensitive classifier.\n C : array (n_samples, n_classes)\n The cost of predicting each label...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decision_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decision_function API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Calculate a 'goodness' distribution over labels Parameters ---------- X : array (n_samples, n_features) Data for which to predict the cost of each label. Returns ------- pred : array (n_samples, n_classes) A goodness score (more i...
"Calculate a 'goodness' distribution over labels\n \n Parameters\n ----------\n X : array (n_samples, n_features)\n Data for which to predict the cost of each label.\n \n Returns\n -------\n pred : array (n_samples, n_classes)\n A goodness sc...
61
false
david-cortes/costsensitive
decision_function
8,395
LDU_FT/SamLau95/nbinteract/maybe_curry
LDU_FT
[ "<BEGIN>\n## `multiple_choice`", "Generates a multiple choice question that allows the user to select an\n answer choice and shows whether choice was correct.", " Args:\n question (str): Question text displayed above choices.", " choices (list str): Answer choices that user can select.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the maybe_curry API. 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 maybe_curry API. 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...
If maybe_fn is a function, curries it and passes in first_arg. Otherwise returns maybe_fn.
"If maybe_fn is a function, curries it and passes in first_arg. Otherwise\n returns maybe_fn."
159
false
SamLau95/nbinteract
maybe_curry
8,396
LDU_FT/ome/omego/setup_previous_omero_env
LDU_FT
[ "<BEGIN>\n## `entry_point`", "External entry point which calls main() and\n if Stop is raised, calls sys.exit()\n<END>", "<BEGIN>\n## `open_url`", "Open a URL using an opener that will simulate a browser user-agent\n url: The URL\n httpuser, httppassword: HTTP authentication credentials (either both ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_previous_omero_env 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 setup_previous_omero_env API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Create a copy of the current environment for interacting with the current OMERO server installation
"Create a copy of the current environment for interacting with the\n current OMERO server installation"
72
false
ome/omego
setup_previous_omero_env
8,397
LDU_FT/bharadwaj-raju/libdesktop/unmute
LDU_FT
[ "<BEGIN>\n## `get_config_dir`", "Get the configuration directory.", "\tGet the configuration directories, optionally for a specific program.", "\tArgs:\n\t\t\tprogram\t(str) : The name of the program whose configuration directories have to be found.\n\t\t\tsystem_wide (bool): Gets the system-wide configuratio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unmute API. 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 unmute API. 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 ...
Unmute the volume. Unmutes the system volume. Note: On some systems, volume is restored to its previous level after unmute, or set to 100.
"Unmute the volume.\n\n\tUnmutes the system volume.\n\n\tNote:\n\t\t\tOn some systems, volume is restored to its previous level after unmute, or set to 100."
119
false
bharadwaj-raju/libdesktop
unmute
8,398
LDU_FT/greenape/mktheapidocs/params_section
LDU_FT
[ "<BEGIN>\n## `get_line`", "Get the line number for something.\n Parameters\n ----------\n thing : function, class, module", " Returns\n -------\n int\n Line number in the source file\n<END>", "<BEGIN>\n## `_sort_modules`", "Always sort `index` or `README` as first filename in list.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the params_section API. 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 params_section API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Generate markdown for Parameters section. Parameters ---------- thing : functuon Function to produce parameters from doc : dict Dict from numpydoc header_level : int Number of `#`s to use for header Returns ------- list of str Markdown for examples secti...
"Generate markdown for Parameters section.\n\n Parameters\n ----------\n thing : functuon\n Function to produce parameters from\n doc : dict\n Dict from numpydoc\n header_level : int\n Number of `#`s to use for header\n\n Returns\n -------\n list of str\n Markdown for...
60
false
greenape/mktheapidocs
params_section
8,399
LDU_FT/apacha/OMR-Datasets/initialize_from_string
LDU_FT
[ "<BEGIN>\n## `move_images`", "Moves png-files one directory up from path/image/*.png -> path/*.png\n<END>", "<BEGIN>\n## `create_images`", "Creates a visual representation of the Homus Dataset by parsing all text-files and the symbols as specified\n by the parameters by drawing lines that connect the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Create and initializes a new symbol from a string :param content: The content of a symbol as read from the text-file :return: The initialized symbol :rtype: HomusSymbol
"Create and initializes a new symbol from a string\n\n :param content: The content of a symbol as read from the text-file\n :return: The initialized symbol\n :rtype: HomusSymbol"
53
false
apacha/OMR-Datasets
initialize_from_string
8,400
LDU_FT/common-workflow-language/cwltool/_whoami
LDU_FT
[ "<BEGIN>\n## `add_volumes`", "Append volume mappings to the runtime option list.\n<END>", "<BEGIN>\n## `docker_monitor`", "Record memory usage of the running Docker container.\n<END>", "<BEGIN>\n## `adjustFiles`", "Apply a mapping function to each File path in the object `rec`.\n<END>", "<BEGIN>\n## `ch...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _whoami API. 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 _whoami API. 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 current operating system account as (username, fullname).
"Return the current operating system account as (username, fullname)."
161
false
common-workflow-language/cwltool
_whoami
8,401
LDU_FT/dmcc/PyStanfordDependencies/get_jar_url
LDU_FT
[ "<BEGIN>\n## `convert_trees`", "Convert a list of Penn Treebank formatted strings (ptb_trees)\n into Stanford Dependencies. The dependencies are represented\n as a list of sentences (CoNLL.Corpus), where each sentence\n (CoNLL.Sentence) is itself a list of CoNLL.Token objects.", " Cu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_jar_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_jar_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 extra...
Get the URL to a Stanford CoreNLP jar file with a specific version. These jars come from Maven since the Maven version is smaller than the full CoreNLP distributions. Defaults to DEFAULT_CORENLP_VERSION.
"Get the URL to a Stanford CoreNLP jar file with a specific\n version. These jars come from Maven since the Maven version is\n smaller than the full CoreNLP distributions. Defaults to\n DEFAULT_CORENLP_VERSION."
56
false
dmcc/PyStanfordDependencies
get_jar_url
8,402
LDU_FT/blakev/python-syncthing/scan
LDU_FT
[ "<BEGIN>\n## `keys_to_datetime`", "Converts all the keys in an object to DateTime instances.", " Args:\n obj (dict): the JSON-like ``dict`` object to modify inplace.\n keys (str): keys of the object being converted into DateTime\n instances.", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan API. 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 scan API. 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...
Request immediate rescan of a folder, or a specific path within a folder. Args: folder (str): Folder ID. sub (str): Path relative to the folder root. If sub is omitted the entire folder is scanned for changes, otherwise only th...
"Request immediate rescan of a folder, or a specific path within a\n folder.\n\n Args:\n folder (str): Folder ID.\n sub (str): Path relative to the folder root. If sub is omitted\n the entire folder is scanned for changes, otherwise only\n ...
60
false
blakev/python-syncthing
scan
8,403
LDU_FT/petrjasek/eve-elastic/_refresh_resource_index
LDU_FT
[ "<BEGIN>\n## `get_dates`", "Return list of datetime fields for given schema.\n<END>", "<BEGIN>\n## `set_filters`", "Put together all filters we have and set them as 'and' filter\n within filtered query.", " :param query: elastic query being constructed\n :param base_filters: all filters set outside...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _refresh_resource_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _refresh_resource_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Refresh index for given resource. :param resource: resource name
"Refresh index for given resource.\n\n :param resource: resource name"
106
false
petrjasek/eve-elastic
_refresh_resource_index
8,404
LDU_FT/neptune-ml/steppy/persist_upstream_structure
LDU_FT
[ "<BEGIN>\n## `initialize_logger`", "Initialize steppy logger.", " This logger is used throughout the steppy library to report computation progress.", " Example:", " Simple use of steppy logger:", " .. code-block:: python", " initialize_logger()\n logger = get_lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the persist_upstream_structure 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 persist_upstream_structure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Persist json file with the upstream steps structure, that is step names and their connections.
"Persist json file with the upstream steps structure, that is step names and their connections."
57
false
neptune-ml/steppy
persist_upstream_structure
8,405
LDU_FT/msiemens/tinydb/matches
LDU_FT
[ "<BEGIN>\n## `table`", "Get access to a specific table.", " Creates a new table, if it hasn't been created before, otherwise it\n returns the cached :class:`~tinydb.Table` object.", " :param name: The name of the table.\n :type name: str\n :param cache_size: How many query r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matches API. 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 matches API. 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...
Run a regex test against a dict value (whole string has to match). >>> Query().f1.matches(r'^\w+$') :param regex: The regular expression to use for matching
"Run a regex test against a dict value (whole string has to match).\n\n >>> Query().f1.matches(r'^\\w+$')\n\n :param regex: The regular expression to use for matching"
66
false
msiemens/tinydb
matches
8,406
LDU_FT/SmileyChris/django-countries/choices
LDU_FT
[ "<BEGIN>\n## `get_option`", "Get a configuration option, trying the options attribute first and\n falling back to a Django project setting.\n<END>", "<BEGIN>\n## `countries`", "Return the a dictionary of countries, modified by any overriding\n options.", " The result is cached so future...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choices API. 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 choices API. 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...
When it's time to get the choices, if it was a lazy then figure it out now and memoize the result.
"When it's time to get the choices, if it was a lazy then figure it out\n now and memoize the result."
42
false
SmileyChris/django-countries
choices
8,407
LDU_FT/pyupio/pyup/can_update_insecure
LDU_FT
[ "<BEGIN>\n## `fetch_public_key`", "Download RSA public key Travis will use for this repo.", " Travis API docs: http://docs.travis-ci.com/api/#repository-keys\n<END>", "<BEGIN>\n## `is_empty_branch`", "Compares the top commits of two branches.\n Please note: This function isn't checking if `base_br...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_update_insecure 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 can_update_insecure 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...
Checks if requirements in `path` can be updated if insecure. :param path: string, path to requirement file :return: bool
"Checks if requirements in `path` can be updated if insecure.\n :param path: string, path to requirement file\n :return: bool"
31
false
pyupio/pyup
can_update_insecure
8,408
LDU_FT/LudovicRousseau/pyscard/createConnection
LDU_FT
[ "<BEGIN>\n## `translateprotocolmask`", "Translate CardConnection protocol mask into PCSC protocol mask.\n<END>", "<BEGIN>\n## `translateprotocolheader`", "Translate protocol into PCSC protocol header.\n<END>", "<BEGIN>\n## `connect`", "Connect to the card.", " If protocol is not specified, connec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createConnection API. 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 createConnection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return a card connection thru a remote reader.
"Return a card connection thru a remote reader."
164
false
LudovicRousseau/pyscard
createConnection
8,409
LDU_FT/SpectoLabs/hoverpy/mode
LDU_FT
[ "<BEGIN>\n## `wipe`", "Wipe the bolt database.", " Calling this after HoverPy has been instantiated is\n potentially dangerous. This function is mostly used\n internally for unit tests.\n<END>", "<BEGIN>\n## `simulation`", "Gets / Sets the simulation data.", " If no data is pas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Gets / Sets the mode. If no mode is provided, then this method acts as a getter. Keyword arguments: mode -- this should either be 'capture' or 'simulate' (default None)
"Gets / Sets the mode.\n\n If no mode is provided, then this method acts as a getter.\n\n Keyword arguments:\n mode -- this should either be 'capture' or 'simulate' (default None)"
24
false
SpectoLabs/hoverpy
mode
8,410
LDU_FT/fitodic/centerline/create_centerlines
LDU_FT
[ "<BEGIN>\n## `create_centerlines`", "Create centerlines and save the to an ESRI Shapefile.", " Reads polygons from the `src` ESRI Shapefile, creates Centerline\n objects with the specified `density` parameter and writes them to\n the `dst` ESRI Shapefile.", " Only Polygon features are converted to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_centerlines API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_centerlines 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...
Create centerlines and save the to an ESRI Shapefile. Reads polygons from the `src` ESRI Shapefile, creates Centerline objects with the specified `density` parameter and writes them to the `dst` ESRI Shapefile. Only Polygon features are converted to centerlines. Features of different types are ski...
"Create centerlines and save the to an ESRI Shapefile.\n\n Reads polygons from the `src` ESRI Shapefile, creates Centerline\n objects with the specified `density` parameter and writes them to\n the `dst` ESRI Shapefile.\n\n Only Polygon features are converted to centerlines. Features of\n different types...
31
false
fitodic/centerline
create_centerlines
8,411
LDU_FT/mugurbil/gnm/integrator
LDU_FT
[ "<BEGIN>\n## `update_params`", "Update parameters\n updates mean and precision to the step size\n Inputs:\n state :\n mu :\n mean\n L :\n cholesky factor of the precision matrix\n t : \n step size\n Outputs:\n mu :\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the integrator API. 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 integrator API. 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...
Creating theoretical curve for 2D model functions integrator function
"Creating theoretical curve for 2D model functions\n integrator function"
42
false
mugurbil/gnm
integrator
8,412
LDU_FT/python-bonobo/bonobo/_put
LDU_FT
[ "<BEGIN>\n## `run`", "Main entry point of bonobo. It takes a graph and creates all the necessary plumbing around to execute it.", " The only necessary argument is a :class:`Graph` instance, containing the logic you actually want to execute.", " By default, this graph will be executed using the \"threadp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _put API. 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 _put API. 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...
Sends a message to all of this context's outputs. :param mixed value: message :param _control: if true, won't count in statistics.
"Sends a message to all of this context's outputs.\n\n :param mixed value: message\n :param _control: if true, won't count in statistics."
140
false
python-bonobo/bonobo
_put
8,413
LDU_FT/DiamondLightSource/python-procrunner/run
LDU_FT
[ "<BEGIN>\n## `_windows_resolve`", "Try and find the full path and file extension of the executable to run.\n This is so that e.g. calls to 'somescript' will point at 'somescript.cmd'\n without the need to set shell=True in the subprocess.\n If the executable contains periods it is a special case. Here th...
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 an external process. File system path objects (PEP-519) are accepted in the command, environment, and working directory arguments. :param array command: Command line to be run, specified as array. :param timeout: Terminate program execution after this many seconds. :param boolean debug: Enable...
"Run an external process.\n\n File system path objects (PEP-519) are accepted in the command, environment,\n and working directory arguments.\n\n :param array command: Command line to be run, specified as array.\n :param timeout: Terminate program execution after this many seconds.\n :param boolean debug...
16
false
DiamondLightSource/python-procrunner
run
8,414
LDU_FT/banesullivan/gendocs/_ProduceContent
LDU_FT
[ "<BEGIN>\n## `GetModuleText`", "Returns the needed text to automatically document a module in RSF/sphinx\n<END>", "<BEGIN>\n## `GetClassText`", "Returns the needed text to automatically document a class in RSF/sphinx\n<END>", "<BEGIN>\n## `GetFunctionText`", "Returns the needed text to automatically docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ProduceContent API. 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 _ProduceContent API. 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...
An internal helper to create pages for several modules that do not have nested modules. This will automatically generate the needed RSF to document each module module and save the module to its own page appropriately. Args: mods (module): The modules to document that do not contain ...
"An internal helper to create pages for several modules that do not have nested modules.\n This will automatically generate the needed RSF to document each module module\n and save the module to its own page appropriately.\n\n Args:\n mods (module): The modules to document that do not co...
27
false
banesullivan/gendocs
_ProduceContent
8,415
LDU_FT/heitzmann/gdspy/_eight_byte_real
LDU_FT
[ "<BEGIN>\n## `_eight_byte_real`", "Convert a number into the GDSII 8 byte real format.", " Parameters\n ----------\n value : number\n The number to be converted.", " Returns\n -------\n out : string\n The GDSII binary string that represents ``value``.\n<END>", "<BEGIN>\n## `_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _eight_byte_real API. 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 _eight_byte_real API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert a number into the GDSII 8 byte real format. Parameters ---------- value : number The number to be converted. Returns ------- out : string The GDSII binary string that represents ``value``.
"Convert a number into the GDSII 8 byte real format.\n\n Parameters\n ----------\n value : number\n The number to be converted.\n\n Returns\n -------\n out : string\n The GDSII binary string that represents ``value``."
254
false
heitzmann/gdspy
_eight_byte_real
8,416
LDU_FT/PyCQA/pyflakes/deferAssignment
LDU_FT
[ "<BEGIN>\n## `syntaxError`", "There was a syntax error in C{filename}.", " @param filename: The path to the file with the syntax error.\n @ptype filename: C{unicode}\n @param msg: An explanation of the syntax error.\n @ptype msg: C{unicode}\n @param lineno: The line number whe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deferAssignment API. 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 deferAssignment API. 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...
Schedule an assignment handler to be called just after deferred function handlers.
"Schedule an assignment handler to be called just after deferred\n function handlers."
54
false
PyCQA/pyflakes
deferAssignment
8,417
LDU_FT/a2liu/mr-clean/preview
LDU_FT
[ "<BEGIN>\n## `summarize`", "Prints information about the DataFrame to a file or to the prompt.", " Parameters\n ----------\n df - DataFrame\n The DataFrame to summarize\n preview_rows - int, default 5\n Amount of rows to preview from the head and tail of the DataFrame\n display_max_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preview API. 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 preview API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a preview of a dataframe, which contains both header rows and tail rows.
"Returns a preview of a dataframe, which contains both header\n rows and tail rows."
84
false
a2liu/mr-clean
preview
8,418
LDU_FT/rmorshea/spectate/after
LDU_FT
[ "<BEGIN>\n## `views`", "Return a model's views keyed on what events they respond to.", " Model views are added by calling :func:`view` on a model.\n<END>", "<BEGIN>\n## `view`", "A decorator for registering a callback to a model", " Parameters:\n model: the model object whose changes the call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the after API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the after API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Register a control method that reacts after the trigger method is called. Parameters: callback: The control method. If given as a callable, then that function will be used as the callback. If given as a string, then the control will look up a method w...
"Register a control method that reacts after the trigger method is called.\n\n Parameters:\n callback:\n The control method. If given as a callable, then that function will be\n used as the callback. If given as a string, then the control will look\n up a m...
94
false
rmorshea/spectate
after
8,419
LDU_FT/Hrabal/TemPy/wrap
LDU_FT
[ "<BEGIN>\n## `render_attrs`", "Renders the tag's attributes using the formats and performing special attributes name substitution.\n<END>", "<BEGIN>\n## `toggle_class`", "Same as jQuery's toggleClass function. It toggles the css class on this element.\n<END>", "<BEGIN>\n## `remove_class`", "Removes the gi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap API. 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 wrap API. 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...
Wraps this element inside another empty tag.
"Wraps this element inside another empty tag."
80
false
Hrabal/TemPy
wrap
8,420
LDU_FT/sammchardy/python-kucoin/get_historical_orders
LDU_FT
[ "<BEGIN>\n## `subscribe`", "Subscribe to a channel", " :param topic: required\n :returns: None", " Sample ws response", " .. code-block:: python", " {\n \"type\":\"message\",\n \"topic\":\"/market/ticker:BTC-USDT\",\n \"su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_historical_orders 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_historical_orders API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
List of KuCoin V1 historical orders. https://docs.kucoin.com/#get-v1-historical-orders-list :param symbol: (optional) Name of symbol e.g. KCS-BTC :type symbol: string :param side: (optional) buy or sell :type side: string :param start: (optional) Start time as unix time...
"List of KuCoin V1 historical orders.\n\n https://docs.kucoin.com/#get-v1-historical-orders-list\n\n :param symbol: (optional) Name of symbol e.g. KCS-BTC\n :type symbol: string\n :param side: (optional) buy or sell\n :type side: string\n :param start: (optional) Start time as ...
271
false
sammchardy/python-kucoin
get_historical_orders
8,421
LDU_FT/LISE-B26/pylabcontrol/get_subscript
LDU_FT
[ "<BEGIN>\n## `instantiate_probes`", "Creates instances of the probes inputed;", " Args:\n probes: probes is a nested dictionary with\n (key, sub_dict ) = (name of the probe, {'probe_name': value_probe, 'instrument_name': value_inst}),\n where value_probe is a valid name of a pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subscript API. 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_subscript API. 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...
finds the item that contains the sub_script with name sub_script_name Args: sub_script_name: name of subscript Returns: B26QTreeItem in QTreeWidget which is a script
"finds the item that contains the sub_script with name sub_script_name\n Args:\n sub_script_name: name of subscript\n Returns: B26QTreeItem in QTreeWidget which is a script"
301
false
LISE-B26/pylabcontrol
get_subscript
8,422
LDU_FT/philipbergen/popen/reset
LDU_FT
[ "<BEGIN>\n## `env`", "Allows adding/overriding env vars in the execution context.\n :param kw: Key-value pairs\n :return: self\n<END>", "<BEGIN>\n## `expand`", "Turn off argument expansion, useful for 'grep'. Example:", " Sh('grep .*').expand(False) > 'tango'", " :param exp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Allows you to re-run the command chain. :return: self
"Allows you to re-run the command chain.\n :return: self"
21
false
philipbergen/popen
reset
8,423
LDU_FT/DataONEorg/d1_python/dump_request_and_response
LDU_FT
[ "<BEGIN>\n## `wrap`", "Work with the AccessPolicy in a SystemMetadata PyXB object.", " Args:\n access_pyxb : AccessPolicy PyXB object\n The AccessPolicy to modify.", " read_only: bool\n Do not update the wrapped AccessPolicy.", " When only a single AccessPolicy operation is nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_request_and_response 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 dump_request_and_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Return a string containing a nicely formatted representation of the request and response objects for logging and debugging. - Note: Does not work if the request or response body is a MultipartEncoder object.
"Return a string containing a nicely formatted representation of the request\n and response objects for logging and debugging.\n\n - Note: Does not work if the request or response body is a MultipartEncoder\n object."
1,937
true
DataONEorg/d1_python
dump_request_and_response
8,424
LDU_FT/Bystroushaak/zeo_connector/_init_zeo_root
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 _init_zeo_root API. 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 _init_zeo_root API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get and initialize the ZEO root object. Args: attempts (int, default 3): How many times to try, if the connection was lost.
"Get and initialize the ZEO root object.\n\n Args:\n attempts (int, default 3): How many times to try, if the connection\n was lost."
11
false
Bystroushaak/zeo_connector
_init_zeo_root
8,425
LDU_FT/ga4gh/ga4gh-client/search_variant_sets
LDU_FT
[ "<BEGIN>\n## `_run_search_request`", "Runs the specified request at the specified object_name and\n instantiates an object of the specified class. We yield each object in\n listAttr. If pages of results are present, repeat this process\n until the pageToken is null.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_variant_sets 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 search_variant_sets 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...
Returns an iterator over the VariantSets fulfilling the specified conditions from the specified Dataset. :param str dataset_id: The ID of the :class:`ga4gh.protocol.Dataset` of interest. :return: An iterator over the :class:`ga4gh.protocol.VariantSet` objects defined by ...
"Returns an iterator over the VariantSets fulfilling the specified\n conditions from the specified Dataset.\n\n :param str dataset_id: The ID of the :class:`ga4gh.protocol.Dataset`\n of interest.\n :return: An iterator over the :class:`ga4gh.protocol.VariantSet`\n objects defi...
104
false
ga4gh/ga4gh-client
search_variant_sets
8,426
LDU_FT/ggaughan/pipe2py/pipe_strregex
LDU_FT
[ "<BEGIN>\n## `repr_args`", "formats a list of function arguments prettily but as working code", " (kwargs are tuples (argname, argvalue)\n<END>", "<BEGIN>\n## `repr_arg`", "formats a function argument prettily but as working code", " unicode encodable as ascii is formatted as str\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipe_strregex API. 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 pipe_strregex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
A string module that replaces text using regexes. Each has the general format: "In [field] replace [regex pattern] with [text]". Loopable. Parameters ---------- context : pipe2py.Context object _INPUT : iterable of items or strings conf : { 'RULE': [ { 'match...
"A string module that replaces text using regexes. Each has the general\n format: \"In [field] replace [regex pattern] with [text]\". Loopable.\n\n Parameters\n ----------\n context : pipe2py.Context object\n _INPUT : iterable of items or strings\n conf : {\n 'RULE': [\n {\n ...
257
false
ggaughan/pipe2py
pipe_strregex
8,427
LDU_FT/mikeboers/Flask-ACL/can_route
LDU_FT
[ "<BEGIN>\n## `parse_state`", "Convert a bool, or string, into a bool.", " The string pairs we respond to (case insensitively) are:", " - ALLOW & DENY\n - GRANT & REJECT", " :returns bool: ``True`` or ``False``.\n :raises ValueError: when not a ``bool`` or one of the above strings.", " E....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_route API. 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 can_route API. 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...
Make sure we can route to the given endpoint or url. This checks for `http.get` permission (or other methods) on the ACL of route functions, attached via the `ACL` decorator. :param endpoint: A URL or endpoint to check for permission to access. :param method: The HTTP method to check; ...
"Make sure we can route to the given endpoint or url.\n\n This checks for `http.get` permission (or other methods) on the ACL of\n route functions, attached via the `ACL` decorator.\n\n :param endpoint: A URL or endpoint to check for permission to access.\n :param method: The HTTP method to ...
44
false
mikeboers/Flask-ACL
can_route
8,428
LDU_FT/developersociety/django-glitter/process_request
LDU_FT
[ "<BEGIN>\n## `get_templates`", "Return a list of templates usable by a model.\n<END>", "<BEGIN>\n## `attach`", "Registers the given layout(s) classes\n admin site:", " @pages.register(Page)\n class Default(PageLayout):\n pass\n<END>", "<BEGIN>\n## `get_formset`", "Default user to the cur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 e...
Reloads glitter URL patterns if page URLs change. Avoids having to restart the server to recreate the glitter URLs being used by Django.
"Reloads glitter URL patterns if page URLs change.\n\n Avoids having to restart the server to recreate the glitter URLs being used by Django."
80
false
developersociety/django-glitter
process_request
8,429
LDU_FT/RLBot/RLBot/inject_dll
LDU_FT
[ "<BEGIN>\n## `configure_processes`", "This will update the priority and CPU affinity of the processes owned by bots to try to achieve fairness and\n good performance.", " :param agent_metadata_map: A mapping of player index to agent metadata, including a list of owned process ids.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject_dll API. 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 inject_dll API. 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...
Calling this function will inject the DLL without GUI DLL will return status codes from 0 to 5 which correspond to injector_codes DLL injection is only valid if codes are 0->'INJECTION_SUCCESSFUL' or 3->'RLBOT_DLL_ALREADY_INJECTED' It will print the output code and if it's not valid it will kill...
"Calling this function will inject the DLL without GUI\n DLL will return status codes from 0 to 5 which correspond to injector_codes\n DLL injection is only valid if codes are 0->'INJECTION_SUCCESSFUL' or 3->'RLBOT_DLL_ALREADY_INJECTED'\n It will print the output code and if it's not valid it will ...
181
false
RLBot/RLBot
inject_dll
8,430
LDU_FT/ByteInternet/amqpconsumer/connect
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to RabbitMQ, returning the connection handle.", " When the connection is established, the on_connection_open method\n will be invoked by pika.", " :rtype: pika.SelectConnection\n<END>", "<BEGIN>\n## `on_connection_closed`", "Called by pika when the co...
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 extracted...
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 extracted...
Connect to RabbitMQ, returning the connection handle. When the connection is established, the on_connection_open method will be invoked by pika. :rtype: pika.SelectConnection
"Connect to RabbitMQ, returning the connection handle.\n\n When the connection is established, the on_connection_open method\n will be invoked by pika.\n\n :rtype: pika.SelectConnection"
43
false
ByteInternet/amqpconsumer
connect
8,431
LDU_FT/ns1/ns1-python/searchZone
LDU_FT
[ "<BEGIN>\n## `delete`", "Delete the record from the zone, including all advanced configuration,\n meta data, etc.\n<END>", "<BEGIN>\n## `update`", "Update record configuration. Pass list of keywords and their values to\n update. For the list of keywords available for zone configuration, see\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the searchZone API. 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 searchZone API. 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...
Search a zone for a given search query (e.g., for geological data, etc) :param zone: NOT a string like loadZone - an already loaded ns1.zones.Zone, like one returned from loadZone :return:
"Search a zone for a given search query (e.g., for geological data, etc)\n\n :param zone: NOT a string like loadZone - an already loaded ns1.zones.Zone, like one returned from loadZone\n :return:"
159
false
ns1/ns1-python
searchZone
8,432
LDU_FT/jonathf/chaospy/orth_chol
LDU_FT
[ "<BEGIN>\n## `call`", "Evaluate a polynomial along specified axes.", " Args:\n poly (Poly):\n Input polynomial.\n args (numpy.ndarray):\n Argument to be evaluated. Masked values keeps the variable intact.", " Returns:\n (Poly, numpy.ndarray):\n If ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the orth_chol API. 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 orth_chol API. 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...
Create orthogonal polynomial expansion from Cholesky decomposition. Args: order (int): Order of polynomial expansion dist (Dist): Distribution space where polynomials are orthogonal normed (bool): If True orthonormal polynomials will be used instead of mo...
"Create orthogonal polynomial expansion from Cholesky decomposition.\n\n Args:\n order (int):\n Order of polynomial expansion\n dist (Dist):\n Distribution space where polynomials are orthogonal\n normed (bool):\n If True orthonormal polynomials will be used inst...
713
false
jonathf/chaospy
orth_chol
8,433
LDU_FT/libvips/pyvips/new
LDU_FT
[ "<BEGIN>\n## `print_all`", "Print all objects.", " Print a table of all active libvips objects. Handy for debugging.\n<END>", "<BEGIN>\n## `get_typeof`", "Get the GType of a GObject property.", " This function returns 0 if the property does not exist.\n<END>", "<BEGIN>\n## `get`", "Get a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new API. 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 new API. 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...
Make a new interpolator by name. Make a new interpolator from the libvips class nickname. For example:: inter = pyvips.Interpolator.new('bicubic') You can get a list of all supported interpolators from the command-line with:: $ vips -l interpolate See for exa...
"Make a new interpolator by name.\n\n Make a new interpolator from the libvips class nickname. For example::\n\n inter = pyvips.Interpolator.new('bicubic')\n\n You can get a list of all supported interpolators from the command-line\n with::\n\n $ vips -l interpolate\n\n ...
73
false
libvips/pyvips
new
8,434
LDU_FT/emin63/eyap/create_thread
LDU_FT
[ "<BEGIN>\n## `make_anchor_id`", "Return string to use as URL anchor for this comment.\n<END>", "<BEGIN>\n## `make_url`", "Make URL to this comment.", " :arg my_request: The request object where this comment is seen from.", " :arg anchor_id=None: Optional anchor id. If None, we use\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_thread API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_thread API. 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...
Implement create_thread as required by parent. This basically just calls add_comment with allow_create=True and then builds a response object to indicate everything is fine.
"Implement create_thread as required by parent.\n\n This basically just calls add_comment with allow_create=True\n and then builds a response object to indicate everything is fine."
126
false
emin63/eyap
create_thread
8,435
LDU_FT/mozilla/funfactory/setup_environ
LDU_FT
[ "<BEGIN>\n## `clone_repo`", "Clone the Playdoh repo into a custom path.\n<END>", "<BEGIN>\n## `init_pkg`", "Initializes a custom named package module.", " This works by replacing all instances of 'project' with a custom module\n name.\n<END>", "<BEGIN>\n## `create_settings`", "Creates a local sett...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_environ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_environ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Sets up a Django app within a manage.py file. Keyword Arguments **settings** An imported settings module. Without this, playdoh tries to import these modules (in order): DJANGO_SETTINGS_MODULE, settings **more_pythonic** When True, does not do any path hackery besides adding the v...
"Sets up a Django app within a manage.py file.\n\n Keyword Arguments\n\n **settings**\n An imported settings module. Without this, playdoh tries to import\n these modules (in order): DJANGO_SETTINGS_MODULE, settings\n\n **more_pythonic**\n When True, does not do any path hackery besides ad...
52
false
mozilla/funfactory
setup_environ
8,436
LDU_FT/romanvm/django-tinymce4-lite/get_spellcheck_config
LDU_FT
[ "<BEGIN>\n## `language_file_exists`", "Check if TinyMCE has a language file for the specified lang code", " :param language_code: language code\n :type language_code: str\n :return: check result\n :rtype: bool\n<END>", "<BEGIN>\n## `get_language_config`", "Creates a language configuration for Ti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_spellcheck_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_spellcheck_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. ...
Create TinyMCE spellchecker config based on Django settings :return: spellchecker parameters for TinyMCE :rtype: dict
"Create TinyMCE spellchecker config based on Django settings\n\n :return: spellchecker parameters for TinyMCE\n :rtype: dict"
29
false
romanvm/django-tinymce4-lite
get_spellcheck_config
8,437
LDU_FT/jsvine/markovify/move
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Returns the underlying data as a Python dict.\n<END>", "<BEGIN>\n## `generate_corpus`", "Given a text string, returns a list of lists; that is, a list of\n \"sentences,\" each of which is a list of words. Before splitting into\n words, the sentences are filtered through...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API. 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 move API. 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...
Given a state, choose the next item at random.
"Given a state, choose the next item at random."
31
false
jsvine/markovify
move
8,438
LDU_FT/MSchnei/pyprf_feature/calcFstats
LDU_FT
[ "<BEGIN>\n## `pyprf`", "Main function for pRF mapping.", " Parameters\n ----------\n strCsvCnfg : str\n Absolute file path of config file.\n lgcTest : Boolean\n Whether this is a test (pytest). If yes, absolute path of pyprf libary\n will be prepended to config file paths.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calcFstats API. 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 calcFstats API. 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...
calculate coefficient of determination. Assumes that axis=0 is time Parameters ---------- predTst : np.array, predicted reponse for yTest yTest : np.array, acxtually observed response for yTest p: float, number of predictors Returns ------- aryFunc : np.a...
"calculate coefficient of determination. Assumes that axis=0 is time\n\n Parameters\n ----------\n predTst : np.array, predicted reponse for yTest\n yTest : np.array, acxtually observed response for yTest\n p: float, number of predictors\n Returns\n -------\n aryF...
266
false
MSchnei/pyprf_feature
calcFstats
8,439
LDU_FT/Geotab/mygeotab-python/get_param
LDU_FT
[ "<BEGIN>\n## `object_deserializer`", "Helper to deserialize a raw result dict into a proper dict.", " :param obj: The dict.\n<END>", "<BEGIN>\n## `login`", "Logs into a MyGeotab server and stores the returned credentials.", " :param session: The current Session object.\n :param user: The username...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_param API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
A simple representation of the credentials object for passing into the API.authenticate() server call. :return: The simple credentials object for use by API.authenticate(). :rtype: dict
"A simple representation of the credentials object for passing into the API.authenticate() server call.\n\n :return: The simple credentials object for use by API.authenticate().\n :rtype: dict"
96
false
Geotab/mygeotab-python
get_param
8,440
LDU_FT/jcrist/skein/from_current
LDU_FT
[ "<BEGIN>\n## `add_page`", "Add a new proxied page to the Web UI.", " Parameters\n ----------\n route : str\n The route for the proxied page. Must be a valid path *segment* in a\n url (e.g. ``foo`` in ``/foo/bar/baz``). Routes must be unique\n across the appl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_current API. 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 from_current API. 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...
Create an application client from within a running container. Useful for connecting to the application master from a running container in a application.
"Create an application client from within a running container.\n\n Useful for connecting to the application master from a running\n container in a application."
153
false
jcrist/skein
from_current
8,441
LDU_FT/trombastic/PyScada/write_data
LDU_FT
[ "<BEGIN>\n## `_reinit_daq_daemons`", "update the daq daemon configuration when changes be applied in the models\n<END>", "<BEGIN>\n## `connect`", "establish a connection to the Instrument\n<END>", "<BEGIN>\n## `find_gap`", "try to find a address gap in the list of modbus registers\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
write value to single modbus register or coil
"write value to single modbus register or coil"
60
false
trombastic/PyScada
write_data
8,442
LDU_FT/panzarino/mlbgame/value_to_int
LDU_FT
[ "<BEGIN>\n## `setobjattr`", "Sets an object attribute with the correct data type.\n<END>", "<BEGIN>\n## `get_scoreboard`", "Return the game file for a certain day matching certain criteria.\n<END>", "<BEGIN>\n## `get_box_score`", "Return the box score file of a game with matching id.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value_to_int API. 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 value_to_int API. 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...
Massage runs in an inning to 0 if an empty string, or key not found. Otherwise return the value
"Massage runs in an inning to 0 if an empty string,\n or key not found. Otherwise return the value"
66
false
panzarino/mlbgame
value_to_int
8,443
LDU_FT/ib-lundgren/flask-oauthprovider/login
LDU_FT
[ "<BEGIN>\n## `authorized`", "Create a verifier for an user authorized client\n<END>", "<BEGIN>\n## `request_token`", "Create an OAuth request token for a valid client request.", " Defaults to /request_token. Invoked by client applications.\n<END>", "<BEGIN>\n## `access_token`", "Create an OAuth a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. 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 login API. 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...
Does the login via OpenID. Has to call into `oid.try_login` to start the OpenID machinery.
"Does the login via OpenID. Has to call into `oid.try_login`\n to start the OpenID machinery."
20
false
ib-lundgren/flask-oauthprovider
login
8,444
LDU_FT/jgorset/django-respite/before
LDU_FT
[ "<BEGIN>\n## `parse_content_type`", "Return a tuple of content type and charset.", " :param content_type: A string describing a content type.\n<END>", "<BEGIN>\n## `parse_http_accept_header`", "Return a list of content types listed in the HTTP Accept header\n ordered by quality.", " :param header...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before API. 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 before API. 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 ...
Run the given method prior to the decorated view. If you return anything besides ``None`` from the given method, its return values will replace the arguments of the decorated view. If you return an instance of ``HttpResponse`` from the given method, Respite will return it immediately without deleg...
"Run the given method prior to the decorated view.\n\n If you return anything besides ``None`` from the given method,\n its return values will replace the arguments of the decorated\n view.\n\n If you return an instance of ``HttpResponse`` from the given method,\n Respite will return it immediately witho...
73
false
jgorset/django-respite
before
8,445
LDU_FT/ph4r05/monero-serialize/get_version
LDU_FT
[ "<BEGIN>\n## `load_uint`", "Constant-width integer serialization\n :param reader:\n :param width:\n :return:\n<END>", "<BEGIN>\n## `dump_uint`", "Constant-width integer serialization\n :param writer:\n :param n:\n :param width:\n :return:\n<END>", "<BEGIN>\n## `load_uvarint_b`", "Vari...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Loads version from the stream / version database # TODO: instance vs. tp. :param tp: :param params: :return:
"Loads version from the stream / version database\n # TODO: instance vs. tp.\n\n :param tp:\n :param params:\n :return:"
273
false
ph4r05/monero-serialize
get_version
8,446
LDU_FT/Samreay/ChainConsumer/add_chain
LDU_FT
[ "<BEGIN>\n## `dic`", "r\"\"\" Returns the corrected Deviance Information Criterion (DIC) for all chains loaded into ChainConsumer.", " If a chain does not have a posterior, this method will return `None` for that chain. **Note that\n the DIC metric is only valid on posterior surfaces which closely...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_chain API. 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 add_chain API. 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...
Add a chain to the consumer. Parameters ---------- chain : str|ndarray|dict The chain to load. Normally a ``numpy.ndarray``. If a string is found, it interprets the string as a filename and attempts to load it in. If a ``dict`` is passed in, it assumes the di...
"Add a chain to the consumer.\n\n Parameters\n ----------\n chain : str|ndarray|dict\n The chain to load. Normally a ``numpy.ndarray``. If a string is found, it\n interprets the string as a filename and attempts to load it in. If a ``dict``\n is passed in, it assume...
155
false
Samreay/ChainConsumer
add_chain
8,447
LDU_FT/NoneGG/aredis/cluster_reset_all_nodes
LDU_FT
[ "<BEGIN>\n## `merge_result`", "Merge all items in `res` into a list.", " This command is used when sending a command to multiple nodes\n and they result from each node should be merged into a single list.\n<END>", "<BEGIN>\n## `first_key`", "Returns the first result for the given command.", " If ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cluster_reset_all_nodes 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 cluster_reset_all_nodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Send CLUSTER RESET to all nodes in the cluster If 'soft' is True then it will send 'SOFT' argument If 'soft' is False then it will send 'HARD' argument Sends to all nodes in the cluster
"Send CLUSTER RESET to all nodes in the cluster\n\n If 'soft' is True then it will send 'SOFT' argument\n If 'soft' is False then it will send 'HARD' argument\n\n Sends to all nodes in the cluster"
421
false
NoneGG/aredis
cluster_reset_all_nodes
8,448
LDU_FT/hydroshare/hs_restclient/shareable
LDU_FT
[ "<BEGIN>\n## `custom`", ":param payload:\r\n a key/value object containing the scimeta you want to store\r\n e.g. {\"weather\": \"sunny\", \"temperature\": \"80C\" }\r\n :return:\r\n empty (200 status code)\n<END>", "<BEGIN>\n## `get`", ":param payload:\r\n a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shareable API. 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 shareable API. 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...
Pass through helper function for flag function.
"Pass through helper function for flag function."
95
false
hydroshare/hs_restclient
shareable
8,449
LDU_FT/PyThaiNLP/pythainlp/thaiword_to_num
LDU_FT
[ "<BEGIN>\n## `spell`", ":param str word: word to check spelling\n :param str engine:\n * pn - Peter Norvig's algorithm (default)\n :return: list of words\n<END>", "<BEGIN>\n## `get_corpus`", "Read corpus from file and return a frozenset", " :param string filename: file corpus\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thaiword_to_num API. 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 thaiword_to_num API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Converts a Thai number spellout word to actual number value :param str word: a Thai number spellout :return: number
"Converts a Thai number spellout word to actual number value\n\n :param str word: a Thai number spellout\n :return: number"
190
false
PyThaiNLP/pythainlp
thaiword_to_num
8,450
LDU_FT/pennlabs/penn-sdk-python/create_hall_to_link_mapping
LDU_FT
[ "<BEGIN>\n## `get_meals`", "Extract meals into old format from a DiningV2 JSON response\n<END>", "<BEGIN>\n## `menu`", "Get the menu for the venue corresponding to venue_id,\n on date.", " :param venue_id:\n A string representing the id of a venue, e.g. \"abc\".\n :param date:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_hall_to_link_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_hall_to_link_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
:return: Mapping from hall name to associated link in SUDS. Creates inverted index from id to hall.
":return: Mapping from hall name to associated link in SUDS. Creates inverted index from id to hall."
115
false
pennlabs/penn-sdk-python
create_hall_to_link_mapping
8,451
LDU_FT/sunt05/SuPy/plot_comp
LDU_FT
[ "<BEGIN>\n## `_path_insensitive`", "Recursive part of path_insensitive to do the work.\n<END>", "<BEGIN>\n## `url_is_alive`", "Checks that a given URL is reachable.\n :param url: A URL\n :rtype: bool\n<END>", "<BEGIN>\n## `form_option`", "generate option name based suffix for URL", " :param str...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_comp API. 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 plot_comp API. 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...
Short summary. Parameters ---------- df_var : pd.DataFrame DataFrame containing variables to plot with datetime as index Returns ------- MPL.figure figure showing 1:1 line plot
"Short summary.\n\n Parameters\n ----------\n df_var : pd.DataFrame\n DataFrame containing variables to plot with datetime as index\n\n Returns\n -------\n MPL.figure\n figure showing 1:1 line plot"
143
false
sunt05/SuPy
plot_comp
8,452
LDU_FT/refindlyllc/rets/parse
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the login xml response\n :param response: the login response from the RETS server\n :return: None\n<END>", "<BEGIN>\n## `read_line`", "Reads lines of XML and delimits, strips, and returns.\n<END>", "<BEGIN>\n## `generator`", "Takes a response socket connection a...
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 the login xml response :param response: the login response from the RETS server :return: None
"Parse the login xml response\n :param response: the login response from the RETS server\n :return: None"
51
false
refindlyllc/rets
parse
8,453
LDU_FT/shaypal5/strct/norm_int_dict
LDU_FT
[ "<BEGIN>\n## `find_point_in_section_list`", "Returns the start of the section the given point belongs to.", " The given list is assumed to contain start points of consecutive\n sections, except for the final point, assumed to be the end point of the\n last section. For example, the list [5, 8, 30, 31] ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the norm_int_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the norm_int_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Normalizes values in the given dict with int values. Parameters ---------- int_dict : list A dict object mapping each key to an int value. Returns ------- dict A dict where each key is mapped to its relative part in the sum of all dict values. Example ------- ...
"Normalizes values in the given dict with int values.\n\n Parameters\n ----------\n int_dict : list\n A dict object mapping each key to an int value.\n\n Returns\n -------\n dict\n A dict where each key is mapped to its relative part in the sum of\n all dict values.\n\n Example...
140
false
shaypal5/strct
norm_int_dict
8,454
LDU_FT/facebook/watchman/run_command
LDU_FT
[ "<BEGIN>\n## `_int_size`", "Return the smallest size int that can store the value\n<END>", "<BEGIN>\n## `loads`", "Deserialize a BSER-encoded blob.", " @param buf: The buffer to deserialize.\n @type buf: bytes", " @param mutable: Whether to return mutable results.\n @type mutable: bool", " ...
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...
The stdout of most fbcode_builder utilities is meant to be parsed.
"The stdout of most fbcode_builder utilities is meant to be parsed."
93
false
facebook/watchman
run_command
8,455
LDU_FT/juiceinc/recipe/AutomaticShelf
LDU_FT
[ "<BEGIN>\n## `cauldron_extras`", "Yield extra tuples containing a field name and a callable that takes\n a row\n<END>", "<BEGIN>\n## `make_column_suffixes`", "Make sure we have the right column suffixes. These will be appended\n to `id` when generating the query.\n<END>", "<BEGIN>\n## `parse_c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AutomaticShelf API. 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 AutomaticShelf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Given a SQLAlchemy Table, automatically generate a Shelf with metrics and dimensions based on its schema.
"Given a SQLAlchemy Table, automatically generate a Shelf with metrics\n and dimensions based on its schema."
129
false
juiceinc/recipe
AutomaticShelf
8,456
LDU_FT/Element-34/py.saunter/verify_is_none
LDU_FT
[ "<BEGIN>\n## `get_random_user`", "Gets a random user from the provider", " :returns: Dictionary\n<END>", "<BEGIN>\n## `is_element_available`", "Synchronization method for making sure the element we're looking for is not only on the page,\n but also visible -- since Se will happily deal with th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_is_none API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_is_none API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Soft assert for whether the expr is None :params want: the object to compare against :params second: the object to compare with :params msg: (Optional) msg explaining the difference
"Soft assert for whether the expr is None\n\n :params want: the object to compare against\n :params second: the object to compare with\n :params msg: (Optional) msg explaining the difference"
81
false
Element-34/py.saunter
verify_is_none
8,457
LDU_FT/pahaz/sshtunnel/_check_paramiko_handlers
LDU_FT
[ "<BEGIN>\n## `check_address`", "Check if the format of the address is correct", " Arguments:\n address (tuple):\n (``str``, ``int``) representing an IP address and port,\n respectively", " .. note::\n alternatively a local ``address`` can be a ``str`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_paramiko_handlers 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 _check_paramiko_handlers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Add a console handler for paramiko.transport's logger if not present
"Add a console handler for paramiko.transport's logger if not present"
96
false
pahaz/sshtunnel
_check_paramiko_handlers
8,458
LDU_FT/wheeler-microfluidics/dmf-control-board-firmware/write_all_series_channel_values
LDU_FT
[ "<BEGIN>\n## `swap_default`", "Given a `sympy` equation or equality, along with a list of symbol names,\n substitute the specified default value for each symbol for which a value is\n not provided through a keyword argument.", " For example, consider the following equality:", " >>> sp.pprint(H)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_all_series_channel_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_all_series_channel_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Return all values for the specified channel of the type corresponding to the function `f`, where `f` is either `self.series_resistance` or `self.series_capacitance`.
"Return all values for the specified channel of the type corresponding\n to the function `f`, where `f` is either `self.series_resistance` or\n `self.series_capacitance`."
206
false
wheeler-microfluidics/dmf-control-board-firmware
write_all_series_channel_values
8,459
LDU_FT/jbarlow83/OCRmyPDF/scale
LDU_FT
[ "<BEGIN>\n## `re_symlink`", "Helper function: relinks soft symbolic link if necessary\n<END>", "<BEGIN>\n## `is_file_writable`", "Intentionally racy test if target is writable.", " We intend to write to the output file if and only if we succeed and\n can replace it atomically. Before doing the OCR wor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale API. 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 scale API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns the pix object rescaled according to the proportions given.
"Returns the pix object rescaled according to the proportions given."
195
false
jbarlow83/OCRmyPDF
scale
8,460
LDU_FT/mrcagney/kml2geojson/to_filename
LDU_FT
[ "<BEGIN>\n## `k2g`", "Given a path to a KML file, convert it to a a GeoJSON FeatureCollection file and save it to the given output directory.", " If ``--separate_folders``, then create several GeoJSON files, one for each folder in the KML file that contains geodata or that has a descendant node that contains...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_filename API. 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_filename API. 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...
Based on `django/utils/text.py <https://github.com/django/django/blob/master/django/utils/text.py>`_. Return the given string converted to a string that can be used for a clean filename. Specifically, leading and trailing spaces are removed; other spaces are converted to underscores, and anything that is not a ...
"Based on `django/utils/text.py <https://github.com/django/django/blob/master/django/utils/text.py>`_.\n Return the given string converted to a string that can be used for a clean filename.\n Specifically, leading and trailing spaces are removed; other spaces are converted to underscores, and anything that is not...
41
false
mrcagney/kml2geojson
to_filename
8,461
LDU_FT/tensorflow/tensor2tensor/_get_sorted_inputs
LDU_FT
[ "<BEGIN>\n## `paracrawl_v3_pairs`", "Generates raw (English, other) pairs from a ParaCrawl V3.0 data file.", " Args:\n paracrawl_file: A ParaCrawl V3.0 en-.. data file.\n Yields:\n Pairs of (sentence_en, sentence_xx), as Unicode strings.\n Raises:\n StopIteration: If the file ends while this method ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_sorted_inputs 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_sorted_inputs 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...
Returning inputs sorted according to decreasing length. This causes inputs of similar lengths to be processed in the same batch, facilitating early stopping for short sequences. Longer sequences are sorted first so that if you're going to get OOMs, you'll see it in the first batch. Args: filename: path...
"Returning inputs sorted according to decreasing length.\n\n This causes inputs of similar lengths to be processed in the same batch,\n facilitating early stopping for short sequences.\n\n Longer sequences are sorted first so that if you're going to get OOMs,\n you'll see it in the first batch.\n\n Args:\n file...
4,769
true
tensorflow/tensor2tensor
_get_sorted_inputs
8,462
LDU_FT/jpadilla/pyjwt/get_default_algorithms
LDU_FT
[ "<BEGIN>\n## `register_algorithm`", "Registers a new Algorithm for use when creating and verifying tokens.\n<END>", "<BEGIN>\n## `unregister_algorithm`", "Unregisters an Algorithm for use when creating and verifying tokens\n Throws KeyError if algorithm is not registered.\n<END>", "<BEGIN>\n## `get_u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_algorithms 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_default_algorithms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns the algorithms that are implemented by the library.
"Returns the algorithms that are implemented by the library."
11
false
jpadilla/pyjwt
get_default_algorithms
8,463
LDU_FT/GemHQ/round-py/authenticate_application
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new Device object.", " Devices tie Users and Applications together. For your Application to\n access and act on behalf of a User, the User must authorize a Device\n created by your Application.", " This function will return a `device_token` which y...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate_application 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 authenticate_application 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 credentials for Application authentication. Important Note: Do not use Application auth on any end-user device. Application auth provides read-access to all Users who have authorized an Application. Use on a secure application server only. Args: api_token (str): Token issu...
"Set credentials for Application authentication.\n Important Note: Do not use Application auth on any end-user device.\n Application auth provides read-access to all Users who have\n authorized an Application. Use on a secure application server only.\n\n Args:\n api_token (str): Tok...
136
false
GemHQ/round-py
authenticate_application
8,464
LDU_FT/what-studio/profiling/recv_msg
LDU_FT
[ "<BEGIN>\n## `by_own_time_per_call`", "Sorting by exclusive elapsed time per call in descending order.\n<END>", "<BEGIN>\n## `result`", "Gets the frozen statistics to serialize by Pickle.\n<END>", "<BEGIN>\n## `dump`", "Saves the profiling result to a file", " :param dump_filename: path to a file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv_msg API. 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 recv_msg API. 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...
Receives a method and message from the socket. This function blocks the current thread.
"Receives a method and message from the socket. This function blocks the\n current thread."
83
false
what-studio/profiling
recv_msg
8,465
LDU_FT/ryanpetrello/python-zombie/fill
LDU_FT
[ "<BEGIN>\n## `_send`", "Establishes a socket connection to the zombie.js server and sends\n Javascript instructions.", " :param js: the Javascript string to execute\n<END>", "<BEGIN>\n## `wait`", "Call a method on the zombie.js Browser instance and wait on a callback.", " :param metho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill API. 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 fill API. 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...
Fill a specified form field in the current document. :param field: an instance of :class:`zombie.dom.DOMNode` :param value: any string value :return: self to allow function chaining.
"Fill a specified form field in the current document.\n\n :param field: an instance of :class:`zombie.dom.DOMNode`\n :param value: any string value\n :return: self to allow function chaining."
33
false
ryanpetrello/python-zombie
fill
8,466
LDU_FT/googlefonts/glyphsLib/column_vectors
LDU_FT
[ "<BEGIN>\n## `to_ufo_font_attributes`", "Generate a list of UFOs with metadata loaded from .glyphs data.", " Modifies the list of UFOs in the UFOBuilder (self) in-place.\n<END>", "<BEGIN>\n## `to_glyphs_font_attributes`", "Copy font attributes from `ufo` either to `self.font` or to `master`.", " Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the column_vectors API. 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 column_vectors API. 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...
The values of the transform as three 2D column vectors
"The values of the transform as three 2D column vectors"
235
false
googlefonts/glyphsLib
column_vectors
8,467
LDU_FT/maceoutliner/django-fiction-outlines/story_node_add_arc_element_update_characters_locations
LDU_FT
[ "<BEGIN>\n## `mk_dropdown_tree`", "Override of ``treebeard`` method to enforce the same root.\n<END>", "<BEGIN>\n## `length_estimate`", "Calculates and estimated word count based on number of characters, locations,\n and arcs. For reference see:\n http://www.writingexcuses.com/2017/07/02/12-27-c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the story_node_add_arc_element_update_characters_locations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the story_node_add_arc_element_update_characters_locations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and...
If an arc element is added to a story element node, add any missing elements or locations.
"If an arc element is added to a story element node, add any missing elements or locations."
61
false
maceoutliner/django-fiction-outlines
story_node_add_arc_element_update_characters_locations
8,468
LDU_FT/rameshg87/pyremotevbox/setUp
LDU_FT
[ "<BEGIN>\n## `_check_typecode_list`", "Check a list of typecodes for compliance with Struct\n requirements.\n<END>", "<BEGIN>\n## `_get_type_or_substitute`", "return typecode or substitute type for wildcard or\n derived type. For serialization only.\n<END>", "<BEGIN>\n## `setDerivedTypeContents`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setUp API. 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 setUp API. 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...
Problematic, loose all model group information. <all>, <choice>, <sequence> .. tp -- type definition empty -- no model group, just use as a dummy holder.
"Problematic, loose all model group information.\n <all>, <choice>, <sequence> ..\n\n tp -- type definition\n empty -- no model group, just use as a dummy holder."
529
false
rameshg87/pyremotevbox
setUp
8,469
LDU_FT/data61/clkhash/update
LDU_FT
[ "<BEGIN>\n## `convert_v1_to_v2`", "Convert v1 schema dict to v2 schema dict.\n :param dict: v1 schema dict\n :return: v2 schema dict\n<END>", "<BEGIN>\n## `from_json_dict`", "Create a Schema for v1 or v2 according to dct", " :param dct: This dictionary must have a `'features'`\n key spec...
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 ...
updates the statistics with the given list of numbers It uses an online algorithm which uses compensated summation to reduce numerical errors. See https://angelacorasaniti.wordpress.com/2015/05/06/hw2-mean-and-variance-of-data-stream/ for details. :param x: list of numbers :return: not...
"updates the statistics with the given list of numbers\n\n It uses an online algorithm which uses compensated summation to reduce numerical errors.\n See https://angelacorasaniti.wordpress.com/2015/05/06/hw2-mean-and-variance-of-data-stream/ for details.\n\n :param x: list of numbers\n :retu...
212
false
data61/clkhash
update
8,470
LDU_FT/adamchainz/django-mysql/label
LDU_FT
[ "<BEGIN>\n## `settings_to_cmd_args`", "Copied from django 1.8 MySQL backend DatabaseClient - where the runshell\n commandline creation has been extracted and made callable like so.\n<END>", "<BEGIN>\n## `pt_fingerprint`", "Takes a query (in a string) and returns its 'fingerprint'\n<END>", "<BEGIN>\n## `i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the label API. 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 label API. 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...
Adds an arbitrary user-defined comment that will appear after SELECT/UPDATE/DELETE which can be used to identify where the query was generated, etc.
"Adds an arbitrary user-defined comment that will appear after\n SELECT/UPDATE/DELETE which can be used to identify where the query was\n generated, etc."
33
false
adamchainz/django-mysql
label
8,471
LDU_FT/adamrothman/ftl/read_frame
LDU_FT
[ "<BEGIN>\n## `read_frame`", "Read a single frame from the local buffer.", " If no frames are available but the stream is still open, waits until\n more frames arrive. Otherwise, raises StreamConsumedError.", " When a stream is closed, a single `None` is added to the data frame\n Qu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_frame API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_frame API. 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...
Read a single frame of data from the specified stream, waiting until frames are available if none are present in the local buffer. If the stream is closed and all buffered frames have been consumed, raises a StreamConsumedError.
"Read a single frame of data from the specified stream, waiting until\n frames are available if none are present in the local buffer. If the\n stream is closed and all buffered frames have been consumed, raises a\n StreamConsumedError."
23
false
adamrothman/ftl
read_frame
8,472