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/log2timeline/dfdatetime/CopyToDateTimeString
LDU_FT
[ "<BEGIN>\n## `_GetNormalizedTimestamp`", "Retrieves the normalized timestamp.", " Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CopyToDateTimeString 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 CopyToDateTimeString API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Copies the time elements to a date and time string. Returns: str: date and time value formatted as: "YYYY-MM-DD hh:mm:ss" or "YYYY-MM-DD hh:mm:ss.######" or None if time elements are missing. Raises: ValueError: if the precision value is unsupported.
"Copies the time elements to a date and time string.\n\n Returns:\n str: date and time value formatted as: \"YYYY-MM-DD hh:mm:ss\" or\n \"YYYY-MM-DD hh:mm:ss.######\" or None if time elements are missing.\n\n Raises:\n ValueError: if the precision value is unsupported."
244
false
log2timeline/dfdatetime
CopyToDateTimeString
12,573
LDU_FT/olt/scriptine/walk
LDU_FT
[ "<BEGIN>\n## `autocmds`", "Parse and run commands.", " Will search ``namespace`` for functions that end with ``command_suffix``.", " :param namespace: the namespace/module to search for commands\n :param args: the arguments for the command parser. defaults to\n :data:`sys.argv`\n :param com...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walk API. 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 walk API. 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...
D.walk() -> iterator over files and subdirs, recursively. The iterator yields path objects naming each child item of this directory and its descendants. This requires that D.isdir(). This performs a depth-first traversal of the directory tree. Each directory is returned just b...
"D.walk() -> iterator over files and subdirs, recursively.\n\n The iterator yields path objects naming each child item of\n this directory and its descendants. This requires that\n D.isdir().\n\n This performs a depth-first traversal of the directory tree.\n Each directory is returne...
84
false
olt/scriptine
walk
12,574
LDU_FT/jwkvam/plotlywrapper/yticksize
LDU_FT
[ "<BEGIN>\n## `_detect_notebook`", "Detect if code is running in a Jupyter Notebook.", " This isn't 100% correct but seems good enough", " Returns\n -------\n bool\n True if it detects this is a notebook, otherwise False.\n<END>", "<BEGIN>\n## `_try_pydatetime`", "Try to convert to panda...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the yticksize API. 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 yticksize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set the tick font size. Parameters ---------- size : int Returns ------- Chart
"Set the tick font size.\n\n Parameters\n ----------\n size : int\n\n Returns\n -------\n Chart"
87
false
jwkvam/plotlywrapper
yticksize
12,575
LDU_FT/gitpython-developers/GitPython/format
LDU_FT
[ "<BEGIN>\n## `new_from_sha`", ":return: new object instance of a type appropriate to represent the given\n binary sha1\n :param sha1: 20 byte binary sha1\n<END>", "<BEGIN>\n## `stream_data`", "Writes our data directly to the given output stream\n :param ostream: File object compatible...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
:return: a string suitable to be placed in a reflog file
":return: a string suitable to be placed in a reflog file"
741
false
gitpython-developers/GitPython
format
12,576
LDU_FT/closeio/quotequail/trim_slice
LDU_FT
[ "<BEGIN>\n## `quote`", "Takes a plain text message as an argument, returns a list of tuples. The\n first argument of the tuple denotes whether the text should be expanded by\n default. The second argument is the unmodified corresponding text.", " Example: [(True, 'expanded text'), (False, '> Some quote...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trim_slice API. 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 trim_slice API. 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...
Trim a slice tuple (begin, end) so it starts at the first non-empty line (obtained via indented_tree_line_generator / get_line_info) and ends at the last non-empty line within the slice. Returns the new slice.
"Trim a slice tuple (begin, end) so it starts at the first non-empty line\n (obtained via indented_tree_line_generator / get_line_info) and ends at the\n last non-empty line within the slice. Returns the new slice."
65
false
closeio/quotequail
trim_slice
12,577
LDU_FT/lark-parser/lark/_bin
LDU_FT
[ "<BEGIN>\n## `dedup_list`", "Given a list (l) will removing duplicates from the list,\n preserving the original order of the list. Assumes that\n the list entrie are hashable.\n<END>", "<BEGIN>\n## `_parse`", "Parses sentence 's' using CNF grammar 'g'.\n<END>", "<BEGIN>\n## `get_any_nt_unit_rule...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Applies the BIN rule to 'g' (see top comment).
"Applies the BIN rule to 'g' (see top comment)."
55
false
lark-parser/lark
_bin
12,578
LDU_FT/polyaxon/rhea/get_float
LDU_FT
[ "<BEGIN>\n## `read`", "Reads an ordered list of configuration values and deep merge the values in reverse order.\n<END>", "<BEGIN>\n## `get_int`", "Get a the value corresponding to the key and converts it to `int`/`list(int)`.", " Args:\n key: the dict key.\n is_list: If this is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_float API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_float API. 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...
Get a the value corresponding to the key and converts it to `float`/`list(float)`. Args: key: the dict key. is_list: If this is one element or a list of elements. is_optional: To raise an error if key was not found. is_secret: If the key is a secret. ...
"Get a the value corresponding to the key and converts it to `float`/`list(float)`.\n\n Args:\n key: the dict key.\n is_list: If this is one element or a list of elements.\n is_optional: To raise an error if key was not found.\n is_secret: If the key is a secret.\n ...
46
false
polyaxon/rhea
get_float
12,579
LDU_FT/TrafficSenseMSD/SumoTools/setMaxSpeed
LDU_FT
[ "<BEGIN>\n## `getDistance2D`", "getDistance2D(double, double, double, double, boolean, boolean) -> double", " Returns the distance between the two coordinate pairs (x1,y1) and (x2,y2)", " If isGeo=True, coordinates are interpreted as longitude and latitude rather\n than cartesian coordina...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setMaxSpeed API. 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 setMaxSpeed API. 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...
setMaxSpeed(string, double) -> None Sets the maximum speed in m/s of vehicles of this type.
"setMaxSpeed(string, double) -> None\n\n Sets the maximum speed in m/s of vehicles of this type."
475
false
TrafficSenseMSD/SumoTools
setMaxSpeed
12,580
LDU_FT/ontio/ontology-python-sdk/transfer
LDU_FT
[ "<BEGIN>\n## `init`", "This interface is used to call the TotalSupply method in ope4\n that initialize smart contract parameter.", " :param acct: an Account class that used to sign the transaction.\n :param payer_acct: an Account class that used to pay for the transaction.\n :param g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transfer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
This interface is used to call the Transfer method in ope4 that transfer an amount of tokens from one account to another account. :param from_acct: an Account class that send the oep4 token. :param b58_to_address: a base58 encode address that receive the oep4 token. :param value: an int...
"This interface is used to call the Transfer method in ope4\n that transfer an amount of tokens from one account to another account.\n\n :param from_acct: an Account class that send the oep4 token.\n :param b58_to_address: a base58 encode address that receive the oep4 token.\n :param value: ...
375
false
ontio/ontology-python-sdk
transfer
12,581
LDU_FT/karel-brinda/rnftools/add_sam2rnf_parser
LDU_FT
[ "<BEGIN>\n## `recode_curesim_reads`", "Recode CuReSim output FASTQ file to the RNF-compatible output FASTQ file.", "\t\tArgs:\n\t\t\tcuresim_fastq_fo (file object): File object of CuReSim FASTQ file.\n\t\t\tfastq_rnf_fo (file object): File object of RNF FASTQ.\n\t\t\tfai_fo (file object): File object for FAI fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_sam2rnf_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_sam2rnf_parser 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...
Add another parser for a SAM2RNF-like command. Args: subparsers (subparsers): File name of the genome from which read tuples are created (FASTA file). simulator_name (str): Name of the simulator used in comments.
"Add another parser for a SAM2RNF-like command.\n\n\tArgs:\n\t\tsubparsers (subparsers): File name of the genome from which read tuples are created (FASTA file).\n\t\tsimulator_name (str): Name of the simulator used in comments."
84
false
karel-brinda/rnftools
add_sam2rnf_parser
12,582
LDU_FT/aio-libs/aiohttp-devtools/modify_main_app
LDU_FT
[ "<BEGIN>\n## `modify_main_app`", "Modify the app we're serving to make development easier, eg.\n * modify responses to add the livereload snippet\n * set ``static_root_url`` on the app\n * setup the debug toolbar\n<END>", "<BEGIN>\n## `src_reload`", "prompt each connected browser to reload by sending...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_main_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_main_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Modify the app we're serving to make development easier, eg. * modify responses to add the livereload snippet * set ``static_root_url`` on the app * setup the debug toolbar
"Modify the app we're serving to make development easier, eg.\n * modify responses to add the livereload snippet\n * set ``static_root_url`` on the app\n * setup the debug toolbar"
32
false
aio-libs/aiohttp-devtools
modify_main_app
12,583
LDU_FT/python-rope/rope/infer_returned_object
LDU_FT
[ "<BEGIN>\n## `find_occurrences`", "Return a list of `Location`\\s", " If `unsure` is `True`, possible matches are returned, too. You\n can use `Location.unsure` to see which are unsure occurrences.\n `resources` can be a list of `rope.base.resource.File`\\s that\n should be searched for occurrences...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the infer_returned_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the infer_returned_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. ...
Infer the `PyObject` this `PyFunction` returns after calling
"Infer the `PyObject` this `PyFunction` returns after calling"
312
false
python-rope/rope
infer_returned_object
12,584
LDU_FT/improbable-research/keanu/IntegerAbs
LDU_FT
[ "<BEGIN>\n## `BooleanSlice`", "Takes the slice along a given dimension and index of a vertex", " :param input_vertex: the input vertex\n :param dimension: the dimension to extract along\n :param index: the index of extraction\n<END>", "<BEGIN>\n## `BooleanTake`", "A vertex that extracts a scalar at...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the IntegerAbs API. 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 IntegerAbs API. 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...
Takes the absolute value of a vertex :param input_vertex: the vertex
"Takes the absolute value of a vertex\n \n :param input_vertex: the vertex"
185
false
improbable-research/keanu
IntegerAbs
12,585
LDU_FT/sci-bots/mpm/get_plugins_directory
LDU_FT
[ "<BEGIN>\n## `update_plugin_dialog`", "Launch dialog to track status of update of specified plugin package.", " .. versionadded:: 0.19", " .. versionchanged:: 0.20\n Add support for updating multiple packages (update all **installed**\n plugins by default).", " Add :data:`update_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plugins_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plugins_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Resolve plugins directory. Plugins directory is resolved as follows, highest-priority first: 1. ``plugins`` directory specified in provided :data:`config_path`. 2. ``plugins`` sub-directory of specified MicroDrop profile path (i.e., :data:`microdrop_user_root`) 3. ``plugins`` sub-directory ...
"Resolve plugins directory.\n\n Plugins directory is resolved as follows, highest-priority first:\n\n 1. ``plugins`` directory specified in provided :data:`config_path`.\n 2. ``plugins`` sub-directory of specified MicroDrop profile path (i.e.,\n :data:`microdrop_user_root`)\n 3. ``plugins`` sub-di...
181
false
sci-bots/mpm
get_plugins_directory
12,586
LDU_FT/bioasp/caspo/from_tuples
LDU_FT
[ "<BEGIN>\n## `from_str`", "Creates a literal from a string", " Parameters\n ----------\n string : str\n If the string starts with '!', it's interpreted as a negated variable", " Returns\n -------\n caspo.core.literal.Literal\n Created object inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_tuples API. 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 from_tuples API. 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...
Creates a graph from an iterable of tuples describing edges like (source, target, sign) Parameters ---------- tuples : iterable[(str,str,int))] Tuples describing signed and directed edges Returns ------- caspo.core.graph.Graph Created object inst...
"Creates a graph from an iterable of tuples describing edges like (source, target, sign)\n\n Parameters\n ----------\n tuples : iterable[(str,str,int))]\n Tuples describing signed and directed edges\n\n Returns\n -------\n caspo.core.graph.Graph\n Created ...
366
false
bioasp/caspo
from_tuples
12,587
LDU_FT/remind101/stacker_blueprints/static_website_bucket_policy
LDU_FT
[ "<BEGIN>\n## `create_sqs_policy`", "This method creates the SQS policy needed for an SNS subscription. It\n also takes the ARN of the SQS queue and converts it to the URL needed\n for the subscription, as that takes a URL rather than the ARN.\n<END>", "<BEGIN>\n## `create_topic`", "Creates the S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the static_website_bucket_policy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the static_website_bucket_policy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Attach this policy directly to an S3 bucket to make it a static website. This policy grants read access to **all unauthenticated** users.
"Attach this policy directly to an S3 bucket to make it a static website.\n This policy grants read access to **all unauthenticated** users."
53
false
remind101/stacker_blueprints
static_website_bucket_policy
12,588
LDU_FT/zulily/pudl/object_filter
LDU_FT
[ "<BEGIN>\n## `group`", "Produces a single, populated ADGroup object through the object factory.\n Does not populate attributes for the caller instance.", " sAMAccountName may not be present in group objects in modern AD schemas.\n Searching by common name and object class (group) may be an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the object_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the object_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Filter out any objects that do not have attributes with values matching *all* regular expressions present in grep (AND, essentially) :param objects ADObject: A list of ADObjects :param grep list: A list of regular expressions that must match for filtering :return: A list of filtered ADObjects :rty...
"Filter out any objects that do not have attributes with values matching\n *all* regular expressions present in grep (AND, essentially)\n\n :param objects ADObject: A list of ADObjects\n :param grep list: A list of regular expressions that must match for filtering\n\n :return: A list of filtered ADObjects\n...
61
false
zulily/pudl
object_filter
12,589
LDU_FT/PyMySQL/PyMySQL/escape
LDU_FT
[ "<BEGIN>\n## `close`", "Closing a cursor just exhausts all remaining data.\n<END>", "<BEGIN>\n## `mogrify`", "Returns the exact string that is sent to the database by calling the\n execute() method.", " This method follows the extension to the DB API 2.0 followed by Psycopg.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the escape API. 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 escape API. 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 ...
Escape whatever value you pass to it. Non-standard, for internal use; do not use this in your applications.
"Escape whatever value you pass to it.\n\n Non-standard, for internal use; do not use this in your applications."
88
false
PyMySQL/PyMySQL
escape
12,590
LDU_FT/vtraag/louvain-igraph/find_partition_multiplex
LDU_FT
[ "<BEGIN>\n## `optimise_partition`", "Optimise the given partition.", " Parameters\n ----------\n partition\n The :class:`~VertexPartition.MutableVertexPartition` to optimise.", " Returns\n -------\n float\n Improvement in quality function.", " Examples\n --------", " >...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_partition_multiplex 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 find_partition_multiplex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Detect communities for multiplex graphs. Each graph should be defined on the same set of vertices, only the edges may differ for different graphs. See :func:`Optimiser.optimise_partition_multiplex` for a more detailed explanation. Parameters ---------- graphs : list of :class:`ig.Graph` List of :cla...
"Detect communities for multiplex graphs.\n\n Each graph should be defined on the same set of vertices, only the edges may\n differ for different graphs. See\n :func:`Optimiser.optimise_partition_multiplex` for a more detailed\n explanation.\n\n Parameters\n ----------\n graphs : list of :class:`ig.Graph`\n L...
102
false
vtraag/louvain-igraph
find_partition_multiplex
12,591
LDU_FT/ivilata/pymultihash/encode
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset the registry to the standard codecs.\n<END>", "<BEGIN>\n## `register`", "Add a codec to the registry.", " Registers a codec with the given `name` (a string) to be used with the\n given `encode` and `decode` functions, which take a `bytes` object and\n retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
r"""Encode into a multihash-encoded digest. If `encoding` is `None`, a binary digest is produced: >>> mh = Multihash(0x01, b'TEST') >>> mh.encode() b'\x01\x04TEST' If the name of an `encoding` is specified, it is used to encode the binary digest before returning it (se...
"r\"\"\"Encode into a multihash-encoded digest.\n\n If `encoding` is `None`, a binary digest is produced:\n\n >>> mh = Multihash(0x01, b'TEST')\n >>> mh.encode()\n b'\\x01\\x04TEST'\n\n If the name of an `encoding` is specified, it is used to encode the\n binary digest before r...
59
false
ivilata/pymultihash
encode
12,592
LDU_FT/trendels/rhino/pop_messages
LDU_FT
[ "<BEGIN>\n## `parse_etag_header`", "Parse a header containing one or more ETags or a wildcard ('*').", " Returns the string '*' or a list of ETags as (weak, etag) tuples.\n `weak` is the prefix designating a weak ETag, or the empty string.\n `etag` is the ETag (including quotes) with the weak prefix st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop_messages API. 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 pop_messages API. 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...
Retrieve stored messages and remove them from the session. Return all messages with a specific type, or all messages when `type` is None. Messages are returned in the order they were added. All messages returned in this way are removed from the session and will not be returned in subseq...
"Retrieve stored messages and remove them from the session.\n\n Return all messages with a specific type, or all messages when `type`\n is None. Messages are returned in the order they were added. All\n messages returned in this way are removed from the session and will not\n be returned in ...
158
false
trendels/rhino
pop_messages
12,593
LDU_FT/DasIch/argvard/is_python3_identifier
LDU_FT
[ "<BEGIN>\n## `from_string`", "Returns a :class:`Signature` object based on the given `string`. If\n `option` is `True`, repetitions or optional patterns will not be\n allowed.", " If the `string` cannot be parsed, :exc:`InvalidSignature` is raised.\n<END>", "<BEGIN>\n## `usage`", "A usa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_python3_identifier 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_python3_identifier API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns `True` if the given `possible_identifier` can be used as an identifier in Python 3.
"Returns `True` if the given `possible_identifier` can be used as an\n identifier in Python 3."
31
false
DasIch/argvard
is_python3_identifier
12,594
LDU_FT/gofed/gofedlib/construct
LDU_FT
[ "<BEGIN>\n## `compare`", "Compare two snapshots:\n\t\t- return a list of new packages in this snapshot\n\t\t- return a list of new builds in this snapshot", "\t\t:param snapshot: distribution snapshot\n\t\t:type snapshot: DistributionSnapshot\n<END>", "<BEGIN>\n## `branches`", "Return a list of branches fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct API. 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 construct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Construct info about a project from artefact :param data: golang-project-packages artefact :type data: json/dict
"Construct info about a project from artefact\n\n\t\t:param data:\tgolang-project-packages artefact\n\t\t:type data:\tjson/dict"
98
false
gofed/gofedlib
construct
12,595
LDU_FT/Valassis-Digital-Media/spylon/wrap_function_cols
LDU_FT
[ "<BEGIN>\n## `as_iterable`", "Utility for converting an object to an iterable.", " Parameters\n ----------\n iterable_or_scalar : anything", " Returns\n -------\n l : iterable\n If `obj` was None, return the empty tuple.\n If `obj` was not iterable returns a 1-tuple containing ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_function_cols 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 wrap_function_cols 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...
Utility method for wrapping a scala/java function that returns a spark sql Column. This assumes that the function that you are wrapping takes a list of spark sql Column objects as its arguments.
"Utility method for wrapping a scala/java function that returns a spark sql Column.\n\n This assumes that the function that you are wrapping takes a list of spark sql Column objects as its arguments."
96
false
Valassis-Digital-Media/spylon
wrap_function_cols
12,596
LDU_FT/smdabdoub/phylotoast/sample_group
LDU_FT
[ "<BEGIN>\n## `sample_group`", "Iterate through all categories in an OrderedDict and return category name if SampleID\n present in that category.", " :type sid: str\n :param sid: SampleID from dataset.", " :type groups: OrderedDict\n :param groups: Returned dict from phylotoast.util.gather_categ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Iterate through all categories in an OrderedDict and return category name if SampleID present in that category. :type sid: str :param sid: SampleID from dataset. :type groups: OrderedDict :param groups: Returned dict from phylotoast.util.gather_categories() function. :return type: str :re...
"Iterate through all categories in an OrderedDict and return category name if SampleID\n present in that category.\n\n :type sid: str\n :param sid: SampleID from dataset.\n\n :type groups: OrderedDict\n :param groups: Returned dict from phylotoast.util.gather_categories() function.\n\n :return type: s...
200
false
smdabdoub/phylotoast
sample_group
12,597
LDU_FT/aestrivex/bctpy/score_wu
LDU_FT
[ "<BEGIN>\n## `density_dir`", "Density is the fraction of present connections to possible connections.", " Parameters\n ----------\n CIJ : NxN np.ndarray\n directed weighted/binary connection matrix", " Returns\n -------\n kden : float\n density\n N : int\n number of v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score_wu API. 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 score_wu API. 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...
The s-core is the largest subnetwork comprising nodes of strength at least s. This function computes the s-core for a given weighted undirected connection matrix. Computation is analogous to the more widely used k-core, but is based on node strengths instead of node degrees. Parameters --------...
"The s-core is the largest subnetwork comprising nodes of strength at\n least s. This function computes the s-core for a given weighted\n undirected connection matrix. Computation is analogous to the more\n widely used k-core, but is based on node strengths instead of node\n degrees.\n\n Parameters\n ...
654
false
aestrivex/bctpy
score_wu
12,598
LDU_FT/freakboy3742/pyxero/get_attachment
LDU_FT
[ "<BEGIN>\n## `parse_date`", "Takes a Xero formatted date, e.g. /Date(1426849200000+1300)/\n<END>", "<BEGIN>\n## `json_load_object_hook`", "Hook for json.parse(...) to parse Xero date formats.\n<END>", "<BEGIN>\n## `_get_data`", "This is the decorator for our DECORATED_METHODS.\n Each of the decorat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attachment API. 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_attachment API. 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...
Retrieve the contents of a specific attachment (identified by filename). Writes data to file object, returns length of data written.
"Retrieve the contents of a specific attachment (identified by filename).\n\n Writes data to file object, returns length of data written."
31
false
freakboy3742/pyxero
get_attachment
12,599
LDU_FT/UDST/urbansim/str_model_expression
LDU_FT
[ "<BEGIN>\n## `log_start_finish`", "A context manager to log messages with \"start: \" and \"finish: \"\n prefixes before and after a block.", " Parameters\n ----------\n msg : str\n Will be prefixed with \"start: \" and \"finish: \".\n logger : logging.Logger\n level : int, optional\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_model_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_model_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
We support specifying model expressions as strings, lists, or dicts; but for use with patsy and statsmodels we need a string. This function will take any of those as input and return a string. Parameters ---------- expr : str, iterable, or dict A string will be returned unmodified except to...
"We support specifying model expressions as strings, lists, or dicts;\n but for use with patsy and statsmodels we need a string.\n This function will take any of those as input and return a string.\n\n Parameters\n ----------\n expr : str, iterable, or dict\n A string will be returned unmodified e...
461
false
UDST/urbansim
str_model_expression
12,600
LDU_FT/SoftwareDefinedBuildings/XBOS/_find_outOfBound
LDU_FT
[ "<BEGIN>\n## `fillPelicanHole`", "Fill a hole in a Pelican thermostat's data stream.", " Arguments:\n site -- The thermostat's Pelican site name\n username -- The Pelican username for the site\n password -- The Pelican password for the site\n tstat_name -- The name of the thermost...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_outOfBound API. 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 _find_outOfBound API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Mask for selecting data that is out of bounds. Parameters ---------- data : pd.DataFrame() Input dataframe. lowBound : float Lower bound for dataframe. highBound : float Higher bound for dataframe. Returns ...
"Mask for selecting data that is out of bounds. \n \n Parameters\n ----------\n data : pd.DataFrame()\n Input dataframe.\n lowBound : float\n Lower bound for dataframe.\n highBound : float\n Higher bound for dataframe.\n\n Ret...
305
false
SoftwareDefinedBuildings/XBOS
_find_outOfBound
12,601
LDU_FT/mozilla/python-zeppelin/process_results
LDU_FT
[ "<BEGIN>\n## `create_notebook`", "Create notebook under notebook directory.\n<END>", "<BEGIN>\n## `wait_for_notebook_to_execute`", "Wait for notebook to finish executing before continuing.\n<END>", "<BEGIN>\n## `save_notebook`", "Save notebook depending on user provided output path.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_results API. 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...
Route Zeppelin output types to corresponding handlers.
"Route Zeppelin output types to corresponding handlers."
46
false
mozilla/python-zeppelin
process_results
12,602
LDU_FT/singularityhub/singularity-python/make_package_tree
LDU_FT
[ "<BEGIN>\n## `get_template`", "get_template will return a template in the template folder,\n with some substitutions (eg, {'{{ graph | safe }}':\"fill this in!\"}\n<END>", "<BEGIN>\n## `container_similarity_vector`", "container similarity_vector is similar to compare_packages, but intended\n to compare ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_package_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_package_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
make package tree will make a dendrogram comparing a matrix of packages :param matrix: a pandas df of packages, with names in index and columns :param labels: a list of labels corresponding to row names, will be pulled from rows if not defined :param title: a title for the plot, if not defined, will be ...
"make package tree will make a dendrogram comparing a matrix of packages\n :param matrix: a pandas df of packages, with names in index and columns\n :param labels: a list of labels corresponding to row names, will be\n pulled from rows if not defined\n :param title: a title for the plot, if not defined, wil...
135
false
singularityhub/singularity-python
make_package_tree
12,603
LDU_FT/inveniosoftware/kwalitee/check_pydocstyle
LDU_FT
[ "<BEGIN>\n## `_get_files_modified`", "Get the list of modified files that are Python or Jinja2.\n<END>", "<BEGIN>\n## `_get_git_author`", "Return the git author from the git variables.\n<END>", "<BEGIN>\n## `_prepare_commit_msg`", "Prepare the commit message in tmp_file.", " It will build the commit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_pydocstyle API. 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 check_pydocstyle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Perform static analysis on the given file docstrings. :param filename: path of file to check. :type filename: str :param ignore: codes to ignore, e.g. ('D400',) :type ignore: `list` :param match: regex the filename has to match to be checked :type match: str :param match_dir: regex everydir...
"Perform static analysis on the given file docstrings.\n\n :param filename: path of file to check.\n :type filename: str\n :param ignore: codes to ignore, e.g. ('D400',)\n :type ignore: `list`\n :param match: regex the filename has to match to be checked\n :type match: str\n :param match_dir: regex...
77
false
inveniosoftware/kwalitee
check_pydocstyle
12,604
LDU_FT/napalm-automation/napalm/compliance_report
LDU_FT
[ "<BEGIN>\n## `parse_intf_section`", "Parse a single entry from show interfaces output.", " Different cases:\n mgmt0 is up\n admin state is up", " Ethernet2/1 is up\n admin state is up, Dedicated Interface", " Vlan1 is down (Administratively down), line protocol is down, autostate enabled",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compliance_report API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compliance_report API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return a compliance report. Verify that the device complies with the given validation file and writes a compliance report file. See https://napalm.readthedocs.io/en/latest/validate/index.html. :param validation_file: Path to the file containing compliance definition. Default is None. :...
"Return a compliance report.\n\n Verify that the device complies with the given validation file and writes a compliance\n report file. See https://napalm.readthedocs.io/en/latest/validate/index.html.\n\n :param validation_file: Path to the file containing compliance definition. Default is None.\n ...
254
false
napalm-automation/napalm
compliance_report
12,605
LDU_FT/radjkarl/imgProcessor/vignetting
LDU_FT
[ "<BEGIN>\n## `polynomial`", "replace all masked values\r\n calculate flatField from 2d-polynomal fit filling\r\n all high gradient areas within averaged fit-image\r", " returns flatField, average background level, fitted image, valid indices mask\n<END>", "<BEGIN>\n## `exampleSignals`", "std ... st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vignetting API. 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 vignetting API. 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...
Vignetting equation using the KANG-WEISS-MODEL see http://research.microsoft.com/en-us/um/people/sbkang/publications/eccv00.pdf f - focal length alpha - coefficient in the geometric vignetting factor tilt - tilt angle of a planar scene rot - rotation angle of a planar scene cx - image...
"Vignetting equation using the KANG-WEISS-MODEL\r\n see http://research.microsoft.com/en-us/um/people/sbkang/publications/eccv00.pdf \r\n\r\n f - focal length\r\n alpha - coefficient in the geometric vignetting factor\r\n tilt - tilt angle of a planar scene\r\n rot - rotation angle of a planar scene\r\...
462
false
radjkarl/imgProcessor
vignetting
12,606
LDU_FT/ahwillia/tensortools/rebalance
LDU_FT
[ "<BEGIN>\n## `unfold`", "Returns the mode-`mode` unfolding of `tensor`.", " Parameters\n ----------\n tensor : ndarray\n mode : int", " Returns\n -------\n ndarray\n unfolded_tensor of shape ``(tensor.shape[mode], -1)``", " Author\n ------\n Jean Kossaifi <https://github...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rebalance API. 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 rebalance API. 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...
Rescales factors across modes so that all norms match.
"Rescales factors across modes so that all norms match."
158
false
ahwillia/tensortools
rebalance
12,607
LDU_FT/abelcarreras/DynaPhoPy/_g_a
LDU_FT
[ "<BEGIN>\n## `diff_matrix`", ":param array_1: supercell scaled positions respect unit cell\n :param array_2: supercell scaled positions respect unit cell\n :param cell_size: diference between arrays accounting for periodicity\n :return:\n<END>", "<BEGIN>\n## `_g_a`", "Asymmetric width term\n x...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _g_a API. 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 _g_a API. 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...
Asymmetric width term x: frequency coordinate a: peak position b: half width s: asymmetry parameter
"Asymmetric width term\n x: frequency coordinate\n a: peak position\n b: half width\n s: asymmetry parameter"
10
false
abelcarreras/DynaPhoPy
_g_a
12,608
LDU_FT/chrisspen/dtree/probability_gt
LDU_FT
[ "<BEGIN>\n## `normalize`", "Scales each number in the sequence so that the sum of all numbers equals 1.\n<END>", "<BEGIN>\n## `normcdf`", "Describes the probability that a real-valued random variable X with a given\n probability distribution will be found at a value less than or equal to X\n in a normal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the probability_gt API. 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 probability_gt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns the probability of a random variable being greater than the given value.
"Returns the probability of a random variable being greater than the\n given value."
100
false
chrisspen/dtree
probability_gt
12,609
LDU_FT/sethmlarson/virtualbox-python/find
LDU_FT
[ "<BEGIN>\n## `register_on_network_adapter_changed`", "Set the callback function to consume on network adapter changed\n events.", " Callback receives a INetworkAdapterChangedEvent object.", " Returns the callback_id\n<END>", "<BEGIN>\n## `register_on_serial_port_changed`", "Set the ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns the extension pack with the specified name if found. in name of type str The name of the extension pack to locate. return return_data of type :class:`IExtPack` The extension pack if found. raises :class:`VBoxErrorObjectNotFound` No extension pack ma...
"Returns the extension pack with the specified name if found.\n\n in name of type str\n The name of the extension pack to locate.\n\n return return_data of type :class:`IExtPack`\n The extension pack if found.\n\n raises :class:`VBoxErrorObjectNotFound`\n No extensi...
2,484
true
sethmlarson/virtualbox-python
find
12,610
LDU_FT/uber/doubles/has_too_many_calls
LDU_FT
[ "<BEGIN>\n## `set_value`", "Set the value of the target.", " :param obj value: The value to set.\n<END>", "<BEGIN>\n## `patch_class`", "Create a new class based on the input_class.", " :param class input_class: The class to patch.\n :rtype class:\n<END>", "<BEGIN>\n## `clear`", "Clears a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_too_many_calls 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 has_too_many_calls 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...
Test if there have been too many calls :rtype boolean
"Test if there have been too many calls\n\n :rtype boolean"
171
false
uber/doubles
has_too_many_calls
12,611
LDU_FT/riptano/ccm/get_tagged_version_numbers
LDU_FT
[ "<BEGIN>\n## `actively_watch_logs_for_error`", "Begins a thread that repeatedly scans system.log for new errors, every interval seconds.\n (The first pass covers the entire log contents written at that point,\n subsequent scans cover newly appended log messages).", " Reports new errors, by ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tagged_version_numbers 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 get_tagged_version_numbers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Retrieve git tags and find version numbers for a release series series - 'stable', 'oldstable', or 'testing
"Retrieve git tags and find version numbers for a release series\n\n series - 'stable', 'oldstable', or 'testing"
108
false
riptano/ccm
get_tagged_version_numbers
12,612
LDU_FT/gabstopper/smc-python/blacklist
LDU_FT
[ "<BEGIN>\n## `element_href`", "Get specified element href by element name", " :param name: name of element\n :return: string href location of object, else None\n<END>", "<BEGIN>\n## `element_as_json`", "Get specified element json data by name", " :param name: name of element\n :return: json da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blacklist API. 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 blacklist API. 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...
Add blacklist to all defined engines. Use the cidr netmask at the end of src and dst, such as: 1.1.1.1/32, etc. :param src: source of the entry :param dst: destination of blacklist entry :raises ActionCommandFailed: blacklist apply failed with reason :return: None ...
"Add blacklist to all defined engines.\n Use the cidr netmask at the end of src and dst, such as:\n 1.1.1.1/32, etc.\n\n :param src: source of the entry\n :param dst: destination of blacklist entry\n :raises ActionCommandFailed: blacklist apply failed with reason\n :return: Non...
1,703
true
gabstopper/smc-python
blacklist
12,613
LDU_FT/happyleavesaoc/python-orvibo/discover
LDU_FT
[ "<BEGIN>\n## `_setup`", "Set up module.", " Open a UDP socket, and listen in a thread.\n<END>", "<BEGIN>\n## `discover`", "Discover devices on the local network.", " :param timeout: Optional timeout in seconds.\n :returns: Set of discovered host addresses.\n<END>", "<BEGIN>\n## `_discover_mac`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracte...
Discover devices on the local network. :param timeout: Optional timeout in seconds. :returns: Set of discovered host addresses.
"Discover devices on the local network.\n\n :param timeout: Optional timeout in seconds.\n :returns: Set of discovered host addresses."
31
false
happyleavesaoc/python-orvibo
discover
12,614
LDU_FT/aodag/WebDispatch/new_named_args
LDU_FT
[ "<BEGIN>\n## `make_urldispatch_application`", "paste.app_factory interface for URLDispatcher\n<END>", "<BEGIN>\n## `generate`", "generate url for named url pattern with kwargs\n<END>", "<BEGIN>\n## `generate`", "generate full qualified url for named url pattern with kwargs\n<END>", "<BEGIN>\n## `add_url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_named_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_named_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
create new named args updating current name args
"create new named args updating current name args"
24
false
aodag/WebDispatch
new_named_args
12,615
LDU_FT/limpyd/redis-limpyd-extensions/_get_dynamic_field_for
LDU_FT
[ "<BEGIN>\n## `get_name_for`", "Return the name for the current dynamic field, accepting a limpyd\n instance for the dynamic part\n<END>", "<BEGIN>\n## `_attach_to_model`", "Check that the model can handle dynamic fields\n<END>", "<BEGIN>\n## `pattern`", "Return the pattern used to check if a field ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dynamic_field_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_dynamic_field_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Return the dynamic field within this class that match the given name. Keep an internal cache to speed up future calls wieh same field name. (The cache store the field for each individual class and subclasses, to keep the link between a field and its direct model)
"Return the dynamic field within this class that match the given name.\n Keep an internal cache to speed up future calls wieh same field name.\n (The cache store the field for each individual class and subclasses, to\n keep the link between a field and its direct model)"
46
false
limpyd/redis-limpyd-extensions
_get_dynamic_field_for
12,616
LDU_FT/resync/resync/add_file
LDU_FT
[ "<BEGIN>\n## `read`", "Read sitemap from a URI including handling sitemapindexes.", " If index_only is True then individual sitemaps references in a sitemapindex\n will not be read. This will result in no resources being returned and is\n useful only to read the metadata and links listed in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add a single file to resource_list. Follows object settings of set_path, set_hashes and set_length.
"Add a single file to resource_list.\n\n Follows object settings of set_path, set_hashes and set_length."
322
false
resync/resync
add_file
12,617
LDU_FT/mjg59/python-broadlink/set_nightlight
LDU_FT
[ "<BEGIN>\n## `set_power_mask`", "Sets the power state of the smart power strip.\n<END>", "<BEGIN>\n## `set_power`", "Sets the power state of the smart power strip.\n<END>", "<BEGIN>\n## `check_power_raw`", "Returns the power state of the smart power strip in raw format.\n<END>", "<BEGIN>\n## `check_powe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_nightlight API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_nightlight API. 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...
Sets the night light state of the smart plug
"Sets the night light state of the smart plug"
12
false
mjg59/python-broadlink
set_nightlight
12,618
LDU_FT/zengbin93/zb/get_recipe_detail
LDU_FT
[ "<BEGIN>\n## `layer_sizes`", "Arguments:\n X -- input dataset of shape (input size, number of examples)\n Y -- labels of shape (output size, number of examples)", " Returns:\n n_x -- the size of the input layer\n n_h -- the size of the hidden layer\n n_y -- the size of the output layer\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recipe_detail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recipe_detail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
从url中获取菜谱详细信息 :param recipe_url: str 菜谱url,如:https://www.xinshipu.com/zuofa/598775; https://www.xinshipu.com//zuofa/749342 :return:dict
"从url中获取菜谱详细信息\n\n :param recipe_url: str\n 菜谱url,如:https://www.xinshipu.com/zuofa/598775;\n https://www.xinshipu.com//zuofa/749342\n :return:dict"
101
false
zengbin93/zb
get_recipe_detail
12,619
LDU_FT/obsrvbl/flowlogs-reader/action_print
LDU_FT
[ "<BEGIN>\n## `aggregated_records`", "Yield dicts that correspond to aggregates of the flow records given by\n the sequence of FlowRecords in `all_records`. Skips incomplete records.\n This will consume the `all_records` iterator, and requires enough memory to\n be able to read it entirely.\n `key_fiel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action_print API. 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 action_print API. 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...
Simply print the Flow Log records to output.
"Simply print the Flow Log records to output."
10
false
obsrvbl/flowlogs-reader
action_print
12,620
LDU_FT/kontron/python-ipmi/clear_repository_helper
LDU_FT
[ "<BEGIN>\n## `sel_entries`", "Generator which returns all SEL entries.\n<END>", "<BEGIN>\n## `initiate_upgrade_action`", "Initiate Upgrade Action\n components:\n action:\n ACTION_BACKUP_COMPONENT = 0x00\n ACTION_PREPARE_COMPONENT = 0x01\n ACTION_UPLOAD_FOR_UPGRAD...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_repository_helper 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 clear_repository_helper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Helper function to start repository erasure and wait until finish. This helper is used by clear_sel and clear_sdr_repository.
"Helper function to start repository erasure and wait until finish.\n This helper is used by clear_sel and clear_sdr_repository."
87
false
kontron/python-ipmi
clear_repository_helper
12,621
LDU_FT/datascopeanalytics/traces/iterintervals
LDU_FT
[ "<BEGIN>\n## `duration_to_number`", "If duration is already a numeric type, then just return\n duration. If duration is a timedelta, return a duration in\n seconds.", " TODO: allow for multiple types of units.\n<END>", "<BEGIN>\n## `convert_args_to_list`", "Convert all iterable pairs of inputs into...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterintervals API. 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 iterintervals API. 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...
Iterate over groups of `n` consecutive measurement points in the time series.
"Iterate over groups of `n` consecutive measurement points in the\n time series."
73
false
datascopeanalytics/traces
iterintervals
12,622
LDU_FT/AutomatedTester/Bugsy/add_comment
LDU_FT
[ "<BEGIN>\n## `get`", "Get a bug from Bugzilla. If there is a login token created during\n object initialisation it will be part of the query string passed to\n Bugzilla", " :param bug_number: Bug Number that will be searched. If found will\n return ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_comment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_comment API. 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...
Adds a comment to a bug. If the bug object does not have a bug ID (ie you are creating a bug) then you will need to also call `put` on the :class:`Bugsy` class. >>> bug.add_comment("I like sausages") >>> bugzilla.put(bug) If it does have a bug id then this w...
"Adds a comment to a bug. If the bug object does not have a bug ID\n (ie you are creating a bug) then you will need to also call `put`\n on the :class:`Bugsy` class.\n\n >>> bug.add_comment(\"I like sausages\")\n >>> bugzilla.put(bug)\n\n If it does have a bug id t...
44
false
AutomatedTester/Bugsy
add_comment
12,623
LDU_FT/jakevdp/supersmoother/fit
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the smoother", " Parameters\n ----------\n t : array_like\n time locations of the points to smooth\n y : array_like\n y locations of the points to smooth\n dy : array_like or float (default = 1)\n Errors in the y value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Fit the smoother Parameters ---------- t : array_like time locations of the points to smooth y : array_like y locations of the points to smooth dy : array_like or float (default = 1) Errors in the y values presorted : bool (default = F...
"Fit the smoother\n\n Parameters\n ----------\n t : array_like\n time locations of the points to smooth\n y : array_like\n y locations of the points to smooth\n dy : array_like or float (default = 1)\n Errors in the y values\n presorted : bool (...
47
false
jakevdp/supersmoother
fit
12,624
LDU_FT/wgnet/webium/get_attribute_selected
LDU_FT
[ "<BEGIN>\n## `click`", "Click by WebElement, if not, JQuery click\n<END>", "<BEGIN>\n## `convert_cookie_to_dict`", "Converts an instance of Cookie class from cookielib to a dict.\n The names of attributes can be changed according to keys_map:.\n For example, this method can be used to create a cookie wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute_selected API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute_selected API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Performs search of selected item from Web List Return attribute of selected item @params attribute - string attribute name
"Performs search of selected item from Web List\n Return attribute of selected item\n\n @params attribute - string attribute name"
20
false
wgnet/webium
get_attribute_selected
12,625
LDU_FT/koszullab/metaTOR/filter_genome
LDU_FT
[ "<BEGIN>\n## `download_and_install_dependencies`", "Setup URLS and download dependencies for Python 3.6+\n<END>", "<BEGIN>\n## `main`", "This module just acts as an entry point to the bulk of the pipeline.\n All argument parsing is delegated to metator.sh\n<END>", "<BEGIN>\n## `rename_genome`", "Rename...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_genome API. 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 filter_genome API. 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...
Filter fasta file according to various parameters. Filter a fasta file according to size and/or an explicit list of records to keep. Parameters ---------- genome_in: file, str or pathlib.Path The input genome in FASTA format. threshold: int, optional The size below which genome...
"Filter fasta file according to various parameters.\n\n Filter a fasta file according to size and/or an explicit list of records\n to keep.\n\n Parameters\n ----------\n genome_in: file, str or pathlib.Path\n The input genome in FASTA format.\n threshold: int, optional\n The size below w...
180
false
koszullab/metaTOR
filter_genome
12,626
LDU_FT/EasyPost/pystalk/kick_job
LDU_FT
[ "<BEGIN>\n## `from_uri`", "Construct a synchronous Beanstalk Client from a URI.", " The URI may be of the form beanstalk://host:port or beanstalkd://host:port", " IPv6 literals must be wrapped in brackets as per RFC 2732.\n<END>", "<BEGIN>\n## `_re_establish_use_watch`", "Call after a close/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kick_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kick_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 extracte...
Kick the given job id. The job must either be in the DELAYED or BURIED state and will be immediately moved to the READY state.
"Kick the given job id. The job must either be in the DELAYED or BURIED state and will be immediately moved to\n the READY state."
85
false
EasyPost/pystalk
kick_job
12,627
LDU_FT/pyapi-gitlab/pyapi-gitlab/get_project
LDU_FT
[ "<BEGIN>\n## `login`", "Logs the user in and setups the header with the private token", " :param email: Gitlab user Email\n :param user: Gitlab username\n :param password: Gitlab user password\n :return: True if login successful\n :raise: HttpError\n :raise: ValueError\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_project API. 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_project API. 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 info for a project identified by id or namespace/project_name :param project: The ID or URL-encoded path of the project :return: Dictionary containing the Project :raise: HttpError: If invalid response returned
"Get info for a project identified by id or namespace/project_name\n\n :param project: The ID or URL-encoded path of the project\n :return: Dictionary containing the Project\n :raise: HttpError: If invalid response returned"
239
false
pyapi-gitlab/pyapi-gitlab
get_project
12,628
LDU_FT/rackerlabs/rackspace-python-neutronclient/run
LDU_FT
[ "<BEGIN>\n## `_extract_service_catalog`", "Set the client's service catalog from the response data.\n<END>", "<BEGIN>\n## `exception_handler_v20`", "Exception handler for API v2.0 client.", " This routine generates the appropriate Neutron exception according to\n the contents of the response body.", ...
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...
Equivalent to the main program for the application. :param argv: input arguments and options :paramtype argv: list of str
"Equivalent to the main program for the application.\n\n :param argv: input arguments and options\n :paramtype argv: list of str"
289
false
rackerlabs/rackspace-python-neutronclient
run
12,629
LDU_FT/cloudboss/friend/retry_wait_time
LDU_FT
[ "<BEGIN>\n## `cached`", "A decorator function to cache values. It uses the decorated\n function's arguments as the keys to determine if the function\n has been called previously.\n<END>", "<BEGIN>\n## `retry_wait_time`", "Determine a retry wait time based on the number of the\n retry attempt and a ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_wait_time API. 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 retry_wait_time API. 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...
Determine a retry wait time based on the number of the retry attempt and a cap on the wait time. The wait time uses an exponential backoff with a random jitter. The algorithm used is explained at https://www.awsarchitectureblog.com/2015/03/backoff.html. :param int attempt: The number of the attempt...
"Determine a retry wait time based on the number of the\n retry attempt and a cap on the wait time. The wait time\n uses an exponential backoff with a random jitter.\n The algorithm used is explained at\n https://www.awsarchitectureblog.com/2015/03/backoff.html.\n\n :param int attempt: The number of the ...
49
false
cloudboss/friend
retry_wait_time
12,630
LDU_FT/Skype4Py/Skype4Py/Connect
LDU_FT
[ "<BEGIN>\n## `AsyncSearchUsers`", "Asynchronously searches for Skype users.", " :Parameters:\n Target : unicode\n Search target (name or email address).", " :return: A search identifier. It will be passed along with the results to the\n `SkypeEvents.AsyncSearc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Connect API. 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 Connect API. 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...
Connects application to user. :Parameters: Username : str Name of the user to connect to. WaitConnected : bool If True, causes the method to wait until the connection is established. :return: If ``WaitConnected`` is True, returns the stream which can be used...
"Connects application to user.\n\n :Parameters:\n Username : str\n Name of the user to connect to.\n WaitConnected : bool\n If True, causes the method to wait until the connection is established.\n\n :return: If ``WaitConnected`` is True, returns the stream which ca...
213
false
Skype4Py/Skype4Py
Connect
12,631
LDU_FT/JdeRobot/base/rover_turn_circle
LDU_FT
[ "<BEGIN>\n## `bytes_needed`", "return number of bytes needed for next parsing stage\n<END>", "<BEGIN>\n## `__callbacks`", "this method exists only to make profiling results easier to read\n<END>", "<BEGIN>\n## `parse_char`", "input some data bytes, possibly returning a new message\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rover_turn_circle API. 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 rover_turn_circle API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
return turning circle (diameter) in meters for steering_angle in degrees
"return turning circle (diameter) in meters for steering_angle in degrees"
1,991
true
JdeRobot/base
rover_turn_circle
12,632
LDU_FT/goldsborough/ecstasy/beautify
LDU_FT
[ "<BEGIN>\n## `codify`", "Gets escape-codes for flag combinations.", "\tArguments:\n\t\tcombination (int): Either a single integer-convertible flag\n\t\t\t\t\t\t or an OR'd flag-combination.\n\tReturns:\n\t\tA semi-colon-delimited string of appropriate escape sequences.", "\tRaises:\n\t\terrors.FlagError if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the beautify API. 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 beautify API. 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...
Convenient interface to the ecstasy package. Arguments: string (str): The string to beautify with ecstasy. args (list): The positional arguments. kwargs (dict): The keyword ('always') arguments.
"Convenient interface to the ecstasy package.\n\n\t\tArguments:\n\t\t\tstring (str): The string to beautify with ecstasy.\n\t\t\targs (list): The positional arguments.\n\t\t\tkwargs (dict): The keyword ('always') arguments."
71
false
goldsborough/ecstasy
beautify
12,633
LDU_FT/mozilla/FoxPuppet/navbar
LDU_FT
[ "<BEGIN>\n## `is_tracking_shield_displayed`", "Tracking Protection shield.", " Returns:\n bool: True or False if the Tracking Shield is displayed.\n<END>", "<BEGIN>\n## `addon_name`", "Provide access to the add-on name.", " Returns:\n str: Add-on name.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the navbar API. 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 navbar API. 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 ...
Provide access to the Navigation Bar. Returns: :py:class:`NavBar`: FoxPuppet NavBar object.
"Provide access to the Navigation Bar.\n\n Returns:\n :py:class:`NavBar`: FoxPuppet NavBar object."
36
false
mozilla/FoxPuppet
navbar
12,634
LDU_FT/aaugustin/websockets/parse_list
LDU_FT
[ "<BEGIN>\n## `ensure_open`", "Check that the WebSocket connection is open.", " Raise :exc:`~websockets.exceptions.ConnectionClosed` if it isn't.\n<END>", "<BEGIN>\n## `transfer_data`", "Read incoming messages and put them in a queue.", " This coroutine runs in a task until the closing handsh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Parse a comma-separated list from ``header`` at the given position. This is appropriate for parsing values with the following grammar: 1#item ``parse_item`` parses one item. ``header`` is assumed not to start or end with whitespace. (This function is designed for parsing an entire header va...
"Parse a comma-separated list from ``header`` at the given position.\n\n This is appropriate for parsing values with the following grammar:\n\n 1#item\n\n ``parse_item`` parses one item.\n\n ``header`` is assumed not to start or end with whitespace.\n\n (This function is designed for parsing an entir...
346
false
aaugustin/websockets
parse_list
12,635
LDU_FT/Trax-air/swagger-parser/check_type
LDU_FT
[ "<BEGIN>\n## `_validate_post_body`", "returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>", "<BEGIN>\n## `build_definitions_example`", "Parse all definitions in the swagger specification.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_type API. 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 check_type API. 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...
Check if the value is in the type given in type_def. Args: value: the var to test. type_def: string representing the type in swagger. Returns: True if the type is correct, False otherwise.
"Check if the value is in the type given in type_def.\n\n Args:\n value: the var to test.\n type_def: string representing the type in swagger.\n\n Returns:\n True if the type is correct, False otherwise."
100
false
Trax-air/swagger-parser
check_type
12,636
LDU_FT/b3j0f/conf/getconf
LDU_FT
[ "<BEGIN>\n## `pathresource`", "Returns specific resource.", " :param str rscpath: resource path.\n :param Logger logger: logger to use.\n :param bool error: raise internal error if True (False by default).\n :param bool force: create the resource even if rscpath does not exist.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getconf API. 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 getconf API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get a configuration from paths. :param conf: conf to update. Default this conf. :type conf: Configuration, Category or Parameter :param str(s) paths: list of conf files. Default this paths. :param Logger logger: logger to use for logging info/error messages. :param list drivers:...
"Get a configuration from paths.\n\n :param conf: conf to update. Default this conf.\n :type conf: Configuration, Category or Parameter\n :param str(s) paths: list of conf files. Default this paths.\n :param Logger logger: logger to use for logging info/error messages.\n :param list d...
151
false
b3j0f/conf
getconf
12,637
LDU_FT/EasyPost/pystalk/watch
LDU_FT
[ "<BEGIN>\n## `from_uri`", "Construct a synchronous Beanstalk Client from a URI.", " The URI may be of the form beanstalk://host:port or beanstalkd://host:port", " IPv6 literals must be wrapped in brackets as per RFC 2732.\n<END>", "<BEGIN>\n## `_re_establish_use_watch`", "Call after a close/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch API. 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 watch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Add the given tube to the watchlist. :param tube: Name of the tube to add to the watchlist Note: Initially, all connections are watching a tube named "default". If you manually call :func:`watch()`, we will un-watch the "default" tube. To keep it in your list, first call :func:`watch()...
"Add the given tube to the watchlist.\n\n :param tube: Name of the tube to add to the watchlist\n\n Note: Initially, all connections are watching a tube named \"default\". If\n you manually call :func:`watch()`, we will un-watch the \"default\" tube.\n To keep it in your list, first call :fu...
85
false
EasyPost/pystalk
watch
12,638
LDU_FT/f213/rumetr-client/check_appt
LDU_FT
[ "<BEGIN>\n## `complex_exists`", "Shortcut to check if complex exists in our database.\n<END>", "<BEGIN>\n## `house_exists`", "Shortcut to check if house exists in our database.\n<END>", "<BEGIN>\n## `appt_exists`", "Shortcut to check if appt exists in our database.\n<END>", "<BEGIN>\n## `check_developer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_appt API. 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 check_appt API. 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...
Check if given appartment exists in the rumetr database
"Check if given appartment exists in the rumetr database"
20
false
f213/rumetr-client
check_appt
12,639
LDU_FT/closeio/quotequail/indented_tree_line_generator
LDU_FT
[ "<BEGIN>\n## `quote`", "Takes a plain text message as an argument, returns a list of tuples. The\n first argument of the tuple denotes whether the text should be expanded by\n default. The second argument is the unmodified corresponding text.", " Example: [(True, 'expanded text'), (False, '> Some quote...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indented_tree_line_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indented_tree_line_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Like tree_line_generator, but yields tuples (start_ref, end_ref, line), where the line already takes the indentation into account by having "> " prepended. If a line already starts with ">", it is escaped ("\\>"). This makes it possible to reliably use methods that analyze plain text to detect quoting.
"Like tree_line_generator, but yields tuples (start_ref, end_ref, line),\n where the line already takes the indentation into account by having \"> \"\n prepended. If a line already starts with \">\", it is escaped (\"\\\\>\"). This\n makes it possible to reliably use methods that analyze plain text to detect\n...
65
false
closeio/quotequail
indented_tree_line_generator
12,640
LDU_FT/TissueMAPS/TmClient/delete_feature
LDU_FT
[ "<BEGIN>\n## `map_logging_verbosity`", "Parameters\n ----------\n verbosity: int\n logging verbosity level (0-4)", " Returns\n -------\n A logging level as exported by `logging` module.\n By default returns logging.NOTSET", " Raises\n ------\n TypeError\n when `verbosi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_feature API. 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 delete_feature API. 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...
Deletes a feature. Parameters ---------- mapobject_type_name: str name of the segmented objects type name: str name of the feature that should be renamed See also -------- :func:`tmserver.api.feature.delete_feature` :class:`tmlib....
"Deletes a feature.\n\n Parameters\n ----------\n mapobject_type_name: str\n name of the segmented objects type\n name: str\n name of the feature that should be renamed\n\n See also\n --------\n :func:`tmserver.api.feature.delete_feature`\n :...
203
false
TissueMAPS/TmClient
delete_feature
12,641
LDU_FT/brbsix/python-batchpath/_walk
LDU_FT
[ "<BEGIN>\n## `_fixpath`", "Return absolute, normalized, joined paths\n<END>", "<BEGIN>\n## `_sorter`", "Return a list of paths sorted by dirname & basename.\n<END>", "<BEGIN>\n## `_walk`", "Returns a recursive or non-recursive directory walker\n<END>", "<BEGIN>\n## `isvalid`", "Check whether file meet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _walk API. 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 _walk API. 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 recursive or non-recursive directory walker
"Returns a recursive or non-recursive directory walker"
16
false
brbsix/python-batchpath
_walk
12,642
LDU_FT/gmr/tredis/_on_cluster_discovery
LDU_FT
[ "<BEGIN>\n## `auth`", "Request for authentication in a password-protected Redis server.\n Redis can be instructed to require a password before allowing clients\n to execute commands. This is done using the ``requirepass`` directive\n in the configuration file.", " If the password doe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _on_cluster_discovery 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 _on_cluster_discovery API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Invoked when the Redis server has responded to the ``CLUSTER_NODES`` command. :param future: The future containing the response from Redis :type future: tornado.concurrent.Future
"Invoked when the Redis server has responded to the ``CLUSTER_NODES``\n command.\n\n :param future: The future containing the response from Redis\n :type future: tornado.concurrent.Future"
523
false
gmr/tredis
_on_cluster_discovery
12,643
LDU_FT/joowani/binarytree/leaves
LDU_FT
[ "<BEGIN>\n## `_is_balanced`", "Return the height if the binary tree is balanced, -1 otherwise.", " :param root: Root node of the binary tree.\n :type root: binarytree.Node | None\n :return: Height if the binary tree is balanced, -1 otherwise.\n :rtype: int\n<END>", "<BEGIN>\n## `_is_bst`", "Chec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the leaves API. 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 leaves API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the leaf nodes of the binary tree. A leaf node is any node that does not have child nodes. :return: List of leaf nodes. :rtype: [binarytree.Node] **Example**: .. doctest:: >>> from binarytree import Node >>> >>> root = Node(1) ...
"Return the leaf nodes of the binary tree.\n\n A leaf node is any node that does not have child nodes.\n\n :return: List of leaf nodes.\n :rtype: [binarytree.Node]\n\n **Example**:\n\n .. doctest::\n\n >>> from binarytree import Node\n >>>\n >>> root =...
132
false
joowani/binarytree
leaves
12,644
LDU_FT/chaoss/grimoirelab-toolkit/find_signature_parameters
LDU_FT
[ "<BEGIN>\n## `datetime_to_utc`", "Convert a timestamp to UTC+0 timezone.", " Returns the given datetime object converted to a date with\n UTC+0 timezone. For naive datetimes, it will be assumed that\n they are in UTC+0. When the timezone is wrong, UTC+0 will\n be set as default (using `dateutil.tz.t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_signature_parameters 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 find_signature_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Find on a set of candidates the parameters needed to execute a callable. Returns a dictionary with the `candidates` found on `callable_`. When any of the required parameters of a callable is not found, it raises a `AttributeError` exception. A signature parameter whitout a default value is considered a...
"Find on a set of candidates the parameters needed to execute a callable.\n\n Returns a dictionary with the `candidates` found on `callable_`.\n When any of the required parameters of a callable is not found,\n it raises a `AttributeError` exception. A signature parameter\n whitout a default value is consid...
34
false
chaoss/grimoirelab-toolkit
find_signature_parameters
12,645
LDU_FT/contraslash/django-crud-generator/sanity_check
LDU_FT
[ "<BEGIN>\n## `render_template_with_args_in_file`", "Get a file and render the content of the template_file_name with kwargs in a file\n :param file: A File Stream to write\n :param template_file_name: path to route with template name\n :param **kwargs: Args to be rendered in template\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanity_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanity_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Verify if the work folder is a django app. A valid django app always must have a models.py file :return: None
"Verify if the work folder is a django app.\n A valid django app always must have a models.py file\n :return: None"
10
false
contraslash/django-crud-generator
sanity_check
12,646
LDU_FT/alextricity25/dwell_in_you_richly/_collect_data
LDU_FT
[ "<BEGIN>\n## `_collect_data`", "Returns a list of all the data gathered from the engine\n iterable.\n<END>", "<BEGIN>\n## `build_recovery_online_url`", "Returns a string composing the url of the online.recoveryversion.bible\n of the given book name and chapter\n TODO: Write notes here abo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _collect_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _collect_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns a list of all the data gathered from the engine iterable.
"Returns a list of all the data gathered from the engine\n iterable."
13
false
alextricity25/dwell_in_you_richly
_collect_data
12,647
LDU_FT/hyperledger/indy-plenum/_service_observable_out_box
LDU_FT
[ "<BEGIN>\n## `set_status`", "Set the status of the motor to the specified value if not already set.\n<END>", "<BEGIN>\n## `stop`", "Set the status to Status.stopping and also call `onStopping`\n with the provided args and kwargs.\n<END>", "<BEGIN>\n## `next_primary_replica_name_for_master`", "Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _service_observable_out_box API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _service_observable_out_box API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Service at most `limit` number of messages from the observable's outBox. :return: the number of messages successfully serviced.
"Service at most `limit` number of messages from the observable's outBox.\n\n :return: the number of messages successfully serviced."
773
false
hyperledger/indy-plenum
_service_observable_out_box
12,648
LDU_FT/nkavaldj/myhdl_lib/mux
LDU_FT
[ "<BEGIN>\n## `convert_ram_sp_ar`", "Convert RAM: Single-Port, Asynchronous Read\n<END>", "<BEGIN>\n## `convert_ram_sdp_rf`", "Convert RAM: Simple-Dual-Port, Read-First\n<END>", "<BEGIN>\n## `convert_ram_sdp_wf`", "Convert RAM: Simple-Dual-Port, Write-First\n<END>", "<BEGIN>\n## `convert_ram_sdp_ar`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mux API. 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 mux API. 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...
Multiplexes a list of input signals to an output signal do = sl_di[sel] sel - select index ls_di - list of input signals do - output signals
"Multiplexes a list of input signals to an output signal\n do = sl_di[sel]\n\n sel - select index\n ls_di - list of input signals\n do - output signals"
111
false
nkavaldj/myhdl_lib
mux
12,649
LDU_FT/brentp/cruzdb/relate
LDU_FT
[ "<BEGIN>\n## `relate`", "Produce a relationship between this mapped table and another\n one. ", " This makes usage of SQLAlchemy's :func:`sqlalchemy.orm.relationship`\n construct.\n<END>", "<BEGIN>\n## `execute`", "Execute a SQL statement.", " The statement may be a string SQL ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relate API. 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 relate API. 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 ...
Produce a relationship between this mapped table and another one. This makes usage of SQLAlchemy's :func:`sqlalchemy.orm.relationship` construct.
"Produce a relationship between this mapped table and another\n one. \n \n This makes usage of SQLAlchemy's :func:`sqlalchemy.orm.relationship`\n construct."
169
false
brentp/cruzdb
relate
12,650
LDU_FT/OnroerendErfgoed/oe_utils/audit
LDU_FT
[ "<BEGIN>\n## `after_commit_listener`", "Processing the changes.\n All new or changed items are now indexed. All deleted items are now removed from the index.\n<END>", "<BEGIN>\n## `_queue_job`", "creates a new job on the queue\n :param redis: redis\n :param delegate: method to be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the audit API. 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 audit API. 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...
use this decorator to audit an operation
"use this decorator to audit an operation"
100
false
OnroerendErfgoed/oe_utils
audit
12,651
LDU_FT/cloudnull/turbolift/parse_region
LDU_FT
[ "<BEGIN>\n## `start`", "Return a list of objects from the API for a container.\n<END>", "<BEGIN>\n## `_cdn`", "Retrieve a long list of all files in a container.", " :return final_list, list_count, last_obj:\n<END>", "<BEGIN>\n## `remove_dirs`", "Delete a directory recursively.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Pull region/auth url information from context.
"Pull region/auth url information from context."
148
false
cloudnull/turbolift
parse_region
12,652
LDU_FT/venmo/business-rules/type_operator
LDU_FT
[ "<BEGIN>\n## `export_rule_data`", "export_rule_data is used to export all information about the\n variables, actions, and operators to the client. This will return a\n dictionary with three keys:\n - variables: a list of all available variables along with their label, type and options\n - actions: a l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type_operator API. 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 type_operator API. 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...
Decorator to make a function into a type operator. - assert_type_for_arguments - if True this patches the operator function so that arguments passed to it will have _assert_valid_value_and_cast called on them to make type errors explicit.
"Decorator to make a function into a type operator.\n\n - assert_type_for_arguments - if True this patches the operator function\n so that arguments passed to it will have _assert_valid_value_and_cast\n called on them to make type errors explicit."
21
false
venmo/business-rules
type_operator
12,653
LDU_FT/emencia/dr-dump/_loaddata_template
LDU_FT
[ "<BEGIN>\n## `get_dump_names`", "Find and return all dump names required (by dependancies) for a given\n dump names list", " Beware, the returned name list does not respect order, you should only\n use it when walking throught the \"original\" dict builded by OrderedDict\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _loaddata_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _loaddata_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. Th...
StringIO "templates" to build a command line for 'loaddata'
"StringIO \"templates\" to build a command line for 'loaddata'"
14
false
emencia/dr-dump
_loaddata_template
12,654
LDU_FT/elifesciences/proofreader-python/_marker_line
LDU_FT
[ "<BEGIN>\n## `col_widths`", "Get MAX possible width of each column in the table.", " :return: defaultdict\n<END>", "<BEGIN>\n## `_marker_line`", "Generate a correctly sized marker line.", " e.g.", " '+------------------+---------+----------+---------+'", " :return: str\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _marker_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _marker_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 extr...
Generate a correctly sized marker line. e.g. '+------------------+---------+----------+---------+' :return: str
"Generate a correctly sized marker line.\n\n e.g.\n\n '+------------------+---------+----------+---------+'\n\n :return: str"
44
false
elifesciences/proofreader-python
_marker_line
12,655
LDU_FT/briwilcox/Concurrent-Pandas/consume_keys_asynchronous_threads
LDU_FT
[ "<BEGIN>\n## `data_worker`", "Function to be spawned concurrently,\n consume data keys from input queue, and push the resulting dataframes to output map\n<END>", "<BEGIN>\n## `get_data`", "Function to use Python Pandas and / or Quandl to download a dataframe\n Insert resulting dataframe into output ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume_keys_asynchronous_threads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume_keys_asynchronous_threads API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Work through the keys to look up asynchronously using multiple threads
"Work through the keys to look up asynchronously using multiple threads"
16
false
briwilcox/Concurrent-Pandas
consume_keys_asynchronous_threads
12,656
LDU_FT/what-studio/profiling/spawn
LDU_FT
[ "<BEGIN>\n## `by_own_time_per_call`", "Sorting by exclusive elapsed time per call in descending order.\n<END>", "<BEGIN>\n## `result`", "Gets the frozen statistics to serialize by Pickle.\n<END>", "<BEGIN>\n## `dump`", "Saves the profiling result to a file", " :param dump_filename: path to a file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spawn API. 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 spawn API. 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...
Spawns a thread-like object which runs the given function concurrently. Available modes: - `threading` - `greenlet` - `eventlet`
"Spawns a thread-like object which runs the given function concurrently.\n\n Available modes:\n\n - `threading`\n - `greenlet`\n - `eventlet`"
83
false
what-studio/profiling
spawn
12,657
LDU_FT/EnigmaBridge/client.py/call
LDU_FT
[ "<BEGIN>\n## `to_bytes`", "Converts input to a byte string.\n Typically used in PyCrypto as an argument (e.g., key, iv)", " :param x: string (does nothing), bytearray, array with numbers\n :return:\n<END>", "<BEGIN>\n## `to_long`", "Converts input to a long number (arbitrary precision python long)\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Calls the request with input data using given configuration (retry, timeout, ...). :param client_data: :param api_data: :param aux_data: :param args: :param kwargs: :return:
"Calls the request with input data using given configuration (retry, timeout, ...).\n :param client_data:\n :param api_data:\n :param aux_data:\n :param args:\n :param kwargs:\n :return:"
107
false
EnigmaBridge/client.py
call
12,658
LDU_FT/luqasz/librouteros/composeWord
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect and login to routeros device.\n Upon success return a Api class.", " :param host: Hostname to connecto to. May be ipv4,ipv6,FQDN.\n :param username: Username to login with.\n :param password: Password to login with. Only ASCII characters allowed.\n :param timeout...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the composeWord API. 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 composeWord API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create a attribute word from key, value pair. Values are casted to api equivalents.
"Create a attribute word from key, value pair.\n Values are casted to api equivalents."
40
false
luqasz/librouteros
composeWord
12,659
LDU_FT/jkitzes/macroeco/_expon_solve_lam_from_mu
LDU_FT
[ "<BEGIN>\n## `get_theme_dir`", "Returns path to directory containing this package's theme.", " This is designed to be used when setting the ``html_theme_path``\n option within Sphinx's ``conf.py`` file.\n<END>", "<BEGIN>\n## `_geom_solve_p_from_mu`", "For the geom_uptrunc, given mu and b, return p.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expon_solve_lam_from_mu 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 _expon_solve_lam_from_mu API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
For the expon_uptrunc, given mu and b, return lam. Similar to geom_uptrunc
"For the expon_uptrunc, given mu and b, return lam.\n Similar to geom_uptrunc"
337
false
jkitzes/macroeco
_expon_solve_lam_from_mu
12,660
LDU_FT/cole/aiosmtplib/ehlo
LDU_FT
[ "<BEGIN>\n## `connection_made`", "Modified ``connection_made`` that supports upgrading our transport in\n place using STARTTLS.", " We set the _transport directly on the StreamReader, rather than calling\n set_transport (which will raise an AssertionError on upgrade).\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ehlo API. 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 ehlo API. 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...
Send the SMTP EHLO command. Hostname to send for this command defaults to the FQDN of the local host. :raises SMTPHeloError: on unexpected server response code
"Send the SMTP EHLO command.\n Hostname to send for this command defaults to the FQDN of the local\n host.\n\n :raises SMTPHeloError: on unexpected server response code"
142
false
cole/aiosmtplib
ehlo
12,661
LDU_FT/Opentrons/opentrons/delay
LDU_FT
[ "<BEGIN>\n## `get_attached_instruments`", "Find the instruments attached to our mounts.", " :param expected: A dict that may contain a mapping from mount to\n strings that should prefix instrument model names.\n When instruments are scanned, they are matche...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delay API. 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 delay API. 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...
Delay protocol execution for a specific amount of time. :param float seconds: A time to delay in seconds :param float minutes: A time to delay in minutes If both `seconds` and `minutes` are specified, they will be added.
"Delay protocol execution for a specific amount of time.\n\n :param float seconds: A time to delay in seconds\n :param float minutes: A time to delay in minutes\n\n If both `seconds` and `minutes` are specified, they will be added."
1,359
true
Opentrons/opentrons
delay
12,662
LDU_FT/theislab/scanpy/highly_variable_genes
LDU_FT
[ "<BEGIN>\n## `filter_cells`", "Filter cell outliers based on counts and numbers of genes expressed.", " For instance, only keep cells with at least `min_counts` counts or\n `min_genes` genes expressed. This is to filter measurement outliers,\n i.e. “unreliable” observations.", " Only provide one o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the highly_variable_genes 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 highly_variable_genes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Plot dispersions versus means for genes. Produces Supp. Fig. 5c of Zheng et al. (2017) and MeanVarPlot() of Seurat. Parameters ---------- adata : :class:`~anndata.AnnData`, `np.recarray` Result of :func:`~scanpy.api.pp.highly_variable_genes`. log : `bool` Plot on logarithmic axes. ...
"Plot dispersions versus means for genes.\n\n Produces Supp. Fig. 5c of Zheng et al. (2017) and MeanVarPlot() of Seurat.\n\n Parameters\n ----------\n adata : :class:`~anndata.AnnData`, `np.recarray`\n Result of :func:`~scanpy.api.pp.highly_variable_genes`.\n log : `bool`\n Plot on logarith...
1,142
true
theislab/scanpy
highly_variable_genes
12,663
LDU_FT/shoeffner/pandoc-source-exec/make_codelisting
LDU_FT
[ "<BEGIN>\n## `select_executor`", "Determines the executor for the code in `elem.text`.", " The elem attributes and classes select the executor in this order (highest\n to lowest):\n - custom commands (cmd=...)\n - runas (runas=...) takes a key for the executors\n - first element class...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_codelisting API. 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 make_codelisting API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
r"""Creates a source code listing: \begin{codelisting}[hbtp] inner_elements \caption[caption]{\label{label}caption} \end{codelisting} and returns the list containing the pandoc elements. Args: inner_elements: A list of inner pandoc elements, usually a ...
"r\"\"\"Creates a source code listing:\n\n \\begin{codelisting}[hbtp]\n inner_elements\n \\caption[caption]{\\label{label}caption}\n \\end{codelisting}\n\n and returns the list containing the pandoc elements.\n\n Args:\n inner_elements: A list of inner pandoc elements, usually a...
55
false
shoeffner/pandoc-source-exec
make_codelisting
12,664
LDU_FT/rochacbruno/dynaconf/find_file
LDU_FT
[ "<BEGIN>\n## `init_app`", "kwargs holds initial dynaconf configuration\n<END>", "<BEGIN>\n## `get`", "Gets config from dynaconf variables\n if variables does not exists in dynaconf try getting from\n `app.config` to support runtime settings.\n<END>", "<BEGIN>\n## `object_merge`", "Recursivel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Search in increasingly higher folders for the given file Returns path to the file if found, or an empty string otherwise. This function will build a `search_tree` based on: - Project_root if specified - Invoked script location and its parents until root - Current working directory For each pa...
"Search in increasingly higher folders for the given file\n Returns path to the file if found, or an empty string otherwise.\n\n This function will build a `search_tree` based on:\n\n - Project_root if specified\n - Invoked script location and its parents until root\n - Current working directory\n\n F...
172
false
rochacbruno/dynaconf
find_file
12,665
LDU_FT/praekeltfoundation/seed-auth-api/destroy
LDU_FT
[ "<BEGIN>\n## `get_true_false_both`", "Tries to get and return a valid of true, false, or both from the field\n name in the query string, raises a ValidationError for invalid values.\n<END>", "<BEGIN>\n## `get_queryset`", "We want to still be able to modify archived organizations, but they\n shouldn'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy API. 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 destroy API. 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...
For DELETE actions, archive the organization, don't delete.
"For DELETE actions, archive the organization, don't delete."
34
false
praekeltfoundation/seed-auth-api
destroy
12,666
LDU_FT/coursera/courseraoauth2client/_load_token_cache
LDU_FT
[ "<BEGIN>\n## `add_logging_parser`", "Build an argparse argument parser to parse the command line.\n<END>", "<BEGIN>\n## `set_logging_level`", "Computes and sets the logging level from the parsed arguments.\n<END>", "<BEGIN>\n## `authorize`", "Authorizes Coursera's OAuth2 client for using coursera.org API ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_token_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_token_cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Reads the local fs cache for pre-authorized access tokens
"Reads the local fs cache for pre-authorized access tokens"
31
false
coursera/courseraoauth2client
_load_token_cache
12,667
LDU_FT/btel/svg_utils/fromfile
LDU_FT
[ "<BEGIN>\n## `fromfile`", "Open SVG figure from file.", " Parameters\n ----------\n fname : str\n name of the SVG file", " Returns\n -------\n SVGFigure\n newly created :py:class:`SVGFigure` initialised with the file content\n<END>", "<BEGIN>\n## `fromstring`", "Create a SV...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fromfile API. 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 fromfile API. 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...
Open SVG figure from file. Parameters ---------- fname : str name of the SVG file Returns ------- SVGFigure newly created :py:class:`SVGFigure` initialised with the file content
"Open SVG figure from file.\n\n Parameters\n ----------\n fname : str\n name of the SVG file\n\n Returns\n -------\n SVGFigure\n newly created :py:class:`SVGFigure` initialised with the file content"
63
false
btel/svg_utils
fromfile
12,668
LDU_FT/davidmiller/letter/body
LDU_FT
[ "<BEGIN>\n## `main`", "Do the things!", " Return: 0\n Exceptions:\n<END>", "<BEGIN>\n## `send`", "Send BODY as an @message from FROM to TO", " If we don't have the access tokens for FROM, raise AccountNotFoundError.\n If the tweet resulting from '@{0} {1}'.format(TO, BODY) is > 140 cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Return the plain and html versions of our contents. Return: tuple Exceptions: None
"Return the plain and html versions of our contents.\n\n Return: tuple\n Exceptions: None"
74
false
davidmiller/letter
body
12,669
LDU_FT/Hironsan/anago/get_negative_log_likelihood
LDU_FT
[ "<BEGIN>\n## `download`", "Download a trained weights, config and preprocessor.", " Args:\n url (str): target url.\n<END>", "<BEGIN>\n## `load_data_and_labels`", "Loads data and label from a file.", " Args:\n filename (str): path to the file.\n encoding (str): file encoding form...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_negative_log_likelihood API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_negative_log_likelihood API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Compute the loss, i.e., negative log likelihood (normalize by number of time steps) likelihood = 1/Z * exp(-E) -> neg_log_like = - log(1/Z * exp(-E)) = logZ + E
"Compute the loss, i.e., negative log likelihood (normalize by number of time steps)\n likelihood = 1/Z * exp(-E) -> neg_log_like = - log(1/Z * exp(-E)) = logZ + E"
98
false
Hironsan/anago
get_negative_log_likelihood
12,670
LDU_FT/pytroll/trollimage/enhance
LDU_FT
[ "<BEGIN>\n## `colorize`", "Colorize a monochromatic array *arr*, based *colors* given for\n *values*. Interpolation is used. *values* must be in ascending order.\n<END>", "<BEGIN>\n## `palettize`", "From start *values* apply *colors* to *data*.\n<END>", "<BEGIN>\n## `set_range`", "Set the range of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enhance API. 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 enhance API. 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...
Image enhancement function. It applies **in this order** inversion, gamma correction, and stretching to the current image, with parameters *inverse* (see :meth:`Image.invert`), *gamma* (see :meth:`Image.gamma`), and *stretch* (see :meth:`Image.stretch`).
"Image enhancement function. It applies **in this order** inversion,\n gamma correction, and stretching to the current image, with parameters\n *inverse* (see :meth:`Image.invert`), *gamma* (see\n :meth:`Image.gamma`), and *stretch* (see :meth:`Image.stretch`)."
150
false
pytroll/trollimage
enhance
12,671
LDU_FT/sporteasy/python-poeditor/export
LDU_FT
[ "<BEGIN>\n## `_apiv1_run`", "Kept for backwards compatibility of this client\n See \"self.clear_reference_language\"\n<END>", "<BEGIN>\n## `list_projects`", "Returns the list of projects owned by user.\n<END>", "<BEGIN>\n## `create_project`", "creates a new project. Returns the id of the project (i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export API. 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 export API. 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 terms / translations filters - filter by self._filter_by tags - filter results by tags; local_file - save content into it. If None, save content into random temp file. >>> tags = 'name-of-tag' >>> tags = ["name-of-tag"] >>> tags = ["name-of-tag", "nam...
"Return terms / translations\n\n filters - filter by self._filter_by\n tags - filter results by tags;\n local_file - save content into it. If None, save content into\n random temp file.\n\n >>> tags = 'name-of-tag'\n >>> tags = [\"name-of-tag\"]\n >>> tags = [\"name-...
40
false
sporteasy/python-poeditor
export
12,672