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/thombashi/SimpleSQLite/close
LDU_FT
[ "<BEGIN>\n## `set_log_level`", "Set logging level of this module. Using\n `logbook <https://logbook.readthedocs.io/en/stable/>`__ module for logging.", " :param int log_level:\n One of the log level of\n `logbook <https://logbook.readthedocs.io/en/stable/api/base.html>`__.\n Disabled ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. 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 close API. 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...
Commit and close the connection. .. seealso:: :py:meth:`sqlite3.Connection.close`
"Commit and close the connection.\n\n .. seealso:: :py:meth:`sqlite3.Connection.close`"
185
false
thombashi/SimpleSQLite
close
4,473
LDU_FT/mikeboers/MultiMap/iteritems
LDU_FT
[ "<BEGIN>\n## `_rebuild_key_ids`", "Rebuild the internal key to index mapping.\n<END>", "<BEGIN>\n## `_conform_pair`", "Force a given key/value pair into a certain form.", " Override the _conform_key and _conform_value if you want to change\n the mapping behaviour.\n<END>", "<BEGIN>\n## `geta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iteritems API. 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 iteritems API. 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...
Iterator across all the non-duplicate keys and their values. Only yields the first key of duplicates.
"Iterator across all the non-duplicate keys and their values.\n \n Only yields the first key of duplicates."
35
false
mikeboers/MultiMap
iteritems
4,474
LDU_FT/SeattleTestbed/seash/read_history_file
LDU_FT
[ "<BEGIN>\n## `_bind_key`", "u\"\"\"setup the mapping from key to call the function.\n<END>", "<BEGIN>\n## `_bind_exit_key`", "u\"\"\"setup the mapping from key to call the function.\n<END>", "<BEGIN>\n## `_get_completions`", "Return a list of possible completions for the string ending at the point.\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_history_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_history_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...
u'''Load a readline history file. The default filename is ~/.history.
"u'''Load a readline history file. The default filename is ~/.history."
281
false
SeattleTestbed/seash
read_history_file
4,475
LDU_FT/Trebek/pydealer/get_list
LDU_FT
[ "<BEGIN>\n## `build`", "Builds a standard 52 card French deck of Card instances.", " :arg bool jokers:\n Whether or not to include jokers in the deck.\n :arg int num_jokers:\n The number of jokers to include.\n<END>", "<BEGIN>\n## `deal`", "Returns a list of cards, which ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get the specified cards from the stack. :arg term: The search term. Can be a card full name, value, suit, abbreviation, or stack indice. :arg int limit: The number of items to retrieve for each term. :arg bool sort: Whether or not to sort the resu...
"Get the specified cards from the stack.\n\n :arg term:\n The search term. Can be a card full name, value, suit,\n abbreviation, or stack indice.\n :arg int limit:\n The number of items to retrieve for each term.\n :arg bool sort:\n Whether or not to sort...
96
false
Trebek/pydealer
get_list
4,476
LDU_FT/PolyJIT/benchbuild/Wget
LDU_FT
[ "<BEGIN>\n## `write_makeconfig`", "Write a valid gentoo make.conf file to :path:.", " Args:\n path - The output path of the make.conf\n<END>", "<BEGIN>\n## `write_bashrc`", "Write a valid gentoo bashrc file to :path:.", " Args:\n path - The output path of the make.conf\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Wget API. 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 Wget API. 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...
Download url, if required. Args: src_url (str): Our SOURCE url. tgt_name (str): The filename we want to have on disk. tgt_root (str): The TARGET directory for the download. Defaults to ``CFG["tmpdir"]``.
"Download url, if required.\n\n Args:\n src_url (str): Our SOURCE url.\n tgt_name (str): The filename we want to have on disk.\n tgt_root (str): The TARGET directory for the download.\n Defaults to ``CFG[\"tmpdir\"]``."
401
false
PolyJIT/benchbuild
Wget
4,477
LDU_FT/scott-griffiths/bitstring/count
LDU_FT
[ "<BEGIN>\n## `offsetcopy`", "Return a copy of a ByteStore with the newoffset.", " Not part of public interface.\n<END>", "<BEGIN>\n## `equal`", "Return True if ByteStores a == b.", " Not part of public interface.\n<END>", "<BEGIN>\n## `structparser`", "Parse struct-like format string token into ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return count of total number of either zero or one bits. value -- If True then bits set to 1 are counted, otherwise bits set to 0 are counted. >>> Bits('0xef').count(1) 7
"Return count of total number of either zero or one bits.\n\n value -- If True then bits set to 1 are counted, otherwise bits set\n to 0 are counted.\n\n >>> Bits('0xef').count(1)\n 7"
251
false
scott-griffiths/bitstring
count
4,478
LDU_FT/thorgate/django-esteid/destroy_digidoc_session
LDU_FT
[ "<BEGIN>\n## `destroy_digidoc_session`", "Closes DigiDocService session and clears request.session[I{DIGIDOC_SESSION_KEY}]\n<END>", "<BEGIN>\n## `verify_mid_signature`", "Verify mobile id Authentication signature is valid", " :param certificate_data: binary certificate data, from 'CertificateData' field\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_digidoc_session 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 destroy_digidoc_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Closes DigiDocService session and clears request.session[I{DIGIDOC_SESSION_KEY}]
"Closes DigiDocService session and clears request.session[I{DIGIDOC_SESSION_KEY}]"
18
false
thorgate/django-esteid
destroy_digidoc_session
4,479
LDU_FT/TkTech/Jawa/create
LDU_FT
[ "<BEGIN>\n## `_walk`", "A modified os.walk with support for maximum traversal depth.\n<END>", "<BEGIN>\n## `update`", "Add one or more ClassFile sources to the class loader.", " If a given source is a directory path, it is traversed up to the\n maximum set depth and all files under it are adde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Creates a new field from `name` and `descriptor`. For example:: >>> from jawa.cf import ClassFile >>> cf = ClassFile.create('BeerCounter') >>> field = cf.fields.create('BeerCount', 'I') To automatically create a static field, pass a value:: >>> from jawa.cf imp...
"Creates a new field from `name` and `descriptor`. For example::\n\n >>> from jawa.cf import ClassFile\n >>> cf = ClassFile.create('BeerCounter')\n >>> field = cf.fields.create('BeerCount', 'I')\n\n To automatically create a static field, pass a value::\n\n >>> from ja...
226
false
TkTech/Jawa
create
4,480
LDU_FT/thriftrw/thriftrw-python/t_LITERAL
LDU_FT
[ "<BEGIN>\n## `add_include`", "Adds a module as an included module.", " :param name:\n Name under which the included module should be exposed in the\n current module.\n :param module_spec:\n ModuleSpec of the included module.\n<END>", "<BEGIN>\n## `link`", "Link...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the t_LITERAL API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the t_LITERAL API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
r'(\"([^\\\n]|(\\.))*?\")|\'([^\\\n]|(\\.))*?\
"r'(\\\"([^\\\\\\n]|(\\\\.))*?\\\")|\\'([^\\\\\\n]|(\\\\.))*?\\"
135
false
thriftrw/thriftrw-python
t_LITERAL
4,481
LDU_FT/explosion/spaCy/get_levels
LDU_FT
[ "<BEGIN>\n## `to_html`", "Doc method extension for saving the current state as a displaCy\n visualization.\n<END>", "<BEGIN>\n## `overlap_tokens`", "Get the tokens from the original Doc that are also in the comparison Doc.\n<END>", "<BEGIN>\n## `iob2json`", "Convert IOB files into JSON format for use w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_levels API. 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_levels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Calculate available arc height "levels". Used to calculate arrow heights dynamically and without wasting space. args (list): Individual arcs and their start, end, direction and label. RETURNS (list): Arc levels sorted from lowest to highest.
"Calculate available arc height \"levels\".\n Used to calculate arrow heights dynamically and without wasting space.\n\n args (list): Individual arcs and their start, end, direction and label.\n RETURNS (list): Arc levels sorted from lowest to highest."
346
false
explosion/spaCy
get_levels
4,482
LDU_FT/campaignmonitor/createsend-python/update
LDU_FT
[ "<BEGIN>\n## `authorize_url`", "Get the authorization URL for your application, given the application's\n client_id, redirect_uri, scope, and optional state data.\n<END>", "<BEGIN>\n## `exchange_token`", "Exchange a provided OAuth code for an OAuth access token, 'expires in'\n value and refresh ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Updates the details for a person. Password is optional and is only updated if supplied.
"Updates the details for a person. Password is optional and is only updated if supplied."
73
false
campaignmonitor/createsend-python
update
4,483
LDU_FT/vstconsulting/vstutils/write
LDU_FT
[ "<BEGIN>\n## `load_yaml`", "Load OpenAPI specification from yaml file. Path to file taking from command\n `vst_openapi`.\n :return:\n<END>", "<BEGIN>\n## `write`", "Add lines to ViewList, for further rendering.\n :param value: --line that would be added to render list\n :type value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API. 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 write API. 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...
Add lines to ViewList, for further rendering. :param value: --line that would be added to render list :type value: str, unicode :param indent_depth: --value that show indent from left border :type indent_depth: integer :return:
"Add lines to ViewList, for further rendering.\n :param value: --line that would be added to render list\n :type value: str, unicode\n :param indent_depth: --value that show indent from left border\n :type indent_depth: integer\n :return:"
68
false
vstconsulting/vstutils
write
4,484
LDU_FT/mdickinson/bigfloat/lgamma
LDU_FT
[ "<BEGIN>\n## `build`", "Build the bigfloat library for in-place testing.\n<END>", "<BEGIN>\n## `_quotient_exponent`", "Given two positive finite MPFR instances x and y,\n find the exponent of x / y; that is, the unique\n integer e such that 2**(e-1) <= x / y < 2**e.\n<END>", "<BEGIN>\n## `mpfr_floordi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lgamma API. 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 lgamma API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the logarithm of the absolute value of the Gamma function at x.
"Return the logarithm of the absolute value of the Gamma function at x."
273
false
mdickinson/bigfloat
lgamma
4,485
LDU_FT/data61/clkhash/hkdf
LDU_FT
[ "<BEGIN>\n## `convert_v1_to_v2`", "Convert v1 schema dict to v2 schema dict.\n :param dict: v1 schema dict\n :return: v2 schema dict\n<END>", "<BEGIN>\n## `from_json_dict`", "Create a Schema for v1 or v2 according to dct", " :param dct: This dictionary must have a `'features'`\n key spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hkdf API. 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 hkdf API. 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...
Executes the HKDF key derivation function as described in rfc5869 to derive `num_keys` keys of size `key_size` from the master_secret. :param master_secret: input keying material :param num_keys: the number of keys the kdf should produce :param hash_algo: The hash function used by HKDF for the internal...
"Executes the HKDF key derivation function as described in rfc5869 to\n derive `num_keys` keys of size `key_size` from the master_secret.\n\n :param master_secret: input keying material\n :param num_keys: the number of keys the kdf should produce\n :param hash_algo: The hash function used by HKDF for the in...
212
false
data61/clkhash
hkdf
4,486
LDU_FT/proycon/pynlpl/text
LDU_FT
[ "<BEGIN>\n## `auc`", "Compute Area Under the Curve (AUC) using the trapezoidal rule", " This is a general fuction, given points on a curve. For computing the area\n under the ROC-curve, see :func:`auc_score`.", " Parameters\n ----------\n x : array, shape = [n]\n x coordinates.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text API. 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 text API. 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...
Get the text associated with this element (of the specified class) The text will be constructed from child-elements whereever possible, as they are more specific. If no text can be obtained from the children and the element has itself text associated with it, then that will be used. Pa...
"Get the text associated with this element (of the specified class)\n\n The text will be constructed from child-elements whereever possible, as they are more specific.\n If no text can be obtained from the children and the element has itself text associated with\n it, then that will be used.\n\n ...
533
false
proycon/pynlpl
text
4,487
LDU_FT/eumis/pyviews/get_init_args
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 get_init_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_init_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns tuple with args and kwargs to pass it to inst_type constructor
"Returns tuple with args and kwargs to pass it to inst_type constructor"
34
false
eumis/pyviews
get_init_args
4,488
LDU_FT/raphaelvallat/pingouin/mad
LDU_FT
[ "<BEGIN>\n## `plot_blandaltman`", "Generate a Bland-Altman plot to compare two sets of measurements.", " Parameters\n ----------\n x, y : np.array or list\n First and second measurements.\n agreement : float\n Multiple of the standard deviation to plot limit of agreement bounds.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mad API. 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 mad API. 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...
Median Absolute Deviation along given axis of an array. Parameters ---------- a : array-like Input array. normalize : boolean. If True, scale by a normalization constant (~0.67) axis : int, optional The defaul is 0. Can also be None. Returns ------- mad : float ...
"Median Absolute Deviation along given axis of an array.\n\n Parameters\n ----------\n a : array-like\n Input array.\n normalize : boolean.\n If True, scale by a normalization constant (~0.67)\n axis : int, optional\n The defaul is 0. Can also be None.\n\n Returns\n -------\n ...
1,159
true
raphaelvallat/pingouin
mad
4,489
LDU_FT/JoeVirtual/KonFoo/insert
LDU_FT
[ "<BEGIN>\n## `to_json`", "Returns the selected field *attributes* for each :class:`Field` *nested*\n in the `Container` as a JSON formatted string.", " The *attributes* of each :class:`Field` for containers *nested* in the\n `Container` are viewed as well (chained method call).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
Inserts the *item* before the *index* into the `Sequence`. :param int index: `Sequence` index. :param item: any :class:`Structure`, :class:`Sequence`, :class:`Array` or :class:`Field` instance.
"Inserts the *item* before the *index* into the `Sequence`.\n\n :param int index: `Sequence` index.\n :param item: any :class:`Structure`, :class:`Sequence`, :class:`Array`\n or :class:`Field` instance."
233
false
JoeVirtual/KonFoo
insert
4,490
LDU_FT/gtaylor/EVE-Market-Data-Structures/set_empty_region
LDU_FT
[ "<BEGIN>\n## `parse_from_json`", "Given a Unified Uploader message, parse the contents and return a\n MarketOrderList or MarketHistoryList instance.", " :param str json_str: A Unified Uploader message as a JSON string.\n :rtype: MarketOrderList or MarketHistoryList\n :raises: MalformedUploadError wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_empty_region API. 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 set_empty_region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Prepares for the given region+item combo by instantiating a :py:class:`HistoryItemsInRegionList` instance, which will track region ID, type ID, and generated time. This is mostly used for the JSON deserialization process in case there are no orders for the given region+item combo. ...
"Prepares for the given region+item combo by instantiating a\n :py:class:`HistoryItemsInRegionList` instance, which will track\n region ID, type ID, and generated time. This is mostly used for\n the JSON deserialization process in case there are no orders for\n the given region+item combo.\n...
40
false
gtaylor/EVE-Market-Data-Structures
set_empty_region
4,491
LDU_FT/deepmind/pysc2/action_spatial
LDU_FT
[ "<BEGIN>\n## `DEFINE_point`", "Registers a flag whose value parses as a point.\n<END>", "<BEGIN>\n## `spatial`", "Choose the action space for the action proto.\n<END>", "<BEGIN>\n## `select_unit`", "Select a specific unit from the multi-unit selection.\n<END>", "<BEGIN>\n## `control_group`", "Act on a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action_spatial API. 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 action_spatial API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Given an Action, return the right spatial action.
"Given an Action, return the right spatial action."
300
false
deepmind/pysc2
action_spatial
4,492
LDU_FT/AmesCornish/buttersink/transfer
LDU_FT
[ "<BEGIN>\n## `update`", "Update self and parent with intermediate progress.\n<END>", "<BEGIN>\n## `close`", "Stop overwriting display, or update parent.\n<END>", "<BEGIN>\n## `transfer`", "Transfer (large) data from sender to receiver.\n<END>", "<BEGIN>\n## `display`", "Friendly string for volume, usi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer API. 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 transfer API. 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...
Transfer (large) data from sender to receiver.
"Transfer (large) data from sender to receiver."
148
false
AmesCornish/buttersink
transfer
4,493
LDU_FT/evyatarmeged/Raccoon/_add_to_found_storage
LDU_FT
[ "<BEGIN>\n## `_extract_from_sans`", "Looks for different TLDs as well as different sub-domains in SAN list\n<END>", "<BEGIN>\n## `_detect_cms`", "Detect CMS using whatcms.org.\n Has a re-try mechanism because false negatives may occur\n :param tries: Count of tries for CMS discovery\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_to_found_storage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_to_found_storage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Will first normalize the img src and then check if this bucket was discovered before If it is in storage_urls_found, the function returns Else, it send a GET for the original URL (normalized image src) and will look for "AmazonS3" in the "Server" response header. If found, will add to UR...
"Will first normalize the img src and then check if this bucket was discovered before\n If it is in storage_urls_found, the function returns\n Else, it send a GET for the original URL (normalized image src) and will look for \"AmazonS3\" in\n the \"Server\" response header.\n If found, will ...
27
false
evyatarmeged/Raccoon
_add_to_found_storage
4,494
LDU_FT/ff0000/scarlet/get_string_from_view
LDU_FT
[ "<BEGIN>\n## `get_add_link`", "Appends the popup=1 query string to the url so the\n destination url treats it as a popup.\n<END>", "<BEGIN>\n## `render_view`", "Return an string version of a View with as_string method.\n First argument is the name of the view. Any other arguments\n should be keyw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_string_from_view 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_string_from_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a string that is a rendering of the view given a request, view_name, and the original url_kwargs. Makes the following changes the view before rendering: * Sets can_submit to False. * Adds action_url to the context. This is the url where \ this view actually lives. ...
"Returns a string that is a rendering of the view given a\n request, view_name, and the original url_kwargs. Makes the\n following changes the view before rendering:\n\n * Sets can_submit to False.\n * Adds action_url to the context. This is the url where \\\n this view actually lives...
548
false
ff0000/scarlet
get_string_from_view
4,495
LDU_FT/CygnusNetworks/pypureomapi/lookup_ip
LDU_FT
[ "<BEGIN>\n## `parse_chain`", "Creates a new parser that executes the passed parsers (args) with the\n\tprevious results and yields a tuple of the results.", "\t>>> list(parse_chain(lambda: (None, 1), lambda one: (None, 2)))\n\t[None, None, (1, 2)]", "\t@param args: parsers\n\t@returns: parser\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_ip API. 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 lookup_ip API. 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...
Look for a lease object with given mac address and return the assigned ip address. @type mac: str @rtype: str or None @raises ValueError: @raises OmapiError: @raises OmapiErrorNotFound: if no lease object with the given mac could be found @raises OmapiErrorAttributeNotFound: if lease could be found, but ...
"Look for a lease object with given mac address and return the\n\t\tassigned ip address.\n\n\t\t@type mac: str\n\t\t@rtype: str or None\n\t\t@raises ValueError:\n\t\t@raises OmapiError:\n\t\t@raises OmapiErrorNotFound: if no lease object with the given mac could be found\n\t\t@raises OmapiErrorAttributeNotFound: if lea...
114
false
CygnusNetworks/pypureomapi
lookup_ip
4,496
LDU_FT/PyconUK/ConferenceScheduler/solution_to_array
LDU_FT
[ "<BEGIN>\n## `hill_climber`", "Implement a basic hill climbing algorithm.", " Has two stopping conditions:", " 1. Maximum number of iterations;\n 2. A known lower bound, a none is passed then this is not used.", " If acceptance_criteria (a callable) is not None then this is used to obtain\n a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solution_to_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solution_to_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert a schedule from solution to array form Parameters ---------- solution : list or tuple of tuples of event index and slot index for each scheduled item events : list or tuple of :py:class:`resources.Event` instances slots : list or tuple of :py:class:`resources.Slot` i...
"Convert a schedule from solution to array form\n\n Parameters\n ----------\n solution : list or tuple\n of tuples of event index and slot index for each scheduled item\n events : list or tuple\n of :py:class:`resources.Event` instances\n slots : list or tuple\n of :py:class:`resourc...
127
false
PyconUK/ConferenceScheduler
solution_to_array
4,497
LDU_FT/ianmiell/shutit/ls
LDU_FT
[ "<BEGIN>\n## `parse_shutitfile_args`", "Parse shutitfile args (eg in the line 'RUN some args', the passed-in args_str would be 'some args').\n\tIf the string is bounded by square brackets, then it's treated in the form: ['arg1','arg2'], and the returned list looks the same.\n\tIf the string composed entirely of n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Helper proc to list files in a directory @param directory: directory to list. If the directory doesn't exist, shutit.fail() is called (i.e. the build fails.) @param note: See send() @type directory: string @rtype: list of strings
"Helper proc to list files in a directory\n\n\t\t@param directory: directory to list. If the directory doesn't exist, shutit.fail() is called (i.e. the build fails.)\n\t\t@param note: See send()\n\n\t\t@type directory: string\n\n\t\t@rtype: list of strings"
498
false
ianmiell/shutit
ls
4,498
LDU_FT/ktdreyer/txkoji/listBuilds
LDU_FT
[ "<BEGIN>\n## `duration`", "Return a timedelta for this build.", " Measure the time between this build's start and end time, or \"now\"\n if the build has not yet finished.", " :returns: timedelta object\n<END>", "<BEGIN>\n## `url`", "Return a kojiweb URL for this resource.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listBuilds API. 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 listBuilds API. 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...
Get information about all builds of a package. Calls "listBuilds" XML-RPC, with an enhancement: you can also pass a string here for the package name instead of the package ID number. See https://pagure.io/koji/issue/1209 for implementing this server-side. :param package: ``int`...
"Get information about all builds of a package.\n\n Calls \"listBuilds\" XML-RPC, with an enhancement: you can also pass a\n string here for the package name instead of the package ID number.\n See https://pagure.io/koji/issue/1209 for implementing this\n server-side.\n\n :param packa...
213
false
ktdreyer/txkoji
listBuilds
4,499
LDU_FT/llazzaro/django-scheduler/daily_table
LDU_FT
[ "<BEGIN>\n## `daily_table`", "Display a nice table with occurrences and action buttons.\n Arguments:\n start - hour at which the day starts\n end - hour at which the day ends\n increment - size of a time slot (in minutes)\n<END>", "<BEGIN>\n## `_cook_slots`", "Prepare slots to be displayed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the daily_table API. 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 daily_table API. 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...
Display a nice table with occurrences and action buttons. Arguments: start - hour at which the day starts end - hour at which the day ends increment - size of a time slot (in minutes)
"Display a nice table with occurrences and action buttons.\n Arguments:\n start - hour at which the day starts\n end - hour at which the day ends\n increment - size of a time slot (in minutes)"
38
false
llazzaro/django-scheduler
daily_table
4,500
LDU_FT/niemasd/TreeSwift/edge_length_sum
LDU_FT
[ "<BEGIN>\n## `plot_ltt`", "Plot the Lineages Through Time (LTT) curve of a given tree", " Args:\n ``lineages`` (``dict``): The ``lineages`` dictionary returned by a ``Tree`` object's ``lineages_through_time()`` function call", " ``show_plot`` (``bool``): ``True`` to show the plot, otherwise `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edge_length_sum API. 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 edge_length_sum API. 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...
Compute the sum of all selected edge lengths in this ``Tree`` Args: ``terminal`` (``bool``): ``True`` to include terminal branches, otherwise ``False`` ``internal`` (``bool``): ``True`` to include internal branches, otherwise ``False`` Returns: ``float``: Sum of al...
"Compute the sum of all selected edge lengths in this ``Tree``\n\n Args:\n ``terminal`` (``bool``): ``True`` to include terminal branches, otherwise ``False``\n\n ``internal`` (``bool``): ``True`` to include internal branches, otherwise ``False``\n\n Returns:\n ``float``: ...
280
false
niemasd/TreeSwift
edge_length_sum
4,501
LDU_FT/dixudx/rtcclient/getIncludedInBuilds
LDU_FT
[ "<BEGIN>\n## `getRoles`", "Get all :class:`rtcclient.models.Role` objects in this project\n area", " If no :class:`Roles` are retrieved, `None` is returned.", " :return: a :class:`list` that contains all\n :class:`rtcclient.models.Role` objects\n :rtype: list\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getIncludedInBuilds 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 getIncludedInBuilds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Get all :class:`rtcclient.models.IncludedInBuild` objects that have already included this workitem WARNING: If one of the IncludedInBuilds is removed or cannot be retrieved/found correctly, then 404 error will be raised. :return: a :class:`list` contains all the :class:`rtc...
"Get all :class:`rtcclient.models.IncludedInBuild` objects that\n have already included this workitem\n\n WARNING: If one of the IncludedInBuilds is removed or cannot be\n retrieved/found correctly, then 404 error will be raised.\n\n :return: a :class:`list` contains all the\n :cl...
285
false
dixudx/rtcclient
getIncludedInBuilds
4,502
LDU_FT/CleanCut/green/parseArguments
LDU_FT
[ "<BEGIN>\n## `toParallelTargets`", "Produce a list of targets which should be tested in parallel.", " For the most part this will be a list of test modules. The exception is\n when a dotted name representing something more granular than a module\n was input (like an individal test case or test method)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseArguments API. 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 parseArguments API. 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...
I parse arguments in sys.argv and return the args object. The parser itself is available as args.parser. Adds the following members to args: parser = the parser object store_opt = the StoreOpt object
"I parse arguments in sys.argv and return the args object. The parser\n itself is available as args.parser.\n\n Adds the following members to args:\n parser = the parser object\n store_opt = the StoreOpt object"
33
false
CleanCut/green
parseArguments
4,503
LDU_FT/ishepard/pydriller/committer
LDU_FT
[ "<BEGIN>\n## `get_head`", "Get the head commit.", " :return: Commit of the head commit\n<END>", "<BEGIN>\n## `get_list_commits`", "Return a generator of commits of all the commits in the repo.", " :return: Generator[Commit], the generator of all the commits in the\n repo\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the committer API. 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 committer API. 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 the committer of the commit as a Developer object. :return: committer
"Return the committer of the commit as a Developer object.\n\n :return: committer"
62
false
ishepard/pydriller
committer
4,504
LDU_FT/poulp/zenipy/zlist
LDU_FT
[ "<BEGIN>\n## `message`", "Display a simple message", " :param text: text inside the window\n :type text: str\n :param title: title of the window\n :type title: str\n :param width: window width\n :type width: int\n :param height: window height\n :type height: int\n :param timeout: clos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zlist API. 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 zlist API. 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...
Display a list of values :param columns: a list of columns name :type columns: list of strings :param items: a list of values :type items: list of strings :param print_columns: index of a column (return just the values from this column) :type print_columns: int (None if all the columns) :pa...
"Display a list of values\n\n :param columns: a list of columns name\n :type columns: list of strings\n :param items: a list of values\n :type items: list of strings\n :param print_columns: index of a column (return just the values from this column)\n :type print_columns: int (None if all the columns)...
33
false
poulp/zenipy
zlist
4,505
LDU_FT/rochacbruno/dynaconf/load
LDU_FT
[ "<BEGIN>\n## `init_app`", "kwargs holds initial dynaconf configuration\n<END>", "<BEGIN>\n## `get`", "Gets config from dynaconf variables\n if variables does not exists in dynaconf try getting from\n `app.config` to support runtime settings.\n<END>", "<BEGIN>\n## `object_merge`", "Recursivel...
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...
Reads and loads in to "settings" a single key or all keys from redis :param obj: the settings instance :param env: settings env default='DYNACONF' :param silent: if errors should raise :param key: if defined load a single key, else load all in env :return: None
"Reads and loads in to \"settings\" a single key or all keys from redis\n\n :param obj: the settings instance\n :param env: settings env default='DYNACONF'\n :param silent: if errors should raise\n :param key: if defined load a single key, else load all in env\n :return: None"
172
false
rochacbruno/dynaconf
load
4,506
LDU_FT/KrishnaswamyLab/PHATE/diff_op
LDU_FT
[ "<BEGIN>\n## `_get_plot_data`", "Get plot data out of an input object", " Parameters\n ----------\n data : array-like, `phate.PHATE` or `scanpy.AnnData`\n ndim : int, optional (default: None)\n Minimum number of dimensions\n<END>", "<BEGIN>\n## `scatter`", "Create a scatter plot", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff_op API. 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 diff_op API. 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...
The diffusion operator calculated from the data
"The diffusion operator calculated from the data"
162
false
KrishnaswamyLab/PHATE
diff_op
4,507
LDU_FT/peterdemin/pip-compile-multi/replace_header
LDU_FT
[ "<BEGIN>\n## `create_lockfile`", "Write recursive dependencies list to outfile\n with hard-pinned versions.\n Then fix it.\n<END>", "<BEGIN>\n## `parse_references`", "Read filename line by line searching for pattern:", " -r file.in\n or\n --requirement file.in", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_header API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Replace pip-compile header with custom text
"Replace pip-compile header with custom text"
61
false
peterdemin/pip-compile-multi
replace_header
4,508
LDU_FT/hyperledger/indy-node/init_domain_ledger
LDU_FT
[ "<BEGIN>\n## `init_domain_ledger`", "This is usually an implementation of Ledger\n<END>", "<BEGIN>\n## `update_txn_with_extra_data`", "All the data of the transaction might not be stored in ledger so the\n extra data that is omitted from ledger needs to be fetched from the\n appropriate data sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_domain_ledger 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 init_domain_ledger 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...
This is usually an implementation of Ledger
"This is usually an implementation of Ledger"
109
false
hyperledger/indy-node
init_domain_ledger
4,509
LDU_FT/tijme/not-your-average-web-crawler/query_dict_to_string
LDU_FT
[ "<BEGIN>\n## `get_new_requests`", "Retrieve all the new request that were found in this request.", " Returns:\n list(:class:`nyawc.http.Request`): A list of request objects.\n<END>", "<BEGIN>\n## `__make_request`", "Execute a request with the given data.", " Args:\n url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_dict_to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_dict_to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Convert an OrderedDict to a query string. Args: query (obj): The key value object with query params. Returns: str: The query string. Note: This method does the same as urllib.parse.urlencode except that it doesn't actually encode the values.
"Convert an OrderedDict to a query string.\n\n Args:\n query (obj): The key value object with query params.\n\n Returns:\n str: The query string.\n\n Note:\n This method does the same as urllib.parse.urlencode except\n that it doesn't actually encode the ...
220
false
tijme/not-your-average-web-crawler
query_dict_to_string
4,510
LDU_FT/clld/clldutils/marker_split
LDU_FT
[ "<BEGIN>\n## `parse`", "Convert iso formatted timestamps found as values in the dict d to datetime objects.", " :return: A shallow copy of d with converted timestamps.\n<END>", "<BEGIN>\n## `dump`", "Python 2 + 3 compatible version of json.dump.", " :param obj: The object to be dumped.\n :param p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marker_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marker_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 extr...
Yield marker, value pairs from a text block (i.e. a list of lines). :param block: text block consisting of \n separated lines as it will be the case for \ files read using "rU" mode. :return: generator of (marker, value) pairs.
"Yield marker, value pairs from a text block (i.e. a list of lines).\n\n :param block: text block consisting of \\n separated lines as it will be the case for \\\n files read using \"rU\" mode.\n :return: generator of (marker, value) pairs."
70
false
clld/clldutils
marker_split
4,511
LDU_FT/riga/scinum/round_value
LDU_FT
[ "<BEGIN>\n## `log`", "log(x, base=e)\n Logarithmic function.\n<END>", "<BEGIN>\n## `asin`", "asin(x)\n Trigonometric arc sin function.\n<END>", "<BEGIN>\n## `acos`", "acos(x)\n Trigonometric arc cos function.\n<END>", "<BEGIN>\n## `atan`", "tan(x)\n Trigonometric arc tan function.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the round_value API. 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 round_value API. 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...
Rounds a number *val* with a single symmetric uncertainty *unc* or asymmetric uncertainties *unc* (interpreted as *up*) and *unc_down*, and calculates the orders of their magnitudes. They both can be a float or a list of floats for simultaneous evaluation. When *val* is a :py:class:`Number` instance, its co...
"Rounds a number *val* with a single symmetric uncertainty *unc* or asymmetric uncertainties\n *unc* (interpreted as *up*) and *unc_down*, and calculates the orders of their magnitudes. They\n both can be a float or a list of floats for simultaneous evaluation. When *val* is a\n :py:class:`Number` instance, it...
90
false
riga/scinum
round_value
4,512
LDU_FT/gofed/gofedlib/_commitData
LDU_FT
[ "<BEGIN>\n## `compare`", "Compare two snapshots:\n\t\t- return a list of new packages in this snapshot\n\t\t- return a list of new builds in this snapshot", "\t\t:param snapshot: distribution snapshot\n\t\t:type snapshot: DistributionSnapshot\n<END>", "<BEGIN>\n## `branches`", "Return a list of branches fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _commitData API. 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 _commitData API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get data from a commit object :param commit: commit object :type commit: git.objects.commit.Commit
"Get data from a commit object\n\n\t\t:param commit: commit object\n\t\t:type commit: git.objects.commit.Commit"
98
false
gofed/gofedlib
_commitData
4,513
LDU_FT/jlesquembre/jlle/check_recommended_files
LDU_FT
[ "<BEGIN>\n## `no_input`", "Return whether the user wants to run in no-input mode.", " Enable this mode by adding a ``no-input`` option::", " [zest.releaser]\n no-input = yes", " The default when this option has not been set is False.", " Standard config rules app...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_recommended_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_recommended_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Do check for recommended files. Returns True when all is fine.
"Do check for recommended files.\n\n Returns True when all is fine."
77
false
jlesquembre/jlle
check_recommended_files
4,514
LDU_FT/robgolding/django-radius/_radius_auth
LDU_FT
[ "<BEGIN>\n## `_get_auth_packet`", "Get the pyrad authentication packet for the username/password and the\n given pyrad client.\n<END>", "<BEGIN>\n## `_get_client`", "Get the pyrad client for a given server. RADIUS server is described by\n a 3-tuple: (<hostname>, <port>, <secret>).\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _radius_auth API. 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 _radius_auth API. 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...
Authenticate the given username/password against the RADIUS server described by `server`.
"Authenticate the given username/password against the RADIUS server\n described by `server`."
14
false
robgolding/django-radius
_radius_auth
4,515
LDU_FT/rdussurget/py-altimetry/spectral_analysis
LDU_FT
[ "<BEGIN>\n## `bilinear_interpolation`", "Interpolate (x,y) from values associated with four points.\r", " The four points are a list of four triplets: (x, y, value).\r\n The four points can be in any order. They should form a rectangle.\r", " >>> bilinear_interpolation(12, 5.5,\r\n ... ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spectral_analysis API. 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 spectral_analysis API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Spectral_Analysis : This function performs a spatial spectral analysis with different options on a time series of SLA profiles. :parameter dx: sampling distance :parameter Ain: 2D table of sla data with time along 2nd axis (NXxNT with NX the spatial length and NT the time length) :keyword tape...
"Spectral_Analysis :\r\n This function performs a spatial spectral analysis with different options on a time series of SLA profiles.\r\n \r\n :parameter dx: sampling distance\r\n :parameter Ain: 2D table of sla data with time along 2nd axis (NXxNT with NX the spatial length and NT the time length)\r\n :k...
320
false
rdussurget/py-altimetry
spectral_analysis
4,516
LDU_FT/andrewramsay/sk8-drivers/get_current_data
LDU_FT
[ "<BEGIN>\n## `update`", "Update the device name and/or RSSI.", " During an ongoing scan, multiple records from the same device can be \n received during the scan. Each time that happens this method is \n called to update the :attr:`name` and/or :attr:`rssi` attributes.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_current_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_current_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return the calibration data for the current IMU, if any.
"Return the calibration data for the current IMU, if any."
193
false
andrewramsay/sk8-drivers
get_current_data
4,517
LDU_FT/mattjj/pybasicbayes/sample_truncated_gaussian
LDU_FT
[ "<BEGIN>\n## `nice_indices`", "takes an array like [1,1,5,5,5,999,1,1]\n and maps to something like [0,0,1,1,1,2,0,0]\n modifies original in place as well as returns a ref\n<END>", "<BEGIN>\n## `principal_angle`", "Find the principal angle between two subspaces\n spanned by columns of A and B\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample_truncated_gaussian 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 sample_truncated_gaussian API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Sample a truncated normal with the specified params. This is not the most stable way but it works as long as the truncation region is not too far from the mean.
"Sample a truncated normal with the specified params. This\n is not the most stable way but it works as long as the\n truncation region is not too far from the mean."
16
false
mattjj/pybasicbayes
sample_truncated_gaussian
4,518
LDU_FT/mattloper/chumpy/get_peak_mem
LDU_FT
[ "<BEGIN>\n## `get_peak_mem`", "this returns peak memory use since process starts till the moment its called\n<END>", "<BEGIN>\n## `dfs_do_func_on_graph`", "invoke func on each node of the dr graph\n<END>", "<BEGIN>\n## `sparse_is_desireable`", "Examines a pair of matrices and determines if the result of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_peak_mem API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_peak_mem API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
this returns peak memory use since process starts till the moment its called
"this returns peak memory use since process starts till the moment its called"
30
false
mattloper/chumpy
get_peak_mem
4,519
LDU_FT/glue-viz/echo/connect_button
LDU_FT
[ "<BEGIN>\n## `add_callback`", "Attach a callback function to a property in an instance", " Parameters\n ----------\n instance\n The instance to add the callback to\n prop : str\n Name of callback property in `instance`\n callback : func\n The callback function to add\n ech...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_button API. 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 connect_button API. 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...
Connect a button with a callback method Parameters ---------- instance : object The class instance that the callback method is attached to prop : str The name of the callback method widget : QtWidget The Qt widget to connect. This should implement the ``clicked`` method
"Connect a button with a callback method\n\n Parameters\n ----------\n instance : object\n The class instance that the callback method is attached to\n prop : str\n The name of the callback method\n widget : QtWidget\n The Qt widget to connect. This should implement the ``clicked`` m...
88
false
glue-viz/echo
connect_button
4,520
LDU_FT/MisterWil/abodepy/_panel_settings
LDU_FT
[ "<BEGIN>\n## `map_event_code`", "Map a specific event_code to an event group.\n<END>", "<BEGIN>\n## `desc`", "Get a short description of the automation.\n<END>", "<BEGIN>\n## `_get_numeric_status`", "Extract the numeric value from the statuses object.\n<END>", "<BEGIN>\n## `is_on`", "Get sensor state....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _panel_settings API. 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 _panel_settings API. 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...
Will validate panel settings and values, returns data packet.
"Will validate panel settings and values, returns data packet."
53
false
MisterWil/abodepy
_panel_settings
4,521
LDU_FT/wangsix/vmo/get_pattern_mat
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 get_pattern_mat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pattern_mat API. 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...
Output a matrix containing patterns in rows from a vmo. :param oracle: input vmo object :param pattern: pattern extracted from oracle :return: a numpy matrix that could be used to visualize the pattern extracted.
"Output a matrix containing patterns in rows from a vmo.\n\n :param oracle: input vmo object\n :param pattern: pattern extracted from oracle\n :return: a numpy matrix that could be used to visualize the pattern extracted."
61
false
wangsix/vmo
get_pattern_mat
4,522
LDU_FT/ThePlasmaRailgun/py-rolldice/_eval_num
LDU_FT
[ "<BEGIN>\n## `safe_power`", "Same power of a ^ b\n :param a: Number a\n :param b: Number b\n :return: a ^ b\n<END>", "<BEGIN>\n## `rabin_miller`", "Performs a rabin-miller primality test", " :param p: Number to test\n :return: Bool of whether num is prime\n<END>", "<BEGIN>\n## `zero_width_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _eval_num API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _eval_num API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Evaluate a numerical node :param node: Node to eval :return: Result of node
"Evaluate a numerical node\n\n :param node: Node to eval\n :return: Result of node"
41
false
ThePlasmaRailgun/py-rolldice
_eval_num
4,523
LDU_FT/Parallels/artifactory/rest_post
LDU_FT
[ "<BEGIN>\n## `encode_properties`", "Performs encoding of url parameters from dictionary to a string. It does\n not escape backslash because it is not needed.", " See: http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SetItemProperties\n<END>", "<BEGIN>\n## `splitroot`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rest_post API. 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 rest_post API. 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...
Perform a PUT request to url with optional authentication
"Perform a PUT request to url with optional authentication"
27
false
Parallels/artifactory
rest_post
4,524
LDU_FT/CGATOxford/UMI-tools/remove_umis
LDU_FT
[ "<BEGIN>\n## `remove_umis`", "removes the specified nodes from the cluster and returns\n the remaining nodes\n<END>", "<BEGIN>\n## `get_substr_slices`", "Create slices to split a UMI into approximately equal size substrings\n Returns a list of tuples that can be passed to slice function\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_umis API. 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 remove_umis API. 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...
removes the specified nodes from the cluster and returns the remaining nodes
"removes the specified nodes from the cluster and returns\n the remaining nodes"
165
false
CGATOxford/UMI-tools
remove_umis
4,525
LDU_FT/ponty/eagexp/pil_image3d
LDU_FT
[ "<BEGIN>\n## `export_image3d`", "Exporting eagle .brd file into 3D image file\n using Eagle3D and povray.\n GUI is not displayed if ``pyvirtualdisplay`` is installed.\n If export is blocked somehow (e.g. popup window is displayed) then after timeout operation is canceled with exception.\n Problem can ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pil_image3d API. 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 pil_image3d API. 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...
same as export_image3d, but there is no output file, PIL object is returned instead
"same as export_image3d, but there is no output file, PIL object is returned instead"
35
false
ponty/eagexp
pil_image3d
4,526
LDU_FT/raags/ipmitool/print_report
LDU_FT
[ "<BEGIN>\n## `print_report`", "Print collated report with output and errors if any\n<END>", "<BEGIN>\n## `ipmi_method`", "Use ipmitool to run commands with ipmi protocol\n<END>", "<BEGIN>\n## `execute`", "Primary method to execute ipmitool commands\n :param command: ipmi command to execute, str or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_report API. 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 print_report API. 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...
Print collated report with output and errors if any
"Print collated report with output and errors if any"
13
false
raags/ipmitool
print_report
4,527
LDU_FT/mardix/Mocha/get_view_attr
LDU_FT
[ "<BEGIN>\n## `_normalize_response_tuple`", "Helper function to normalize view return values .\n It always returns (dict, status, headers). Missing values will be None.\n For example in such cases when tuple_ is\n (dict, status), (dict, headers), (dict, status, headers),\n (dict, headers, status)",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_view_attr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_view_attr API. 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 the attributes that was saved for the view :param view: object (class or instance method) :param key: string - the key :param default: mixed - the default value :param cls_name: str - To pass the class name associated to the view in the case of decorators that may not give the real class...
"Get the attributes that was saved for the view\n :param view: object (class or instance method)\n :param key: string - the key\n :param default: mixed - the default value\n :param cls_name: str - To pass the class name associated to the view\n in the case of decorators that may not give the real...
276
false
mardix/Mocha
get_view_attr
4,528
LDU_FT/recurly/recurly-client-python/as_log_output
LDU_FT
[ "<BEGIN>\n## `error_class_for_http_status`", "Return the appropriate `ResponseError` subclass for the given\n HTTP status code.\n<END>", "<BEGIN>\n## `response_doc`", "The XML document received from the service.\n<END>", "<BEGIN>\n## `transaction_error_code`", "The machine-readable error code for a tra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_log_output API. 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 as_log_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns an XML string containing a serialization of this instance suitable for logging. Attributes named in the instance's `sensitive_attributes` are redacted.
"Returns an XML string containing a serialization of this\n instance suitable for logging.\n\n Attributes named in the instance's `sensitive_attributes` are\n redacted."
103
false
recurly/recurly-client-python
as_log_output
4,529
LDU_FT/CamDavidsonPilon/lifelines/to_episodic_format
LDU_FT
[ "<BEGIN>\n## `right_censor_lifetimes`", "Right censor the deaths, uniformly\n lifetimes: (n,) array of positive random variables\n max_: the max time a censorship can occur\n min_: the min time a censorship can occur", " Returns\n The actual observations including uniform right censoring,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_episodic_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 to_episodic_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...
This function takes a "flat" dataset (that is, non-time-varying), and converts it into a time-varying dataset with static variables. Useful if your dataset has variables that do not satisfy the proportional hazard assumption, and you need to create a time-varying dataset to include interaction terms with t...
"This function takes a \"flat\" dataset (that is, non-time-varying), and converts it into a time-varying dataset\n with static variables.\n\n Useful if your dataset has variables that do not satisfy the proportional hazard assumption, and you need to create a\n time-varying dataset to include interaction terms...
603
false
CamDavidsonPilon/lifelines
to_episodic_format
4,530
LDU_FT/hozn/stravalib/create_activity
LDU_FT
[ "<BEGIN>\n## `logged_in`", "Method called by Strava (redirect) that includes parameters.\n - state\n - code\n - error\n<END>", "<BEGIN>\n## `unmarshal`", "Convert the value from parsed JSON structure to native python representation.", " By default this will leave the value as-is since the JS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_activity API. 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 create_activity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Create a new manual activity. If you would like to create an activity from an uploaded GPS file, see the :meth:`stravalib.client.Client.upload_activity` method instead. :param name: The name of the activity. :type name: str :param activity_type: The activity type (case-insensi...
"Create a new manual activity.\n\n If you would like to create an activity from an uploaded GPS file, see the\n :meth:`stravalib.client.Client.upload_activity` method instead.\n\n :param name: The name of the activity.\n :type name: str\n\n :param activity_type: The activity type (cas...
367
false
hozn/stravalib
create_activity
4,531
LDU_FT/gofed/gofedlib/branches
LDU_FT
[ "<BEGIN>\n## `compare`", "Compare two snapshots:\n\t\t- return a list of new packages in this snapshot\n\t\t- return a list of new builds in this snapshot", "\t\t:param snapshot: distribution snapshot\n\t\t:type snapshot: DistributionSnapshot\n<END>", "<BEGIN>\n## `branches`", "Return a list of branches fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the branches API. 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 branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return a list of branches for given repository Raises GithubException if rate limit is exceeded :return: [str]
"Return a list of branches for given repository\n\n\t\tRaises GithubException if rate limit is exceeded\n\n\t\t:return: [str]"
98
false
gofed/gofedlib
branches
4,532
LDU_FT/twisted/vertex/fromString
LDU_FT
[ "<BEGIN>\n## `enregister`", "Register a new account and return a Deferred that fires if it worked.", " @param svc: a Q2QService", " @param newAddress: a Q2QAddress object", " @param password: a shared secret (str)\n<END>", "<BEGIN>\n## `connectCached`", "See module docstring", " @param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fromString API. 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 fromString API. 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...
Convert the given bytes into a C{(host, port)} tuple. @param inStr: bytes in the format C{host:port} @type inStr: L{bytes} @return: a C{(host, port)} tuple @rtype: 2-L{tuple} of L{bytes}, L{int}
"Convert the given bytes into a C{(host, port)} tuple.\n\n @param inStr: bytes in the format C{host:port}\n @type inStr: L{bytes}\n\n @return: a C{(host, port)} tuple\n @rtype: 2-L{tuple} of L{bytes}, L{int}"
191
false
twisted/vertex
fromString
4,533
LDU_FT/gregmuellegger/django-autofixture/is_inheritance_parent
LDU_FT
[ "<BEGIN>\n## `register`", "Register a model with the registry.", " Arguments:", " *model* can be either a model class or a string that contains the model's\n app label and class name seperated by a dot, e.g. ``\"app.ModelClass\"``.", " *autofixture* is the :mod:`AutoFixture` subclass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_inheritance_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_inheritance_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Checks if the field is the automatically created OneToOneField used by django mulit-table inheritance
"Checks if the field is the automatically created OneToOneField used by\n django mulit-table inheritance"
46
false
gregmuellegger/django-autofixture
is_inheritance_parent
4,534
LDU_FT/Gjum/agarnet/send_target
LDU_FT
[ "<BEGIN>\n## `gcommer_claim`", "Try to get a token for this server address.\n `address` has to be ip:port, e.g. `'1.2.3.4:1234'`\n Returns tuple(address, token)\n<END>", "<BEGIN>\n## `gcommer_donate`", "Donate a token for this server address.\n `address` and `token` should be the return values from f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_target API. 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 send_target API. 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...
Sets the target position of all cells. `x` and `y` are world coordinates. They can exceed the world border. For continuous movement, send a new target position before the old one is reached. In earlier versions of the game, it was possible to control each cell individually by ...
"Sets the target position of all cells.\n\n `x` and `y` are world coordinates. They can exceed the world border.\n\n For continuous movement, send a new target position\n before the old one is reached.\n\n In earlier versions of the game, it was possible to\n control each cell individ...
57
false
Gjum/agarnet
send_target
4,535
LDU_FT/paolodragone/pymzn/rebase_array
LDU_FT
[ "<BEGIN>\n## `minizinc`", "Coroutine version of the ``pymzn.minizinc`` function.", " Parameters\n ----------\n max_queue_size : int\n Maximum number of solutions in the queue between the solution parser and\n the returned solution stream. When the queue is full, the solver\n execut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rebase_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rebase_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Transform an indexed dictionary (such as those returned by the dzn2dict function when parsing arrays) into an multi-dimensional list. Parameters ---------- d : dict The indexed dictionary to convert. bool : recursive Whether to rebase the array recursively. Returns ------- ...
"Transform an indexed dictionary (such as those returned by the dzn2dict\n function when parsing arrays) into an multi-dimensional list.\n\n Parameters\n ----------\n d : dict\n The indexed dictionary to convert.\n bool : recursive\n Whether to rebase the array recursively.\n\n Returns\n...
102
false
paolodragone/pymzn
rebase_array
4,536
LDU_FT/Yelp/pyramid_zipkin/should_not_sample_route
LDU_FT
[ "<BEGIN>\n## `_getattr_path`", "getattr for a dot separated path", " If an AttributeError is raised, it will return None.\n<END>", "<BEGIN>\n## `_get_settings_from_request`", "Extracts Zipkin attributes and configuration from request attributes.\n See the `zipkin_span` context in py-zipkin for more de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the should_not_sample_route API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the should_not_sample_route API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Decided whether current request route should be sampled or not. :param: current active pyramid request :returns: boolean whether current request route is blacklisted.
"Decided whether current request route should be sampled or not.\n\n :param: current active pyramid request\n :returns: boolean whether current request route is blacklisted."
35
false
Yelp/pyramid_zipkin
should_not_sample_route
4,537
LDU_FT/rdireen/spherepy/sbesselj_array
LDU_FT
[ "<BEGIN>\n## `sbessely`", "Returns a vector of spherical bessel functions yn:\r", " x: The argument.\r\n N: values of n will run from 0 to N-1.\n<END>", "<BEGIN>\n## `sbesselj`", "Returns a vector of spherical bessel functions jn:\r", " x: The argument.\r\n N: values of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sbesselj_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sbesselj_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Outputs an array where each column is a vector of sbessel values. This is useful for plotting a set of Spherical Bessel Functions: A = sbessel.sbessely_array(np.linspace(.1,20,100),40) for sb in A: plot(sb) show()
"Outputs an array where each column is a vector of sbessel values. This\r\n is useful for plotting a set of Spherical Bessel Functions:\r\n\r\n A = sbessel.sbessely_array(np.linspace(.1,20,100),40)\r\n for sb in A:\r\n plot(sb)\r\n show()"
194
false
rdireen/spherepy
sbesselj_array
4,538
LDU_FT/contains-io/typet/_get_args
LDU_FT
[ "<BEGIN>\n## `_get_bases`", "Get the base and meta classes to use in creating a subclass.", " Args:\n type_: The type to subclass.", " Returns:\n A tuple containing two values: a base class, and a metaclass.\n<END>", "<BEGIN>\n## `_instantiate`", "Instantiate the object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_args API. 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 the parameters necessary to check type boundaries. Args: args: A tuple with two parameters: a type, and a slice representing the minimum and maximum lengths allowed for values of that type. Returns: A tuple with three parameters: a type, a...
"Return the parameters necessary to check type boundaries.\n\n Args:\n args: A tuple with two parameters: a type, and a slice representing\n the minimum and maximum lengths allowed for values of that\n type.\n\n Returns:\n A tuple with three parameters: ...
78
false
contains-io/typet
_get_args
4,539
LDU_FT/ASMfreaK/habitipy/into
LDU_FT
[ "<BEGIN>\n## `progressed_bar`", "render a progressed.io like progress bar\n<END>", "<BEGIN>\n## `prettify`", "replace markup emoji and progressbars with actual things", " # Example\n ```python\n from habitipy.util import prettify\n print(prettify('Write thesis :book: ![progress](http://progresse...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the into API. 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 into API. 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...
Get another leaf node with name `val` if possible
"Get another leaf node with name `val` if possible"
21
false
ASMfreaK/habitipy
into
4,540
LDU_FT/mbakker7/timml/potentiallayers
LDU_FT
[ "<BEGIN>\n## `plot`", "Plot layout", " Parameters\n ----------", " win : list or tuple\n [x1, x2, y1, y2]\n<END>", "<BEGIN>\n## `contour`", "Contour plot", " Parameters\n ----------", " win : list or tuple\n [x1, x2, y1, y2]\n ngr ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the potentiallayers API. 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 potentiallayers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns array of size len(layers) only used in building equations
"Returns array of size len(layers)\n only used in building equations"
82
false
mbakker7/timml
potentiallayers
4,541
LDU_FT/LuminosoInsight/ordered-set/issuperset
LDU_FT
[ "<BEGIN>\n## `is_iterable`", "Are we being asked to look up a list of things, instead of a single thing?\n We check for the `__iter__` attribute so that this can cover types that\n don't have to be known by this module, such as NumPy arrays.", " Strings, however, should be considered as atomic values t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the issuperset API. 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 issuperset API. 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...
Report whether this set contains another set. Example: >>> OrderedSet([1, 2]).issuperset([1, 2, 3]) False >>> OrderedSet([1, 2, 3, 4]).issuperset({1, 2, 3}) True >>> OrderedSet([1, 4, 3, 5]).issuperset({1, 2, 3}) False
"Report whether this set contains another set.\n\n Example:\n >>> OrderedSet([1, 2]).issuperset([1, 2, 3])\n False\n >>> OrderedSet([1, 2, 3, 4]).issuperset({1, 2, 3})\n True\n >>> OrderedSet([1, 4, 3, 5]).issuperset({1, 2, 3})\n False"
42
false
LuminosoInsight/ordered-set
issuperset
4,542
LDU_FT/hammerlab/stanity/plot
LDU_FT
[ "<BEGIN>\n## `psisloo`", "r\"\"\"PSIS leave-one-out log predictive densities.", " Computes the log predictive densities given posterior samples of the log\n likelihood terms :math:`p(y_i|\\theta^s)` in input parameter `log_lik`.\n Returns a sum of the leave-one-out log predictive densities `loo`,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. 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 plot API. 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...
Graphical summary of pointwise pareto-k importance-sampling indices Pareto-k tail indices are plotted (on the y axis) for each observation unit (on the x axis)
"Graphical summary of pointwise pareto-k importance-sampling indices\n\n Pareto-k tail indices are plotted (on the y axis) for each observation unit (on the x axis)"
46
false
hammerlab/stanity
plot
4,543
LDU_FT/timothycrosley/deprecated.frosted/add_binding
LDU_FT
[ "<BEGIN>\n## `node_name`", "Convenience function: Returns node.id, or node.name, or None\n<END>", "<BEGIN>\n## `names`", "Return a list of the names referenced by this binding.\n<END>", "<BEGIN>\n## `unusedAssignments`", "Return a generator for the assignments which have not been used.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_binding API. 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 add_binding API. 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...
Called when a binding is altered. - `node` is the statement responsible for the change - `value` is the optional new value, a Binding instance, associated with the binding; if None, the binding is deleted if it exists. - if `report_redef` is True (default), rebinding while unused will b...
"Called when a binding is altered.\n\n - `node` is the statement responsible for the change\n - `value` is the optional new value, a Binding instance, associated\n with the binding; if None, the binding is deleted if it exists.\n - if `report_redef` is True (default), rebinding while unused ...
41
false
timothycrosley/deprecated.frosted
add_binding
4,544
LDU_FT/pygobject/pgi/add_objects_from_string
LDU_FT
[ "<BEGIN>\n## `get_backend`", "Returns the backend by name or raises KeyError\n<END>", "<BEGIN>\n## `set_backend`", "Set a prefered ffi backend (cffi, ctypes).", " set_backend() -- default\n set_backend(\"cffi\") -- cffi first, others as fallback\n set_backend(\"ctypes\") -- ctypes first, others as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_objects_from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_objects_from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
add_objects_from_string(buffer, object_ids) :param buffer: the string to parse :type buffer: :obj:`str` :param object_ids: array of objects to build :type object_ids: [:obj:`str`] :raises: :class:`GLib.Error` :returns: A positive value on success, 0 if an error occurre...
"add_objects_from_string(buffer, object_ids)\n\n :param buffer: the string to parse\n :type buffer: :obj:`str`\n :param object_ids: array of objects to build\n :type object_ids: [:obj:`str`]\n\n :raises: :class:`GLib.Error`\n\n :returns: A positive value on success, 0 if an err...
363
false
pygobject/pgi
add_objects_from_string
4,545
LDU_FT/freeman-lab/regional/mask
LDU_FT
[ "<BEGIN>\n## `getcolor`", "Turn optional color string spec into an array.\n<END>", "<BEGIN>\n## `getcolors`", "Turn list of color specs into list of arrays.\n<END>", "<BEGIN>\n## `getbase`", "Construct a base array from optional arguments.\n<END>", "<BEGIN>\n## `bbox`", "Bounding box as minimum and ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mask API. 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 mask API. 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...
Create a mask image with colored regions. Parameters ---------- dims : tuple, optional, default = None Dimensions of embedding image, will be ignored if background image is provided. base : array-like, optional, default = None Array to use as base im...
"Create a mask image with colored regions.\n\n Parameters\n ----------\n dims : tuple, optional, default = None\n Dimensions of embedding image,\n will be ignored if background image is provided.\n\n base : array-like, optional, default = None\n Array to use ...
53
false
freeman-lab/regional
mask
4,546
LDU_FT/kcallin/mqtt-codec/decode_varint
LDU_FT
[ "<BEGIN>\n## `encode_bytes`", "Encode a buffer length followed by the bytes of the buffer\n itself.", " Parameters\n ----------\n src_buf: bytes\n Source bytes to be encoded. Function asserts that\n 0 <= len(src_buf) <= 2**16-1.\n dst_file: file\n File-like object with write...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_varint API. 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 decode_varint API. 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...
Decode variable integer using algorithm similar to that described in MQTT Version 3.1.1 line 297. Parameters ---------- f: file Object with a read method. max_bytes: int or None If a varint cannot be constructed using `max_bytes` or fewer from f then raises a `DecodeError`. ...
"Decode variable integer using algorithm similar to that described\n in MQTT Version 3.1.1 line 297.\n\n Parameters\n ----------\n f: file\n Object with a read method.\n max_bytes: int or None\n If a varint cannot be constructed using `max_bytes` or fewer\n from f then raises a `Deco...
116
false
kcallin/mqtt-codec
decode_varint
4,547
LDU_FT/quodlibet/mutagen/to_packets
LDU_FT
[ "<BEGIN>\n## `_parse_sv8_int`", "Reads (max limit) bytes from fileobj until the MSB is zero.\n All 7 LSB will be merged to a big endian uint.", " Raises ValueError in case not MSB is zero, or EOFError in\n case the file ended before limit is reached.", " Returns (parsed number, number of bytes rea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_packets API. 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 to_packets API. 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...
Construct a list of packet data from a list of Ogg pages. If strict is true, the first page must start a new packet, and the last page must end the last packet.
"Construct a list of packet data from a list of Ogg pages.\n\n If strict is true, the first page must start a new packet,\n and the last page must end the last packet."
518
false
quodlibet/mutagen
to_packets
4,548
LDU_FT/calmjs/calmjs.parse/extract
LDU_FT
[ "<BEGIN>\n## `optimize_structure_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n## `optimize_layout_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API. 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 extract API. 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...
Extract a single node that matches the provided condition, otherwise a TypeError is raised. An optional skip parameter can be provided to specify how many matching nodes are to be skipped over.
"Extract a single node that matches the provided condition,\n otherwise a TypeError is raised. An optional skip parameter can\n be provided to specify how many matching nodes are to be skipped\n over."
253
false
calmjs/calmjs.parse
extract
4,549
LDU_FT/tuomas2/automate/load_or_create
LDU_FT
[ "<BEGIN>\n## `call_eval`", "Value might be either name registered in System namespace, or object, either\n StatusObject or Callable. If Callable, evaluate :meth:`.call` method. If StatusObject,\n return status.\n<END>", "<BEGIN>\n## `setup_callable_system`", "This function basically sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_or_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_or_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Load system from a dump, if dump file exists, or create a new system if it does not exist.
"Load system from a dump, if dump file exists, or create a new system if it does not exist."
91
false
tuomas2/automate
load_or_create
4,550
LDU_FT/bambinos/bambi/fit
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset PyMC3 model and all tracked distributions and parameters.\n<END>", "<BEGIN>\n## `build`", "Compile the PyMC3 model from an abstract model specification.\n Args:\n spec (Model): A bambi Model instance containing the abstract\n specification of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Fit the model using the specified BackEnd. Args: fixed (str): Optional formula specification of fixed effects. random (list): Optional list-based specification of random effects. priors (dict): Optional specification of priors for one or more terms. A dict wh...
"Fit the model using the specified BackEnd.\n\n Args:\n fixed (str): Optional formula specification of fixed effects.\n random (list): Optional list-based specification of random effects.\n priors (dict): Optional specification of priors for one or more\n terms. A ...
88
false
bambinos/bambi
fit
4,551
LDU_FT/treyhunner/django-simple-history/get_urls
LDU_FT
[ "<BEGIN>\n## `register`", "Create historical model for `model` and attach history manager to `model`.", " Keyword arguments:\n app -- App to install historical model into (defaults to model.__module__)\n manager_name -- class attribute name to use for historical manager\n records_class -- class to u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the additional urls used by the Reversion admin.
"Returns the additional urls used by the Reversion admin."
36
false
treyhunner/django-simple-history
get_urls
4,552
LDU_FT/openid/JWTConnect-Python-OidcService/store_item
LDU_FT
[ "<BEGIN>\n## `request_object_encryption`", "Created an encrypted JSON Web token with *msg* as body.", " :param msg: The mesaqg\n :param service_context:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `construct_request_uri`", "Constructs a special redirect_uri to be used when communicating wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Store a service response. :param item: The item as a :py:class:`oidcmsg.message.Message` subclass instance or a JSON document. :param item_type: The type of request or response :param key: The key under which the information should be stored in the state database
"Store a service response.\n\n :param item: The item as a :py:class:`oidcmsg.message.Message`\n subclass instance or a JSON document.\n :param item_type: The type of request or response\n :param key: The key under which the information should be stored in\n the state database"
159
false
openid/JWTConnect-Python-OidcService
store_item
4,553
LDU_FT/mozillazg/python-shanbay/send_message
LDU_FT
[ "<BEGIN>\n## `send_message`", "发送站内消息", " :param recipient_list: 收件人列表\n :param subject: 标题\n :param body: 内容(不能超过 1024 个字符)\n<END>", "<BEGIN>\n## `reply_message`", "回复某条站内消息", " :param message_url: 该条消息的页面 URL\n :param body: 内容(不能超过 1024 个字符)\n<END>", "<BEGIN>\n## `in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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. The extr...
发送站内消息 :param recipient_list: 收件人列表 :param subject: 标题 :param body: 内容(不能超过 1024 个字符)
"发送站内消息\n\n :param recipient_list: 收件人列表\n :param subject: 标题\n :param body: 内容(不能超过 1024 个字符)"
19
false
mozillazg/python-shanbay
send_message
4,554
LDU_FT/yamins81/tabular/loadSVcols
LDU_FT
[ "<BEGIN>\n## `arrayuniqify`", "Very fast uniqify routine for numpy arrays.", " **Parameters**", " **X** : numpy array", " Determine the unique elements of this numpy array.", " **retainorder** : Boolean, optional", " Whether or not to retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadSVcols API. 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 loadSVcols API. 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 a separated value text file to a list of column arrays. Basically, this function calls loadSVrecs, and transposes the string-valued row data returned by that function into a Python list of numpy arrays corresponding to columns, each a uniform Python type (int, float, str). Also uses and return...
"Load a separated value text file to a list of column arrays.\n\n Basically, this function calls loadSVrecs, and transposes the string-valued \n row data returned by that function into a Python list of numpy arrays \n corresponding to columns, each a uniform Python type (int, float, str). \n Also uses and ...
928
false
yamins81/tabular
loadSVcols
4,555
LDU_FT/KelSolaar/Umbra/__search_editors_files
LDU_FT
[ "<BEGIN>\n## `restore_geometry_on_layout_change`", "Setter for **self.__restore_geometry_on_layout_change** attribute.", " :param value: Attribute value.\n :type value: bool\n<END>", "<BEGIN>\n## `get`", "Returns given layout value.", " :param layout: Layout name.\n :type layou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __search_editors_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __search_editors_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Searches in :class:`umbra.components.factory.script_editor.script_editor.ScriptEditor` class editors files. :param files: Editor files. :type files: list
"Searches in :class:`umbra.components.factory.script_editor.script_editor.ScriptEditor` class editors files.\n\n :param files: Editor files.\n :type files: list"
1,432
true
KelSolaar/Umbra
__search_editors_files
4,556
LDU_FT/PonteIneptique/collatinus-python/register_modele
LDU_FT
[ "<BEGIN>\n## `assims`", "Cherche si la chaîne a peut subir une assimilation, renvoie cette chaîne éventuellement assimilée.", " :param mot: Mot pour lequel on doit vérifier des assimilations\n :type mot: str\n :return: Mot assimilé\n :rtype: str\n<END>", "<BEGIN>\n## `morpho`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_modele API. 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 register_modele API. 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...
Register a modele onto the lemmatizer :param modele: Modele to register
"Register a modele onto the lemmatizer\n\n :param modele: Modele to register"
109
false
PonteIneptique/collatinus-python
register_modele
4,557
LDU_FT/lappis-unb/salic-ml/create_indicator
LDU_FT
[ "<BEGIN>\n## `approved_funds`", "Verifica se o valor total de um projeto é um\n outlier em relação\n aos projetos do mesmo seguimento cultural\n Dataframes: planilha_orcamentaria\n<END>", "<BEGIN>\n## `complexidade`", "Returns a value that indicates project health, currently FinancialIndicator\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_indicator API. 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 create_indicator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Creates FinancialIndicator object for a project, calculating metrics and indicator value
"Creates FinancialIndicator object for a project, calculating\n metrics and indicator value"
102
false
lappis-unb/salic-ml
create_indicator
4,558
LDU_FT/junaruga/rpm-py-installer/lib_dir
LDU_FT
[ "<BEGIN>\n## `download_and_install`", "Download and install RPM Python binding.\n<END>", "<BEGIN>\n## `add_patchs_to_build_without_pkg_config`", "Add patches to remove pkg-config command and rpm.pc part.", " Replace with given library_path: lib_dir and include_path: include_dir\n without rpm.p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lib_dir API. 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 lib_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return standard library directory path used by RPM libs.
"Return standard library directory path used by RPM libs."
67
false
junaruga/rpm-py-installer
lib_dir
4,559
LDU_FT/tjvr/kurt/from_byte_array
LDU_FT
[ "<BEGIN>\n## `_workaround_no_stage_specific_variables`", "Make Stage-specific variables global (move them to Project).\n<END>", "<BEGIN>\n## `register`", "Register a new :class:`KurtPlugin`.", " Once registered, the plugin can be used by :class:`Project`, when:", " * :attr:`Project.load` see...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_byte_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_byte_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Decodes a run-length encoded ByteArray and returns a Bitmap. The ByteArray decompresses to a sequence of 32-bit values, which are stored as a byte string. (The specific encoding depends on Form.depth.)
"Decodes a run-length encoded ByteArray and returns a Bitmap.\n The ByteArray decompresses to a sequence of 32-bit values, which are\n stored as a byte string. (The specific encoding depends on Form.depth.)"
171
false
tjvr/kurt
from_byte_array
4,560
LDU_FT/openshift/openshift-restclient-python/get_resources_for_api_version
LDU_FT
[ "<BEGIN>\n## `meta_request`", "Handles parsing response structure and translating API Exceptions\n<END>", "<BEGIN>\n## `watch`", "Stream events for a resource from the Kubernetes API", " :param resource: The API resource object that will be used to query the API\n :param namespace: The namespa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resources_for_api_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resources_for_api_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
returns a dictionary of resources associated with provided (prefix, group, version)
"returns a dictionary of resources associated with provided (prefix, group, version)"
22
false
openshift/openshift-restclient-python
get_resources_for_api_version
4,561
LDU_FT/edx/pa11ycrawler/track_pa11y_stats
LDU_FT
[ "<BEGIN>\n## `make_parser`", "Returns an argparse instance for this script.\n<END>", "<BEGIN>\n## `main`", "Validates script arguments and calls the render_html() function with them.\n<END>", "<BEGIN>\n## `wcag_refs`", "Given a `code` from pa11y, return a list of the WCAG references.\n These references...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the track_pa11y_stats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the track_pa11y_stats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Keep track of the number of pa11y errors, warnings, and notices that we've seen so far, using the Scrapy stats collector: http://doc.scrapy.org/en/1.1/topics/stats.html
"Keep track of the number of pa11y errors, warnings, and notices that\n we've seen so far, using the Scrapy stats collector:\n http://doc.scrapy.org/en/1.1/topics/stats.html"
56
false
edx/pa11ycrawler
track_pa11y_stats
4,562
LDU_FT/Azure/azure-cosmos-python/UpsertPermission
LDU_FT
[ "<BEGIN>\n## `ShouldRetry`", "Returns true if should retry based on the passed-in exception.", " :param (errors.HTTPFailure instance) exception:", " :rtype:\n boolean\n<END>", "<BEGIN>\n## `ExplicitlyExcludeFromIndex`", "The default index policy on a DocumentContainer will AUTOMAT...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the UpsertPermission API. 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 UpsertPermission API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Upserts a permission for a user. :param str user_link: The link to the user entity. :param dict permission: The Azure Cosmos user permission to upsert. :param dict options: The request options for the request. :return: The upserted permis...
"Upserts a permission for a user.\n\n :param str user_link:\n The link to the user entity.\n :param dict permission:\n The Azure Cosmos user permission to upsert.\n :param dict options:\n The request options for the request.\n\n :return:\n The upse...
574
false
Azure/azure-cosmos-python
UpsertPermission
4,563
LDU_FT/googleads/googleads-python-lib/DisplayTree
LDU_FT
[ "<BEGIN>\n## `CreateAdsWithCustomizations`", "Creates ExpandedTextAds that use ad customizations for specified AdGroups.", " Args:\n client: an AdWordsClient instance.\n adgroup_ids: a list containing the AdGroup ids to add ExpandedTextAds to.\n feed_name: the name of the feed used to apply customizat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DisplayTree API. 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 DisplayTree API. 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...
Recursively display a node and each of its children. Args: node: The node we're displaying the children of. children: Children of the parent node. level: How deep in the tree we are.
"Recursively display a node and each of its children.\n\n Args:\n node: The node we're displaying the children of.\n children: Children of the parent node.\n level: How deep in the tree we are."
713
false
googleads/googleads-python-lib
DisplayTree
4,564
LDU_FT/schettino72/import-deps/ast_imports
LDU_FT
[ "<BEGIN>\n## `ast_imports`", "get list of import from python module\n :return: (list - tuple) (module, name, asname, level)\n<END>", "<BEGIN>\n## `_get_fqn`", "get full qualified name as list of strings\n :return: (list - str) of path segments from top package to given path\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ast_imports API. 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 ast_imports API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
get list of import from python module :return: (list - tuple) (module, name, asname, level)
"get list of import from python module\n :return: (list - tuple) (module, name, asname, level)"
10
false
schettino72/import-deps
ast_imports
4,565
LDU_FT/anayjoshi/platypus/add_output_variable
LDU_FT
[ "<BEGIN>\n## `get_cfg`", "Traverses the AST and returns the corresponding CFG", " :param ast_func: The AST representation of function\n :type ast_func: ast.Function", " :returns: The CFG representation of the function\n :rtype: cfg.Function\n<END>", "<BEGIN>\n## `get_ir`", "Converts the given ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_output_variable 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 add_output_variable 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...
Adds the argument variable as one of the output variable
"Adds the argument variable as one of the output variable"
26
false
anayjoshi/platypus
add_output_variable
4,566
LDU_FT/rm-hull/luma.emulator/_char_density
LDU_FT
[ "<BEGIN>\n## `scale2x`", "Scales using the AdvanceMAME Scale2X algorithm which does a\n 'jaggie-less' scale of bitmap graphics.\n<END>", "<BEGIN>\n## `smoothscale`", "Smooth scaling using MMX or SSE extensions if available\n<END>", "<BEGIN>\n## `identity`", "Fast scale operation that does not sampl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _char_density API. 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 _char_density API. 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...
Count the number of black pixels in a rendered character.
"Count the number of black pixels in a rendered character."
28
false
rm-hull/luma.emulator
_char_density
4,567
LDU_FT/DenisCarriere/geocoder/haversine
LDU_FT
[ "<BEGIN>\n## `_sign_url`", "Sign a request URL with a Crypto Key.\n Usage:\n from urlsigner import sign_url\n signed_url = sign_url(base_url=my_url,\n params=url_params,\n client_secret=CLIENT_SECRET)\n Args:\n base_url -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the haversine API. 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 haversine API. 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...
Calculate the great-circle distance bewteen two points on the Earth surface. :input: two 2-tuples, containing the latitude and longitude of each point in decimal degrees. Example: haversine((45.7597, 4.8422), (48.8567, 2.3508)) :output: Returns the distance bewteen the two points. The default uni...
"Calculate the great-circle distance bewteen two points on the Earth surface.\n\n :input: two 2-tuples, containing the latitude and longitude of each point\n in decimal degrees.\n\n Example: haversine((45.7597, 4.8422), (48.8567, 2.3508))\n\n :output: Returns the distance bewteen the two points.\n The de...
32
false
DenisCarriere/geocoder
haversine
4,568
LDU_FT/pudo/dataset/delete
LDU_FT
[ "<BEGIN>\n## `normalize_column_name`", "Check if a string is a reasonable thing to use as a column name.\n<END>", "<BEGIN>\n## `normalize_table_name`", "Check if the table name is obviously invalid.\n<END>", "<BEGIN>\n## `safe_url`", "Remove password from printed connection URLs.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Delete rows from the table. Keyword arguments can be used to add column-based filters. The filter criterion will always be equality: :: table.delete(place='Berlin') If no arguments are given, all records are deleted.
"Delete rows from the table.\n\n Keyword arguments can be used to add column-based filters. The filter\n criterion will always be equality:\n ::\n\n table.delete(place='Berlin')\n\n If no arguments are given, all records are deleted."
128
false
pudo/dataset
delete
4,569
LDU_FT/urbn/Caesium/get_dict_of_all_args
LDU_FT
[ "<BEGIN>\n## `load_json`", "Load JSON from the request body and store them in\n self.request.arguments, like Tornado does by default for POSTed form\n parameters.", " If JSON cannot be decoded", " :raises ValueError: JSON Could not be decoded\n<END>", "<BEGIN>\n## `get_json_argum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dict_of_all_args 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_dict_of_all_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Generates a dictionary from a handler paths query string and returns it :returns: Dictionary of all key/values in arguments list :rtype: dict
"Generates a dictionary from a handler paths query string and returns it\n\n :returns: Dictionary of all key/values in arguments list\n :rtype: dict"
157
false
urbn/Caesium
get_dict_of_all_args
4,570
LDU_FT/jasonrbriggs/proton/index
LDU_FT
[ "<BEGIN>\n## `get_template`", "Return a copy of the template with the specified name. If not found, or an error occurs\n during the load, return None.\n<END>", "<BEGIN>\n## `check_element`", "Given an element, check its attributes for references to the three proton attributes ('eid', 'aid' and 'rid').\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return the index position of an element in the children of a parent.
"Return the index position of an element in the children of a parent."
22
false
jasonrbriggs/proton
index
4,571
LDU_FT/ownport/scrapy-dblite/_dict_factory
LDU_FT
[ "<BEGIN>\n## `copy`", "copy items with optional fields transformation\n<END>", "<BEGIN>\n## `_dict_factory`", "factory for sqlite3 to return results as dict\n<END>", "<BEGIN>\n## `_create_table`", "create sqlite's table for storing simple dictionaries\n<END>", "<BEGIN>\n## `get`", "returns items selec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dict_factory API. 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 _dict_factory API. 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...
factory for sqlite3 to return results as dict
"factory for sqlite3 to return results as dict"
16
false
ownport/scrapy-dblite
_dict_factory
4,572