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/OpenTreeOfLife/peyotl/_remove_document
LDU_FT
[ "<BEGIN>\n## `write_taxon_info`", "Writes out data from `taxon` to the `output` stream to demonstrate\n the attributes of a taxon object.\n (currently some lines are commented out until the web-services call returns more info. See:\n https://github.com/OpenTreeOfLife/taxomachine/issues/85\n ).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_document API. 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 _remove_document API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Remove a document Remove a document on the given branch and attribute the commit to author. Returns the SHA of the commit on branch.
"Remove a document\n Remove a document on the given branch and attribute the commit to author.\n Returns the SHA of the commit on branch."
456
false
OpenTreeOfLife/peyotl
_remove_document
20,073
LDU_FT/pyca/pynacl/decrypt
LDU_FT
[ "<BEGIN>\n## `ensure`", "Return if a condition is true, otherwise raise a caller-configurable\n :py:class:`Exception`\n :param bool cond: the condition to be checked\n :param sequence args: the arguments to be passed to the exception's\n constructor\n The only accepted named p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API. 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 decrypt API. 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...
Decrypts the ciphertext using the ephemeral public key enclosed in the ciphertext and the SealedBox private key, returning the plaintext message. :param ciphertext: [:class:`bytes`] The encrypted message to decrypt :param encoder: The encoder used to decode the ciphertext. :retu...
"Decrypts the ciphertext using the ephemeral public key enclosed\n in the ciphertext and the SealedBox private key, returning\n the plaintext message.\n\n :param ciphertext: [:class:`bytes`] The encrypted message to decrypt\n :param encoder: The encoder used to decode the ciphertext.\n ...
266
false
pyca/pynacl
decrypt
20,074
LDU_FT/danielhrisca/asammdf/extract_attachment
LDU_FT
[ "<BEGIN>\n## `extract_cncomment_xml`", "extract *TX* tag or otherwise the *common_properties* from a xml comment", " Paremeters\n ----------\n comment : str\n xml string comment", " Returns\n -------\n comment : str\n extracted string\n<END>", "<BEGIN>\n## `matlab_compatible`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_attachment 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 extract_attachment 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...
extract attachment data by original address or by index. If it is an embedded attachment, then this method creates the new file according to the attachment file name information Parameters ---------- address : int attachment index; default *None* index : int ...
"extract attachment data by original address or by index. If it is an embedded attachment,\n then this method creates the new file according to the attachment file\n name information\n\n Parameters\n ----------\n address : int\n attachment index; default *None*\n ind...
381
false
danielhrisca/asammdf
extract_attachment
20,075
LDU_FT/CyberInt/dockermon/header_status
LDU_FT
[ "<BEGIN>\n## `read_http_header`", "Read HTTP header from socket, return header and rest of data.\n<END>", "<BEGIN>\n## `header_status`", "Parse HTTP status line, return status (int) and reason.\n<END>", "<BEGIN>\n## `connect`", "Connect to UNIX or TCP socket.", " url can be either tcp://<host>:po...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the header_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the header_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Parse HTTP status line, return status (int) and reason.
"Parse HTTP status line, return status (int) and reason."
14
false
CyberInt/dockermon
header_status
20,076
LDU_FT/jashandeep-sohi/python-blowfish/encrypt_block
LDU_FT
[ "<BEGIN>\n## `ctr_counter`", "Return an infinite iterator that starts at `start` and iterates by 1 over\n integers between 0 and 2^64 - 1 cyclically, returning on each iteration the\n result of combining each number with `nonce` using function `f`.", " `nonce` should be an random 64-bit integer that is used ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_block API. 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 encrypt_block API. 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...
Return a :obj:`bytes` object containing the encrypted bytes of a `block`. `block` should be a :obj:`bytes`-like object with exactly 8 bytes. If it is not, a :exc:`ValueError` exception is raised.
"Return a :obj:`bytes` object containing the encrypted bytes of a `block`.\n \n `block` should be a :obj:`bytes`-like object with exactly 8 bytes.\n If it is not, a :exc:`ValueError` exception is raised."
70
false
jashandeep-sohi/python-blowfish
encrypt_block
20,077
LDU_FT/lehins/django-smartfields/get_status_key
LDU_FT
[ "<BEGIN>\n## `process`", "Processing is triggered by field's pre_save method. It will be\n executed if field's value has been changed (known through descriptor and\n stashing logic) or if model instance has never been saved before,\n i.e. no pk set, because there is a chance that field was in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_status_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_status_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Generates a key used to set a status on a field
"Generates a key used to set a status on a field"
16
false
lehins/django-smartfields
get_status_key
20,078
LDU_FT/pytroll/posttroll/_send_to_address
LDU_FT
[ "<BEGIN>\n## `restart_listener`", "Restart listener after configuration update.\n<END>", "<BEGIN>\n## `create_subscriber`", "Create a subscriber instance using specified addresses and\n message types.\n<END>", "<BEGIN>\n## `heartbeat`", "Send a heartbeat ... but only if *min_interval* seconds has p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_to_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_to_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
send data to *address* and *port* without verification of response.
"send data to *address* and *port* without verification of response."
46
false
pytroll/posttroll
_send_to_address
20,079
LDU_FT/dingusdk/PythonIhcSdk/authenticate
LDU_FT
[ "<BEGIN>\n## `authenticate`", "Authenticate and enable the registered notifications\n<END>", "<BEGIN>\n## `get_runtime_value`", "Get runtime value with re-authenticate if needed\n<END>", "<BEGIN>\n## `set_runtime_value_bool`", "Set bool runtime value with re-authenticate if needed\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API. 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 authenticate API. 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...
Do an Authentricate request and save the cookie returned to be used on the following requests. Return True if the request was successfull
"Do an Authentricate request and save the cookie returned to be used\n on the following requests.\n Return True if the request was successfull"
28
false
dingusdk/PythonIhcSdk
authenticate
20,080
LDU_FT/mgedmin/imgdiff/best_diff
LDU_FT
[ "<BEGIN>\n## `parse_color`", "Parse a color value.", " I've decided not to expect a leading '#' because it's a comment character\n in some shells.", " >>> parse_color('4bf') == (0x44, 0xbb, 0xff, 0xff)\n True\n >>> parse_color('ccce') == (0xcc, 0xcc, 0xcc, 0xee)\n True\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the best_diff API. 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 best_diff API. 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...
Find the best alignment of two images that minimizes the differences. Returns (diff, alignments) where ``diff`` is a difference map, and ``alignments`` is a tuple ((x1, y2), (x2, y2)). See ``diff()`` for the description of the alignment numbers.
"Find the best alignment of two images that minimizes the differences.\n\n Returns (diff, alignments) where ``diff`` is a difference map, and\n ``alignments`` is a tuple ((x1, y2), (x2, y2)).\n\n See ``diff()`` for the description of the alignment numbers."
65
false
mgedmin/imgdiff
best_diff
20,081
LDU_FT/foobarbecue/afterflight/progress_bar_media
LDU_FT
[ "<BEGIN>\n## `progress_bar_media`", "progress_bar_media simple tag", " return rendered script tag for javascript used by progress_bar\n<END>", "<BEGIN>\n## `upload_progress`", "Used by Ajax calls", " Return the upload progress and total length values\n<END>", "<BEGIN>\n## `upload_progress`", "AJ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the progress_bar_media 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 progress_bar_media 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...
progress_bar_media simple tag return rendered script tag for javascript used by progress_bar
"progress_bar_media simple tag\n\n return rendered script tag for javascript used by progress_bar"
15
false
foobarbecue/afterflight
progress_bar_media
20,082
LDU_FT/tisimst/pyDOE/_pdist
LDU_FT
[ "<BEGIN>\n## `pbdesign`", "Generate a Plackett-Burman design\r", " Parameter\r\n ---------\r\n n : int\r\n The number of factors to create a matrix for.\r", " Returns\r\n -------\r\n H : 2d-array\r\n An orthogonal design matrix with n columns, one for each factor, and\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pdist API. 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 _pdist API. 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 ...
Calculate the pair-wise point distances of a matrix Parameters ---------- x : 2d-array An m-by-n array of scalars, where there are m points in n dimensions. Returns ------- d : array A 1-by-b array of scalars, where b = m*(m - 1)/2. This array contains ...
"Calculate the pair-wise point distances of a matrix\r\n \r\n Parameters\r\n ----------\r\n x : 2d-array\r\n An m-by-n array of scalars, where there are m points in n dimensions.\r\n \r\n Returns\r\n -------\r\n d : array\r\n A 1-by-b array of scalars, where b = m*(m - 1)/2. This a...
96
false
tisimst/pyDOE
_pdist
20,083
LDU_FT/projectshift/shift-boiler/save
LDU_FT
[ "<BEGIN>\n## `asset`", "Asset helper\n Generates path to a static asset based on configuration base path and\n support for versioning. Will easily allow you to move your assets away to\n a CDN without changing templates. Versioning allows you to cache your asset\n changes forever by the webserver.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Save Puts model into unit of work for persistence. Can optionally commit transaction. Returns persisted model as a result. :param model: object, model to persist :param commit: bool, commit transaction? :return: object, saved model
"Save\n Puts model into unit of work for persistence. Can optionally\n commit transaction. Returns persisted model as a result.\n\n :param model: object, model to persist\n :param commit: bool, commit transaction?\n :return: object, saved model"
166
false
projectshift/shift-boiler
save
20,084
LDU_FT/PMEAL/porespy/add_boundary_regions
LDU_FT
[ "<BEGIN>\n## `show_mesh`", "r\"\"\"\n Visualizes the mesh of a region as obtained by ``get_mesh`` function in\n the ``metrics`` submodule.", " Parameters\n ----------\n mesh : tuple\n A mesh returned by ``skimage.measure.marching_cubes``", " Returns\n -------\n fig : Matplotlib ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_boundary_regions 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 add_boundary_regions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
r""" Given an image partitioned into regions, pads specified faces with new regions Parameters ---------- regions : ND-array An image of the pore space partitioned into regions and labeled faces : list of strings The faces of ``regions`` which should have boundaries added. Opti...
"r\"\"\"\n Given an image partitioned into regions, pads specified faces with new\n regions\n\n Parameters\n ----------\n regions : ND-array\n An image of the pore space partitioned into regions and labeled\n faces : list of strings\n The faces of ``regions`` which should have boundaries...
688
false
PMEAL/porespy
add_boundary_regions
20,085
LDU_FT/davidmiller/letter/_sendtpl
LDU_FT
[ "<BEGIN>\n## `main`", "Do the things!", " Return: 0\n Exceptions:\n<END>", "<BEGIN>\n## `send`", "Send BODY as an @message from FROM to TO", " If we don't have the access tokens for FROM, raise AccountNotFoundError.\n If the tweet resulting from '@{0} {1}'.format(TO, BODY) is > 140 cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sendtpl API. 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 _sendtpl API. 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...
Send a Letter from SENDER to TO, with the subject SUBJECT. Use the current template, with KWARGS as the context. Arguments: - `sender`: unicode - `to`: unicode - `subject`: unicode - `cc`: str or [str] - `bcc`: str or [str] - `replyto`: str - `**k...
"Send a Letter from SENDER to TO, with the subject SUBJECT.\n Use the current template, with KWARGS as the context.\n\n Arguments:\n - `sender`: unicode\n - `to`: unicode\n - `subject`: unicode\n - `cc`: str or [str]\n - `bcc`: str or [str]\n - `replyto`: str\n ...
74
false
davidmiller/letter
_sendtpl
20,086
LDU_FT/ella/ella/generate
LDU_FT
[ "<BEGIN>\n## `thumb`", "Generates html and thumbnails for admin site.\n<END>", "<BEGIN>\n## `clean`", "Validation function that checks the dimensions of the crop whether it fits into the original and the format.\n<END>", "<BEGIN>\n## `clean`", "Check format name uniqueness for sites", " :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. 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 generate API. 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...
Generates photo file in current format. If ``save`` is ``True``, file is saved too.
"Generates photo file in current format.\n\n If ``save`` is ``True``, file is saved too."
180
false
ella/ella
generate
20,087
LDU_FT/xtrementl/focus/execute
LDU_FT
[ "<BEGIN>\n## `_new_token`", "Appends new token to token stream.", " `chars`\n List of token characters. Defaults to current token list.\n `line_no`\n Line number for token. Defaults to current line number.\n<END>", "<BEGIN>\n## `_process_string`", "Process...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Prints task information. `env` Runtime ``Environment`` instance. `args` Arguments object from arg parser.
"Prints task information.\n\n `env`\n Runtime ``Environment`` instance.\n `args`\n Arguments object from arg parser."
413
false
xtrementl/focus
execute
20,088
LDU_FT/mozilla-b2g/fxos-certsuite/main
LDU_FT
[ "<BEGIN>\n## `to_ints`", "Turn version string into a numeric representation for easy comparison.\n Undeclared point versions are assumed to be 0.\n :param version: a NSS version string\n :return: array of [major, minor, point, pointpoint, tag value]\n<END>", "<BEGIN>\n## `first_older_than_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
This will generate you a manifest file, and you need to modify it! There are three category: files, untested, skipped. You can reference current manifest.json. usage: manifest_parser.py (GECKO LOCATION: /B2G/gecko/dom/webidl) The generated file can then be used with process_idl.py
"This will generate you a manifest file, and you need to modify it!\n There are three category: files, untested, skipped.\n You can reference current manifest.json.\n\n usage: manifest_parser.py (GECKO LOCATION: /B2G/gecko/dom/webidl)\n\n The generated file can then be used with process_idl.py"
58
false
mozilla-b2g/fxos-certsuite
main
20,089
LDU_FT/edx/i18n-tools/fix_header
LDU_FT
[ "<BEGIN>\n## `default_config_filename`", "Returns the default name of the configuration file.\n<END>", "<BEGIN>\n## `read_config`", "Returns data found in config file (as dict), or raises exception if file not found\n<END>", "<BEGIN>\n## `rtl_langs`", "Returns the set of translated RTL language codes pres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_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 fix_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...
Replace default headers with edX headers
"Replace default headers with edX headers"
117
false
edx/i18n-tools
fix_header
20,090
LDU_FT/viniciuschiele/flask-io/trace
LDU_FT
[ "<BEGIN>\n## `render`", "Serializes a Python object into a byte array containing a JSON document.\n :param data: A Python object.\n :param mimetype: The mimetype to render the data.\n :return: A byte array containing a JSON document.\n<END>", "<BEGIN>\n## `__get_indent`", "Gets the indent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trace API. 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 trace API. 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...
Collects the data from the given parameters and emit it. :param request: The Flask request. :param response: The Flask response. :param error: The error occurred if any. :param latency: The time elapsed to process the request.
"Collects the data from the given parameters and emit it.\n\n :param request: The Flask request.\n :param response: The Flask response.\n :param error: The error occurred if any.\n :param latency: The time elapsed to process the request."
77
false
viniciuschiele/flask-io
trace
20,091
LDU_FT/sebp/scikit-survival/_check_params
LDU_FT
[ "<BEGIN>\n## `_fit_and_score`", "Train survival model on given data and return its score on test data\n<END>", "<BEGIN>\n## `fit`", "Fit estimator.", " Parameters\n ----------\n X : array-like, shape = (n_samples, n_features)\n Data matrix", " y : structured array, s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Check validity of parameters and raise ValueError if not valid.
"Check validity of parameters and raise ValueError if not valid."
432
false
sebp/scikit-survival
_check_params
20,092
LDU_FT/dagwieers/vmguestlib/GetHostProcessorSpeed
LDU_FT
[ "<BEGIN>\n## `OpenHandle`", "Gets a handle for use with other vSphere Guest API functions. The guest library\n handle provides a context for accessing information about the virtual machine.", " Virtual machine statistics and state data are associated with a particular guest library\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetHostProcessorSpeed 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 GetHostProcessorSpeed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Retrieves the speed of the ESX system's physical CPU in MHz.
"Retrieves the speed of the ESX system's physical CPU in MHz."
50
false
dagwieers/vmguestlib
GetHostProcessorSpeed
20,093
LDU_FT/Commonists/CommonsDownloader/get_exception_based_on_api_message
LDU_FT
[ "<BEGIN>\n## `make_thumbnail_name`", "Return name of the downloaded thumbnail, based on the extension.\n<END>", "<BEGIN>\n## `get_thumbnail_of_file`", "Return the file contents of the thumbnail of the given file.\n<END>", "<BEGIN>\n## `get_exception_based_on_api_message`", "Return the exception matching t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_exception_based_on_api_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_exception_based_on_api_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Return the exception matching the given API error message.
"Return the exception matching the given API error message."
16
false
Commonists/CommonsDownloader
get_exception_based_on_api_message
20,094
LDU_FT/googlefonts/fontmake/run_from_designspace
LDU_FT
[ "<BEGIN>\n## `exclude_args`", "Delete options that are not appropriate for a following code path; exit\n with an error if excluded options were passed in by the user.", " argparse generates a namespace with all options it knows, but not every\n attribute should be passed to all code paths (i.e. options...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_from_designspace 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 run_from_designspace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Run toolchain from a DesignSpace document to produce either static instance fonts (ttf or otf), interpolatable or variable fonts. Args: designspace_path: Path to designspace document. interpolate: If True output all instance fonts, otherwise just masters. If the ...
"Run toolchain from a DesignSpace document to produce either static\n instance fonts (ttf or otf), interpolatable or variable fonts.\n\n Args:\n designspace_path: Path to designspace document.\n interpolate: If True output all instance fonts, otherwise just\n masters. ...
57
false
googlefonts/fontmake
run_from_designspace
20,095
LDU_FT/datamachine/twx/print_bytes
LDU_FT
[ "<BEGIN>\n## `_ige`", "Given a key, given an iv, and message\n do whatever operation asked in the operation field.\n Operation will be checked for: \"decrypt\" and \"encrypt\" strings.\n Returns the message encrypted/decrypted.\n message must be a multiple by 16 bytes (for division in 16 byte bloc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Function to visualize byte streams. Split into bytes, print to console. :param bs: BYTE STRING
"Function to visualize byte streams. Split into bytes, print to console.\n :param bs: BYTE STRING"
94
false
datamachine/twx
print_bytes
20,096
LDU_FT/jjjake/internetarchive/prepare_metadata
LDU_FT
[ "<BEGIN>\n## `prepare_metadata`", "Prepare a metadata dict for an\n :class:`S3PreparedRequest <S3PreparedRequest>` or\n :class:`MetadataPreparedRequest <MetadataPreparedRequest>` object.", " :type metadata: dict\n :param metadata: The metadata dict to be prepared.", " :type source_metadata: dic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Prepare a metadata dict for an :class:`S3PreparedRequest <S3PreparedRequest>` or :class:`MetadataPreparedRequest <MetadataPreparedRequest>` object. :type metadata: dict :param metadata: The metadata dict to be prepared. :type source_metadata: dict :param source_metadata: (optional) The source ...
"Prepare a metadata dict for an\n :class:`S3PreparedRequest <S3PreparedRequest>` or\n :class:`MetadataPreparedRequest <MetadataPreparedRequest>` object.\n\n :type metadata: dict\n :param metadata: The metadata dict to be prepared.\n\n :type source_metadata: dict\n :param source_metadata: (optional) Th...
281
false
jjjake/internetarchive
prepare_metadata
20,097
LDU_FT/dlintott/gns3-converter/save
LDU_FT
[ "<BEGIN>\n## `setup_argparse`", "Setup the argparse argument parser", " :return: instance of argparse\n :rtype: ArgumentParser\n<END>", "<BEGIN>\n## `do_conversion`", "Convert the topology", " :param dict topology_def: Dict containing topology file and snapshot bool.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Save the converted topology :param str output_dir: Output Directory :param Converter converter: Converter instance :param JSONTopology json_topology: JSON topology layout :param bool snapshot: Is this a snapshot? :param bool quiet: No console printing
"Save the converted topology\n\n :param str output_dir: Output Directory\n :param Converter converter: Converter instance\n :param JSONTopology json_topology: JSON topology layout\n :param bool snapshot: Is this a snapshot?\n :param bool quiet: No console printing"
140
false
dlintott/gns3-converter
save
20,098
LDU_FT/mozilla/crontabber/classes_in_namespaces_converter_with_compression
LDU_FT
[ "<BEGIN>\n## `toposort`", "Dependencies are expressed as a dictionary whose keys are items\nand whose values are a set of dependent items. Output is a list of\nsets in topological order. The first set consists of items with no\ndependences, each subsequent set consists of items that depend upon\nitems in the prec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classes_in_namespaces_converter_with_compression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classes_in_namespaces_converter_with_compression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END>...
parameters: template_for_namespace - a template for the names of the namespaces that will contain the classes and their associated required config options. There are two template variables available: %(name)s - ...
"parameters:\n template_for_namespace - a template for the names of the namespaces\n that will contain the classes and their\n associated required config options. There are\n two template variables available: %(name)...
59
false
mozilla/crontabber
classes_in_namespaces_converter_with_compression
20,099
LDU_FT/okpy/ok-client/_display_choices
LDU_FT
[ "<BEGIN>\n## `load`", "Prepares a set of setup, test, and teardown code to be\n run in the console.", " PARAMETERS:\n code -- list; processed lines of code. Elements in the list are\n either strings (input) or CodeAnswer objects (output)\n setup -- str; raw ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _display_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _display_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 ...
Prints a mapping of numbers to choices and returns the mapping as a dictionary.
"Prints a mapping of numbers to choices and returns the\n mapping as a dictionary."
141
false
okpy/ok-client
_display_choices
20,100
LDU_FT/PyGithub/PyGithub/mark_notifications_as_read
LDU_FT
[ "<BEGIN>\n## `add_membership`", ":calls: `PUT /teams/:id/memberships/:user <http://developer.github.com/v3/orgs/teams>`_\n :param member: :class:`github.Nameduser.NamedUser`\n :param role: string\n :rtype: None\n<END>", "<BEGIN>\n## `add_to_repos`", ":calls: `PUT /teams/:id/repos/:org/:re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mark_notifications_as_read 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 mark_notifications_as_read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
:calls: `PUT /notifications <https://developer.github.com/v3/activity/notifications>`_ :param last_read_at: datetime
":calls: `PUT /notifications <https://developer.github.com/v3/activity/notifications>`_\n :param last_read_at: datetime"
520
false
PyGithub/PyGithub
mark_notifications_as_read
20,101
LDU_FT/automl/HpBandSter/get_incumbent_id
LDU_FT
[ "<BEGIN>\n## `get_config`", "Function to sample a new configuration", "\t\t\tThis function is called inside Hyperband to query a new configuration", "\t\t\tParameters:\n\t\t\t-----------\n\t\t\tbudget: float\n\t\t\t\tthe budget for which this configuration is scheduled", "\t\t\treturns: config\n\t\t\t\tshou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_incumbent_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_incumbent_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Find the config_id of the incumbent. The incumbent here is the configuration with the smallest loss among all runs on the maximum budget! If no run finishes on the maximum budget, None is returned!
"Find the config_id of the incumbent.\n\n\t\tThe incumbent here is the configuration with the smallest loss\n\t\tamong all runs on the maximum budget! If no run finishes on the\n\t\tmaximum budget, None is returned!"
188
false
automl/HpBandSter
get_incumbent_id
20,102
LDU_FT/KE-works/pykechain/app_versions
LDU_FT
[ "<BEGIN>\n## `value`", "Value of a reference property.", " You can set the reference with a Part, Part id or None value.\n Ensure that the model of the provided part, matches the configured model", " :return: a :class:`Part` or None\n :raises APIError: When unable to find the assoc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the app_versions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the app_versions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
List of the versions of the internal KE-chain 'app' modules.
"List of the versions of the internal KE-chain 'app' modules."
751
false
KE-works/pykechain
app_versions
20,103
LDU_FT/jbasko/autoboto/to_code
LDU_FT
[ "<BEGIN>\n## `of`", "By default, marks the block as expecting an indented \"body\" blocks of which are then supplied\n as arguments to this method.", " Unless the block specifies a \"closed_by\", if no body blocks are supplied or they are all Nones,\n this will generate a \"pass\" statement...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Generate the code and return it as a string.
"Generate the code and return it as a string."
29
false
jbasko/autoboto
to_code
20,104
LDU_FT/Azure/azure-cli-extensions/_validate_alias_file_content
LDU_FT
[ "<BEGIN>\n## `_retry`", "A function which determines whether and how to retry.", " :param ~azure.storage.models.RetryContext context: \n The retry context. This contains the request, response, and other data \n which can be used to determine whether or not to retry.\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_alias_file_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_alias_file_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Make sure the alias name and alias command in the alias file is in valid format. Args: The alias file path to import aliases from.
"Make sure the alias name and alias command in the alias file is in valid format.\n\n Args:\n The alias file path to import aliases from."
472
false
Azure/azure-cli-extensions
_validate_alias_file_content
20,105
LDU_FT/Unity-Technologies/ml-agents/process_experiences
LDU_FT
[ "<BEGIN>\n## `get_action`", "Decides actions given observations information, and takes them in environment.\n :param brain_info: A dictionary of brain names and BrainInfo from environment.\n :return: an ActionInfo containing action, memories, values and an object\n to be passed to add experie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_experiences 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 process_experiences 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 agent histories for processing condition, and processes them as necessary. Processing involves calculating value and advantage targets for model updating step. :param current_info: Current AllBrainInfo :param next_info: Next AllBrainInfo
"Checks agent histories for processing condition, and processes them as necessary.\n Processing involves calculating value and advantage targets for model updating step.\n :param current_info: Current AllBrainInfo\n :param next_info: Next AllBrainInfo"
171
false
Unity-Technologies/ml-agents
process_experiences
20,106
LDU_FT/MacHu-GWU/angora-project/set_section
LDU_FT
[ "<BEGIN>\n## `run_backup`", "The backup utility method.", " :param root_dir: the directory you want to backup\n :param ignore: file or directory defined in this list will be ignored.\n :param ignore_ext: file with extensions defined in this list will be ignored.\n :param ignore_pattern: any file or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extra...
Set a section. If section already exists, overwrite the old one.
"Set a section. If section already exists, overwrite the old one."
616
false
MacHu-GWU/angora-project
set_section
20,107
LDU_FT/GibbsConsulting/django-plotly-dash/get_initial_arguments
LDU_FT
[ "<BEGIN>\n## `find_stateless_by_name`", "Find stateless app given its name", " First search the Django ORM, and if not found then look the app up in a local registry.\n If the app does not have an ORM entry then a StatelessApp model instance is created.\n<END>", "<BEGIN>\n## `as_dash_app`", "Return a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_initial_arguments 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_initial_arguments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Extract initial arguments for the dash app
"Extract initial arguments for the dash app"
96
false
GibbsConsulting/django-plotly-dash
get_initial_arguments
20,108
LDU_FT/patrickfuller/jgraph/generate
LDU_FT
[ "<BEGIN>\n## `draw`", "Draws an interactive 3D visualization of the inputted graph.", " Args:\n data: Either an adjacency list of tuples (ie. [(1,2),...]) or object\n size: (Optional) Dimensions of visualization, in pixels\n node_size: (Optional) Defaults to 2.0\n edge_size: (Opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. 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 generate API. 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...
Runs a force-directed algorithm on a graph, returning a data structure. Args: data: An adjacency list of tuples (ie. [(1,2),...]) iterations: (Optional) Number of FDL iterations to run in coordinate generation force_strength: (Optional) Strength of Coulomb and Hooke forces ...
"Runs a force-directed algorithm on a graph, returning a data structure.\n\n Args:\n data: An adjacency list of tuples (ie. [(1,2),...])\n iterations: (Optional) Number of FDL iterations to run in coordinate\n generation\n force_strength: (Optional) Strength of Coulomb and Hooke force...
16
false
patrickfuller/jgraph
generate
20,109
LDU_FT/klahnakoski/mo-logs/datetime
LDU_FT
[ "<BEGIN>\n## `_deep_json_to_string`", ":param value: SOME STRUCTURE\n :param depth: THE MAX DEPTH OF PROPERTIES, DEEPER WILL BE STRING-IFIED\n :return: FLATTER STRUCTURE\n<END>", "<BEGIN>\n## `read_settings`", ":param filename: Force load a file\n :param defs: arguments you want to accept\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Convert from unix timestamp to GMT string :param value: unix timestamp :return: string with GMT time
"Convert from unix timestamp to GMT string\n :param value: unix timestamp\n :return: string with GMT time"
74
false
klahnakoski/mo-logs
datetime
20,110
LDU_FT/pinterest/pymemcache/set
LDU_FT
[ "<BEGIN>\n## `murmur3_32`", "MurmurHash3 was written by Austin Appleby, and is placed in the\n public domain. The author hereby disclaims copyright to this source\n code.\n<END>", "<BEGIN>\n## `_readline`", "Read line of text from the socket.", " Read a line of text (delimited by \"\\r\\n\") ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
The memcached "set" command. Args: key: str, see class docs for details. value: str, see class docs for details. expire: optional int, number of seconds until the item is expired from the cache, or zero for no expiry (the default). noreply: optional boo...
"The memcached \"set\" command.\n\n Args:\n key: str, see class docs for details.\n value: str, see class docs for details.\n expire: optional int, number of seconds until the item is expired\n from the cache, or zero for no expiry (the default).\n noreply: op...
89
false
pinterest/pymemcache
set
20,111
LDU_FT/jopohl/urh/set_show_only_status
LDU_FT
[ "<BEGIN>\n## `bootstrap_modulator`", "Set initial parameters for default modulator if it was not edited by user previously\n :return:\n<END>", "<BEGIN>\n## `modulate_data`", ":param buffer: Buffer in which the modulated data shall be written, initialized with zeros\n :return:\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_show_only_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_show_only_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Handles the different combinations of the show only checkboxes, namely: - Show only labels - Show only Diffs
"Handles the different combinations of the show only checkboxes, namely:\n - Show only labels\n - Show only Diffs"
149
false
jopohl/urh
set_show_only_status
20,112
LDU_FT/pyroscope/pyrobase/_encode_multipart_formdata
LDU_FT
[ "<BEGIN>\n## `bwrite`", "Encode a given object to a file or stream.\n<END>", "<BEGIN>\n## `decode`", "Decode data in C{self.data} and return deserialized object.", " @param check_trailer: Raise error if trailing junk is found in data?\n @raise BencodeError: Invalid data.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_multipart_formdata 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 _encode_multipart_formdata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Encode POST body. Return (content_type, body) ready for httplib.HTTP instance
"Encode POST body.\n Return (content_type, body) ready for httplib.HTTP instance"
57
false
pyroscope/pyrobase
_encode_multipart_formdata
20,113
LDU_FT/datadotworld/data.world-py/get_insight
LDU_FT
[ "<BEGIN>\n## `download_dataset`", "Download dataset\n This endpoint will return a .zip containing all files within the dataset as originally uploaded. If you are interested retrieving clean data extracted from those files by data.world, check out `GET:/sql` and `GET:/sparql`.\n This method makes a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_insight API. 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_insight API. 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...
Retrieve an insight Retrieve an insight. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(respo...
"Retrieve an insight\n Retrieve an insight.\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please define a `callback` function\n to be invoked when receiving the response.\n >>> def callback_function(response):\n >>> pprin...
398
false
datadotworld/data.world-py
get_insight
20,114
LDU_FT/pgxcentre/geneparse/_get_generator
LDU_FT
[ "<BEGIN>\n## `get_variant_genotypes`", "Get the genotypes from a well formed variant instance.", " Args:\n marker (Variant): A Variant instance.", " Returns:\n A list of Genotypes instance containing a pointer to the variant as\n well as a vector of encoded genot...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_generator API. 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...
Generates the data (with extract markers and keep, if required.
"Generates the data (with extract markers and keep, if required."
120
false
pgxcentre/geneparse
_get_generator
20,115
LDU_FT/ihgazni2/edict/_update_intersection
LDU_FT
[ "<BEGIN>\n## `pipe_shell_cmds`", "shell_CMDs = {}\n shell_CMDs[1] = 'netstat -n'\n shell_CMDs[2] = \"awk {'print $6'}\"\n<END>", "<BEGIN>\n## `_reorder_via_klist`", "d = {'scheme': 'http', 'path': '/index.php', 'params': 'params', 'query': 'username=query', 'fragment': 'frag', 'username': '', 'p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_intersection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_intersection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
dict1 = {1:'a',2:'b',3:'c',4:'d'} dict2 = {5:'u',2:'v',3:'w',6:'x',7:'y'} _update_intersection(dict1,dict2) pobj(dict1) pobj(dict2)
"dict1 = {1:'a',2:'b',3:'c',4:'d'}\n dict2 = {5:'u',2:'v',3:'w',6:'x',7:'y'}\n _update_intersection(dict1,dict2)\n pobj(dict1)\n pobj(dict2)"
71
false
ihgazni2/edict
_update_intersection
20,116
LDU_FT/inveniosoftware/invenio-indexer/delete
LDU_FT
[ "<BEGIN>\n## `index`", "Index a record.", " The caller is responsible for ensuring that the record has already been\n committed to the database. If a newer version of a record has already\n been indexed then the provided record will not be indexed. This\n behavior can be controlled b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Delete a record. :param record: Record instance.
"Delete a record.\n\n :param record: Record instance."
37
false
inveniosoftware/invenio-indexer
delete
20,117
LDU_FT/Pipoline/rocket-python/get_private_rooms
LDU_FT
[ "<BEGIN>\n## `get_private_rooms`", "Get a listing of all private rooms with their names and IDs\n<END>", "<BEGIN>\n## `get_private_room_history`", "Get various history of specific private group in this case private", " :param room_id:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_private_rooms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_private_rooms API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get a listing of all private rooms with their names and IDs
"Get a listing of all private rooms with their names and IDs"
32
false
Pipoline/rocket-python
get_private_rooms
20,118
LDU_FT/erikrose/blessings/hidden_cursor
LDU_FT
[ "<BEGIN>\n## `derivative_colors`", "Return the names of valid color variants, given the base colors.\n<END>", "<BEGIN>\n## `split_into_formatters`", "Split a possibly compound format string into segments.", " >>> split_into_formatters('bold_underline_bright_blue_on_red')\n ['bold', 'underline', 'brigh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hidden_cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hidden_cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return a context manager that hides the cursor while inside it and makes it visible on leaving.
"Return a context manager that hides the cursor while inside it and\n makes it visible on leaving."
25
false
erikrose/blessings
hidden_cursor
20,119
LDU_FT/adewes/blitzdb/save_to_store
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit all pending transactions to the database.", " .. admonition:: Warning", " This operation can be **expensive** in runtime if a large number of\n documents (>100.000) is contained in the database, since it will\n cause all database indexes ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_to_store API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_to_store API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Save index to store. :raise AttributeError: If no datastore is defined
"Save index to store.\n\n :raise AttributeError: If no datastore is defined"
141
false
adewes/blitzdb
save_to_store
20,120
LDU_FT/howl-anderson/MicroTokenizer/print_markdown
LDU_FT
[ "<BEGIN>\n## `create_tokenizer`", "Create a pipeline component from a factory.", " name (unicode): Factory name to look up in `Language.factories`.\n config (dict): Configuration parameters to initialise component.\n RETURNS (callable): Pipeline component.\n<END>", "<BEGIN>\n## `add_codes...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_markdown API. 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 print_markdown API. 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...
Print data in GitHub-flavoured Markdown format for issues etc. data (dict or list of tuples): Label/value pairs. title (unicode or None): Title, will be rendered as headline 2.
"Print data in GitHub-flavoured Markdown format for issues etc.\n\n data (dict or list of tuples): Label/value pairs.\n title (unicode or None): Title, will be rendered as headline 2."
43
false
howl-anderson/MicroTokenizer
print_markdown
20,121
LDU_FT/andycasey/sick/acceptance_fractions
LDU_FT
[ "<BEGIN>\n## `chains`", "Create a plot showing the walker values for each parameter at every step.", " :param xs:\n The samples. This should be a 3D :class:`numpy.ndarray` of size \n (``n_walkers``, ``n_steps``, ``n_parameters``).", " :type xs:\n :class:`numpy.ndarray`", " :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acceptance_fractions 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 acceptance_fractions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Plot the meana cceptance fractions for each MCMC step. :param mean_acceptance_fractions: The acceptance fractions at each MCMC step. :type mean_acceptance_fractions: :class:`numpy.array` :param burn: [optional] The burn-in point. If provided, a dashed vertical line will be shown a...
"Plot the meana cceptance fractions for each MCMC step.\n\n :param mean_acceptance_fractions:\n The acceptance fractions at each MCMC step.\n\n :type mean_acceptance_fractions:\n :class:`numpy.array`\n\n :param burn: [optional]\n The burn-in point. If provided, a dashed vertical line will ...
179
false
andycasey/sick
acceptance_fractions
20,122
LDU_FT/vallis/libstempo/run
LDU_FT
[ "<BEGIN>\n## `calczeta`", "Calculate the angular separation between position (phi1, theta1) and\n (phi2, theta2)\n<END>", "<BEGIN>\n## `dlmk`", "returns value of d^l_mk as defined in allen, ottewill 97.\n Called by Dlmk\n<END>", "<BEGIN>\n## `Dlmk`", "returns value of D^l_mk as defined in allen, ott...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Runs MultiNest The most important parameters are the two log-probability functions Prior and LogLikelihood. They are called by MultiNest. Prior should transform the unit cube into the parameter cube. Here is an example for a uniform prior:: def Prior(cube, ndim, nparams): for i in...
"Runs MultiNest\n\n The most important parameters are the two log-probability functions Prior\n and LogLikelihood. They are called by MultiNest.\n\n Prior should transform the unit cube into the parameter cube. Here\n is an example for a uniform prior::\n\n def Prior(cube, ndim, nparams):\n ...
160
false
vallis/libstempo
run
20,123
LDU_FT/HttpRunner/HttpRunner/_convert_validators_to_mapping
LDU_FT
[ "<BEGIN>\n## `setup_logger`", "setup root logger with ColoredFormatter.\n<END>", "<BEGIN>\n## `_handle_skip_feature`", "handle skip feature for test\n - skip: skip current test unconditionally\n - skipIf: skip current test if condition is true\n - skipUnless: skip current test...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_validators_to_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_validators_to_mapping API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
convert validators list to mapping. Args: validators (list): validators in list Returns: dict: validators mapping, use (check, comparator) as key. Examples: >>> validators = [ {"check": "v1", "expect": 201, "comparator": "eq"}, {"check": {"b": 1}, "...
"convert validators list to mapping.\n\n Args:\n validators (list): validators in list\n\n Returns:\n dict: validators mapping, use (check, comparator) as key.\n\n Examples:\n >>> validators = [\n {\"check\": \"v1\", \"expect\": 201, \"comparator\": \"eq\"},\n ...
267
false
HttpRunner/HttpRunner
_convert_validators_to_mapping
20,124
LDU_FT/ph4r05/monero-serialize/has_elem
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 has_elem API. 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_elem API. 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...
Has element? :param elem_ref: :return:
"Has element?\n :param elem_ref:\n :return:"
273
false
ph4r05/monero-serialize
has_elem
20,125
LDU_FT/nosegae/NoseGAE/get
LDU_FT
[ "<BEGIN>\n## `_init_taskqueue_stub`", "Initializes the taskqueue stub using nosegae config magic\n<END>", "<BEGIN>\n## `_init_datastore_v3_stub`", "Initializes the datastore stub using nosegae config magic\n<END>", "<BEGIN>\n## `_init_user_stub`", "Initializes the user stub using nosegae config magic\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
GET handler that serves environment data.
"GET handler that serves environment data."
25
false
nosegae/NoseGAE
get
20,126
LDU_FT/MacHu-GWU/pymongo_mate-project/rnd_date_array
LDU_FT
[ "<BEGIN>\n## `read_csv_arg_preprocess`", "Automatically decide if we need to use iterator mode to read a csv file.", " :param abspath: csv file absolute path.\n :param memory_usage: max memory will be used for pandas.read_csv().\n<END>", "<BEGIN>\n## `smart_insert`", "An optimized Insert strategy.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rnd_date_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rnd_date_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Array or Matrix of random date generator.
"Array or Matrix of random date generator."
188
false
MacHu-GWU/pymongo_mate-project
rnd_date_array
20,127
LDU_FT/fvdsn/py-xml-escpos/start_inline
LDU_FT
[ "<BEGIN>\n## `get`", "what's the value of a style at the current stack level\n<END>", "<BEGIN>\n## `enforce_type`", "converts a value to the attribute's type\n<END>", "<BEGIN>\n## `push`", "push a new level on the stack with a style dictionnary containing style:value pairs\n<END>", "<BEGIN>\n## `set`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_inline API. 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 start_inline API. 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...
starts an inline entity with an optional style definition
"starts an inline entity with an optional style definition"
30
false
fvdsn/py-xml-escpos
start_inline
20,128
LDU_FT/theherk/figgypy/kms_decrypt
LDU_FT
[ "<BEGIN>\n## `env_or_default`", "Get environment variable or provide default.", " Args:\n var (str): environment variable to search for\n default (optional(str)): default to return\n<END>", "<BEGIN>\n## `kms_encrypt`", "Encrypt and value with KMS key.", " Args:\n value (str): va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kms_decrypt API. 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 kms_decrypt API. 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...
Decrypt KMS objects in configuration. Args: cfg (dict): configuration dictionary aws_config (dict): aws credentials dict of arguments passed into boto3 session example: aws_creds = {'aws_access_key_id': aws_access_key_id, 'aws_sec...
"Decrypt KMS objects in configuration.\n\n Args:\n cfg (dict): configuration dictionary\n aws_config (dict): aws credentials\n dict of arguments passed into boto3 session\n example:\n aws_creds = {'aws_access_key_id': aws_access_key_id,\n ...
40
false
theherk/figgypy
kms_decrypt
20,129
LDU_FT/jpablo128/simplystatic/generate
LDU_FT
[ "<BEGIN>\n## `make_site_obj`", "Instantiate and return the site. This will be used for all commands\n<END>", "<BEGIN>\n## `random_md_page`", "Generate random markdown page content..", " If the parameters are zero, instead of a fixed number of elements \n it uses a random number.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. 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 generate API. 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...
Generate the page html file. Just open the destination file for writing and write the result of rendering this page.
"Generate the page html file.\n\n Just open the destination file for writing and write the result\n of rendering this page."
85
false
jpablo128/simplystatic
generate
20,130
LDU_FT/PyPSA/PyPSA/define_passive_branch_flows_with_kirchhoff
LDU_FT
[ "<BEGIN>\n## `generate_dummy_graph`", "Generate a dummy graph to feed to the FIAS libraries.\n It adds the \"pos\" attribute and removes the 380 kV duplicate\n buses when the buses have been split, so that all load and generation\n is attached to the 220kV bus.\n<END>", "<BEGIN>\n## `voronoi_partition`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the define_passive_branch_flows_with_kirchhoff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the define_passive_branch_flows_with_kirchhoff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic...
define passive branch flows with the kirchoff method
"define passive branch flows with the kirchoff method"
291
false
PyPSA/PyPSA
define_passive_branch_flows_with_kirchhoff
20,131
LDU_FT/scivision/gridaurora/chapman_profile
LDU_FT
[ "<BEGIN>\n## `to_ut1unix`", "converts time inputs to UT1 seconds since Unix epoch\n<END>", "<BEGIN>\n## `chapman_profile`", "Z0: altitude [km] of intensity peak\n zKM: altitude grid [km]\n H: scale height [km]", " example:\n pz = chapman_profile(110,np.arange(90,200,1),20)\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chapman_profile API. 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 chapman_profile API. 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...
Z0: altitude [km] of intensity peak zKM: altitude grid [km] H: scale height [km] example: pz = chapman_profile(110,np.arange(90,200,1),20)
"Z0: altitude [km] of intensity peak\n zKM: altitude grid [km]\n H: scale height [km]\n\n example:\n pz = chapman_profile(110,np.arange(90,200,1),20)"
36
false
scivision/gridaurora
chapman_profile
20,132
LDU_FT/sighingnow/parsec.py/joint
LDU_FT
[ "<BEGIN>\n## `joint`", "Joint two or more parsers, implements the operator of `(+)`.\n<END>", "<BEGIN>\n## `times`", "Repeat a parser between `mint` and `maxt` times. DO AS MUCH MATCH AS IT CAN.\n Return a list of values.\n<END>", "<BEGIN>\n## `optional`", "`Make a parser as optional. If success, retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the joint API. 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 joint API. 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...
Joint two or more parsers, implements the operator of `(+)`.
"Joint two or more parsers, implements the operator of `(+)`."
50
false
sighingnow/parsec.py
joint
20,133
LDU_FT/agoragames/kairos/get
LDU_FT
[ "<BEGIN>\n## `_resolve_time`", "Resolve the time in seconds of a configuration value.\n<END>", "<BEGIN>\n## `step_size`", "Return the time in seconds of a step. If a begin and end timestamp,\n return the time in seconds between them after adjusting for what buckets\n they alias to. If t1 and t0 resolve ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get the set of values for a named timeseries and interval. If timestamp supplied, will fetch data for the period of time in which that timestamp would have fallen, else returns data for "now". If the timeseries resolution was not defined, then returns a simple list of values for the interval, else retur...
"Get the set of values for a named timeseries and interval. If timestamp\n supplied, will fetch data for the period of time in which that timestamp\n would have fallen, else returns data for \"now\". If the timeseries\n resolution was not defined, then returns a simple list of values for the\n interval, els...
74
false
agoragames/kairos
get
20,134
LDU_FT/ellmetha/django-machina/get_forum_perms_base_context
LDU_FT
[ "<BEGIN>\n## `recurseforumcontents`", "Iterates over the content nodes and renders the contained forum block for each node.\n<END>", "<BEGIN>\n## `forum_list`", "Renders the considered forum list.", " This will render the given list of forums by respecting the order and the depth of each\n forum in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_forum_perms_base_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_forum_perms_base_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Returns the context to provide to the template for permissions contents.
"Returns the context to provide to the template for permissions contents."
293
false
ellmetha/django-machina
get_forum_perms_base_context
20,135
LDU_FT/JensAstrup/pyOutlook/new_email
LDU_FT
[ "<BEGIN>\n## `auto_reply_message`", "The account's Internal auto reply message. Setting the value will change the auto reply message of the\n account, automatically setting the status to enabled (but not altering the schedule).\n<END>", "<BEGIN>\n## `set_auto_reply`", "Set an automatic reply for the a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_email API. 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 new_email API. 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...
Creates a :class:`Message <pyOutlook.core.message.Message>` object. Keyword Args: body (str): The body of the email subject (str): The subject of the email to (List[Contact]): A list of recipients to email Returns: :class:`Message <pyOutlook.core.message...
"Creates a :class:`Message <pyOutlook.core.message.Message>` object.\n\n Keyword Args:\n body (str): The body of the email\n subject (str): The subject of the email\n to (List[Contact]): A list of recipients to email\n\n Returns:\n :class:`Message <pyOutlook.cor...
99
false
JensAstrup/pyOutlook
new_email
20,136
LDU_FT/cga-harvard/Hypermap-Registry/unindex_layer
LDU_FT
[ "<BEGIN>\n## `update_schema`", "set the mapping in solr.\n :param catalog: core\n :return:\n<END>", "<BEGIN>\n## `create_layer_from_metadata_xml`", "Create a layer / keyword list from a metadata record if it does not already exist.\n<END>", "<BEGIN>\n## `create_service_from_endpoint`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unindex_layer API. 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 unindex_layer API. 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...
Remove the index for a layer in the search backend. If cache is set, append it to the list of removed layers, if it isn't send the transaction right away.
"Remove the index for a layer in the search backend.\n If cache is set, append it to the list of removed layers, if it isn't send the transaction right away."
132
false
cga-harvard/Hypermap-Registry
unindex_layer
20,137
LDU_FT/great-expectations/great_expectations/recursively_convert_to_json_serializable
LDU_FT
[ "<BEGIN>\n## `_setup_source_conn`", "Retrieve connection based on source_conn_id. In case of s3 it also configures the bucket.\n Validates that connection id belongs to supported connection type.\n :param source_conn_id:\n :param source_bucket_name:\n<END>", "<BEGIN>\n## `_setup_dest_conn`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recursively_convert_to_json_serializable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recursively_convert_to_json_serializable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Helper function to convert a dict object to one that is serializable Args: test_obj: an object to attempt to convert a corresponding json-serializable object Returns: (dict) A converted test_object Warning: test_obj may also be converted in place.
"Helper function to convert a dict object to one that is serializable\n\n Args:\n test_obj: an object to attempt to convert a corresponding json-serializable object\n\n Returns:\n (dict) A converted test_object\n\n Warning:\n test_obj may also be converted in place."
475
false
great-expectations/great_expectations
recursively_convert_to_json_serializable
20,138
LDU_FT/facebookresearch/fastText/find_nearest_neighbor
LDU_FT
[ "<BEGIN>\n## `cpp_flag`", "Return the -std=c++[0x/11/14] compiler flag.\n The c++14 is preferred over c++0x/11 (when it is available).\n<END>", "<BEGIN>\n## `find_nearest_neighbor`", "query is a 1d numpy array corresponding to the vector to which you want to\n find the closest vector\n vectors is a 2...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_nearest_neighbor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_nearest_neighbor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
query is a 1d numpy array corresponding to the vector to which you want to find the closest vector vectors is a 2d numpy array corresponding to the vectors you want to consider ban_set is a set of indicies within vectors you want to ignore for nearest match cossims is a 1d numpy array of size len(vector...
"query is a 1d numpy array corresponding to the vector to which you want to\n find the closest vector\n vectors is a 2d numpy array corresponding to the vectors you want to consider\n ban_set is a set of indicies within vectors you want to ignore for nearest match\n cossims is a 1d numpy array of size len(v...
32
false
facebookresearch/fastText
find_nearest_neighbor
20,139
LDU_FT/michaelbrooks/twitter-monitor/start_stream
LDU_FT
[ "<BEGIN>\n## `on_error`", "Called when a non-200 status code is returned\n<END>", "<BEGIN>\n## `on_exception`", "An exception occurred in the streaming thread\n<END>", "<BEGIN>\n## `check`", "Checks if the list of tracked terms has changed.\n Returns True if changed, otherwise False.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_stream API. 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 start_stream API. 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...
Starts a stream with teh current tracking terms
"Starts a stream with teh current tracking terms"
24
false
michaelbrooks/twitter-monitor
start_stream
20,140
LDU_FT/quantopian/qgrid/enable
LDU_FT
[ "<BEGIN>\n## `nested_to_record`", "a simplified json_normalize", " converts a nested dict into a flat dict (\"record\"), unlike json_normalize,\n it does not attempt to extract a subset of the data.", " Parameters\n ----------\n ds : dict or list of dicts\n prefix: the prefix, optional, defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Automatically use qgrid to display all DataFrames and/or Series instances in the notebook. Parameters ---------- dataframe : bool Whether to automatically use qgrid to display DataFrames instances. series : bool Whether to automatically use qgrid to display Series instances.
"Automatically use qgrid to display all DataFrames and/or Series\n instances in the notebook.\n\n Parameters\n ----------\n dataframe : bool\n Whether to automatically use qgrid to display DataFrames instances.\n series : bool\n Whether to automatically use qgrid to display Series instances...
95
false
quantopian/qgrid
enable
20,141
LDU_FT/tcalmant/python-javaobj/decode_modified_utf8
LDU_FT
[ "<BEGIN>\n## `decoder`", "This generator processes a sequence of bytes in Modified UTF-8 encoding\n and produces a sequence of unicode string characters.", " It takes bits from the byte until it matches one of the known encoding\n sequences.\n It uses ``DecodeMap`` to mask, compare and generate valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_modified_utf8 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 decode_modified_utf8 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Decodes a sequence of bytes to a unicode text and length using Modified UTF-8. This function is designed to be used with Python ``codecs`` module. :param data: a string of bytes in Modified UTF-8 :param errors: handle decoding errors :return: unicode text and length :raises UnicodeDecodeError: ...
"Decodes a sequence of bytes to a unicode text and length using\n Modified UTF-8.\n This function is designed to be used with Python ``codecs`` module.\n\n :param data: a string of bytes in Modified UTF-8\n :param errors: handle decoding errors\n :return: unicode text and length\n :raises UnicodeDecod...
104
false
tcalmant/python-javaobj
decode_modified_utf8
20,142
LDU_FT/ConsenSys/mythril-classic/_comparison_helper
LDU_FT
[ "<BEGIN>\n## `_get_account`", "Get account by address.", " :param address:\n :return:\n<END>", "<BEGIN>\n## `_get_block_hash`", "Get block hash by block number.", " :param number:\n :return:\n<END>", "<BEGIN>\n## `_get_head_block`", "Get head block header.", " :ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _comparison_helper 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 _comparison_helper 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...
Helper function for comparison operations with BitVecFuncs. :param a: The BitVecFunc to compare. :param b: A BitVec or int to compare to. :param operation: The comparison operation to perform. :return: The resulting Bool
"Helper function for comparison operations with BitVecFuncs.\n\n :param a: The BitVecFunc to compare.\n :param b: A BitVec or int to compare to.\n :param operation: The comparison operation to perform.\n :return: The resulting Bool"
376
false
ConsenSys/mythril-classic
_comparison_helper
20,143
LDU_FT/Pelagicore/qface/install
LDU_FT
[ "<BEGIN>\n## `open_ns`", "generates a open namespace from symbol namespace x { y { z {\n<END>", "<BEGIN>\n## `close_ns`", "generates a closing names statement from a symbol\n<END>", "<BEGIN>\n## `ns`", "generates a namespace x::y::z statement from a symbol\n<END>", "<BEGIN>\n## `app`", "Takes several ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install API. 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 install API. 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...
install the script onto the system using pip3
"install the script onto the system using pip3"
56
false
Pelagicore/qface
install
20,144
LDU_FT/ployground/bsdploy/devices
LDU_FT
[ "<BEGIN>\n## `rsync`", "wrapper around the rsync command.", " the ssh connection arguments are set automatically.", " any args are just passed directly to rsync.\n you can use {host_string} in place of the server.", " the kwargs are passed on the 'local' fabric command.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the devices API. 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 devices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
computes the name of the disk devices that are suitable installation targets by subtracting CDROM- and USB devices from the list of total mounts.
"computes the name of the disk devices that are suitable\n installation targets by subtracting CDROM- and USB devices\n from the list of total mounts."
20
false
ployground/bsdploy
devices
20,145
LDU_FT/eumis/pyviews/apply_attribute
LDU_FT
[ "<BEGIN>\n## `parse_expression`", "Returns tuple with expression type and expression body\n<END>", "<BEGIN>\n## `register_single`", "Generates resolver to return singleton value and adds it to global container\n<END>", "<BEGIN>\n## `wrap_with_scope`", "Wraps function with scope. If scope_name is None curr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_attribute API. 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 apply_attribute API. 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...
Maps xml attribute to instance node property and setups bindings
"Maps xml attribute to instance node property and setups bindings"
34
false
eumis/pyviews
apply_attribute
20,146
LDU_FT/honzamach/pydgets/display
LDU_FT
[ "<BEGIN>\n## `terminal_size`", "Detect the current size of terminal window as a numer of rows and columns.\n<END>", "<BEGIN>\n## `list_settings`", "Get list of all appropriate settings and their default values.", " The returned list is then used in setup() and get_setup() methods to setup\n th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display API. 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 display API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Perform widget rendering and output the result.
"Perform widget rendering and output the result."
71
false
honzamach/pydgets
display
20,147
LDU_FT/droope/droopescan/get_rfu
LDU_FT
[ "<BEGIN>\n## `_convert_to_folder`", "Silverstripe's page contains a list of composer packages. This\n function converts those to folder names. These may be different due\n to installer-name.", " Implemented exponential backoff in order to prevent packager from\n being...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rfu API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rfu API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a list of al "regular file urls" for all plugins.
"Returns a list of al \"regular file urls\" for all plugins."
84
false
droope/droopescan
get_rfu
20,148
LDU_FT/dh1tw/pyhamtools/_download_file
LDU_FT
[ "<BEGIN>\n## `get_homecall`", "Strips off country prefixes (HC2/DH1TW) and activity suffixes (DH1TW/P).", " Args:\n callsign (str): Amateur Radio callsign", " Returns:\n str: callsign without country/activity pre/suffixes", " Raises:\n ValueError: No cal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Download lookup files either from Clublog or Country-files.com
"Download lookup files either from Clublog or Country-files.com"
238
false
dh1tw/pyhamtools
_download_file
20,149
LDU_FT/aegirhall/console-menu/append_item
LDU_FT
[ "<BEGIN>\n## `set_border_style`", "Set the border style using the specified MenuBorderStyle instance.\n :param border_style: the instance of MenuBorderStyle to use for border style formatting.\n<END>", "<BEGIN>\n## `set_border_style_type`", "Set the border style using the specified border style type. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Add an item to the end of the menu before the exit item. Note that Multi-Select Menus will not allow a SubmenuItem to be added, as multi-select menus are expected to be used only for executing multiple actions. Args: item (:obj:`MenuItem`): The item to be added Raises: ...
"Add an item to the end of the menu before the exit item.\n\n Note that Multi-Select Menus will not allow a SubmenuItem to be added, as multi-select menus\n are expected to be used only for executing multiple actions.\n\n Args:\n item (:obj:`MenuItem`): The item to be added\n\n Ra...
107
false
aegirhall/console-menu
append_item
20,150
LDU_FT/andy29485/embypy/search
LDU_FT
[ "<BEGIN>\n## `songs`", "list of songs in the playlist", " |force|", " |coro|", " Returns\n -------\n list\n of type :class:`embypy.objects.Audio`\n<END>", "<BEGIN>\n## `add_items`", "append items to the playlist", " |coro|", " Parameters\n ----------\n items : array_l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. 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 search API. 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 ...
Sends a search request to emby, returns results |coro| Parameters ---------- query : str the search string to send to emby sort_map : dict is a dict of strings to ints. Strings should be item types, and the ints are the priority of those types(for sorting). lower valued(0) ...
"Sends a search request to emby, returns results\n\n |coro|\n\n Parameters\n ----------\n query : str\n the search string to send to emby\n sort_map : dict\n is a dict of strings to ints. Strings should be item types, and\n the ints are the priority of those types(for sorting).\n lowe...
87
false
andy29485/embypy
search
20,151
LDU_FT/oscarlazoarjona/fast/fast_rabi_terms
LDU_FT
[ "<BEGIN>\n## `fit_lorentizan`", "Fits a lorentzian curve using p0=[x0,A,gamma] as an initial guess.\r\n\tIt returns a curve with N_points.\n<END>", "<BEGIN>\n## `electric_field_amplitude_gaussian`", "Return the amplitude of the electric field for a Gaussian beam.\r", " This the amplitude at the center of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fast_rabi_terms API. 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 fast_rabi_terms API. 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...
r"""Return a fast function that returns the Rabi frequency terms. We test a basic two-level system. >>> import numpy as np >>> from scipy.constants import physical_constants >>> from sympy import Matrix >>> from fast.electric_field import electric_field_amplitude_top >>> from fast.symbolic imp...
"r\"\"\"Return a fast function that returns the Rabi frequency terms.\n\n We test a basic two-level system.\n\n >>> import numpy as np\n >>> from scipy.constants import physical_constants\n >>> from sympy import Matrix\n >>> from fast.electric_field import electric_field_amplitude_top\n >>> from fast....
668
false
oscarlazoarjona/fast
fast_rabi_terms
20,152
LDU_FT/khazhyk/osuapi/enabled_flags
LDU_FT
[ "<BEGIN>\n## `get_user`", "Get a user profile.", " Parameters\n ----------\n username : str or int\n A `str` representing the user's username, or an `int` representing the user's id.\n mode : :class:`osuapi.enums.OsuMode`\n The osu! game mode for which to look u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enabled_flags API. 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 enabled_flags API. 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...
Return the objects for each individual set flag.
"Return the objects for each individual set flag."
27
false
khazhyk/osuapi
enabled_flags
20,153
LDU_FT/wtolson/pysis/file_variations
LDU_FT
[ "<BEGIN>\n## `apply_scaling`", "Scale pixel values to there true DN.", " :param copy: whether to apply the scalling to a copy of the pixel data\n and leave the orginial unaffected", " :returns: a scalled version of the pixel data\n<END>", "<BEGIN>\n## `specials_mask`", "Create a p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_variations API. 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 file_variations API. 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...
Create a variation of file names. Generate a list of variations on a filename by replacing the extension with a the provided list. :param filename: The original file name to use as a base. :param extensions: A list of file extensions to generate new filenames.
"Create a variation of file names.\n\n Generate a list of variations on a filename by replacing the extension with\n a the provided list.\n\n :param filename: The original file name to use as a base.\n\n :param extensions: A list of file extensions to generate new filenames."
42
false
wtolson/pysis
file_variations
20,154
LDU_FT/kpdyer/libfte/long_to_bytes
LDU_FT
[ "<BEGIN>\n## `long_to_bytes`", "Given an input integer ``N``, ``long_to_bytes`` returns the representation of ``N`` in bytes.\n If ``blocksize`` is greater than ``1`` then the output string will be right justified and then padded with zero-bytes,\n such that the return values length is a multiple of ``block...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the long_to_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the long_to_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Given an input integer ``N``, ``long_to_bytes`` returns the representation of ``N`` in bytes. If ``blocksize`` is greater than ``1`` then the output string will be right justified and then padded with zero-bytes, such that the return values length is a multiple of ``blocksize``.
"Given an input integer ``N``, ``long_to_bytes`` returns the representation of ``N`` in bytes.\n If ``blocksize`` is greater than ``1`` then the output string will be right justified and then padded with zero-bytes,\n such that the return values length is a multiple of ``blocksize``."
16
false
kpdyer/libfte
long_to_bytes
20,155
LDU_FT/src-d/jgit-spark-connector/head_ref
LDU_FT
[ "<BEGIN>\n## `repositories`", "Returns a DataFrame with the data about the repositories found at\n the specified repositories path in the form of siva files.", " >>> repos_df = engine.repositories", " :rtype: RepositoriesDataFrame\n<END>", "<BEGIN>\n## `blobs`", "Retrieves the blobs o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the head_ref API. 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 head_ref API. 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...
Filters the current DataFrame to only contain those rows whose reference is HEAD. >>> heads_df = refs_df.head_ref :rtype: ReferencesDataFrame
"Filters the current DataFrame to only contain those rows whose reference is HEAD.\n\n >>> heads_df = refs_df.head_ref\n\n :rtype: ReferencesDataFrame"
76
false
src-d/jgit-spark-connector
head_ref
20,156
LDU_FT/zeaphoo/budoc/classes
LDU_FT
[ "<BEGIN>\n## `import_module`", "Imports a module. A single point of truth for importing modules to\n be documented by `pydoc`. In particular, it makes sure that the top\n module in `module_name` can be imported by using only the paths in\n `pydoc.import_path`.", " If a module has already been import...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classes API. 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 classes API. 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 all documented module level classes in the module sorted alphabetically as a list of `pydoc.Class`.
"Returns all documented module level classes in the module\n sorted alphabetically as a list of `pydoc.Class`."
54
false
zeaphoo/budoc
classes
20,157
LDU_FT/GoogleCloudPlatform/compute-image-packages/WatchMetadata
LDU_FT
[ "<BEGIN>\n## `EnableNetworkInterfaces`", "Enable the list of network interfaces.", " Args:\n interfaces: list of string, the output device names to enable.\n logger: logger object, used to write to SysLog and serial port.\n dhclient_script: string, the path to a dhclient script used by dhclien...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the WatchMetadata API. 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 WatchMetadata API. 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...
Watch for changes to the contents of the metadata server. Args: handler: callable, a function to call with the updated metadata contents. metadata_key: string, the metadata key to watch for changes. recursive: bool, True if we should recursively watch for metadata changes. timeout: int, tim...
"Watch for changes to the contents of the metadata server.\n\n Args:\n handler: callable, a function to call with the updated metadata contents.\n metadata_key: string, the metadata key to watch for changes.\n recursive: bool, True if we should recursively watch for metadata changes.\n timeout: i...
310
false
GoogleCloudPlatform/compute-image-packages
WatchMetadata
20,158
LDU_FT/fdb/aufmachen/find_number
LDU_FT
[ "<BEGIN>\n## `phantomjs_retrieve`", "Retrieve the given URL using PhantomJS.\n PhantomJS will evaluate all scripts and return the HTML after body.onload.", " url - The page URL to retrieve\n data - The form data. TODO: Currently ignored.", " Returns a status code (e.g. 200) and the HTML as a unic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Find a number using a given regular expression. If the string cannot be found, returns None. The regex should contain one matching group, as only the result of the first group is returned. The group should only contain numeric characters ([0-9]+). s - The string to search. regex - A string...
"Find a number using a given regular expression.\n If the string cannot be found, returns None.\n The regex should contain one matching group, \n as only the result of the first group is returned.\n The group should only contain numeric characters ([0-9]+).\n \n s - The string to search.\n regex - ...
43
false
fdb/aufmachen
find_number
20,159
LDU_FT/inveniosoftware-attic/invenio-knowledge/add_kb_mapping
LDU_FT
[ "<BEGIN>\n## `load`", "Load given file into knowledge base.", " Simply load data into an existing knowledge base:", " .. code-block:: console", " $ inveniomanage knowledge load mykb /path/to/file.kb", " The file is expected to have a mapping with values: ``foo<seperator>bar``\n (per lin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_kb_mapping API. 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 add_kb_mapping API. 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...
Add a new mapping to given kb. :param kb_name: the name of the kb where to insert the new value :param key: the key of the mapping :param value: the value of the mapping
"Add a new mapping to given kb.\n\n :param kb_name: the name of the kb where to insert the new value\n :param key: the key of the mapping\n :param value: the value of the mapping"
111
false
inveniosoftware-attic/invenio-knowledge
add_kb_mapping
20,160
LDU_FT/ajdavis/mongo-mockup-db/unpack
LDU_FT
[ "<BEGIN>\n## `go`", "Launch an operation on a thread and get a handle to its future result.", " >>> from time import sleep\n >>> def print_sleep_print(duration):\n ... sleep(duration)\n ... print('hello from background thread')\n ... sleep(duration)\n ... print('goodbye from ba...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API. 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 unpack API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Parse message and return an `OpQuery` or `Command`. Takes the client message as bytes, the client and server socket objects, and the client request id.
"Parse message and return an `OpQuery` or `Command`.\n\n Takes the client message as bytes, the client and server socket objects,\n and the client request id."
129
false
ajdavis/mongo-mockup-db
unpack
20,161
LDU_FT/gamechanger/schemer/one_of
LDU_FT
[ "<BEGIN>\n## `Mixed`", "Mixed type, used to indicate a field in a schema can be\n one of many types. Use as a last resort only.\n The Mixed type can be used directly as a class to indicate\n any type is permitted for a given field:\n `\"my_field\": {\"type\": Mixed}`\n It can also be instantiated w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the one_of API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the one_of API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Validates that a field value matches one of the values given to this validator.
"Validates that a field value matches one of the values\n given to this validator."
48
false
gamechanger/schemer
one_of
20,162
LDU_FT/Aluriak/bubble-tools/infer_format
LDU_FT
[ "<BEGIN>\n## `bubble_to_dot`", "Write in dotfile a graph equivalent to those depicted in bubble file\n<END>", "<BEGIN>\n## `bubble_to_gexf`", "Write in bblfile a graph equivalent to those depicted in bubble file\n<END>", "<BEGIN>\n## `bubble_to_js`", "Write in jsdir a graph equivalent to those depicted in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the infer_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the infer_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return extension identifying format of given filename
"Return extension identifying format of given filename"
88
false
Aluriak/bubble-tools
infer_format
20,163
LDU_FT/Fortran-FOSS-Programmers/ford/get_name
LDU_FT
[ "<BEGIN>\n## `line_to_variables`", "Returns a list of variables declared in the provided line of code. The\n line of code should be provided as a string.\n<END>", "<BEGIN>\n## `parse_type`", "Gets variable type, kind, length, and/or derived-type attributes from a\n variable declaration.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the name for this item registered with this NameSelector. If no name has previously been registered, then generate a new one.
"Return the name for this item registered with this NameSelector.\n If no name has previously been registered, then generate a new\n one."
76
false
Fortran-FOSS-Programmers/ford
get_name
20,164
LDU_FT/dask/dask-ml/fit
LDU_FT
[ "<BEGIN>\n## `normalize_params`", "Take a list of dictionaries, and tokenize/normalize.\n<END>", "<BEGIN>\n## `check_cv`", "Dask aware version of ``sklearn.model_selection.check_cv``", " Same as the scikit-learn version, but works if ``y`` is a dask object.\n<END>", "<BEGIN>\n## `compute_n_splits`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. 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 fit API. 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...
Fit the underlying estimator. Parameters ---------- X, y : array-like **kwargs Additional fit-kwargs for the underlying estimator. Returns ------- self : object
"Fit the underlying estimator.\n\n Parameters\n ----------\n X, y : array-like\n **kwargs\n Additional fit-kwargs for the underlying estimator.\n\n Returns\n -------\n self : object"
361
false
dask/dask-ml
fit
20,165
LDU_FT/django-crispy-forms/django-crispy-forms/specialspaceless
LDU_FT
[ "<BEGIN>\n## `do_uni_form`", "You need to pass in at least the form/formset object, and can also pass in the\n optional `crispy_forms.helpers.FormHelper` object.", " helper (optional): A `crispy_forms.helper.FormHelper` object.", " Usage::", " {% load crispy_tags %}\n {% crispy form f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the specialspaceless API. 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 specialspaceless API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Removes whitespace between HTML tags, and introduces a whitespace after buttons an inputs, necessary for Bootstrap to place them correctly in the layout.
"Removes whitespace between HTML tags, and introduces a whitespace\n after buttons an inputs, necessary for Bootstrap to place them\n correctly in the layout."
89
false
django-crispy-forms/django-crispy-forms
specialspaceless
20,166
LDU_FT/StyXman/ayrton/findCaller
LDU_FT
[ "<BEGIN>\n## `build_ast`", "Convert an top level parse tree node into an AST mod.\n<END>", "<BEGIN>\n## `number_of_statements`", "Compute the number of AST statements contained in a node.\n<END>", "<BEGIN>\n## `error`", "Raise a SyntaxError with the lineno and col_offset set to n's.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findCaller API. 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 findCaller API. 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...
Find the stack frame of the caller so that we can note the source file name, line number and function name. Not only ignore this class's and logger's source, but also as many callers as requested.
"Find the stack frame of the caller so that we can note the source\n file name, line number and function name. Not only ignore this class's\n and logger's source, but also as many callers as requested."
107
false
StyXman/ayrton
findCaller
20,167
LDU_FT/openearth/bmi-python/update
LDU_FT
[ "<BEGIN>\n## `colorlogs`", "Append a rainbow logging handler and a formatter to the root logger\n<END>", "<BEGIN>\n## `create_string_buffer`", "create_string_buffer(aString) -> character array\n create_string_buffer(anInteger) -> character array\n create_string_buffer(aString, anInteger) -> character ar...
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 ...
Return type string, compatible with numpy.
"Return type string, compatible with numpy."
39
false
openearth/bmi-python
update
20,168
LDU_FT/DAI-Lab/Copulas/to_dict
LDU_FT
[ "<BEGIN>\n## `get_lower_bound`", "Compute the lower bound to integrate cumulative density.", " Returns:\n float: lower bound for cumulative density integral.\n<END>", "<BEGIN>\n## `get_column_names`", "Return iterable containing columns for the given array X.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns parameters to replicate the distribution.
"Returns parameters to replicate the distribution."
278
false
DAI-Lab/Copulas
to_dict
20,169
LDU_FT/neuropsychology/NeuroKit.py/interpolate
LDU_FT
[ "<BEGIN>\n## `complexity`", "Computes several chaos/complexity indices of a signal (including entropy, fractal dimensions, Hurst and Lyapunov exponent etc.).", " Parameters\n ----------\n signal : list or array\n List or array of values.\n sampling_rate : int\n Sampling rate (samples/s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interpolate API. 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 interpolate API. 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...
3rd order spline interpolation. Parameters ---------- values : dataframe Values. value_times : list Time indices of values. sampling_rate : int Sampling rate (samples/second). Returns ---------- signal : pd.Series An array containing the values indexed b...
"3rd order spline interpolation.\n\n Parameters\n ----------\n values : dataframe\n Values.\n value_times : list\n Time indices of values.\n sampling_rate : int\n Sampling rate (samples/second).\n\n Returns\n ----------\n signal : pd.Series\n An array containing the v...
778
false
neuropsychology/NeuroKit.py
interpolate
20,170
LDU_FT/kdeldycke/chessboard/long_description
LDU_FT
[ "<BEGIN>\n## `increment`", "Increment the last permutation we returned to the next.\n<END>", "<BEGIN>\n## `skip_branch`", "Abandon the branch at the provided level and skip to the next.", " When we call out to skip to the next branch of the search space, we\n push sublevel pieces to the maximu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the long_description API. 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 long_description API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Collates project README and latest changes.
"Collates project README and latest changes."
53
false
kdeldycke/chessboard
long_description
20,171
LDU_FT/jam31118/vis/set_global_fontsize_from_fig
LDU_FT
[ "<BEGIN>\n## `estimate_global_norm_range`", "Return estimated global range for 2D (pcolormesh-like) plot.", " ## Returns:\n - vmin\n - vmax\n<END>", "<BEGIN>\n## `process_frames_argument`", "Check and process 'frames' argument\n into a proper iterable for an animation object", " ## Argument...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_global_fontsize_from_fig API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_global_fontsize_from_fig API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Set matplotlib.rcParams['font.size'] value so that all texts on a plot would look nice in terms of fontsize. [NOTE] The formula for the font size is: fontsize = sqrt(fig_area) * 'scale' where fig_area = fig_height * fig_width (in inch)
"Set matplotlib.rcParams['font.size'] value so that\n all texts on a plot would look nice in terms of fontsize.\n\n [NOTE] The formula for the font size is:\n\n fontsize = sqrt(fig_area) * 'scale'\n\n where fig_area = fig_height * fig_width (in inch)"
53
false
jam31118/vis
set_global_fontsize_from_fig
20,172