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/jorisroovers/gitlint/from_full_message
LDU_FT
[ "<BEGIN>\n## `find_rule_classes`", "Searches a given directory or python module for rule classes. This is done by\n adding the directory path to the python path, importing the modules and then finding\n any Rule class in those modules.", " :param extra_path: absolute directory or file path to search fo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_full_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_full_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parses a full git commit message by parsing a given string into the different parts of a commit message
"Parses a full git commit message by parsing a given string into the different parts of a commit message"
58
false
jorisroovers/gitlint
from_full_message
3,073
LDU_FT/lucapinello/Haystack/_compute_bits
LDU_FT
[ "<BEGIN>\n## `sample_wr`", "Chooses k random elements (with replacement) from a population\n<END>", "<BEGIN>\n## `summary`", "m.summary() -- Return a text string one-line summary of motif and its metrics\n<END>", "<BEGIN>\n## `minimal_raw_seqs`", "m.minimal_raw_seqs() -- Return minimal list of seqs that r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_bits API. 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 _compute_bits API. 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...
m._compute_bits() -- [utility] Set m.totbits to the number of bits and m.bits to a list of bits at each position
"m._compute_bits() -- [utility] Set m.totbits to the number of bits and m.bits to a list of bits at each position"
87
false
lucapinello/Haystack
_compute_bits
3,074
LDU_FT/rflamary/POT/semi_dual_obj_grad
LDU_FT
[ "<BEGIN>\n## `plot1D_mat`", "Plot matrix M with the source and target 1D distribution", " Creates a subplot with the source distribution a on the left and\n target distribution b on the tot. The matrix M is shown in between.", " Parameters\n ----------\n a : np.array, shape (na,)\n Sour...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the semi_dual_obj_grad 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 semi_dual_obj_grad 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...
Compute objective value and gradient of semi-dual objective. Parameters ---------- alpha: array, shape = len(a) Current iterate of semi-dual potentials. a: array, shape = len(a) b: array, shape = len(b) Input histograms (should be non-negative and sum to 1). C: array, shape = le...
"Compute objective value and gradient of semi-dual objective.\n\n Parameters\n ----------\n alpha: array, shape = len(a)\n Current iterate of semi-dual potentials.\n a: array, shape = len(a)\n b: array, shape = len(b)\n Input histograms (should be non-negative and sum to 1).\n C: array, ...
711
false
rflamary/POT
semi_dual_obj_grad
3,075
LDU_FT/floydhub/floyd-cli/check_response_status
LDU_FT
[ "<BEGIN>\n## `init`", "Initialize new project at the current path.", " After this you can run other FloydHub commands like status and run.\n<END>", "<BEGIN>\n## `status`", "View status of all jobs in a project.", " The command also accepts a specific job name.\n<END>", "<BEGIN>\n## `print_experime...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_response_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_response_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Check if response is successful. Else raise Exception.
"Check if response is successful. Else raise Exception."
84
false
floydhub/floyd-cli
check_response_status
3,076
LDU_FT/usc-isi-i2/etk/is_location
LDU_FT
[ "<BEGIN>\n## `decode_unicode`", "Process of parsing:\n -> Convert unicode into standard form\n -> Convert each character of the unicode symbol to its numerical equivalent\n -> Mapping Process:\n - First check in pattern dictionary to map suffix/prefix\n - Check Emoticon Dictionary \n - Replace valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_location API. 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 is_location API. 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...
Boolean function for checking if v is a location format Args: v: Returns: bool
"Boolean function for checking if v is a location format\n\n Args:\n v:\n Returns: bool"
427
false
usc-isi-i2/etk
is_location
3,077
LDU_FT/mfitzp/padua/compareimputed
LDU_FT
[ "<BEGIN>\n## `remove_rows_matching`", "Return a ``DataFrame`` with rows where `column` values match `match` are removed.", " The selected `column` series of values from the supplied Pandas ``DataFrame`` is compared\n to `match`, and those rows that match are removed from the DataFrame.", " :param df:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compareimputed API. 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 compareimputed API. 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...
Compare the distributions of two DataFrames giving visualisations of: - individual and combined distributions - distribution of non-common values - distribution of non-common values vs. each side Useful for visualising effects of data imputation. Plot distribution as area (fill_between) + mean,...
"Compare the distributions of two DataFrames giving visualisations of:\n - individual and combined distributions\n - distribution of non-common values\n - distribution of non-common values vs. each side\n\n Useful for visualising effects of data imputation.\n\n Plot distribution as area (fill_between)...
266
false
mfitzp/padua
compareimputed
3,078
LDU_FT/gazpachoking/jsonref/load_uri
LDU_FT
[ "<BEGIN>\n## `_no_proxy`", "Returns a wrapped version of `method`, such that proxying is turned off\n during the method call.\n<END>", "<BEGIN>\n## `_should_proxy`", "Determines whether `attr` should be looked up on the proxied object, or\n the proxy itself.\n<END>", "<BEGIN>\n## `add_proxy_me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_uri API. 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 load_uri API. 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...
Load JSON data from ``uri`` with JSON references proxied to their referent data. :param uri: URI to fetch the JSON from :param kwargs: This function takes any of the keyword arguments from :meth:`JsonRef.replace_refs`
"Load JSON data from ``uri`` with JSON references proxied to their referent\n data.\n\n :param uri: URI to fetch the JSON from\n :param kwargs: This function takes any of the keyword arguments from\n :meth:`JsonRef.replace_refs`"
25
false
gazpachoking/jsonref
load_uri
3,079
LDU_FT/dask/dask-ml/check_matching_blocks
LDU_FT
[ "<BEGIN>\n## `normalize_params`", "Take a list of dictionaries, and tokenize/normalize.\n<END>", "<BEGIN>\n## `check_cv`", "Dask aware version of ``sklearn.model_selection.check_cv``", " Same as the scikit-learn version, but works if ``y`` is a dask object.\n<END>", "<BEGIN>\n## `compute_n_splits`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_matching_blocks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_matching_blocks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Check that the partitioning structure for many arrays matches. Parameters ---------- *arrays : Sequence of array-likes This includes * Dask Array * Dask DataFrame * Dask Series
"Check that the partitioning structure for many arrays matches.\n\n Parameters\n ----------\n *arrays : Sequence of array-likes\n This includes\n\n * Dask Array\n * Dask DataFrame\n * Dask Series"
361
false
dask/dask-ml
check_matching_blocks
3,080
LDU_FT/ladybug-tools/ladybug/to_immutable
LDU_FT
[ "<BEGIN>\n## `project`", "Return one vector projected on the vector other\n<END>", "<BEGIN>\n## `rotate_around`", "Return the vector rotated around axis through angle theta.", " Right hand rule applies.\n<END>", "<BEGIN>\n## `to_ip`", "Return values in IP and the units to which the values have be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_immutable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_immutable API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get an immutable version of this collection.
"Get an immutable version of this collection."
743
false
ladybug-tools/ladybug
to_immutable
3,081
LDU_FT/nvbn/thefuck/_prepare_arguments
LDU_FT
[ "<BEGIN>\n## `get_loaded_rules`", "Yields all available rules.", " :type rules_paths: [Path]\n :rtype: Iterable[Rule]\n<END>", "<BEGIN>\n## `get_rules_import_paths`", "Yields all rules import paths.", " :rtype: Iterable[Path]\n<END>", "<BEGIN>\n## `get_rules`", "Returns all enabled rules.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_arguments 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 _prepare_arguments 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...
Prepares arguments by: - removing placeholder and moving arguments after it to beginning, we need this to distinguish arguments from `command` with ours; - adding `--` before `command`, so our parse would ignore arguments of `command`.
"Prepares arguments by:\n\n - removing placeholder and moving arguments after it to beginning,\n we need this to distinguish arguments from `command` with ours;\n\n - adding `--` before `command`, so our parse would ignore arguments\n of `command`."
132
false
nvbn/thefuck
_prepare_arguments
3,082
LDU_FT/kobejohn/PQHelper/_convert_cv_to_tk
LDU_FT
[ "<BEGIN>\n## `_create_board_image_cv`", "Return a cv image of the board or empty board if not provided.\n<END>", "<BEGIN>\n## `_draw_swap_cv`", "Add a white tile border to indicate the swap.\n<END>", "<BEGIN>\n## `_convert_cv_to_tk`", "Convert an OpenCV image to a tkinter PhotoImage\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_cv_to_tk API. 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 _convert_cv_to_tk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert an OpenCV image to a tkinter PhotoImage
"Convert an OpenCV image to a tkinter PhotoImage"
114
false
kobejohn/PQHelper
_convert_cv_to_tk
3,083
LDU_FT/codenerix/django-codenerix/ifusergroup
LDU_FT
[ "<BEGIN>\n## `get_groups`", "<--------------------------------------- 12 columns ------------------------------------>\n <--- 6 columns ---> <--- 6 columns --->\n ------------------------------------------ ------------------------------------------\n |...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ifusergroup API. 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 ifusergroup API. 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...
Check to see if the currently logged in user belongs to a specific group. Requires the Django authentication contrib app and middleware. Usage: {% ifusergroup Admins %} ... {% endifusergroup %}, or {% ifusergroup Admins Clients Sellers %} ... {% else %} ... {% endifusergroup %}
"Check to see if the currently logged in user belongs to a specific\n group. Requires the Django authentication contrib app and middleware.\n\n Usage: {% ifusergroup Admins %} ... {% endifusergroup %}, or\n {% ifusergroup Admins Clients Sellers %} ... {% else %} ... {% endifusergroup %}"
82
false
codenerix/django-codenerix
ifusergroup
3,084
LDU_FT/SuperCowPowers/workbench/search
LDU_FT
[ "<BEGIN>\n## `conn_log_graph`", "Build up a graph (nodes and edges from a Bro conn.log)\n<END>", "<BEGIN>\n## `dns_log_graph`", "Build up a graph (nodes and edges from a Bro dns.log)\n<END>", "<BEGIN>\n## `weird_log_graph`", "Build up a graph (nodes and edges from a Bro weird.log)\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Wrapper for the Workbench search method Args: tags: a single tag 'pcap' or a list of tags to search for ['bad','aptz13'] Returns: A sample_set that contains the md5s for all matching samples
"Wrapper for the Workbench search method\n Args:\n tags: a single tag 'pcap' or a list of tags to search for ['bad','aptz13']\n Returns:\n A sample_set that contains the md5s for all matching samples"
328
false
SuperCowPowers/workbench
search
3,085
LDU_FT/Kane610/axis/DESCRIBE
LDU_FT
[ "<BEGIN>\n## `session_request`", "Do HTTP/S request and return response as a string.\n<END>", "<BEGIN>\n## `get_event_list`", "Get a dict of supported events from device.\n<END>", "<BEGIN>\n## `_prepare_event`", "Converts event instances to a relevant dictionary.\n<END>", "<BEGIN>\n## `process_raw`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DESCRIBE API. 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 DESCRIBE API. 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...
Request description of what services RTSP server make available.
"Request description of what services RTSP server make available."
55
false
Kane610/axis
DESCRIBE
3,086
LDU_FT/prymitive/bootstrap-breadcrumbs/breadcrumb
LDU_FT
[ "<BEGIN>\n## `breadcrumb`", "Add link to list of breadcrumbs, usage:", " {% load bubbles_breadcrumbs %}\n {% breadcrumb \"Home\" \"index\" %}", " Remember to use it inside {% block %} with {{ block.super }} to get all\n parent breadcrumbs.", " :param label: Breadcrumb link label.\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the breadcrumb API. 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 breadcrumb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add link to list of breadcrumbs, usage: {% load bubbles_breadcrumbs %} {% breadcrumb "Home" "index" %} Remember to use it inside {% block %} with {{ block.super }} to get all parent breadcrumbs. :param label: Breadcrumb link label. :param viewname: Name of the view to link this breadcrumb to,...
"Add link to list of breadcrumbs, usage:\n\n {% load bubbles_breadcrumbs %}\n {% breadcrumb \"Home\" \"index\" %}\n\n Remember to use it inside {% block %} with {{ block.super }} to get all\n parent breadcrumbs.\n\n :param label: Breadcrumb link label.\n :param viewname: Name of the view to link this ...
13
false
prymitive/bootstrap-breadcrumbs
breadcrumb
3,087
LDU_FT/racker/torment/import_directory
LDU_FT
[ "<BEGIN>\n## `up`", "Start the specified docker-compose services.", " Parameters\n ----------", " :``services``: a list of docker-compose service names to start (must be\n defined in docker-compose.yml)", " Return Value(s)\n ---------------", " The integer status of ``d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_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. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_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. The ...
Load all python modules in directory and directory's children. Parameters ---------- :``module_basename``: module name prefix for loaded modules :``directory``: directory to load python modules from :``sort_key``: function to sort module names with before loading
"Load all python modules in directory and directory's children.\n\n Parameters\n ----------\n\n :``module_basename``: module name prefix for loaded modules\n :``directory``: directory to load python modules from\n :``sort_key``: function to sort module names with before loading"
117
false
racker/torment
import_directory
3,088
LDU_FT/phoebe-project/phoebe2/requiv_contact_max
LDU_FT
[ "<BEGIN>\n## `lc`", "Create parameters for a new light curve dataset.", " Generally, this will be used as an input to the kind argument in\n :meth:`phoebe.frontend.bundle.Bundle.add_dataset`", " :parameter **kwargs: defaults for the values of any of the parameters\n :return: a :class:`phoebe.param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requiv_contact_max 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 requiv_contact_max API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Create a constraint to determine the critical (at L2/3) value of requiv at which a constact will overflow. This will only be used for contacts for requiv_max :parameter b: the :class:`phoebe.frontend.bundle.Bundle` :parameter str component: the label of the star in which this constraint should...
"Create a constraint to determine the critical (at L2/3) value of\n requiv at which a constact will overflow. This will only be used\n for contacts for requiv_max\n\n :parameter b: the :class:`phoebe.frontend.bundle.Bundle`\n :parameter str component: the label of the star in which this\n constraint...
1,080
true
phoebe-project/phoebe2
requiv_contact_max
3,089
LDU_FT/websocket-client/websocket-client/send
LDU_FT
[ "<BEGIN>\n## `parse_url`", "parse url and the result is tuple of\n (hostname, port, resource path and the flag of secure mode)", " url: url string.\n<END>", "<BEGIN>\n## `get_proxy_info`", "try to retrieve proxy host and port from environment\n if not provided in options.\n result is (proxy_host...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. 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 send API. 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 message. data: message to send. If you set opcode to OPCODE_TEXT, data must be utf-8 string or unicode. opcode: operation code of data. default is OPCODE_TEXT.
"send message.\n data: message to send. If you set opcode to OPCODE_TEXT,\n data must be utf-8 string or unicode.\n opcode: operation code of data. default is OPCODE_TEXT."
81
false
websocket-client/websocket-client
send
3,090
LDU_FT/IdentityPython/SATOSA/_validate_config
LDU_FT
[ "<BEGIN>\n## `handle_authn_response`", "See super class method satosa.frontends.base.FrontendModule#handle_authn_response\n :type context: satosa.context.Context\n :type internal_response: satosa.internal.InternalData\n :rtype satosa.response.Response\n<END>", "<BEGIN>\n## `handle_authn_req...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Validates some parts of the module config :type config: dict[str, dict[str, Any] | str] :param config: The module config
"Validates some parts of the module config\n :type config: dict[str, dict[str, Any] | str]\n :param config: The module config"
435
false
IdentityPython/SATOSA
_validate_config
3,091
LDU_FT/zrong/rookout/copy_dir
LDU_FT
[ "<BEGIN>\n## `copy_from_dict`", "从一个已经存在的 dict 中复制所有的值。", " :param adict: 被复制的 dict。\n :type adict: dict\n :param parent: 复制到哪个父对象。\n 若为 None 则复制到 self 。\n :type parent: rookout.PYConf\n<END>", "<BEGIN>\n## `dump`", "将自身内容打印成字符串", " :param bool hu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
:func:`shutil.copytree()` 也能实现类似功能, 但前者要求目标文件夹必须不存在。 而 copy_dir 没有这个要求,它可以将 sou_dir 中的文件合并到 dst_dir 中。 :param str sou_dir: 待复制的文件夹; :param str dst_dir: 目标文件夹; :param bool del_dst: 是否删除目标文件夹。 :param bool del_subdst: 是否删除目标子文件夹。
":func:`shutil.copytree()` 也能实现类似功能,\n 但前者要求目标文件夹必须不存在。\n 而 copy_dir 没有这个要求,它可以将 sou_dir 中的文件合并到 dst_dir 中。\n\n :param str sou_dir: 待复制的文件夹;\n :param str dst_dir: 目标文件夹;\n :param bool del_dst: 是否删除目标文件夹。\n :param bool del_subdst: 是否删除目标子文件夹。"
77
false
zrong/rookout
copy_dir
3,092
LDU_FT/KKBOX/OpenAPI-Python/fetch_data
LDU_FT
[ "<BEGIN>\n## `fetch_track`", "Fetches a song track by given ID.", " :param track_id: the track ID.\n :type track_id: str\n :return: API response.\n :rtype: dict", " See `https://docs-en.kkbox.codes/v1.1/reference#tracks-track_id`.\n<END>", "<BEGIN>\n## `fetch_album`", "F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_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 extrac...
Fetches data from specific url. :return: The response. :rtype: dict
"Fetches data from specific url.\n\n :return: The response.\n :rtype: dict"
43
false
KKBOX/OpenAPI-Python
fetch_data
3,093
LDU_FT/aaugustin/websockets/process_subprotocol
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 process_subprotocol API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_subprotocol API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Handle the Sec-WebSocket-Protocol HTTP request header. Return Sec-WebSocket-Protocol HTTP response header, which is the same as the selected subprotocol.
"Handle the Sec-WebSocket-Protocol HTTP request header.\n\n Return Sec-WebSocket-Protocol HTTP response header, which is the same\n as the selected subprotocol."
346
false
aaugustin/websockets
process_subprotocol
3,094
LDU_FT/miku/gluish/run
LDU_FT
[ "<BEGIN>\n## `write_tsv`", "Write argument list in `tup` out as a tab-separeated row to the stream.\n<END>", "<BEGIN>\n## `iter_tsv`", "If a tuple is given in cols, use the elements as names to construct\n a namedtuple.", " Columns can be marked as ignored by using ``X`` or ``0`` as column name.", "...
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...
Index the document. Since ids are predictable, we won't index anything twice.
"Index the document. Since ids are predictable,\n we won't index anything twice."
34
false
miku/gluish
run
3,095
LDU_FT/jmoiron/johnny-cache/gen_table_key
LDU_FT
[ "<BEGIN>\n## `disallowed_table`", "Returns True if a set of tables is in the blacklist or, if a whitelist is set,\n any of the tables is not in the whitelist. False otherwise.\n<END>", "<BEGIN>\n## `invalidate`", "Invalidate the current generation for one or more tables. The arguments\n can be either s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_table_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_table_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns a key that is standard for a given table name and database alias. Total length up to 212 (max for memcache is 250).
"Returns a key that is standard for a given table name and database\n alias. Total length up to 212 (max for memcache is 250)."
38
false
jmoiron/johnny-cache
gen_table_key
3,096
LDU_FT/rackerlabs/simpl/init
LDU_FT
[ "<BEGIN>\n## `scrub`", "Verify and clean data. Raise error if input fails.\n<END>", "<BEGIN>\n## `build_text_search`", "Build mongodb query that performs text search for string(s).", " This is the backend implementation of the front-end search box on a list.\n It performs text search on a text index a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API. 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 init API. 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...
Initialize singleton config and read/parse configuration. :keyword bool strict: when true, will error out on invalid arguments (default behavior is to ignore them) :returns: the loaded configuration.
"Initialize singleton config and read/parse configuration.\n\n :keyword bool strict: when true, will error out on invalid arguments\n (default behavior is to ignore them)\n :returns: the loaded configuration."
313
false
rackerlabs/simpl
init
3,097
LDU_FT/timstaley/voeventdb/_grab_xpath
LDU_FT
[ "<BEGIN>\n## `setup_logging`", "Set up basic (INFO level) and debug logfiles\n<END>", "<BEGIN>\n## `_list_class_vars`", "Return a dict of all 'regular' (i.e. not prefixed ``_``) class attributes.\n<END>", "<BEGIN>\n## `apiv1_root_view`", "API root url. Shows a list of active endpoints.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _grab_xpath API. 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 _grab_xpath API. 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...
XML convenience - grabs the first element at xpath if present, else returns None.
"XML convenience - grabs the first element at xpath if present, else returns None."
56
false
timstaley/voeventdb
_grab_xpath
3,098
LDU_FT/brentp/toolshed/pool
LDU_FT
[ "<BEGIN>\n## `groupby`", "wrapper to itertools.groupby that returns a list of each group, rather\n than a generator and accepts integers or strings as the key and\n automatically converts them to callables with itemgetter(key)", " Arguments:\n iterable: iterable\n key: string, int or call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pool API. 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 pool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
create a multiprocessing pool that responds to interrupts.
"create a multiprocessing pool that responds to interrupts."
20
false
brentp/toolshed
pool
3,099
LDU_FT/ReadabilityHoldings/python-readability-api/add_bookmark
LDU_FT
[ "<BEGIN>\n## `cast_datetime_filter`", "Cast a datetime filter value.", " :param value: string representation of a value that needs to be casted to\n a `datetime` object.\n<END>", "<BEGIN>\n## `filter_args_to_dict`", "Cast and validate filter args.", " :param filter_dict: Filter kwargs\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_bookmark API. 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 add_bookmark API. 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...
Adds given bookmark to the authenticated user. :param url: URL of the article to bookmark :param favorite: whether or not the bookmark should be favorited :param archive: whether or not the bookmark should be archived :param allow_duplicates: whether or not to allow duplicate bookmarks ...
"Adds given bookmark to the authenticated user.\n\n :param url: URL of the article to bookmark\n :param favorite: whether or not the bookmark should be favorited\n :param archive: whether or not the bookmark should be archived\n :param allow_duplicates: whether or not to allow duplicate book...
83
false
ReadabilityHoldings/python-readability-api
add_bookmark
3,100
LDU_FT/OSLL/jabba/parse_from_args
LDU_FT
[ "<BEGIN>\n## `depends_on`", "Analysis function", " Get list of files that depend on given configs\n If there is 'graph=name' in analysis parameters, instead graph of includes will be rendered into name.svg\n<END>", "<BEGIN>\n## `parse_from_args`", "Parse an array of string from argparser\n to Synon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_from_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_from_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 e...
Parse an array of string from argparser to SynonymSet
"Parse an array of string from argparser\n to SynonymSet"
41
false
OSLL/jabba
parse_from_args
3,101
LDU_FT/staugur/Flask-PluginKit/storage
LDU_FT
[ "<BEGIN>\n## `push_dcp`", "Push a callable for :class:`~flask_pluginkit.PluginManager`, :func:`push_dcp`.", " Example usage::", " push_dcp('demo', lambda:'Hello dcp')", " .. versionadded:: 2.1.0\n<END>", "<BEGIN>\n## `__scanPlugins`", "Scanning local plugin directories and third-party plugi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the storage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the storage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Common storage interface with :class:`~flask_pluginkit.LocalStorage` or :class:`~flask_pluginkit.RedisStorage`, sf is a custom storage interface classes, args is its parameters, highest priority. :param sf: class based :class:`~flask_pluginkit.BaseStorage` :param args: class init args ...
"Common storage interface with :class:`~flask_pluginkit.LocalStorage` or :class:`~flask_pluginkit.RedisStorage`,\n sf is a custom storage interface classes, args is its parameters, highest priority.\n\n :param sf: class based :class:`~flask_pluginkit.BaseStorage`\n\n :param args: class init args\n\...
128
false
staugur/Flask-PluginKit
storage
3,102
LDU_FT/hyperledger/indy-plenum/is_instance_avg_req_latency_too_high
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 is_instance_avg_req_latency_too_high API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_instance_avg_req_latency_too_high API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i...
Return whether the average request latency of an instance is greater than the acceptable threshold
"Return whether the average request latency of an instance is\n greater than the acceptable threshold"
773
false
hyperledger/indy-plenum
is_instance_avg_req_latency_too_high
3,103
LDU_FT/redcanari/canari3/debug
LDU_FT
[ "<BEGIN>\n## `icon_resource`", "Returns the absolute URI path to an image. If a package is not explicitly specified then the calling package name is\n used.", " :param name: path relative to package path of the image resource.\n :param package: package name in dotted format.\n :return: the file URI ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug API. 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 debug API. 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...
Send debug messages to the Maltego console.
"Send debug messages to the Maltego console."
126
false
redcanari/canari3
debug
3,104
LDU_FT/tmoerman/arboreto/clean
LDU_FT
[ "<BEGIN>\n## `to_tf_matrix`", ":param expression_matrix: numpy matrix. Rows are observations and columns are genes.\n :param gene_names: a list of gene names. Each entry corresponds to the expression_matrix column with same index.\n :param tf_names: a list of transcription factor names. Should be a subset o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. 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 clean API. 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...
:param tf_matrix: numpy array. The full transcription factor matrix. :param tf_matrix_gene_names: the full list of transcription factor names, corresponding to the tf_matrix columns. :param target_gene_name: the target gene to remove from the tf_matrix and tf_names. :return: a tuple of (matrix, names) equal...
":param tf_matrix: numpy array. The full transcription factor matrix.\n :param tf_matrix_gene_names: the full list of transcription factor names, corresponding to the tf_matrix columns.\n :param target_gene_name: the target gene to remove from the tf_matrix and tf_names.\n :return: a tuple of (matrix, names) e...
50
false
tmoerman/arboreto
clean
3,105
LDU_FT/AtomHash/evernode/exists
LDU_FT
[ "<BEGIN>\n## `exists`", "Checks if item already exists in database\n<END>", "<BEGIN>\n## `save`", "Easy save(insert or update) for db models\n<END>", "<BEGIN>\n## `trans`", "Root Example:\r\n Translator()\r\n Translator.trans('messages.hello')\r\n resources/lang/en/messages.lang will ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Checks if item already exists in database
"Checks if item already exists in database"
56
false
AtomHash/evernode
exists
3,106
LDU_FT/htm-community/menorah/stream
LDU_FT
[ "<BEGIN>\n## `swarm`", "Runs a swarm in the giving working directory, assuming it was created by \n Menorah.\n :param workingDir: absolute or relative path to working directory created by\n Menorah\n<END>", "<BEGIN>\n## `load`", "Loads this stream by calling River View for data.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream API. 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 stream API. 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 ...
Fetches data from river streams and feeds them into the given function. :param handler: (function) passed headers [list] and row [list] of the data for one time step, for every row of data
"Fetches data from river streams and feeds them into the given function.\n :param handler: (function) passed headers [list] and row [list] of the data\n for one time step, for every row of data"
30
false
htm-community/menorah
stream
3,107
LDU_FT/chaoss/grimoirelab-elk/get_arthur_params_from_url
LDU_FT
[ "<BEGIN>\n## `__related_categories`", "Get all related categories to a given one\n<END>", "<BEGIN>\n## `__show_categories_tree`", "Show the category tree: list of categories and its subcategories\n<END>", "<BEGIN>\n## `fetch_track_items`", "The file format is:", " # Upstream contributions, bitergia w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_arthur_params_from_url 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_arthur_params_from_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Get the arthur params given a URL for the data source
"Get the arthur params given a URL for the data source"
296
false
chaoss/grimoirelab-elk
get_arthur_params_from_url
3,108
LDU_FT/codeforamerica/three/requests
LDU_FT
[ "<BEGIN>\n## `city`", "Store the city that will be queried against.", " >>> three.city('sf')\n<END>", "<BEGIN>\n## `dev`", "Use an endpoint and any additional keyword arguments rather than one\n of the pre-defined cities. Similar to the `city` function, but useful for\n development.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requests API. 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 requests API. 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...
Retrieve open requests. You can also enter a specific service code argument. >>> Three('api.city.gov').requests() {'all': {'requests': 'data'}} >>> Three('api.city.gov').requests('123') {'123': {'requests': 'data'}}
"Retrieve open requests. You can also enter a specific service code\n argument.\n\n >>> Three('api.city.gov').requests()\n {'all': {'requests': 'data'}}\n >>> Three('api.city.gov').requests('123')\n {'123': {'requests': 'data'}}"
35
false
codeforamerica/three
requests
3,109
LDU_FT/ashmastaflash/kal-wrapper/get_measurements_from_kal_scan
LDU_FT
[ "<BEGIN>\n## `scan_band`", "Run Kalibrate for a band.", " Supported keyword arguments:\n gain -- Gain in dB\n device -- Index of device to be used\n error -- Initial frequency error in ppm\n<END>", "<BEGIN>\n## `scan_channel`", "Run Kalibrate.", " Supported keyword...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_measurements_from_kal_scan API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_measurements_from_kal_scan API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Return a list of all measurements from kalibrate channel scan.
"Return a list of all measurements from kalibrate channel scan."
25
false
ashmastaflash/kal-wrapper
get_measurements_from_kal_scan
3,110
LDU_FT/pycampers/zproc/exception_to_signal
LDU_FT
[ "<BEGIN>\n## `_create_remote_dict_method`", "Generates a method for the State class,\n that will call the \"method_name\" on the state (a ``dict``) stored on the server,\n and return the result.", " Glorified RPC.\n<END>", "<BEGIN>\n## `run_dict_method`", "Execute a method on the state ``dict`` and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exception_to_signal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exception_to_signal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Rollback any changes done by :py:func:`signal_to_exception`.
"Rollback any changes done by :py:func:`signal_to_exception`."
134
false
pycampers/zproc
exception_to_signal
3,111
LDU_FT/ivanprjcts/sdklib/_get_11paths_serialized_headers
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse the given XML input and convert it into a dictionary.", " `xml_input` can either be a `string` or a file-like object.", " If `xml_attribs` is `True`, element attributes are put in the dictionary\n among regular child elements, using `@` as a prefix to avoid collisions. I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_11paths_serialized_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_11paths_serialized_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Prepares and returns a string ready to be signed from the 11-paths specific HTTP headers received. :param x_headers: a non necessarily ordered map (array without duplicates) of the HTTP headers to be ordered. :return: string The serialized headers, an empty string if no headers are passed, or None if there's a...
"Prepares and returns a string ready to be signed from the 11-paths specific HTTP headers received.\n\n :param x_headers: a non necessarily ordered map (array without duplicates) of the HTTP headers to be ordered.\n :return: string The serialized headers, an empty string if no headers are passed, or None if there...
125
false
ivanprjcts/sdklib
_get_11paths_serialized_headers
3,112
LDU_FT/openstates/billy/make_plus_fields
LDU_FT
[ "<BEGIN>\n## `decimal_format`", "Format a decimal.Decimal like to 2 decimal places.\n<END>", "<BEGIN>\n## `notification_preference`", "Display two radio buttons for turning notifications on or off.\n The default value is is have alerts_on = True.\n<END>", "<BEGIN>\n## `committee_object`", "If the commi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_plus_fields API. 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_plus_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Add a '+' to the key of non-standard fields. dispatch to recursive _make_plus_helper based on _type field
"Add a '+' to the key of non-standard fields.\n\n dispatch to recursive _make_plus_helper based on _type field"
168
false
openstates/billy
make_plus_fields
3,113
LDU_FT/MKLab-ITI/reveal-graph-embedding/calculate_measures
LDU_FT
[ "<BEGIN>\n## `read_adjacency_matrix`", "Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdinate format.", " Inputs: - file_path: The path where the adjacency matrix is stored.\n - separator: The delimiter among values (e.g. \",\", \"\\t\", \" \")", " Out...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_measures 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 calculate_measures 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...
Calculates the F-scores and F-score averages given a classification result and a ground truth. Inputs: - y_pred: The node-label prediction for the test set in a SciPy sparse CSR matrix format. - y_test: The node-label ground truth for the test set in a SciPy sparse CSR matrix format. Outputs: - ...
"Calculates the F-scores and F-score averages given a classification result and a ground truth.\n\n Inputs: - y_pred: The node-label prediction for the test set in a SciPy sparse CSR matrix format.\n - y_test: The node-label ground truth for the test set in a SciPy sparse CSR matrix format.\n\n Outpu...
151
false
MKLab-ITI/reveal-graph-embedding
calculate_measures
3,114
LDU_FT/django-extensions/django-extensions/get_import_lines
LDU_FT
[ "<BEGIN>\n## `_slug_strip`", "Clean up a slug by removing slug separator characters that occur at\n the beginning or end of a slug.", " If an alternate separator is used, it will also replace any instances\n of the default '-' separator with the new separator.\n<END>", "<BEGIN>\n## `to_py...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_import_lines API. 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_import_lines API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Take the stored imports and converts them to lines
"Take the stored imports and converts them to lines"
191
false
django-extensions/django-extensions
get_import_lines
3,115
LDU_FT/codeinn/vcs/add
LDU_FT
[ "<BEGIN>\n## `make_ui`", "A funcion that will read python rc files and make an ui from read options", " :param path: path to mercurial config file\n<END>", "<BEGIN>\n## `status`", "Returns modified, added, removed, deleted files for current changeset\n<END>", "<BEGIN>\n## `_fix_path`", "Paths are sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Marks given ``FileNode`` objects as *to be committed*. :raises ``NodeAlreadyExistsError``: if node with same path exists at latest changeset :raises ``NodeAlreadyAddedError``: if node with same path is already marked as *added*
"Marks given ``FileNode`` objects as *to be committed*.\n\n :raises ``NodeAlreadyExistsError``: if node with same path exists at\n latest changeset\n :raises ``NodeAlreadyAddedError``: if node with same path is already\n marked as *added*"
326
false
codeinn/vcs
add
3,116
LDU_FT/ArangoDB-Community/pyArango/getIndexes
LDU_FT
[ "<BEGIN>\n## `_create`", "Creates an index of any type according to postData\n<END>", "<BEGIN>\n## `createVertex`", "adds a vertex to the graph and returns it\n<END>", "<BEGIN>\n## `deleteVertex`", "deletes a vertex from the graph as well as al linked edges\n<END>", "<BEGIN>\n## `link`", "A shorthand ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getIndexes API. 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 getIndexes API. 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...
Fills self.indexes with all the indexes associates with the collection and returns it
"Fills self.indexes with all the indexes associates with the collection and returns it"
105
false
ArangoDB-Community/pyArango
getIndexes
3,117
LDU_FT/INM-6/hybridLFPy/crosscorrfunc
LDU_FT
[ "<BEGIN>\n## `plot_signal_sum`", "on axes plot the signal contributions", " args:\n ::\n ax : matplotlib.axes.AxesSubplot object\n z : np.ndarray\n T : list, [tstart, tstop], which timeinterval\n ylims : list, set range of yaxis to scale with other plots\n fancy : bool, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crosscorrfunc API. 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 crosscorrfunc API. 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...
Calculate crosscorrelation function(s) for given cross spectra. Parameters ---------- freq : numpy.ndarray 1 dimensional array of frequencies. cross : numpy.ndarray 2 dimensional array of cross spectra, 1st axis units, 2nd axis units, 3rd axis frequencies. Returns --...
"Calculate crosscorrelation function(s) for given cross spectra.\n\n\n Parameters\n ----------\n freq : numpy.ndarray\n 1 dimensional array of frequencies.\n cross : numpy.ndarray \n 2 dimensional array of cross spectra, 1st axis units, 2nd axis units,\n 3rd axis frequencies.\n\n\n R...
412
false
INM-6/hybridLFPy
crosscorrfunc
3,118
LDU_FT/elastic/elasticsearch-dsl-py/clear_cache
LDU_FT
[ "<BEGIN>\n## `scan_aggs`", "Helper function used to iterate over all possible bucket combinations of\n ``source_aggs``, returning results of ``inner_aggs`` for each. Uses the\n ``composite`` aggregation under the hood to perform this.\n<END>", "<BEGIN>\n## `clean`", "Automatically construct the suggesti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_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 extra...
Clear all caches or specific cached associated with the index. Any additional keyword arguments will be passed to ``Elasticsearch.indices.clear_cache`` unchanged.
"Clear all caches or specific cached associated with the index.\n\n Any additional keyword arguments will be passed to\n ``Elasticsearch.indices.clear_cache`` unchanged."
257
false
elastic/elasticsearch-dsl-py
clear_cache
3,119
LDU_FT/gtalarico/airtable-python-wrapper/delete
LDU_FT
[ "<BEGIN>\n## `to_param_dict`", "Sorts to ensure Order is consistent for Testing\n<END>", "<BEGIN>\n## `_discover_params`", "Returns a dict where filter keyword is key, and class is value.\r\n To handle param alias (maxRecords or max_records), both versions are\r\n added.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Deletes a record by its id >>> record = airtable.match('Employee Id', 'DD13332454') >>> airtable.delete(record['id']) Args: record_id(``str``): Airtable record id Returns: record (``dict``): Deleted Record
"Deletes a record by its id\r\n\r\n >>> record = airtable.match('Employee Id', 'DD13332454')\r\n >>> airtable.delete(record['id'])\r\n\r\n Args:\r\n record_id(``str``): Airtable record id\r\n\r\n Returns:\r\n record (``dict``): Deleted Record"
90
false
gtalarico/airtable-python-wrapper
delete
3,120
LDU_FT/OCA/odoorpc/logout
LDU_FT
[ "<BEGIN>\n## `commit`", "Commit dirty records to the server. This method is automatically\n called when the `auto_commit` option is set to `True` (default).\n It can be useful to set the former option to `False` to get better\n performance by reducing the number of RPC requests generated.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logout API. 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 logout API. 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 ...
Log out the user. >>> odoo.logout() True *Python 2:* :return: `True` if the operation succeed, `False` if no user was logged :raise: :class:`odoorpc.error.RPCError` :raise: `urllib2.URLError` (connection error) *Python 3:* :return: `True` if the opera...
"Log out the user.\n\n >>> odoo.logout()\n True\n\n *Python 2:*\n\n :return: `True` if the operation succeed, `False` if no user was logged\n :raise: :class:`odoorpc.error.RPCError`\n :raise: `urllib2.URLError` (connection error)\n\n *Python 3:*\n\n :return: `True...
264
false
OCA/odoorpc
logout
3,121
LDU_FT/proycon/pynlpl/walk
LDU_FT
[ "<BEGIN>\n## `auc`", "Compute Area Under the Curve (AUC) using the trapezoidal rule", " This is a general fuction, given points on a curve. For computing the area\n under the ROC-curve, see :func:`auc_score`.", " Parameters\n ----------\n x : array, shape = [n]\n x coordinates.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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...
Depth-first search, walking through trie, returning all encounterd nodes (by default only leaves)
"Depth-first search, walking through trie, returning all encounterd nodes (by default only leaves)"
533
false
proycon/pynlpl
walk
3,122
LDU_FT/XML-Security/signxml/verify_x509_cert_chain
LDU_FT
[ "<BEGIN>\n## `bytes_to_long`", "bytes_to_long(string) : long\n Convert a byte string to a long integer.", " This is (essentially) the inverse of long_to_bytes().\n<END>", "<BEGIN>\n## `long_to_bytes`", "long_to_bytes(n:long, blocksize:int) : string\n Convert a long integer to a byte string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_x509_cert_chain 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 verify_x509_cert_chain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Look at certs in the cert chain and add them to the store one by one. Return the cert at the end of the chain. That is the cert to be used by the caller for verifying. From https://www.w3.org/TR/xmldsig-core2/#sec-X509Data: "All certificates appearing in an X509Data element must relate to the validation key...
"Look at certs in the cert chain and add them to the store one by one.\n Return the cert at the end of the chain. That is the cert to be used by the caller for verifying.\n From https://www.w3.org/TR/xmldsig-core2/#sec-X509Data:\n \"All certificates appearing in an X509Data element must relate to the validatio...
36
false
XML-Security/signxml
verify_x509_cert_chain
3,123
LDU_FT/TissueMAPS/TmClient/resubmit_workflow
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 resubmit_workflow API. 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 resubmit_workflow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Resubmits the workflow. Parameters ---------- stage_name: str, optional name of the stage at which workflow should be resubmitted (when omitted workflow will be restarted from the beginning) description: dict, optional workflow description Se...
"Resubmits the workflow.\n\n Parameters\n ----------\n stage_name: str, optional\n name of the stage at which workflow should be resubmitted\n (when omitted workflow will be restarted from the beginning)\n description: dict, optional\n workflow description\n\...
203
false
TissueMAPS/TmClient
resubmit_workflow
3,124
LDU_FT/fishtown-analytics/dbt/move
LDU_FT
[ "<BEGIN>\n## `patch`", "Given a ParsedNodePatch, add the new information to the node.\n<END>", "<BEGIN>\n## `build_edges`", "Build the forward and backward edges on the given list of ParsedNodes\n and return them as two separate dictionaries, each mapping unique IDs to\n lists of edges.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API. 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 move API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
A re-implementation of shutil.move that properly removes the source directory on windows when it has read-only files in it and the move is between two drives. This is almost identical to the real shutil.move, except it uses our rmtree and skips handling non-windows OSes since the existing one works ok ...
"A re-implementation of shutil.move that properly removes the source\n directory on windows when it has read-only files in it and the move is\n between two drives.\n\n This is almost identical to the real shutil.move, except it uses our rmtree\n and skips handling non-windows OSes since the existing one wor...
419
false
fishtown-analytics/dbt
move
3,125
LDU_FT/evansde77/dockerstache/run
LDU_FT
[ "<BEGIN>\n## `run`", "_run_", " Run the dockerstache process to render templates\n based on the options provided", " If extend_context is passed as options it will be used to\n extend the context with the contents of the dictionary provided\n via context.update(extend_context)\n<END>", "<BEGI...
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...
_run_ Run the dockerstache process to render templates based on the options provided If extend_context is passed as options it will be used to extend the context with the contents of the dictionary provided via context.update(extend_context)
"_run_\n\n Run the dockerstache process to render templates\n based on the options provided\n\n If extend_context is passed as options it will be used to\n extend the context with the contents of the dictionary provided\n via context.update(extend_context)"
45
false
evansde77/dockerstache
run
3,126
LDU_FT/Fahreeve/aiovk/_process_auth_form
LDU_FT
[ "<BEGIN>\n## `enter_captcha`", "Override this method for processing captcha.", " :param url: link to captcha image\n :param sid: captcha id. I do not know why pass here but may be useful\n :return captcha value\n<END>", "<BEGIN>\n## `_get_auth_page`", "Get authorization mobile page with...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_auth_form API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_auth_form API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Parsing data from authorization page and filling the form and submitting the form :param html: html page :return: url and html from redirected page
"Parsing data from authorization page and filling the form and submitting the form\n\n :param html: html page\n :return: url and html from redirected page"
17
false
Fahreeve/aiovk
_process_auth_form
3,127
LDU_FT/mpapi/lazylights/_spawn
LDU_FT
[ "<BEGIN>\n## `parse_packet`", "Parses a Lifx data packet (as a bytestring), returning into a Header object\n for the fields that are common to all data packets, and a bytestring of\n payload data for the type-specific fields (suitable for passing to\n `parse_payload`).\n<END>", "<BEGIN>\n## `parse_payl...
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 ...
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 ...
Calls `func(*args, **kwargs)` in a daemon thread, and returns the (started) Thread object.
"Calls `func(*args, **kwargs)` in a daemon thread, and returns the (started)\n Thread object."
63
false
mpapi/lazylights
_spawn
3,128
LDU_FT/splitkeycoffee/pyhottop/set_fan
LDU_FT
[ "<BEGIN>\n## `_generate_config`", "Generate a configuration that can be sent to the Hottop roaster.", " Configuration settings need to be represented inside of a byte array\n that is then written to the serial interface. Much of the configuration\n is static, but control settings are also i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_fan API. 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 set_fan API. 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...
Set the fan config. :param fan: Value to set the fan :type fan: int [0-10] :returns: None :raises: InvalidInput
"Set the fan config.\n\n :param fan: Value to set the fan\n :type fan: int [0-10]\n :returns: None\n :raises: InvalidInput"
89
false
splitkeycoffee/pyhottop
set_fan
3,129
LDU_FT/andy-z/ged4py/gedcom_lines
LDU_FT
[ "<BEGIN>\n## `guess_codec`", "Look at file contents and guess its correct encoding.", " File must be open in binary mode and positioned at offset 0. If BOM\n record is present then it is assumed to be UTF-8 or UTF-16 encoded\n file. GEDCOM header is searched for CHAR record and encoding name\n is ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gedcom_lines API. 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 gedcom_lines API. 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...
Generator method for *gedcom lines*. GEDCOM line grammar is defined in Chapter 1 of GEDCOM standard, it consists of the level number, optional reference ID, tag name, and optional value separated by spaces. Chaper 1 is pure grammar level, it does not assign any semantics to tags or leve...
"Generator method for *gedcom lines*.\n\n GEDCOM line grammar is defined in Chapter 1 of GEDCOM standard, it\n consists of the level number, optional reference ID, tag name, and\n optional value separated by spaces. Chaper 1 is pure grammar level,\n it does not assign any semantics to tags o...
101
false
andy-z/ged4py
gedcom_lines
3,130
LDU_FT/jasonrbriggs/stomp.py/merge_headers
LDU_FT
[ "<BEGIN>\n## `attempt_connection`", "Establish a multicast connection - uses 2 sockets (one for sending, the other for receiving)\n<END>", "<BEGIN>\n## `process_frame`", ":param Frame f: Frame object\n :param bytes frame_str: Raw frame content\n<END>", "<BEGIN>\n## `connect`", ":param str username:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_headers API. 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 merge_headers API. 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...
Helper function for combining multiple header maps into one. :param list(dict) header_map_list: list of maps :rtype: dict
"Helper function for combining multiple header maps into one.\n\n :param list(dict) header_map_list: list of maps\n\n :rtype: dict"
154
false
jasonrbriggs/stomp.py
merge_headers
3,131
LDU_FT/playpauseandstop/rororo/defaults
LDU_FT
[ "<BEGIN>\n## `str_to_timedelta`", "Convert string value to timedelta instance according to the given format.", " If format not set function tries to load timedelta using default\n ``TIMEDELTA_FORMAT`` and then both of magic \"full\" formats.", " You should also specify list of formats and function tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the defaults API. 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 defaults API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
r"""Override current dict with defaults values. :param current: Current dict. :param \*args: Sequence with default data dicts.
"r\"\"\"Override current dict with defaults values.\n\n :param current: Current dict.\n :param \\*args: Sequence with default data dicts."
128
false
playpauseandstop/rororo
defaults
3,132
LDU_FT/Robpol86/sphinxcontrib-versioning/build
LDU_FT
[ "<BEGIN>\n## `setup_logging`", "Configure console logging. Info and below go to stdout, others go to stderr.", " :param int verbose: Verbosity level. > 0 print debug statements. > 1 passed to sphinx-build.\n :param bool colors: Print color text in non-verbose mode.\n :param str name: Which logger name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. 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 build API. 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...
Fetch branches/tags and build all locally. Doesn't push anything to remote. Just fetch all remote branches and tags, export them to a temporary directory, run sphinx-build on each one, and then store all built documentation in DESTINATION. REL_SOURCE is the path to the docs directory relative to the git r...
"Fetch branches/tags and build all locally.\n\n Doesn't push anything to remote. Just fetch all remote branches and tags, export them to a temporary directory, run\n sphinx-build on each one, and then store all built documentation in DESTINATION.\n\n REL_SOURCE is the path to the docs directory relative to the...
172
false
Robpol86/sphinxcontrib-versioning
build
3,133
LDU_FT/GMadorell/abris/prepare
LDU_FT
[ "<BEGIN>\n## `prepare_csv_to_dataframe`", "Parses the given data file following the data model of the given configuration.\n @return: pandas DataFrame\n<END>", "<BEGIN>\n## `split_dataframe`", "@return training, cv, test\n (as pandas dataframes)", " @param df: pandas dataframe\n @param t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Takes the already cleaned dataframe, splits it into train and test and returns the train and test as numpy arrays. If the problem is supervised, the target column will be that last one of the returned arrays.
"Takes the already cleaned dataframe, splits it into train and test\n and returns the train and test as numpy arrays.\n If the problem is supervised, the target column will be that last one\n of the returned arrays."
15
false
GMadorell/abris
prepare
3,134
LDU_FT/reingart/pyafipws/ConsultarGradoEntregadoXTipoGrano
LDU_FT
[ "<BEGIN>\n## `__analizar_errores`", "Comprueba y extrae errores si existen en la respuesta XML\n<END>", "<BEGIN>\n## `__analizar_controles`", "Comprueba y extrae controles si existen en la respuesta XML\n<END>", "<BEGIN>\n## `Dummy`", "Obtener el estado de los servidores de la AFIP\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ConsultarGradoEntregadoXTipoGrano 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 ConsultarGradoEntregadoXTipoGrano API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Consulta de Grado y Valor según Grano Entregado.
"Consulta de Grado y Valor según Grano Entregado."
334
false
reingart/pyafipws
ConsultarGradoEntregadoXTipoGrano
3,135
LDU_FT/oblalex/verboselib/popen_wrapper
LDU_FT
[ "<BEGIN>\n## `execute`", "Adapted `compilemessages <http://bit.ly/1r3glSu>`_ command from Django.\n<END>", "<BEGIN>\n## `native_path`", "Always return a native path, that is unicode on Python 3 and bytestring on\n Python 2.", " Taken `from Django <http://bit.ly/1r3gogZ>`_.\n<END>", "<BEGIN>\n## `fin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the popen_wrapper API. 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 popen_wrapper API. 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...
Friendly wrapper around Popen. Returns stdout output, stderr output and OS status code.
"Friendly wrapper around Popen.\n\n Returns stdout output, stderr output and OS status code."
29
false
oblalex/verboselib
popen_wrapper
3,136
LDU_FT/SavinaRoja/PyUserInput/run
LDU_FT
[ "<BEGIN>\n## `display_manager`", "Traps *X* errors and raises an :class:``X11Error`` at the end if any\n error occurred.", " This handler also ensures that the :class:`Xlib.display.Display` being\n managed is sync'd.", " :param Xlib.display.Display display: The *X* display.", " :return: the d...
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...
Begin listening for keyboard input events.
"Begin listening for keyboard input events."
56
false
SavinaRoja/PyUserInput
run
3,137
LDU_FT/nchopin/particles/sample
LDU_FT
[ "<BEGIN>\n## `all_distinct`", "Returns the list [l[i] for i in idx] \n When needed, objects l[i] are replaced by a copy, to make sure that\n the elements of the list are all distinct", " Parameters\n ---------\n l: iterable\n idx: iterable that generates ints (e.g. ndarray of ints)", " Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample API. 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 sample API. 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 ...
Sample N trajectories from the posterior. Note ---- Performs the forward step in case it has not been performed.
"Sample N trajectories from the posterior. \n \n Note\n ----\n Performs the forward step in case it has not been performed."
249
false
nchopin/particles
sample
3,138
LDU_FT/vnmabus/dcor/_double_centered_imp
LDU_FT
[ "<BEGIN>\n## `_float_copy_to_out`", "Copy origin to out and return it.", " If ``out`` is None, a new copy (casted to floating point) is used. If\n ``out`` and ``origin`` are the same, we simply return it. Otherwise we\n copy the values.\n<END>", "<BEGIN>\n## `_double_centered_imp`", "Real implement...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _double_centered_imp 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 _double_centered_imp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Real implementation of :func:`double_centered`. This function is used to make parameter ``out`` keyword-only in Python 2.
"Real implementation of :func:`double_centered`.\n\n This function is used to make parameter ``out`` keyword-only in\n Python 2."
201
false
vnmabus/dcor
_double_centered_imp
3,139
LDU_FT/snare/voltron/valid_api_plugin
LDU_FT
[ "<BEGIN>\n## `cancel_queue`", "Cancel all requests in the queue so we can exit.\n<END>", "<BEGIN>\n## `dispatch_queue`", "Dispatch any queued requests.", " Called by the debugger when it stops.\n<END>", "<BEGIN>\n## `send_request`", "Send a request to the server.", " `request` is an APIR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid_api_plugin API. 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 valid_api_plugin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Validate an API plugin, ensuring it is an API plugin and has the necessary fields present. `plugin` is a subclass of scruffy's Plugin class.
"Validate an API plugin, ensuring it is an API plugin and has the\n necessary fields present.\n\n `plugin` is a subclass of scruffy's Plugin class."
80
false
snare/voltron
valid_api_plugin
3,140
LDU_FT/mikeywaites/flask-arrested/get_response_handler_params
LDU_FT
[ "<BEGIN>\n## `process`", "Process the provided data and invoke :meth:`Handler.handle` method for this\n Handler class.", " :params data: The data being processed.\n :returns: self\n :rtype: :class:`Handler`", " .. code-block:: python", " def post(self, *args, **...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_response_handler_params 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_response_handler_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Return a config object that will be used to configure the KimResponseHandler :returns: a dictionary of config options :rtype: dict
"Return a config object that will be used to configure the KimResponseHandler\n\n :returns: a dictionary of config options\n :rtype: dict"
99
false
mikeywaites/flask-arrested
get_response_handler_params
3,141
LDU_FT/trevisanj/f311/load_filename
LDU_FT
[ "<BEGIN>\n## `save_as`", "Dumps object contents into file on disk.", " Args:\n filename (optional): defaults to self.filename. If passed, self.filename\n will be updated to filename.\n<END>", "<BEGIN>\n## `load`", "Loads file and registers filename as attribute.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_filename API. 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...
Loads file given filename Args: filename: index: tab index to load file into. If not passed, loads into current tab
"Loads file given filename\r\n\r\n Args:\r\n filename:\r\n index: tab index to load file into. If not passed, loads into current tab"
204
false
trevisanj/f311
load_filename
3,142
LDU_FT/aiortc/aiortc/_send_rtcp_pli
LDU_FT
[ "<BEGIN>\n## `allocate_mid`", "Allocate a MID which has not been used yet.\n<END>", "<BEGIN>\n## `addIceCandidate`", "Add a new :class:`RTCIceCandidate` received from the remote peer.", " The specified candidate must have a value for either `sdpMid` or `sdpMLineIndex`.\n<END>", "<BEGIN>\n## `addTra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_rtcp_pli API. 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 _send_rtcp_pli API. 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...
Send an RTCP packet to report picture loss.
"Send an RTCP packet to report picture loss."
126
false
aiortc/aiortc
_send_rtcp_pli
3,143
LDU_FT/BD2KGenomics/toil-scripts/move_to_output_dir
LDU_FT
[ "<BEGIN>\n## `kmer_dag`", "Optionally launches a Spark cluster and then runs ADAM to count k-mers on an\n input file.", " :param job: Toil job\n :param input_file: URL/path to input file to count k-mers on\n :param output_path: URL/path to save k-mer counts at\n :param kmer_length: The length of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_to_output_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_to_output_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Moves files from work_dir to output_dir Input1: Working directory Input2: Output directory Input3: UUID to be preprended onto file name Input4: list of file names to be moved from working dir to output dir
"Moves files from work_dir to output_dir\n\n Input1: Working directory\n Input2: Output directory\n Input3: UUID to be preprended onto file name\n Input4: list of file names to be moved from working dir to output dir"
278
false
BD2KGenomics/toil-scripts
move_to_output_dir
3,144
LDU_FT/Oneiroe/PySimpleAutomata/dfa_word_acceptance
LDU_FT
[ "<BEGIN>\n## `dfa_word_acceptance`", "Checks if a given **word** is accepted by a DFA,\n returning True/false.", " The word w is accepted by a DFA if DFA has an accepting run\n on w. Since A is deterministic,\n :math:`w ∈ L(A)` if and only if :math:`ρ(s_0 , w) ∈ F` .", " :param dict dfa: input ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dfa_word_acceptance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dfa_word_acceptance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Checks if a given **word** is accepted by a DFA, returning True/false. The word w is accepted by a DFA if DFA has an accepting run on w. Since A is deterministic, :math:`w ∈ L(A)` if and only if :math:`ρ(s_0 , w) ∈ F` . :param dict dfa: input DFA; :param list word: list of actions ∈ dfa['alpha...
"Checks if a given **word** is accepted by a DFA,\n returning True/false.\n\n The word w is accepted by a DFA if DFA has an accepting run\n on w. Since A is deterministic,\n :math:`w ∈ L(A)` if and only if :math:`ρ(s_0 , w) ∈ F` .\n\n :param dict dfa: input DFA;\n :param list word: list of actions ∈ d...
208
false
Oneiroe/PySimpleAutomata
dfa_word_acceptance
3,145
LDU_FT/fudge-py/fudge/verify
LDU_FT
[ "<BEGIN>\n## `fmt_val`", "Format a value for inclusion in an \n informative text string.\n<END>", "<BEGIN>\n## `fmt_dict_vals`", "Returns list of key=val pairs formatted\n for inclusion in an informative text string.\n<END>", "<BEGIN>\n## `with_patched_object`", "Decorator that patches an object bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Ensure all expected calls were called, raise AssertionError otherwise. You do not need to use this directly. Use fudge.verify()
"Ensure all expected calls were called,\n raise AssertionError otherwise.\n\n You do not need to use this directly. Use fudge.verify()"
155
false
fudge-py/fudge
verify
3,146
LDU_FT/etal/biofrills/chisqprob
LDU_FT
[ "<BEGIN>\n## `read_logodata`", "Get weblogo data for a sequence alignment.", " Returns a list of tuples: (posn, letter_counts, entropy, weight)\n<END>", "<BEGIN>\n## `aln2logodata`", "Get weblogo data for an alignment object.", " Returns a list of tuples: (posn, letter_counts, entropy, weight)\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chisqprob API. 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 chisqprob API. 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...
Probability value (1-tail) for the Chi^2 probability distribution. Broadcasting rules apply. Parameters ---------- x : array_like or float > 0 df : array_like or float, probably int >= 1 Returns ------- chisqprob : ndarray The area from `chisq` to infinity under the Chi^2 pro...
"Probability value (1-tail) for the Chi^2 probability distribution.\n\n Broadcasting rules apply.\n\n Parameters\n ----------\n x : array_like or float > 0\n\n df : array_like or float, probably int >= 1\n\n Returns\n -------\n chisqprob : ndarray\n The area from `chisq` to infinity under...
81
false
etal/biofrills
chisqprob
3,147
LDU_FT/JoeVirtual/KonFoo/view_fields
LDU_FT
[ "<BEGIN>\n## `to_json`", "Returns the selected field *attributes* for each :class:`Field` *nested*\n in the `Container` as a JSON formatted string.", " The *attributes* of each :class:`Field` for containers *nested* in the\n `Container` are viewed as well (chained method call).", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the view_fields API. 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 view_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns an :class:`ordered dictionary <collections.OrderedDict>` which contains the ``{'member name': field attribute}`` or the ``{'member name': dict(field attributes)}`` pairs for each :class:`Field` *nested* in the `Structure`. The *attributes* of each :class:`Field` for containers *...
"Returns an :class:`ordered dictionary <collections.OrderedDict>` which\n contains the ``{'member name': field attribute}`` or the\n ``{'member name': dict(field attributes)}`` pairs for each :class:`Field`\n *nested* in the `Structure`.\n\n The *attributes* of each :class:`Field` for contai...
233
false
JoeVirtual/KonFoo
view_fields
3,148
LDU_FT/erikrose/nose-progressive/_unicode_decode_extracted_tb
LDU_FT
[ "<BEGIN>\n## `format_traceback`", "Return an iterable of formatted Unicode traceback frames.", " Also include a pseudo-frame at the end representing the exception itself.", " Format things more compactly than the stock formatter, and make every\n frame an editor shortcut.\n<END>", "<BEGIN>\n## `ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unicode_decode_extracted_tb 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 _unicode_decode_extracted_tb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Return a traceback with the string elements translated into Unicode.
"Return a traceback with the string elements translated into Unicode."
65
false
erikrose/nose-progressive
_unicode_decode_extracted_tb
3,149
LDU_FT/robinandeer/puzzle/_add_cadd_score
LDU_FT
[ "<BEGIN>\n## `individual_dict`", "Return a dict with ind_id as key and Individual as values.\n<END>", "<BEGIN>\n## `_get_genes`", "Add the genes for a variant", " Get the hgnc symbols from all transcripts and add them\n to the variant.", " Args:\n variant (dict): A variant ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_cadd_score API. 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 _add_cadd_score API. 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...
Add the cadd score to the variant Args: variant_obj (puzzle.models.Variant) info_dict (dict): A info dictionary
"Add the cadd score to the variant\n \n Args:\n variant_obj (puzzle.models.Variant)\n info_dict (dict): A info dictionary"
306
false
robinandeer/puzzle
_add_cadd_score
3,150
LDU_FT/klmitch/appathy/pre_process
LDU_FT
[ "<BEGIN>\n## `_translators`", "Decorator which associates a set of translators (serializers or\n deserializers) with a given method. The `attr` parameter\n identifies which attribute is being updated.\n<END>", "<BEGIN>\n## `register_types`", "Register a short name for one or more content types.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Pre-process the extensions for the action. If any pre-processing extension yields a value which tests as True, extension pre-processing aborts and that value is returned; otherwise, None is returned. Return value is always a tuple, with the second element of the tuple being a list to f...
"Pre-process the extensions for the action. If any\n pre-processing extension yields a value which tests as True,\n extension pre-processing aborts and that value is returned;\n otherwise, None is returned. Return value is always a tuple,\n with the second element of the tuple being a list...
48
false
klmitch/appathy
pre_process
3,151
LDU_FT/prometheus/client_python/instance_ip_grouping_key
LDU_FT
[ "<BEGIN>\n## `add_sample`", "Add a sample to the metric.", " Internal-only, do not use.\n<END>", "<BEGIN>\n## `add_metric`", "Add a metric to the metric family.", " Args:\n labels: A list of label values\n value: The value of the metric\n created: Optional unix tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instance_ip_grouping_key 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 instance_ip_grouping_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Grouping key with instance set to the IP Address of this host.
"Grouping key with instance set to the IP Address of this host."
100
false
prometheus/client_python
instance_ip_grouping_key
3,152
LDU_FT/ARMmbed/icetea/assert_dut_trace_contains
LDU_FT
[ "<BEGIN>\n## `init_process_dut`", "Initialize process type Dut as DutProcess or DutConsole.\n<END>", "<BEGIN>\n## `allocate`", "Allocates resources from available local devices.", " :param dut_configuration_list: List of ResourceRequirements objects\n :param args: Not used\n :return: Al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_dut_trace_contains 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 assert_dut_trace_contains API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Wrapper to provice access to bench for assertDutTraceContains. :param k: index of dut :param message: Message that should be in traces :return: Nothing
"Wrapper to provice access to bench for assertDutTraceContains.\n :param k: index of dut\n :param message: Message that should be in traces\n :return: Nothing"
663
false
ARMmbed/icetea
assert_dut_trace_contains
3,153
LDU_FT/sliem/barrett/filechunk
LDU_FT
[ "<BEGIN>\n## `main`", "We here demostrate the basic functionality of barrett. We use a global scan\n of scalar dark matter as an example. The details aren't really important.\n<END>", "<BEGIN>\n## `pairplot`", "Plot a matrix of the specified variables with all the 2D pdfs and 1D pdfs.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filechunk API. 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 filechunk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Iterator that allow for piecemeal processing of a file.
"Iterator that allow for piecemeal processing of a file."
18
false
sliem/barrett
filechunk
3,154
LDU_FT/dr-leo/pandaSDMX/load_agency_profile
LDU_FT
[ "<BEGIN>\n## `namedtuple`", "Returns a new subclass of tuple with named fields.\n This is a patched version of collections.namedtuple from the stdlib.\n Unlike the latter, it accepts non-identifier strings as field names.\n All values are accessible through dict syntax. Fields whose names are\n identi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_agency_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_agency_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Classmethod loading metadata on a data provider. ``source`` must be a json-formated string or file-like object describing one or more data providers (URL of the SDMX web API, resource types etc. The dict ``Request._agencies`` is updated with the metadata from the source. Returns...
"Classmethod loading metadata on a data provider. ``source`` must\n be a json-formated string or file-like object describing one or more data providers\n (URL of the SDMX web API, resource types etc.\n The dict ``Request._agencies`` is updated with the metadata from the\n source.\n\n ...
86
false
dr-leo/pandaSDMX
load_agency_profile
3,155
LDU_FT/ffalcinelli/pydivert/tcp
LDU_FT
[ "<BEGIN>\n## `check_filter`", "Checks if the given packet filter string is valid with respect to the filter language.", " The remapped function is WinDivertHelperCheckFilter::", " BOOL WinDivertHelperCheckFilter(\n __in const char *filter,\n __in WINDIVERT_LAYER...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tcp API. 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 tcp API. 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...
- An TCPHeader instance, if the packet is valid TCP. - None, otherwise.
"- An TCPHeader instance, if the packet is valid TCP.\n - None, otherwise."
67
false
ffalcinelli/pydivert
tcp
3,156
LDU_FT/OpenHydrology/floodestimation/_solve_location_param
LDU_FT
[ "<BEGIN>\n## `valid_flows_array`", "Return array of valid flows (i.e. excluding rejected years etc)", " :param catchment: gauged catchment with amax_records set\n :type catchment: :class:`floodestimation.entities.Catchment`\n :return: 1D array of flow values\n :rtype: :class:`numpy.ndarray`\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _solve_location_param 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 _solve_location_param 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're lazy here and simply iterate to find the location parameter such that growth_curve(0.5)=1.
"We're lazy here and simply iterate to find the location parameter such that growth_curve(0.5)=1."
194
false
OpenHydrology/floodestimation
_solve_location_param
3,157
LDU_FT/Pringley/spyglass/get
LDU_FT
[ "<BEGIN>\n## `get`", "Query a web URL.", " Return a Response object with the following attributes:\n - text: the full text of the web page\n - soup: a BeautifulSoup object representing the web page\n<END>", "<BEGIN>\n## `top`", "Find the most popular torrents.", " Return an array of Torren...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Query a web URL. Return a Response object with the following attributes: - text: the full text of the web page - soup: a BeautifulSoup object representing the web page
"Query a web URL.\n\n Return a Response object with the following attributes:\n - text: the full text of the web page\n - soup: a BeautifulSoup object representing the web page"
19
false
Pringley/spyglass
get
3,158
LDU_FT/tjomasc/snekbol/_as_rdf_xml
LDU_FT
[ "<BEGIN>\n## `add_component_definition`", "Add a ComponentDefinition to the document\n<END>", "<BEGIN>\n## `assemble_component`", "Assemble a list of already defined components into a structual hirearchy\n<END>", "<BEGIN>\n## `get_components`", "Get components from a component definition in order\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _as_rdf_xml API. 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 _as_rdf_xml API. 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...
Return identity details for the element as XML nodes
"Return identity details for the element as XML nodes"
30
false
tjomasc/snekbol
_as_rdf_xml
3,159
LDU_FT/calocan/rescape-python-helpers/key_string_to_lens_path
LDU_FT
[ "<BEGIN>\n## `prop`", "Implementation of prop (get_item) that also supports object attributes\n :param key:\n :param dct_or_obj:\n :return:\n<END>", "<BEGIN>\n## `all_pass_dict`", "Returns true if all dct values pass f\n :param f: binary lambda predicate\n :param dct:\n :return: True or fals...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_string_to_lens_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_string_to_lens_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Converts a key string like 'foo.bar.0.wopper' to ['foo', 'bar', 0, 'wopper'] :param {String} keyString The dot-separated key string :return {[String]} The lens array containing string or integers
"Converts a key string like 'foo.bar.0.wopper' to ['foo', 'bar', 0, 'wopper']\n :param {String} keyString The dot-separated key string\n :return {[String]} The lens array containing string or integers"
54
false
calocan/rescape-python-helpers
key_string_to_lens_path
3,160
LDU_FT/panzarino/mlbgame/day
LDU_FT
[ "<BEGIN>\n## `setobjattr`", "Sets an object attribute with the correct data type.\n<END>", "<BEGIN>\n## `get_scoreboard`", "Return the game file for a certain day matching certain criteria.\n<END>", "<BEGIN>\n## `get_box_score`", "Return the box score file of a game with matching id.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the day API. 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 day API. 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...
Return a list of games for a certain day. If the home and away team are the same, it will return the game(s) for that team.
"Return a list of games for a certain day.\n\n If the home and away team are the same,\n it will return the game(s) for that team."
66
false
panzarino/mlbgame
day
3,161
LDU_FT/pmacosta/pexdoc/_get_num_contracts
LDU_FT
[ "<BEGIN>\n## `func`", "r\"\"\"\n Print your name.", " :param name: Name to print\n :type name: string", " .. [[[cog cog.out(exobj.get_sphinx_autodoc(width=69))]]]\n .. [[[end]]]\n<END>", "<BEGIN>\n## `get_function_args`", "Return tuple of the function argument names in the order of the fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_num_contracts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_num_contracts 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...
Return the number of simple/default contracts. Simple contracts are the ones which raise a RuntimeError with message 'Argument `*[argument_name]*` is not valid'
"Return the number of simple/default contracts.\n\n Simple contracts are the ones which raise a RuntimeError with message\n 'Argument `*[argument_name]*` is not valid'"
220
false
pmacosta/pexdoc
_get_num_contracts
3,162
LDU_FT/dossier/dossier.web/nub
LDU_FT
[ "<BEGIN>\n## `as_multi_dict`", "Coerce a dictionary to a bottle.MultiDict\n<END>", "<BEGIN>\n## `set_query_params`", "Set the query parameters.", " The query parameters should be a dictionary mapping keys to\n strings or lists of strings.", " :param query_params: query parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nub API. 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 nub API. 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...
Dedups an iterable in arbitrary order. Uses memory proportional to the number of unique items in ``it``.
"Dedups an iterable in arbitrary order.\n\n Uses memory proportional to the number of unique items in ``it``."
223
false
dossier/dossier.web
nub
3,163
LDU_FT/millar/provstore-api/created_at
LDU_FT
[ "<BEGIN>\n## `create`", "Create a document on ProvStore.", " :param prov_document: The document to be stored\n :param prov_format: The format of the document provided\n :param bool refresh: Whether or not to load back the document after saving\n :param dict props: Properties for this...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the created_at API. 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 created_at API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
:return: When the document was created :rtype: :py:class:`datetime.datetime`
":return: When the document was created\n :rtype: :py:class:`datetime.datetime`"
34
false
millar/provstore-api
created_at
3,164
LDU_FT/veltzer/pypitools/main
LDU_FT
[ "<BEGIN>\n## `main`", "Install a package from the local folder\n :return:\n<END>", "<BEGIN>\n## `main`", "upload a package to pypi or gemfury\n :return:\n<END>", "<BEGIN>\n## `array_indented`", "return an array indented according to indent level\n :param level:\n :param l:\n :param quote_ch...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Install a package from the local folder :return:
"Install a package from the local folder\n :return:"
24
false
veltzer/pypitools
main
3,165
LDU_FT/liip/taxi/add_date
LDU_FT
[ "<BEGIN>\n## `round_to_quarter`", "Return the duration between `start_time` and `end_time` :class:`datetime.time` objects, rounded to 15 minutes.\n<END>", "<BEGIN>\n## `_timesheets_callback`", "Call a method on all the timesheets, aggregate the return values in a\n list and return it.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_date API. 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_date API. 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 the given date to the textual representation.
"Add the given date to the textual representation."
131
false
liip/taxi
add_date
3,166
LDU_FT/Frzk/Ellis/add
LDU_FT
[ "<BEGIN>\n## `_prepare`", "Updates the function arguments and creates a :class:`asyncio.Task`\n from the Action.", " *kwargs* is an optional dictionnary of additional arguments to pass to\n the Action function.", " .. warning::\n *kwargs* will overwrite existing keys in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Adds the given IP address to the specified set. If timeout is specified, the IP will stay in the set for the given duration. Else it will stay in the set during the set default timeout. timeout must be given in seconds. The resulting command looks like this: ``nft add element...
"Adds the given IP address to the specified set.\n\n If timeout is specified, the IP will stay in the set for the given\n duration. Else it will stay in the set during the set default timeout.\n\n timeout must be given in seconds.\n\n The resulting command looks like this:\n\n ``nft a...
106
false
Frzk/Ellis
add
3,167
LDU_FT/Element-34/py.saunter/verify_is_not_instance
LDU_FT
[ "<BEGIN>\n## `get_random_user`", "Gets a random user from the provider", " :returns: Dictionary\n<END>", "<BEGIN>\n## `is_element_available`", "Synchronization method for making sure the element we're looking for is not only on the page,\n but also visible -- since Se will happily deal with th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_is_not_instance 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 verify_is_not_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Soft assert for whether the is not an instance of cls :params obj: the object instance :params cls: the class to compare against :params msg: (Optional) msg explaining the difference
"Soft assert for whether the is not an instance of cls\n\n :params obj: the object instance\n :params cls: the class to compare against\n :params msg: (Optional) msg explaining the difference"
81
false
Element-34/py.saunter
verify_is_not_instance
3,168
LDU_FT/MarcMeszaros/envitro/port
LDU_FT
[ "<BEGIN>\n## `_strtobool`", "Convert a string representation of truth to true (1) or false (0).", " True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values\n are 'n', 'no', 'f', 'false', 'off', '0' and ''. Raises ValueError if\n 'val' is anything else.\n<END>", "<BEGIN>\n## `_str_to_lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the port API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the port API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Get the port from the docker link alias or return the default. Args: alias_name: The docker link alias default: The default value if the link isn't available allow_none: If the return value can be `None` (i.e. optional) Examples: Assuming a Docker link was created with ``docker...
"Get the port from the docker link alias or return the default.\n\n Args:\n alias_name: The docker link alias\n default: The default value if the link isn't available\n allow_none: If the return value can be `None` (i.e. optional)\n\n Examples:\n Assuming a Docker link was created with...
58
false
MarcMeszaros/envitro
port
3,169
LDU_FT/note35/sinon/callCount
LDU_FT
[ "<BEGIN>\n## `__remove_args_first_item`", "# Todo: finding a better solution\n This is a dirty solution\n Because the first argument of inspectors' args will be itself\n For current implementation, it should be ignore\n<END>", "<BEGIN>\n## `lastCall`", "Return: SpyCall object for this spy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callCount API. 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 callCount API. 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...
Checking the inspector is called number times Args: SinonSpy, number
"Checking the inspector is called number times\n Args: SinonSpy, number"
162
false
note35/sinon
callCount
3,170
LDU_FT/amaas-fintech/amaas-core-sdk-python/positions_by_asset
LDU_FT
[ "<BEGIN>\n## `deactivate`", "Is is only possible to deactivate an asset manager if your client_id is also the client_id that was used\n to originally create the asset manager.", " :param asset_manager_id:\n :return:\n<END>", "<BEGIN>\n## `quote_datetime`", "Force the quote_datetime to a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the positions_by_asset 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 positions_by_asset 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...
A dictionary of Position objects keyed by asset_id. If an asset position exists in more than one book, they are combined into a single position.
"A dictionary of Position objects keyed by asset_id. If an asset\n position exists in more than one book, they are combined into a single\n position."
109
false
amaas-fintech/amaas-core-sdk-python
positions_by_asset
3,171
LDU_FT/welbornprod/colr/exception
LDU_FT
[ "<BEGIN>\n## `main`", "Main entry point, expects doctopt arg dict as argd.\n<END>", "<BEGIN>\n## `print_err`", "A wrapper for print() that uses stderr by default.\n<END>", "<BEGIN>\n## `walk_dir_animated`", "Walk a directory, printing status updates along the way.\n<END>", "<BEGIN>\n## `walk_dir_progres...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exception API. 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 exception API. 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...
Try retrieving the last subprocess exception. If set, the exception is returned. Otherwise None is returned.
"Try retrieving the last subprocess exception.\n If set, the exception is returned. Otherwise None is returned."
316
false
welbornprod/colr
exception
3,172