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/shazow/workerpool/contract
LDU_FT
[ "<BEGIN>\n## `put`", "Perform a job by a member in the pool and return the result.\n<END>", "<BEGIN>\n## `contract`", "Perform a contract on a number of jobs and block until a result is\n retrieved for each job.\n<END>", "<BEGIN>\n## `shrink`", "Get rid of one worker from the pool. Raises IndexErro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contract API. 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 contract API. 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...
Perform a contract on a number of jobs and block until a result is retrieved for each job.
"Perform a contract on a number of jobs and block until a result is\n retrieved for each job."
10
false
shazow/workerpool
contract
15,773
LDU_FT/houtianze/bypy/restore
LDU_FT
[ "<BEGIN>\n## `human_time`", "DocTests:\n\t>>> human_time(0) == ''\n\tTrue\n\t>>> human_time(122.1) == '2m2s'\n\tTrue\n\t>>> human_time(133) == '2m13s'\n\tTrue\n\t>>> human_time(12345678) == '20W2D21h21m18s'\n\tTrue\n<END>", "<BEGIN>\n## `limit_unit`", "DocTests:\n\t>>> limit_unit('1m2s', 1) == '1m'\n\tTrue\n\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore API. 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 restore API. 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...
Usage: restore <remotepath> - \ restore a file from the recycle bin remotepath - the remote path to restore
"Usage: restore <remotepath> - \\\nrestore a file from the recycle bin\n remotepath - the remote path to restore"
55
false
houtianze/bypy
restore
15,774
LDU_FT/graphistry/pygraphistry/hypergraph
LDU_FT
[ "<BEGIN>\n## `_connect`", "Retrieve token from USMA API and create an authenticated session\n :returns OAuth2Session: authenticated client session\n<END>", "<BEGIN>\n## `_retrieve_items`", "Retrieve num_items from item_type\n :param int num_items: Max items to retrieve\n :param dict param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hypergraph API. 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 hypergraph API. 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...
Transform a dataframe into a hypergraph. :param Dataframe raw_events: Dataframe to transform :param List entity_types: Optional list of columns (strings) to turn into nodes, None signifies all :param Dict opts: See below :param bool drop_edge_attrs: Whether to include each row's attribu...
"Transform a dataframe into a hypergraph.\n\n :param Dataframe raw_events: Dataframe to transform\n :param List entity_types: Optional list of columns (strings) to turn into nodes, None signifies all\n :param Dict opts: See below\n :param bool drop_edge_attrs: Whether to include each row's a...
127
false
graphistry/pygraphistry
hypergraph
15,775
LDU_FT/MatterMiners/cobald/load
LDU_FT
[ "<BEGIN>\n## `exclusive`", "Mark a callable as exclusive", " :param via: factory for a Lock to guard the callable", " Guards the callable against being entered again before completion.\n Explicitly raises a :py:exc:`RuntimeError` on violation.", " :note: If applied to a method, it is exclusive a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load a configuration and keep it alive for the given context :param config_path: path to a configuration file
"Load a configuration and keep it alive for the given context\n\n :param config_path: path to a configuration file"
74
false
MatterMiners/cobald
load
15,776
LDU_FT/erikrose/nose-progressive/_printTraceback
LDU_FT
[ "<BEGIN>\n## `format_traceback`", "Return an iterable of formatted Unicode traceback frames.", " Also include a pseudo-frame at the end representing the exception itself.", " Format things more compactly than the stock formatter, and make every\n frame an editor shortcut.\n<END>", "<BEGIN>\n## `ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _printTraceback API. 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 _printTraceback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Print a nicely formatted traceback. :arg err: exc_info()-style traceback triple :arg test: the test that precipitated this call
"Print a nicely formatted traceback.\n\n :arg err: exc_info()-style traceback triple\n :arg test: the test that precipitated this call"
65
false
erikrose/nose-progressive
_printTraceback
15,777
LDU_FT/inveniosoftware/invenio-oauth2server/get_client
LDU_FT
[ "<BEGIN>\n## `require_api_auth`", "Decorator to require API authentication using OAuth token.", " :param allow_anonymous: Allow access without OAuth token\n (default: ``False``).\n<END>", "<BEGIN>\n## `require_oauth_scopes`", "r\"\"\"Decorator to require a list of OAuth scopes.", " Decorator ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_client API. 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 get_client API. 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...
Load the client. Needed for grant_type client_credentials. Add support for OAuth client_credentials access type, with user inactivation support. :param client_id: The client ID. :returns: The client instance or ``None``.
"Load the client.\n\n Needed for grant_type client_credentials.\n\n Add support for OAuth client_credentials access type, with user\n inactivation support.\n\n :param client_id: The client ID.\n :returns: The client instance or ``None``."
92
false
inveniosoftware/invenio-oauth2server
get_client
15,778
LDU_FT/deep-compute/deeputil/xcode
LDU_FT
[ "<BEGIN>\n## `FunctionTimer`", "To check execution time of a function\n borrowed from https://medium.com/pythonhive/python-decorator-to-measure-the-execution-time-of-methods-fa04cb6bb36d", " >>> def logger(details, args, kwargs): #some function that uses the time output\n ... print(details)\n .....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xcode API. 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 xcode API. 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...
Converts unicode encoding to str >>> xcode(b'hello') b'hello' >>> xcode('hello') b'hello'
"Converts unicode encoding to str\n\n >>> xcode(b'hello')\n b'hello'\n >>> xcode('hello')\n b'hello'"
68
false
deep-compute/deeputil
xcode
15,779
LDU_FT/click-contrib/click-configfile/process_config_section
LDU_FT
[ "<BEGIN>\n## `find_packages_by_root_package`", "Better than excluding everything that is not needed,\n collect only what is needed.\n<END>", "<BEGIN>\n## `make_long_description`", "click_ is a framework to simplify writing composable commands for\n command-line tools. This package extends the click_ fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_config_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_config_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....
Process the config section and store the extracted data in the param:`storage` (as outgoing param).
"Process the config section and store the extracted data in\n the param:`storage` (as outgoing param)."
181
false
click-contrib/click-configfile
process_config_section
15,780
LDU_FT/jcrobak/parquet-python/_read_dictionary_page
LDU_FT
[ "<BEGIN>\n## `_get_footer_size`", "Read the footer size in bytes, which is serialized as little endian.\n<END>", "<BEGIN>\n## `_read_footer`", "Read the footer from the given file object and returns a FileMetaData object.", " This method assumes that the fo references a valid parquet file.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_dictionary_page 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 _read_dictionary_page API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Read a page containing dictionary data. Consumes data using the plain encoding and returns an array of values.
"Read a page containing dictionary data.\n\n Consumes data using the plain encoding and returns an array of values."
71
false
jcrobak/parquet-python
_read_dictionary_page
15,781
LDU_FT/RI-imaging/ODTbrain/backpropagate_2d
LDU_FT
[ "<BEGIN>\n## `integrate_2d`", "r\"\"\"(slow) 2D reconstruction with the Fourier diffraction theorem", " Two-dimensional diffraction tomography reconstruction\n algorithm for scattering of a plane wave\n :math:`u_0(\\mathbf{r}) = u_0(x,z)`\n by a dielectric object with refractive index\n :math:`n(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backpropagate_2d API. 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 backpropagate_2d API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
r"""2D backpropagation with the Fourier diffraction theorem Two-dimensional diffraction tomography reconstruction algorithm for scattering of a plane wave :math:`u_0(\mathbf{r}) = u_0(x,z)` by a dielectric object with refractive index :math:`n(x,z)`. This method implements the 2D backpropagati...
"r\"\"\"2D backpropagation with the Fourier diffraction theorem\n\n Two-dimensional diffraction tomography reconstruction\n algorithm for scattering of a plane wave\n :math:`u_0(\\mathbf{r}) = u_0(x,z)`\n by a dielectric object with refractive index\n :math:`n(x,z)`.\n\n This method implements the 2D ...
155
false
RI-imaging/ODTbrain
backpropagate_2d
15,782
LDU_FT/project-generator/project_generator/_determine_tool
LDU_FT
[ "<BEGIN>\n## `_determine_tool`", "Yields tuples in the form of (linker file, tool the file links for\n<END>", "<BEGIN>\n## `create_yaml`", "Find what tool the linker works for - if multiple linkers in this dir, project_yaml['common']['linker_file']\n is a list. Tools is an iterator\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _determine_tool API. 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 _determine_tool API. 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...
Yields tuples in the form of (linker file, tool the file links for
"Yields tuples in the form of (linker file, tool the file links for"
28
false
project-generator/project_generator
_determine_tool
15,783
LDU_FT/gabstopper/smc-python/ciphers
LDU_FT
[ "<BEGIN>\n## `element_href`", "Get specified element href by element name", " :param name: name of element\n :return: string href location of object, else None\n<END>", "<BEGIN>\n## `element_as_json`", "Get specified element json data by name", " :param name: name of element\n :return: json da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ciphers API. 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 ciphers API. 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...
This is a helper method that will return all of the cipher strings used in a specified TLSCryptographySuite or returns the system default NIST profile list of ciphers. This can be used as a helper to identify the ciphers to specify/add when creating a new TLSCryptographySuite. ...
"This is a helper method that will return all of the cipher\n strings used in a specified TLSCryptographySuite or returns\n the system default NIST profile list of ciphers. This can\n be used as a helper to identify the ciphers to specify/add\n when creating a new TLSCryptographySuite.\n ...
1,703
true
gabstopper/smc-python
ciphers
15,784
LDU_FT/lebinh/ngxtop/add_field
LDU_FT
[ "<BEGIN>\n## `detect_config_path`", "Get nginx configuration file path based on `nginx -V` output\n :return: detected nginx configuration file path\n<END>", "<BEGIN>\n## `get_access_logs`", "Parse config for access_log directives\n :return: iterator over ('path', 'format name') tuple of found directives...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Apply given function to the record and store result in given field of current record. Do nothing if record already contains given field.
"Apply given function to the record and store result in given field of current record.\n Do nothing if record already contains given field."
18
false
lebinh/ngxtop
add_field
15,785
LDU_FT/EventTeam/beliefs/get_boundaries
LDU_FT
[ "<BEGIN>\n## `size`", "Size of LazyCell: the size of the intension plus accounting for\n excluded and included additions.", " The exclusions are assumed to be part of the set\n The inclusions are assumed to NOT be part of the intension\n<END>", "<BEGIN>\n## `update`", "Updates intensio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_boundaries API. 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_boundaries API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns just the upper and lower boundaries [upper, lower] representing the most general positive boundaries and the most specific lower boundaries
"Returns just the upper and lower boundaries\n [upper, lower] representing the most general positive\n boundaries and the most specific lower boundaries"
158
false
EventTeam/beliefs
get_boundaries
15,786
LDU_FT/redodo/formats/discover_yaml
LDU_FT
[ "<BEGIN>\n## `register`", "Registers a parser and composer of a format.", " You can use this method to overwrite existing formats.", " :param type: The unique name of the format\n :param parser: The method to parse data as the format\n :param composer: The method to compose data as the format\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover_yaml API. 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 discover_yaml API. 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...
Discovers the YAML format and registers it if available. Install YAML support via PIP:: pip install PyYAML :param bank: The format bank to register the format in :param meta: Extra information associated with the format
"Discovers the YAML format and registers it if available.\n\n Install YAML support via PIP::\n\n pip install PyYAML\n\n :param bank: The format bank to register the format in\n :param meta: Extra information associated with the format"
59
false
redodo/formats
discover_yaml
15,787
LDU_FT/thespacedoctor/transientNamer/markdown
LDU_FT
[ "<BEGIN>\n## `sources`", "*The results of the search returned as a python list of dictionaries*", " **Usage:**", " .. code-block:: python", " sources = tns.sources\n<END>", "<BEGIN>\n## `spectra`", "*The associated source spectral data*", " **Usage:**", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracte...
*Render the results in markdown format* **Key Arguments:** - ``dirPath`` -- the path to the directory to save the rendered results to. Default *None* **Return:** - `markdownSources` -- the top-level transient data - `markdownPhot` -- all photometry associated with t...
"*Render the results in markdown format*\n\n **Key Arguments:**\n - ``dirPath`` -- the path to the directory to save the rendered results to. Default *None*\n\n **Return:**\n - `markdownSources` -- the top-level transient data\n - `markdownPhot` -- all photometry associate...
132
false
thespacedoctor/transientNamer
markdown
15,788
LDU_FT/swimlane/swimlane-python/set_swimlane
LDU_FT
[ "<BEGIN>\n## `add_record_references`", "Bulk operation to directly add record references without making any additional requests", " Warnings:\n Does not perform any app, record, or target app/record validation", " Args:\n app_id (str): Full App ID string\n record...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_swimlane API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_swimlane API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert from list of dicts with values to list of values Cache list items with their ID pairs to restore existing IDs to unmodified values to prevent workflow evaluating on each save for any already existing values
"Convert from list of dicts with values to list of values\n\n Cache list items with their ID pairs to restore existing IDs to unmodified values to prevent workflow\n evaluating on each save for any already existing values"
273
false
swimlane/swimlane-python
set_swimlane
15,789
LDU_FT/fronzbot/blinkpy/attempt_reauthorization
LDU_FT
[ "<BEGIN>\n## `refresh`", "Get all blink cameras and pulls their most recent status.\n<END>", "<BEGIN>\n## `attributes`", "Return dictionary of all camera attributes.\n<END>", "<BEGIN>\n## `snap_picture`", "Take a picture with camera to create a new thumbnail.\n<END>", "<BEGIN>\n## `image_to_file`", "W...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attempt_reauthorization 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 attempt_reauthorization API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Attempt to refresh auth token and links.
"Attempt to refresh auth token and links."
71
false
fronzbot/blinkpy
attempt_reauthorization
15,790
LDU_FT/pytroll/pyspectral/_get_rsr_data_version
LDU_FT
[ "<BEGIN>\n## `radiance2tb`", "Get the Tb from the radiance using the Planck function", " rad:\n Radiance in SI units\n wavelength:\n Wavelength in SI units (meter)\n<END>", "<BEGIN>\n## `_get_rsr`", "Get the relative spectral responses from file, find the bandname, and\n convert t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_rsr_data_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_rsr_data_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Check the version of the RSR data from the version file in the RSR directory
"Check the version of the RSR data from the version file in the RSR\n directory"
129
false
pytroll/pyspectral
_get_rsr_data_version
15,791
LDU_FT/frigg/frigg-worker/create_pending_after_task
LDU_FT
[ "<BEGIN>\n## `create_pending_tasks`", "Creates pending task results in a dict on self.result with task string as key. It will also\n create a list on self.tasks that is used to make sure the serialization of the results\n creates a correctly ordered list.\n<END>", "<BEGIN>\n## `load_preset`", "L...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_pending_after_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_pending_after_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Creates pending task results in a dict on self.after_result with task string as key. It will also create a list on self.tasks that is used to make sure the serialization of the results creates a correctly ordered list.
"Creates pending task results in a dict on self.after_result with task string as key.\n It will also create a list on self.tasks that is used to make sure the serialization\n of the results creates a correctly ordered list."
11
false
frigg/frigg-worker
create_pending_after_task
15,792
LDU_FT/adamcharnock/django-hordak/ratio_split
LDU_FT
[ "<BEGIN>\n## `ratio_split`", "Split in_value according to the ratios specified in `ratios`", " This is special in that it ensures the returned values always sum to\n in_value (i.e. we avoid losses or gains due to rounding errors). As a\n result, this method returns a list of `Decimal` values with lengt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ratio_split API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ratio_split API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Split in_value according to the ratios specified in `ratios` This is special in that it ensures the returned values always sum to in_value (i.e. we avoid losses or gains due to rounding errors). As a result, this method returns a list of `Decimal` values with length equal to that of `ratios`. Exam...
"Split in_value according to the ratios specified in `ratios`\n\n This is special in that it ensures the returned values always sum to\n in_value (i.e. we avoid losses or gains due to rounding errors). As a\n result, this method returns a list of `Decimal` values with length equal\n to that of `ratios`.\n\n...
84
false
adamcharnock/django-hordak
ratio_split
15,793
LDU_FT/twilio/twilio-python/compare_digest
LDU_FT
[ "<BEGIN>\n## `stream`", "Streams KeyInstance records from the API as a generator stream.\n This operation lazily loads records as efficiently as possible until the limit\n is reached.\n The results are returned as a generator, so this operation is memory efficient.", " :param int lim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_digest API. 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 compare_digest API. 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...
PyJWT expects hmac.compare_digest to exist for all Python 3.x, however it was added in Python > 3.3 It has a fallback for Python 2.x but not for Pythons between 2.x and 3.3 Copied from: https://github.com/python/cpython/commit/6cea65555caf2716b4633827715004ab0291a282#diff-c49659257ec1b129707ce47a98adc96eL16 ...
"PyJWT expects hmac.compare_digest to exist for all Python 3.x, however it was added in Python > 3.3\n It has a fallback for Python 2.x but not for Pythons between 2.x and 3.3\n Copied from: https://github.com/python/cpython/commit/6cea65555caf2716b4633827715004ab0291a282#diff-c49659257ec1b129707ce47a98adc96eL16\...
4,304
true
twilio/twilio-python
compare_digest
15,794
LDU_FT/davebridges/mousedb/dispatch
LDU_FT
[ "<BEGIN>\n## `age`", "Calculates the animals age, relative to the current date (if alive) or the date of death (if not).\n<END>", "<BEGIN>\n## `breeding_male_location_type`", "This attribute defines whether a male's current location is the same as the breeding cage to which it belongs.", " This attri...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. 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 dispatch API. 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...
This decorator sets this view to have restricted permissions.
"This decorator sets this view to have restricted permissions."
128
false
davebridges/mousedb
dispatch
15,795
LDU_FT/wummel/dosage/setComplete
LDU_FT
[ "<BEGIN>\n## `exception`", "Write error message with traceback info.\n<END>", "<BEGIN>\n## `write`", "Write message with indentation, context and optional timestamp.\n<END>", "<BEGIN>\n## `contains_case_insensitive`", "Check if key is in adict. The search is case insensitive.\n<END>", "<BEGIN>\n## `fini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setComplete API. 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 setComplete API. 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 complete flag for this comic, ie. all comics are downloaded.
"Set complete flag for this comic, ie. all comics are downloaded."
141
false
wummel/dosage
setComplete
15,796
LDU_FT/jameslyons/pycipher/restore_punctuation
LDU_FT
[ "<BEGIN>\n## `encipher`", "Encipher string using Atbash cipher.", " Example::", " ciphertext = Atbash().encipher(plaintext) ", " :param string: The string to encipher.\n :param keep_punct: if true, punctuation and spacing are retained. If false, it is all removed. Default...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore_punctuation 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 restore_punctuation 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...
If punctuation was accidently removed, use this function to restore it. requires the orignial string with punctuation.
"If punctuation was accidently removed, use this function to restore it.\n requires the orignial string with punctuation."
135
false
jameslyons/pycipher
restore_punctuation
15,797
LDU_FT/Fizzadar/pyinfra/launchd
LDU_FT
[ "<BEGIN>\n## `agent`", "Run puppet agent", " + server: master server URL\n + port: puppet master port\n<END>", "<BEGIN>\n## `load_deploy_config`", "Loads any local config overrides in the deploy file.\n<END>", "<BEGIN>\n## `_parse_mode`", "Converts ls mode output (rwxrwxrwx) -> integer (755).\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the launchd API. 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 launchd API. 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...
Manage the state of systemd managed services. + name: name of the service to manage + running: whether the service should be running + restarted: whether the service should be restarted + command: custom command to pass like: ``/etc/rc.d/<name> <command>`` + enabled: whether this service should be ...
"Manage the state of systemd managed services.\n\n + name: name of the service to manage\n + running: whether the service should be running\n + restarted: whether the service should be restarted\n + command: custom command to pass like: ``/etc/rc.d/<name> <command>``\n + enabled: whether this service sho...
336
false
Fizzadar/pyinfra
launchd
15,798
LDU_FT/sassoftware/saspy/sasstat
LDU_FT
[ "<BEGIN>\n## `submit`", "This method is used to submit any SAS code. It returns the Log and Listing as a python dictionary.", " - code - the SAS statements you want to execute\n - results - format of results. 'HTML' by default, alternatively 'TEXT'\n - prompt - dict of names:flags to pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sasstat API. 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 sasstat API. 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...
This methods creates a SASstat object which you can use to run various analytics. See the sasstat.py module. :return: sasstat object
"This methods creates a SASstat object which you can use to run various analytics.\n See the sasstat.py module.\n\n :return: sasstat object"
469
false
sassoftware/saspy
sasstat
15,799
LDU_FT/Damgaard/PyImgur/refresh
LDU_FT
[ "<BEGIN>\n## `convert_general`", "Take a python object and convert it to the format Imgur expects.\n<END>", "<BEGIN>\n## `to_imgur_format`", "Convert the parameters to the format Imgur expects.\n<END>", "<BEGIN>\n## `_get_album_or_image`", "Return a gallery image/album depending on what the json represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh API. 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 refresh API. 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...
Refresh this objects attributes to the newest values. Attributes that weren't added to the object before, due to lazy loading, will be added by calling refresh.
"Refresh this objects attributes to the newest values.\n\n Attributes that weren't added to the object before, due to lazy\n loading, will be added by calling refresh."
139
false
Damgaard/PyImgur
refresh
15,800
LDU_FT/openvax/varcode/filter_by_gene_expression
LDU_FT
[ "<BEGIN>\n## `translate_codon`", "Translate a single codon into a single amino acid or stop '*'", " Parameters\n ----------\n codon : str\n Expected to be of length 3\n aa_pos : int\n Codon/amino acid offset into the protein (starting from 0)\n<END>", "<BEGIN>\n## `translate`", "Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_by_gene_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_by_gene_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Filters effects to those which have an associated gene whose expression value in the gene_expression_dict argument is greater than min_expression_value. Parameters ---------- gene_expression_dict : dict Dictionary mapping Ensembl gene IDs to expression estimates ...
"Filters effects to those which have an associated gene whose\n expression value in the gene_expression_dict argument is greater\n than min_expression_value.\n\n Parameters\n ----------\n gene_expression_dict : dict\n Dictionary mapping Ensembl gene IDs to expression estima...
344
false
openvax/varcode
filter_by_gene_expression
15,801
LDU_FT/emory-libraries/eulxml/load_xslt
LDU_FT
[ "<BEGIN>\n## `_serialize`", "Generate token strings which, when joined together, form a valid\n XPath serialization of the AST.\n<END>", "<BEGIN>\n## `download_schema`", "Download a schema from a specified URI and save it locally.", " :param uri: url where the schema should be downloaded\n :param p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_xslt API. 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 load_xslt API. 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...
Load and compile an XSLT document (specified by filename or string) for repeated use in transforming XML.
"Load and compile an XSLT document (specified by filename or string)\n for repeated use in transforming XML."
109
false
emory-libraries/eulxml
load_xslt
15,802
LDU_FT/eumis/pyviews/parse_expression
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 parse_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns tuple with expression type and expression body
"Returns tuple with expression type and expression body"
34
false
eumis/pyviews
parse_expression
15,803
LDU_FT/useblocks/groundwork/register
LDU_FT
[ "<BEGIN>\n## `set`", "Sets a new value for a given configuration parameter.", " If it already exists, an Exception is thrown.\n To overwrite an existing value, set overwrite to True.", " :param name: Unique name of the parameter\n :param value: Value of the configuration parameter\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
Registers a new document. .. warning: You can not use any relative links inside a given document. For instance, sphinx's toctree, image, figure or include statements do not work. :param function: Function, which gets called for the new thread :type function: function ...
"Registers a new document.\n\n .. warning: You can not use any relative links inside a given document.\n For instance, sphinx's toctree, image, figure or include statements do not work.\n\n :param function: Function, which gets called for the new thread\n :type function: function...
198
false
useblocks/groundwork
register
15,804
LDU_FT/Azure/azure-uamqp-python/redirect
LDU_FT
[ "<BEGIN>\n## `_close_received`", "Callback called when a connection CLOSE frame is received.\n This callback will process the received CLOSE error to determine if\n the connection is recoverable or whether it should be shutdown.\n :param error: The error information from the close\n f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the redirect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the redirect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Redirect the client endpoint using a Link DETACH redirect response. :param redirect: The Link DETACH redirect details. :type redirect: ~uamqp.errors.LinkRedirect :param auth: Authentication credentials to the redirected endpoint. :type auth: ~uamqp.authentication.common.AMQPAuth
"Redirect the client endpoint using a Link DETACH redirect\n response.\n\n :param redirect: The Link DETACH redirect details.\n :type redirect: ~uamqp.errors.LinkRedirect\n :param auth: Authentication credentials to the redirected endpoint.\n :type auth: ~uamqp.authentication.common.A...
299
false
Azure/azure-uamqp-python
redirect
15,805
LDU_FT/TheGhouls/oct/wait_turrets
LDU_FT
[ "<BEGIN>\n## `copy_config`", "Copy current config file to output directory\n<END>", "<BEGIN>\n## `run`", "Start an oct project", " :param Namespace args: the commande-line arguments\n<END>", "<BEGIN>\n## `from_template`", "Create a new oct project from existing template", " :param Namespace args...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_turrets API. 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 wait_turrets API. 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...
Wait until wait_for turrets are connected and ready
"Wait until wait_for turrets are connected and ready"
101
false
TheGhouls/oct
wait_turrets
15,806
LDU_FT/hannes-brt/cudnn-python-wrappers/cudnnSetFilter4dDescriptor
LDU_FT
[ "<BEGIN>\n## `cudnnCreate`", "Initialize cuDNN.", " Initializes cuDNN and returns a handle to the cuDNN context.", " Returns\n -------", " handle : cudnnHandle\n cuDNN context\n<END>", "<BEGIN>\n## `cudnnDestroy`", "Release cuDNN resources.", " Release hardware resources used by ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cudnnSetFilter4dDescriptor 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 cudnnSetFilter4dDescriptor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Initialize a filter descriptor. This function initializes a previously created filter descriptor object into a 4D filter. Filters layout must be contiguous in memory. Parameters ---------- wDesc : cudnnFilterDescriptor Handle to a previously created filter descriptor. dataType : cudnnD...
"Initialize a filter descriptor.\n\n This function initializes a previously created filter descriptor object into a 4D filter.\n Filters layout must be contiguous in memory.\n\n Parameters\n ----------\n wDesc : cudnnFilterDescriptor\n Handle to a previously created filter descriptor.\n dataTyp...
108
false
hannes-brt/cudnn-python-wrappers
cudnnSetFilter4dDescriptor
15,807
LDU_FT/PySimpleGUI/PySimpleGUI/PopupGetFolder
LDU_FT
[ "<BEGIN>\n## `read_mail`", "Reads late emails from IMAP server and displays them in the Window\n :param window: window to display emails in\n :return:\n<END>", "<BEGIN>\n## `runCommand`", "run shell command", "\t@param cmd: command to execute\n\t@param timeout: timeout for command execution", "\t@re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PopupGetFolder API. 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 PopupGetFolder API. 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...
Display popup with text entry field and browse button. Browse for folder :param message: :param default_path: :param no_window: :param size: :param button_color: :param background_color: :param text_color: :param icon: :param font: :param no_titlebar: :param grab_anywhere: ...
"Display popup with text entry field and browse button. Browse for folder\n :param message:\n :param default_path:\n :param no_window:\n :param size:\n :param button_color:\n :param background_color:\n :param text_color:\n :param icon:\n :param font:\n :param no_titlebar:\n :param grab_...
110
false
PySimpleGUI/PySimpleGUI
PopupGetFolder
15,808
LDU_FT/Anaconda-Platform/anaconda-client/get_binstar
LDU_FT
[ "<BEGIN>\n## `norm_package_version`", "Normalize a version by removing extra spaces and parentheses.\n<END>", "<BEGIN>\n## `split_spec`", "Split a spec by separator and return stripped start and end parts.\n<END>", "<BEGIN>\n## `parse_specification`", "Parse a requirement from a python distribution metada...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_binstar API. 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_binstar API. 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...
DEPRECATED METHOD, use `get_server_api`
"DEPRECATED METHOD,\n\n use `get_server_api`"
111
false
Anaconda-Platform/anaconda-client
get_binstar
15,809
LDU_FT/IdentityPython/pysaml2/_authn_context_decl_ref
LDU_FT
[ "<BEGIN>\n## `add_vo_information_about_user`", "Add information to the knowledge I have about the user. This is\n for Virtual organizations.", " :param name_id: The subject identifier\n :return: A possibly extended knowledge.\n<END>", "<BEGIN>\n## `create_authn_request`", "Creates an au...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _authn_context_decl_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _authn_context_decl_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...
Construct the authn context with a authn context declaration reference :param decl_ref: The authn context declaration reference :param authn_auth: Authenticating Authority :return: An AuthnContext instance
"Construct the authn context with a authn context declaration reference\n :param decl_ref: The authn context declaration reference\n :param authn_auth: Authenticating Authority\n :return: An AuthnContext instance"
738
false
IdentityPython/pysaml2
_authn_context_decl_ref
15,810
LDU_FT/playpauseandstop/rororo/make_error
LDU_FT
[ "<BEGIN>\n## `str_to_timedelta`", "Convert string value to timedelta instance according to the given format.", " If format not set function tries to load timedelta using default\n ``TIMEDELTA_FORMAT`` and then both of magic \"full\" formats.", " You should also specify list of formats and function tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_error API. 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 make_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return error instantiated from given message. :param message: Message to wrap. :param error: Validation error. :param error_class: Special class to wrap error message into. When omitted ``self.error_class`` will be used.
"Return error instantiated from given message.\n\n :param message: Message to wrap.\n :param error: Validation error.\n :param error_class:\n Special class to wrap error message into. When omitted\n ``self.error_class`` will be used."
128
false
playpauseandstop/rororo
make_error
15,811
LDU_FT/hbldh/imdirect/save_with_exif_info
LDU_FT
[ "<BEGIN>\n## `autorotate`", "Rotate and return an image according to its Exif information.", " ROTATION_NEEDED = {\n 1: 0,\n 2: 0 (Mirrored),\n 3: 180,\n 4: 180 (Mirrored),\n 5: -90 (Mirrored),\n 6: -90,\n 7: 90 (Mirrored),\n 8: 90,\n }", " Args...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_with_exif_info 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 save_with_exif_info 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...
Saves an image using PIL, preserving the exif information. Args: img (PIL.Image.Image): *args: The arguments for the `save` method of the Image class. **kwargs: The keywords for the `save` method of the Image class.
"Saves an image using PIL, preserving the exif information.\n\n Args:\n img (PIL.Image.Image):\n *args: The arguments for the `save` method of the Image class.\n **kwargs: The keywords for the `save` method of the Image class."
23
false
hbldh/imdirect
save_with_exif_info
15,812
LDU_FT/bennyrowland/suspect/spectral_registration
LDU_FT
[ "<BEGIN>\n## `write_all_files`", "Creates an LCModel control file for processing the supplied MRSData, and\n optional water reference data, updating the default parameters with any\n values supplied through params.", " :param filename: the location where the control file should be saved.\n :param da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spectral_registration 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 spectral_registration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Performs the spectral registration method to calculate the frequency and phase shifts between the input data and the reference spectrum target. The frequency range over which the two spectra are compared can be specified to exclude regions where the spectra differ. :param data: :param target: :...
"Performs the spectral registration method to calculate the frequency and\n phase shifts between the input data and the reference spectrum target. The\n frequency range over which the two spectra are compared can be specified to\n exclude regions where the spectra differ.\n\n :param data:\n :param target...
71
false
bennyrowland/suspect
spectral_registration
15,813
LDU_FT/wangsix/vmo/_query_init
LDU_FT
[ "<BEGIN>\n## `main`", "This example shows how to parse a music mxl file (music21 and musescore/finale required) \n and create a simple oracle representation. The output is a reshuffled midi stream shown\n in either musescore or finale based on your installation of music21. ", " OPTIONAL ARGS:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _query_init API. 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 _query_init API. 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...
A helper function for query-matching function initialization.
"A helper function for query-matching function initialization."
61
false
wangsix/vmo
_query_init
15,814
LDU_FT/nvbn/thefuck/get_loaded_rules
LDU_FT
[ "<BEGIN>\n## `get_loaded_rules`", "Yields all available rules.", " :type rules_paths: [Path]\n :rtype: Iterable[Rule]\n<END>", "<BEGIN>\n## `get_rules_import_paths`", "Yields all rules import paths.", " :rtype: Iterable[Path]\n<END>", "<BEGIN>\n## `get_rules`", "Returns all enabled rules.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_loaded_rules API. 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_loaded_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Yields all available rules. :type rules_paths: [Path] :rtype: Iterable[Rule]
"Yields all available rules.\n\n :type rules_paths: [Path]\n :rtype: Iterable[Rule]"
132
false
nvbn/thefuck
get_loaded_rules
15,815
LDU_FT/heuer/segno/make_final_message
LDU_FT
[ "<BEGIN>\n## `make`", "\\\n Creates a (Micro) QR Code.", " This is main entry point to create QR Codes and Micro QR Codes.", " Aside from `content`, all parameters are optional and an optimal (minimal)\n (Micro) QR Code with a maximal error correction level (minimum \"M\") is\n generated.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_final_message 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 make_final_message 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...
\ Constructs the final message (codewords incl. error correction). ISO/IEC 18004:2015(E) -- 7.6 Constructing the final message codeword sequence (page 45) :param int version: (Micro) QR Code version constant. :param int error: Error level constant. :param codewords: An iterable sequence of codewor...
"\\\n Constructs the final message (codewords incl. error correction).\n\n ISO/IEC 18004:2015(E) -- 7.6 Constructing the final message codeword sequence (page 45)\n\n :param int version: (Micro) QR Code version constant.\n :param int error: Error level constant.\n :param codewords: An iterable sequence o...
436
false
heuer/segno
make_final_message
15,816
LDU_FT/modlinltd/django-advanced-filters/_parse_query_dict
LDU_FT
[ "<BEGIN>\n## `changelist_view`", "Add advanced_filters form to changelist context\n<END>", "<BEGIN>\n## `filter_by_user`", "All filters that should be displayed to a user (by users/group)\n<END>", "<BEGIN>\n## `query`", "De-serialize, decode and return an ORM query stored in b64_query.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_query_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_query_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...
Take a list of query field dict and return data for form initialization
"Take a list of query field dict and return data for form initialization"
37
false
modlinltd/django-advanced-filters
_parse_query_dict
15,817
LDU_FT/MrKriss/vigilance/report_failures
LDU_FT
[ "<BEGIN>\n## `maha_dist`", "Compute the squared Mahalanobis Distance for each row in the dataframe ", " Given a list of rows `x`, each with `p` elements, a vector :math:\\mu of the \n row means of length `p`, and the :math:pxp covarence matrix of the columns :math:\\Sigma, ", " The returned value fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report_failures API. 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 report_failures API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Print details of logged failures in expect function If no failures are detected, None is returned by the function. Parameters ---------- error:bool If true, will raise an Expectation of type 'FaliedValidationError' instead of printing to console display: bool If True, will print th...
"Print details of logged failures in expect function\n\n If no failures are detected, None is returned by the function.\n\n Parameters\n ----------\n error:bool\n If true, will raise an Expectation of type 'FaliedValidationError' instead of printing to console\n display: bool\n If True, wil...
33
false
MrKriss/vigilance
report_failures
15,818
LDU_FT/SAP/PyHDB/humanhexlify
LDU_FT
[ "<BEGIN>\n## `from_ini`", "Make connection to database by reading connection parameters from an ini file.\n :param ini_file: Name of ini file, e.g. 'pytest.ini'\n :param section: specify alternative section in ini file. Section 'hana' and 'pytest' will be searched by default\n :return: connection object"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the humanhexlify API. 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 humanhexlify API. 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...
Hexlify given data with 1 space char btw hex values for easier reading for humans :param data: binary data to hexlify :param n: If n is a positive integer then shorten the output of this function to n hexlified bytes. Input like 'ab\x04ce' becomes '61 62 04 63 65' With n=3 input li...
"Hexlify given data with 1 space char btw hex values for easier reading for humans\n :param data: binary data to hexlify\n :param n: If n is a positive integer then shorten the output of this function to n hexlified bytes.\n\n Input like\n 'ab\\x04ce'\n becomes\n '61 62 04 63 65'\n\n With n...
81
false
SAP/PyHDB
humanhexlify
15,819
LDU_FT/junzis/pyModeS/speed_heading
LDU_FT
[ "<BEGIN>\n## `category`", "Aircraft category number", " Args:\n msg (string): 28 bytes hexadecimal message string", " Returns:\n int: category number\n<END>", "<BEGIN>\n## `callsign`", "Aircraft callsign", " Args:\n msg (string): 28 bytes hexadecimal message string", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the speed_heading API. 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 speed_heading API. 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...
Get speed and ground track (or heading) from the velocity message (handles both airborne or surface message) Args: msg (string): 28 bytes hexadecimal message string Returns: (int, float): speed (kt), ground track or heading (degree)
"Get speed and ground track (or heading) from the velocity message\n (handles both airborne or surface message)\n\n Args:\n msg (string): 28 bytes hexadecimal message string\n\n Returns:\n (int, float): speed (kt), ground track or heading (degree)"
310
false
junzis/pyModeS
speed_heading
15,820
LDU_FT/google/grr/_AsList
LDU_FT
[ "<BEGIN>\n## `Column`", "Iterates over values of a given column.", " Args:\n column_name: A nome of the column to retrieve the values for.", " Yields:\n Values of the specified column.", " Raises:\n KeyError: If given column is not present in the table.\n<END>", "<BEGIN>\n## `Check...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _AsList API. 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 _AsList API. 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...
Encapsulates an argument in a list, if it's not already iterable.
"Encapsulates an argument in a list, if it's not already iterable."
4,605
true
google/grr
_AsList
15,821
LDU_FT/dw/mitogen/get_kwargs
LDU_FT
[ "<BEGIN>\n## `setup`", "Install handlers for Mitogen loggers to redirect them into the Ansible\n display framework. Ansible installs its own logging framework handlers when\n C.DEFAULT_LOG_PATH is set, therefore disable propagation for our handlers.\n<END>", "<BEGIN>\n## `dict_diff`", "Return a dict rep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kwargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
If :meth:`detect` returned :data:`True`, plan for the module's execution, including granting access to or delivering any files to it that are known to be absent, and finally return a dict:: { # Name of the class from runners.py that implements the # target-si...
"If :meth:`detect` returned :data:`True`, plan for the module's\n execution, including granting access to or delivering any files to it\n that are known to be absent, and finally return a dict::\n\n {\n # Name of the class from runners.py that implements the\n # ta...
843
false
dw/mitogen
get_kwargs
15,822
LDU_FT/autokey/autokey/_restore_clipboard_selection
LDU_FT
[ "<BEGIN>\n## `save`", "Called by the parent settings dialog when the user clicks on the Save button.\n Stores the current settings in the ConfigManager.\n<END>", "<BEGIN>\n## `_settings_str`", "Returns a human readable settings representation for logging purposes.\n<END>", "<BEGIN>\n## `_should_trigg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _restore_clipboard_selection 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 _restore_clipboard_selection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Restore the selection clipboard content.
"Restore the selection clipboard content."
363
false
autokey/autokey
_restore_clipboard_selection
15,823
LDU_FT/undertherain/pycontextfree/surface_to_image
LDU_FT
[ "<BEGIN>\n## `register_output_name`", "Register proper and improper file mappings.\n<END>", "<BEGIN>\n## `find_version`", "Simulate behaviour of \"from package_name._version import VERSION\", and return VERSION.\n<END>", "<BEGIN>\n## `parse_requirements`", "Read contents of requirements.txt file and retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the surface_to_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the surface_to_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Renders current buffer surface to IPython image
"Renders current buffer surface to IPython image"
39
false
undertherain/pycontextfree
surface_to_image
15,824
LDU_FT/bear/parsedatetime/_quantityToReal
LDU_FT
[ "<BEGIN>\n## `_parse_date_rfc822`", "Parse an RFC822, RFC1123, RFC2822, or asctime-style date\n<END>", "<BEGIN>\n## `_initSymbols`", "Initialize symbols and single character constants.\n<END>", "<BEGIN>\n## `_convertUnitAsWords`", "Converts text units into their number value.", " @type unitText:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _quantityToReal API. 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 _quantityToReal API. 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...
Convert a quantity, either spelled-out or numeric, to a float @type quantity: string @param quantity: quantity to parse to float @rtype: int @return: the quantity as an float, defaulting to 0.0
"Convert a quantity, either spelled-out or numeric, to a float\n\n @type quantity: string\n @param quantity: quantity to parse to float\n @rtype: int\n @return: the quantity as an float, defaulting to 0.0"
131
false
bear/parsedatetime
_quantityToReal
15,825
LDU_FT/projecthamster/hamster-lib/_load_tmp_fact
LDU_FT
[ "<BEGIN>\n## `_fact_to_tuple`", "Convert a ``Fact`` to its normalized tuple.", " This is where all type conversion for ``Fact`` attributes to strings as\n well as any normalization happens.", " Note:\n Because different writers may require different types, we need to\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_tmp_fact API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_tmp_fact API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Load an 'ongoing fact' from a given location. Args: filepath: Full path to the tmpfile location. Returns: hamster_lib.Fact: ``Fact`` representing the 'ongoing fact'. Returns ``False`` if no file was found. Raises: TypeError: If for some reason our stored instance is no...
"Load an 'ongoing fact' from a given location.\n\n Args:\n filepath: Full path to the tmpfile location.\n\n Returns:\n hamster_lib.Fact: ``Fact`` representing the 'ongoing fact'. Returns ``False``\n if no file was found.\n\n Raises:\n TypeError: If for some reason our stored ins...
82
false
projecthamster/hamster-lib
_load_tmp_fact
15,826
LDU_FT/ascribe/pyspool/_get_addresses
LDU_FT
[ "<BEGIN>\n## `address_from_path`", "Args:\n path (str): Path for the HD wallet. If path is ``None`` it\n will generate a unique path based on time.", " Returns:\n A ``tuple`` with the path and leaf address.\n<END>", "<BEGIN>\n## `_unique_hierarchical_string`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_addresses API. 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_addresses API. 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...
Checks for the from, to, and piece address of a SPOOL transaction. Args: tx (dict): Transaction payload, as returned by :meth:`transactions.Transactions.get()`. .. note:: Formats as returned by JSON-RPC API ``decoderawtransaction`` have yet to be supported. ...
"Checks for the from, to, and piece address of a SPOOL transaction.\n\n Args:\n tx (dict): Transaction payload, as returned by\n :meth:`transactions.Transactions.get()`.\n\n .. note:: Formats as returned by JSON-RPC API\n ``decoderawtransaction`` have yet to be support...
79
false
ascribe/pyspool
_get_addresses
15,827
LDU_FT/higlass/higlass-python/display
LDU_FT
[ "<BEGIN>\n## `get_filepath`", "Get the filepath from a tileset definition\n Parameters\n ----------\n tileset_def: { 'filepath': ..., 'uid': ..., 'filetype': ...}\n The tileset definition\n returns: string\n The filepath, either as specified in the tileset_def or\n None\n<END>", ...
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...
Instantiate a HiGlass display with the given views
"Instantiate a HiGlass display with the given views"
34
false
higlass/higlass-python
display
15,828
LDU_FT/ranaroussi/qtpylib/get_data_ib
LDU_FT
[ "<BEGIN>\n## `load_cli_args`", "Parse command line arguments and return only the non-default ones", " :Retruns: dict\n a dict of any non-default args passed on the command-line.\n<END>", "<BEGIN>\n## `run`", "Starts the reporting module", " Makes the dashboard web app available vi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_ib API. 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_data_ib API. 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...
Downloads historical data from Interactive Brokers :Parameters: instrument : mixed IB contract tuple / string (same as that given to strategy) start : str Backtest start date (YYYY-MM-DD [HH:MM:SS[.MS]) :Optional: resolution : str 1/5/15/30 secs, 1/2...
"Downloads historical data from Interactive Brokers\n\n :Parameters:\n instrument : mixed\n IB contract tuple / string (same as that given to strategy)\n start : str\n Backtest start date (YYYY-MM-DD [HH:MM:SS[.MS])\n\n :Optional:\n resolution : str\n 1/5/15/3...
155
false
ranaroussi/qtpylib
get_data_ib
15,829
LDU_FT/richardkiss/pycoin/as_bin
LDU_FT
[ "<BEGIN>\n## `parse_as_header`", "Parse the Block header from the file-like object\n<END>", "<BEGIN>\n## `stream_header_legacy`", "Stream the block header in the standard way to the file-like object f.\n<END>", "<BEGIN>\n## `stream_header`", "Stream the block header in the standard way to the file-like ob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_bin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_bin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns a binary blob containing the streamed transaction. For information about the parameters, see :func:`Tx.stream <stream>` :return: binary blob that would parse to the given transaction
"Returns a binary blob containing the streamed transaction.\n\n For information about the parameters, see :func:`Tx.stream <stream>`\n\n :return: binary blob that would parse to the given transaction"
336
false
richardkiss/pycoin
as_bin
15,830
LDU_FT/Vital-Fernandez/dazer/compose
LDU_FT
[ "<BEGIN>\n## `linfit`", "Least squares linear fit.", " Fit a straight line `f(x_true) = a + bx` to points `(x_true, y)`. Returns\n coefficients `a` and `b` that minimize the squared error.", " Parameters\n ----------\n x_true : array_like\n one dimensional array of `x_true` data with `n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compose API. 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 compose API. 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...
Takes f2nimages and writes them into one single png file, side by side. f2nimages is a list of horizontal lines, where each line is a list of f2nimages. For instance : [ [image1, image2], [image3, image4] ] The sizes of these images have to "match", so that the final result is rectangular. ...
"Takes f2nimages and writes them into one single png file, side by side.\n f2nimages is a list of horizontal lines, where each line is a list of f2nimages.\n For instance :\n [\n [image1, image2],\n [image3, image4]\n ]\n The sizes of these images have to \"match\", so that the final result is rect...
228
false
Vital-Fernandez/dazer
compose
15,831
LDU_FT/yv/pathconfig/load_plugin
LDU_FT
[ "<BEGIN>\n## `load_plugin`", "fetches the entry point for a plugin and calls it with the given\n aux_info\n<END>", "<BEGIN>\n## `load_simple_endpoint`", "fetches the entry point for a plugin and calls it with the given\n aux_info\n<END>", "<BEGIN>\n## `load_configuration`", "creates a new configurat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_plugin API. 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 load_plugin API. 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...
fetches the entry point for a plugin and calls it with the given aux_info
"fetches the entry point for a plugin and calls it with the given\n aux_info"
16
false
yv/pathconfig
load_plugin
15,832
LDU_FT/Azure/azure-kusto-python/get_mapping_format
LDU_FT
[ "<BEGIN>\n## `ingest_from_dataframe`", "Enqueuing an ingest command from local files.\n :param pandas.DataFrame df: input dataframe to ingest.\n :param azure.kusto.ingest.IngestionProperties ingestion_properties: Ingestion properties.\n<END>", "<BEGIN>\n## `ingest_from_file`", "Enqueuing an inge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mapping_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mapping_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. Th...
Dictating the corresponding mapping to the format.
"Dictating the corresponding mapping to the format."
40
false
Azure/azure-kusto-python
get_mapping_format
15,833
LDU_FT/markchil/gptools/yn2Kn2Der
LDU_FT
[ "<BEGIN>\n## `matern_function`", "r\"\"\"Matern covariance function of arbitrary dimension, for use with :py:class:`ArbitraryKernel`.", " The Matern kernel has the following hyperparameters, always referenced in\n the order listed:", " = ===== ====================================\n 0 sigma prefact...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the yn2Kn2Der API. 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 yn2Kn2Der API. 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...
r"""Computes the function :math:`y^{\nu/2} K_{\nu}(y^{1/2})` and its derivatives. Care has been taken to handle the conditions at :math:`y=0`. For `n=0`, uses a direct evaluation of the expression, replacing points where `y=0` with the appropriate value. For `n>0`, uses a general sum expressio...
"r\"\"\"Computes the function :math:`y^{\\nu/2} K_{\\nu}(y^{1/2})` and its derivatives.\n \n Care has been taken to handle the conditions at :math:`y=0`.\n \n For `n=0`, uses a direct evaluation of the expression, replacing points\n where `y=0` with the appropriate value. For `n>0`, uses a general sum\n ...
496
false
markchil/gptools
yn2Kn2Der
15,834
LDU_FT/google/tangent/split
LDU_FT
[ "<BEGIN>\n## `compile_file`", "Compile by saving to file and importing that.", " Compiling the AST/source code this way ensures that the source code is\n readable by e.g. `pdb` or `inspect`.", " Args:\n source: The code to compile, either as a string or as an AST.\n globals_: A dictionary of variable...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Carry over the state from the primal to the adjoint. Args: node: A module with the primal and adjoint function definitions as returned by `reverse_ad`. stack: The stack node to use for storing and restoring state. Returns: func: A `Module` node with two function definitions containing the prim...
"Carry over the state from the primal to the adjoint.\n\n Args:\n node: A module with the primal and adjoint function definitions as returned\n by `reverse_ad`.\n stack: The stack node to use for storing and restoring state.\n\n Returns:\n func: A `Module` node with two function definitions containing...
368
false
google/tangent
split
15,835
LDU_FT/bitshares/python-bitshares/decodeRPCErrorMsg
LDU_FT
[ "<BEGIN>\n## `decodeRPCErrorMsg`", "Helper function to decode the raised Exception and give it a\n python Exception class\n<END>", "<BEGIN>\n## `transfer`", "Transfer an asset to another account.", " :param str to: Recipient\n :param float amount: Amount to transfer\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decodeRPCErrorMsg API. 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 decodeRPCErrorMsg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Helper function to decode the raised Exception and give it a python Exception class
"Helper function to decode the raised Exception and give it a\n python Exception class"
116
false
bitshares/python-bitshares
decodeRPCErrorMsg
15,836
LDU_FT/ironfroggy/django-better-cache/set_cache
LDU_FT
[ "<BEGIN>\n## `process_request`", "Checks whether the page is already cached and returns the cached\n version if available.\n<END>", "<BEGIN>\n## `process_response`", "Sets the cache and deals with caching headers if needed\n<END>", "<BEGIN>\n## `keys`", "Create an ordered dict of the names and valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cache API. 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 set_cache API. 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...
caches the response supresses and logs exceptions
"caches the response supresses and logs exceptions"
51
false
ironfroggy/django-better-cache
set_cache
15,837
LDU_FT/jeffknupp/sandman/endpoint_class
LDU_FT
[ "<BEGIN>\n## `endpoint`", "Return the :class:`sandman.model.Model`'s endpoint.", " :rtype: string\n<END>", "<BEGIN>\n## `resource_uri`", "Return the URI at which the resource can be found.", " :rtype: string\n<END>", "<BEGIN>\n## `primary_key`", "Return the name of the table's primary ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the endpoint_class API. 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 endpoint_class API. 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...
Return the :class:`sandman.model.Model` associated with the endpoint *collection*. :param string collection: a :class:`sandman.model.Model` endpoint :rtype: :class:`sandman.model.Model`
"Return the :class:`sandman.model.Model` associated with the endpoint\n *collection*.\n\n :param string collection: a :class:`sandman.model.Model` endpoint\n :rtype: :class:`sandman.model.Model`"
126
false
jeffknupp/sandman
endpoint_class
15,838
LDU_FT/pystorm/pystorm/ack
LDU_FT
[ "<BEGIN>\n## `emit`", "Emit a spout Tuple message.", " :param tup: the Tuple to send to Storm, should contain only\n JSON-serializable data.\n :type tup: list or tuple\n :param tup_id: the ID for the Tuple. Leave this blank for an\n unreliable emit.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ack API. 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 ack API. 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...
Indicate that processing of a Tuple has succeeded. :param tup: the Tuple to acknowledge. :type tup: :class:`str` or :class:`pystorm.component.Tuple`
"Indicate that processing of a Tuple has succeeded.\n\n :param tup: the Tuple to acknowledge.\n :type tup: :class:`str` or :class:`pystorm.component.Tuple`"
103
false
pystorm/pystorm
ack
15,839
LDU_FT/hackedd/gw2api/map_names
LDU_FT
[ "<BEGIN>\n## `set_cache_dir`", "Set the directory to cache JSON responses from most API endpoints.\n<END>", "<BEGIN>\n## `get_cached`", "Request a resource form the API, first checking if there is a cached\n response available. Returns the parsed JSON data.\n<END>", "<BEGIN>\n## `skin_details`", "T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
This resource returns an dictionary of the localized map names for the specified language. Only maps with events are listed - if you need a list of all maps, use ``maps.json`` instead. :param lang: The language to query the names for. :return: the response is a dictionary where the key is the map id an...
"This resource returns an dictionary of the localized map names for\n the specified language. Only maps with events are listed - if you need a\n list of all maps, use ``maps.json`` instead.\n\n :param lang: The language to query the names for.\n :return: the response is a dictionary where the key is the map...
188
false
hackedd/gw2api
map_names
15,840
LDU_FT/ganguli-lab/proxalgs/poissreg
LDU_FT
[ "<BEGIN>\n## `add_regularizer`", "Add a regularizer from the operators module to the list of objectives", " Parameters\n ----------\n proxfun : string or function\n If a string, then it must be the name of a corresponding function in the `operators` module.\n If a func...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the poissreg API. 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 poissreg API. 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...
Proximal operator for Poisson regression Computes the proximal operator of the negative log-likelihood loss assumping a Poisson noise distribution. Parameters ---------- x0 : array_like The starting or initial point used in the proximal update step rho : float Momentum parameter f...
"Proximal operator for Poisson regression\n\n Computes the proximal operator of the negative log-likelihood loss assumping a Poisson noise distribution.\n\n Parameters\n ----------\n x0 : array_like\n The starting or initial point used in the proximal update step\n\n rho : float\n Momentum ...
90
false
ganguli-lab/proxalgs
poissreg
15,841
LDU_FT/joshua-stone/DerPyBooru/upvotes
LDU_FT
[ "<BEGIN>\n## `key`", "Takes a user's API key string which applies content settings. API keys can\n be found at <https://derpibooru.org/users/edit>.\n<END>", "<BEGIN>\n## `query`", "Takes one or more strings for searching by tag and/or metadata.\n<END>", "<BEGIN>\n## `sort_by`", "Determines how to sort ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upvotes API. 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 upvotes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Set whether to filter by a user's upvoted list. Options available are user.ONLY, user.NOT, and None; default is None.
"Set whether to filter by a user's upvoted list. Options available are\n user.ONLY, user.NOT, and None; default is None."
19
false
joshua-stone/DerPyBooru
upvotes
15,842
LDU_FT/jkokorian/pyqt2waybinding/_updateEndpoints
LDU_FT
[ "<BEGIN>\n## `forProperty`", "2-way binds to an instance property.", " Parameters:\n - instance -- the object instance\n - propertyName -- the name of the property to bind to\n - useGetter: when True, calls the getter method to obtain the value. When False, the signal argument is use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _updateEndpoints API. 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 _updateEndpoints API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Updates all endpoints except the one from which this slot was called. Note: this method is probably not complete threadsafe. Maybe a lock is needed when setter self.ignoreEvents
"Updates all endpoints except the one from which this slot was called.\n\n Note: this method is probably not complete threadsafe. Maybe a lock is needed when setter self.ignoreEvents"
20
false
jkokorian/pyqt2waybinding
_updateEndpoints
15,843
LDU_FT/marcharper/python-ternary/triangle_coordinates
LDU_FT
[ "<BEGIN>\n## `normalize`", "Normalizes input list.", " Parameters\n ----------\n l: list\n The list to be normalized", " Returns\n -------\n The normalized list or numpy array", " Raises\n ------\n ValueError, if the list sums to zero\n<END>", "<BEGIN>\n## `simplex_iterat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the triangle_coordinates 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 triangle_coordinates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Computes coordinates of the constituent triangles of a triangulation for the simplex. These triangules are parallel to the lower axis on the lower side. Parameters ---------- i,j,k: enumeration of the desired triangle Returns ------- A numpy array of coordinates of the hexagon (unprojected...
"Computes coordinates of the constituent triangles of a triangulation for the\n simplex. These triangules are parallel to the lower axis on the lower side.\n\n Parameters\n ----------\n i,j,k: enumeration of the desired triangle\n\n Returns\n -------\n A numpy array of coordinates of the hexagon (u...
179
false
marcharper/python-ternary
triangle_coordinates
15,844
LDU_FT/johnnoone/aioconsul/cas
LDU_FT
[ "<BEGIN>\n## `extract_blocking`", "Extract index and watch from :class:`Blocking`", " Parameters:\n obj (Blocking): the blocking object\n Returns:\n tuple: index and watch\n<END>", "<BEGIN>\n## `consistency_middleware`", "Set consistency", " Order:", " 1. consistency request\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cas API. 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 cas API. 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...
Sets the Key to the given Value with check-and-set semantics Parameters: key (str): Key to set value (Payload): Value to set, It will be encoded by flags index (ObjectIndex): Index ID flags (int): Flags to set with value The Key will only be set if its c...
"Sets the Key to the given Value with check-and-set semantics\n\n Parameters:\n key (str): Key to set\n value (Payload): Value to set, It will be encoded by flags\n index (ObjectIndex): Index ID\n flags (int): Flags to set with value\n\n The Key will only be set...
403
false
johnnoone/aioconsul
cas
15,845
LDU_FT/5monkeys/django-enumfield/validate_available_choice
LDU_FT
[ "<BEGIN>\n## `choices`", "Choices for Enum\n :return: List of tuples (<value>, <human-readable value>)\n :rtype: list\n<END>", "<BEGIN>\n## `get`", "Get Enum.Value object matching the value argument.\n :param name_or_numeric: Integer value or attribute name\n :type name_or_numeric:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_available_choice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_available_choice API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Validate that to_value is defined as a value in enum.
"Validate that to_value is defined as a value in enum."
14
false
5monkeys/django-enumfield
validate_available_choice
15,846
LDU_FT/ahopkins/sanic-jwt/_get_token_from_cookies
LDU_FT
[ "<BEGIN>\n## `_verify`", "If there is a \"permakey\", then we will verify the token by checking the\n database. Otherwise, just do the normal verification.", " Typically, any method that begins with an underscore in sanic-jwt should\n not be touched. In this case, we are trying to break the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_token_from_cookies 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_token_from_cookies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Extract the token if present inside the request cookies.
"Extract the token if present inside the request cookies."
47
false
ahopkins/sanic-jwt
_get_token_from_cookies
15,847
LDU_FT/PedalPi/PluginsManager/param_set
LDU_FT
[ "<BEGIN>\n## `load`", "Load the index file and reorder the banks based in order listed in index", " :param list[Indexable] indexables: Banks that will be reordered based in index file\n :return list[Bank]: Banks reordered\n<END>", "<BEGIN>\n## `register`", "Register an observer for it be notif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the param_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the param_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 extract...
``param_set <instance_number> <param_symbol> <param_value>`` set a value to given control e.g.:: param_set 0 gain 2.50 :param Lv2Param param: Parameter that will be updated your value
"``param_set <instance_number> <param_symbol> <param_value>``\n\n set a value to given control\n\n e.g.::\n\n param_set 0 gain 2.50\n\n :param Lv2Param param: Parameter that will be updated your value"
139
false
PedalPi/PluginsManager
param_set
15,848
LDU_FT/bretth/woven/run_once_per_node
LDU_FT
[ "<BEGIN>\n## `setupnode`", "Install a baseline host. Can be run multiple times\n<END>", "<BEGIN>\n## `add_repositories`", "Adds additional sources as defined in LINUX_PACKAGE_REPOSITORIES.\n<END>", "<BEGIN>\n## `change_ssh_port`", "For security woven changes the default ssh port.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_once_per_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_once_per_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Decorator preventing wrapped function from running more than once per host (not just interpreter session). Using env.patch = True will allow the wrapped function to be run if it has been previously executed, but not otherwise Stores the result of a function as server state
"Decorator preventing wrapped function from running more than\n once per host (not just interpreter session).\n\n Using env.patch = True will allow the wrapped function to be run\n if it has been previously executed, but not otherwise\n \n Stores the result of a function as server state"
140
false
bretth/woven
run_once_per_node
15,849
LDU_FT/UCSBarchlab/PyRTL/software_fibonacci
LDU_FT
[ "<BEGIN>\n## `_initialize`", "Sets the wire, register, and memory values to default or as specified.", " :param register_value_map: is a map of {Register: value}.\n :param memory_value_map: is a map of maps {Memory: {address: Value}}.\n :param default_value: is the value that all unspecifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the software_fibonacci 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 software_fibonacci 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...
a normal old python function to return the Nth fibonacci number.
"a normal old python function to return the Nth fibonacci number."
416
false
UCSBarchlab/PyRTL
software_fibonacci
15,850
LDU_FT/the01/python-flotils/_load_yaml_file
LDU_FT
[ "<BEGIN>\n## `load_json`", "Load data from json string", " :param json_data: Stringified json object\n :type json_data: str | unicode\n :param decoder: Use custom json decoder\n :type decoder: T <= DateTimeDecoder\n :return: Json data\n :rtype: None | int | float | str | list | dict\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_yaml_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_yaml_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Load data from yaml file :param file: Readable object or path to file :type file: FileIO | str | unicode :return: Yaml data :rtype: None | int | float | str | unicode | list | dict :raises IOError: Failed to load
"Load data from yaml file\n\n :param file: Readable object or path to file\n :type file: FileIO | str | unicode\n :return: Yaml data\n :rtype: None | int | float | str | unicode | list | dict\n :raises IOError: Failed to load"
60
false
the01/python-flotils
_load_yaml_file
15,851
LDU_FT/MichaelAquilina/hashedindex/get_document_length
LDU_FT
[ "<BEGIN>\n## `normalize_unicode`", "Normalize any unicode characters to ascii equivalent\n https://docs.python.org/2/library/unicodedata.html#unicodedata.normalize\n<END>", "<BEGIN>\n## `word_tokenize`", "Parses the given text and yields tokens which represent words within\n the given text. Tokens are a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_document_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_document_length API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns the number of terms found within the specified document.
"Returns the number of terms found within the specified document."
27
false
MichaelAquilina/hashedindex
get_document_length
15,852
LDU_FT/bloomberg/bqplot/_get_line_styles
LDU_FT
[ "<BEGIN>\n## `register_mark`", "Returns a decorator registering a mark class in the mark type registry.", " If no key is provided, the class name is used as a key. A key is provided\n for each core bqplot mark so that the frontend can use\n this key regardless of the kernel language.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_line_styles API. 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_line_styles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return line style, color and marker type from specified marker string. For example, if ``marker_str`` is 'g-o' then the method returns ``('solid', 'green', 'circle')``.
"Return line style, color and marker type from specified marker string.\n\n For example, if ``marker_str`` is 'g-o' then the method returns\n ``('solid', 'green', 'circle')``."
142
false
bloomberg/bqplot
_get_line_styles
15,853
LDU_FT/bartTC/django-wakawaka/changes
LDU_FT
[ "<BEGIN>\n## `index`", "Redirects to the default wiki index name.\n<END>", "<BEGIN>\n## `page`", "Displays a wiki page. Redirects to the edit view if the page doesn't exist.\n<END>", "<BEGIN>\n## `edit`", "Displays the form for editing and deleting a page.\n<END>", "<BEGIN>\n## `revisions`", "Displays...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the changes API. 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 changes API. 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...
Displays the changes between two revisions.
"Displays the changes between two revisions."
15
false
bartTC/django-wakawaka
changes
15,854
LDU_FT/JIC-CSB/jicimagelib/map_stack
LDU_FT
[ "<BEGIN>\n## `transformation`", "Function decorator to turn another function into a transformation.\n<END>", "<BEGIN>\n## `smooth_gaussian`", "Returns Gaussian smoothed image.", " :param image: numpy array or :class:`jicimagelib.image.Image`\n :param sigma: standard deviation\n :returns: :class:`ji...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_stack API. 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 map_stack API. 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...
Return 3D array where each z-slice has had the function applied to it. :param array3D: 3D numpy.array :param z_function: function to be mapped to each z-slice
"Return 3D array where each z-slice has had the function applied to it.\n\n :param array3D: 3D numpy.array\n :param z_function: function to be mapped to each z-slice"
91
false
JIC-CSB/jicimagelib
map_stack
15,855
LDU_FT/Jaymon/endpoints/find_methods
LDU_FT
[ "<BEGIN>\n## `handle_target`", "Only here to set self.request and get rid of it after", " this will set self.request so the target method can access request using\n self.request, just like in the controller.\n<END>", "<BEGIN>\n## `fetch`", "wrapper method that all the top level methods (get, p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_methods API. 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 find_methods API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Find the methods that could satisfy this request This will go through and find any method that starts with the request.method, so if the request was GET /foo then this would find any methods that start with GET https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html :returns: l...
"Find the methods that could satisfy this request\n\n This will go through and find any method that starts with the request.method,\n so if the request was GET /foo then this would find any methods that start\n with GET\n\n https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html\n\n :r...
215
false
Jaymon/endpoints
find_methods
15,856
LDU_FT/fozzle/python-brotherprint/abs_horz_pos
LDU_FT
[ "<BEGIN>\n## `initialize`", "Calling this function initializes the printer.", " Args:\n None\n Returns:\n None\n Raises:\n None\n<END>", "<BEGIN>\n## `select_charset`", "Select international character set and changes codes in code table accordingly", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abs_horz_pos API. 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 abs_horz_pos API. 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...
Calling this function sets the absoulte print position for the next data, this is the position from the left margin. Args: amount: desired positioning. Can be a number from 0 to 2362. The actual positioning is calculated as (amount/60)inches from the left margin. ...
"Calling this function sets the absoulte print position for the next data, this is\n the position from the left margin.\n \n Args:\n amount: desired positioning. Can be a number from 0 to 2362. The actual positioning\n is calculated as (amount/60)inches from the left margin.\n...
113
false
fozzle/python-brotherprint
abs_horz_pos
15,857
LDU_FT/inveniosoftware/invenio-base/base_app
LDU_FT
[ "<BEGIN>\n## `migrate_secret_key`", "Call entry points exposed for the SECRET_KEY change.\n<END>", "<BEGIN>\n## `create_app_factory`", "Create a Flask application factory.", " The application factory will load Flask extensions and blueprints specified\n using both entry points and directly in the argu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the base_app API. 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 base_app API. 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...
Invenio base application factory. If the instance folder does not exists, it will be created. :param import_name: The name of the application package. :param env_prefix: Environment variable prefix. :param instance_path: Instance path for Flask application. :param static_folder: Static folder path...
"Invenio base application factory.\n\n If the instance folder does not exists, it will be created.\n\n :param import_name: The name of the application package.\n :param env_prefix: Environment variable prefix.\n :param instance_path: Instance path for Flask application.\n :param static_folder: Static fol...
58
false
inveniosoftware/invenio-base
base_app
15,858
LDU_FT/onnx/onnx/make_node
LDU_FT
[ "<BEGIN>\n## `run_node`", "Simple run one operator and return the results.\n Args:\n outputs_info: a list of tuples, which contains the element type and\n shape of each output. First element of the tuple is the dtype, and\n the second element is the shape. More use case can...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Construct a NodeProto. Arguments: op_type (string): The name of the operator to construct inputs (list of string): list of input names outputs (list of string): list of output names name (string, default None): optional unique identifier for NodeProto doc_string (string, def...
"Construct a NodeProto.\n\n Arguments:\n op_type (string): The name of the operator to construct\n inputs (list of string): list of input names\n outputs (list of string): list of output names\n name (string, default None): optional unique identifier for NodeProto\n doc_string (str...
72
false
onnx/onnx
make_node
15,859
LDU_FT/OpenGov/carpenter/_find_block_end
LDU_FT
[ "<BEGIN>\n## `get_cell_type`", "Returns a type to be used in table cell analysis. This is either\n 'basestring' or '(int, float)'.\n<END>", "<BEGIN>\n## `check_cell_type`", "Checks the cell type to see if it represents the cell_type passed in.", " Args:\n cell_type: The type id for a cell match...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_block_end API. 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 _find_block_end API. 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...
Finds the end of a block from a start location and a suggested end location.
"Finds the end of a block from a start location and a suggested end location."
123
false
OpenGov/carpenter
_find_block_end
15,860
LDU_FT/slarse/pdfebc-core/_get_pdf_filenames_at
LDU_FT
[ "<BEGIN>\n## `send_with_attachments`", "Send an email from the user (a gmail) to the receiver.", " Args:\n subject (str): Subject of the email.\n message (str): A message.\n filepaths (list(str)): Filepaths to files to be attached.\n config (defaultdict): A defaultdict.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_pdf_filenames_at 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_pdf_filenames_at API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Find all PDF files in the specified directory. Args: source_directory (str): The source directory. Returns: list(str): Filepaths to all PDF files in the specified directory. Raises: ValueError
"Find all PDF files in the specified directory.\n\n Args:\n source_directory (str): The source directory.\n\n Returns:\n list(str): Filepaths to all PDF files in the specified directory.\n\n Raises:\n ValueError"
56
false
slarse/pdfebc-core
_get_pdf_filenames_at
15,861
LDU_FT/FactoryBoy/factory_boy/split
LDU_FT
[ "<BEGIN>\n## `set_random_state`", "Force-set the state of factory.fuzzy's random generator.\n<END>", "<BEGIN>\n## `reseed_random`", "Reseed factory.fuzzy's random generator.\n<END>", "<BEGIN>\n## `_lazy_load_get_model`", "Lazy loading of get_model.", " get_model loads django.conf.settings, which may ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Split a declaration name into a (declaration, subpath) tuple. Examples: >>> DeclarationSet.split('foo__bar') ('foo', 'bar') >>> DeclarationSet.split('foo') ('foo', None) >>> DeclarationSet.split('foo__bar__baz') ('foo', 'bar__baz')
"Split a declaration name into a (declaration, subpath) tuple.\n\n Examples:\n >>> DeclarationSet.split('foo__bar')\n ('foo', 'bar')\n >>> DeclarationSet.split('foo')\n ('foo', None)\n >>> DeclarationSet.split('foo__bar__baz')\n ('foo', 'bar__baz')"
120
false
FactoryBoy/factory_boy
split
15,862
LDU_FT/tyiannak/pyAudioAnalysis/mtFeatureExtractionToFile
LDU_FT
[ "<BEGIN>\n## `recordAnalyzeAudio`", "recordAnalyzeAudio(duration, outputWavFile, midTermBufferSizeSec, modelName, modelType)", "\tThis function is used to record and analyze audio segments, in a fix window basis.", "\tARGUMENTS: \n\t- duration\t\t\ttotal recording duration\n\t- outputWavFile\t\t\tpath of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mtFeatureExtractionToFile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mtFeatureExtractionToFile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
This function is used as a wrapper to: a) read the content of a WAV file b) perform mid-term feature extraction on that signal c) write the mid-term feature sequences to a numpy file
"This function is used as a wrapper to:\n a) read the content of a WAV file\n b) perform mid-term feature extraction on that signal\n c) write the mid-term feature sequences to a numpy file"
99
false
tyiannak/pyAudioAnalysis
mtFeatureExtractionToFile
15,863
LDU_FT/coursera-dl/coursera-dl/_convert_markup_audios
LDU_FT
[ "<BEGIN>\n## `parse_args`", "Parse the arguments/options passed to the program on the command line.\n<END>", "<BEGIN>\n## `random_string`", "Return a pseudo-random string of specified length.\n<END>", "<BEGIN>\n## `clean_filename`", "Sanitize a string to be used as a filename.", " If minimal_change i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_markup_audios API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_markup_audios API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Convert audios of instructions markup. Audios are downloaded, base64-encoded and inserted as <audio controls> <source> tag. @param soup: BeautifulSoup instance. @type soup: BeautifulSoup
"Convert audios of instructions markup. Audios are downloaded,\n base64-encoded and inserted as <audio controls> <source> tag.\n\n @param soup: BeautifulSoup instance.\n @type soup: BeautifulSoup"
246
false
coursera-dl/coursera-dl
_convert_markup_audios
15,864
LDU_FT/bjodah/pycompilation/_copy_or_render_source
LDU_FT
[ "<BEGIN>\n## `compile_sources`", "Compile source code files to object files.", " Parameters\n ----------\n files: iterable of path strings\n source files, if cwd is given, the paths are taken as relative.\n CompilerRunner_: CompilerRunner instance (optional)\n could be e.g. pycompilati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _copy_or_render_source 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 _copy_or_render_source API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Tries to do regex match for each (pattern, target, subsd) tuple in ext.template_regexps for file f.
"Tries to do regex match for each (pattern, target, subsd) tuple\n in ext.template_regexps for file f."
71
false
bjodah/pycompilation
_copy_or_render_source
15,865
LDU_FT/justquick/django-activity-stream/followers
LDU_FT
[ "<BEGIN>\n## `timesince`", "Shortcut for the ``django.utils.timesince.timesince`` function of the\n current timestamp.\n<END>", "<BEGIN>\n## `respond`", "Responds to the request with the given response code.\n If ``next`` is in the form, it will redirect instead.\n<END>", "<BEGIN>\n## `follow_unfo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the followers API. 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 followers API. 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 listing of ``User``s that follow the actor defined by ``content_type_id``, ``object_id``.
"Creates a listing of ``User``s that follow the actor defined by\n ``content_type_id``, ``object_id``."
105
false
justquick/django-activity-stream
followers
15,866
LDU_FT/Valassis-Digital-Media/spylon/_set_launcher_property
LDU_FT
[ "<BEGIN>\n## `as_iterable`", "Utility for converting an object to an iterable.", " Parameters\n ----------\n iterable_or_scalar : anything", " Returns\n -------\n l : iterable\n If `obj` was None, return the empty tuple.\n If `obj` was not iterable returns a 1-tuple containing ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_launcher_property 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_launcher_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Handler for a special property that exists in both the launcher arguments and the spark conf dictionary. This will use the launcher argument if set falling back to the spark conf argument. If neither are set this is a noop (which means that the standard spark defaults will be used). Since `sp...
"Handler for a special property that exists in both the launcher arguments and the spark conf dictionary.\n\n This will use the launcher argument if set falling back to the spark conf argument. If neither are set this is\n a noop (which means that the standard spark defaults will be used).\n\n Sin...
96
false
Valassis-Digital-Media/spylon
_set_launcher_property
15,867
LDU_FT/EconForge/dolo/deterministic_solve
LDU_FT
[ "<BEGIN>\n## `multidot_old`", "Implements tensor operation : tensor-times-matrices.\n If last dimensions of ten represent multilinear operations of the type : [X1,...,Xk]->B[X1,...,Xk]\n and mats contains matrices or vectors [A1,...Ak] the function returns an array representing operators :\n [X1,...,Xk]-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deterministic_solve 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 deterministic_solve 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...
Computes a perfect foresight simulation using a stacked-time algorithm. The initial state is specified either by providing a series of exogenous shocks and assuming the model is initially in equilibrium with the first value of the shock, or by specifying an initial value for the states. Parameters ...
"Computes a perfect foresight simulation using a stacked-time algorithm.\n\n The initial state is specified either by providing a series of exogenous\n shocks and assuming the model is initially in equilibrium with the first\n value of the shock, or by specifying an initial value for the states.\n\n Paramet...
221
false
EconForge/dolo
deterministic_solve
15,868
LDU_FT/cloud-custodian/cloud-custodian/get_metrics
LDU_FT
[ "<BEGIN>\n## `factory`", "Factory func for filters.", " data - policy config for filters\n manager - resource type manager (ec2, s3, etc)\n<END>", "<BEGIN>\n## `get_block_operator`", "Determine the immediate parent boolean operator for a filter\n<END>", "<BEGIN>\n## `_validate_resource_count...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_metrics API. 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_metrics API. 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 any associated metrics for the policy.
"Retrieve any associated metrics for the policy."
506
false
cloud-custodian/cloud-custodian
get_metrics
15,869
LDU_FT/fooelisa/pyiosxr/make_rpc_call
LDU_FT
[ "<BEGIN>\n## `make_rpc_call`", "Allow a user to query a device directly using XML-requests.", " :param rpc_command: (str) rpc command such as:\n <Get><Operational><LLDP><NodeTable></NodeTable></LLDP></Operational></Get>\n<END>", "<BEGIN>\n## `open`", "Open a connectio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_rpc_call API. 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 make_rpc_call API. 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...
Allow a user to query a device directly using XML-requests. :param rpc_command: (str) rpc command such as: <Get><Operational><LLDP><NodeTable></NodeTable></LLDP></Operational></Get>
"Allow a user to query a device directly using XML-requests.\n\n :param rpc_command: (str) rpc command such as:\n <Get><Operational><LLDP><NodeTable></NodeTable></LLDP></Operational></Get>"
38
false
fooelisa/pyiosxr
make_rpc_call
15,870
LDU_FT/blockstack/blockstack-files/file_decrypt
LDU_FT
[ "<BEGIN>\n## `file_key_lookup`", "Get the file-encryption GPG key for the given blockchain ID, by index.", " if index == 0, then give back the current key\n if index > 0, then give back an older (revoked) key.\n if key_id is given, index and hostname will be ignored", " Return {'status': True, 'ke...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_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 extr...
Decrypt a file from a sender's blockchain ID. Try our current key, and then the old keys (but warn if there are revoked keys) Return {'status': True} on success, and write plaintext to output_path Return {'error': ...} on failure
"Decrypt a file from a sender's blockchain ID.\n Try our current key, and then the old keys\n (but warn if there are revoked keys)\n Return {'status': True} on success, and write plaintext to output_path\n Return {'error': ...} on failure"
28
false
blockstack/blockstack-files
file_decrypt
15,871
LDU_FT/noirbizarre/django.js/phantomjs
LDU_FT
[ "<BEGIN>\n## `run_from_argv`", "Set up any environment changes requested (e.g., Python path\n and Django settings), then run this command. If the\n command raises a ``CommandError``, intercept it and print it sensibly\n to stderr.\n<END>", "<BEGIN>\n## `create_parser`", "Create and return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the phantomjs API. 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 phantomjs API. 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...
Execute PhantomJS by giving ``args`` as command line arguments. If test are run in verbose mode (``-v/--verbosity`` = 2), it output: - the title as header (with separators before and after) - modules and test names - assertions results (with ``django.utils.termcolors`` support) ...
"Execute PhantomJS by giving ``args`` as command line arguments.\n\n If test are run in verbose mode (``-v/--verbosity`` = 2), it output:\n - the title as header (with separators before and after)\n - modules and test names\n - assertions results (with ``django.utils.termcolors`` suppo...
32
false
noirbizarre/django.js
phantomjs
15,872