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/ArtoLabs/SimpleSteem/retry
LDU_FT
[ "<BEGIN>\n## `setup`", "Runs only the first time SimpleSteem() \n is instantiated. Prompts user for the values\n that are then written to config.py\n<END>", "<BEGIN>\n## `make`", "takes the arguments and writes them as \n variable / value pairs to config.py\n<END>", "<BEGIN>\n## `goodno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry API. 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 retry API. 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...
Creates the retry message and waits the given default time when a method call fails or a server does not respond appropriately.
"Creates the retry message and waits the \n given default time when a method call fails\n or a server does not respond appropriately."
74
false
ArtoLabs/SimpleSteem
retry
27,673
LDU_FT/kajala/django-jutil/format_full_name
LDU_FT
[ "<BEGIN>\n## `se_iban_load_map`", "Loads Swedish monetary institution codes in CSV format.\n :param filename: CSV file name of the BIC definitions.\n Columns: Institution Name, Range Begin-Range End (inclusive), Account digits count\n :return: List of (bank name, clearing code begin, clearing code end, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_full_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_full_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Limits name length to specified length. Tries to keep name as human-readable an natural as possible. :param first_name: First name :param last_name: Last name :param max_length: Maximum length :return: Full name of shortened version depending on length
"Limits name length to specified length. Tries to keep name as human-readable an natural as possible.\n :param first_name: First name\n :param last_name: Last name\n :param max_length: Maximum length\n :return: Full name of shortened version depending on length"
110
false
kajala/django-jutil
format_full_name
27,674
LDU_FT/minorg/pastpy/write
LDU_FT
[ "<BEGIN>\n## `read`", "Read a new object from the given input protocol and return the object.", " :type iprot: thryft.protocol._input_protocol._InputProtocol\n :rtype: pastpy.gen.database.impl.dbf.objects_dbf_record.ObjectsDbfRecord\n<END>", "<BEGIN>\n## `write`", "Write this object to the giv...
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 this object to the given output protocol and return self. :type oprot: thryft.protocol._output_protocol._OutputProtocol :rtype: pastpy.gen.database.impl.online.online_database_objects_list_item.OnlineDatabaseObjectsListItem
"Write this object to the given output protocol and return self.\n\n :type oprot: thryft.protocol._output_protocol._OutputProtocol\n :rtype: pastpy.gen.database.impl.online.online_database_objects_list_item.OnlineDatabaseObjectsListItem"
42
false
minorg/pastpy
write
27,675
LDU_FT/sunlightlabs/django-locksmith/cycle_generator
LDU_FT
[ "<BEGIN>\n## `_active_keys_by_month`", "Returns a dict of (year, month) -> active_keys. The dict will contain a key\n for each month observed in the data.\n<END>", "<BEGIN>\n## `keys`", "Lists API keys. Compatible with jQuery DataTables.\n<END>", "<BEGIN>\n## `resolve_model`", "model: Model class\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cycle_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cycle_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Generates pairs of values representing a cycle. E.g. clock hours for a day could could be generated with: _cycle_generator(cycle=(1, 12), step=1, begin=(0, 1), end=(23, 12)) => (0, 1), (0, 2) ... (0, 12), (1, 1), (1, 2)
"Generates pairs of values representing a cycle. E.g. clock hours for a day could\n could be generated with:\n _cycle_generator(cycle=(1, 12), step=1, begin=(0, 1), end=(23, 12))\n => (0, 1), (0, 2) ... (0, 12), (1, 1), (1, 2)"
33
false
sunlightlabs/django-locksmith
cycle_generator
27,676
LDU_FT/toomore/goristock/TimeinOpen
LDU_FT
[ "<BEGIN>\n## `output`", "re = \"\"\"<table>\n <tr><td>%(name)s</td><td>%(c)s</td><td>%(range)+.2f(%(pp)+.2f%%)</td></tr>\n <tr><td>%(stock_no)s</td><td>%(value)s</td><td>%(time)s</td></tr></table>\"\"\" % {\n<END>", "<BEGIN>\n## `Rt_display`", "For real time stock display\n 即時盤用,顯示目...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the TimeinOpen API. 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 TimeinOpen API. 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...
In open market time. 在當日開市時刻,9 - 14
"In open market time.\n 在當日開市時刻,9 - 14"
62
false
toomore/goristock
TimeinOpen
27,677
LDU_FT/chaoss/grimoirelab-cereslib/enrich
LDU_FT
[ "<BEGIN>\n## `filter_`", "This method filter some of the rows where the 'value'\n is found in each of the 'columns'.", " :param column: list of strings\n :param value: any type", " :returns: filtered dataframe\n :rtype: pandas.DataFrame\n<END>", "<BEGIN>\n## `eventize`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enrich API. 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 enrich API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This method adds a new column depending on the extension of the file. :param column: column where the file path is found :type column: string :return: returns the original dataframe with a new column named as 'filetype' that contains information about its extension ...
"This method adds a new column depending on the extension\n of the file.\n\n :param column: column where the file path is found\n :type column: string\n\n :return: returns the original dataframe with a new column named as\n 'filetype' that contains information about its exten...
107
false
chaoss/grimoirelab-cereslib
enrich
27,678
LDU_FT/widdowquinn/pyADHoRe/get_multiplicon_intermediates
LDU_FT
[ "<BEGIN>\n## `read`", "Returns an IadhoreData object, constructed from the passed\n i-ADHoRe multiplicon and segments output.", " - mfile (str), location of multiplicons.txt\n - sfile (str), location of segments.txt\n<END>", "<BEGIN>\n## `_parse_multiplicons`", "Read the multiplicon out...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_multiplicon_intermediates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_multiplicon_intermediates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Return a generator of the IDs of multiplicons that are neither seeding 'pairs' in level 2 multiplicons, nor leaves. Arguments: o redundant - if true, report redundant multiplicons
"Return a generator of the IDs of multiplicons that are neither\n seeding 'pairs' in level 2 multiplicons, nor leaves.\n\n Arguments:\n\n o redundant - if true, report redundant multiplicons"
37
false
widdowquinn/pyADHoRe
get_multiplicon_intermediates
27,679
LDU_FT/fracpete/python-weka-wrapper/_build_tree
LDU_FT
[ "<BEGIN>\n## `next`", "Reads the next dataset row.", " :return: the next row\n :rtype: Instance\n<END>", "<BEGIN>\n## `main`", "Runs a associator from the command-line. Calls JVM start/stop automatically.\n Use -h to see all options.\n<END>", "<BEGIN>\n## `next`", "Returns the next rule...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_tree API. 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 _build_tree API. 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...
Builds the tree for the given actor. :param actor: the actor to process :type actor: Actor :param content: the rows of the tree collected so far :type content: list
"Builds the tree for the given actor.\n\n :param actor: the actor to process\n :type actor: Actor\n :param content: the rows of the tree collected so far\n :type content: list"
68
false
fracpete/python-weka-wrapper
_build_tree
27,680
LDU_FT/delfick/harpoon/extra_prepare
LDU_FT
[ "<BEGIN>\n## `a_temp_file`", "Yield the name of a temporary file and ensure it's removed after use\n<END>", "<BEGIN>\n## `run_container`", "Run this image and all dependency images\n<END>", "<BEGIN>\n## `run_deps`", "Start containers for all our dependencies\n<END>", "<BEGIN>\n## `stop_deps`", "Stop t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extra_prepare API. 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 extra_prepare API. 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...
Called before the configuration.converters are activated Here we make sure that we have harpoon options from ``args_dict`` in the configuration. We then load all the harpoon modules as specified by the ``harpoon.addons`` setting. Finally we inject into the configuration: ...
"Called before the configuration.converters are activated\n\n Here we make sure that we have harpoon options from ``args_dict`` in\n the configuration.\n\n We then load all the harpoon modules as specified by the\n ``harpoon.addons`` setting.\n\n Finally we inject into the configurati...
149
false
delfick/harpoon
extra_prepare
27,681
LDU_FT/hyperledger/sawtooth-core/_set_least_batch_id
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 _set_least_batch_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_least_batch_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Set the first batch id that doesn't have all results. Args: txn_signature (str): The txn identifier of the transaction with results being set.
"Set the first batch id that doesn't have all results.\n\n Args:\n txn_signature (str): The txn identifier of the transaction with\n results being set."
876
false
hyperledger/sawtooth-core
_set_least_batch_id
27,682
LDU_FT/Oneiroe/PySimpleAutomata/dfa_trimming
LDU_FT
[ "<BEGIN>\n## `dfa_word_acceptance`", "Checks if a given **word** is accepted by a DFA,\n returning True/false.", " The word w is accepted by a DFA if DFA has an accepting run\n on w. Since A is deterministic,\n :math:`w ∈ L(A)` if and only if :math:`ρ(s_0 , w) ∈ F` .", " :param dict dfa: input ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dfa_trimming API. 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 dfa_trimming API. 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...
Side effects on input! Returns the DFA in input trimmed, so both reachable and co-reachable. Given a DFA A, the corresponding trimmed DFA contains only those states that are reachable from the initial state and that lead to a final state. The trimmed dfa :math:`A_{RF}` corresponding to A is defined...
"Side effects on input! Returns the DFA in input trimmed,\n so both reachable and co-reachable.\n\n Given a DFA A, the corresponding trimmed DFA contains only\n those states that are reachable from the initial state\n and that lead to a final state.\n The trimmed dfa :math:`A_{RF}` corresponding to A is ...
208
false
Oneiroe/PySimpleAutomata
dfa_trimming
27,683
LDU_FT/rossant/ipymd/_meta_from_regex
LDU_FT
[ "<BEGIN>\n## `_get_html_contents`", "Process a HTML block and detects whether it is a code block,\n a math block, or a regular HTML block.\n<END>", "<BEGIN>\n## `format_manager`", "Return the instance singleton, creating if necessary\n<END>", "<BEGIN>\n## `register_entrypoints`", "Look through the `set...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _meta_from_regex API. 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 _meta_from_regex API. 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 and parse YAML metadata from a meta match Notebook metadata must appear at the beginning of the file and follows the Jekyll front-matter convention of dashed delimiters: --- some: yaml --- Cell metadata follows the YAML spec of dashes and periods ...
"Extract and parse YAML metadata from a meta match\n\n Notebook metadata must appear at the beginning of the file and follows\n the Jekyll front-matter convention of dashed delimiters:\n\n ---\n some: yaml\n ---\n\n Cell metadata follows the YAML spec of dashes and ...
64
false
rossant/ipymd
_meta_from_regex
27,684
LDU_FT/PyThaiNLP/pythainlp/word_tokenize
LDU_FT
[ "<BEGIN>\n## `spell`", ":param str word: word to check spelling\n :param str engine:\n * pn - Peter Norvig's algorithm (default)\n :return: list of words\n<END>", "<BEGIN>\n## `get_corpus`", "Read corpus from file and return a frozenset", " :param string filename: file corpus\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the word_tokenize API. 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 word_tokenize API. 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...
:param str text: text to be tokenized :return: list of words, tokenized from the text
":param str text: text to be tokenized\n\n :return: list of words, tokenized from the text"
190
false
PyThaiNLP/pythainlp
word_tokenize
27,685
LDU_FT/mamrhein/identifiers/elements
LDU_FT
[ "<BEGIN>\n## `calc_check_digit`", "Calculate and return the GS1 check digit.\n<END>", "<BEGIN>\n## `company_prefix`", "Return the identifier's company prefix part.\n<END>", "<BEGIN>\n## `elements`", "Return the identifier's elements as tuple.\n<END>", "<BEGIN>\n## `separated`", "Return a string repres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elements API. 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 elements API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return the identifier's elements as tuple.
"Return the identifier's elements as tuple."
19
false
mamrhein/identifiers
elements
27,686
LDU_FT/noxdafox/pebble/process_execute
LDU_FT
[ "<BEGIN>\n## `waitforqueues`", "Waits for one or more *Queue* to be ready or until *timeout* expires.", " *queues* is a list containing one or more *Queue.Queue* objects.\n If *timeout* is not None the function will block\n for the specified amount of seconds.", " The function returns a list conta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Runs the given function returning its results or exception.
"Runs the given function returning its results or exception."
83
false
noxdafox/pebble
process_execute
27,687
LDU_FT/teepark/greenhouse/release
LDU_FT
[ "<BEGIN>\n## `read`", "read up to len bytes and return them, or empty string on EOF\n<END>", "<BEGIN>\n## `write`", "write data to the ssl channel and return the # of bytes transferred\n<END>", "<BEGIN>\n## `connect`", "connects to the address and wraps the connection in an SSL context\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release API. 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 release API. 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...
release one ownership of the lock if the calling greenlet has :meth:`acquired <acquire>` the lock more than once this will simply decrement the counter. if this is a final release then a waiting greenlet is awoken :raises: `RuntimeError` if the calling greenlet is not the l...
"release one ownership of the lock\n\n if the calling greenlet has :meth:`acquired <acquire>` the lock more\n than once this will simply decrement the counter. if this is a final\n release then a waiting greenlet is awoken\n\n :raises:\n `RuntimeError` if the calling greenlet is n...
349
false
teepark/greenhouse
release
27,688
LDU_FT/barrust/mediawiki/prefixsearch
LDU_FT
[ "<BEGIN>\n## `timeout`", "Set request timeout in seconds (or fractions of a second)\n<END>", "<BEGIN>\n## `language`", "Set the language to use; attempts to change the API URL\n<END>", "<BEGIN>\n## `login`", "Login as specified user", " Args:\n username (str): The username to l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prefixsearch API. 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 prefixsearch API. 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...
Perform a prefix search using the provided prefix string Args: prefix (str): Prefix string to use for search results (int): Number of pages with the prefix to return Returns: list: List of page titles Note: **Per the do...
"Perform a prefix search using the provided prefix string\n\n Args:\n prefix (str): Prefix string to use for search\n results (int): Number of pages with the prefix to return\n Returns:\n list: List of page titles\n Note:\n **P...
107
false
barrust/mediawiki
prefixsearch
27,689
LDU_FT/neithere/monk/save
LDU_FT
[ "<BEGIN>\n## `_insert_defaults`", "Inserts default values from :attr:`StructuredDictMixin.structure`\n to `self` by merging the two structures\n (see :func:`monk.manipulation.merge_defaults`).\n<END>", "<BEGIN>\n## `opt_key`", "Returns a validator which allows the value to be missing.\n Simil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Saves the object to given database. Usage:: item = Item(title=u'Hello') item.save(db) Collection name is taken from :attr:`MongoBoundDictMixin.collection`.
"Saves the object to given database. Usage::\n\n item = Item(title=u'Hello')\n item.save(db)\n\n Collection name is taken from :attr:`MongoBoundDictMixin.collection`."
64
false
neithere/monk
save
27,690
LDU_FT/DasIch/argvard/usage
LDU_FT
[ "<BEGIN>\n## `from_string`", "Returns a :class:`Signature` object based on the given `string`. If\n `option` is `True`, repetitions or optional patterns will not be\n allowed.", " If the `string` cannot be parsed, :exc:`InvalidSignature` is raised.\n<END>", "<BEGIN>\n## `usage`", "A usa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the usage API. 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 usage API. 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...
A usage string that describes the signature.
"A usage string that describes the signature."
31
false
DasIch/argvard
usage
27,691
LDU_FT/EricDalrymple91/strawpy/create_poll
LDU_FT
[ "<BEGIN>\n## `get_poll`", "Get a strawpoll.", " Example:", " poll = strawpy.get_poll('11682852')", " :param poll_id:\n :return: strawpy.Strawpoll object\n<END>", "<BEGIN>\n## `create_poll`", "Create a strawpoll.", " Example:", " new_poll = strawpy.create_poll('Is Python the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_poll API. 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 create_poll API. 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...
Create a strawpoll. Example: new_poll = strawpy.create_poll('Is Python the best?', ['Yes', 'No']) :param title: :param options: :param multi: :param permissive: :param captcha: :param dupcheck: :return: strawpy.Strawpoll object
"Create a strawpoll.\n\n Example:\n\n new_poll = strawpy.create_poll('Is Python the best?', ['Yes', 'No'])\n\n :param title:\n :param options:\n :param multi:\n :param permissive:\n :param captcha:\n :param dupcheck:\n :return: strawpy.Strawpoll object"
32
false
EricDalrymple91/strawpy
create_poll
27,692
LDU_FT/samghelms/mathviz/cookie_encode
LDU_FT
[ "<BEGIN>\n## `get_next_token`", "\"eats\" up the string until it hits an ending character to get valid leaf expressions.\n For example, given \\\\Phi_{z}(L) = \\\\sum_{i=1}^{N} \\\\frac{1}{C_{i} \\\\times V_{\\\\rm max, i}},\n this function would pull out \\\\Phi, stopping at _\n @ string: str\n retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cookie_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cookie_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 ext...
Encode and sign a pickle-able object. Return a (byte) string
"Encode and sign a pickle-able object. Return a (byte) string"
116
false
samghelms/mathviz
cookie_encode
27,693
LDU_FT/edx/pa11ycrawler/render_html
LDU_FT
[ "<BEGIN>\n## `make_parser`", "Returns an argparse instance for this script.\n<END>", "<BEGIN>\n## `main`", "Validates script arguments and calls the render_html() function with them.\n<END>", "<BEGIN>\n## `wcag_refs`", "Given a `code` from pa11y, return a list of the WCAG references.\n These references...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_html API. 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 render_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
The main workhorse of this script. Finds all the JSON data files from pa11ycrawler, and transforms them into HTML files via Jinja2 templating.
"The main workhorse of this script. Finds all the JSON data files\n from pa11ycrawler, and transforms them into HTML files via Jinja2 templating."
56
false
edx/pa11ycrawler
render_html
27,694
LDU_FT/cmorisse/ikp3db/dump_frames
LDU_FT
[ "<BEGIN>\n## `set_trace`", "Breaks on the line that invoked this function or at given frame.\n User can then resume execution.", " To call set_trace() use:", " .. code-block:: python", " import ikp3db ; ikp3db.set_trace()", " :param a_frame: The frame at which to break on.\n :type a_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_frames API. 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 dump_frames API. 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...
dumps frames chain in a representation suitable for serialization and remote (debugger) client usage.
"dumps frames chain in a representation suitable for serialization \n and remote (debugger) client usage."
109
false
cmorisse/ikp3db
dump_frames
27,695
LDU_FT/david-caro/python-foreman/create_param_doc
LDU_FT
[ "<BEGIN>\n## `res_to_str`", ":param res: :class:`requests.Response` object", " Parse the given request and generate an informative string from it\n<END>", "<BEGIN>\n## `parse_resource_definition`", "Returns all the info extracted from a resource section of the apipie json", " :param resource_name: N...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_param_doc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_param_doc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generate documentation for single parameter of function :param param: dict contains info about parameter :param sub: prefix string for recursive purposes
"Generate documentation for single parameter of function\n :param param: dict contains info about parameter\n :param sub: prefix string for recursive purposes"
30
false
david-caro/python-foreman
create_param_doc
27,696
LDU_FT/ivknv/s3m/executescript
LDU_FT
[ "<BEGIN>\n## `normalize_path`", ">>> normalize_path(\"/a/b/c/\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c////////\")\n '/a/b/c'\n >>> normalize_path(\"///a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/././b/../b/c/\")\n '/a/b/c'\n >>> normal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the executescript API. 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 executescript API. 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...
Analogous to :any:`sqlite3.Cursor.executescript` :returns: self
"Analogous to :any:`sqlite3.Cursor.executescript`\n\n :returns: self"
27
false
ivknv/s3m
executescript
27,697
LDU_FT/pyviz/geoviews/polygons_to_geom_dicts
LDU_FT
[ "<BEGIN>\n## `coord_to_dimension`", "Converts an iris coordinate to a HoloViews dimension.\n<END>", "<BEGIN>\n## `sort_coords`", "Sorts a list of DimCoords trying to ensure that\n dates and pressure levels appear first and the\n longitude and latitude appear last in the correct\n order.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polygons_to_geom_dicts 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 polygons_to_geom_dicts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Converts a Polygons element into a list of geometry dictionaries, preserving all value dimensions. For array conversion the following conventions are applied: * Any nan separated array are converted into a MultiPolygon * Any array without nans is converted to a Polygon * If there are holes associa...
"Converts a Polygons element into a list of geometry dictionaries,\n preserving all value dimensions.\n\n For array conversion the following conventions are applied:\n\n * Any nan separated array are converted into a MultiPolygon\n * Any array without nans is converted to a Polygon\n * If there are holes...
106
false
pyviz/geoviews
polygons_to_geom_dicts
27,698
LDU_FT/astorfi/speechpy/lmfe
LDU_FT
[ "<BEGIN>\n## `preemphasis`", "preemphasising on the signal.", " Args:\n signal (array): The input signal.\n shift (int): The shift step.\n cof (float): The preemphasising coefficient. 0 equals to no filtering.", " Returns:\n array: The pre-emphasized signal.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lmfe API. 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 lmfe API. 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...
Compute log Mel-filterbank energy features from an audio signal. Args: signal (array): the audio signal from which to compute features. Should be an N x 1 array sampling_frequency (int): the sampling frequency of the signal we are working with. frame_length (fl...
"Compute log Mel-filterbank energy features from an audio signal.\n\n\n Args:\n signal (array): the audio signal from which to compute features.\n Should be an N x 1 array\n sampling_frequency (int): the sampling frequency of the signal\n we are working with.\n frame_l...
52
false
astorfi/speechpy
lmfe
27,699
LDU_FT/AdvancedClimateSystems/uModbus/write_multiple_registers
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 write_multiple_registers 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 write_multiple_registers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return ADU for Modbus function code 16: Write Multiple Registers. :param slave_id: Number of slave. :return: Byte array with ADU.
"Return ADU for Modbus function code 16: Write Multiple Registers.\n\n :param slave_id: Number of slave.\n :return: Byte array with ADU."
186
false
AdvancedClimateSystems/uModbus
write_multiple_registers
27,700
LDU_FT/yoeo/guesslang/extract_from_files
LDU_FT
[ "<BEGIN>\n## `language_name`", "Predict the programming language name of the given source code.", " :param text: source code.\n :return: language name\n<END>", "<BEGIN>\n## `scores`", "A score for each language corresponding to the probability that\n the text is written in the given lan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_from_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_from_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Extract arrays of features from the given files. :param files: list of paths :param languages: language name => associated file extension list :return: features
"Extract arrays of features from the given files.\n\n :param files: list of paths\n :param languages: language name =>\n associated file extension list\n :return: features"
38
false
yoeo/guesslang
extract_from_files
27,701
LDU_FT/pyqt/python-qt5/_preview
LDU_FT
[ "<BEGIN>\n## `set_base_dir`", "Set the base directory to be used for all relative filenames.\n<END>", "<BEGIN>\n## `_parse_alignment`", "Convert a C++ alignment to the corresponding flags.\n<END>", "<BEGIN>\n## `_layout_position`", "Return either (), (0, alignment), (row, column, rowspan, colspan) or\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _preview API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _preview API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Preview the .ui file. Return the exit status to be passed back to the parent process.
"Preview the .ui file. Return the exit status to be passed back to\n the parent process."
45
false
pyqt/python-qt5
_preview
27,702
LDU_FT/hamperbot/hamper/dispatch
LDU_FT
[ "<BEGIN>\n## `signedOn`", "Called after successfully signing on to the server.\n<END>", "<BEGIN>\n## `process_action`", "Called when a message is received from a channel or user.\n<END>", "<BEGIN>\n## `connectionLost`", "Called when the connection is lost to the server.\n<END>", "<BEGIN>\n## `userKicked...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Dispatch an event to all listening plugins.
"Dispatch an event to all listening plugins."
35
false
hamperbot/hamper
dispatch
27,703
LDU_FT/lehins/python-wepay/__find
LDU_FT
[ "<BEGIN>\n## `authorize`", "Documentation: `/oauth2/authorize\n <https://www.wepay.com/developer/reference/oauth2#authorize>`_.", " .. note::", " This is not an API call but an actual uri that you send the user to.\n<END>", "<BEGIN>\n## `__token`", "Call documentation: `/oauth2/tok...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __find API. 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 __find API. 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 ...
Call documentation: `/account/find <https://www.wepay.com/developer/reference/account#find>`_, plus extra keyword parameters: :keyword str access_token: will be used instead of instance's ``access_token``, with ``batch_mode=True`` will set `authorization` param to ...
"Call documentation: `/account/find\n <https://www.wepay.com/developer/reference/account#find>`_, plus extra\n keyword parameters:\n \n :keyword str access_token: will be used instead of instance's\n ``access_token``, with ``batch_mode=True`` will set `authorization`\n pa...
269
false
lehins/python-wepay
__find
27,704
LDU_FT/joeferraro/mm/resetPassword
LDU_FT
[ "<BEGIN>\n## `parse_json`", "Parse a JSON file\n First remove comments and then use the json module package\n Comments look like :\n // ...\n or\n /*\n ...\n */\n<END>", "<BEGIN>\n## `get_meta_type_by_dir`", "> quick and dirty fix for users expe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resetPassword API. 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 resetPassword API. 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...
Changes a user's password to a system-generated value.
"Changes a user's password to a system-generated value."
71
false
joeferraro/mm
resetPassword
27,705
LDU_FT/sebp/scikit-survival/pairwise_kernel
LDU_FT
[ "<BEGIN>\n## `_fit_and_score`", "Train survival model on given data and return its score on test data\n<END>", "<BEGIN>\n## `fit`", "Fit estimator.", " Parameters\n ----------\n X : array-like, shape = (n_samples, n_features)\n Data matrix", " y : structured array, s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pairwise_kernel API. 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 pairwise_kernel API. 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...
Function to use with :func:`sklearn.metrics.pairwise.pairwise_kernels` Parameters ---------- X : array, shape = (n_features,) Y : array, shape = (n_features,) Returns ------- similarity : float Similarities are normalized to be within [0, 1]
"Function to use with :func:`sklearn.metrics.pairwise.pairwise_kernels`\n\n Parameters\n ----------\n X : array, shape = (n_features,)\n\n Y : array, shape = (n_features,)\n\n Returns\n -------\n similarity : float\n Similarities are normalized to be within [0...
432
false
sebp/scikit-survival
pairwise_kernel
27,706
LDU_FT/django-blog-zinnia/wordpress2zinnia/import_categories
LDU_FT
[ "<BEGIN>\n## `guess_wxr_version`", "We will try to guess the wxr version used\n to complete the wordpress xml namespace name.\n<END>", "<BEGIN>\n## `import_authors`", "Retrieve all the authors used in posts\n and convert it to new or existing author and\n return the conversion.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_categories API. 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 import_categories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Import all the categories from 'wp:category' nodes, because categories in 'item' nodes are not necessarily all the categories and returning it in a dict for database optimizations.
"Import all the categories from 'wp:category' nodes,\n because categories in 'item' nodes are not necessarily\n all the categories and returning it in a dict for\n database optimizations."
20
false
django-blog-zinnia/wordpress2zinnia
import_categories
27,707
LDU_FT/Chilipp/funcargparse/format_epilog_section
LDU_FT
[ "<BEGIN>\n## `get_param_doc`", "Get the documentation and datatype for a parameter", " This function returns the documentation and the argument for a\n napoleon like structured docstring `doc`", " Parameters\n ----------\n doc: str\n The base docstring to use\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_epilog_section API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_epilog_section API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Format a section for the epilog by inserting a format
"Format a section for the epilog by inserting a format"
105
false
Chilipp/funcargparse
format_epilog_section
27,708
LDU_FT/inveniosoftware/invenio-marc21/transform_search_hit
LDU_FT
[ "<BEGIN>\n## `transform_record`", "Transform record into an intermediate representation.", " :param pid: The :class:`invenio_pidstore.models.PersistentIdentifier`\n instance.\n :param record: The :class:`invenio_records.api.Record` instance.\n :param links_factory: The link facto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_search_hit 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 transform_search_hit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Transform search result hit into an intermediate representation. :param pid: The :class:`invenio_pidstore.models.PersistentIdentifier` instance. :param record_hit: A dictionary containing a ``'_source'`` key with the record data. :param links_factory: The link factory. (...
"Transform search result hit into an intermediate representation.\n\n :param pid: The :class:`invenio_pidstore.models.PersistentIdentifier`\n instance.\n :param record_hit: A dictionary containing a ``'_source'`` key with\n the record data.\n :param links_factory: The link fac...
18
false
inveniosoftware/invenio-marc21
transform_search_hit
27,709
LDU_FT/bennylope/django-organizations/save
LDU_FT
[ "<BEGIN>\n## `invitation_backend`", "Returns a specified invitation backend", " Args:\n backend: dotted path to the invitation backend class\n namespace: URL namespace to use", " Returns:\n an instance of an InvitationBackend\n<END>", "<BEGIN>\n## `registration_backend`", "Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Create the organization, then get the user, then make the owner.
"Create the organization, then get the user, then make the owner."
90
false
bennylope/django-organizations
save
27,710
LDU_FT/HDI-Project/MLBlocks/fit
LDU_FT
[ "<BEGIN>\n## `_extract_params`", "Extract init, fit and produce params from kwargs.", " The `init_params`, `fit_params` and `produce_params` are extracted\n from the passed `kwargs` taking the metadata hyperparameters as a\n reference.", " During this extraction, make sure that all...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Fit the blocks of this pipeline. Sequentially call the `fit` and the `produce` methods of each block, capturing the outputs each `produce` method before calling the `fit` method of the next one. During the whole process a context dictionary is built, where both the passed argum...
"Fit the blocks of this pipeline.\n\n Sequentially call the `fit` and the `produce` methods of each block,\n capturing the outputs each `produce` method before calling the `fit`\n method of the next one.\n\n During the whole process a context dictionary is built, where both the\n pass...
111
false
HDI-Project/MLBlocks
fit
27,711
LDU_FT/mosdef-hub/mbuild/_add_intermol_molecule_type
LDU_FT
[ "<BEGIN>\n## `calc_dihedral`", "Calculates a dihedral angle", " Here, two planes are defined by (point1, point2, point3) and\n (point2, point3, point4). The angle between them is returned.", " Parameters\n ----------\n point1, point2, point3, point4 : array-like, shape=(3,), dtype=float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_intermol_molecule_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_intermol_molecule_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Create a molecule type for the parent and add bonds.
"Create a molecule type for the parent and add bonds."
463
false
mosdef-hub/mbuild
_add_intermol_molecule_type
27,712
LDU_FT/ternaris/marv/marvcli_develop_server
LDU_FT
[ "<BEGIN>\n## `encode_setid`", "Encode uint128 setid as stripped b32encoded string\n<END>", "<BEGIN>\n## `marvcli_cleanup`", "Cleanup unused tags and discarded datasets.\n<END>", "<BEGIN>\n## `marvcli_develop_server`", "Run development webserver.", " ATTENTION: By default it is only served on localhos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marvcli_develop_server 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 marvcli_develop_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Run development webserver. ATTENTION: By default it is only served on localhost. To run it within a container and access it from the outside, you need to forward the port and tell it to listen on all IPs instead of only localhost.
"Run development webserver.\n\n ATTENTION: By default it is only served on localhost. To run it\n within a container and access it from the outside, you need to\n forward the port and tell it to listen on all IPs instead of only\n localhost."
76
false
ternaris/marv
marvcli_develop_server
27,713
LDU_FT/sryza/spark-timeseries/_zdt_to_nanos
LDU_FT
[ "<BEGIN>\n## `fit_model`", "Fits an EWMA model to a time series. Uses the first point in the time series as a starting\n value. Uses sum squared error as an objective function to optimize to find smoothing parameter\n The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _zdt_to_nanos API. 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 _zdt_to_nanos API. 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...
Extracts nanoseconds from a ZonedDateTime
"Extracts nanoseconds from a ZonedDateTime"
137
false
sryza/spark-timeseries
_zdt_to_nanos
27,714
LDU_FT/bwohlberg/sporco/plot
LDU_FT
[ "<BEGIN>\n## `pyfftw_byte_aligned`", "Construct a byte-aligned array for efficient use by :mod:`pyfftw`.\n This function is a wrapper for :func:`pyfftw.byte_align`", " Parameters\n ----------\n array : ndarray\n Input array\n dtype : dtype, optional (default None)\n Output array dtype\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Plot points or lines in 2D. If a figure object is specified then the plot is drawn in that figure, and ``fig.show()`` is not called. The figure is closed on key entry 'q'. Parameters ---------- y : array_like 1d or 2d array of data to plot. If a 2d array, each column is plotted as a...
"Plot points or lines in 2D. If a figure object is specified then the\n plot is drawn in that figure, and ``fig.show()`` is not called. The\n figure is closed on key entry 'q'.\n\n Parameters\n ----------\n y : array_like\n 1d or 2d array of data to plot. If a 2d array, each column is\n plo...
1,237
true
bwohlberg/sporco
plot
27,715
LDU_FT/crdoconnor/strictyaml/ruamel_structure
LDU_FT
[ "<BEGIN>\n## `set_up`", "Set up your applications and the test environment.\n<END>", "<BEGIN>\n## `fork`", "Return a chunk referring to the same location in a duplicated document.", " Used when modifying a YAML chunk so that the modification can be validated\n before changing it.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ruamel_structure API. 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 ruamel_structure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Take dicts and lists and return a ruamel.yaml style structure of CommentedMaps, CommentedSeqs and data. If a validator is presented and the type is unknown, it is checked against the validator to see if it will turn it back in to YAML.
"Take dicts and lists and return a ruamel.yaml style\n structure of CommentedMaps, CommentedSeqs and\n data.\n\n If a validator is presented and the type is unknown,\n it is checked against the validator to see if it will\n turn it back in to YAML."
54
false
crdoconnor/strictyaml
ruamel_structure
27,716
LDU_FT/SpamScope/mail-parser/ported_string
LDU_FT
[ "<BEGIN>\n## `sanitize`", "NFC is the normalization form recommended by W3C.\n<END>", "<BEGIN>\n## `ported_string`", "Give as input raw data and output a str in Python 3\n and unicode in Python 2.", " Args:\n raw_data: Python 2 str, Python 3 bytes or str to porting\n encoding: string giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ported_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ported_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Give as input raw data and output a str in Python 3 and unicode in Python 2. Args: raw_data: Python 2 str, Python 3 bytes or str to porting encoding: string giving the name of an encoding errors: his specifies the treatment of characters which are invalid in the input encodi...
"Give as input raw data and output a str in Python 3\n and unicode in Python 2.\n\n Args:\n raw_data: Python 2 str, Python 3 bytes or str to porting\n encoding: string giving the name of an encoding\n errors: his specifies the treatment of characters\n which are invalid in the inpu...
90
false
SpamScope/mail-parser
ported_string
27,717
LDU_FT/geronimp/graftM/decorate
LDU_FT
[ "<BEGIN>\n## `_write_consensus_strings`", "Writes the taxonomy of each leaf to a file. If the leaf has no\n taxonomy, a taxonomy string will be created using the annotations\n provided to the ancestor nodes of that leaf (meaning, it will be\n decorated).", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decorate API. 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 decorate API. 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...
Decorate a tree with taxonomy. This code does not allow inconsistent taxonomy within a clade. If one sequence in a clade has a different annotation to the rest, it will split the clade. Paraphyletic group names are distinguished if unique_names = True using a simple tally of each group (...
"Decorate a tree with taxonomy. This code does not allow inconsistent\n taxonomy within a clade. If one sequence in a clade has a different\n annotation to the rest, it will split the clade. Paraphyletic group\n names are distinguished if unique_names = True using a simple tally of\n each gr...
334
false
geronimp/graftM
decorate
27,718
LDU_FT/heroku/heroku.py/from_key
LDU_FT
[ "<BEGIN>\n## `_ids`", "The list of primary keys to validate against.\n<END>", "<BEGIN>\n## `rollback`", "Rolls back the release to the given version.\n<END>", "<BEGIN>\n## `transfer`", "Transfers app to given username's account.\n<END>", "<BEGIN>\n## `new`", "Creates a new Process\n Attach: If ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extracte...
Returns an authenticated Heroku instance, via API Key.
"Returns an authenticated Heroku instance, via API Key."
25
false
heroku/heroku.py
from_key
27,719
LDU_FT/llllllllll/codetransformer/_pop_import_LOAD_ATTRs
LDU_FT
[ "<BEGIN>\n## `_new_lnotab`", "The updated lnotab after the instructions have been transformed.", " Parameters\n ----------\n instrs : iterable[Instruction]\n The new instructions.\n lnotab : dict[Instruction -> int]\n The lnotab for the old code object.", " Returns\n -------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pop_import_LOAD_ATTRs 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 _pop_import_LOAD_ATTRs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Pop LOAD_ATTR instructions for an import of the form:: import a.b.c as d which should generate bytecode like this:: 1 0 LOAD_CONST 0 (0) 3 LOAD_CONST 1 (None) 6 IMPORT_NAME 0 (a.b.c.d) 9...
"Pop LOAD_ATTR instructions for an import of the form::\n\n import a.b.c as d\n\n which should generate bytecode like this::\n\n 1 0 LOAD_CONST 0 (0)\n 3 LOAD_CONST 1 (None)\n 6 IMPORT_NAME 0 (a.b.c.d)\n ...
223
false
llllllllll/codetransformer
_pop_import_LOAD_ATTRs
27,720
LDU_FT/gebn/wood/zip_dict
LDU_FT
[ "<BEGIN>\n## `_normalise_path`", "Ensures a path is parsed.", " :param path: A path string or Path object.\n :return: The path as a Path object.\n<END>", "<BEGIN>\n## `root`", "Retrieve a root directory object from a path.", " :param path: The path string or Path object.\n :return: The created...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zip_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the zip_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 extracte...
Combine the values within two dictionaries by key. :param a: The first dictionary. :param b: The second dictionary. :return: A dictionary containing all keys that appear in the union of a and b. Values are pairs where the first part is a's value for the key, and right second part ...
"Combine the values within two dictionaries by key.\n\n :param a: The first dictionary.\n :param b: The second dictionary.\n :return: A dictionary containing all keys that appear in the union of a and\n b. Values are pairs where the first part is a's value for the key,\n and right secon...
70
false
gebn/wood
zip_dict
27,721
LDU_FT/wdecoster/nanoget/get_pID
LDU_FT
[ "<BEGIN>\n## `process_summary`", "Extracting information from an albacore summary file.", " Only reads which have a >0 length are returned.", " The fields below may or may not exist, depending on the type of sequencing performed.\n Fields 1-14 are for 1D sequencing.\n Fields 1-23 for 2D sequencing...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pID API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pID API. 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 percent identity of a read. based on the NM tag if present, if not calculate from MD tag and CIGAR string read.query_alignment_length can be zero in the case of ultra long reads aligned with minimap2 -L
"Return the percent identity of a read.\n\n based on the NM tag if present,\n if not calculate from MD tag and CIGAR string\n\n read.query_alignment_length can be zero in the case of ultra long reads aligned with minimap2 -L"
63
false
wdecoster/nanoget
get_pID
27,722
LDU_FT/pudo/normality/remove_unsafe_chars
LDU_FT
[ "<BEGIN>\n## `_safe_name`", "Convert the file name to ASCII and normalize the string.\n<END>", "<BEGIN>\n## `safe_filename`", "Create a secure filename for plain file system storage.\n<END>", "<BEGIN>\n## `stringify`", "Brute-force convert a given object to a string.", " This will attempt an increasi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_unsafe_chars 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 remove_unsafe_chars 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 unsafe unicode characters from a piece of text.
"Remove unsafe unicode characters from a piece of text."
33
false
pudo/normality
remove_unsafe_chars
27,723
LDU_FT/perrygeo/simanneal/__shpHeader
LDU_FT
[ "<BEGIN>\n## `distance`", "Calculates distance between two latitude-longitude coordinates.\n<END>", "<BEGIN>\n## `round_figures`", "Returns x rounded to n significant figures.\n<END>", "<BEGIN>\n## `set_schedule`", "Takes the output from `auto` and sets the attributes\n<END>", "<BEGIN>\n## `copy_state`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __shpHeader API. 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 __shpHeader API. 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...
Reads the header information from a .shp or .shx file.
"Reads the header information from a .shp or .shx file."
67
false
perrygeo/simanneal
__shpHeader
27,724
LDU_FT/spacetelescope/drizzlepac/process
LDU_FT
[ "<BEGIN>\n## `check_and_get_data`", "Verify that all specified files are present. If not, retrieve them from MAST.", " Parameters\n ----------\n input_list : list\n List of one or more calibrated fits images that will be used for catalog generation.", " Returns\n =======\n total_input...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process API. 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 process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Run astrodrizzle on input file/ASN table using default values for astrodrizzle parameters.
"Run astrodrizzle on input file/ASN table\n using default values for astrodrizzle parameters."
1,138
true
spacetelescope/drizzlepac
process
27,725
LDU_FT/a-tal/kezmenu3/_effectupdate_enlarge_font_on_focus
LDU_FT
[ "<BEGIN>\n## `_effectinit_enlarge_font_on_focus`", "Init the effect that enlarge the focused menu entry.\n Keyword arguments can contain enlarge_time and enlarge_factor.\n<END>", "<BEGIN>\n## `_effectupdate_enlarge_font_on_focus`", "Gradually enlarge the font size of the focused line.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _effectupdate_enlarge_font_on_focus API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _effectupdate_enlarge_font_on_focus API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Gradually enlarge the font size of the focused line.
"Gradually enlarge the font size of the focused line."
17
false
a-tal/kezmenu3
_effectupdate_enlarge_font_on_focus
27,726
LDU_FT/ianmiell/shutit/insert_text
LDU_FT
[ "<BEGIN>\n## `parse_shutitfile_args`", "Parse shutitfile args (eg in the line 'RUN some args', the passed-in args_str would be 'some args').\n\tIf the string is bounded by square brackets, then it's treated in the form: ['arg1','arg2'], and the returned list looks the same.\n\tIf the string composed entirely of n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Insert a chunk of text at the end of a file, or after (or before) the first matching pattern in given file fname. See change_text
"Insert a chunk of text at the end of a file, or after (or before) the first matching pattern\n\t\tin given file fname.\n\t\tSee change_text"
498
false
ianmiell/shutit
insert_text
27,727
LDU_FT/shaunduncan/nosqlite/_get_operator_fn
LDU_FT
[ "<BEGIN>\n## `_eq`", "Returns True if the value of a document field is equal to a given value\n<END>", "<BEGIN>\n## `_gt`", "Returns True if the value of a document field is greater than a given value\n<END>", "<BEGIN>\n## `_lt`", "Returns True if the value of a document field is less than a given value\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_operator_fn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_operator_fn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns the function in this module that corresponds to an operator string. This simply checks if there is a method that handles the operator defined in this module, replacing '$' with '_' (i.e. if this module has a _gt method for $gt) and returns it. If no match is found, or the operator does n...
"Returns the function in this module that corresponds to an operator string.\n This simply checks if there is a method that handles the operator defined\n in this module, replacing '$' with '_' (i.e. if this module has a _gt\n method for $gt) and returns it. If no match is found, or the operator do...
53
false
shaunduncan/nosqlite
_get_operator_fn
27,728
LDU_FT/Grunny/zap-cli/set_policy_attack_strength
LDU_FT
[ "<BEGIN>\n## `list_scanners`", "Get a list of scanners and whether or not they are enabled.\n<END>", "<BEGIN>\n## `list_policies`", "Get a list of policies and whether or not they are enabled.\n<END>", "<BEGIN>\n## `enable_policies`", "Set the enabled policies to use in a scan.", " When you enable a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_policy_attack_strength API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_policy_attack_strength API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Set the attack strength for the given policies.
"Set the attack strength for the given policies."
63
false
Grunny/zap-cli
set_policy_attack_strength
27,729
LDU_FT/ziwenxie/netease-dl/select_one_song
LDU_FT
[ "<BEGIN>\n## `download_song_by_search`", "Download a song by its name.", " :params song_name: song name.\n<END>", "<BEGIN>\n## `download_song_by_id`", "Download a song by id and save it to disk.", " :params song_id: song id.\n :params song_name: song name.\n :params folder: sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_one_song API. 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 select_one_song API. 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...
Display the songs returned by search api. :params songs: API['result']['songs'] :return: a Song object.
"Display the songs returned by search api.\n\n :params songs: API['result']['songs']\n :return: a Song object."
99
false
ziwenxie/netease-dl
select_one_song
27,730
LDU_FT/CenturyLinkCloud/clc-python-sdk/Grow
LDU_FT
[ "<BEGIN>\n## `SetCredentials`", "Establish API username and password associated with APIv2 commands.\n<END>", "<BEGIN>\n## `get_session`", "Start a session with the given parameters", "\tUse instead of SetCredentials if you need a session object to avoid the use of global credentials.", "\tReturns a sessi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Grow API. 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 Grow API. 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...
Grow disk to the newly specified size. Size must be less than 1024 and must be greater than the current size. >>> clc.v2.Server("WA1BTDIX01").Disks().disks[2].Grow(30).WaitUntilComplete() 0
"Grow disk to the newly specified size.\n\n\t\tSize must be less than 1024 and must be greater than the current size.\n\n\t\t>>> clc.v2.Server(\"WA1BTDIX01\").Disks().disks[2].Grow(30).WaitUntilComplete()\n\t\t0"
402
false
CenturyLinkCloud/clc-python-sdk
Grow
27,731
LDU_FT/specialunderwear/django-easymode/start_serialization
LDU_FT
[ "<BEGIN>\n## `serialize`", "Serialize a queryset.\n THE OUTPUT OF THIS SERIALIZER IS NOT MEANT TO BE SERIALIZED BACK\n INTO THE DB.\n<END>", "<BEGIN>\n## `start_serialization`", "Start serialization -- open the XML document and the root element.\n<END>", "<BEGIN>\n## `handle_field`", "Called...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_serialization 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 start_serialization 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...
Start serialization -- open the XML document and the root element.
"Start serialization -- open the XML document and the root element."
136
false
specialunderwear/django-easymode
start_serialization
27,732
LDU_FT/alexras/pylsdj/write_wav
LDU_FT
[ "<BEGIN>\n## `import_from_file`", "Import this instrument's settings from the given file. Will\n automatically add the instrument's synth and table to the song's\n synths and tables if needed.", " Note that this may invalidate existing instrument accessor objects.", " :param index:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_wav API. 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 write_wav API. 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...
Write this sample to a WAV file. :param filename: the file to which to write
"Write this sample to a WAV file.\n\n :param filename: the file to which to write"
63
false
alexras/pylsdj
write_wav
27,733
LDU_FT/inorton/junit2html/process
LDU_FT
[ "<BEGIN>\n## `anchor`", "Generate a html anchor name\n :return:\n<END>", "<BEGIN>\n## `html`", "Render this test class as html\n :return:\n<END>", "<BEGIN>\n## `html`", "Render those properties as html\n :return:\n<END>", "<BEGIN>\n## `html`", "Render this test case as HTML\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process API. 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 process API. 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...
populate the report from the xml :return:
"populate the report from the xml\n :return:"
22
false
inorton/junit2html
process
27,734
LDU_FT/gbiggs/rtctree/polarity_as_string
LDU_FT
[ "<BEGIN>\n## `build_attr_string`", "Build a string that will turn any ANSI shell output the desired\r\n colour.\r", " attrs should be a list of keys into the term_attributes table.\n<END>", "<BEGIN>\n## `get_num_columns_and_rows`", "Given a list of string widths, a width of the minimum gap to place\r\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polarity_as_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polarity_as_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get the polarity of this interface as a string. @param add_colour If True, ANSI colour codes will be added to the string. @return A string describing the polarity of this interface.
"Get the polarity of this interface as a string.\n\n @param add_colour If True, ANSI colour codes will be added to the\n string.\n @return A string describing the polarity of this interface."
285
false
gbiggs/rtctree
polarity_as_string
27,735
LDU_FT/TomasTomecek/sen/extract_data_from_inspect
LDU_FT
[ "<BEGIN>\n## `quit`", "This could be called from another thread, so let's do this via alarm\n<END>", "<BEGIN>\n## `_set_main_widget`", "add provided widget to widget list and display it", " :param widget:\n :return:\n<END>", "<BEGIN>\n## `display_buffer`", "display provided buffer", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_data_from_inspect 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 extract_data_from_inspect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
:param network_name: str :param network_data: dict :return: dict: { "ip_address4": "12.34.56.78" "ip_address6": "ff:fa:..." }
":param network_name: str\n :param network_data: dict\n :return: dict:\n {\n \"ip_address4\": \"12.34.56.78\"\n \"ip_address6\": \"ff:fa:...\"\n }"
85
false
TomasTomecek/sen
extract_data_from_inspect
27,736
LDU_FT/wilson-eft/wilson/Flavio_to_Fierz_chrom
LDU_FT
[ "<BEGIN>\n## `alpha_s`", "3-loop computation of alpha_s for f flavours\n with initial condition alpha_s(MZ) = 0.1185\n<END>", "<BEGIN>\n## `m_b`", "r\"\"\"Get running b quark mass in the MSbar scheme at the scale `scale`\n in the theory with `f` dynamical quark flavours starting from $m_b(m_b)$\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Flavio_to_Fierz_chrom 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 Flavio_to_Fierz_chrom API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
From Flavio to chromomagnetic Fierz basis for Class V. qq should be of the form 'sb', 'db' etc.
"From Flavio to chromomagnetic Fierz basis for Class V.\n qq should be of the form 'sb', 'db' etc."
216
false
wilson-eft/wilson
Flavio_to_Fierz_chrom
27,737
LDU_FT/datadesk/python-documentcloud/getsize
LDU_FT
[ "<BEGIN>\n## `_make_request`", "Configure a HTTP request, fire it off and return the response.\n<END>", "<BEGIN>\n## `_get_search_page`", "Retrieve one page of search results from the DocumentCloud API.\n<END>", "<BEGIN>\n## `search`", "Retrieve all objects that make a search query.", " Will loop...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getsize API. 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 getsize API. 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 size, either by seeeking to the end.
"get the size, either by seeeking to the end."
107
false
datadesk/python-documentcloud
getsize
27,738
LDU_FT/caseyjlaw/rtpipe/make_cand_plot
LDU_FT
[ "<BEGIN>\n## `get_metadata`", "Function to scan data (a small read) and define parameters used elsewhere.\n filename needs full path.\n Examples include, read/bgsub windows, image grid, memory profile.\n If pickle file doesn't exist, it creates one. \n Either way, dictionary is returned with info.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_cand_plot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_cand_plot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Builds a new candidate plot, distinct from the original plots produced by make_cand_plot. Expects phased, dedispersed data (cut out in time, dual-pol), image, and metadata version 2 is the new one (thanks to bridget andersen). version 1 is the initial one. loclabel is used to label the plot with (scan, seg...
"Builds a new candidate plot, distinct from the original plots produced by make_cand_plot.\n Expects phased, dedispersed data (cut out in time, dual-pol), image, and metadata\n\n version 2 is the new one (thanks to bridget andersen). version 1 is the initial one.\n loclabel is used to label the plot with (scan...
256
false
caseyjlaw/rtpipe
make_cand_plot
27,739
LDU_FT/ApproxEng/approxeng.input/button_pressed
LDU_FT
[ "<BEGIN>\n## `map_into_range`", "Map an input function into an output value, clamping such that the magnitude of the output is at most 1.0", " :param low:\n The value in the input range corresponding to zero.\n :param high:\n The value in the input range corresponding to 1.0 or -1.0, dependi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the button_pressed API. 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 button_pressed API. 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...
Called from the controller classes to update the state of this button manager when a button is pressed. :internal: :param key_code: The code specified when populating Button instances :param prefix: Applied to key code if present
"Called from the controller classes to update the state of this button manager when a button is pressed.\n\n :internal:\n\n :param key_code:\n The code specified when populating Button instances\n :param prefix:\n Applied to key code if present"
86
false
ApproxEng/approxeng.input
button_pressed
27,740
LDU_FT/bububa/pyTOP/items_detail_get
LDU_FT
[ "<BEGIN>\n## `ordersku_update`", "taobao.trade.ordersku.update 更新交易订单的销售属性", " 需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能\n<END>", "<BEGIN>\n## `get`", "taobao.topats.result.get 获取异步任务结果", " 使用指南:http://open.taobao.com/doc/detail.htm?id=30 ", " - 1.此接口用于获取异步任务处理的结果,传入的task_id必需属...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items_detail_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items_detail_get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
taobao.taobaoke.items.detail.get 查询淘宝客推广商品详细信息 查询淘宝客推广商品详细信息
"taobao.taobaoke.items.detail.get 查询淘宝客推广商品详细信息\n \n 查询淘宝客推广商品详细信息"
619
false
bububa/pyTOP
items_detail_get
27,741
LDU_FT/dev-pipeline/dev-pipeline-core/args_builder
LDU_FT
[ "<BEGIN>\n## `sanitize`", "Run all availalbe sanitizers across a configuration.", " Arguments:\n configuration - a full project configuration\n error_fn - A function to call if a sanitizer check fails. The function\n takes a single argument: a description of the problem; provide\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the args_builder API. 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 args_builder API. 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...
Process arguments a tool cares about. Since most tools require configuration, this function helps deal with the boilerplate. Each option will be processed based on all modifications supported by dev-pipeline (i.e., profiles and overrides) in the proper order. Arguments: prefix -- The prefix f...
"Process arguments a tool cares about.\n\n Since most tools require configuration, this function helps deal with the\n boilerplate. Each option will be processed based on all modifications\n supported by dev-pipeline (i.e., profiles and overrides) in the proper\n order.\n\n Arguments:\n prefix -- The...
46
false
dev-pipeline/dev-pipeline-core
args_builder
27,742
LDU_FT/DataBiosphere/toil/workerScript
LDU_FT
[ "<BEGIN>\n## `html_page_context`", "Event handler for the html-page-context signal.\n Modifies the context directly.\n - Replaces the 'toc' value created by the HTML builder with one\n that shows all document titles and the local table of contents.\n - Sets display_toc to True so the table of con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the workerScript API. 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 workerScript API. 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...
Worker process script, runs a job. :param str jobName: The "job name" (a user friendly name) of the job to be run :param str jobStoreLocator: Specifies the job store to use :param str jobStoreID: The job store ID of the job to be run :param bool redirectOutputToLogFile: Redirect standard out and s...
"Worker process script, runs a job. \n \n :param str jobName: The \"job name\" (a user friendly name) of the job to be run\n :param str jobStoreLocator: Specifies the job store to use\n :param str jobStoreID: The job store ID of the job to be run\n :param bool redirectOutputToLogFile: Redirect standard o...
1,322
true
DataBiosphere/toil
workerScript
27,743
LDU_FT/devopshq/artifactory/copy
LDU_FT
[ "<BEGIN>\n## `_create_and_update`", "Create or update request, re-read object from Artifactory\n :return: None\n<END>", "<BEGIN>\n## `read`", "Read object from artifactory. Fill object if exist\n :return:\n True if object exist,\n False else\n<END>", "<BEGIN>\n## `_create_json`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. 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 copy API. 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...
Copy artifact from this path to destinaiton. If files are on the same instance of artifactory, lightweight (local) copying will be attempted. The suppress_layouts parameter, when set to True, will allow artifacts from one path to be copied directly into another path without enforcing ...
"Copy artifact from this path to destinaiton.\n If files are on the same instance of artifactory, lightweight (local)\n copying will be attempted.\n\n The suppress_layouts parameter, when set to True, will allow artifacts\n from one path to be copied directly into another path without enforc...
104
false
devopshq/artifactory
copy
27,744
LDU_FT/gplepage/lsqfit/_flatten_models
LDU_FT
[ "<BEGIN>\n## `run`", "Append version number to lsqfit/__init__.py\n<END>", "<BEGIN>\n## `_reformat`", "Apply format of ``p`` to data in 1-d array ``buf``.\n<END>", "<BEGIN>\n## `_unpack_data`", "Unpack data and prior into ``(x, y, prior, fdata)``.", " This routine unpacks ``data`` and ``prior`` into ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _flatten_models API. 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 _flatten_models API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Create 1d-array containing all disctinct models from ``tasklist``.
"Create 1d-array containing all disctinct models from ``tasklist``."
208
false
gplepage/lsqfit
_flatten_models
27,745
LDU_FT/learningequality/ricecooker/validate
LDU_FT
[ "<BEGIN>\n## `_write_to_zip`", "_write_to_zip: Write file to zip\n Args:\n path: (str) where in zip to write file\n contents: (str) contents of file to write\n Returns: None\n<END>", "<BEGIN>\n## `_commit`", "_commit: Adds folder/file to map\n Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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...
validate: Makes sure HTML5 app is valid Args: None Returns: boolean indicating if HTML5 app is valid
"validate: Makes sure HTML5 app is valid\n Args: None\n Returns: boolean indicating if HTML5 app is valid"
364
false
learningequality/ricecooker
validate
27,746
LDU_FT/rfverbruggen/rachiopy/postWebhook
LDU_FT
[ "<BEGIN>\n## `seasonalAdjustment`", "Seasonal adjustment for a schedule rule (watering time).", " This adjustment amount will be applied to the overall run time of the\n selected schedule while overriding any current adjustments.\n<END>", "<BEGIN>\n## `get`", "Retrieve the information for a sc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the postWebhook API. 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 postWebhook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Add a webhook to a device. externalId can be used as opaque data that is tied to your company, and passed back in each webhook event response.
"Add a webhook to a device.\n\n externalId can be used as opaque data that\n is tied to your company, and passed back in each webhook event\n response."
24
false
rfverbruggen/rachiopy
postWebhook
27,747
LDU_FT/schneiderfelipe/pyrrole/create_data
LDU_FT
[ "<BEGIN>\n## `_parse_chemical_equation`", "Parse the chemical equation mini-language.", " See the docstring of `ChemicalEquation` for more.", " Parameters\n ----------\n value : `str`\n A string in chemical equation mini-language.", " Returns\n -------\n mapping\n A mappin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Produce a single data object from an arbitrary number of different objects. This function returns a single `pandas.DataFrame` object from a collection of `Atoms` and `pandas.DataFrame` objects. The returned object, already indexed by `Atoms.name`, can be promptly used by e.g. `ChemicalSystem`. Paramet...
"Produce a single data object from an arbitrary number of different objects.\n\n This function returns a single `pandas.DataFrame` object from a collection\n of `Atoms` and `pandas.DataFrame` objects. The returned object, already\n indexed by `Atoms.name`, can be promptly used by e.g. `ChemicalSystem`.\n\n ...
153
false
schneiderfelipe/pyrrole
create_data
27,748
LDU_FT/miso-belica/jusText/decode_html
LDU_FT
[ "<BEGIN>\n## `output_default`", "Outputs the paragraphs as:\n <tag> text of the first paragraph\n <tag> text of the second paragraph\n ...\n where <tag> is <p>, <h> or <b> which indicates\n standard paragraph, heading or boilerplate respecitvely.\n<END>", "<BEGIN>\n## `output_detailed`", "Same ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_html API. 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 decode_html API. 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...
Converts a `html` containing an HTML page into Unicode. Tries to guess character encoding from meta tag.
"Converts a `html` containing an HTML page into Unicode.\n Tries to guess character encoding from meta tag."
18
false
miso-belica/jusText
decode_html
27,749
LDU_FT/helium/helium-python/metadata
LDU_FT
[ "<BEGIN>\n## `error_for`", "Return the appropriate initialized exception class for a response.\n<END>", "<BEGIN>\n## `device_configuration`", "Get a specific device configuration.", " A device can have at most one loaded and one pending device\n configuration. This returns that device_configur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Create a metadata method builder. Returns: A builder function that, given a class, creates a metadata relationship for that class.
"Create a metadata method builder.\n\n Returns:\n\n A builder function that, given a class, creates a metadata\n relationship for that class."
223
false
helium/helium-python
metadata
27,750
LDU_FT/kennethreitz/legit/status_log
LDU_FT
[ "<BEGIN>\n## `unstash_index`", "Returns an unstash index if one is available.\n<END>", "<BEGIN>\n## `unstash_it`", "Unstashes changes from current branch for branch sync.\n Requires prior code setting self.stash_index.\n<END>", "<BEGIN>\n## `smart_pull`", "'git log --merges origin/master..master'\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status_log API. 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 status_log API. 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...
Emits header message, executes a callable, and echoes the return strings.
"Emits header message, executes a callable, and echoes the return strings."
25
false
kennethreitz/legit
status_log
27,751
LDU_FT/AmesCornish/buttersink/linuxPaths
LDU_FT
[ "<BEGIN>\n## `update`", "Update self and parent with intermediate progress.\n<END>", "<BEGIN>\n## `close`", "Stop overwriting display, or update parent.\n<END>", "<BEGIN>\n## `transfer`", "Transfer (large) data from sender to receiver.\n<END>", "<BEGIN>\n## `display`", "Friendly string for volume, usi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linuxPaths API. 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 linuxPaths API. 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 full paths from linux root. The first path returned will be the path through the top-most mount. (Usually the root).
"Return full paths from linux root.\n\n The first path returned will be the path through the top-most mount.\n (Usually the root)."
148
false
AmesCornish/buttersink
linuxPaths
27,752
LDU_FT/cstatz/maui/minimum_pitch
LDU_FT
[ "<BEGIN>\n## `slice_local_to_global`", "Calculate start and stop index for mapping sliced index", " :param index_slice: sliced index?\n :param axis: current axis to calculate\n :return: slice object as calculated\n<END>", "<BEGIN>\n## `local_to_global`", "Calculate local index from glob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minimum_pitch API. 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 minimum_pitch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns the minimal pitch between two neighboring nodes of the mesh in each direction. :return: Minimal pitch in each direction.
"Returns the minimal pitch between two neighboring nodes of the mesh in each direction.\n\n :return: Minimal pitch in each direction."
54
false
cstatz/maui
minimum_pitch
27,753
LDU_FT/Alignak-monitoring/alignak/_get_queue_for_the_action
LDU_FT
[ "<BEGIN>\n## `is_active`", "Know if this result modulation is active now", " :return: True is we are in the period, otherwise False\n :rtype: bool\n<END>", "<BEGIN>\n## `module_return`", "Module the exit code if necessary ::", " * modulation_period is legit\n * exit_code_modula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_queue_for_the_action 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 _get_queue_for_the_action API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Find action queue for the action depending on the module. The id is found with action modulo on action id :param a: the action that need action queue to be assigned :type action: object :return: worker id and queue. (0, None) if no queue for the module_type :rtype: tuple
"Find action queue for the action depending on the module.\n The id is found with action modulo on action id\n\n :param a: the action that need action queue to be assigned\n :type action: object\n :return: worker id and queue. (0, None) if no queue for the module_type\n :rtype: tuple"
3,377
true
Alignak-monitoring/alignak
_get_queue_for_the_action
27,754
LDU_FT/HydrelioxGitHub/PyYeelight/set_hsv_color
LDU_FT
[ "<BEGIN>\n## `build_message`", "Make the one string message sent to the bulb\n<END>", "<BEGIN>\n## `decode_response`", "Put in self.result the data from the response\n Can generate exception if the command and the response id does not match\n of if the response is an error\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_hsv_color API. 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 set_hsv_color API. 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...
Set the color of the bulb using hsv code. The bulb must be switched on. TODO : Resolve bug found trying to set hue to 100 and sat to 100 (General error) :param hue: Hue component of the color between 0 and 359 :param saturation: Saturation component of the color between 0 and 100 ...
"Set the color of the bulb using hsv code. The bulb must be switched on.\n TODO : Resolve bug found trying to set hue to 100 and sat to 100 (General error)\n\n :param hue: Hue component of the color between 0 and 359\n :param saturation: Saturation component of the color between 0 and 1...
40
false
HydrelioxGitHub/PyYeelight
set_hsv_color
27,755
LDU_FT/pbrisk/timewave/_run_process
LDU_FT
[ "<BEGIN>\n## `initialize_worker`", "inits producer for a simulation run on a single process\n<END>", "<BEGIN>\n## `initialize_path`", "inits producer for next path, i.e. sets current state to initial state\n<END>", "<BEGIN>\n## `evolve`", "evolve to the new process state at the next date, i.e. do one step...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_process API. 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 _run_process API. 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...
The function calls _run_path for given set of paths
"The function calls _run_path for given set of paths"
50
false
pbrisk/timewave
_run_process
27,756
LDU_FT/Nike-Inc/cerberus-python-client/get_file_versions
LDU_FT
[ "<BEGIN>\n## `throw_if_bad_response`", "Throw an exception if the Cerberus response is not successful.\n<END>", "<BEGIN>\n## `_add_slash`", "if a string doesn't end in a '/' add one\n<END>", "<BEGIN>\n## `_set_token`", "Set the Cerberus token based on auth type\n<END>", "<BEGIN>\n## `get_roles`", "Ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_versions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_versions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get versions of a particular file This is just a shim to get_secret_versions secure_data_path -- full path to the file in the safety deposit box limit -- Default(100), limits how many records to be returned from the api at once. offset -- Default(0), used for pagination. Will request r...
"Get versions of a particular file\n This is just a shim to get_secret_versions\n\n secure_data_path -- full path to the file in the safety deposit box\n limit -- Default(100), limits how many records to be returned from the api at once.\n offset -- Default(0), used for pagination. Will req...
86
false
Nike-Inc/cerberus-python-client
get_file_versions
27,757
LDU_FT/GemHQ/round-py/update
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new Device object.", " Devices tie Users and Applications together. For your Application to\n access and act on behalf of a User, the User must authorize a Device\n created by your Application.", " This function will return a `device_token` which y...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update the Account resource with specified content. Args: name (str): Human-readable name for the account Returns: the updated Account object.
"Update the Account resource with specified content.\n\n Args:\n name (str): Human-readable name for the account\n\n Returns: the updated Account object."
136
false
GemHQ/round-py
update
27,758
LDU_FT/dangunter/smoqe/add_clause
LDU_FT
[ "<BEGIN>\n## `to_mongo`", "Transform a simple query with one or more filter expressions\n into a MongoDB query expression.", " :param qry: Filter expression(s), see function docstring for details.\n :type qry: str or list\n :return: MongoDB query\n :rtype: dict\n :raises: BadExpression, if one...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_clause API. 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 add_clause API. 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...
Add a new clause to the existing query. :param clause: The clause to add :type clause: MongoClause :return: None
"Add a new clause to the existing query.\n\n :param clause: The clause to add\n :type clause: MongoClause\n :return: None"
52
false
dangunter/smoqe
add_clause
27,759
LDU_FT/sods/paramz/link_parameter
LDU_FT
[ "<BEGIN>\n## `adjust_name_for_printing`", "Make sure a name can be printed, alongside used as a variable name.\n<END>", "<BEGIN>\n## `name`", "Set the name of this object.\n Tell the parent if the name has changed.\n<END>", "<BEGIN>\n## `hierarchy_name`", "return the name for this object with the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link_parameter API. 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 link_parameter API. 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...
:param parameters: the parameters to add :type parameters: list of or one :py:class:`paramz.param.Param` :param [index]: index of where to put parameters Add all parameters to this param class, you can insert parameters at any given index using the :func:`list.insert` syntax
":param parameters: the parameters to add\n :type parameters: list of or one :py:class:`paramz.param.Param`\n :param [index]: index of where to put parameters\n\n Add all parameters to this param class, you can insert parameters\n at any given index using the :func:`list.insert` synta...
225
false
sods/paramz
link_parameter
27,760
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...
channel: 1=OP1, 2=OP2, AUX is not supported
"channel: 1=OP1, 2=OP2, AUX is not supported"
147
false
SiLab-Bonn/basil
set_current_limit
27,761
LDU_FT/eventbrite/eventbrite-sdk-python/objectify
LDU_FT
[ "<BEGIN>\n## `objectify`", "Converts the returned value from a models.Payload to\n a models.EventbriteObject. Used by the access methods\n of the client.Eventbrite object\n<END>", "<BEGIN>\n## `get_category`", "GET /categories/:id/\n Gets a :format:`category` by ID as ``category``.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the objectify API. 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 objectify API. 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...
Converts the returned value from a models.Payload to a models.EventbriteObject. Used by the access methods of the client.Eventbrite object
"Converts the returned value from a models.Payload to\n a models.EventbriteObject. Used by the access methods\n of the client.Eventbrite object"
194
false
eventbrite/eventbrite-sdk-python
objectify
27,762
LDU_FT/stlehmann/Flask-MQTT/on_publish
LDU_FT
[ "<BEGIN>\n## `on_topic`", "Decorator.", " Decorator to add a callback function that is called when a certain\n topic has been published. The callback function is expected to have the\n following form: `handle_topic(client, userdata, message)`", " :parameter topic: a string specifyi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_publish API. 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 on_publish API. 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...
Decorator. Decorator to handle all messages that have been published by the client. **Example Usage:**:: @mqtt.on_publish() def handle_publish(client, userdata, mid): print('Published message with mid {}.' .format(mid))
"Decorator.\n\n Decorator to handle all messages that have been published by the\n client.\n\n **Example Usage:**::\n\n @mqtt.on_publish()\n def handle_publish(client, userdata, mid):\n print('Published message with mid {}.'\n .format(mid))"
48
false
stlehmann/Flask-MQTT
on_publish
27,763
LDU_FT/zxylvlp/PingPHP/p_Callable
LDU_FT
[ "<BEGIN>\n## `t_DOCCOMMENT`", "r'((\\'\\'\\'((?!\\'\\'\\')[\\s\\S])*\\'\\'\\')|(\\'{6,8})|(\"\"\"((?!\"\"\")[\\s\\S])*\"\"\")|(\"{6,8}))[ \\t]*\\n\n<END>", "<BEGIN>\n## `t_NATIVEPHP`", "r'<\\?php((?!<\\?php)[\\s\\S])*\\?>[ \\t]*(?=\\n)\n<END>", "<BEGIN>\n## `t_INDENTIFIER`", "r'(\\$?[_a-zA-Z][_a-zA-Z0-9]*...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_Callable API. 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 p_Callable API. 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...
Callable : NsContentName LPARENT | NsContentName SCOPEOP INDENTIFIER LPARENT | Expression LPARENT | STATIC SCOPEOP INDENTIFIER LPARENT
"Callable : NsContentName LPARENT\n | NsContentName SCOPEOP INDENTIFIER LPARENT\n | Expression LPARENT\n | STATIC SCOPEOP INDENTIFIER LPARENT"
74
false
zxylvlp/PingPHP
p_Callable
27,764
LDU_FT/DinoTools/python-overpy/get_street
LDU_FT
[ "<BEGIN>\n## `_handle_remark_msg`", "Try to parse the message provided with the remark tag or element.", " :param str msg: The message\n :raises overpy.exception.OverpassRuntimeError: If message starts with 'runtime error:'\n :raises overpy.exception.OverpassRuntimeRemark: If message starts...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_street API. 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_street API. 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...
Retrieve streets in a given bounding area :param overpy.Overpass api: First street of intersection :param String street: Name of street :param String areacode: The OSM id of the bounding area :return: Parsed result :raises overpy.exception.OverPyException: If something bad happens.
"Retrieve streets in a given bounding area\n\n :param overpy.Overpass api: First street of intersection\n :param String street: Name of street\n :param String areacode: The OSM id of the bounding area\n :return: Parsed result\n :raises overpy.exception.OverPyException: If something bad happens."
119
false
DinoTools/python-overpy
get_street
27,765
LDU_FT/sqrvrtx/plaid/do_check
LDU_FT
[ "<BEGIN>\n## `parse`", "Takes a list of files which are assumed to be jinja2 templates and tries to\n parse the contents of the files", " Args:\n file_contents (str): File contents of a jinja file", " Raises:\n Exception: An exception is raised if the contents of the file cannot be\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 extracte...
Generic do_check helper method Args: func (function): Specific function to call files (list): list of files to run against status (list): list of pre-receive check failures to eventually print to the user Returns: status list of current pre-redeive check f...
"Generic do_check helper method\n\n Args:\n func (function): Specific function to call\n files (list): list of files to run against\n status (list): list of pre-receive check failures to eventually print\n to the user\n\n Returns:\n status list of current pre-redei...
22
false
sqrvrtx/plaid
do_check
27,766
LDU_FT/michaelaye/pyciss/filter_for_ringspan
LDU_FT
[ "<BEGIN>\n## `get_config`", "Read the configfile and return config dict.", " Returns\n -------\n dict\n Dictionary with the content of the configpath file.\n<END>", "<BEGIN>\n## `set_database_path`", "Use to write the database path into the config.", " Parameters\n ----------\n db...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_for_ringspan 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 filter_for_ringspan 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...
filter for covered ringspan, giver in km.
"filter for covered ringspan, giver in km."
83
false
michaelaye/pyciss
filter_for_ringspan
27,767
LDU_FT/mozilla/mozdownload/path_regex
LDU_FT
[ "<BEGIN>\n## `parse_arguments`", "Setup argument parser for command line arguments.\n<END>", "<BEGIN>\n## `query_builds_by_revision`", "Retrieve build folders for a given revision with the help of Treeherder.", " :param revision: Revision of the build to download.\n :param job_type_name: Name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path_regex API. 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 path_regex API. 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 the regex for the path to the build folder.
"Return the regex for the path to the build folder."
43
false
mozilla/mozdownload
path_regex
27,768
LDU_FT/docker/docker-py/service_logs
LDU_FT
[ "<BEGIN>\n## `compare_version`", "Compare docker versions", " >>> v1 = '1.9'\n >>> v2 = '1.10'\n >>> compare_version(v1, v2)\n 1\n >>> compare_version(v2, v1)\n -1\n >>> compare_version(v2, v2)\n 0\n<END>", "<BEGIN>\n## `datetime_to_timestamp`", "Convert a UTC datetime to a Unix time...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the service_logs API. 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 service_logs API. 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...
Get log stream for a service. Note: This endpoint works only for services with the ``json-file`` or ``journald`` logging drivers. Args: service (str): ID or name of the service details (bool): Show extra details provided to logs. D...
"Get log stream for a service.\n Note: This endpoint works only for services with the ``json-file``\n or ``journald`` logging drivers.\n\n Args:\n service (str): ID or name of the service\n details (bool): Show extra details provided to logs.\n ...
998
false
docker/docker-py
service_logs
27,769
LDU_FT/daviddrysdale/python-phonenumbers/description_for_number
LDU_FT
[ "<BEGIN>\n## `_get_metadata_for_region`", "The metadata needed by this class is the same for all regions\n sharing the same country calling code. Therefore, we return the\n metadata for \"main\" region for this country calling code.\n<END>", "<BEGIN>\n## `_maybe_create_new_template`", "Returns True if a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the description_for_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the description_for_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return a text description of a PhoneNumber object for the given language. The description might consist of the name of the country where the phone number is from and/or the name of the geographical area the phone number is from. This function explicitly checks the validity of the number passed in Arg...
"Return a text description of a PhoneNumber object for the given language.\n\n The description might consist of the name of the country where the phone\n number is from and/or the name of the geographical area the phone number\n is from. This function explicitly checks the validity of the number passed in\n\n...
501
false
daviddrysdale/python-phonenumbers
description_for_number
27,770
LDU_FT/UAVCAN/pyuavcan/periodic
LDU_FT
[ "<BEGIN>\n## `enum_mark_last`", "Returns a generator over iterable that tells whether the current item is the last one.\n Usage:\n >>> iterable = range(10)\n >>> for index, is_last, item in enum_mark_last(iterable):\n >>> print(index, item, end='\\n' if is_last else ', ')\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the periodic API. 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 periodic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
This method allows to invoke the callback periodically, with specified time intervals. Note that the scheduler features zero phase drift. :returns: EventHandle object. Call .remove() on it to cancel the event.
"This method allows to invoke the callback periodically, with specified time intervals.\n Note that the scheduler features zero phase drift.\n :returns: EventHandle object. Call .remove() on it to cancel the event."
65
false
UAVCAN/pyuavcan
periodic
27,771
LDU_FT/COALAIP/pycoalaip/_make_context_immutable
LDU_FT
[ "<BEGIN>\n## `_copy_context_into_mutable`", "Copy a properly formatted context into a mutable data structure.\n<END>", "<BEGIN>\n## `_make_context_immutable`", "Best effort attempt at turning a properly formatted context\n (either a string, dict, or array of strings and dicts) into an\n immutable data s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_context_immutable 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 _make_context_immutable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Best effort attempt at turning a properly formatted context (either a string, dict, or array of strings and dicts) into an immutable data structure. If we get an array, make it immutable by creating a tuple; if we get a dict, copy it into a MappingProxyType. Otherwise, return as-is.
"Best effort attempt at turning a properly formatted context\n (either a string, dict, or array of strings and dicts) into an\n immutable data structure.\n\n If we get an array, make it immutable by creating a tuple; if we get\n a dict, copy it into a MappingProxyType. Otherwise, return as-is."
49
false
COALAIP/pycoalaip
_make_context_immutable
27,772