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/metagriffin/morph/pick
LDU_FT
[ "<BEGIN>\n## `isseq`", "Returns True if `obj` is a sequence-like object (but not a string or\n dict); i.e. a tuple, list, subclass thereof, or having an interface\n that supports iteration.\n<END>", "<BEGIN>\n## `isdict`", "Returns True if `obj` is a dict-like object (but not a string or\n list); i.e. a di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pick API. 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 pick API. 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...
Given a `source` dict or object, returns a new dict that contains a subset of keys (each key is a separate positional argument) and/or where each key is a string and has the specified `prefix`, specified as a keyword argument. Also accepts the optional keyword argument `dict` which must be a dict-like class tha...
"Given a `source` dict or object, returns a new dict that contains a\n subset of keys (each key is a separate positional argument) and/or\n where each key is a string and has the specified `prefix`, specified\n as a keyword argument. Also accepts the optional keyword argument\n `dict` which must be a dict-like clas...
23
false
metagriffin/morph
pick
6,573
LDU_FT/python-escpos/python-escpos/get_encoding_name
LDU_FT
[ "<BEGIN>\n## `get_profile`", "Get the profile by name; if no name is given, return the\n default profile.\n<END>", "<BEGIN>\n## `get_profile_class`", "For the given profile name, load the data from the external\n database, then generate dynamically a class.\n<END>", "<BEGIN>\n## `get_font`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_encoding_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_encoding_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Given an encoding provided by the user, will return a canonical encoding name; and also validate that the encoding is supported. TODO: Support encoding aliases: pc437 instead of cp437.
"Given an encoding provided by the user, will return a\n canonical encoding name; and also validate that the encoding\n is supported.\n\n TODO: Support encoding aliases: pc437 instead of cp437."
74
false
python-escpos/python-escpos
get_encoding_name
6,574
LDU_FT/sony/nnabla/_load_nnp
LDU_FT
[ "<BEGIN>\n## `convert`", "All functions are replaced with the same `new` function.", " Args:\n vroot (:obj:`Variable`): NNabla Variable\n entry_variables (:obj:`Variable`): Entry variable from which the conversion starts.\n<END>", "<BEGIN>\n## `convert`", "All functions are repl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_nnp API. 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 _load_nnp API. 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...
Args: rel_name: relative path to where donwloaded nnp is saved. rel_url: relative url path to where nnp is downloaded from.
"Args:\n rel_name: relative path to where donwloaded nnp is saved.\n rel_url: relative url path to where nnp is downloaded from."
870
false
sony/nnabla
_load_nnp
6,575
LDU_FT/mapnik/Cascadenik/isOpen
LDU_FT
[ "<BEGIN>\n## `xindexes`", "Generate list of possible indexes into a list of slots.", " Best way to think of this is as a number where each digit might have a different radix.\n E.g.: (10, 10, 10) would return 10 x 10 x 10 = 1000 responses from (0, 0, 0) to (9, 9, 9),\n (2, 2, 2, 2) would re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isOpen API. 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 isOpen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return true if this range has any room in it.
"Return true if this range has any room in it."
123
false
mapnik/Cascadenik
isOpen
6,576
LDU_FT/common-workflow-language/workflow-service/build_wes_request
LDU_FT
[ "<BEGIN>\n## `get_version`", "Determines the version of a .py, .wdl, or .cwl file.\n<END>", "<BEGIN>\n## `wf_info`", "Returns the version of the file and the file extension.", " Assumes that the file path is to the file directly ie, ends with a valid file extension.Supports checking local\n files as w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_wes_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_wes_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
:param str workflow_file: Path to cwl/wdl file. Can be http/https/file. :param json_path: Path to accompanying json file. :param attachments: Any other files needing to be uploaded to the server. :return: A list of tuples formatted to be sent in a post to the wes-server (Swagger API).
":param str workflow_file: Path to cwl/wdl file. Can be http/https/file.\n :param json_path: Path to accompanying json file.\n :param attachments: Any other files needing to be uploaded to the server.\n\n :return: A list of tuples formatted to be sent in a post to the wes-server (Swagger API)."
53
false
common-workflow-language/workflow-service
build_wes_request
6,577
LDU_FT/jenisys/parse_type/with_one_or_more
LDU_FT
[ "<BEGIN>\n## `build_type_dict`", "Builds type dictionary for user-defined type converters,\n used by :mod:`parse` module.\n This requires that each type converter has a \"name\" attribute.", " :param converters: List of type converters (parse_types)\n :return: Type converter dictionary\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_one_or_more API. 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 with_one_or_more API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Creates a type converter function for a list<T> with 1..N items by using the type converter for one item of T. :param converter: Type converter (function) for data type T. :param pattern: Regexp pattern for an item (=converter.pattern). :param listsep: Optional list separator between ...
"Creates a type converter function for a list<T> with 1..N items\n by using the type converter for one item of T.\n\n :param converter: Type converter (function) for data type T.\n :param pattern: Regexp pattern for an item (=converter.pattern).\n :param listsep: Optional list separator be...
115
false
jenisys/parse_type
with_one_or_more
6,578
LDU_FT/napalm-automation-community/napalm-panos/rollback
LDU_FT
[ "<BEGIN>\n## `_send_merge_commands`", "Netmiko is being used to push set commands.\n<END>", "<BEGIN>\n## `compare_config`", "Netmiko is being used to obtain config diffs because pan-python\n doesn't support the needed command.\n<END>", "<BEGIN>\n## `commit_config`", "Netmiko is being used to commit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rollback API. 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 rollback API. 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...
Netmiko is being used to commit the rollback configuration because it takes a better care of results compared to pan-python.
"Netmiko is being used to commit the rollback configuration because\n it takes a better care of results compared to pan-python."
10
false
napalm-automation-community/napalm-panos
rollback
6,579
LDU_FT/iLampard/x-utils/handle_exception
LDU_FT
[ "<BEGIN>\n## `load_data`", "Overwrite this for new source data structures\n<END>", "<BEGIN>\n## `handle_exception`", ":param logger: logging, a logging object\n :return: decorator, wraps exception loggers\n<END>", "<BEGIN>\n## `clock`", ":param logger: logging, a logging object\n :return: decorator,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_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 ...
:param logger: logging, a logging object :return: decorator, wraps exception loggers
":param logger: logging, a logging object\n :return: decorator, wraps exception loggers"
18
false
iLampard/x-utils
handle_exception
6,580
LDU_FT/LudovicRousseau/pyscard/connect
LDU_FT
[ "<BEGIN>\n## `translateprotocolmask`", "Translate CardConnection protocol mask into PCSC protocol mask.\n<END>", "<BEGIN>\n## `translateprotocolheader`", "Translate protocol into PCSC protocol header.\n<END>", "<BEGIN>\n## `connect`", "Connect to the card.", " If protocol is not specified, connec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Connect to the card. If protocol is not specified, connect with the default connection protocol. If mode is not specified, connect with SCARD_SHARE_SHARED.
"Connect to the card.\n\n If protocol is not specified, connect with the default\n connection protocol.\n\n If mode is not specified, connect with SCARD_SHARE_SHARED."
164
false
LudovicRousseau/pyscard
connect
6,581
LDU_FT/Datary/scrapbag/normalize_dict
LDU_FT
[ "<BEGIN>\n## `parse_spss_headerfile`", "Parse spss header file", " Arguments:\n path {str} -- path al fichero de cabecera.\n leyend_position -- posicion del la leyenda en el header.\n<END>", "<BEGIN>\n## `parse_spss_datafile`", "Parse spss data file", " Arguments:\n path {str} -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Given an dict, normalize all of their keys using normalize function.
"Given an dict, normalize all of their keys using normalize function."
119
false
Datary/scrapbag
normalize_dict
6,582
LDU_FT/buriburisuri/sugartensor/sg_mae
LDU_FT
[ "<BEGIN>\n## `constant`", "r\"\"\"Creates a tensor variable of which initial values are `value` and shape is `shape`.", " Args:\n name: The name of new variable.\n shape: A tuple/list of integers or an integer. \n If shape is an integer, it is converted to a list.\n value: A Python scal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sg_mae API. 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 sg_mae API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
r"""Returns absolute error between `tensor` and `target`. Args: tensor: A `Tensor`. opt: target: A `Tensor` with the same shape and dtype as `tensor`. name: A `string`. A name to display in the tensor board web UI. Returns: A `Tensor` of the same shape and dtype as ...
"r\"\"\"Returns absolute error between `tensor` and `target`.\n \n Args:\n tensor: A `Tensor`.\n opt:\n target: A `Tensor` with the same shape and dtype as `tensor`.\n name: A `string`. A name to display in the tensor board web UI.\n \n Returns:\n A `Tensor` of the same shape ...
399
false
buriburisuri/sugartensor
sg_mae
6,583
LDU_FT/LasLabs/python-five9/_name_search
LDU_FT
[ "<BEGIN>\n## `search`", "Search for a record on the remote and return the results.", " Args:\n five9 (five9.Five9): The authenticated Five9 remote.\n filters (dict): A dictionary of search parameters, keyed by the\n name of the field to search. This should conform to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _name_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _name_search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Helper for search methods that use name filters. Args: method (callable): The Five9 API method to call with the name filters. filters (dict): A dictionary of search parameters, keyed by the name of the field to search. This should conform to the ...
"Helper for search methods that use name filters.\n\n Args:\n method (callable): The Five9 API method to call with the name\n filters.\n filters (dict): A dictionary of search parameters, keyed by the\n name of the field to search. This should conform to the\n ...
74
false
LasLabs/python-five9
_name_search
6,584
LDU_FT/Kozea/pygal/setup
LDU_FT
[ "<BEGIN>\n## `erfinv`", "Approximation of the inverse error function\n https://en.wikipedia.org/wiki/Error_function\n #Approximation_with_elementary_functions\n<END>", "<BEGIN>\n## `confidence_interval_continuous`", "Continuous confidence interval from sample size and standard error\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API. 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 setup API. 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...
Set up the transient state prior rendering
"Set up the transient state prior rendering"
147
false
Kozea/pygal
setup
6,585
LDU_FT/ulf1/oxyba/clean_german_number
LDU_FT
[ "<BEGIN>\n## `clean_german_number`", "Convert a string with a German number into a Decimal", " Parameters\n ----------\n x : str, list, tuple, numpy.ndarray, pandas.DataFrame\n A string with a number with German formatting,\n or an array of these strings, e.g. list, ndarray, df.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_german_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_german_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Convert a string with a German number into a Decimal Parameters ---------- x : str, list, tuple, numpy.ndarray, pandas.DataFrame A string with a number with German formatting, or an array of these strings, e.g. list, ndarray, df. Returns ------- y : str, list, tuple, numpy.ndar...
"Convert a string with a German number into a Decimal\n\n Parameters\n ----------\n x : str, list, tuple, numpy.ndarray, pandas.DataFrame\n A string with a number with German formatting,\n or an array of these strings, e.g. list, ndarray, df.\n\n Returns\n -------\n y : str, list, tuple,...
218
false
ulf1/oxyba
clean_german_number
6,586
LDU_FT/Shoobx/xmldiff/diff_cleanupMerge
LDU_FT
[ "<BEGIN>\n## `diff_main`", "Find the differences between two texts. Simplifies the problem by\n stripping any common prefix or suffix off the texts before diffing.", " Args:\n text1: Old string to be diffed.\n text2: New string to be diffed.\n checklines: Optional speedup flag. If prese...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff_cleanupMerge API. 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 diff_cleanupMerge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Reorder and merge like edit sections. Merge equalities. Any edit section can move as long as it doesn't cross an equality. Args: diffs: Array of diff tuples.
"Reorder and merge like edit sections. Merge equalities.\n Any edit section can move as long as it doesn't cross an equality.\n\n Args:\n diffs: Array of diff tuples."
146
false
Shoobx/xmldiff
diff_cleanupMerge
6,587
LDU_FT/nabla-c0d3/nassl/write_early_data
LDU_FT
[ "<BEGIN>\n## `verify`", "Verify that the OCSP response is trusted.", " Args:\n verify_locations: The file path to a trust store containing pem-formatted certificates, to be used for\n validating the OCSP response.", " Raises OcspResponseNotTrustedError if the validation fai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_early_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_early_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 ...
Returns the number of (encrypted) bytes sent.
"Returns the number of (encrypted) bytes sent."
22
false
nabla-c0d3/nassl
write_early_data
6,588
LDU_FT/ColtonProvias/sqlalchemy-jsonapi/get_attr_desc
LDU_FT
[ "<BEGIN>\n## `user_error`", "Create and return a general user error response that is jsonapi compliant.", " Required args:\n status_code: The HTTP status code associated with the problem.\n title: A short summary of the problem.\n detail: An explanation specific to the occurence of the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attr_desc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attr_desc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Fetch the appropriate descriptor for the attribute. :param instance: Model instance :param attribute: Name of the attribute :param action: AttributeAction
"Fetch the appropriate descriptor for the attribute.\n\n :param instance: Model instance\n :param attribute: Name of the attribute\n :param action: AttributeAction"
95
false
ColtonProvias/sqlalchemy-jsonapi
get_attr_desc
6,589
LDU_FT/rkhleics/wagtailmodeladmin/get_menu_item
LDU_FT
[ "<BEGIN>\n## `process_request`", "Ignore unnecessary actions for static file requests, posts, or ajax\n requests. We're only interested in redirecting following a 'natural'\n request redirection to the `wagtailadmin_explore_root` or\n `wagtailadmin_explore` views.\n<END>", "<BEGIN>\n## `get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_menu_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_menu_item API. 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...
Utilised by Wagtail's 'register_menu_item' hook to create a menu for this group with a SubMenu linking to listing pages for any associated ModelAdmin instances
"Utilised by Wagtail's 'register_menu_item' hook to create a menu\n for this group with a SubMenu linking to listing pages for any\n associated ModelAdmin instances"
52
false
rkhleics/wagtailmodeladmin
get_menu_item
6,590
LDU_FT/lltk/lltk/enable
LDU_FT
[ "<BEGIN>\n## `pos`", "Tries to decide about the part of speech.\n<END>", "<BEGIN>\n## `articles`", "Tries to scrape the correct articles for singular and plural from uitmuntend.nl.\n<END>", "<BEGIN>\n## `plural`", "Tries to scrape the plural version from uitmuntend.nl.\n<END>", "<BEGIN>\n## `warning`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable API. 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 enable API. 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 ...
Enables a specific cache for the current session. Remember that is has to be registered.
"Enables a specific cache for the current session. Remember that is has to be registered."
80
false
lltk/lltk
enable
6,591
LDU_FT/lepture/python-livereload/watch
LDU_FT
[ "<BEGIN>\n## `on_message`", "Handshake with livereload.js", " 1. client send 'hello'\n 2. server reply 'hello'\n 3. client send 'info'\n<END>", "<BEGIN>\n## `get_content_modified_time`", "Returns the time that ``abspath`` was last modified.", " May be overridden in subclasses. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Add a task to watcher. :param path: a filepath or directory path or glob pattern :param func: the function to be executed when file changed :param delay: Delay sending the reload message. Use 'forever' to not send it. This is useful to compile sass files to ...
"Add a task to watcher.\n\n :param path: a filepath or directory path or glob pattern\n :param func: the function to be executed when file changed\n :param delay: Delay sending the reload message. Use 'forever' to\n not send it. This is useful to compile sass files to\n ...
28
false
lepture/python-livereload
watch
6,592
LDU_FT/tropo/tropo-webapi-python/ask
LDU_FT
[ "<BEGIN>\n## `HelloWorld`", "This is the traditional \"Hello, World\" function. The idiom is used throughout the API. We construct a Tropo object, and then flesh out that object by calling \"action\" functions (in this case, tropo.say). Then call tropo.Render, which translates the Tropo object into JSON format. F...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ask API. 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 ask API. 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...
Sends a prompt to the user and optionally waits for a response. Arguments: "choices" is a Choices object See https://www.tropo.com/docs/webapi/ask
"Sends a prompt to the user and optionally waits for a response.\n Arguments: \"choices\" is a Choices object\n See https://www.tropo.com/docs/webapi/ask"
42
false
tropo/tropo-webapi-python
ask
6,593
LDU_FT/lk-geimfari/mimesis/continent
LDU_FT
[ "<BEGIN>\n## `content_type`", "Get a random HTTP content type.", " :return: Content type.", " :Example:\n Content-Type: application/json\n<END>", "<BEGIN>\n## `ip_v4`", "Generate a random IPv4 address.", " :param with_port: Add port to IP.\n :return: Random IPv4 ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the continent API. 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 continent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get a random continent name or continent code. :param code: Return code of continent. :return: Continent name.
"Get a random continent name or continent code.\n\n :param code: Return code of continent.\n :return: Continent name."
559
false
lk-geimfari/mimesis
continent
6,594
LDU_FT/shidenggui/easytrader/parse_cookies_str
LDU_FT
[ "<BEGIN>\n## `prepare`", "登录的统一接口\n :param config_file 登录数据文件,若无则选择参数登录模式\n :param user: 各家券商的账号或者雪球的用户名\n :param password: 密码, 券商为加密后的密码,雪球为明文密码\n :param account: [雪球登录需要]雪球手机号(邮箱手机二选一)\n :param portfolio_code: [雪球登录需要]组合代码\n :param portfolio_market: [雪球登录需要]交易市场,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_cookies_str API. 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 parse_cookies_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
parse cookies str to dict :param cookies: cookies str :type cookies: str :return: cookie dict :rtype: dict
"parse cookies str to dict\n :param cookies: cookies str\n :type cookies: str\n :return: cookie dict\n :rtype: dict"
93
false
shidenggui/easytrader
parse_cookies_str
6,595
LDU_FT/raghakot/keras-vis/func2md
LDU_FT
[ "<BEGIN>\n## `visualize_activation_with_losses`", "Generates the `input_tensor` that minimizes the weighted `losses`. This function is intended for advanced\n use cases where a custom loss is desired.", " Args:\n input_tensor: An input tensor of shape: `(samples, channels, image_dims...)` if `image...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the func2md API. 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 func2md API. 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 a function (or method) and documents it. Args: clsname (str, optional): class name to prepend to funcname. depth (int, optional): number of ### to append to function name
"Takes a function (or method) and documents it.\n\n Args:\n clsname (str, optional): class name to prepend to funcname.\n depth (int, optional): number of ### to append to function name"
138
false
raghakot/keras-vis
func2md
6,596
LDU_FT/mattupstate/flask-social/init_app
LDU_FT
[ "<BEGIN>\n## `get_authorize_callback`", "Get a qualified URL for the provider to return to upon authorization", " param: endpoint: Absolute path to append to the application's host\n<END>", "<BEGIN>\n## `delete_connection`", "Remove a single connection to a provider for the specified user.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Initialize the application with the Social extension :param app: The Flask application :param datastore: Connection datastore instance
"Initialize the application with the Social extension\n\n :param app: The Flask application\n :param datastore: Connection datastore instance"
21
false
mattupstate/flask-social
init_app
6,597
LDU_FT/openpermissions/koi/_create_service
LDU_FT
[ "<BEGIN>\n## `define_options`", "Define the options from default.conf dynamically\n<END>", "<BEGIN>\n## `log_config`", "Logs the config used to start the application\n<END>", "<BEGIN>\n## `ssl_server_options`", "ssl options for tornado https server\n these options are defined in each application's defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_service API. 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 _create_service API. 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...
Attempt to create service with given details. If service already exists look up existing service. :param client: Accounts Service API Client :param organisation_id: Id of Organisation :param name: Service Name :param location: Service Location :param service_type: Service Type :return: Service I...
"Attempt to create service with given details. If service already exists look up existing service.\n :param client: Accounts Service API Client\n :param organisation_id: Id of Organisation\n :param name: Service Name\n :param location: Service Location\n :param service_type: Service Type\n :return: Se...
122
false
openpermissions/koi
_create_service
6,598
LDU_FT/abw333/dominoes/make_moves
LDU_FT
[ "<BEGIN>\n## `_randomized_hands`", ":return: 4 hands, obtained by shuffling the 28 dominoes used in\n this variation of the game, and distributing them evenly\n<END>", "<BEGIN>\n## `_validate_player`", "Checks that a player is a valid player. Valid players are: 0, 1, 2, and 3.", " :param int ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_moves API. 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 make_moves API. 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...
For each of a Game object's valid moves, yields a tuple containing the move and the Game object obtained by playing the move on the original Game object. The original Game object will be modified. :param Game game: the game to make moves on :param callable player: a player to call on the ...
"For each of a Game object's valid moves, yields\n a tuple containing the move and the Game object\n obtained by playing the move on the original Game\n object. The original Game object will be modified.\n\n :param Game game: the game to make moves on\n :param callable player: a player to call on the\n ...
70
false
abw333/dominoes
make_moves
6,599
LDU_FT/siznax/wptools/response
LDU_FT
[ "<BEGIN>\n## `_add_members`", "Adds category members and subcategories to data\n<END>", "<BEGIN>\n## `_set_data`", "Set category member data from API response\n<END>", "<BEGIN>\n## `get_members`", "GET Mediawiki:API (action=query) category members\n https://www.mediawiki.org/wiki/API:Categorymember...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
returns cached response (as dict) for given action, or list of cached actions
"returns cached response (as dict) for given action,\n or list of cached actions"
179
false
siznax/wptools
response
6,600
LDU_FT/JensRantil/rewind/key_exists
LDU_FT
[ "<BEGIN>\n## `_zmq_socket_context`", "A ZeroMQ socket context that both constructs a socket and closes it.\n<END>", "<BEGIN>\n## `_get_with_fallback`", "Get a configuration value, using fallback for missing values.", " Parameters:\n config -- the configparser to try to extract the option value from....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_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 extrac...
Check whether a key exists in the event store. Returns True if it does, False otherwise.
"Check whether a key exists in the event store.\n\n Returns True if it does, False otherwise."
112
false
JensRantil/rewind
key_exists
6,601
LDU_FT/todddeluca/python-vagrant/box_add
LDU_FT
[ "<BEGIN>\n## `which`", "Emulate unix 'which' command. If program is a path to an executable file\n (i.e. it contains any directory components, like './myscript'), return\n program. Otherwise, if an executable file matching program is found in one\n of the directories in the PATH environment variable, r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the box_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the box_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...
Adds a box with given name, from given url. force: If True, overwrite an existing box if it exists.
"Adds a box with given name, from given url.\n\n force: If True, overwrite an existing box if it exists."
94
false
todddeluca/python-vagrant
box_add
6,602
LDU_FT/tijme/not-your-average-web-crawler/get_cookie_header
LDU_FT
[ "<BEGIN>\n## `get_new_requests`", "Retrieve all the new request that were found in this request.", " Returns:\n list(:class:`nyawc.http.Request`): A list of request objects.\n<END>", "<BEGIN>\n## `__make_request`", "Execute a request with the given data.", " Args:\n url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cookie_header API. 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_cookie_header API. 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 a requests cookie jar to a HTTP request cookie header value. Args: queue_item (:class:`nyawc.QueueItem`): The parent queue item of the new request. Returns: str: The HTTP cookie header value.
"Convert a requests cookie jar to a HTTP request cookie header value.\n\n Args:\n queue_item (:class:`nyawc.QueueItem`): The parent queue item of the new request.\n\n Returns:\n str: The HTTP cookie header value."
220
false
tijme/not-your-average-web-crawler
get_cookie_header
6,603
LDU_FT/graphql-python/graphql-relay-py/node_definitions
LDU_FT
[ "<BEGIN>\n## `node_definitions`", "Given a function to map from an ID to an underlying object, and a function\n to map from an underlying object to the concrete GraphQLObjectType it\n corresponds to, constructs a `Node` interface that objects can implement,\n and a field config for a `node` root field.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_definitions API. 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 node_definitions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Given a function to map from an ID to an underlying object, and a function to map from an underlying object to the concrete GraphQLObjectType it corresponds to, constructs a `Node` interface that objects can implement, and a field config for a `node` root field. If the type_resolver is omitted, object ...
"Given a function to map from an ID to an underlying object, and a function\n to map from an underlying object to the concrete GraphQLObjectType it\n corresponds to, constructs a `Node` interface that objects can implement,\n and a field config for a `node` root field.\n\n If the type_resolver is omitted, o...
17
false
graphql-python/graphql-relay-py
node_definitions
6,604
LDU_FT/erget/StereoVision/calibrate_cameras
LDU_FT
[ "<BEGIN>\n## `get_frames_singleimage`", "Get current left and right frames from a single image,\n by splitting the image in half.\n<END>", "<BEGIN>\n## `show_frames`", "Show current frames from cameras.", " ``wait`` is the wait interval in milliseconds before the window closes.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calibrate_cameras API. 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 calibrate_cameras API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Calibrate cameras based on found chessboard corners.
"Calibrate cameras based on found chessboard corners."
83
false
erget/StereoVision
calibrate_cameras
6,605
LDU_FT/sailthru/sailthru-python-client/get_list
LDU_FT
[ "<BEGIN>\n## `flatten_nested_hash`", "Flatten nested dictionary for GET / POST / DELETE API request\n<END>", "<BEGIN>\n## `sailthru_http_request`", "Perform an HTTP GET / POST / DELETE request\n<END>", "<BEGIN>\n## `extract_params`", "Extracts the values of a set of parameters, recursing into nested dicti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get detailed metadata information about a list.
"Get detailed metadata information about a list."
64
false
sailthru/sailthru-python-client
get_list
6,606
LDU_FT/deep-compute/logagg/basescript
LDU_FT
[ "<BEGIN>\n## `start_daemon_thread`", "starts a deamon thread for a given target function and arguments.\n<END>", "<BEGIN>\n## `serialize_dict_keys`", "returns all the keys in a dictionary.", " >>> serialize_dict_keys({\"a\": {\"b\": {\"c\": 1, \"b\": 2} } })\n ['a', 'a.b', 'a.b.c', 'a.b.b']\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basescript API. 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 basescript API. 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...
>>> import pprint >>> input_line = '{"level": "warning", "timestamp": "2018-02-07T06:37:00.297610Z", "event": "exited via keyboard interrupt", "type": "log", "id": "20180207T063700_4d03fe800bd111e89ecb96000007bc65", "_": {"ln": 58, "file": "/usr/local/lib/python2.7/dist-packages/basescript/basescript.py", "name": "...
">>> import pprint\n >>> input_line = '{\"level\": \"warning\", \"timestamp\": \"2018-02-07T06:37:00.297610Z\", \"event\": \"exited via keyboard interrupt\", \"type\": \"log\", \"id\": \"20180207T063700_4d03fe800bd111e89ecb96000007bc65\", \"_\": {\"ln\": 58, \"file\": \"/usr/local/lib/python2.7/dist-packages/basescr...
59
false
deep-compute/logagg
basescript
6,607
LDU_FT/trehn/termdown/graceful_ctrlc
LDU_FT
[ "<BEGIN>\n## `format_seconds`", "Returns a human-readable string representation of the given amount\n of seconds.\n<END>", "<BEGIN>\n## `graceful_ctrlc`", "Makes the decorated function exit with code 1 on CTRL+C.\n<END>", "<BEGIN>\n## `pad_to_size`", "Adds whitespace to text to center it within a frame...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graceful_ctrlc API. 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 graceful_ctrlc API. 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...
Makes the decorated function exit with code 1 on CTRL+C.
"Makes the decorated function exit with code 1 on CTRL+C."
12
false
trehn/termdown
graceful_ctrlc
6,608
LDU_FT/AmanoTeam/amanobot/sendAnimation
LDU_FT
[ "<BEGIN>\n## `sendAnimation`", "See: https://core.telegram.org/bots/api#sendanimation", " :param animation: Same as ``photo`` in :meth:`amanobot.aio.Bot.sendPhoto`\n<END>", "<BEGIN>\n## `sendVenue`", "See: https://core.telegram.org/bots/api#sendvenue\n<END>", "<BEGIN>\n## `sendContact`", "See: ht...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sendAnimation API. 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 sendAnimation API. 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...
See: https://core.telegram.org/bots/api#sendanimation :param animation: Same as ``photo`` in :meth:`amanobot.aio.Bot.sendPhoto`
"See: https://core.telegram.org/bots/api#sendanimation\n\n :param animation: Same as ``photo`` in :meth:`amanobot.aio.Bot.sendPhoto`"
38
false
AmanoTeam/amanobot
sendAnimation
6,609
LDU_FT/QUANTAXIS/QUANTAXIS/save_account
LDU_FT
[ "<BEGIN>\n## `start_market`", "start the market thread and register backtest broker thread\n QAMarket 继承QATrader, QATrader 中有 trade_engine属性 , trade_engine类型是QA_Engine从 QA_Thread继承\n<END>", "<BEGIN>\n## `message`", "the standard message which can be transfer\n<END>", "<BEGIN>\n## `init_hold_with_acco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_account API. 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 save_account API. 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...
save account Arguments: message {[type]} -- [description] Keyword Arguments: collection {[type]} -- [description] (default: {DATABASE})
"save account\n\n Arguments:\n message {[type]} -- [description]\n\n Keyword Arguments:\n collection {[type]} -- [description] (default: {DATABASE})"
835
false
QUANTAXIS/QUANTAXIS
save_account
6,610
LDU_FT/theiviaxx/Frog/filterObjects
LDU_FT
[ "<BEGIN>\n## `export`", "The export function needs to:\n - Move source image to asset folder\n - Rename to guid.ext\n - Save thumbnail, small, and image versions\n<END>", "<BEGIN>\n## `export`", "The export function needs to:\n - Move source image to asset folder\n - Rename ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filterObjects API. 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 filterObjects API. 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...
Filters Gallery for the requested ImageVideo objects. Returns a Result object with serialized objects
"Filters Gallery for the requested ImageVideo objects. Returns a Result object with\n serialized objects"
101
false
theiviaxx/Frog
filterObjects
6,611
LDU_FT/rouk1/django-image-renderer/get_rendition_url
LDU_FT
[ "<BEGIN>\n## `get_rendition_url`", "get a rendition url", " if the rendition does nto exist it will be created in the storage\n if dimensions do not fit master's aspect ratio\n then image will be cropped with a centered anchor", " if one dimensions is omitted (0)\n the other one will be generat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rendition_url API. 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_rendition_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
get a rendition url if the rendition does nto exist it will be created in the storage if dimensions do not fit master's aspect ratio then image will be cropped with a centered anchor if one dimensions is omitted (0) the other one will be generated accordind to master's aspect ratio :param req...
"get a rendition url\n\n if the rendition does nto exist it will be created in the storage\n if dimensions do not fit master's aspect ratio\n then image will be cropped with a centered anchor\n\n if one dimensions is omitted (0)\n the other one will be generated accordind to master's aspect ratio\n\n ...
21
false
rouk1/django-image-renderer
get_rendition_url
6,612
LDU_FT/drj11/pypng/decomprest
LDU_FT
[ "<BEGIN>\n## `adam7_generate`", "Generate the coordinates for the reduced scanlines\n of an Adam7 interlaced image\n of size `width` by `height` pixels.", " Yields a generator for each pass,\n and each pass generator yields a series of (x, y, xstep) triples,\n each one identifying a reduced scanl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decomprest API. 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 decomprest API. 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...
Iterator that decompresses the rest of a file once the metadata have been consumed.
"Iterator that decompresses the rest of a file once the metadata\n have been consumed."
153
false
drj11/pypng
decomprest
6,613
LDU_FT/eng-tools/sfsimodels/layer_height
LDU_FT
[ "<BEGIN>\n## `set_beam_prop`", "Specify the properties of the beams", " :param values:\n :param repeat: if 'up' then duplicate up the structure\n :return:\n<END>", "<BEGIN>\n## `set_column_prop`", "Specify the properties of the columns", " :param values:\n :param repeat:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the layer_height API. 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 layer_height API. 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 the layer height by layer id number. :param layer_int: :return: float, height of the soil layer
"Get the layer height by layer id number.\n\n :param layer_int:\n :return: float, height of the soil layer"
126
false
eng-tools/sfsimodels
layer_height
6,614
LDU_FT/nicolargo/glances/get_json_history
LDU_FT
[ "<BEGIN>\n## `msg_curse`", "Return the string to display in the curse interface.\n<END>", "<BEGIN>\n## `load`", "Load the web list from the configuration file.\n<END>", "<BEGIN>\n## `set_server`", "Set the key to the value for the pos (position in the list).\n<END>", "<BEGIN>\n## `update`", "Update se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_json_history API. 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_json_history API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return the history (JSON format). - the stats history (dict of list) if item is None - the stats history for the given item (list) instead - None if item did not exist in the history Limit to lasts nb items (all if nb=0)
"Return the history (JSON format).\n\n - the stats history (dict of list) if item is None\n - the stats history for the given item (list) instead\n - None if item did not exist in the history\n Limit to lasts nb items (all if nb=0)"
678
false
nicolargo/glances
get_json_history
6,615
LDU_FT/ahmontero/dop/destroy_domain
LDU_FT
[ "<BEGIN>\n## `droplets`", "This method returns the list of droplets\n<END>", "<BEGIN>\n## `reboot_droplet`", "This method allows you to reboot a droplet. This is the preferred method\n to use if a server is not responding.\n<END>", "<BEGIN>\n## `power_cycle_droplet`", "This method allows you to pow...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the destroy_domain API. 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 destroy_domain API. 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...
This method deletes the specified domain. Required parameters domain_id: Integer or Domain Name (e.g. domain.com), specifies the domain to destroy.
"This method deletes the specified domain.\n\n Required parameters\n\n domain_id:\n Integer or Domain Name (e.g. domain.com), specifies the domain\n to destroy."
102
false
ahmontero/dop
destroy_domain
6,616
LDU_FT/google/python-atfork/_call_atfork_list
LDU_FT
[ "<BEGIN>\n## `monkeypatch_os_fork_functions`", "Replace os.fork* with wrappers that use ForkSafeLock to acquire\n all locks before forking and release them afterwards.\n<END>", "<BEGIN>\n## `atfork`", "A Python work-a-like of pthread_atfork.", " Any time a fork() is called from Python, all 'prepare' c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _call_atfork_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _call_atfork_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Given a list of callables in call_list, call them all in order and save and return a list of sys.exc_info() tuples for each exception raised.
"Given a list of callables in call_list, call them all in order and save\n and return a list of sys.exc_info() tuples for each exception raised."
15
false
google/python-atfork
_call_atfork_list
6,617
LDU_FT/pyhys/minimalmodbus/_checkResponseRegisterAddress
LDU_FT
[ "<BEGIN>\n## `_checkSetpointValue`", "Check that the given setpointvalue is valid.", " Args:\n * setpointvalue (numerical): The setpoint value to be checked. Must be positive.\n * maxvalue (numerical): Upper limit for setpoint value. Must be positive.", " Raises:\n TypeError, ValueE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _checkResponseRegisterAddress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _checkResponseRegisterAddress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Check that the start adress as given in the response is correct. The first two bytes in the payload holds the address value. Args: * payload (string): The payload * registeraddress (int): The register address (use decimal numbers, not hex). Raises: TypeError, ValueError
"Check that the start adress as given in the response is correct.\n\n The first two bytes in the payload holds the address value.\n\n Args:\n * payload (string): The payload\n * registeraddress (int): The register address (use decimal numbers, not hex).\n\n Raises:\n TypeError, ValueError"
357
false
pyhys/minimalmodbus
_checkResponseRegisterAddress
6,618
LDU_FT/closeio/tasktiger/_worker_queue_expired_tasks
LDU_FT
[ "<BEGIN>\n## `set_system_lock`", "Set system lock for the semaphore.", " Sets a system lock that will expire in timeout seconds. This\n overrides all other locks. Existing locks cannot be renewed\n and no new locks will be permitted until the system lock\n expires.", " Argum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _worker_queue_expired_tasks 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 _worker_queue_expired_tasks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Helper method that takes expired tasks (where we didn't get a heartbeat until we reached a timeout) and puts them back into the QUEUED queue for re-execution if they're idempotent, i.e. retriable on JobTimeoutException. Otherwise, tasks are moved to the ERROR queue and an exception is lo...
"Helper method that takes expired tasks (where we didn't get a\n heartbeat until we reached a timeout) and puts them back into the\n QUEUED queue for re-execution if they're idempotent, i.e. retriable\n on JobTimeoutException. Otherwise, tasks are moved to the ERROR queue\n and an exception ...
124
false
closeio/tasktiger
_worker_queue_expired_tasks
6,619
LDU_FT/google-research/batch-ppo/length
LDU_FT
[ "<BEGIN>\n## `count_weights`", "Count learnable parameters.", " Args:\n scope: Restrict the count to a variable scope.\n exclude: Regex to match variable names to exclude.\n graph: Operate on a graph other than the current default graph.", " Returns:\n Number of learnable parameters as integer.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the length API. 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 length API. 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 ...
Tensor holding the current length of episodes. Args: rows: Episodes to select length from, defaults to all. Returns: Batch tensor of sequence lengths.
"Tensor holding the current length of episodes.\n\n Args:\n rows: Episodes to select length from, defaults to all.\n\n Returns:\n Batch tensor of sequence lengths."
362
false
google-research/batch-ppo
length
6,620
LDU_FT/OpenGov/python_data_wrap/GetCellValueNoFail
LDU_FT
[ "<BEGIN>\n## `read`", "Loads an arbitrary file type (xlsx, xls, or csv like) and returns\n a list of 2D tables. For csv files this will be a list of one table,\n but excel formats can have many tables/worksheets.", " TODO:\n Add wrapper which can be closed/exited on each file type which cleans\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetCellValueNoFail 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 GetCellValueNoFail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
get a cell, if it does not exist fail note that column at row START AT 1 same as excel
"get a cell, if it does not exist fail\r\n note that column at row START AT 1 same as excel"
94
false
OpenGov/python_data_wrap
GetCellValueNoFail
6,621
LDU_FT/jtambasco/modesolverpy/solve_sweep_structure
LDU_FT
[ "<BEGIN>\n## `solve_sweep_structure`", "Find the modes of many structures.", " Args:\n structures (list): A list of `Structures` to find the modes\n of.\n sweep_param_list (list): A list of the parameter-sweep sweep\n that was used. This is for plottin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve_sweep_structure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve_sweep_structure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Find the modes of many structures. Args: structures (list): A list of `Structures` to find the modes of. sweep_param_list (list): A list of the parameter-sweep sweep that was used. This is for plotting purposes only. filename (str): The nomin...
"Find the modes of many structures.\n\n Args:\n structures (list): A list of `Structures` to find the modes\n of.\n sweep_param_list (list): A list of the parameter-sweep sweep\n that was used. This is for plotting purposes only.\n filename (str): T...
70
false
jtambasco/modesolverpy
solve_sweep_structure
6,622
LDU_FT/jsommers/switchyard/import_or_die
LDU_FT
[ "<BEGIN>\n## `router_main`", "Main method for router; we stay in a loop in this method, receiving\n packets until the end of time.\n<END>", "<BEGIN>\n## `from_bytes`", "Takes a byte string as a parameter and returns a list of\n IPOption objects.\n<END>", "<BEGIN>\n## `to_bytes`", "Takes a li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_or_die API. 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 import_or_die API. 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...
Import user code; return reference to usercode function. (str) -> function reference
"Import user code; return reference to usercode function.\n\n (str) -> function reference"
192
false
jsommers/switchyard
import_or_die
6,623
LDU_FT/biocommons/hgvs/c_to_p
LDU_FT
[ "<BEGIN>\n## `_expose_rule_functions`", "add parse functions for public grammar rules", " Defines a function for each public grammar rule, based on\n introspecting the grammar. For example, the `c_interval` rule\n is exposed as a method `parse_c_interval` and used like this::", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the c_to_p API. 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 c_to_p API. 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 ...
Converts a c. SequenceVariant to a p. SequenceVariant on the specified protein accession Author: Rudy Rico :param SequenceVariant var_c: hgvsc tag :param str pro_ac: protein accession :rtype: hgvs.sequencevariant.SequenceVariant
"Converts a c. SequenceVariant to a p. SequenceVariant on the specified protein accession\n Author: Rudy Rico\n\n :param SequenceVariant var_c: hgvsc tag\n :param str pro_ac: protein accession\n :rtype: hgvs.sequencevariant.SequenceVariant"
210
false
biocommons/hgvs
c_to_p
6,624
LDU_FT/notanumber/xapian-haystack/_term_query
LDU_FT
[ "<BEGIN>\n## `_term_to_xapian_value`", "Converts a term to a serialized\n Xapian value based on the field_type.\n<END>", "<BEGIN>\n## `_from_xapian_value`", "Converts a serialized Xapian value\n to Python equivalent based on the field_type.", " Doesn't accept multivalued fields.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _term_query API. 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 _term_query API. 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...
Constructs a query of a single term. If `field_name` is not `None`, the term is search on that field only. If exact is `True`, the search is restricted to boolean matches.
"Constructs a query of a single term.\n\n If `field_name` is not `None`, the term is search on that field only.\n If exact is `True`, the search is restricted to boolean matches."
127
false
notanumber/xapian-haystack
_term_query
6,625
LDU_FT/robehickman/simple-http-file-sync/find_manifest_changes
LDU_FT
[ "<BEGIN>\n## `lock_access`", "Synchronise access to the user file between processes, this specifies\n which user is allowed write access at the current time\n<END>", "<BEGIN>\n## `can_aquire_user_lock`", "Allow a user to acquire the lock if no other user is currently using it, if the original\n user is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_manifest_changes 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 find_manifest_changes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Find what has changed between two sets of files
"Find what has changed between two sets of files"
60
false
robehickman/simple-http-file-sync
find_manifest_changes
6,626
LDU_FT/datasift/datasift-python/get_for
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate the given CSDL", " :param csdl: The CSDL to be validated for analysis\n :type csdl: str\n :param service: The service for this API call (facebook, etc)\n :type service: str\n :return: dict of REST API output with headers ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get the historic query for the given ID Uses API documented at http://dev.datasift.com/docs/api/rest-api/endpoints/historicsget :param historics_id: playback id of the query :type historics_id: str :return: dict of REST API output with headers attached :rtyp...
"Get the historic query for the given ID\n\n Uses API documented at http://dev.datasift.com/docs/api/rest-api/endpoints/historicsget\n\n :param historics_id: playback id of the query\n :type historics_id: str\n :return: dict of REST API output with headers attached\n ...
238
false
datasift/datasift-python
get_for
6,627
LDU_FT/jrief/djangocms-cascade/grant_permissions
LDU_FT
[ "<BEGIN>\n## `_enrich_link`", "Enrich the dict glossary['link'] with an identifier onto the model\n<END>", "<BEGIN>\n## `get_form`", "Extend the form for the given plugin with the form SharableCascadeForm\n<END>", "<BEGIN>\n## `get_picture_elements`", "Create a context, used to render a <picture> together...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grant_permissions API. 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 grant_permissions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Create the default permissions for the just added proxy model
"Create the default permissions for the just added proxy model"
78
false
jrief/djangocms-cascade
grant_permissions
6,628
LDU_FT/bpython/curtsies/send
LDU_FT
[ "<BEGIN>\n## `tictactoe`", "Put two strategies to a classic battle of wits.\n<END>", "<BEGIN>\n## `memo`", "Return a function like f that remembers and reuses results of past calls.\n<END>", "<BEGIN>\n## `max_play`", "Play like Spock, except breaking ties by drunk_value.\n<END>", "<BEGIN>\n## `drunk_val...
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...
Returns an event or None if no events occur before timeout.
"Returns an event or None if no events occur before timeout."
163
false
bpython/curtsies
send
6,629
LDU_FT/riga/scinum/make_list
LDU_FT
[ "<BEGIN>\n## `log`", "log(x, base=e)\n Logarithmic function.\n<END>", "<BEGIN>\n## `asin`", "asin(x)\n Trigonometric arc sin function.\n<END>", "<BEGIN>\n## `acos`", "acos(x)\n Trigonometric arc cos function.\n<END>", "<BEGIN>\n## `atan`", "tan(x)\n Trigonometric arc tan function.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Converts an object *obj* to a list and returns it. Objects of types *tuple* and *set* are converted if *cast* is *True*. Otherwise, and for all other types, *obj* is put in a new list.
"Converts an object *obj* to a list and returns it. Objects of types *tuple* and *set* are\n converted if *cast* is *True*. Otherwise, and for all other types, *obj* is put in a new list."
90
false
riga/scinum
make_list
6,630
LDU_FT/ironfroggy/straight.plugin/pipe
LDU_FT
[ "<BEGIN>\n## `produce`", "Produce a new set of plugins, treating the current set as plugin\n factories.\n<END>", "<BEGIN>\n## `call`", "Call a common method on all the plugins, if it exists.\n<END>", "<BEGIN>\n## `first`", "Call a common method on all the plugins, if it exists. Return the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipe API. 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 pipe API. 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...
Call a common method on all the plugins, if it exists. The return value of each call becomes the replaces the first argument in the given argument list to pass to the next. Useful to utilize plugins as sets of filters.
"Call a common method on all the plugins, if it exists. The return\n value of each call becomes the replaces the first argument in the given\n argument list to pass to the next.\n\n Useful to utilize plugins as sets of filters."
11
false
ironfroggy/straight.plugin
pipe
6,631
LDU_FT/codeinn/vcs/get_file_history
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 get_file_history API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_history API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns history of file as reversed list of ``Changeset`` objects for which file at given ``path`` has been modified. TODO: This function now uses os underlying 'git' and 'grep' commands which is generally not good. Should be replaced with algorithm iterating commits.
"Returns history of file as reversed list of ``Changeset`` objects for\n which file at given ``path`` has been modified.\n\n TODO: This function now uses os underlying 'git' and 'grep' commands\n which is generally not good. Should be replaced with algorithm\n iterating commits."
326
false
codeinn/vcs
get_file_history
6,632
LDU_FT/couchbase/couchbase-python-client/index_to_rawjson
LDU_FT
[ "<BEGIN>\n## `set_json_converters`", "Modify the default JSON conversion functions. This affects all\n :class:`~couchbase.bucket.Bucket` instances.", " These functions will called instead of the default ones (``json.dumps``\n and ``json.loads``) to encode and decode JSON (when :const:`FMT_JSON` is\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_to_rawjson API. 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 index_to_rawjson API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
:param ix: dict or IndexInfo object :return: serialized JSON
":param ix: dict or IndexInfo object\n :return: serialized JSON"
806
false
couchbase/couchbase-python-client
index_to_rawjson
6,633
LDU_FT/nagius/snmp_passpersist/get_setter
LDU_FT
[ "<BEGIN>\n## `encode`", "Encode the given string as an OID.", "\t\t>>> import snmp_passpersist as snmp\n\t\t>>> snmp.PassPersist.encode(\"hello\")\n\t\t'5.104.101.108.108.111'\n\t\t>>>\n<END>", "<BEGIN>\n## `cut_oid`", "Remove the base OID from the given string.", "\t\t>>> import snmp_passpersist as snmp\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_setter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_setter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Retrieve the nearest parent setter function for an OID
"Retrieve the nearest parent setter function for an OID"
38
false
nagius/snmp_passpersist
get_setter
6,634
LDU_FT/aestrivex/bctpy/null_model_dir_sign
LDU_FT
[ "<BEGIN>\n## `density_dir`", "Density is the fraction of present connections to possible connections.", " Parameters\n ----------\n CIJ : NxN np.ndarray\n directed weighted/binary connection matrix", " Returns\n -------\n kden : float\n density\n N : int\n number of v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the null_model_dir_sign API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the null_model_dir_sign API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
This function randomizes an directed network with positive and negative weights, while preserving the degree and strength distributions. This function calls randmio_dir.m Parameters ---------- W : NxN np.ndarray directed weighted connection matrix bin_swaps : int average number ...
"This function randomizes an directed network with positive and\n negative weights, while preserving the degree and strength\n distributions. This function calls randmio_dir.m\n\n Parameters\n ----------\n W : NxN np.ndarray\n directed weighted connection matrix\n bin_swaps : int\n avera...
654
false
aestrivex/bctpy
null_model_dir_sign
6,635
LDU_FT/fake-name/ChromeController/Page_searchInResource
LDU_FT
[ "<BEGIN>\n## `close_chromium`", "Close the remote chromium instance.", "\t\tThis command is normally executed as part of the class destructor.\n\t\tIt can be called early without issue, but calling ANY class functions\n\t\tafter the remote chromium instance is shut down will have unknown effects.", "\t\tNote ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Page_searchInResource 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 Page_searchInResource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Function path: Page.searchInResource Domain: Page Method name: searchInResource WARNING: This function is marked 'Experimental'! Parameters: Required arguments: 'frameId' (type: FrameId) -> Frame id for resource to search in. 'url' (type: string) -> URL of the resource to search in. ...
"Function path: Page.searchInResource\n\t\t\tDomain: Page\n\t\t\tMethod name: searchInResource\n\t\t\n\t\t\tWARNING: This function is marked 'Experimental'!\n\t\t\n\t\t\tParameters:\n\t\t\t\tRequired arguments:\n\t\t\t\t\t'frameId' (type: FrameId) -> Frame id for resource to search in.\n\t\t\t\t\t'url' (type: string) -...
709
false
fake-name/ChromeController
Page_searchInResource
6,636
LDU_FT/kwikteam/phy/discover_plugins
LDU_FT
[ "<BEGIN>\n## `set_state`", "Set the view state.", " The passed object is the persisted `self.state` bunch.", " May be overriden.\n<END>", "<BEGIN>\n## `_fullname`", "Return the fully-qualified name of a function.\n<END>", "<BEGIN>\n## `_get_default_grid`", "In the grid specification, 0 c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover_plugins API. 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 discover_plugins API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Discover the plugin classes contained in Python files. Parameters ---------- dirs : list List of directory names to scan. Returns ------- plugins : list List of plugin classes.
"Discover the plugin classes contained in Python files.\n\n Parameters\n ----------\n\n dirs : list\n List of directory names to scan.\n\n Returns\n -------\n\n plugins : list\n List of plugin classes."
346
false
kwikteam/phy
discover_plugins
6,637
LDU_FT/WimpyAnalytics/pynt-of-django/setup_pod
LDU_FT
[ "<BEGIN>\n## `setup_pod`", "This must be called by the project's build.py for pyntofdjango to function.", " You can specify it directly with the optional manage_dir kwarg.", " :param build_file_path: E.g. os.path.abspath(__file__)\n :param manage_dir: Optional, Searched for if None.\n :param local...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_pod API. 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 setup_pod API. 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...
This must be called by the project's build.py for pyntofdjango to function. You can specify it directly with the optional manage_dir kwarg. :param build_file_path: E.g. os.path.abspath(__file__) :param manage_dir: Optional, Searched for if None. :param local_requirements: Optional, pip requirements f...
"This must be called by the project's build.py for pyntofdjango to function.\n\n\n You can specify it directly with the optional manage_dir kwarg.\n\n :param build_file_path: E.g. os.path.abspath(__file__)\n :param manage_dir: Optional, Searched for if None.\n :param local_requirements: Optional, pip requir...
16
false
WimpyAnalytics/pynt-of-django
setup_pod
6,638
LDU_FT/pyviz/holoviews/hierarchical
LDU_FT
[ "<BEGIN>\n## `initialize_plot`", "Initializes a new plot object with the last available frame.\n<END>", "<BEGIN>\n## `_get_axis_dims`", "Returns the dimensions corresponding to each axis.", " Should return a list of dimensions or list of lists of\n dimensions, which will be formatted to label ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hierarchical API. 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 hierarchical API. 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...
Iterates over dimension values in keys, taking two sets of dimension values at a time to determine whether two consecutive dimensions have a one-to-many relationship. If they do a mapping between the first and second dimension values is returned. Returns a list of n-1 mappings, between consecutive d...
"Iterates over dimension values in keys, taking two sets\n of dimension values at a time to determine whether two\n consecutive dimensions have a one-to-many relationship.\n If they do a mapping between the first and second dimension\n values is returned. Returns a list of n-1 mappings, between\n consecu...
1,961
true
pyviz/holoviews
hierarchical
6,639
LDU_FT/auth0/auth0-python/logout
LDU_FT
[ "<BEGIN>\n## `authorization_code`", "Authorization code grant", " This is the OAuth 2.0 grant that regular web apps utilize in order\n to access an API. Use this endpoint to exchange an Authorization Code\n for a Token.", " Args:\n grant_type (str): Denotes the flow you'...
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 ...
Logout Use this endpoint to logout a user. If you want to navigate the user to a specific URL after the logout, set that URL at the returnTo parameter. The URL should be included in any the appropriate Allowed Logout URLs list: Args: client_id (str): The client_id of your a...
"Logout\n\n Use this endpoint to logout a user. If you want to navigate the user to a\n specific URL after the logout, set that URL at the returnTo parameter.\n The URL should be included in any the appropriate Allowed Logout URLs list:\n\n Args:\n client_id (str): The client_id o...
337
false
auth0/auth0-python
logout
6,640
LDU_FT/snare/voltron/send_requests
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 send_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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 ext...
Send a set of requests. Each request is sent over its own connection and the function will return when all the requests have been fulfilled.
"Send a set of requests.\n\n Each request is sent over its own connection and the function will\n return when all the requests have been fulfilled."
80
false
snare/voltron
send_requests
6,641
LDU_FT/studionow/pybrightcove/modify_request
LDU_FT
[ "<BEGIN>\n## `has_option`", "Wrapper around ConfigParser's ``has_option`` method.\n<END>", "<BEGIN>\n## `get`", "Wrapper around ConfigParser's ``get`` method.\n<END>", "<BEGIN>\n## `item_lister`", "A generator function for listing Video and Playlist objects.\n<END>", "<BEGIN>\n## `get_manifest`", "Con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Sets HTTP request components based on the URI.
"Sets HTTP request components based on the URI."
67
false
studionow/pybrightcove
modify_request
6,642
LDU_FT/ownaginatious/fbchat-archive-parser/skip
LDU_FT
[ "<BEGIN>\n## `skip`", "Eats through the input iterator without recording the content.\n<END>", "<BEGIN>\n## `_process_element`", "Parses an incoming HTML element/node for data.", " pos -- the part of the element being parsed\n (start/end)\n e -- the element being parsed\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the skip API. 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 skip API. 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...
Eats through the input iterator without recording the content.
"Eats through the input iterator without recording the content."
27
false
ownaginatious/fbchat-archive-parser
skip
6,643
LDU_FT/harlowja/notifier/notify
LDU_FT
[ "<BEGIN>\n## `register_deregister`", "Context manager that registers a callback, then deregisters on exit.", " NOTE(harlowja): if the callback is none, then this registers nothing, which\n is different from the behavior of the ``register`` method\n which will *not* accep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify API. 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 notify API. 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 ...
Notify about an event occurrence. All callbacks registered to receive notifications about given event type will be called. If the provided event type can not be used to emit notifications (this is checked via the :meth:`.can_be_registered` method) then a value error will be rais...
"Notify about an event occurrence.\n\n All callbacks registered to receive notifications about given\n event type will be called. If the provided event type can not be\n used to emit notifications (this is checked via\n the :meth:`.can_be_registered` method) then a value error will be\n ...
42
false
harlowja/notifier
notify
6,644
LDU_FT/libtcod/python-tcod/blit_rect
LDU_FT
[ "<BEGIN>\n## `_int`", "return an integer where a single character string may be expected\n<END>", "<BEGIN>\n## `_describe_bitmask`", "Returns a bitmask in human readable form.", " This is a private function, used internally.", " Args:\n bits (int): The bitmask to be represented.\n tabl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blit_rect API. 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 blit_rect API. 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...
Blit onto a Console without scaling or rotation. Args: console (Console): Blit destination Console. x (int): Console tile X position starting from the left at 0. y (int): Console tile Y position starting from the top at 0. width (int): Use -1 for Image width. ...
"Blit onto a Console without scaling or rotation.\n\n Args:\n console (Console): Blit destination Console.\n x (int): Console tile X position starting from the left at 0.\n y (int): Console tile Y position starting from the top at 0.\n width (int): Use -1 for Image wid...
1,050
true
libtcod/python-tcod
blit_rect
6,645
LDU_FT/ECESeniorDesign/lazy_record/inner_join
LDU_FT
[ "<BEGIN>\n## `does_not_mutate`", "Prevents methods from mutating the receiver\n<END>", "<BEGIN>\n## `find_by`", "Find first record subject to restrictions in +kwargs+, raising\n RecordNotFound if no such record exists.\n<END>", "<BEGIN>\n## `first`", "Returns the first record in the query (sorting ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inner_join API. 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 inner_join API. 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...
Analog to SQL "INNER JOIN". +joiners+ is a list with entries of the form: { 'table': <table_name>, 'on': [<foreign_key>, <local_id>] } Example: >>> Repo('bs').inner_join( {'table': 'cs', on: ['b_id', 'id']}).select("*") SELECT bs.* F...
"Analog to SQL \"INNER JOIN\". +joiners+ is a list with entries of the\n form:\n\n {\n 'table': <table_name>,\n 'on': [<foreign_key>, <local_id>]\n }\n\n Example:\n\n >>> Repo('bs').inner_join(\n {'table': 'cs', on: ['b_id', 'id']}).select(\"*\")\n ...
78
false
ECESeniorDesign/lazy_record
inner_join
6,646
LDU_FT/Morrolan/surrealism/__replace_capall
LDU_FT
[ "<BEGIN>\n## `show_faults`", "Return all valid/active faults ordered by ID to allow the user to pick and choose.", " :return: List of Tuples where the Tuple elements are: (fault id, fault template)\n<END>", "<BEGIN>\n## `show_sentences`", "Return all valid/active sentences ordered by ID to allow the us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __replace_capall API. 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 __replace_capall API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
here we replace all instances of #CAPALL and cap the entire sentence. Don't believe that CAPALL is buggy anymore as it forces all uppercase OK? :param _sentence:
"here we replace all instances of #CAPALL and cap the entire sentence.\n Don't believe that CAPALL is buggy anymore as it forces all uppercase OK?\n\n :param _sentence:"
48
false
Morrolan/surrealism
__replace_capall
6,647
LDU_FT/gsi-upm/soil/convert
LDU_FT
[ "<BEGIN>\n## `save_record`", "Save a collection of records to the database.\n Database writes are cached.\n<END>", "<BEGIN>\n## `convert`", "Get the serialized value for a given key.\n<END>", "<BEGIN>\n## `recover`", "Get the deserialized value for a given key, and the serialized version.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get the serialized value for a given key.
"Get the serialized value for a given key."
63
false
gsi-upm/soil
convert
6,648
LDU_FT/pycontribs/python-crowd/add_user
LDU_FT
[ "<BEGIN>\n## `_get`", "Wrapper around Requests for GET requests", " Returns:\n Response:\n A Requests Response object\n<END>", "<BEGIN>\n## `_get_xml`", "Wrapper around Requests for GET XML requests", " Returns:\n Response:\n A Requests Res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_user API. 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_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add a user to the directory Args: username: The account username raise_on_error: optional (default: False) **kwargs: key-value pairs: password: mandatory email: mandatory first_name: optional ...
"Add a user to the directory\n\n Args:\n username: The account username\n raise_on_error: optional (default: False)\n **kwargs: key-value pairs:\n password: mandatory\n email: mandatory\n first_name: optio...
102
false
pycontribs/python-crowd
add_user
6,649
LDU_FT/datosgobar/pydatajson/resources_update
LDU_FT
[ "<BEGIN>\n## `get_datasets`", "Devuelve una lista de datasets del catálogo o de uno de sus metadatos.", " Args:\n catalog (dict, str or DataJson): Representación externa/interna de un\n catálogo. Una representación _externa_ es un path local o una\n URL remota a un archivo con la...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resources_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resources_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Sube archivos locales a sus distribuciones correspondientes en el portal pasado por parámetro. Args: portal_url (str): La URL del portal CKAN de destino. apikey (str): La apikey de un usuario con los permisos que le permitan crear o actualizar el dat...
"Sube archivos locales a sus distribuciones correspondientes en el portal\n pasado por parámetro.\n\n Args:\n portal_url (str): La URL del portal CKAN de destino.\n apikey (str): La apikey de un usuario con los permisos que le\n permitan crear o actualizar...
337
false
datosgobar/pydatajson
resources_update
6,650
LDU_FT/google/textfsm/_AddOption
LDU_FT
[ "<BEGIN>\n## `_SetValues`", "Set values from supplied dictionary or list.", " Args:\n values: A Row, dict indexed by column name, or list.", " Raises:\n TypeError: Argument is not a list or dict, or list is not equal row\n length or dictionary keys don't match.\n<END>", "<BEGIN>\n## `Fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _AddOption API. 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 _AddOption API. 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 an option to this Value. Args: name: (str), the name of the Option to add. Raises: TextFSMTemplateError: If option is already present or the option does not exist.
"Add an option to this Value.\n\n Args:\n name: (str), the name of the Option to add.\n\n Raises:\n TextFSMTemplateError: If option is already present or\n the option does not exist."
149
false
google/textfsm
_AddOption
6,651
LDU_FT/evocell/rabifier/run_cmd_if_file_missing
LDU_FT
[ "<BEGIN>\n## `check`", "Check if data and third party tools are available", " :raises: RuntimeError\n<END>", "<BEGIN>\n## `generate_non_rabs`", "Shrink the non-Rab DB size by reducing sequence redundancy.\n<END>", "<BEGIN>\n## `run_cmd`", "Runs an external command", " :param list cmd: Comman...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_cmd_if_file_missing 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 run_cmd_if_file_missing API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Runs an external command if file is absent. :param list cmd: Command to run. :param str fname: Path to the file, which existence is being checked. :param str out: Output file :param str err: Error file :return: True if cmd was executed, False otherwise :rtype: boolean
"Runs an external command if file is absent.\n\n :param list cmd: Command to run.\n :param str fname: Path to the file, which existence is being checked.\n :param str out: Output file\n :param str err: Error file\n :return: True if cmd was executed, False otherwise\n :rtype: boolean"
32
false
evocell/rabifier
run_cmd_if_file_missing
6,652
LDU_FT/watson-developer-cloud/python-sdk/_from_dict
LDU_FT
[ "<BEGIN>\n## `synthesize_using_websocket`", "Synthesizes text to spoken audio using web sockets. It supports the use of\n the SSML <mark> element to identify the location of user-specified markers in the audio.\n It can also return timing information for all strings of the input text.\n Note:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Initialize a AnalysisResultsMetadata object from a json dictionary.
"Initialize a AnalysisResultsMetadata object from a json dictionary."
1,254
true
watson-developer-cloud/python-sdk
_from_dict
6,653
LDU_FT/Erotemic/utool/multi_replace
LDU_FT
[ "<BEGIN>\n## `comparison`", "r\"\"\"\n CommandLine:\n python -m utool.experimental.dynamic_connectivity comparison --profile\n python -m utool.experimental.dynamic_connectivity comparison\n<END>", "<BEGIN>\n## `join`", "r\"\"\"\n Args:\n other (?):", " CommandLine:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_replace API. 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 multi_replace API. 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...
Does a string replace with a list of search and replacements TODO: rename
"Does a string replace with a list of search and replacements\n\n TODO: rename"
3,376
true
Erotemic/utool
multi_replace
6,654
LDU_FT/alephdata/memorious/seed
LDU_FT
[ "<BEGIN>\n## `size`", "Total operations pending for this crawler\n<END>", "<BEGIN>\n## `read_word`", "OCR a single word from an image. Useful for captchas.\n Image should be pre-processed to remove noise etc.\n<END>", "<BEGIN>\n## `read_char`", "OCR a single character from an image. Useful for capt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seed API. 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 seed API. 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 a crawler with a set of seed URLs. The URLs are given as a list or single value to the ``urls`` parameter. If this is called as a second stage in a crawler, the URL will be formatted against the supplied ``data`` values, e.g.: https://crawl.site/entries/%(number)s.html
"Initialize a crawler with a set of seed URLs.\n\n The URLs are given as a list or single value to the ``urls`` parameter.\n\n If this is called as a second stage in a crawler, the URL will be formatted\n against the supplied ``data`` values, e.g.:\n\n https://crawl.site/entries/%(number)s.html"
71
false
alephdata/memorious
seed
6,655
LDU_FT/honzamach/pynspect/p_not_expression
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_not_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_not_expression API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
not_expression : OP_NOT ex_expression | ex_expression
"not_expression : OP_NOT ex_expression\n | ex_expression"
143
false
honzamach/pynspect
p_not_expression
6,656
LDU_FT/stephenmcd/gnotty/on_namreply
LDU_FT
[ "<BEGIN>\n## `messages`", "Show messages for the given query or day.\n<END>", "<BEGIN>\n## `calendar`", "Show calendar months for the given year/month.\n<END>", "<BEGIN>\n## `_dispatcher`", "This is the method in ``SimpleIRCClient`` that all IRC events\n get passed through. Here we map events to ou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_namreply API. 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 on_namreply API. 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...
Initial list of nicknames received - remove op/voice prefixes, and send the list to the WebSocket.
"Initial list of nicknames received - remove op/voice prefixes,\n and send the list to the WebSocket."
76
false
stephenmcd/gnotty
on_namreply
6,657
LDU_FT/heikomuller/sco-models/init_registry
LDU_FT
[ "<BEGIN>\n## `init_registry`", "Initialize a model registry with a list of model definitions in Json\n format.", " Parameters\n ----------\n mongo : scodata.MongoDBFactory\n Connector for MongoDB\n model_defs : list()\n List of model definitions in Json-like format\n clear_collec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_registry API. 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 init_registry API. 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...
Initialize a model registry with a list of model definitions in Json format. Parameters ---------- mongo : scodata.MongoDBFactory Connector for MongoDB model_defs : list() List of model definitions in Json-like format clear_collection : boolean If true, collection will b...
"Initialize a model registry with a list of model definitions in Json\n format.\n\n Parameters\n ----------\n mongo : scodata.MongoDBFactory\n Connector for MongoDB\n model_defs : list()\n List of model definitions in Json-like format\n clear_collection : boolean\n If true, collec...
27
false
heikomuller/sco-models
init_registry
6,658
LDU_FT/j3ffhubb/pymarshal/marshal_bson
LDU_FT
[ "<BEGIN>\n## `factory`", "desc: >\n Creates a DocStringArg and recursively includes child\n docstrings if they are not JSON types.\n args:\n - name: name\n desc: The name of the argument\n type: str\n - name: desc\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marshal_bson API. 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 marshal_bson API. 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...
Recursively marshal a Python object to a BSON-compatible dict that can be passed to PyMongo, Motor, etc... Args: obj: object, It's members can be nested Python objects which will be converted to dictionaries types: tuple-of-types, The BSON primitive types, typically ...
"Recursively marshal a Python object to a BSON-compatible dict\n that can be passed to PyMongo, Motor, etc...\n\n Args:\n obj: object, It's members can be nested Python\n objects which will be converted to dictionaries\n types: tuple-of-types, The BSON primitive types, typical...
63
false
j3ffhubb/pymarshal
marshal_bson
6,659
LDU_FT/Shizmob/pydle/_register
LDU_FT
[ "<BEGIN>\n## `on_ctcp_version`", "Built-in CTCP version as some networks seem to require it.\n<END>", "<BEGIN>\n## `on_raw_privmsg`", "Modify PRIVMSG to redirect CTCP messages.\n<END>", "<BEGIN>\n## `on_raw_notice`", "Modify NOTICE to redirect CTCP messages.\n<END>", "<BEGIN>\n## `_register`", "Hijack...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _register API. 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 _register API. 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...
Hijack registration to send a CAP LS first.
"Hijack registration to send a CAP LS first."
96
false
Shizmob/pydle
_register
6,660
LDU_FT/cslarsen/lyn/state
LDU_FT
[ "<BEGIN>\n## `release`", "Destroys the state, along with its functions.\n<END>", "<BEGIN>\n## `clear`", "Clears state so it can be used for generating entirely new\n instructions.\n<END>", "<BEGIN>\n## `emit_function`", "Compiles code and returns a Python-callable function.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns a new JIT state. You have to clean up by calling .destroy() afterwards.
"Returns a new JIT state. You have to clean up by calling .destroy()\n afterwards."
10
false
cslarsen/lyn
state
6,661
LDU_FT/QualiSystems/vCenterShell/map_vnics
LDU_FT
[ "<BEGIN>\n## `get_inventory`", "Will locate vm in vcenter and fill its uuid\n :type context: cloudshell.shell.core.context.ResourceCommandContext\n<END>", "<BEGIN>\n## `get_snapshots`", "Restores a virtual machine to a snapshot\n :param vim.ServiceInstance si: py_vmomi service instance\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_vnics API. 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 map_vnics API. 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...
maps the vnic on the vm by name :param vm: virtual machine :return: dictionary: {'vnic_name': vnic}
"maps the vnic on the vm by name\n :param vm: virtual machine\n :return: dictionary: {'vnic_name': vnic}"
231
false
QualiSystems/vCenterShell
map_vnics
6,662
LDU_FT/sjkingo/python-freshdesk/list_agents
LDU_FT
[ "<BEGIN>\n## `get_ticket`", "Fetches the ticket for the given ticket ID\n<END>", "<BEGIN>\n## `create_ticket`", "Creates a ticket\n To create ticket with attachments,\n pass a key 'attachments' with value as list of fully qualified file paths in string format.\n ex: attachment...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_agents API. 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 list_agents API. 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...
List all agents, optionally filtered by a query. Specify filters as query keyword argument, such as: query= email is abc@xyz.com, query= mobile is 1234567890, query= phone is 1234567890, agents can be filtered by state such as: state=active/occasional ...
"List all agents, optionally filtered by a query. Specify filters as\n query keyword argument, such as: \n \n query= email is abc@xyz.com,\n query= mobile is 1234567890,\n query= phone is 1234567890,\n\n agents can be filtered by state such as:\n \n state=active/o...
57
false
sjkingo/python-freshdesk
list_agents
6,663
LDU_FT/census-instrumentation/opencensus-python/set_monitored_resource_attributes
LDU_FT
[ "<BEGIN>\n## `get_node`", "Generates Node message from params and system information.\n<END>", "<BEGIN>\n## `proto_ts_from_datetime_str`", "Converts string datetime in ISO format to protobuf timestamp.\n :type dt: str\n :param dt: string with datetime in ISO format\n :rtype: :class:`~google.protobuf....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_monitored_resource_attributes 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 set_monitored_resource_attributes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Set labels to span that can be used for tracing. :param span: Span object
"Set labels to span that can be used for tracing.\n :param span: Span object"
528
false
census-instrumentation/opencensus-python
set_monitored_resource_attributes
6,664
LDU_FT/KvasirSecurity/kvasirapi-python/add
LDU_FT
[ "<BEGIN>\n## `load`", "Load a YAML configuration file.", " :param configuration: Configuration filename or YAML string\n<END>", "<BEGIN>\n## `instances`", "Returns a dict of all instances defined using a regex", " :param test_type: Regular expression to match for self.instance['test_type'] v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add evidence :param host: db.t_hosts.id :param filename: Filename :param data: Content of file :param f_type: Evidence type :param f_other_type: If f_type is 'Other' what type it is :param f_text: Text information about the evidence :return: (True/False, response...
"Add evidence\n\n :param host: db.t_hosts.id\n :param filename: Filename\n :param data: Content of file\n :param f_type: Evidence type\n :param f_other_type: If f_type is 'Other' what type it is\n :param f_text: Text information about the evidence\n :return: (True/False,...
66
false
KvasirSecurity/kvasirapi-python
add
6,665
LDU_FT/coderholic/pyradio/_toggle_transparency
LDU_FT
[ "<BEGIN>\n## `toggleTransparency`", "Toggles theme trasparency.", " force_value will set trasparency if True or False,\n or toggle trasparency if None\n<END>", "<BEGIN>\n## `keypress`", "returns theme_id, save_theme\n return_id\n 0-.. : id in self._theme\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _toggle_transparency 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 _toggle_transparency API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Toggles theme trasparency. changed_from_config_window is used to inhibit toggling from within Config Window when 'T' is pressed. force_value will set trasparency if True or False, or toggle trasparency if None
"Toggles theme trasparency.\n\n changed_from_config_window is used to inhibit toggling from within\n Config Window when 'T' is pressed.\n\n force_value will set trasparency if True or False,\n or toggle trasparency if None"
65
false
coderholic/pyradio
_toggle_transparency
6,666
LDU_FT/pmelchior/proxmin/match
LDU_FT
[ "<BEGIN>\n## `prox_gradf_lim`", "Forward-backward step: gradient, followed by projection\n<END>", "<BEGIN>\n## `prox_lim12`", "if boundary == \"circle\":\n if j == 0:\n xy = np.array([x[0], Xs[1][0]])\n if j == 1:\n xy = np.array([Xs[0][0], x[0]])\n return [prox_circ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match API. 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 match API. 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...
Rearranges columns of S to best fit the components they likely represent (maximizes sum of correlations)
"Rearranges columns of S to best fit the components they likely represent (maximizes sum of correlations)"
91
false
pmelchior/proxmin
match
6,667
LDU_FT/jantman/webhook2lambda2sqs/handle_event
LDU_FT
[ "<BEGIN>\n## `webhook2lambda2sqs_handler`", "Main entry point/handler for the lambda function. Wraps\n :py:func:`~.handle_event` to ensure that we log detailed information if it\n raises an exception.", " :param event: Lambda event that triggered the handler\n :type event: dict\n :param context: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_event API. 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 handle_event API. 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...
Do the actual event handling - try to enqueue the request. :param event: Lambda event that triggered the handler :type event: dict :param context: Lambda function context - see http://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html :return: JSON-serialized success response :rt...
"Do the actual event handling - try to enqueue the request.\n\n :param event: Lambda event that triggered the handler\n :type event: dict\n :param context: Lambda function context - see\n http://docs.aws.amazon.com/lambda/latest/dg/python-context-object.html\n :return: JSON-serialized success response\...
137
false
jantman/webhook2lambda2sqs
handle_event
6,668
LDU_FT/Azure/msrest-for-python/stream_download
LDU_FT
[ "<BEGIN>\n## `async_poller`", "Async Poller for long running operations.", " :param client: A msrest service client. Can be a SDK client and it will be casted to a ServiceClient.\n :type client: msrest.service_client.ServiceClient\n :param initial_response: The initial call response\n :type initial_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_download API. 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 stream_download API. 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...
Generator for streaming request body data.
"Generator for streaming request body data."
324
false
Azure/msrest-for-python
stream_download
6,669
LDU_FT/lorien/user_agent/fix_chrome_mac_platform
LDU_FT
[ "<BEGIN>\n## `fix_chrome_mac_platform`", "Chrome on Mac OS adds minor version number and uses underscores instead\n of dots. E.g. platform for Firefox will be: 'Intel Mac OS X 10.11'\n but for Chrome it will be 'Intel Mac OS X 10_11_6'.", " :param platform: - string like \"Macintosh; Intel Mac OS X 10....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_chrome_mac_platform 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 fix_chrome_mac_platform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Chrome on Mac OS adds minor version number and uses underscores instead of dots. E.g. platform for Firefox will be: 'Intel Mac OS X 10.11' but for Chrome it will be 'Intel Mac OS X 10_11_6'. :param platform: - string like "Macintosh; Intel Mac OS X 10.8" :return: platform with version number including ...
"Chrome on Mac OS adds minor version number and uses underscores instead\n of dots. E.g. platform for Firefox will be: 'Intel Mac OS X 10.11'\n but for Chrome it will be 'Intel Mac OS X 10_11_6'.\n\n :param platform: - string like \"Macintosh; Intel Mac OS X 10.8\"\n :return: platform with version number in...
25
false
lorien/user_agent
fix_chrome_mac_platform
6,670
LDU_FT/holtjma/msbwt/constructTotalCounts
LDU_FT
[ "<BEGIN>\n## `extendSeed`", "This function is intended to be an interactive technique for constructing transcripts, probably to be released\n in a future version of msbwt\n @param bwtFN - the filename of the BWT to load\n @param seedKmer - the seed sequence to use for construction\n @p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the constructTotalCounts 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 constructTotalCounts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This function constructs the total count for each valid character in the array or loads them if they already exist. These will always be stored in '<DIR>/totalCounts.p', a pickled file
"This function constructs the total count for each valid character in the array or loads them if they already exist.\n These will always be stored in '<DIR>/totalCounts.p', a pickled file"
84
false
holtjma/msbwt
constructTotalCounts
6,671
LDU_FT/flatangle/flatlib/term
LDU_FT
[ "<BEGIN>\n## `_roundSlist`", "Rounds a signed list over the last element and removes it.\n<END>", "<BEGIN>\n## `toFloat`", "Converts string or signed list to float.\n<END>", "<BEGIN>\n## `inDignities`", "Returns the dignities of A which belong to B.\n<END>", "<BEGIN>\n## `receives`", "Returns the dign...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the term API. 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 term API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns the term for a sign and longitude.
"Returns the term for a sign and longitude."
248
false
flatangle/flatlib
term
6,672