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/kennethreitz/records/get_connection
LDU_FT
[ "<BEGIN>\n## `isexception`", "Given an object, return a boolean indicating whether it is an instance\n or subclass of :py:class:`Exception`.\n<END>", "<BEGIN>\n## `_reduce_datetimes`", "Receives a row, converts datetimes to strings.\n<END>", "<BEGIN>\n## `as_dict`", "Returns the row as a dictionary, as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get a connection to this Database. Connections are retrieved from a pool.
"Get a connection to this Database. Connections are retrieved from a\n pool."
30
false
kennethreitz/records
get_connection
26,273
LDU_FT/chrippa/python-librtmp/add_signal_handler
LDU_FT
[ "<BEGIN>\n## `read`", "Attempts to read data from the stream.", " :param size: int, The maximum amount of bytes to read.", " Raises :exc:`IOError` on error.\n<END>", "<BEGIN>\n## `write`", "Writes data to the stream.", " :param data: bytes, FLV data to write to the stream", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_signal_handler 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 add_signal_handler 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...
Adds a signal handler to handle KeyboardInterrupt.
"Adds a signal handler to handle KeyboardInterrupt."
63
false
chrippa/python-librtmp
add_signal_handler
26,274
LDU_FT/CitrineInformatics/pypif/_dict_to_pio
LDU_FT
[ "<BEGIN>\n## `to_camel_case`", "Convert a string from snake case to camel case. For example, \"some_var\" would become \"someVar\".", " :param snake_case_string: Snake-cased string to convert to camel case.\n :returns: Camel-cased version of snake_case_string.\n<END>", "<BEGIN>\n## `to_capitalized_camel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dict_to_pio API. 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 _dict_to_pio API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert a single dictionary object to a Physical Information Object. :param d: Dictionary to convert. :param class_: Subclass of :class:`.Pio` to produce, if not unambiguous :return: Single object derived from :class:`.Pio`.
"Convert a single dictionary object to a Physical Information Object.\n\n :param d: Dictionary to convert.\n :param class_: Subclass of :class:`.Pio` to produce, if not unambiguous\n :return: Single object derived from :class:`.Pio`."
46
false
CitrineInformatics/pypif
_dict_to_pio
26,275
LDU_FT/posativ/isso/urlsplit
LDU_FT
[ "<BEGIN>\n## `anonymize`", "Anonymize IPv4 and IPv6 :param remote_addr: to /24 (zero'd)\n and /48 (zero'd).\n<END>", "<BEGIN>\n## `thread`", "Extract <h1> title from web page. The title is *probably* the text node,\n which is the nearest H1 node in context to an element with the `isso-thread` id.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the urlsplit API. 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 urlsplit API. 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...
Parse :param:`name` into (netloc, port, ssl)
"Parse :param:`name` into (netloc, port, ssl)"
61
false
posativ/isso
urlsplit
26,276
LDU_FT/vmonaco/pohmm/steadystate
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the classifier with labels y and observations X\n<END>", "<BEGIN>\n## `fit_df`", "Fit the classifier with labels y and DataFrames dfs\n<END>", "<BEGIN>\n## `score`", "Compute the log probability under the model.\n<END>", "<BEGIN>\n## `score_events`", "Compute the log probabil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the steadystate API. 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 steadystate API. 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...
Empirically determine the steady state probabilities from a stochastic matrix
"Empirically determine the steady state probabilities from a stochastic matrix"
33
false
vmonaco/pohmm
steadystate
26,277
LDU_FT/gmr/flatdict/as_dict
LDU_FT
[ "<BEGIN>\n## `as_dict`", "Return the :class:`~flatdict.FlatDict` as a :class:`dict`", " :rtype: dict\n<END>", "<BEGIN>\n## `keys`", "Return a copy of the flat dictionary's list of keys.\n See the note for :meth:`flatdict.FlatDict.items`.", " :rtype: list\n<END>", "<BEGIN>\n## `pop`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the :class:`~flatdict.FlatDict` as a :class:`dict` :rtype: dict
"Return the :class:`~flatdict.FlatDict` as a :class:`dict`\n\n :rtype: dict"
21
false
gmr/flatdict
as_dict
26,278
LDU_FT/DenisCarriere/geocoder/cli
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 cli API. 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 cli API. 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...
Geocode an arbitrary number of strings from Command Line.
"Geocode an arbitrary number of strings from Command Line."
32
false
DenisCarriere/geocoder
cli
26,279
LDU_FT/rq/Flask-RQ2/cron
LDU_FT
[ "<BEGIN>\n## `shared_options`", "Default class options to pass to the CLI commands.\n<END>", "<BEGIN>\n## `queue`", "A function to queue a RQ job, e.g.::", " @rq.job(timeout=60)\n def add(x, y):\n return x + y", " add.queue(1, 2, timeout=30)", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cron API. 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 cron API. 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...
A function to setup a RQ job as a cronjob:: @rq.job('low', timeout=60) def add(x, y): return x + y add.cron('* * * * *', 'add-some-numbers', 1, 2, timeout=10) :param \\*args: The positional arguments to pass to the queued job. :param \\*\\*kwargs: ...
"A function to setup a RQ job as a cronjob::\n\n @rq.job('low', timeout=60)\n def add(x, y):\n return x + y\n\n add.cron('* * * * *', 'add-some-numbers', 1, 2, timeout=10)\n\n :param \\\\*args: The positional arguments to pass to the queued job.\n\n :param \...
80
false
rq/Flask-RQ2
cron
26,280
LDU_FT/martinkosir/neverbounce-python/create_job
LDU_FT
[ "<BEGIN>\n## `verify`", "Verify a single email address.\n :param str email: Email address to verify.\n :return: A VerifiedEmail object.\n<END>", "<BEGIN>\n## `create_job`", "Create a new bulk verification job for the list of emails.\n :param list emails: Email addresses to verify.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_job API. 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 create_job API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Create a new bulk verification job for the list of emails. :param list emails: Email addresses to verify. :return: A Job object.
"Create a new bulk verification job for the list of emails.\n :param list emails: Email addresses to verify.\n :return: A Job object."
22
false
martinkosir/neverbounce-python
create_job
26,281
LDU_FT/LuminosoInsight/python-ftfy/_buffer_decode_step
LDU_FT
[ "<BEGIN>\n## `fix_encoding_and_explain`", "Re-decodes text that has been decoded incorrectly, and also return a\n \"plan\" indicating all the steps required to fix it.", " The resulting plan could be used with :func:`ftfy.fixes.apply_plan`\n to fix additional strings that are broken in the same way.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _buffer_decode_step API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _buffer_decode_step API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
There are three possibilities for each decoding step: - Decode as much real UTF-8 as possible. - Decode a six-byte CESU-8 sequence at the current position. - Decode a Java-style null at the current position. This method figures out which step is appropriate, and does it.
"There are three possibilities for each decoding step:\n\n - Decode as much real UTF-8 as possible.\n - Decode a six-byte CESU-8 sequence at the current position.\n - Decode a Java-style null at the current position.\n\n This method figures out which step is appropriate, and does it."
123
false
LuminosoInsight/python-ftfy
_buffer_decode_step
26,282
LDU_FT/scott-griffiths/bitstring/_readbytes
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 _readbytes API. 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 _readbytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Read bytes and return them. Note that length is in bits.
"Read bytes and return them. Note that length is in bits."
251
false
scott-griffiths/bitstring
_readbytes
26,283
LDU_FT/cuihantao/andes/var_define
LDU_FT
[ "<BEGIN>\n## `check`", "Check config data consistency", " Returns\n -------\n<END>", "<BEGIN>\n## `read`", "Read a dm format file and elem_add to system\n<END>", "<BEGIN>\n## `register_element`", "Register a device element to the group list", " Parameters\n ----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the var_define API. 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 var_define API. 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...
Define a variable in the model :param fname: LaTex formatted variable name string :param uname: unformatted variable name string, `variable` as default :param variable: variable name :param ty: type code in ``('x', 'y')`` :param descr: variable description :type variabl...
"Define a variable in the model\n\n :param fname: LaTex formatted variable name string\n :param uname: unformatted variable name string, `variable` as default\n :param variable: variable name\n :param ty: type code in ``('x', 'y')``\n :param descr: variable description\n\n :typ...
614
false
cuihantao/andes
var_define
26,284
LDU_FT/sublee/etc/erred
LDU_FT
[ "<BEGIN>\n## `registry`", "Generates a meta class to index sub classes by their keys.\n<END>", "<BEGIN>\n## `refresh`", "Sets only a TTL of a key. The waiters doesn't receive notification\n by this operation.\n<END>", "<BEGIN>\n## `append`", "Creates a new automatically increasing key in the given...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the erred API. 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 erred API. 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...
Wraps errors. Call it in `except` clause:: try: do_something() except: self.erred()
"Wraps errors. Call it in `except` clause::\n\n try:\n do_something()\n except:\n self.erred()"
24
false
sublee/etc
erred
26,285
LDU_FT/BlueBrain/nat/reference_extra_field
LDU_FT
[ "<BEGIN>\n## `check_ocrmypdf`", "Run ocrmypdf and confirmed that a valid file was created\n<END>", "<BEGIN>\n## `run_ocrmypdf`", "Run ocrmypdf and let caller deal with results\n<END>", "<BEGIN>\n## `getParamValues`", "Return the rows of sampleDF that are associated to the parameter\n specified in p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reference_extra_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reference_extra_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return the value of the field in 'extra', otherwise ''.
"Return the value of the field in 'extra', otherwise ''."
56
false
BlueBrain/nat
reference_extra_field
26,286
LDU_FT/insomnia-lab/libreant/get_def_conf
LDU_FT
[ "<BEGIN>\n## `get_def_conf`", "return default configurations as simple dict\n<END>", "<BEGIN>\n## `_load_paths`", "Goes recursevly through the given list of paths\n in order to find and pass all preset files to ```_load_preset()```\n<END>", "<BEGIN>\n## `_load_preset`", "load, validate and store a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_def_conf API. 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_def_conf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
return default configurations as simple dict
"return default configurations as simple dict"
150
false
insomnia-lab/libreant
get_def_conf
26,287
LDU_FT/usc-isi-i2/etk/process_document
LDU_FT
[ "<BEGIN>\n## `decode_unicode`", "Process of parsing:\n -> Convert unicode into standard form\n -> Convert each character of the unicode symbol to its numerical equivalent\n -> Mapping Process:\n - First check in pattern dictionary to map suffix/prefix\n - Check Emoticon Dictionary \n - Replace valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_document API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_document API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add your code for processing the document
"Add your code for processing the document"
427
false
usc-isi-i2/etk
process_document
26,288
LDU_FT/SiLab-Bonn/basil/set_current_limit
LDU_FT
[ "<BEGIN>\n## `write`", "Write to dummy memory", " Parameters\n ----------\n addr : int\n The register address.\n data : list, tuple\n Data (byte array) to be written.", " Returns\n -------\n nothing\n<END>", "<BEGIN>\n## `read`", "Para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_current_limit API. 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_current_limit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Setting current limit Note: same limit for all channels.
"Setting current limit\n\n Note: same limit for all channels."
147
false
SiLab-Bonn/basil
set_current_limit
26,289
LDU_FT/pystorm/pystorm/emit
LDU_FT
[ "<BEGIN>\n## `emit`", "Emit a spout Tuple message.", " :param tup: the Tuple to send to Storm, should contain only\n JSON-serializable data.\n :type tup: list or tuple\n :param tup_id: the ID for the Tuple. Leave this blank for an\n unreliable emit.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit API. 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 emit API. 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...
Emit a record. If a formatter is specified, it is used to format the record. If exception information is present, it is formatted using traceback.print_exception and sent to Storm.
"Emit a record.\n\n If a formatter is specified, it is used to format the record.\n If exception information is present, it is formatted using\n traceback.print_exception and sent to Storm."
103
false
pystorm/pystorm
emit
26,290
LDU_FT/Kraymer/high/coerce_file
LDU_FT
[ "<BEGIN>\n## `coerce_file`", "Coerce file content to something useful for setuptools.setup(), turn :\n .py into mock object by extracting __special__ attributes values\n .md into rst text. Remove images with \"[nopypi\" alt text and emojis\n :url: https://github.com/Kraymer/setupgoon\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coerce_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coerce_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 extra...
Coerce file content to something useful for setuptools.setup(), turn : .py into mock object by extracting __special__ attributes values .md into rst text. Remove images with "[nopypi" alt text and emojis :url: https://github.com/Kraymer/setupgoon
"Coerce file content to something useful for setuptools.setup(), turn :\n .py into mock object by extracting __special__ attributes values\n .md into rst text. Remove images with \"[nopypi\" alt text and emojis\n :url: https://github.com/Kraymer/setupgoon"
10
false
Kraymer/high
coerce_file
26,291
LDU_FT/libyal/dtfabric/FoldValue
LDU_FT
[ "<BEGIN>\n## `Main`", "The main program function.", " Returns:\n bool: True if successful or False if not.\n<END>", "<BEGIN>\n## `CheckDirectory`", "Validates definition files in a directory.", " Args:\n path (str): path of the definition file.\n extension (Optional[str]): extension of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FoldValue API. 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 FoldValue API. 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...
Folds the data type into a value. Args: value (object): value. Returns: object: folded value. Raises: ValueError: if the data type definition cannot be folded into the value.
"Folds the data type into a value.\n\n Args:\n value (object): value.\n\n Returns:\n object: folded value.\n\n Raises:\n ValueError: if the data type definition cannot be folded into the value."
373
false
libyal/dtfabric
FoldValue
26,292
LDU_FT/jaraco/irc/disconnect
LDU_FT
[ "<BEGIN>\n## `handle_nick`", "Handle the initial setting of the user's nickname and nick changes.\n<END>", "<BEGIN>\n## `handle_user`", "Handle the USER command which identifies the user to the server.\n<END>", "<BEGIN>\n## `handle_join`", "Handle the JOINing of a user to a channel. Valid channel names st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Hang up the connection. Arguments: message -- Quit message.
"Hang up the connection.\n\n Arguments:\n message -- Quit message."
193
false
jaraco/irc
disconnect
26,293
LDU_FT/latture/json2table/_markup
LDU_FT
[ "<BEGIN>\n## `convert`", "Converts JSON to HTML Table format.", " Parameters\n ----------\n json_input : dict\n JSON object to convert into HTML.\n build_direction : {\"TOP_TO_BOTTOM\", \"LEFT_TO_RIGHT\"}\n String denoting the build direction of the table. If ``\"TOP_TO_BOTTOM\"`` chil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _markup API. 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 _markup API. 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...
Recursively generates HTML for the current entry. Parameters ---------- entry : object Object to convert to HTML. Maybe be a single entity or contain multiple and/or nested objects. Returns ------- str String of HTML formatted json.
"Recursively generates HTML for the current entry.\n\n Parameters\n ----------\n entry : object\n Object to convert to HTML. Maybe be a single entity or contain multiple and/or nested objects.\n\n Returns\n -------\n str\n String of HTML formatted json."
31
false
latture/json2table
_markup
26,294
LDU_FT/m-weigand/sip_models/response
LDU_FT
[ "<BEGIN>\n## `_set_parameters`", "Sort out the various possible parameter inputs and return a config\n object (dict)", " We have multiple input formats:", " 1) a list, tuple, or numpy.ndarray, containing the linear parameters\n in the following order:\n * for single term: rh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
r"""Complex response of the Cole-Cole model:: :math:`\hat{\rho} = \rho_0 \left(1 - \sum_i m_i (1 - \frac{1}{1 + (j \omega \tau_i)^c_i})\right)` Parameters ---------- parameters: list or tuple or numpy.ndarray Cole-Cole model parameters: rho0, m, tau, c (all linear) ...
"r\"\"\"Complex response of the Cole-Cole model::\n :math:`\\hat{\\rho} = \\rho_0 \\left(1 - \\sum_i m_i (1 - \\frac{1}{1 + (j\n \\omega \\tau_i)^c_i})\\right)`\n\n Parameters\n ----------\n parameters: list or tuple or numpy.ndarray\n Cole-Cole model parameters: rho0, m, t...
40
false
m-weigand/sip_models
response
26,295
LDU_FT/Bystroushaak/zeo_connector/_open_connection
LDU_FT
[ "<BEGIN>\n## `_get_db`", "Open the connection to the database based on the configuration file.\n<END>", "<BEGIN>\n## `transaction_manager`", "Decorator which wraps whole function into ``with transaction.manager:``.\n<END>", "<BEGIN>\n## `retry_and_reset`", "Decorator used to make sure, that operation on Z...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _open_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _open_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Open the connection to the database based on the configuration file.
"Open the connection to the database based on the configuration file."
11
false
Bystroushaak/zeo_connector
_open_connection
26,296
LDU_FT/ajslater/picopt/_get_format_module
LDU_FT
[ "<BEGIN>\n## `_get_timestamp`", "Get the timestamp from the timestamp file.", " Optionally mark it for removal if we're going to write another one.\n<END>", "<BEGIN>\n## `_get_timestamp_cached`", "Get the timestamp from the cache or fill the cache\n Much quicker than reading the same files over and ov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_format_module API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_format_module 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...
Get the format module to use for optimizing the image.
"Get the format module to use for optimizing the image."
86
false
ajslater/picopt
_get_format_module
26,297
LDU_FT/openstack/networking-arista/get_vlan_assignment_uuid
LDU_FT
[ "<BEGIN>\n## `synchronize`", "Synchronizes Router DB from Neturon DB with EOS.", " Walks through the Neturon Db and ensures that all the routers\n created in Netuton DB match with EOS. After creating appropriate\n routers, it ensures to add interfaces as well.\n Uses idempotent prope...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vlan_assignment_uuid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vlan_assignment_uuid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns the UUID for the region's vlan assignment on CVX :returns: string containing the region's vlan assignment UUID
"Returns the UUID for the region's vlan assignment on CVX\n\n :returns: string containing the region's vlan assignment UUID"
213
false
openstack/networking-arista
get_vlan_assignment_uuid
26,298
LDU_FT/72squared/redpipe/zrevrank
LDU_FT
[ "<BEGIN>\n## `connect_redis`", "Connect your redis-py instance to redpipe.", " Example:", " .. code:: python", " redpipe.connect_redis(redis.StrictRedis(), name='users')", " Do this during your application bootstrapping.", " You can also pass a redis-py-cluster instance to this method...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zrevrank API. 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 zrevrank API. 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 ranking in reverse order for the member :param name: str the name of the redis key :param member: str
"Returns the ranking in reverse order for the member\n\n :param name: str the name of the redis key\n :param member: str"
376
false
72squared/redpipe
zrevrank
26,299
LDU_FT/kejbaly2/metrique/json_encode_default
LDU_FT
[ "<BEGIN>\n## `filtered`", "Decorator function that wraps functions returning pandas\n dataframes, such that the dataframe is filtered\n according to left and right bounds set.\n<END>", "<BEGIN>\n## `to_datetime`", "This function converts epoch timestamps to datetimes.", " :param column: column ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_encode_default 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 json_encode_default 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...
Convert datetime.datetime to timestamp :param obj: value to (possibly) convert
"Convert datetime.datetime to timestamp\n\n :param obj: value to (possibly) convert"
224
false
kejbaly2/metrique
json_encode_default
26,300
LDU_FT/inveniosoftware/invenio-webhooks/check_x_hub_signature
LDU_FT
[ "<BEGIN>\n## `get_hmac`", "Calculate HMAC value of message using ``WEBHOOKS_SECRET_KEY``.", " :param message: String to calculate HMAC for.\n<END>", "<BEGIN>\n## `check_x_hub_signature`", "Check X-Hub-Signature used by GitHub to sign requests.", " :param signature: HMAC signature extracted from requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_x_hub_signature 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_x_hub_signature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Check X-Hub-Signature used by GitHub to sign requests. :param signature: HMAC signature extracted from request. :param message: Request message.
"Check X-Hub-Signature used by GitHub to sign requests.\n\n :param signature: HMAC signature extracted from request.\n :param message: Request message."
17
false
inveniosoftware/invenio-webhooks
check_x_hub_signature
26,301
LDU_FT/pzs741/TEDT/wordvector
LDU_FT
[ "<BEGIN>\n## `get_url`", "获取url地址并根据网页编码格式自动解析", " Keyword arguments:\n url -- 用户传入地址,头部必须含有http://\n Return:\n 网页源代码(为了下一步预处理方便,所有英文字母转换为小写)\n 网页编解码\n<END>", "<BEGIN>\n## `html_clean`", "获取网页源代码并进行预处理", " Keyword arguments:\n html_code -- 网页源代码,字符...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wordvector API. 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 wordvector API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
获取所有单词和权重。 Return: result --单词权重集合
"获取所有单词和权重。\n\n Return:\n result --单词权重集合"
91
false
pzs741/TEDT
wordvector
26,302
LDU_FT/etgalloway/newtabmagic/_remove_builtin_prefix
LDU_FT
[ "<BEGIN>\n## `_get_object_pydoc_page_name`", "Returns fully qualified name, including module name, except for the\n built-in module.\n<END>", "<BEGIN>\n## `_remove_builtin_prefix`", "Strip name of builtin module from start of name.\n<END>", "<BEGIN>\n## `_get_user_ns_object`", "Get object from the user...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_builtin_prefix 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 _remove_builtin_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Strip name of builtin module from start of name.
"Strip name of builtin module from start of name."
16
false
etgalloway/newtabmagic
_remove_builtin_prefix
26,303
LDU_FT/Damgaard/PyImgur/send_message
LDU_FT
[ "<BEGIN>\n## `convert_general`", "Take a python object and convert it to the format Imgur expects.\n<END>", "<BEGIN>\n## `to_imgur_format`", "Convert the parameters to the format Imgur expects.\n<END>", "<BEGIN>\n## `_get_album_or_image`", "Return a gallery image/album depending on what the json represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
Send a message to this user from the logged in user. :param body: The body of the message. :param subject: The subject of the message. Note that if the this message is a reply, then the subject of the first message will be used instead. :param reply_to: Messages can eith...
"Send a message to this user from the logged in user.\n\n :param body: The body of the message.\n :param subject: The subject of the message. Note that if the this\n message is a reply, then the subject of the first message will be\n used instead.\n :param reply_to: Messages c...
139
false
Damgaard/PyImgur
send_message
26,304
LDU_FT/rackerlabs/fleece/trace_xray_subsegment
LDU_FT
[ "<BEGIN>\n## `build_wsgi_environ_from_event`", "Create a WSGI environment from the proxy integration event.\n<END>", "<BEGIN>\n## `wsgi_handler`", "lambda handler function.\n This function runs the WSGI app with it and collects its response, then\n translates the response back into the format expected b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trace_xray_subsegment 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 trace_xray_subsegment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Can be applied to any function or method to be traced by X-Ray. If `skip_args` is True, the arguments of the function won't be sent to X-Ray.
"Can be applied to any function or method to be traced by X-Ray.\n\n If `skip_args` is True, the arguments of the function won't be sent to\n X-Ray."
108
false
rackerlabs/fleece
trace_xray_subsegment
26,305
LDU_FT/viniciuschiele/flask-apscheduler/modify_job
LDU_FT
[ "<BEGIN>\n## `pop_trigger`", "Pops trigger and trigger args from a given dict.\n<END>", "<BEGIN>\n## `fix_job_def`", "Replaces the datetime in string by datetime object.\n<END>", "<BEGIN>\n## `init_app`", "Initialize the APScheduler with a Flask application instance.\n<END>", "<BEGIN>\n## `start`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_job API. 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 modify_job API. 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...
Modify the properties of a single job. Modifications are passed to this method as extra keyword arguments. :param str id: the identifier of the job :param str jobstore: alias of the job store that contains the job
"Modify the properties of a single job. Modifications are passed to this method as extra keyword arguments.\n\n :param str id: the identifier of the job\n :param str jobstore: alias of the job store that contains the job"
37
false
viniciuschiele/flask-apscheduler
modify_job
26,306
LDU_FT/aio-libs/aioredis/lset
LDU_FT
[ "<BEGIN>\n## `create_sentinel`", "Creates Redis Sentinel client.", " `sentinels` is a list of sentinel nodes.\n<END>", "<BEGIN>\n## `execute`", "Execute Sentinel command.", " It will be prefixed with SENTINEL automatically.\n<END>", "<BEGIN>\n## `master`", "Returns a dictionary containing th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lset API. 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 lset API. 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...
Sets the list element at index to value. :raises TypeError: if index is not int
"Sets the list element at index to value.\n\n :raises TypeError: if index is not int"
496
false
aio-libs/aioredis
lset
26,307
LDU_FT/gunthercox/mathparse/parse
LDU_FT
[ "<BEGIN>\n## `is_symbol`", "Return true if the string is a mathematical symbol.\n<END>", "<BEGIN>\n## `find_word_groups`", "Find matches for words in the format \"3 thousand 6 hundred 2\".\n The words parameter should be the list of words to check for\n such as \"hundred\".\n<END>", "<BEGIN>\n## `repl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return a solution to the equation in the input string.
"Return a solution to the equation in the input string."
20
false
gunthercox/mathparse
parse
26,308
LDU_FT/peterjc/backports.lzma/write
LDU_FT
[ "<BEGIN>\n## `open`", "Open an LZMA-compressed file in binary or text mode.", " filename can be either an actual file name (given as a str or bytes object),\n in which case the named file is opened, or it can be an existing file object\n to read from or write to.", " The mode argument can be \"r\"...
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...
Write a bytes object to the file. Returns the number of uncompressed bytes written, which is always len(data). Note that due to buffering, the file on disk may not reflect the data written until close() is called.
"Write a bytes object to the file.\n\n Returns the number of uncompressed bytes written, which is\n always len(data). Note that due to buffering, the file on disk\n may not reflect the data written until close() is called."
36
false
peterjc/backports.lzma
write
26,309
LDU_FT/The-Politico/politico-civic-election-night/get_queryset
LDU_FT
[ "<BEGIN>\n## `get_images`", "Object of images serialized by tag name.\n<END>", "<BEGIN>\n## `get_override_votes`", "Votes entered into backend.\n Only used if ``override_ap_votes = True``.\n<END>", "<BEGIN>\n## `get_queryset`", "Returns a queryset of all executive offices holding an election on\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset API. 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_queryset API. 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...
Returns a queryset of all states holding a non-special election on a date.
"Returns a queryset of all states holding a non-special election on\n a date."
62
false
The-Politico/politico-civic-election-night
get_queryset
26,310
LDU_FT/metglobal/django-exchange/convert
LDU_FT
[ "<BEGIN>\n## `update`", "Actual update process goes here using auxialary ``get_currencies``\n and ``get_exchangerates`` methods. This method creates or updates\n corresponding ``Currency`` and ``ExchangeRate`` models\n<END>", "<BEGIN>\n## `convert_values`", "convert_value in bulk.", " :para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. 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 convert API. 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...
Shorthand function converts a price object instance of a source currency to target currency :param price: the price value :param type: decimal :param currency: target ISO-4217 currency code :param type: str :returns: converted price instance :rtype: ``Price``
"Shorthand function converts a price object instance of a source\n currency to target currency\n\n :param price: the price value\n :param type: decimal\n\n :param currency: target ISO-4217 currency code\n :param type: str\n\n :returns: converted price instance\n :rtype: ``Price``"
31
false
metglobal/django-exchange
convert
26,311
LDU_FT/chrisjsewell/jsonextended/load_plugins_dir
LDU_FT
[ "<BEGIN>\n## `apply_unitschema`", "apply the unit schema to the data", " Parameters\n ----------\n data : dict\n uschema : dict\n units schema to apply\n as_quantity : bool\n if true, return values as pint.Quantity objects\n raise_outerr : bool\n raise error if a unit cann...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_plugins_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_plugins_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 ...
load plugins from a directory Parameters ---------- path : str or path_like category : None or str if str, apply for single plugin category overwrite : bool if True, allow existing plugins to be overwritten
"load plugins from a directory\n\n Parameters\n ----------\n path : str or path_like\n category : None or str\n if str, apply for single plugin category\n overwrite : bool\n if True, allow existing plugins to be overwritten"
347
false
chrisjsewell/jsonextended
load_plugins_dir
26,312
LDU_FT/sv0/django-markdown-app/markdown
LDU_FT
[ "<BEGIN>\n## `markdown`", "Render markdown over a given value, optionally using varios extensions.", " Default extensions could be defined which MARKDOWN_EXTENSIONS option.", " :returns: A rendered markdown\n<END>", "<BEGIN>\n## `editor_js_initialization`", "Return script tag with initialization cod...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the markdown API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the markdown API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Render markdown over a given value, optionally using varios extensions. Default extensions could be defined which MARKDOWN_EXTENSIONS option. Syntax: :: {{value|markdown}} {{value|markdown:"tables,codehilite"}} :returns: A rendered markdown
"Render markdown over a given value, optionally using varios extensions.\n\n Default extensions could be defined which MARKDOWN_EXTENSIONS option.\n\n Syntax: ::\n\n {{value|markdown}}\n\n {{value|markdown:\"tables,codehilite\"}}\n\n :returns: A rendered markdown"
37
false
sv0/django-markdown-app
markdown
26,313
LDU_FT/tomer8007/kik-bot-api-unofficial/add_peer_to_group
LDU_FT
[ "<BEGIN>\n## `_connect`", "Runs the kik connection thread, which creates an encrypted (SSL based) TCP connection\n to the kik servers.\n<END>", "<BEGIN>\n## `_on_connection_made`", "Gets called when the TCP connection to kik's servers is done and we are connected.\n Now we might initiate a login...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_peer_to_group API. 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 add_peer_to_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Adds someone to a group :param group_jid: The JID of the group into which to add a user :param peer_jid: The JID of the user to add
"Adds someone to a group\n\n :param group_jid: The JID of the group into which to add a user\n :param peer_jid: The JID of the user to add"
96
false
tomer8007/kik-bot-api-unofficial
add_peer_to_group
26,314
LDU_FT/skelsec/minikerberos/add_tgs
LDU_FT
[ "<BEGIN>\n## `to_tgt`", "Returns the native format of an AS_REP message and the sessionkey in EncryptionKey native format\n<END>", "<BEGIN>\n## `add_tgt`", "Creates credential object from the TGT and adds to the ccache file\n\t\tThe TGT is basically the native representation of the asn1 encoded AS_REP data th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_tgs API. 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 add_tgs API. 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 credential object from the TGS and adds to the ccache file The TGS is the native representation of the asn1 encoded TGS_REP data when the user requests a tgs to a specific service principal with a valid TGT This function doesn't do decryption of the encrypted part of the tgs_rep object, it is expected th...
"Creates credential object from the TGS and adds to the ccache file\n\t\tThe TGS is the native representation of the asn1 encoded TGS_REP data when the user requests a tgs to a specific service principal with a valid TGT\n\t\t\n\t\tThis function doesn't do decryption of the encrypted part of the tgs_rep object, it is e...
50
false
skelsec/minikerberos
add_tgs
26,315
LDU_FT/bear/parsedatetime/_evalMeridian
LDU_FT
[ "<BEGIN>\n## `_parse_date_rfc822`", "Parse an RFC822, RFC1123, RFC2822, or asctime-style date\n<END>", "<BEGIN>\n## `_initSymbols`", "Initialize symbols and single character constants.\n<END>", "<BEGIN>\n## `_convertUnitAsWords`", "Converts text units into their number value.", " @type unitText:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _evalMeridian API. 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 _evalMeridian API. 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...
Evaluate text passed by L{_partialParseMeridian()}
"Evaluate text passed by L{_partialParseMeridian()}"
131
false
bear/parsedatetime
_evalMeridian
26,316
LDU_FT/PierreRust/apigpio/set_glitch_filter
LDU_FT
[ "<BEGIN>\n## `u2i`", "Converts a 32 bit unsigned number to signed.", " uint32:= an unsigned 32 bit number", " ...\n print(u2i(4294967272))\n -24\n print(u2i(37))\n 37\n ...\n<END>", "<BEGIN>\n## `_u2i`", "Converts a 32 bit unsigned number to signed. If the number\n is negative it ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_glitch_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_glitch_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Sets a glitch filter on a GPIO. Level changes on the GPIO are not reported unless the level has been stable for at least [*steady*] microseconds. The level is then reported. Level changes of less than [*steady*] microseconds are ignored. user_gpio:= 0-31 steady:= 0-3...
"Sets a glitch filter on a GPIO.\n Level changes on the GPIO are not reported unless the level\n has been stable for at least [*steady*] microseconds. The\n level is then reported. Level changes of less than [*steady*]\n microseconds are ignored.\n user_gpio:= 0-31\n stead...
102
false
PierreRust/apigpio
set_glitch_filter
26,317
LDU_FT/tomduck/pandoc-xnos/process_refs_factory
LDU_FT
[ "<BEGIN>\n## `_repeat`", "Repeats func(...) call until something other than None is returned.\n<END>", "<BEGIN>\n## `init`", "Sets or determines the pandoc version. This must be called.", " The pandoc version is needed for multi-version support.\n See: https://github.com/jgm/pandoc/issues/2640", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_refs_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_refs_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. ...
Returns process_refs(key, value, fmt, meta) action that processes text around a reference. Only references with labels found in the 'labels' list are processed. Consider the markdown "{+@fig:1}", which represents a reference to a figure. "@" denotes a reference, "fig:1" is the reference's label, and ...
"Returns process_refs(key, value, fmt, meta) action that processes\n text around a reference. Only references with labels found in the\n 'labels' list are processed.\n\n Consider the markdown \"{+@fig:1}\", which represents a reference to a\n figure. \"@\" denotes a reference, \"fig:1\" is the reference's ...
63
false
tomduck/pandoc-xnos
process_refs_factory
26,318
LDU_FT/ornlneutronimaging/ImagingReso/calculate_trans
LDU_FT
[ "<BEGIN>\n## `add_layer`", "provide another way to define the layers (stack)", " Parameters:\n ===========\n formula: string\n ex: 'CoAg2'\n ex: 'Al'\n thickness: float (in mm)\n density: float (g/cm3)\n<END>", "<BEGIN>\n## `get_isotopic_ratio`", "retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_trans API. 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 calculate_trans API. 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...
calculate the transmission signal using the formula transmission = exp( - thickness_cm * atoms_per_cm3 * 1e-24 * sigma_b) Parameters: =========== thickness: float (in cm) atoms_per_cm3: float (number of atoms per cm3 of element/isotope) sigma_b: np.array of sigma retrieved from database R...
"calculate the transmission signal using the formula\n\n transmission = exp( - thickness_cm * atoms_per_cm3 * 1e-24 * sigma_b)\n\n Parameters:\n ===========\n thickness: float (in cm)\n atoms_per_cm3: float (number of atoms per cm3 of element/isotope)\n sigma_b: np.array of sigma retrieved from databa...
114
false
ornlneutronimaging/ImagingReso
calculate_trans
26,319
LDU_FT/VasilyStepanov/pywidl/p_Typedef
LDU_FT
[ "<BEGIN>\n## `p_Interface`", "Interface : interface IDENTIFIER Inheritance \"{\" InterfaceMembers \"}\" \";\"\n<END>", "<BEGIN>\n## `p_Dictionary`", "Dictionary : dictionary IDENTIFIER Inheritance \"{\" DictionaryMembers \"}\" \";\"\n<END>", "<BEGIN>\n## `p_DictionaryMember`", "DictionaryMember : Type IDE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_Typedef API. 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 p_Typedef API. 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...
Typedef : typedef ExtendedAttributeList Type IDENTIFIER ";"
"Typedef : typedef ExtendedAttributeList Type IDENTIFIER \";\""
34
false
VasilyStepanov/pywidl
p_Typedef
26,320
LDU_FT/dsoprea/PySecure/recurse
LDU_FT
[ "<BEGIN>\n## `recurse`", "Recursively iterate a directory. Invoke callbacks for directories \n and entries (both are optional, but it doesn't make sense unless one is \n provided). \"max_listing_size\" will allow for the file-listing to be \n chunked into manageable pieces. \"max_depth\" limi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recurse API. 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 recurse API. 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...
Recursively iterate a directory. Invoke callbacks for directories and entries (both are optional, but it doesn't make sense unless one is provided). "max_listing_size" will allow for the file-listing to be chunked into manageable pieces. "max_depth" limited how deep recursion goes. T...
"Recursively iterate a directory. Invoke callbacks for directories \n and entries (both are optional, but it doesn't make sense unless one is \n provided). \"max_listing_size\" will allow for the file-listing to be \n chunked into manageable pieces. \"max_depth\" limited how deep recursion \n ...
35
false
dsoprea/PySecure
recurse
26,321
LDU_FT/eternnoir/pyTelegramBotAPI/_check_result
LDU_FT
[ "<BEGIN>\n## `split_string`", "Splits one string into multiple strings, with a maximum amount of `chars_per_string` characters per string.\n This is very useful for splitting one giant message into multiples.", " :param text: The text to split\n :param chars_per_string: The number of characters per lin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_result API. 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...
Checks whether `result` is a valid API response. A result is considered invalid if: - The server returned an HTTP response code other than 200 - The content of the result is invalid JSON. - The method call was unsuccessful (The JSON 'ok' field equals False) :raises ApiException: if one ...
"Checks whether `result` is a valid API response.\n A result is considered invalid if:\n - The server returned an HTTP response code other than 200\n - The content of the result is invalid JSON.\n - The method call was unsuccessful (The JSON 'ok' field equals False)\n\n :raises ApiException: ...
187
false
eternnoir/pyTelegramBotAPI
_check_result
26,322
LDU_FT/MaT1g3R/option/unwrap_or_else
LDU_FT
[ "<BEGIN>\n## `maybe`", "Shortcut method to return ``Some`` or :py:data:`NONE` based on ``val``.", " Args:\n val: Some value.", " Returns:\n ``Some(val)`` if the ``val`` is not None, otherwise :py:data:`NONE`.", " Examples:\n >>> Option.maybe(0)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unwrap_or_else API. 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 unwrap_or_else API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns the contained value or computes it from ``callback``. Args: callback: The the default callback. Returns: The contained value if the :py:class:`Option` is ``Some``, otherwise ``callback()``. Examples: >>> Some(0).unwrap_or_else(lambda: 11...
"Returns the contained value or computes it from ``callback``.\n\n Args:\n callback: The the default callback.\n\n Returns:\n The contained value if the :py:class:`Option` is ``Some``,\n otherwise ``callback()``.\n\n Examples:\n >>> Some(0).unwrap_or_else...
107
false
MaT1g3R/option
unwrap_or_else
26,323
LDU_FT/icometrix/dicom2nifti/_decompress_dicom
LDU_FT
[ "<BEGIN>\n## `_get_gdcmconv`", "Get the full path to gdcmconv.\n If not found raise error\n<END>", "<BEGIN>\n## `compress_directory`", "This function can be used to convert a folder of jpeg compressed images to an uncompressed ones", " :param dicom_directory: directory of dicom files to compress\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decompress_dicom API. 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 _decompress_dicom API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This function can be used to convert a jpeg compressed image to an uncompressed one for further conversion :param input_file: single dicom file to decompress
"This function can be used to convert a jpeg compressed image to an uncompressed one for further conversion\n\n :param input_file: single dicom file to decompress"
243
false
icometrix/dicom2nifti
_decompress_dicom
26,324
LDU_FT/TeamHG-Memex/eli5/_parent_value
LDU_FT
[ "<BEGIN>\n## `explain_weights_lightning`", "Return an explanation of a lightning estimator weights\n<END>", "<BEGIN>\n## `explain_prediction_lightning`", "Return an explanation of a lightning estimator predictions\n<END>", "<BEGIN>\n## `format_as_html`", "Format explanation as html.\n Most styles are i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parent_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parent_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 ext...
Value of the parent node: a weighted sum of child values.
"Value of the parent node: a weighted sum of child values."
391
false
TeamHG-Memex/eli5
_parent_value
26,325
LDU_FT/inveniosoftware/invenio-oaiserver/oaiid_fetcher
LDU_FT
[ "<BEGIN>\n## `_schema_from_verb`", "Return an instance of schema for given verb.\n<END>", "<BEGIN>\n## `load`", "Deserialize a data structure to an object.\n<END>", "<BEGIN>\n## `make_request_validator`", "Validate arguments in incomming request.\n<END>", "<BEGIN>\n## `from_iso_permissive`", "Parse an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the oaiid_fetcher API. 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 oaiid_fetcher API. 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...
Fetch a record's identifier. :param record_uuid: The record UUID. :param data: The record data. :returns: A :class:`invenio_pidstore.fetchers.FetchedPID` instance.
"Fetch a record's identifier.\n\n :param record_uuid: The record UUID.\n :param data: The record data.\n :returns: A :class:`invenio_pidstore.fetchers.FetchedPID` instance."
78
false
inveniosoftware/invenio-oaiserver
oaiid_fetcher
26,326
LDU_FT/mozilla/amo-validator/get_triples
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode data employing some charset detection and including unicode BOM\n stripping.\n<END>", "<BEGIN>\n## `get_context`", "Returns a tuple containing the context for a line\n<END>", "<BEGIN>\n## `_format_line`", "Formats a line from the data to be the appropriate length\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_triples API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_triples API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns triples that correspond to the specified subject, predicates, and objects.
"Returns triples that correspond to the specified subject,\n predicates, and objects."
94
false
mozilla/amo-validator
get_triples
26,327
LDU_FT/brutus/wdiffhtml/get_context
LDU_FT
[ "<BEGIN>\n## `load_from_resource`", "Returns the contents of a file resource.", " If the resource exists in the users data directory, it is used instead\n of the default resource.\n<END>", "<BEGIN>\n## `wdiff`", "Returns the results of `wdiff` in a HTML compatible format.", " Needs a :cls:`settings.Set...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a context from the namespace *args* (command line arguments).
"Returns a context from the namespace *args* (command line arguments)."
42
false
brutus/wdiffhtml
get_context
26,328
LDU_FT/galaxyproject/pulsar/__process_action
LDU_FT
[ "<BEGIN>\n## `__posix_to_local_path`", "Converts a posix path (coming from Galaxy), to a local path (be it posix or Windows).", " >>> import ntpath\n >>> __posix_to_local_path('dataset_1_files/moo/cow', local_path_module=ntpath)\n 'dataset_1_files\\\\\\\\moo\\\\\\\\cow'\n >>> import posixpath\n >...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __process_action API. 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 __process_action API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Extension point to populate extra action information after an action has been created.
"Extension point to populate extra action information after an\n action has been created."
142
false
galaxyproject/pulsar
__process_action
26,329
LDU_FT/nosegae/NoseGAE/_init_taskqueue_stub
LDU_FT
[ "<BEGIN>\n## `_init_taskqueue_stub`", "Initializes the taskqueue stub using nosegae config magic\n<END>", "<BEGIN>\n## `_init_datastore_v3_stub`", "Initializes the datastore stub using nosegae config magic\n<END>", "<BEGIN>\n## `_init_user_stub`", "Initializes the user stub using nosegae config magic\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_taskqueue_stub 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 _init_taskqueue_stub API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Initializes the taskqueue stub using nosegae config magic
"Initializes the taskqueue stub using nosegae config magic"
25
false
nosegae/NoseGAE
_init_taskqueue_stub
26,330
LDU_FT/django-danceschool/django-danceschool/updateRegistrationStatus
LDU_FT
[ "<BEGIN>\n## `get_context_data`", "Add the list of registrations for the given series\n<END>", "<BEGIN>\n## `get_context_data`", "The URL to redirect to can be explicitly specified, or it can come\n from the site session history, or it can be the default admin success page\n as specified in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updateRegistrationStatus API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updateRegistrationStatus API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
If called via cron job or otherwise, then update the registrationOpen property for this series to reflect any manual override and/or the automatic closing of this series for registration.
"If called via cron job or otherwise, then update the registrationOpen\n property for this series to reflect any manual override and/or the automatic\n closing of this series for registration."
337
false
django-danceschool/django-danceschool
updateRegistrationStatus
26,331
LDU_FT/ask/redish/is_zsettable
LDU_FT
[ "<BEGIN>\n## `save`", "Save this entry.", " If the entry does not have an :attr:`id`, a new id will be assigned,\n and the :attr:`id` attribute set accordingly.", " Pre-save processing of the fields saved can be done by\n overriding the :meth:`prepare_save` method.", " Add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_zsettable API. 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 is_zsettable API. 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...
quick check that all values in a dict are reals
"quick check that all values in a dict are reals"
88
false
ask/redish
is_zsettable
26,332
LDU_FT/JohnVinyard/zounds/encode
LDU_FT
[ "<BEGIN>\n## `validate`", "Ensure that the size of the dimension matches the number of bands in the\n scale", " Raises:\n ValueError: when the dimension size and number of bands don't match\n<END>", "<BEGIN>\n## `resampled`", "Create a basic processing pipeline that can resample al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API. 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 encode API. 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 audio samples encoded as bytes given a particular audio format Args: flo (file-like): A file-like object to write the bytes to. If flo is not supplied, a new :class:`io.BytesIO` instance will be created and returned fmt (str): A libsndfile-friendl...
"Return audio samples encoded as bytes given a particular audio format\n\n Args:\n flo (file-like): A file-like object to write the bytes to. If flo\n is not supplied, a new :class:`io.BytesIO` instance will be\n created and returned\n fmt (str): A libsndfile-...
97
false
JohnVinyard/zounds
encode
26,333
LDU_FT/ColtonProvias/sqlalchemy-jsonapi/patch_resource
LDU_FT
[ "<BEGIN>\n## `user_error`", "Create and return a general user error response that is jsonapi compliant.", " Required args:\n status_code: The HTTP status code associated with the problem.\n title: A short summary of the problem.\n detail: An explanation specific to the occurence of the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_resource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Replacement of resource values. :param session: SQLAlchemy session :param json_data: Request JSON Data :param api_type: Type of the resource :param obj_id: ID of the resource
"Replacement of resource values.\n\n :param session: SQLAlchemy session\n :param json_data: Request JSON Data\n :param api_type: Type of the resource\n :param obj_id: ID of the resource"
95
false
ColtonProvias/sqlalchemy-jsonapi
patch_resource
26,334
LDU_FT/micropython/micropython/set_address
LDU_FT
[ "<BEGIN>\n## `ptr`", "Returns the numbered function (i.e. USART6) for this AF.\n<END>", "<BEGIN>\n## `run_loop`", "Start the loop.", " :param `leds`: Which LEDs to light up upon switch press.\n :type `leds`: sequence of LED objects\n<END>", "<BEGIN>\n## `find_c_file`", "Search vpaths for the c fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Sets the address for the next operation.
"Sets the address for the next operation."
54
false
micropython/micropython
set_address
26,335
LDU_FT/hyperledger/sawtooth-core/add_subscriber
LDU_FT
[ "<BEGIN>\n## `run_callback`", "Calls the callback_func, passing in the two positional arguments,\n conditionally waiting if the callback function hasn't been set yet.\n Meant to be run in a threadpool owned by the FutureCollection.", " Returns:\n None\n<END>", "<BEGIN>\n## `add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_subscriber API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_subscriber API. 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...
Register the subscriber for the given event subscriptions. Raises: InvalidFilterError One of the filters in the subscriptions is invalid.
"Register the subscriber for the given event subscriptions.\n\n Raises:\n InvalidFilterError\n One of the filters in the subscriptions is invalid."
876
false
hyperledger/sawtooth-core
add_subscriber
26,336
LDU_FT/deshima-dev/decode/xarrayfunc
LDU_FT
[ "<BEGIN>\n## `xarrayfunc`", "Make a function compatible with xarray.DataArray.", " This function is intended to be used as a decorator like::", " >>> @dc.xarrayfunc\n >>> def func(array):\n ... # do something\n ... return newarray\n >>>\n >>> result = func(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xarrayfunc API. 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 xarrayfunc API. 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...
Make a function compatible with xarray.DataArray. This function is intended to be used as a decorator like:: >>> @dc.xarrayfunc >>> def func(array): ... # do something ... return newarray >>> >>> result = func(array) Args: func (function): Funct...
"Make a function compatible with xarray.DataArray.\n\n This function is intended to be used as a decorator like::\n\n >>> @dc.xarrayfunc\n >>> def func(array):\n ... # do something\n ... return newarray\n >>>\n >>> result = func(array)\n\n Args:\n func (fun...
137
false
deshima-dev/decode
xarrayfunc
26,337
LDU_FT/TurboGears/gearbox/load_commands
LDU_FT
[ "<BEGIN>\n## `live_pidfile`", "(pidfile:str) -> int | None\n Returns an int found in the named file, if there is one,\n and if there is a running process with that process id.\n Return None if no such process exists.\n<END>", "<BEGIN>\n## `_turn_sigterm_into_systemexit`", "Attempts to turn a SIGTERM ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_commands API. 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 load_commands API. 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...
Load all the commands from an entrypoint
"Load all the commands from an entrypoint"
66
false
TurboGears/gearbox
load_commands
26,338
LDU_FT/exoscale/cs/transform
LDU_FT
[ "<BEGIN>\n## `check_key`", "Validate that the specified key is allowed according the provided\n list of patterns.\n<END>", "<BEGIN>\n## `cs_encode`", "Encode URI component like CloudStack would do before signing.", " java.net.URLEncoder.encode(s).replace('+', '%20')\n<END>", "<BEGIN>\n## `transform`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Transforms an heterogeneous map of params into a CloudStack ready mapping of parameter to values. It handles lists and dicts. >>> p = {"a": 1, "b": "foo", "c": ["eggs", "spam"], "d": {"key": "value"}} >>> transform(p) >>> print(p) {'a': '1', 'b': 'foo', 'c': 'eggs,spam', 'd[0].key': 'value'}
"Transforms an heterogeneous map of params into a CloudStack\n ready mapping of parameter to values.\n\n It handles lists and dicts.\n\n >>> p = {\"a\": 1, \"b\": \"foo\", \"c\": [\"eggs\", \"spam\"], \"d\": {\"key\": \"value\"}}\n >>> transform(p)\n >>> print(p)\n {'a': '1', 'b': 'foo', 'c': 'eggs,sp...
22
false
exoscale/cs
transform
26,339
LDU_FT/razor-x/scipy-data_fitting/lmfit_parameters
LDU_FT
[ "<BEGIN>\n## `add_symbol`", "Add a symbol with key `name` to `scipy_data_fitting.Model.symbols`.\n Optionally, specify an alternative `string` to pass to [`sympy.Symbol`][1],\n otherwise `name` is used.", " [1]: http://docs.sympy.org/dev/modules/core.html#id4\n<END>", "<BEGIN>\n## `replac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lmfit_parameters API. 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 lmfit_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
A [`lmfit.Parameters`][1] object built from `scipy_data_fitting.Fit.fitting_parameters`, see `scipy_data_fitting.Fit.parameters`. Each parameters is assigned a key of the form `p_00000`, `p_00001`, `p_00002`, etc. Thus, `sorted(self.lmfit_parameters)` will give the keys in the same orde...
"A [`lmfit.Parameters`][1] object built from `scipy_data_fitting.Fit.fitting_parameters`,\n see `scipy_data_fitting.Fit.parameters`.\n\n Each parameters is assigned a key of the form `p_00000`, `p_00001`, `p_00002`, etc.\n Thus, `sorted(self.lmfit_parameters)` will give the keys in the same\n ...
163
false
razor-x/scipy-data_fitting
lmfit_parameters
26,340
LDU_FT/andrewsnowden/dota2py/get_side_attr
LDU_FT
[ "<BEGIN>\n## `load_heroes`", "Load hero details from JSON file into memoy\n<END>", "<BEGIN>\n## `load_items`", "Load item details fom JSON file into memory\n<END>", "<BEGIN>\n## `debug_dump`", "Utility while developing to dump message data to play with in the\n interpreter\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_side_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_side_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 a player attribute that depends on which side the player is on. A creep kill for a radiant hero is a badguy_kill, while a creep kill for a dire hero is a goodguy_kill.
"Get a player attribute that depends on which side the player is on.\n A creep kill for a radiant hero is a badguy_kill, while a creep kill\n for a dire hero is a goodguy_kill."
45
false
andrewsnowden/dota2py
get_side_attr
26,341
LDU_FT/LonamiWebs/Telethon/_download_photo
LDU_FT
[ "<BEGIN>\n## `collect`", "Create a `self` iterator and collect it into a `TotalList`\n (a normal list with a `.total` attribute).\n<END>", "<BEGIN>\n## `handler`", "#full: Advises to read \"Accessing the full API\" in the docs.\n<END>", "<BEGIN>\n## `handler`", "#search query: Searches for \"query\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_photo API. 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 _download_photo API. 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...
Specialized version of .download_media() for photos
"Specialized version of .download_media() for photos"
1,037
true
LonamiWebs/Telethon
_download_photo
26,342
LDU_FT/OnroerendErfgoed/crabpy/check_lazy_load_perceel
LDU_FT
[ "<BEGIN>\n## `crab_gateway_request`", "Utility function that helps making requests to the CRAB service.", " This is a specialised version of :func:`crabpy.client.crab_request` that\n allows adding extra functionality for the calls made by the gateway.", " :param client: A :class:`suds.client.Client` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_lazy_load_perceel 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_lazy_load_perceel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Decorator function to lazy load a :class:`Perceel`.
"Decorator function to lazy load a :class:`Perceel`."
196
false
OnroerendErfgoed/crabpy
check_lazy_load_perceel
26,343
LDU_FT/edx/django-user-tasks/status
LDU_FT
[ "<BEGIN>\n## `on_init`", "Run sphinx-apidoc and swg2rst after Sphinx initialization.", " Read the Docs won't run tox or custom shell commands, so we need this to\n avoid checking in the generated reStructuredText files.\n<END>", "<BEGIN>\n## `create_user_task`", "Create a :py:class:`UserTaskStatus` re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get the :py:class:`~user_tasks.models.UserTaskStatus` model instance for this UserTaskMixin.
"Get the :py:class:`~user_tasks.models.UserTaskStatus` model instance for this UserTaskMixin."
43
false
edx/django-user-tasks
status
26,344
LDU_FT/kaste/mockito-python/when2
LDU_FT
[ "<BEGIN>\n## `verify`", "Central interface to verify interactions.", " `verify` uses a fluent interface::", " verify(<obj>, times=2).<method_name>(<args>)", " `args` can be as concrete as necessary. Often a catch-all is enough,\n especially if you're working with strict mocks, bc they throw ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the when2 API. 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 when2 API. 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...
Stub a function call with the given arguments Exposes a more pythonic interface than :func:`when`. See :func:`when` for more documentation. Returns `AnswerSelector` interface which exposes `thenReturn`, `thenRaise`, and `thenAnswer` as usual. Always `strict`. Usage:: # Given `dog` is an ...
"Stub a function call with the given arguments\n\n Exposes a more pythonic interface than :func:`when`. See :func:`when` for\n more documentation.\n\n Returns `AnswerSelector` interface which exposes `thenReturn`,\n `thenRaise`, and `thenAnswer` as usual. Always `strict`.\n\n Usage::\n\n # Given `...
106
false
kaste/mockito-python
when2
26,345
LDU_FT/payplug/payplug-python/set_secret_key
LDU_FT
[ "<BEGIN>\n## `map_http_status_to_exception`", "Bind a HTTP status to an HttpError.", " :param http_code: The HTTP code\n :type http_code: int", " :return The HttpError that fits to the http_code or HttpError.\n :rtype Any subclass of HttpError or HttpError\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_secret_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_secret_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Initializes a Authentication and sets it as the new default global authentication. It also performs some checks before saving the authentication. :Example >>> # Expected format for secret key: >>> import payplug >>> payplug.set_secret_key('sk_test_somerandomcharacters') :param token: your sec...
"Initializes a Authentication and sets it as the new default global authentication.\n It also performs some checks before saving the authentication.\n\n :Example\n\n >>> # Expected format for secret key:\n >>> import payplug\n >>> payplug.set_secret_key('sk_test_somerandomcharacters')\n\n :param token...
108
false
payplug/payplug-python
set_secret_key
26,346
LDU_FT/0101/pipetools/take_first
LDU_FT
[ "<BEGIN>\n## `pipe_util`", "Decorator that handles X objects and partial application for pipe-utils.\n<END>", "<BEGIN>\n## `auto_string_formatter`", "Decorator that handles automatic string formatting.", " By converting a string argument to a function that does formatting on said\n string.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the take_first API. 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 take_first API. 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...
Assumes an iterable on the input, returns an iterable with first `count` items from the input (or possibly less, if there isn't that many). >>> range(9000) > where(X % 100 == 0) | take_first(5) | tuple (0, 100, 200, 300, 400)
"Assumes an iterable on the input, returns an iterable with first `count`\n items from the input (or possibly less, if there isn't that many).\n\n >>> range(9000) > where(X % 100 == 0) | take_first(5) | tuple\n (0, 100, 200, 300, 400)"
46
false
0101/pipetools
take_first
26,347
LDU_FT/anthok/overwatch-api/get_stats
LDU_FT
[ "<BEGIN>\n## `_uses_aiohttp_session`", "This is a decorator that creates an async with statement around a function, and makes sure that a _session argument is always passed.\n Only usable on async functions of course.\n The _session argument is (supposed to be) an aiohttp.ClientSession instance in a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract...
Returns the stats for the profiles on the specified regions and platform. The format for regions without a matching user, the format is the same as get_profile. The stats are returned in a dictionary with a similar format to what https://github.com/SunDwarf/OWAPI/blob/master/api.md#get-apiv3ubattletagstats spec...
"Returns the stats for the profiles on the specified regions and platform. The format for regions without a matching user, the format is the same as get_profile.\n The stats are returned in a dictionary with a similar format to what https://github.com/SunDwarf/OWAPI/blob/master/api.md#get-apiv3ubattletagstats sp...
10
false
anthok/overwatch-api
get_stats
26,348
LDU_FT/ff0000/scarlet/get_object
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_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get the object for previewing. Raises a http404 error if the object is not found.
"Get the object for previewing.\n Raises a http404 error if the object is not found."
548
false
ff0000/scarlet
get_object
26,349
LDU_FT/jazzband/django-axes/user_logged_in
LDU_FT
[ "<BEGIN>\n## `get_cool_off`", "Return the login cool off time interpreted from settings.AXES_COOLOFF_TIME.", " The return value is either None or timedelta.", " Notice that the settings.AXES_COOLOFF_TIME is either None, timedelta, or integer of hours,\n and this function offers a unified _timedelta o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_logged_in API. 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 user_logged_in API. 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...
When user logs in, update the AccessLog related to the user.
"When user logs in, update the AccessLog related to the user."
94
false
jazzband/django-axes
user_logged_in
26,350
LDU_FT/bookieio/breadability/clean_conditionally
LDU_FT
[ "<BEGIN>\n## `check_node_attributes`", "Searches match in attributes against given pattern and if\n finds the match against any of them returns True.\n<END>", "<BEGIN>\n## `generate_hash_id`", "Generates a hash_id for the node in question.", " :param node: lxml etree node\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_conditionally 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 clean_conditionally 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...
Remove the clean_el if it looks like bad content based on rules.
"Remove the clean_el if it looks like bad content based on rules."
48
false
bookieio/breadability
clean_conditionally
26,351
LDU_FT/google/tangent/get_module_functions
LDU_FT
[ "<BEGIN>\n## `compile_file`", "Compile by saving to file and importing that.", " Compiling the AST/source code this way ensures that the source code is\n readable by e.g. `pdb` or `inspect`.", " Args:\n source: The code to compile, either as a string or as an AST.\n globals_: A dictionary of variable...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_module_functions 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_module_functions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Finds functions that do not have implemented derivatives. Args: modules: A list of Python modules. Functions contained in these modules will be checked for membership in 'implemented', and if not found, will be added to an 'unimplemented' set implemented: A Python object containing implemente...
"Finds functions that do not have implemented derivatives.\n\n Args:\n modules: A list of Python modules. Functions contained in these modules\n will be checked for membership in 'implemented', and if not found,\n will be added to an 'unimplemented' set\n implemented: A Python object containing imp...
368
false
google/tangent
get_module_functions
26,352
LDU_FT/lobocv/anonymoususage/clear_table
LDU_FT
[ "<BEGIN>\n## `get_average`", "Return the statistic's count divided by the number of rows in the table. If it cannot be calculated return\n `default`.\n :return: The average count value (count / table rows) or `default` if it cannot be calculated.\n<END>", "<BEGIN>\n## `elapsed_time_s`", "Return ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_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 clear_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...
Delete all rows from a table :param dbconn: data base connection :param table_name: name of the table :return:
"Delete all rows from a table\n :param dbconn: data base connection\n :param table_name: name of the table\n :return:"
60
false
lobocv/anonymoususage
clear_table
26,353
LDU_FT/AdvancedClimateSystems/uModbus/serial_port
LDU_FT
[ "<BEGIN>\n## `pdu_to_function_code_or_raise_error`", "Parse response PDU and return of :class:`ModbusFunction` or\n raise error.", " :param resp_pdu: PDU of response.\n :return: Subclass of :class:`ModbusFunction` matching the response.\n :raises ModbusError: When response contains error code.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serial_port API. 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 serial_port API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Set timeouts on serial port based on baudrate to detect frames.
"Set timeouts on serial port based on baudrate to detect frames."
186
false
AdvancedClimateSystems/uModbus
serial_port
26,354
LDU_FT/F483/btctxstore/create_wallet
LDU_FT
[ "<BEGIN>\n## `_recover_public_key`", "Recover a public key from a signature.\n See SEC 1: Elliptic Curve Cryptography, section 4.1.6, \"Public\n Key Recovery Operation\".\n http://www.secg.org/sec1-v2.pdf\n<END>", "<BEGIN>\n## `chunks`", "Split list into chunks of the given size.\n Original order ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_wallet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_wallet API. 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...
Create a BIP0032-style hierarchical wallet. @param: master_secret Create from master secret, otherwise random.
"Create a BIP0032-style hierarchical wallet.\n\n @param: master_secret Create from master secret, otherwise random."
41
false
F483/btctxstore
create_wallet
26,355
LDU_FT/shmir/PyIxExplorer/add
LDU_FT
[ "<BEGIN>\n## `read_stats`", "Read port statistics from chassis.", " :param stats: list of requested statistics to read, if empty - read all statistics.\n<END>", "<BEGIN>\n## `read_stats`", "Read stream statistics from chassis.", " :param stats: list of requested statistics to read, if empty ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. 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 add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
add chassis. :param chassis: chassis IP address.
"add chassis.\n\n :param chassis: chassis IP address."
91
false
shmir/PyIxExplorer
add
26,356
LDU_FT/CityOfZion/neo-python-core/ReadVarString
LDU_FT
[ "<BEGIN>\n## `PrivateKeyFromWIF`", "Get the private key from a WIF key", " Args:\n wif (str): The wif key", " Returns:\n bytes: The private key\n<END>", "<BEGIN>\n## `PrivateKeyFromNEP2`", "Gets the private key from a NEP-2 encrypted private key", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ReadVarString API. 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 ReadVarString API. 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...
Similar to `ReadString` but expects a variable length indicator instead of the fixed 1 byte indicator. Args: max (int): (Optional) maximum number of bytes to read. Returns: bytes:
"Similar to `ReadString` but expects a variable length indicator instead of the fixed 1 byte indicator.\n\n Args:\n max (int): (Optional) maximum number of bytes to read.\n\n Returns:\n bytes:"
175
false
CityOfZion/neo-python-core
ReadVarString
26,357
LDU_FT/SetBased/py-stratum/write_two_phases
LDU_FT
[ "<BEGIN>\n## `log_verbose`", "Logs a message only when logging level is verbose.", " :param str|list[str] message: The message.\n<END>", "<BEGIN>\n## `log_very_verbose`", "Logs a message only when logging level is very verbose.", " :param str|list[str] message: The message.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_two_phases API. 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 write_two_phases API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Writes a file in two phase to the filesystem. First write the data to a temporary file (in the same directory) and than renames the temporary file. If the file already exists and its content is equal to the data that must be written no action is taken. This has the following advantages: ...
"Writes a file in two phase to the filesystem.\n\n First write the data to a temporary file (in the same directory) and than renames the temporary file. If the\n file already exists and its content is equal to the data that must be written no action is taken. This has the\n following advantages:\n ...
189
false
SetBased/py-stratum
write_two_phases
26,358
LDU_FT/karel-brinda/rnftools/check
LDU_FT
[ "<BEGIN>\n## `recode_curesim_reads`", "Recode CuReSim output FASTQ file to the RNF-compatible output FASTQ file.", "\t\tArgs:\n\t\t\tcuresim_fastq_fo (file object): File object of CuReSim FASTQ file.\n\t\t\tfastq_rnf_fo (file object): File object of RNF FASTQ.\n\t\t\tfai_fo (file object): File object for FAI fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. 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 check API. 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...
Check if the given read tuple name satisfies this profile. Args: read_tuple_name (str): Read tuple name.
"Check if the given read tuple name satisfies this profile.\n\n\t\tArgs:\n\t\t\tread_tuple_name (str): Read tuple name."
84
false
karel-brinda/rnftools
check
26,359
LDU_FT/alexandrovteam/cpyMSpec/isotopePattern
LDU_FT
[ "<BEGIN>\n## `isotopePattern`", "Calculates isotopic peaks for a sum formula.", " :param sum_formula: text representation of an atomic composition\n :type sum_formula: str\n :param threshold: minimum peak abundance\n :type threshold: float\n :param rel_threshold: if True, threshold is relative to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isotopePattern API. 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 isotopePattern API. 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...
Calculates isotopic peaks for a sum formula. :param sum_formula: text representation of an atomic composition :type sum_formula: str :param threshold: minimum peak abundance :type threshold: float :param rel_threshold: if True, threshold is relative to the highest peak, otherwise it is a probabilit...
"Calculates isotopic peaks for a sum formula.\n\n :param sum_formula: text representation of an atomic composition\n :type sum_formula: str\n :param threshold: minimum peak abundance\n :type threshold: float\n :param rel_threshold: if True, threshold is relative to the highest peak, otherwise it is a pro...
25
false
alexandrovteam/cpyMSpec
isotopePattern
26,360
LDU_FT/riptano/ccm/get_jdk_version
LDU_FT
[ "<BEGIN>\n## `actively_watch_logs_for_error`", "Begins a thread that repeatedly scans system.log for new errors, every interval seconds.\n (The first pass covers the entire log contents written at that point,\n subsequent scans cover newly appended log messages).", " Reports new errors, by ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_jdk_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_jdk_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Retrieve the Java version as reported in the quoted string returned by invoking 'java -version'. Works for Java 1.8, Java 9 and should also be fine for Java 10.
"Retrieve the Java version as reported in the quoted string returned\n by invoking 'java -version'.\n\n Works for Java 1.8, Java 9 and should also be fine for Java 10."
108
false
riptano/ccm
get_jdk_version
26,361
LDU_FT/Cog-Creators/Red-Lavalink/set_volume
LDU_FT
[ "<BEGIN>\n## `wait_until_ready`", "Waits for the underlying node to become ready.", " If no_raise is set, returns false when a timeout occurs instead of propogating TimeoutError.\n A timeout of None means to wait indefinitely.\n<END>", "<BEGIN>\n## `connect`", "Connects to the voice channel as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_volume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_volume API. 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...
Sets the volume of Lavalink. Parameters ---------- volume : int Between 0 and 150
"Sets the volume of Lavalink.\n\n Parameters\n ----------\n volume : int\n Between 0 and 150"
103
false
Cog-Creators/Red-Lavalink
set_volume
26,362
LDU_FT/e7dal/bubble3/step_command_output_should_contain_exactly_text
LDU_FT
[ "<BEGIN>\n## `cli`", "Show example for doing some task in bubble(experimental)\n<END>", "<BEGIN>\n## `cli`", "Bubble: command line tool for bubbling information between services", " .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.\\n\n Making single point to point API connections:\\n\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_command_output_should_contain_exactly_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_command_output_should_contain_exactly_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> ...
Verifies that the command output of the last command contains the expected text. .. code-block:: gherkin When I run "echo Hello" Then the command output should contain "Hello"
"Verifies that the command output of the last command contains the\n expected text.\n\n .. code-block:: gherkin\n\n When I run \"echo Hello\"\n Then the command output should contain \"Hello\""
171
false
e7dal/bubble3
step_command_output_should_contain_exactly_text
26,363
LDU_FT/morse-talk/morse-talk/_encode_to_binary_string
LDU_FT
[ "<BEGIN>\n## `decode`", "Converts a string of morse code into English message", " The encoded message can also be decoded using the same morse chart\n backwards.", " >>> code = '... --- ...'\n >>> decode(code)\n 'SOS'\n<END>", "<BEGIN>\n## `grouper`", "grouper(3, 'ABCDEFG', 'x') --> ABC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_to_binary_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _encode_to_binary_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
>>> message = "SOS" >>> _encode_to_binary_string(message, on='1', off='0') '101010001110111011100010101' >>> message = " SOS" >>> _encode_to_binary_string(message, on='1', off='0') '0000000101010001110111011100010101'
">>> message = \"SOS\"\n >>> _encode_to_binary_string(message, on='1', off='0')\n '101010001110111011100010101'\n\n >>> message = \" SOS\"\n >>> _encode_to_binary_string(message, on='1', off='0')\n '0000000101010001110111011100010101'"
111
false
morse-talk/morse-talk
_encode_to_binary_string
26,364
LDU_FT/carsonyl/pypac/do_proxy_failover
LDU_FT
[ "<BEGIN>\n## `proxy_urls_from_dns`", "Generate URLs from which to look for a PAC file, based on a hostname.\r\n Fully-qualified hostnames are checked against the Mozilla Public Suffix List to ensure that\r\n generated URLs don't go outside the scope of the organization.\r\n If the fully-qualified hostnam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_proxy_failover API. 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 do_proxy_failover API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
:param str proxy_url: Proxy to ban. :param str for_url: The URL being requested. :returns: The next proxy config to try, or 'DIRECT'. :raises ProxyConfigExhaustedError: If the PAC file provided no usable proxy configuration.
":param str proxy_url: Proxy to ban.\r\n :param str for_url: The URL being requested.\r\n :returns: The next proxy config to try, or 'DIRECT'.\r\n :raises ProxyConfigExhaustedError: If the PAC file provided no usable proxy configuration."
88
false
carsonyl/pypac
do_proxy_failover
26,365
LDU_FT/pymacaron/pymacaron/authenticate_http_request
LDU_FT
[ "<BEGIN>\n## `load_clients`", "Generate client libraries for the given apis, without starting an\n api server\n<END>", "<BEGIN>\n## `load_apis`", "Load all swagger files found at the given path, except those whose\n names are in the 'ignore' list\n<END>", "<BEGIN>\n## `publish_apis`", "Publi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate_http_request 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 authenticate_http_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Validate auth0 tokens passed in the request's header, hence ensuring that the user is authenticated. Code copied from: https://github.com/auth0/auth0-python/tree/master/examples/flask-api Return a PntCommonException if failed to validate authentication. Otherwise, return the token's payload (Also store...
"Validate auth0 tokens passed in the request's header, hence ensuring\n that the user is authenticated. Code copied from:\n https://github.com/auth0/auth0-python/tree/master/examples/flask-api\n\n Return a PntCommonException if failed to validate authentication.\n Otherwise, return the token's payload (Also...
47
false
pymacaron/pymacaron
authenticate_http_request
26,366
LDU_FT/sprockets/sprockets-influxdb/set_field
LDU_FT
[ "<BEGIN>\n## `add_measurement`", "Add measurement data to the submission buffer for eventual writing to\n InfluxDB.", " Example:", " .. code:: python", " import sprockets_influxdb as influxdb", " measurement = influxdb.Measurement('example', 'measurement-name')\n measurement....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set the value of a field in the measurement. :param str name: The name of the field to set the value for :param int|float|bool|str value: The value of the field :raises: ValueError
"Set the value of a field in the measurement.\n\n :param str name: The name of the field to set the value for\n :param int|float|bool|str value: The value of the field\n :raises: ValueError"
93
false
sprockets/sprockets-influxdb
set_field
26,367
LDU_FT/boriel/zxbasic/_xor8
LDU_FT
[ "<BEGIN>\n## `reset`", "This is called when we need to reinitialize the instance state\n<END>", "<BEGIN>\n## `make_node`", "This will return a node with the symbol as a function.\n<END>", "<BEGIN>\n## `add_string_label`", "Maps (\"folds\") the given string, returning an unique label ID.\n This allo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _xor8 API. 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 _xor8 API. 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...
Pops top 2 operands out of the stack, and checks if 1st operand XOR (logical) 2nd operand (top of the stack), pushes 0 if False, 1 if True. 8 bit un/signed version
"Pops top 2 operands out of the stack, and checks\n if 1st operand XOR (logical) 2nd operand (top of the stack),\n pushes 0 if False, 1 if True.\n\n 8 bit un/signed version"
974
false
boriel/zxbasic
_xor8
26,368
LDU_FT/Hironsan/anago/add_documents
LDU_FT
[ "<BEGIN>\n## `download`", "Download a trained weights, config and preprocessor.", " Args:\n url (str): target url.\n<END>", "<BEGIN>\n## `load_data_and_labels`", "Loads data and label from a file.", " Args:\n filename (str): path to the file.\n encoding (str): file encoding form...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_documents API. 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 add_documents API. 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...
Update dictionary from a collection of documents. Each document is a list of tokens. Args: docs (list): documents to add.
"Update dictionary from a collection of documents. Each document is a list\n of tokens.\n\n Args:\n docs (list): documents to add."
98
false
Hironsan/anago
add_documents
26,369
LDU_FT/HumanCellAtlas/dcp-cli/store_file
LDU_FT
[ "<BEGIN>\n## `get_checksum_metadata_tag`", "Returns a map of checksum values by the name of the hashing function that produced it.\n<END>", "<BEGIN>\n## `get_credentials`", "Return a set of credentials that may be used to access the Upload Area folder in the S3 bucket\n :return: a dict containing AWS c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_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 extrac...
Store a small file in an Upload Area :param str area_uuid: A RFC4122-compliant ID for the upload area :param str filename: The name the file will have in the Upload Area :param str file_content: The contents of the file :param str content_type: The MIME-type for the file :return...
"Store a small file in an Upload Area\n\n :param str area_uuid: A RFC4122-compliant ID for the upload area\n :param str filename: The name the file will have in the Upload Area\n :param str file_content: The contents of the file\n :param str content_type: The MIME-type for the file\n ...
140
false
HumanCellAtlas/dcp-cli
store_file
26,370
LDU_FT/jasonrollins/shareplum/AddList
LDU_FT
[ "<BEGIN>\n## `GetSecurityToken`", "Grabs a security Token to authenticate to Office 365 services\n<END>", "<BEGIN>\n## `GetCookies`", "Grabs the cookies form your Office Sharepoint site\n and uses it as Authentication for the rest of the calls\n<END>", "<BEGIN>\n## `AddList`", "Create a new List\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AddList API. 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 AddList API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Create a new List Provide: List Name, List Description, and List Template Templates Include: Announcements Contacts Custom List Custom List in Datasheet View DataSources Discussion Board Docume...
"Create a new List\n Provide: List Name, List Description, and List Template\n Templates Include:\n Announcements\n Contacts\n Custom List\n Custom List in Datasheet View\n DataSources\n Discussion Board\n ...
33
false
jasonrollins/shareplum
AddList
26,371
LDU_FT/christian-oudard/htmltreediff/adjusted_ops
LDU_FT
[ "<BEGIN>\n## `diff`", "Show the differences between the old and new html document, as html.", " Return the document html with extra tags added to show changes. Add <ins>\n tags around newly added sections, and <del> tags to show sections that have\n been deleted.\n<END>", "<BEGIN>\n## `adjusted_ops`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adjusted_ops API. 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 adjusted_ops API. 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...
Iterate through opcodes, turning them into a series of insert and delete operations, adjusting indices to account for the size of insertions and deletions. >>> def sequence_opcodes(old, new): return difflib.SequenceMatcher(a=old, b=new).get_opcodes() >>> list(adjusted_ops(sequence_opcodes('abc', 'b')))...
"Iterate through opcodes, turning them into a series of insert and delete\n operations, adjusting indices to account for the size of insertions and\n deletions.\n\n >>> def sequence_opcodes(old, new): return difflib.SequenceMatcher(a=old, b=new).get_opcodes()\n >>> list(adjusted_ops(sequence_opcodes('abc', ...
69
false
christian-oudard/htmltreediff
adjusted_ops
26,372