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/maaku/python-bitcoin/_forward_iterator
LDU_FT
[ "<BEGIN>\n## `script`", "Returns a Script object representing a contract script portion of a\n payment to the destination.\n<END>", "<BEGIN>\n## `compress_amount`", "\\\n Compress 64-bit integer values, preferring a smaller size for whole\n numbers (base-10), so as to achieve run-length encoding ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _forward_iterator API. 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 _forward_iterator API. 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 a forward iterator over the trie
"Returns a forward iterator over the trie"
55
false
maaku/python-bitcoin
_forward_iterator
14,673
LDU_FT/merll/docker-map/add
LDU_FT
[ "<BEGIN>\n## `get_state_actions`", "For attached volumes, missing containers are created and initial containers are started and prepared with\n permissions. Outdated containers or containers with errors are recreated. The latter also applies to instance\n containers. Similarly, instance containers a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add a file or directory to the context tarball. :param name: File or directory path. :type name: unicode | str :param args: Additional args for :meth:`tarfile.TarFile.add`. :param kwargs: Additional kwargs for :meth:`tarfile.TarFile.add`.
"Add a file or directory to the context tarball.\n\n :param name: File or directory path.\n :type name: unicode | str\n :param args: Additional args for :meth:`tarfile.TarFile.add`.\n :param kwargs: Additional kwargs for :meth:`tarfile.TarFile.add`."
584
false
merll/docker-map
add
14,674
LDU_FT/suds-community/suds/append
LDU_FT
[ "<BEGIN>\n## `xml`", "Get xml representation of the object.\n @return: The root node.\n @rtype: L{Element}\n<END>", "<BEGIN>\n## `skip`", "Get whether to skip (filter-out) the specified attribute.\n @param attr: An attribute.\n @type attr: I{Attribute}\n @return: True if sho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API. 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 append API. 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 ...
Append the specified child based on whether it is an element or an attribute. @param objects: A (single|collection) of attribute(s) or element(s) to be added as children. @type objects: (L{Element}|L{Attribute}) @return: self @rtype: L{Element}
"Append the specified child based on whether it is an element or an\n attribute.\n\n @param objects: A (single|collection) of attribute(s) or element(s) to\n be added as children.\n @type objects: (L{Element}|L{Attribute})\n @return: self\n @rtype: L{Element}"
466
false
suds-community/suds
append
14,675
LDU_FT/hanguokai/youku/update_video
LDU_FT
[ "<BEGIN>\n## `check_error`", "Youku error should return in json form, like:\n HTTP 400\n {\n \"error\":{\n \"code\":120010223,\n \"type\":\"UploadsException\",\n \"description\":\"Expired upload token\"\n }\n }", " But error also maybe in response url p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_video API. 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 update_video API. 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...
doc: http://open.youku.com/docs/doc?id=50
"doc: http://open.youku.com/docs/doc?id=50"
120
false
hanguokai/youku
update_video
14,676
LDU_FT/paul-wolf/strgen/getSource
LDU_FT
[ "<BEGIN>\n## `getSource`", "Extract the identifier out of this construct: ${mylist}: mylist\n<END>", "<BEGIN>\n## `getCharacterSet`", "Get a character set with individual members or ranges.", " Current index is on '[', the start of the character set.\n<END>", "<BEGIN>\n## `getLiteral`", "Get a se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSource API. 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 getSource API. 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...
Extract the identifier out of this construct: ${mylist}: mylist
"Extract the identifier out of this construct: ${mylist}: mylist"
14
false
paul-wolf/strgen
getSource
14,677
LDU_FT/amueller/word_cloud/generate_from_frequencies
LDU_FT
[ "<BEGIN>\n## `process_tokens`", "Normalize cases and remove plurals.", " Each word is represented by the most common case.\n If a word appears with an \"s\" on the end and without an \"s\" on the end,\n the version with \"s\" is assumed to be a plural and merged with the\n version without \"s\" (exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_from_frequencies 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 generate_from_frequencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Create a word_cloud from words and frequencies. Parameters ---------- frequencies : dict from string to float A contains words and associated frequency. max_font_size : int Use this font-size instead of self.max_font_size Returns ------- ...
"Create a word_cloud from words and frequencies.\n\n Parameters\n ----------\n frequencies : dict from string to float\n A contains words and associated frequency.\n\n max_font_size : int\n Use this font-size instead of self.max_font_size\n\n Returns\n ---...
45
false
amueller/word_cloud
generate_from_frequencies
14,678
LDU_FT/jam31118/vis/get_axes_ratio
LDU_FT
[ "<BEGIN>\n## `estimate_global_norm_range`", "Return estimated global range for 2D (pcolormesh-like) plot.", " ## Returns:\n - vmin\n - vmax\n<END>", "<BEGIN>\n## `process_frames_argument`", "Check and process 'frames' argument\n into a proper iterable for an animation object", " ## Argument...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_axes_ratio API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_axes_ratio API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return height / width ratio of the given Axes object. The ratio is calculated in 'display coordinate', defined in matplotlib document on transformation. Thus, the calculated ratio is what one would feels when the Axes is displayed to the her/him.
"Return height / width ratio of the given Axes object.\n \n The ratio is calculated in 'display coordinate',\n defined in matplotlib document on transformation.\n Thus, the calculated ratio is what one would feels when the Axes\n is displayed to the her/him."
53
false
jam31118/vis
get_axes_ratio
14,679
LDU_FT/crate/crate-python/exists
LDU_FT
[ "<BEGIN>\n## `coerce`", "Convert plain dictionaries to MutableDict.\n<END>", "<BEGIN>\n## `_raise_for_status`", "make sure that only crate.exceptions are raised that are defined in\n the DB-API specification\n<END>", "<BEGIN>\n## `_server_url`", "Normalizes a given server string to an url", " >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. 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 exists API. 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 ...
Check if a blob exists :param digest: Hex digest of the blob :return: Boolean indicating existence of the blob
"Check if a blob exists\n\n :param digest: Hex digest of the blob\n :return: Boolean indicating existence of the blob"
81
false
crate/crate-python
exists
14,680
LDU_FT/bcicen/wikitables/parse
LDU_FT
[ "<BEGIN>\n## `guess_type`", "attempt to convert string value into numeric type\n<END>", "<BEGIN>\n## `parse`", "Return generator yielding Field objects for a given node\n<END>", "<BEGIN>\n## `parse`", "Parse one or more `tr` nodes, yielding wikitables.Row objects\n<END>", "<BEGIN>\n## `_find_header_flat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse one or more `tr` nodes, yielding wikitables.Row objects
"Parse one or more `tr` nodes, yielding wikitables.Row objects"
12
false
bcicen/wikitables
parse
14,681
LDU_FT/blockadeio/analyst_toolbench/generate_s3_bucket
LDU_FT
[ "<BEGIN>\n## `clean_indicators`", "Remove any extra details from indicators.\n<END>", "<BEGIN>\n## `check_whitelist`", "Check the indicators against known whitelists.\n<END>", "<BEGIN>\n## `cache_items`", "Cache indicators that were successfully sent to avoid dups.\n<END>", "<BEGIN>\n## `prune_cached`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_s3_bucket 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 generate_s3_bucket 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...
Create the blockade bucket if not already there.
"Create the blockade bucket if not already there."
50
false
blockadeio/analyst_toolbench
generate_s3_bucket
14,682
LDU_FT/inveniosoftware-contrib/record-recommender/create
LDU_FT
[ "<BEGIN>\n## `_is_download`", "Check if file ending is considered as download.\n<END>", "<BEGIN>\n## `fetch`", "Fetch PageViews and Downloads from Elasticsearch.\n<END>", "<BEGIN>\n## `_fetch_pageviews`", "Fetch PageViews from Elasticsearch.", " :param time_from: Staring at timestamp.\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create the user and ip profiles for the given weeks.
"Create the user and ip profiles for the given weeks."
55
false
inveniosoftware-contrib/record-recommender
create
14,683
LDU_FT/davidrpugh/pyCollocation/_basis_polynomial_factory
LDU_FT
[ "<BEGIN>\n## `_basis_spline_factory`", "Return a B-Spline given some coefficients.\n<END>", "<BEGIN>\n## `derivatives_factory`", "Given some coefficients, return a the derivative of a B-spline.\n<END>", "<BEGIN>\n## `functions_factory`", "Given some coefficients, return a B-spline.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _basis_polynomial_factory 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 _basis_polynomial_factory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Return a polynomial given some coefficients.
"Return a polynomial given some coefficients."
44
false
davidrpugh/pyCollocation
_basis_polynomial_factory
14,684
LDU_FT/PlaidWeb/Publ/get_css_background
LDU_FT
[ "<BEGIN>\n## `load_metafile`", "Load a metadata file from the filesystem\n<END>", "<BEGIN>\n## `description`", "Get the textual description of the category\n<END>", "<BEGIN>\n## `breadcrumb`", "Get the category hierarchy leading up to this category, including\n root and self.", " For examp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_css_background API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_css_background 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 CSS background attributes for an element. Additional arguments: uncomment -- surround the attributes with `*/` and `/*` so that the template tag can be kept inside a comment block, to keep syntax highlighters happy
"Get the CSS background attributes for an element.\n\n Additional arguments:\n\n uncomment -- surround the attributes with `*/` and `/*` so that the\n template tag can be kept inside a comment block, to keep syntax\n highlighters happy"
285
false
PlaidWeb/Publ
get_css_background
14,685
LDU_FT/bitcraft/pyscroll/scroll
LDU_FT
[ "<BEGIN>\n## `hit`", "Returns the items that overlap a bounding rectangle.", " Returns the set of all items in the quad-tree that overlap with a\n bounding rectangle.", " @param rect:\n The bounding rectangle being tested against the quad-tree. This\n must possess le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scroll API. 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 scroll API. 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 ...
scroll the background in pixels :param vector: (int, int)
"scroll the background in pixels\n\n :param vector: (int, int)"
112
false
bitcraft/pyscroll
scroll
14,686
LDU_FT/adamzap/landslide/html_body
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses and renders a text as HTML regarding current format.\n<END>", "<BEGIN>\n## `descape`", "Decodes html entities from a given string\n<END>", "<BEGIN>\n## `get_path_url`", "Returns an absolute or relative path url given a path\n<END>", "<BEGIN>\n## `html_parts`", "Given an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the html_body API. 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 html_body API. 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...
Given an input string, returns an HTML fragment as a string. The return value is the contents of the <body> element. Parameters (see `html_parts()` for the remainder): - `output_encoding`: The desired encoding of the output. If a Unicode string is desired, use the default value of "unicode" .
"Given an input string, returns an HTML fragment as a string.\n\n The return value is the contents of the <body> element.\n\n Parameters (see `html_parts()` for the remainder):\n\n - `output_encoding`: The desired encoding of the output. If a Unicode\n string is desired, use the default value of \"unicod...
49
false
adamzap/landslide
html_body
14,687
LDU_FT/twisted/axiom/runcode
LDU_FT
[ "<BEGIN>\n## `upgradeProcessor1to2`", "Batch processors stopped polling at version 2, so they no longer needed the\n idleInterval attribute. They also gained a scheduled attribute which\n tracks their interaction with the scheduler. Since they stopped polling,\n we also set them up as a timed event her...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the runcode API. 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 runcode API. 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...
Override L{code.InteractiveConsole.runcode} to run the code in a transaction unless the local C{autocommit} is currently set to a true value.
"Override L{code.InteractiveConsole.runcode} to run the code in a\n transaction unless the local C{autocommit} is currently set to a true\n value."
479
false
twisted/axiom
runcode
14,688
LDU_FT/bihealth/vcfpy/add_line
LDU_FT
[ "<BEGIN>\n## `make_virtual_offset`", "Compute a BGZF virtual offset from block start and within block offsets.\n The BAM indexing scheme records read positions using a 64 bit\n 'virtual offset', comprising in C terms:\n block_start_offset << 16 | within_block_offset\n Here block_start_offset is the fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_line API. 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 add_line API. 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...
Add header line, updating any necessary support indices :return: ``False`` on conflicting line and ``True`` otherwise
"Add header line, updating any necessary support indices\n\n :return: ``False`` on conflicting line and ``True`` otherwise"
127
false
bihealth/vcfpy
add_line
14,689
LDU_FT/ryanjdillon/pyotelem/butter_apply
LDU_FT
[ "<BEGIN>\n## `plot_lf_hf`", "Plot original signal, low-pass filtered, and high-pass filtered signals", " Args\n ----\n x: ndarray\n Signal data array\n xlf: ndarray\n Low-pass filtered signal\n xhf: ndarray\n High-pass filtered signal\n title: str\n Main title of pl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the butter_apply API. 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 butter_apply API. 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...
Apply filter with filtfilt to allign filtereted data with input The filter is applied once forward and once backward to give it linear phase, using Gustafsson's method to give the same length as the original signal. Args ---- b: ndarray Numerator polynomials of the IIR butter filter ...
"Apply filter with filtfilt to allign filtereted data with input\n\n The filter is applied once forward and once backward to give it linear\n phase, using Gustafsson's method to give the same length as the original\n signal.\n\n Args\n ----\n b: ndarray\n Numerator polynomials of the IIR butter...
268
false
ryanjdillon/pyotelem
butter_apply
14,690
LDU_FT/mamrhein/identifiers/company_prefix
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 company_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the company_prefix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the identifier's company prefix part.
"Return the identifier's company prefix part."
19
false
mamrhein/identifiers
company_prefix
14,691
LDU_FT/ramses-tech/nefertari/set_public_limits
LDU_FT
[ "<BEGIN>\n## `_import_public_names`", "Import public names from module into this module, like import *\n<END>", "<BEGIN>\n## `encrypt_password`", "Crypt :new_value: if it's not crypted yet.\n<END>", "<BEGIN>\n## `create_apikey_model`", "Generate ApiKey model class and connect it with :user_model:.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_public_limits API. 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_public_limits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Set public limits if auth is enabled and user is not authenticated. Also sets default limit for GET, HEAD requests.
"Set public limits if auth is enabled and user is not\n authenticated.\n\n Also sets default limit for GET, HEAD requests."
226
false
ramses-tech/nefertari
set_public_limits
14,692
LDU_FT/aerogear/digger-build-cli/sign
LDU_FT
[ "<BEGIN>\n## `jarsign`", "Uses Jarsign to sign an apk target file using the provided keystore information.", " :param storepass(str) - keystore storepass\n :param keypass(str) - keystore keypass\n :param keystore(str) - keystore file path\n :param source(str) - apk path\n :param alias(str) - keystore alias...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign API. 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 sign API. 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...
Signs (jarsign and zipalign) a target apk file based on keystore information, uses default debug keystore file by default. :param storepass(str): keystore file storepass :param keypass(str): keystore file keypass :param keystore(str): keystore file path :param apk(str): apk file path to be signed :...
"Signs (jarsign and zipalign) a target apk file based on keystore information, uses default debug keystore file by default.\n\n :param storepass(str): keystore file storepass\n :param keypass(str): keystore file keypass\n :param keystore(str): keystore file path\n :param apk(str): apk file path to be signed...
100
false
aerogear/digger-build-cli
sign
14,693
LDU_FT/BoGoEngine/bogo-python/append_comps
LDU_FT
[ "<BEGIN>\n## `append_comps`", "Append a character to `comps` following this rule: a vowel is added to the\n vowel part if there is no last consonant, else to the last consonant part;\n a consonant is added to the first consonant part if there is no vowel, and\n to the last consonant part if the vowel par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_comps API. 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 append_comps API. 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...
Append a character to `comps` following this rule: a vowel is added to the vowel part if there is no last consonant, else to the last consonant part; a consonant is added to the first consonant part if there is no vowel, and to the last consonant part if the vowel part is not empty. >>> transform(['', ...
"Append a character to `comps` following this rule: a vowel is added to the\n vowel part if there is no last consonant, else to the last consonant part;\n a consonant is added to the first consonant part if there is no vowel, and\n to the last consonant part if the vowel part is not empty.\n\n >>> transform...
55
false
BoGoEngine/bogo-python
append_comps
14,694
LDU_FT/codelv/enaml-native/handle_callback_exception
LDU_FT
[ "<BEGIN>\n## `init_layout`", "Initialize the layout of the toolkit widget.", " This method is called during the bottom-up pass. This method\n should initialize the layout of the widget. The child widgets\n will be fully initialized and layed out when this is called.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_callback_exception 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 handle_callback_exception API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
This method is called whenever a callback run by the `IOLoop` throws an exception. By default simply logs the exception as an error. Subclasses may override this method to customize reporting of exceptions. The exception itself is not passed explicitly, but is available in `sy...
"This method is called whenever a callback run by the `IOLoop`\n throws an exception.\n\n By default simply logs the exception as an error. Subclasses\n may override this method to customize reporting of exceptions.\n\n The exception itself is not passed explicitly, but is available\n ...
573
false
codelv/enaml-native
handle_callback_exception
14,695
LDU_FT/bharadwajyarlagadda/bingmaps/get_address
LDU_FT
[ "<BEGIN>\n## `build_url`", "This method occurs after dumping the data into the class.", " Args:\n data (dict): dictionary of all the query values", " Returns:\n data (dict): ordered dict of all the values\n<END>", "<BEGIN>\n## `build_query_string`", "This method occurs ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Retrieves addresses from the output JSON/XML response Returns: address (namedtuple): List of named tuples of addresses
"Retrieves addresses from the output JSON/XML response\n\n Returns:\n address (namedtuple): List of named tuples of addresses"
75
false
bharadwajyarlagadda/bingmaps
get_address
14,696
LDU_FT/vals/umis/cb_histogram
LDU_FT
[ "<BEGIN>\n## `mutationhash`", "produce a hash with each key a nedit distance substitution for a set of\n strings. values of the hash is the set of strings the substitution could\n have come from\n<END>", "<BEGIN>\n## `substitution_set`", "for a string, return a set of all possible substitutions\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cb_histogram API. 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 cb_histogram API. 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...
Counts the number of reads for each cellular barcode Expects formatted fastq files.
"Counts the number of reads for each cellular barcode\n\n Expects formatted fastq files."
62
false
vals/umis
cb_histogram
14,697
LDU_FT/NJDFan/ctypes-bitfield/pathparts
LDU_FT
[ "<BEGIN>\n## `_createunbound`", "Create a new UnboundNode representing a given class.\n<END>", "<BEGIN>\n## `_createbound`", "Create a new BoundNode representing a given object.\n<END>", "<BEGIN>\n## `findnode`", "Returns a Node pointing to obj.", " If obj is a ctypes-derived class, an UnboundNode is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pathparts API. 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 pathparts API. 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...
A list of the parts of the path, with the root node returning an empty list.
"A list of the parts of the path, with the root node returning\n an empty list."
42
false
NJDFan/ctypes-bitfield
pathparts
14,698
LDU_FT/slarse/pdfebc-core/compress_multiple_pdfs
LDU_FT
[ "<BEGIN>\n## `send_with_attachments`", "Send an email from the user (a gmail) to the receiver.", " Args:\n subject (str): Subject of the email.\n message (str): A message.\n filepaths (list(str)): Filepaths to files to be attached.\n config (defaultdict): A defaultdict.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compress_multiple_pdfs 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 compress_multiple_pdfs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Compress all PDF files in the current directory and place the output in the given output directory. This is a generator function that first yields the amount of files to be compressed, and then yields the output path of each file. Args: source_directory (str): Filepath to the source directory. ...
"Compress all PDF files in the current directory and place the output in the\n given output directory. This is a generator function that first yields the amount\n of files to be compressed, and then yields the output path of each file.\n\n Args:\n source_directory (str): Filepath to the source directory...
56
false
slarse/pdfebc-core
compress_multiple_pdfs
14,699
LDU_FT/seryl/Python-Cotendo/dns_get_conf
LDU_FT
[ "<BEGIN>\n## `show`", "This could use some love, it's currently here as reference\n<END>", "<BEGIN>\n## `CreateRecord`", "Create a record of type (record_type) and fill it with the given\n dict of results\n<END>", "<BEGIN>\n## `cdn_get_conf`", "Returns the existing origin configuration and token fr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dns_get_conf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dns_get_conf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns the existing domain configuration and token from the ADNS
"Returns the existing domain configuration and token from the ADNS"
22
false
seryl/Python-Cotendo
dns_get_conf
14,700
LDU_FT/craffel/mir_eval/_outer_distance_mod_n
LDU_FT
[ "<BEGIN>\n## `_open`", "Either open a file handle, or use an existing file-like object.", " This will behave as the `open` function if `file_or_str` is a string.", " If `file_or_str` has the `read` attribute, it will return `file_or_str`.", " Otherwise, an `IOError` is raised.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _outer_distance_mod_n 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 _outer_distance_mod_n API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Compute the absolute outer distance modulo n. Using this distance, d(11, 0) = 1 (modulo 12) Parameters ---------- ref : np.ndarray, shape=(n,) Array of reference values. est : np.ndarray, shape=(m,) Array of estimated values. modulus : int The modulus. 12 by defa...
"Compute the absolute outer distance modulo n.\n Using this distance, d(11, 0) = 1 (modulo 12)\n\n Parameters\n ----------\n ref : np.ndarray, shape=(n,)\n Array of reference values.\n est : np.ndarray, shape=(m,)\n Array of estimated values.\n modulus : int\n The modulus.\n ...
1,001
false
craffel/mir_eval
_outer_distance_mod_n
14,701
LDU_FT/kejbaly2/metrique/ls
LDU_FT
[ "<BEGIN>\n## `filtered`", "Decorator function that wraps functions returning pandas\n dataframes, such that the dataframe is filtered\n according to left and right bounds set.\n<END>", "<BEGIN>\n## `to_datetime`", "This function converts epoch timestamps to datetimes.", " :param column: column ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
List all cubes available to the calling client. :param startswith: string to use in a simple "startswith" query filter :returns list: sorted list of cube names
"List all cubes available to the calling client.\n\n :param startswith: string to use in a simple \"startswith\" query filter\n :returns list: sorted list of cube names"
224
false
kejbaly2/metrique
ls
14,702
LDU_FT/skggm/skggm/quic
LDU_FT
[ "<BEGIN>\n## `log_likelihood`", "Computes the log-likelihood between the covariance and precision\n estimate.", " Parameters\n ----------\n covariance : 2D ndarray (n_features, n_features)\n Maximum Likelihood Estimator of covariance", " precision : 2D ndarray (n_features, n_features)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quic API. 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 quic API. 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...
Fits the inverse covariance model according to the given training data and parameters. Parameters ----------- S : 2D ndarray, shape (n_features, n_features) Empirical covariance or correlation matrix. Other parameters described in `class InverseCovariance`. Returns ------- The...
"Fits the inverse covariance model according to the given training\n data and parameters.\n\n Parameters\n -----------\n S : 2D ndarray, shape (n_features, n_features)\n Empirical covariance or correlation matrix.\n\n Other parameters described in `class InverseCovariance`.\n\n Returns\n ---...
239
false
skggm/skggm
quic
14,703
LDU_FT/brews/snakebacon/prior_dates
LDU_FT
[ "<BEGIN>\n## `date`", "Date a proxy record", " Parameters\n ----------\n proxy : ProxyRecord\n how : str\n How to perform the dating. 'median' returns the average of the MCMC ensemble. 'ensemble' returns a 'n'\n randomly selected members of the MCMC ensemble. De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prior_dates API. 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 prior_dates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get the prior distribution of calibrated radiocarbon dates
"Get the prior distribution of calibrated radiocarbon dates"
40
false
brews/snakebacon
prior_dates
14,704
LDU_FT/SylvanasSun/FishFishJump/cancel_job
LDU_FT
[ "<BEGIN>\n## `hash`", "function hash() implement to acquire hash value that use simply method that weighted sum.", " Parameters:\n -----------\n value: string\n the value is param of need acquire hash\n Returns:\n --------\n result...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancel_job API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancel_job API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
cancel a job. If the job is pending, it will be removed. If the job is running, it will be terminated.
"cancel a job.\n If the job is pending, it will be removed. If the job is running, it will be terminated."
97
false
SylvanasSun/FishFishJump
cancel_job
14,705
LDU_FT/davidblaisonneau-orange/foreman/log
LDU_FT
[ "<BEGIN>\n## `importPuppetClasses`", "Function importPuppetClasses\n Force the reload of puppet classes", " @param smartProxyId: smartProxy Id\n @return RETURN: the API result\n<END>", "<BEGIN>\n## `enhance`", "Function enhance\n Enhance the object with new item or enhanced items...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
Function log Decorator to log lasts request before sending a new one @return RETURN: None
"Function log\n Decorator to log lasts request before sending a new one\n\n @return RETURN: None"
118
false
davidblaisonneau-orange/foreman
log
14,706
LDU_FT/common-workflow-language/cwltool/generate_input_template
LDU_FT
[ "<BEGIN>\n## `add_volumes`", "Append volume mappings to the runtime option list.\n<END>", "<BEGIN>\n## `docker_monitor`", "Record memory usage of the running Docker container.\n<END>", "<BEGIN>\n## `adjustFiles`", "Apply a mapping function to each File path in the object `rec`.\n<END>", "<BEGIN>\n## `ch...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_input_template 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 generate_input_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Generate an example input object for the given CWL process.
"Generate an example input object for the given CWL process."
161
false
common-workflow-language/cwltool
generate_input_template
14,707
LDU_FT/ajk8/microcache/get
LDU_FT
[ "<BEGIN>\n## `init_logging`", "Setup logging for the microcache module, but only do it once!", " :param stream: stream to log to (defaults to sys.stderr)\n :param filepath: path to a file to log to as well (defaults to None)\n :param format: override the default format with whatever you like\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get a value out of the cache Returns CACHE_DISABLED if the cache is disabled :param key: key to search for :param default: value to return if the key is not found (defaults to CACHE_MISS)
"Get a value out of the cache\n\n Returns CACHE_DISABLED if the cache is disabled\n\n :param key: key to search for\n :param default: value to return if the key is not found (defaults to CACHE_MISS)"
35
false
ajk8/microcache
get
14,708
LDU_FT/OSSOS/MOP/config_logging
LDU_FT
[ "<BEGIN>\n## `set_ds9`", "Set the default values on the ds9 display.\n<END>", "<BEGIN>\n## `cfht_megacam_tap_query`", "Do a query of the CADC Megacam table.", " Get all observations inside the box (right now it turns width/height into a radius, should not do this).", " @rtype : Table\n @param ra_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config_logging API. 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 config_logging API. 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...
Configure the logging given the level desired
"Configure the logging given the level desired"
717
false
OSSOS/MOP
config_logging
14,709
LDU_FT/tensorflow/tensorboard/RetrievePluginAsset
LDU_FT
[ "<BEGIN>\n## `add_event`", "Adds an event to the event file.", " Args:\n event: An `Event` protocol buffer.\n<END>", "<BEGIN>\n## `write`", "Enqueue the given bytes to be written asychronously\n<END>", "<BEGIN>\n## `flush`", "Write all the enqueued bytestring before this flush call to di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the RetrievePluginAsset 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 RetrievePluginAsset 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...
Return the contents of a given plugin asset. Args: plugin_name: The string name of a plugin. asset_name: The string name of an asset. Returns: The string contents of the plugin asset. Raises: KeyError: If the asset is not available.
"Return the contents of a given plugin asset.\n\n Args:\n plugin_name: The string name of a plugin.\n asset_name: The string name of an asset.\n\n Returns:\n The string contents of the plugin asset.\n\n Raises:\n KeyError: If the asset is not available."
1,768
true
tensorflow/tensorboard
RetrievePluginAsset
14,710
LDU_FT/ihmeuw/vivarium/get_population
LDU_FT
[ "<BEGIN>\n## `setup`", "Performs this component's simulation setup.", " The ``setup`` method is automatically called by the simulation\n framework. The framework passes in a ``builder`` object which\n provides access to a variety of framework subsystems and metadata.", " Parameters...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_population API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_population API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get a copy of the population state table.
"Get a copy of the population state table."
370
false
ihmeuw/vivarium
get_population
14,711
LDU_FT/tcpcloud/python-aptly/compare
LDU_FT
[ "<BEGIN>\n## `_publish_match`", "Check if publish name matches list of names or regex patterns\n<END>", "<BEGIN>\n## `get_repo_information`", "fill two dictionnaries : one containing all the packages for every repository\n and the second one associating to every component of every publish its repos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare API. 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 compare API. 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...
Compare two publishes It expects that other publish is same or older than this one Return tuple (diff, equal) of dict {'component': ['snapshot']}
"Compare two publishes\n It expects that other publish is same or older than this one\n\n Return tuple (diff, equal) of dict {'component': ['snapshot']}"
18
false
tcpcloud/python-aptly
compare
14,712
LDU_FT/etal/biofrills/intersect_keys
LDU_FT
[ "<BEGIN>\n## `read_logodata`", "Get weblogo data for a sequence alignment.", " Returns a list of tuples: (posn, letter_counts, entropy, weight)\n<END>", "<BEGIN>\n## `aln2logodata`", "Get weblogo data for an alignment object.", " Returns a list of tuples: (posn, letter_counts, entropy, weight)\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersect_keys API. 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 intersect_keys API. 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...
Extract SeqRecords from the index by matching keys. keys - an iterable of sequence identifiers/accessions to select reffile - name of a FASTA file to extract the specified sequences from cache - save an index of the reference FASTA sequence offsets to disk? clean_accs - strip HMMer extensions from sequ...
"Extract SeqRecords from the index by matching keys.\n\n keys - an iterable of sequence identifiers/accessions to select\n reffile - name of a FASTA file to extract the specified sequences from\n cache - save an index of the reference FASTA sequence offsets to disk?\n clean_accs - strip HMMer extensions fro...
81
false
etal/biofrills
intersect_keys
14,713
LDU_FT/the01/python-floscraper/scrap
LDU_FT
[ "<BEGIN>\n## `prepare_headers`", "Prepare headers object for request (add cache information", " :param headers: Headers object\n :type headers: dict\n :param cache_info: Cache information to add\n :type cache_info: floscraper.models.CacheInfo\n :return: Prepared headers\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scrap API. 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 scrap API. 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...
Scrap a url and parse the content according to scheme :param url: Url to parse (default: self._url) :type url: str :param scheme: Scheme to apply to html (default: self._scheme) :type scheme: dict :param timeout: Timeout for http operation (default: self._timout) :type t...
"Scrap a url and parse the content according to scheme\n\n :param url: Url to parse (default: self._url)\n :type url: str\n :param scheme: Scheme to apply to html (default: self._scheme)\n :type scheme: dict\n :param timeout: Timeout for http operation (default: self._timout)\n ...
50
false
the01/python-floscraper
scrap
14,714
LDU_FT/pletzer/pnumpy/areIndicesValid
LDU_FT
[ "<BEGIN>\n## `getStringPartition`", "Get the string representation of the current partition\n @return string like \":-1,0:2\"\n<END>", "<BEGIN>\n## `getPrimeFactors`", "Get all the prime factor of given integer\n @param n integer\n @return list [1, ..., n]\n<END>", "<BEGIN>\n## `getNeighborProc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the areIndicesValid API. 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 areIndicesValid API. 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...
Test if indices are valid @param inds index set @return True if valid, False otherwise
"Test if indices are valid\n @param inds index set\n @return True if valid, False otherwise"
54
false
pletzer/pnumpy
areIndicesValid
14,715
LDU_FT/asweigart/pysimplevalidate/validateBool
LDU_FT
[ "<BEGIN>\n## `_errstr`", "Returns the value str, truncated to MAX_ERROR_STR_LEN characters. If\n it's truncated, the returned value will have '...' on the end.\n<END>", "<BEGIN>\n## `_getStrippedValue`", "Like the strip() string method, except the strip argument describes\n different behavior:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validateBool API. 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 validateBool API. 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...
Raises ValidationException if value is not an email address. Returns the yesVal or noVal argument, not value. * value (str): The value being validated as an email address. * blank (bool): If True, a blank string will be accepted. Defaults to False. * strip (bool, str, None): If None, whitespace is str...
"Raises ValidationException if value is not an email address.\n Returns the yesVal or noVal argument, not value.\n\n * value (str): The value being validated as an email address.\n * blank (bool): If True, a blank string will be accepted. Defaults to False.\n * strip (bool, str, None): If None, whitespace ...
148
false
asweigart/pysimplevalidate
validateBool
14,716
LDU_FT/galaxyproject/pulsar/lookup_object
LDU_FT
[ "<BEGIN>\n## `__posix_to_local_path`", "Converts a posix path (coming from Galaxy), to a local path (be it posix or Windows).", " >>> import ntpath\n >>> __posix_to_local_path('dataset_1_files/moo/cow', local_path_module=ntpath)\n 'dataset_1_files\\\\\\\\moo\\\\\\\\cow'\n >>> import posixpath\n >...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Looks up a module or object from a some.module:func_name specification. To just look up a module, omit the colon and everything after it.
"Looks up a module or object from a some.module:func_name specification.\n To just look up a module, omit the colon and everything after it."
142
false
galaxyproject/pulsar
lookup_object
14,717
LDU_FT/insanum/gcalcli/art_msg
LDU_FT
[ "<BEGIN>\n## `art_msg`", "Wrapper for easy emission of the calendar borders\n<END>", "<BEGIN>\n## `_cal_monday`", "Shift the day number if we're doing cal monday, or cal_weekend is\n false, since that also means we're starting on day 1\n<END>", "<BEGIN>\n## `QuickAddEvent`", "Wrapper around Google ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the art_msg API. 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 art_msg API. 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...
Wrapper for easy emission of the calendar borders
"Wrapper for easy emission of the calendar borders"
16
false
insanum/gcalcli
art_msg
14,718
LDU_FT/joanvila/aioredlock/is_locked
LDU_FT
[ "<BEGIN>\n## `_create_redis_pool`", "Adapter to support both aioredis-0.3.0 and aioredis-1.0.0\n For aioredis-1.0.0 and later calls:\n aioredis.create_redis_pool(*args, **kwargs)\n For aioredis-0.3.0 calls:\n aioredis.create_pool(*args, **kwargs)\n<END>", "<BEGIN>\n## `set_lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_locked API. 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 is_locked API. 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...
Checks if the resource is locked by any redlock instance. :param resource: The resource string name to check :returns: True if locked else False
"Checks if the resource is locked by any redlock instance.\n\n :param resource: The resource string name to check\n :returns: True if locked else False"
18
false
joanvila/aioredlock
is_locked
14,719
LDU_FT/jorisroovers/gitlint/_apply_commit_rules
LDU_FT
[ "<BEGIN>\n## `find_rule_classes`", "Searches a given directory or python module for rule classes. This is done by\n adding the directory path to the python path, importing the modules and then finding\n any Rule class in those modules.", " :param extra_path: absolute directory or file path to search fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_commit_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_commit_rules API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Applies a set of rules against a given commit and gitcontext
"Applies a set of rules against a given commit and gitcontext"
58
false
jorisroovers/gitlint
_apply_commit_rules
14,720
LDU_FT/INM-6/hybridLFPy/get_T_yX
LDU_FT
[ "<BEGIN>\n## `plot_signal_sum`", "on axes plot the signal contributions", " args:\n ::\n ax : matplotlib.axes.AxesSubplot object\n z : np.ndarray\n T : list, [tstart, tstop], which timeinterval\n ylims : list, set range of yaxis to scale with other plots\n fancy : bool, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_T_yX API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_T_yX API. 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...
compute the cell type specificity, defined as: :: T_yX = K_yX / K_YX = F_y * k_yX / sum_y(F_y*k_yX)
"compute the cell type specificity, defined as:\n ::\n \n T_yX = K_yX / K_YX\n = F_y * k_yX / sum_y(F_y*k_yX)"
412
false
INM-6/hybridLFPy
get_T_yX
14,721
LDU_FT/czielinski/portfolioopt/print_portfolio_info
LDU_FT
[ "<BEGIN>\n## `markowitz_portfolio`", "Computes a Markowitz portfolio.", " Parameters\n ----------\n cov_mat: pandas.DataFrame\n Covariance matrix of asset returns.\n exp_rets: pandas.Series\n Expected asset returns (often historical returns).\n target_ret: float\n Target retu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_portfolio_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_portfolio_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Print information on expected portfolio performance.
"Print information on expected portfolio performance."
24
false
czielinski/portfolioopt
print_portfolio_info
14,722
LDU_FT/romansalin/django-seo2/_construct_form
LDU_FT
[ "<BEGIN>\n## `escape_tags`", "Strips text from the given html string, leaving only tags.\n This functionality requires BeautifulSoup, nothing will be\n done otherwise.", " This isn't perfect. Someone could put javascript in here:\n <a onClick=\"alert('hi');\">test</a>", " So if you use ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _construct_form API. 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 _construct_form API. 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...
Override the method to change the form attribute empty_permitted.
"Override the method to change the form attribute empty_permitted."
21
false
romansalin/django-seo2
_construct_form
14,723
LDU_FT/PyCQA/pydocstyle/_is_a_docstring_section
LDU_FT
[ "<BEGIN>\n## `error_lineno`", "Get the line number with which to report violations.\n<END>", "<BEGIN>\n## `source`", "Return the source code for the definition.\n<END>", "<BEGIN>\n## `is_public`", "Return True iff this function should be considered public.\n<END>", "<BEGIN>\n## `is_magic`", "Return Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_a_docstring_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 _is_a_docstring_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...
Check if the suspected context is really a section header. Lets have a look at the following example docstring: '''Title. Some part of the docstring that specifies what the function returns. <----- Not a real section name. It has a suffix and the ...
"Check if the suspected context is really a section header.\n\n Lets have a look at the following example docstring:\n '''Title.\n\n Some part of the docstring that specifies what the function\n returns. <----- Not a real section name. It has a suffix and the\n ...
183
false
PyCQA/pydocstyle
_is_a_docstring_section
14,724
LDU_FT/python-tap/tappy/load
LDU_FT
[ "<BEGIN>\n## `check`", "Check the status of all provided data and update the suite.\n<END>", "<BEGIN>\n## `handle_skipping_plan`", "Handle a plan that contains a SKIP directive.\n<END>", "<BEGIN>\n## `format_exception`", "Format an exception as diagnostics output.", " exception is the tuple as expect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load any files found into a suite. Any directories are walked and their files are added as TAP files. :returns: A ``unittest.TestSuite`` instance
"Load any files found into a suite.\n\n Any directories are walked and their files are added as TAP files.\n\n :returns: A ``unittest.TestSuite`` instance"
47
false
python-tap/tappy
load
14,725
LDU_FT/sananth12/ImageScraper/console_main
LDU_FT
[ "<BEGIN>\n## `download_worker_fn`", "Stnadalone function that downloads images.\n<END>", "<BEGIN>\n## `get_arguments`", "Gets the arguments from the command line.\n<END>", "<BEGIN>\n## `get_html`", "Downloads HTML content of page given the page_url\n<END>", "<BEGIN>\n## `process_download_path`", "Proc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the console_main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the console_main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
This function handles all the console action.
"This function handles all the console action."
18
false
sananth12/ImageScraper
console_main
14,726
LDU_FT/lepture/flask-weixin/parse
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate request signature.", " :param signature: A string signature parameter sent by weixin.\n :param timestamp: A int timestamp parameter sent by weixin.\n :param nonce: A int nonce parameter sent by weixin.\n<END>", "<BEGIN>\n## `parse`", "Parse xml body s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse xml body sent by weixin. :param content: A text of xml body.
"Parse xml body sent by weixin.\n\n :param content: A text of xml body."
29
false
lepture/flask-weixin
parse
14,727
LDU_FT/pyviz/param/verify
LDU_FT
[ "<BEGIN>\n## `get_setup_version`", "Helper for use in setup.py to get the current version from either\n git describe or the .version file (if available).", " Set pkgname to the package name if it is different from the\n repository name.", " To ensure git information is included in a git archive, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. 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 verify API. 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 ...
Check that the version information is consistent with the VCS before doing a release. If supplied with a string version, this is also checked against the current version. Should be called from setup.py with the declared package version before releasing to PyPI.
"Check that the version information is consistent with the VCS\n before doing a release. If supplied with a string version,\n this is also checked against the current version. Should be\n called from setup.py with the declared package version before\n releasing to PyPI."
258
false
pyviz/param
verify
14,728
LDU_FT/msiemens/tinydb/process_elements
LDU_FT
[ "<BEGIN>\n## `table`", "Get access to a specific table.", " Creates a new table, if it hasn't been created before, otherwise it\n returns the cached :class:`~tinydb.Table` object.", " :param name: The name of the table.\n :type name: str\n :param cache_size: How many query r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 ...
Helper function for processing all documents specified by condition or IDs. A repeating pattern in TinyDB is to run some code on all documents that match a condition or are specified by their ID. This is implemented in this function. The function passed as ``func`` has to be a c...
"Helper function for processing all documents specified by condition\n or IDs.\n\n A repeating pattern in TinyDB is to run some code on all documents\n that match a condition or are specified by their ID. This is\n implemented in this function.\n The function passed as ``func`` has to...
66
false
msiemens/tinydb
process_elements
14,729
LDU_FT/nickmilon/Hellas/logging_format
LDU_FT
[ "<BEGIN>\n## `logging_format`", "returns a format\n :parameter:\n - str style: defines style of output format (defaults to txt)\n - txt plain text\n - dict like text which can be casted to dict\n<END>", "<BEGIN>\n## `logger_multi`", "a logger that logs to file as well as as scr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logging_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logging_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
returns a format :parameter: - str style: defines style of output format (defaults to txt) - txt plain text - dict like text which can be casted to dict
"returns a format\n :parameter:\n - str style: defines style of output format (defaults to txt)\n - txt plain text\n - dict like text which can be casted to dict"
71
false
nickmilon/Hellas
logging_format
14,730
LDU_FT/python-wink/python-wink/set_state
LDU_FT
[ "<BEGIN>\n## `set_mode`", ":param mode: a str, one of [home, away, night]\n :return: nothing\n<END>", "<BEGIN>\n## `set_privacy`", ":param state: True or False\n :return: nothing\n<END>", "<BEGIN>\n## `_update_state_from_response`", ":param response_json: the json obj returned from query\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
:param state: a boolean of true (on) or false ('off') :return: nothing
":param state: a boolean of true (on) or false ('off')\r\n :return: nothing"
133
false
python-wink/python-wink
set_state
14,731
LDU_FT/ungarj/s2reader/tci_path
LDU_FT
[ "<BEGIN>\n## `_pvi_path`", "Determine the PreView Image (PVI) path inside the SAFE pkg.\n<END>", "<BEGIN>\n## `_granule_identifier_to_xml_name`", "Very ugly way to convert the granule identifier.", " e.g.\n From\n Granule Identifier:\n S2A_OPER_MSI_L1C_TL_SGS__20150817T131818_A000792_T28QBG_N01....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tci_path API. 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 tci_path API. 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 path to the granules TrueColorImage.
"Return the path to the granules TrueColorImage."
18
false
ungarj/s2reader
tci_path
14,732
LDU_FT/gitenberg-dev/gitberg/make
LDU_FT
[ "<BEGIN>\n## `remote_path`", "turns an ebook_id into a path on PG's server(s)\n 4443 -> 4/4/4/4443/\n<END>", "<BEGIN>\n## `make`", "turn fetched files into a local repo, make auxiliary files\n<END>", "<BEGIN>\n## `push`", "create a github repo and push the local repo into it\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make API. 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 make API. 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...
turn fetched files into a local repo, make auxiliary files
"turn fetched files into a local repo, make auxiliary files"
51
false
gitenberg-dev/gitberg
make
14,733
LDU_FT/pycampers/zproc/strict_request_reply
LDU_FT
[ "<BEGIN>\n## `_create_remote_dict_method`", "Generates a method for the State class,\n that will call the \"method_name\" on the state (a ``dict``) stored on the server,\n and return the result.", " Glorified RPC.\n<END>", "<BEGIN>\n## `run_dict_method`", "Execute a method on the state ``dict`` and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strict_request_reply 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 strict_request_reply API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Ensures a strict req-reply loop, so that clients dont't receive out-of-order messages, if an exception occurs between request-reply.
"Ensures a strict req-reply loop,\n so that clients dont't receive out-of-order messages,\n if an exception occurs between request-reply."
134
false
pycampers/zproc
strict_request_reply
14,734
LDU_FT/trezor/python-trezor/publickey_unsafe
LDU_FT
[ "<BEGIN>\n## `encode_pin`", "Transform correct PIN according to the displayed matrix.\n<END>", "<BEGIN>\n## `address_from_public_key`", "Returns the base32-encoded version of pk_bytes (G...)\n<END>", "<BEGIN>\n## `parse_transaction_bytes`", "Parses base64data into a map with the following keys:\n t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publickey_unsafe API. 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 publickey_unsafe API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Not safe to use with secret keys or secret data. See module docstring. This function should be used for testing only.
"Not safe to use with secret keys or secret data.\n\n See module docstring. This function should be used for testing only."
52
false
trezor/python-trezor
publickey_unsafe
14,735
LDU_FT/jazzband/django-authority/has_perm
LDU_FT
[ "<BEGIN>\n## `permission_required`", "Decorator for views that checks whether a user has a particular permission\n enabled, redirecting to the log-in page if necessary.\n<END>", "<BEGIN>\n## `permission_required_or_403`", "Decorator that wraps the permission_required decorator and returns a\n permission...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_perm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_perm API. 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...
Check if user has the permission for the given object
"Check if user has the permission for the given object"
67
false
jazzband/django-authority
has_perm
14,736
LDU_FT/dwavesystems/dwave-cloud-client/argshash
LDU_FT
[ "<BEGIN>\n## `ls`", "List configuration files detected (and/or examined paths).\n<END>", "<BEGIN>\n## `create`", "Create and/or update cloud client configuration file.\n<END>", "<BEGIN>\n## `_ping`", "Helper method for the ping command that uses `output()` for info output\n and raises `CLIError()` on h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the argshash API. 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 argshash API. 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...
Hash mutable arguments' containers with immutable keys and values.
"Hash mutable arguments' containers with immutable keys and values."
339
false
dwavesystems/dwave-cloud-client
argshash
14,737
LDU_FT/thiagopbueno/rddl2tf/floor
LDU_FT
[ "<BEGIN>\n## `constant`", "Returns a constant `value` TensorFluent with given `dtype`.", " Args:\n value: The constant value.\n dtype: The output's data type.", " Returns:\n A constant TensorFluent.\n<END>", "<BEGIN>\n## `Bernoulli`", "Returns a TensorFluent ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the floor API. 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 floor API. 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...
Returns a TensorFluent for the floor function. Args: x: The input fluent. Returns: A TensorFluent wrapping the floor function.
"Returns a TensorFluent for the floor function.\n\n Args:\n x: The input fluent.\n\n Returns:\n A TensorFluent wrapping the floor function."
297
false
thiagopbueno/rddl2tf
floor
14,738
LDU_FT/sdispater/backpack/diff
LDU_FT
[ "<BEGIN>\n## `avg`", "Get the average value of a given key.", " :param key: The key to get the average for\n :type key: mixed", " :rtype: float or int\n<END>", "<BEGIN>\n## `chunk`", "Chunk the underlying collection.", " :param size: The chunk size\n :type size: int", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Diff the collections with the given items :param items: The items to diff with :type items: mixed :return: A Collection instance :rtype: Collection
"Diff the collections with the given items\n\n :param items: The items to diff with\n :type items: mixed\n\n :return: A Collection instance\n :rtype: Collection"
137
false
sdispater/backpack
diff
14,739
LDU_FT/thespacedoctor/neddy/_convert_html_to_csv
LDU_FT
[ "<BEGIN>\n## `get`", "*get the conesearch object*", " **Return:**\n - ``conesearch``", " .. todo::", " - @review: when complete, clean get method\n - @review: when complete add logging\n<END>", "<BEGIN>\n## `_get_ned_query_url`", "*single ned conesearch*", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_html_to_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_html_to_csv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
*contert html to csv* **Key Arguments:** # - **Return:** - None .. todo:: - @review: when complete, clean _convert_html_to_csv method - @review: when complete add logging
"*contert html to csv*\n\n **Key Arguments:**\n # -\n\n **Return:**\n - None\n\n .. todo::\n\n - @review: when complete, clean _convert_html_to_csv method\n - @review: when complete add logging"
68
false
thespacedoctor/neddy
_convert_html_to_csv
14,740
LDU_FT/Delgan/loguru/start
LDU_FT
[ "<BEGIN>\n## `add`", "r\"\"\"Add a handler sending log messages to a sink adequately configured.", " Parameters\n ----------\n sink : |file-like object|_, |str|, |Path|, |function|_, |Handler| or |class|_\n An object in charge of receiving formatted logging messages and propagati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Deprecated function to |add| a new handler. Warnings -------- .. deprecated:: 0.2.2 ``start()`` will be removed in Loguru 1.0.0, it is replaced by ``add()`` which is a less confusing name.
"Deprecated function to |add| a new handler.\n\n Warnings\n --------\n .. deprecated:: 0.2.2\n ``start()`` will be removed in Loguru 1.0.0, it is replaced by ``add()`` which is a less\n confusing name."
141
false
Delgan/loguru
start
14,741
LDU_FT/pycontribs/jira/update
LDU_FT
[ "<BEGIN>\n## `translate_resource_args`", "Decorator that converts Issue and Project resources to their keys when used as arguments.\n<END>", "<BEGIN>\n## `_check_update_`", "Check if the current version of the library is outdated.\n<END>", "<BEGIN>\n## `_fetch_pages`", "Fetch pages.", " :param it...
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 this issue on the server. Each keyword argument (other than the predefined ones) is treated as a field name and the argument's value is treated as the intended value for that field -- if the fields argument is used, all other keyword arguments will be ignored. JIRA projects may ...
"Update this issue on the server.\n\n Each keyword argument (other than the predefined ones) is treated as a field name and the argument's value\n is treated as the intended value for that field -- if the fields argument is used, all other keyword arguments\n will be ignored.\n\n JIRA projec...
468
false
pycontribs/jira
update
14,742
LDU_FT/restran/mountains/bytes_to_long
LDU_FT
[ "<BEGIN>\n## `set_dict_none_default`", "对字典中为None的值,重新设置默认值\n :param dict_item:\n :param default_value:\n :return:\n<END>", "<BEGIN>\n## `auto_model_name_recognize`", "自动将 site-user 识别成 SiteUser\n :param model_name:\n :return:\n<END>", "<BEGIN>\n## `model_to_select_list`", "只选择 id 和 name,用来...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bytes_to_long API. 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 bytes_to_long API. 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...
Convert a byte string to a long integer (big endian). In Python 3.2+, use the native method instead:: >>> int.from_bytes(s, 'big') For instance:: >>> int.from_bytes(b'\x00P', 'big') 80 This is (essentially) the inverse of :func:`long_to_bytes`.
"Convert a byte string to a long integer (big endian).\n\n In Python 3.2+, use the native method instead::\n\n >>> int.from_bytes(s, 'big')\n\n For instance::\n\n >>> int.from_bytes(b'\\x00P', 'big')\n 80\n\n This is (essentially) the inverse of :func:`long_to_bytes`."
81
false
restran/mountains
bytes_to_long
14,743
LDU_FT/facetoe/zenpy/updated_by
LDU_FT
[ "<BEGIN>\n## `agents`", "| Description: IDs of agents involved in the chat\n<END>", "<BEGIN>\n## `department`", "| Description: The ID of the department to which the chat is directed\n<END>", "<BEGIN>\n## `zendesk_ticket`", "| Description: The ID of the Zendesk Support ticket created from this chat. Av...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updated_by API. 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 updated_by API. 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...
| Comment: The id of the user who last updated the translation
"| Comment: The id of the user who last updated the translation"
321
false
facetoe/zenpy
updated_by
14,744
LDU_FT/huntrar/scrape/get_num_part_files
LDU_FT
[ "<BEGIN>\n## `write_files`", "Write scraped or local file(s) in desired format.", " Keyword arguments:\n args -- program arguments (dict)\n infilenames -- names of user-inputted and/or downloaded files (list)\n outfilename -- name of output file (str)", " Remove PART(#).html files after convers...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_num_part_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 get_num_part_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...
Get the number of PART.html files currently saved to disk.
"Get the number of PART.html files currently saved to disk."
79
false
huntrar/scrape
get_num_part_files
14,745
LDU_FT/portantier/habu/cmd_dhcp_discover
LDU_FT
[ "<BEGIN>\n## `cmd_arp_poison`", "Send ARP 'is-at' packets to each victim, poisoning their\n ARP tables for send the traffic to your system.", " Note: If you want a full working Man In The Middle attack, you need\n to enable the packet forwarding on your operating system to act like a\n router. You c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_dhcp_discover API. 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 cmd_dhcp_discover API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Send a DHCP request and show what devices has replied. Note: Using '-v' you can see all the options (like DNS servers) included on the responses. \b # habu.dhcp_discover Ether / IP / UDP 192.168.0.1:bootps > 192.168.0.5:bootpc / BOOTP / DHCP
"Send a DHCP request and show what devices has replied.\n\n Note: Using '-v' you can see all the options (like DNS servers) included on the responses.\n\n \\b\n # habu.dhcp_discover\n Ether / IP / UDP 192.168.0.1:bootps > 192.168.0.5:bootpc / BOOTP / DHCP"
304
false
portantier/habu
cmd_dhcp_discover
14,746
LDU_FT/erikrose/nose-progressive/dodging
LDU_FT
[ "<BEGIN>\n## `format_traceback`", "Return an iterable of formatted Unicode traceback frames.", " Also include a pseudo-frame at the end representing the exception itself.", " Format things more compactly than the stock formatter, and make every\n frame an editor shortcut.\n<END>", "<BEGIN>\n## `ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dodging API. 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 dodging API. 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 a context manager which erases the bar, lets you output things, and then redraws the bar. It's reentrant.
"Return a context manager which erases the bar, lets you output things, and then redraws the bar.\n\n It's reentrant."
65
false
erikrose/nose-progressive
dodging
14,747
LDU_FT/prometheus/client_python/default_handler
LDU_FT
[ "<BEGIN>\n## `add_sample`", "Add a sample to the metric.", " Internal-only, do not use.\n<END>", "<BEGIN>\n## `add_metric`", "Add a metric to the metric family.", " Args:\n labels: A list of label values\n value: The value of the metric\n created: Optional unix tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Default handler that implements HTTP/HTTPS connections. Used by the push_to_gateway functions. Can be re-used by other handlers.
"Default handler that implements HTTP/HTTPS connections.\n\n Used by the push_to_gateway functions. Can be re-used by other handlers."
100
false
prometheus/client_python
default_handler
14,748
LDU_FT/jwodder/javaproperties/unescape
LDU_FT
[ "<BEGIN>\n## `load_xml`", "r\"\"\"\n Parse the contents of the file-like object ``fp`` as an XML properties file\n and return a `dict` of the key-value pairs.", " Beyond basic XML well-formedness, `load_xml` only checks that the root\n element is named \"``properties``\" and that all of its ``<entry...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unescape API. 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 unescape API. 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...
Decode escape sequences in a ``.properties`` key or value. The following escape sequences are recognized:: \\t \\n \\f \\r \\uXXXX \\\\ If a backslash is followed by any other character, the backslash is dropped. In addition, any valid UTF-16 surrogate pairs in the string after escape-de...
"Decode escape sequences in a ``.properties`` key or value. The following\n escape sequences are recognized::\n\n \\\\t \\\\n \\\\f \\\\r \\\\uXXXX \\\\\\\\\n\n If a backslash is followed by any other character, the backslash is\n dropped.\n\n In addition, any valid UTF-16 surrogate pairs in the str...
115
false
jwodder/javaproperties
unescape
14,749
LDU_FT/EVEprosper/ProsperCommon/decorate
LDU_FT
[ "<BEGIN>\n## `render_secrets`", "combine a jinja template with a secret .ini file", " Args:\n config_path (str): path to .cfg file with jinja templating\n secret_path (str): path to .ini-like secrets file", " Returns:\n ProsperConfig: rendered configuration object\n<END>", "<BEGIN...
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...
Build up HipChat specific values for log record Args: record (:obj:`logging.record`): log message object Returns: dict: params for POST request
"Build up HipChat specific values for log record\n\n Args:\n record (:obj:`logging.record`): log message object\n\n Returns:\n dict: params for POST request"
115
false
EVEprosper/ProsperCommon
decorate
14,750
LDU_FT/Apstra/aeon-venos/run
LDU_FT
[ "<BEGIN>\n## `sudoers`", "This method is used to enable/disable bash sudo commands running\n through the guestshell virtual service. By default sudo access\n is prevented due to the setting in the 'sudoers' file. Therefore\n the setting must be disabled in the file to enable sudo commands."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
This will invoke the command to install the image, and then cause the device to reboot. :param timeout: time/seconds to perform the install action
"This will invoke the command to install the image, and then\n cause the device to reboot.\n :param timeout: time/seconds to perform the install action"
18
false
Apstra/aeon-venos
run
14,751
LDU_FT/Kyria/EsiPy/generate_code_verifier
LDU_FT
[ "<BEGIN>\n## `make_cache_key`", "Generate a cache key from request object data\n<END>", "<BEGIN>\n## `check_cache`", "check if a cache fits esipy needs or not\n<END>", "<BEGIN>\n## `get_cache_time_left`", "return the time left in second for an expires header\n<END>", "<BEGIN>\n## `generate_code_verifier...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_code_verifier 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 generate_code_verifier API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
source: https://github.com/openstack/deb-python-oauth2client Generates a 'code_verifier' as described in section 4.1 of RFC 7636. This is a 'high-entropy cryptographic random string' that will be impractical for an attacker to guess. Args: n_bytes: integer between 31 and 96, inclusive. default: ...
"source: https://github.com/openstack/deb-python-oauth2client\n Generates a 'code_verifier' as described in section 4.1 of RFC 7636.\n This is a 'high-entropy cryptographic random string' that will be\n impractical for an attacker to guess.\n Args:\n n_bytes: integer between 31 and 96, inclusive. def...
87
false
Kyria/EsiPy
generate_code_verifier
14,752
LDU_FT/tomnor/channelpack/set_duration
LDU_FT
[ "<BEGIN>\n## `masked`", "Return a numpy array with values from a where elements in b are\n not False. Populate with numpy.nan where b is False. When plotting,\n those elements look like missing, which can be a desired result.\n<END>", "<BEGIN>\n## `duration_bool`", "Mask the parts in b being True but do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_duration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_duration API. 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...
Set the duration according to rule. rule: str The rule operating on the variable ``dur``. rule is an expression like:: >>> rule = 'dur == 150 or dur > 822' setting a duration rule assuming a pack sp:: >>> sp.set_duration(rule) The identifier ``du...
"Set the duration according to rule.\n\n rule: str\n The rule operating on the variable ``dur``.\n\n rule is an expression like::\n\n >>> rule = 'dur == 150 or dur > 822'\n\n setting a duration rule assuming a pack sp::\n\n >>> sp.set_duration(rule)\n\n The i...
253
false
tomnor/channelpack
set_duration
14,753
LDU_FT/tcalmant/ipopo/service_changed
LDU_FT
[ "<BEGIN>\n## `__conn_listener`", "Connection event listener", " :param state: The new connection state\n<END>", "<BEGIN>\n## `__path`", "Adds the prefix to the given path", " :param path: Z-Path\n :return: Prefixed Z-Path\n<END>", "<BEGIN>\n## `create`", "Creates a ZooKeeper node"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the service_changed API. 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 service_changed API. 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...
Handles an event about the iPOPO service
"Handles an event about the iPOPO service"
1,396
true
tcalmant/ipopo
service_changed
14,754
LDU_FT/google/budou/get
LDU_FT
[ "<BEGIN>\n## `get_parser`", "Gets a parser.", " Args:\n segmenter (str): Segmenter to use.\n options (:obj:`dict`, optional): Optional settings.", " Returns:\n Parser (:obj:`budou.parser.Parser`)", " Raises:\n ValueError: If unsupported segmenter is specified.\n<END>", "<BEGIN>\n## `parse_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Gets a value by a key. Args: key (str): Key to retrieve the value. Returns: Retrieved value.
"Gets a value by a key.\n\n Args:\n key (str): Key to retrieve the value.\n\n Returns: Retrieved value."
89
false
google/budou
get
14,755
LDU_FT/googleapis/google-auth-library-python/convert
LDU_FT
[ "<BEGIN>\n## `_convert_oauth2_credentials`", "Converts to :class:`google.oauth2.credentials.Credentials`.", " Args:\n credentials (Union[oauth2client.client.OAuth2Credentials,\n oauth2client.client.GoogleCredentials]): The credentials to\n convert.", " Returns:\n goog...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert oauth2client credentials to google-auth credentials. This class converts: - :class:`oauth2client.client.OAuth2Credentials` to :class:`google.oauth2.credentials.Credentials`. - :class:`oauth2client.client.GoogleCredentials` to :class:`google.oauth2.credentials.Credentials`. - :class...
"Convert oauth2client credentials to google-auth credentials.\n\n This class converts:\n\n - :class:`oauth2client.client.OAuth2Credentials` to\n :class:`google.oauth2.credentials.Credentials`.\n - :class:`oauth2client.client.GoogleCredentials` to\n :class:`google.oauth2.credentials.Credentials`.\n ...
311
false
googleapis/google-auth-library-python
convert
14,756
LDU_FT/ChrisCummins/labm8/make
LDU_FT
[ "<BEGIN>\n## `table`", "Return a formatted string of \"list of list\" table data.", " See: http://pandas.pydata.org/pandas-docs/dev/generated/pandas.DataFrame.html", " Examples:", " >>> fmt.print([(\"foo\", 1), (\"bar\", 2)])\n 0 1\n 0 foo 1\n 1 bar 2", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make API. 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 make API. 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...
Run make. Arguments: target (str, optional): Name of the target to build. Defaults to "all". dir (str, optional): Path to directory containing Makefile. **kwargs (optional): Any additional arguments to be passed to system.run(). Returns: (int, str, str): T...
"Run make.\n\n Arguments:\n\n target (str, optional): Name of the target to build. Defaults\n to \"all\".\n dir (str, optional): Path to directory containing Makefile.\n **kwargs (optional): Any additional arguments to be passed to\n system.run().\n\n Returns:\n\n (in...
345
false
ChrisCummins/labm8
make
14,757
LDU_FT/kgori/treeCl/nni
LDU_FT
[ "<BEGIN>\n## `brent_optimise`", "Optimise ML distance between two partials. min and max set brackets\n<END>", "<BEGIN>\n## `pairdists`", "Load an alignment, calculate all pairwise distances and variances\n model parameter must be a Substitution model type from phylo_utils\n<END>", "<BEGIN>\n## `write...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nni API. 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 nni API. 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...
*Inplace* Nearest-neighbour interchange (NNI) operation. An edge in the tree has two or more subtrees at each end (ends are designated 'head' and 'tail'). The NNI operation exchanges one of the head subtrees for one of the tail subtrees, as follows: A C ...
"*Inplace* Nearest-neighbour interchange (NNI) operation.\n\n An edge in the tree has two or more subtrees at each end (ends are\n designated 'head' and 'tail'). The NNI operation exchanges one of the\n head subtrees for one of the tail subtrees, as follows:\n\n A C ...
389
false
kgori/treeCl
nni
14,758
LDU_FT/pallets/werkzeug/freeze
LDU_FT
[ "<BEGIN>\n## `mimetype`", "The mimetype (content type without charset etc.)\n<END>", "<BEGIN>\n## `mimetype_params`", "The mimetype parameters as dict. For example if the\n content type is ``text/html; charset=utf-8`` the params would be\n ``{'charset': 'utf-8'}``.", " .. versionadded::...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the freeze API. 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 freeze API. 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 this method if you want to make your response object ready for pickeling. This buffers the generator if there is one. This also sets the etag unless `no_etag` is set to `True`.
"Call this method if you want to make your response object ready for\n pickeling. This buffers the generator if there is one. This also\n sets the etag unless `no_etag` is set to `True`."
541
false
pallets/werkzeug
freeze
14,759
LDU_FT/wummel/linkchecker/read_filtering_config
LDU_FT
[ "<BEGIN>\n## `start_output`", "Write start of checking info as gml comment.\n<END>", "<BEGIN>\n## `getaddresses`", "Return list of email addresses from given field value.\n<END>", "<BEGIN>\n## `build_url`", "Call super.build_url(), extract list of mail addresses from URL,\n and check their syntax.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_filtering_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_filtering_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Read configuration options in section "filtering".
"Read configuration options in section \"filtering\"."
1,377
true
wummel/linkchecker
read_filtering_config
14,760
LDU_FT/dasevilla/rovi-python/video_search
LDU_FT
[ "<BEGIN>\n## `make_request`", "Performs the API request. Most methods are a wrapper around this one.\n<END>", "<BEGIN>\n## `music_search`", "Search the music database", " Where ``entitiy_type`` is a comma separated list of:", " ``song``\n songs", " ``album``\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the video_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the video_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Search the TV schedule database Where ``entitiy_type`` is a comma separated list of: ``movie`` Movie ``tvseries`` TV series ``episode`` Episode titles ``onetimeonly`` TV programs ``credit`` People working i...
"Search the TV schedule database\n\n Where ``entitiy_type`` is a comma separated list of:\n\n ``movie``\n Movie\n\n ``tvseries``\n TV series\n\n ``episode``\n Episode titles\n\n ``onetimeonly``\n TV programs\n\n ``credit``\n ...
35
false
dasevilla/rovi-python
video_search
14,761
LDU_FT/devries/bottle-session/keys
LDU_FT
[ "<BEGIN>\n## `regenerate`", "Regenerate the session id.", " This function creates a new session id and stores all information\n associated with the current id in that new id. It then destroys the\n old session id. This is useful for preventing session fixation attacks\n and should be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keys API. 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 keys API. 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...
Return a list of all keys in the dictionary. Returns: list of str: [key1,key2,...,keyN]
"Return a list of all keys in the dictionary.\n\n Returns:\n list of str: [key1,key2,...,keyN]"
16
false
devries/bottle-session
keys
14,762
LDU_FT/bitlabstudio/django-libs/as_view
LDU_FT
[ "<BEGIN>\n## `add_form_widget_attr`", "Adds widget attributes to a bound form field.", " This is helpful if you would like to add a certain class to all your forms\n (i.e. `form-control` to all form fields when you are using Bootstrap)::", " {% load libs_tags %}\n {% for field in form.fiel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_view API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Main entry point for a request-response process.
"Main entry point for a request-response process."
101
false
bitlabstudio/django-libs
as_view
14,763
LDU_FT/simonw/datasette/plugin_config
LDU_FT
[ "<BEGIN>\n## `fail_if_publish_binary_not_installed`", "Exit (with error message) if ``binary` isn't installed\n<END>", "<BEGIN>\n## `path_from_row_pks`", "Generate an optionally URL-quoted unique identifier\n for a row from its primary keys.\n<END>", "<BEGIN>\n## `detect_fts`", "Detect if table has...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plugin_config API. 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 plugin_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return config for plugin, falling back from specified database/table
"Return config for plugin, falling back from specified database/table"
36
false
simonw/datasette
plugin_config
14,764
LDU_FT/mongolab/dex/_get_requested_databases
LDU_FT
[ "<BEGIN>\n## `generate_query_report`", "Generates a comprehensive report on the raw query\n<END>", "<BEGIN>\n## `_ensure_index_cache`", "Adds a collections index entries to the cache if not present\n<END>", "<BEGIN>\n## `_generate_query_analysis`", "Translates a raw query object into a Dex query analysis\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_requested_databases API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_requested_databases API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns a list of databases requested, not including ignored dbs
"Returns a list of databases requested, not including ignored dbs"
30
false
mongolab/dex
_get_requested_databases
14,765
LDU_FT/riggsd/davies/inc
LDU_FT
[ "<BEGIN>\n## `lint`", "Run verbose PyLint on source. Optionally specify fmt=html for HTML output.\n<END>", "<BEGIN>\n## `azm`", "Corrected azimuth, taking into account backsight, declination, and compass corrections.\n<END>", "<BEGIN>\n## `inc`", "Corrected inclination, taking into account backsight and c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inc API. 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 inc API. 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...
Corrected inclination, taking into account backsight and clino corrections.
"Corrected inclination, taking into account backsight and clino corrections."
60
false
riggsd/davies
inc
14,766
LDU_FT/capnproto/pycapnp/stage_platform_hpp
LDU_FT
[ "<BEGIN>\n## `localpath`", "construct an absolute path from a list relative to the root pycapnp directory\n<END>", "<BEGIN>\n## `fetch_archive`", "download an archive to a specific location\n<END>", "<BEGIN>\n## `stage_platform_hpp`", "stage platform.hpp into libcapnp sources", " Tries ./configure fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stage_platform_hpp 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 stage_platform_hpp 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...
stage platform.hpp into libcapnp sources Tries ./configure first (except on Windows), then falls back on included platform.hpp previously generated.
"stage platform.hpp into libcapnp sources\n\n Tries ./configure first (except on Windows),\n then falls back on included platform.hpp previously generated."
44
false
capnproto/pycapnp
stage_platform_hpp
14,767
LDU_FT/jldbc/pybaseball/split_request
LDU_FT
[ "<BEGIN>\n## `process_win_streak`", "Convert \"+++\"/\"---\" formatted win/loss streak column into a +/- integer column\n<END>", "<BEGIN>\n## `split_request`", "Splits Statcast queries to avoid request timeouts\n<END>", "<BEGIN>\n## `statcast_pitcher`", "Pulls statcast pitch-level data from Baseball Savan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_request API. 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 split_request API. 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...
Splits Statcast queries to avoid request timeouts
"Splits Statcast queries to avoid request timeouts"
46
false
jldbc/pybaseball
split_request
14,768
LDU_FT/deepmind/sonnet/_recover_shape_information
LDU_FT
[ "<BEGIN>\n## `generate_code`", "Generates code samples.", " Args:\n max_length: int. max literal length.\n max_nest: int. max nesting level.\n ops: CodeOp. set of allowable operations.", " Returns:\n 1. (str) output value.\n 2. (str) Code operation.\n<END>", "<BEGIN>\n## `get_tokens`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _recover_shape_information 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 _recover_shape_information API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Recover output tensor shape value to enable shape inference. The batch size of `inputs` isn't preserved by the convolution op. Calculate what the proper output shape will be for `outputs`. Args: inputs: A Tensor of shape `data_format` and of type `tf.float16`, `tf.bfloat16` or `tf.float32`...
"Recover output tensor shape value to enable shape inference.\n\n The batch size of `inputs` isn't preserved by the convolution op. Calculate\n what the proper output shape will be for `outputs`.\n\n Args:\n inputs: A Tensor of shape `data_format` and of type `tf.float16`,\n `tf.bfloat16` or `tf....
937
false
deepmind/sonnet
_recover_shape_information
14,769
LDU_FT/cloudsmith-io/cloudsmith-cli/wait_for_package_sync
LDU_FT
[ "<BEGIN>\n## `convert`", "Take a path with $HOME variables and resolve it to full path.\n<END>", "<BEGIN>\n## `make_user_agent`", "Get a suitable user agent for identifying the CLI process.\n<END>", "<BEGIN>\n## `pretty_print_list_info`", "Pretty print list info, with pagination, for user display.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_package_sync 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 wait_for_package_sync API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Wait for a package to synchronise (or fail).
"Wait for a package to synchronise (or fail)."
214
false
cloudsmith-io/cloudsmith-cli
wait_for_package_sync
14,770
LDU_FT/DeepHorizons/iarm/BLX
LDU_FT
[ "<BEGIN>\n## `ADR`", "ADR Ra, [PC, #imm10_4]\n ADR Ra, label", " Load the address of label or the PC offset into Ra\n Ra must be a low register\n<END>", "<BEGIN>\n## `LDR`", "LDR Ra, [PC, #imm10_4]\n LDR Ra, label\n LDR Ra, =equate\n LDR Ra, [Rb, Rc]\n LDR Ra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the BLX API. 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 BLX API. 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...
BLX Rj Branch to the address in Rj, storing the next instruction in the Link Register
"BLX Rj\n\n Branch to the address in Rj, storing the next instruction in the Link Register"
253
false
DeepHorizons/iarm
BLX
14,771
LDU_FT/lepture/terminal/message
LDU_FT
[ "<BEGIN>\n## `log`", "print a log test", " :param verbose: show more logs\n<END>", "<BEGIN>\n## `is_color_supported`", "Find out if your terminal environment supports color.\n<END>", "<BEGIN>\n## `rgb2ansi`", "Convert an RGB color to 256 ansi graphics.\n<END>", "<BEGIN>\n## `colorize`", "Colorize...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Format the message of the logger. You can rewrite this method to format your own message:: class MyLogger(Logger): def message(self, level, *args): msg = ' '.join(args) if level == 'error': return terminal.red(msg) ...
"Format the message of the logger.\n\n You can rewrite this method to format your own message::\n\n class MyLogger(Logger):\n\n def message(self, level, *args):\n msg = ' '.join(args)\n\n if level == 'error':\n return terminal...
71
false
lepture/terminal
message
14,772