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/cidles/pressagio/delete_index
LDU_FT
[ "<BEGIN>\n## `create_ngram_table`", "Creates a table for n-gram of a give cardinality. The table name is\n constructed from this parameter, for example for cardinality `2` there\n will be a table `_2_gram` created.", " Parameters\n ----------\n cardinality : int\n T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_index API. 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 delete_index API. 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...
Delete index for the table with the given cardinality. Parameters ---------- cardinality : int The cardinality of the index to delete.
"Delete index for the table with the given cardinality.\n\n Parameters\n ----------\n cardinality : int\n The cardinality of the index to delete."
43
false
cidles/pressagio
delete_index
4,573
LDU_FT/KenjiTakahashi/td/modifyInPlace
LDU_FT
[ "<BEGIN>\n## `save`", "@decorator: Saves data after executing :func:.", " Also performs modifications set as permanent options.\n<END>", "<BEGIN>\n## `add`", "Adds new item to the model.", " Name argument may contain (ref:) syntax, which will be\n stripped down as needed.", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modifyInPlace API. 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 modifyInPlace API. 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...
Like Model.modify, but changes existing database instead of returning a new one.
"Like Model.modify, but changes existing database instead of\n returning a new one."
82
false
KenjiTakahashi/td
modifyInPlace
4,574
LDU_FT/thefab/tornadis/connect
LDU_FT
[ "<BEGIN>\n## `pubsub_pop_message`", "Pops a message for a subscribed client.", " Args:\n deadline (int): max number of seconds to wait (None => no timeout)", " Returns:\n Future with the popped message as result (or None if timeout\n or ConnectionError object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Connects the client object to redis. It's safe to use this method even if you are already connected. Note: this method is useless with autoconnect mode (default). Returns: a Future object with True as result if the connection was ok.
"Connects the client object to redis.\n\n It's safe to use this method even if you are already connected.\n Note: this method is useless with autoconnect mode (default).\n\n Returns:\n a Future object with True as result if the connection was ok."
89
false
thefab/tornadis
connect
4,575
LDU_FT/mozilla/configman/add_parser
LDU_FT
[ "<BEGIN>\n## `str_dict_keys`", "return a modified dict where all the keys that are anything but str get\n converted to str.\n E.g.", " >>> result = str_dict_keys({u'name': u'Peter', u'age': 99, 1: 2})\n >>> # can't compare whole dicts in doctests\n >>> result['name']\n u'Peter'\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
each time a subparser action is used to create a new parser object we must save the original args & kwargs. In a later phase of configman, we'll need to reproduce the subparsers exactly without resorting to copying. We save the args & kwargs in the 'foreign_data' section of the configm...
"each time a subparser action is used to create a new parser object\n we must save the original args & kwargs. In a later phase of\n configman, we'll need to reproduce the subparsers exactly without\n resorting to copying. We save the args & kwargs in the 'foreign_data'\n section of the co...
136
false
mozilla/configman
add_parser
4,576
LDU_FT/NJDFan/ctypes-bitfield/update
LDU_FT
[ "<BEGIN>\n## `_createunbound`", "Create a new UnboundNode representing a given class.\n<END>", "<BEGIN>\n## `_createbound`", "Create a new BoundNode representing a given object.\n<END>", "<BEGIN>\n## `findnode`", "Returns a Node pointing to obj.", " If obj is a ctypes-derived class, an UnboundNode is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
D.update([E, ]**F) -> None Update the bitfield from dict/iterable E and F. If E present and has a .keys() method, does: for k in E: D.k = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D.k = v In either case, this is followed by: for k in F: D.k = F[k] ...
"D.update([E, ]**F) -> None\n Update the bitfield from dict/iterable E and F.\n If E present and has a .keys() method, does: for k in E: D.k = E[k]\n If E present and lacks .keys() method, does: for (k, v) in E: D.k = v\n In either case, this is followed by: for k in F: D.k = F...
42
false
NJDFan/ctypes-bitfield
update
4,577
LDU_FT/wummel/linkchecker/has_changed
LDU_FT
[ "<BEGIN>\n## `start_output`", "Write start of checking info as gml comment.\n<END>", "<BEGIN>\n## `getaddresses`", "Return list of email addresses from given field value.\n<END>", "<BEGIN>\n## `build_url`", "Call super.build_url(), extract list of mail addresses from URL,\n and check their syntax.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_changed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_changed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Check if filename has changed since the last check. If this is the first check, assume the file is changed.
"Check if filename has changed since the last check. If this\n is the first check, assume the file is changed."
1,377
true
wummel/linkchecker
has_changed
4,578
LDU_FT/singularityhub/singularity-cli/inspect
LDU_FT
[ "<BEGIN>\n## `run`", "run is a wrapper to create, start, attach, and delete a container.", " Equivalent command line example: \n singularity oci run -b ~/bundle mycontainer", " Parameters\n ==========\n bundle: the full path to the bundle folder\n container_id:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inspect API. Each 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 inspect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
inspect will show labels, defile, runscript, and tests for an image Parameters ========== image: path of image to inspect json: print json instead of raw text (default True) quiet: Don't print result to the screen (default True) app: if defined, return help in context of a...
"inspect will show labels, defile, runscript, and tests for an image\n \n Parameters\n ==========\n image: path of image to inspect\n json: print json instead of raw text (default True)\n quiet: Don't print result to the screen (default True)\n app: if defined, return help in cont...
336
false
singularityhub/singularity-cli
inspect
4,579
LDU_FT/daveoncode/python-string-utils/strip_html
LDU_FT
[ "<BEGIN>\n## `is_url`", "Check if a string is a valid url.", " :param string: String to check.\n :param allowed_schemes: List of valid schemes ('http', 'https', 'ftp'...). Default to None (any scheme is valid).\n :return: True if url, false otherwise\n :rtype: bool\n<END>", "<BEGIN>\n## `is_credit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Remove html code contained into the given string. :param string: String to manipulate. :type string: str :param keep_tag_content: True to preserve tag content, False to remove tag and its content too (default). :type keep_tag_content: bool :return: String with html removed. :rtype: str
"Remove html code contained into the given string.\n\n :param string: String to manipulate.\n :type string: str\n :param keep_tag_content: True to preserve tag content, False to remove tag and its content too (default).\n :type keep_tag_content: bool\n :return: String with html removed.\n :rtype: str"
46
false
daveoncode/python-string-utils
strip_html
4,580
LDU_FT/buckhx/QuadKey/geo_to_pixel
LDU_FT
[ "<BEGIN>\n## `geo_to_pixel`", "Transform from geo coordinates to pixel coordinates\n<END>", "<BEGIN>\n## `from_geo`", "Constucts a quadkey representation from geo and level\n geo => (lat, lon)\n If lat or lon are outside of bounds, they will be clipped\n If level is outside of bounds, an AssertionErr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the geo_to_pixel API. 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 geo_to_pixel API. 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...
Transform from geo coordinates to pixel coordinates
"Transform from geo coordinates to pixel coordinates"
10
false
buckhx/QuadKey
geo_to_pixel
4,581
LDU_FT/dunovank/jupyter-themes/set_context
LDU_FT
[ "<BEGIN>\n## `install_theme`", "Install theme to jupyter_customcss with specified font, fontsize,\n md layout, and toolbar pref\n<END>", "<BEGIN>\n## `infer_theme`", "checks jupyter_config_dir() for text file containing theme name\n (updated whenever user installs a new theme)\n<END>", "<BEGIN>\n## `s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_context API. 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 set_context API. 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...
Most of this code has been copied/modified from seaborn.rcmod.plotting_context() ::Arguments:: context (str): 'paper', 'notebook', 'talk', or 'poster' fscale (float): font-size scalar applied to axes ticks, legend, labels, etc.
"Most of this code has been copied/modified from seaborn.rcmod.plotting_context()\n ::Arguments::\n context (str): 'paper', 'notebook', 'talk', or 'poster'\n fscale (float): font-size scalar applied to axes ticks, legend, labels, etc."
38
false
dunovank/jupyter-themes
set_context
4,582
LDU_FT/mardix/Juice/route
LDU_FT
[ "<BEGIN>\n## `get_env`", "Return the Capitalize environment name\n It can be used to retrieve class base config\n Default: Development\n :returns: str\n<END>", "<BEGIN>\n## `init_app`", "To bind middlewares, plugins that needs the 'app' object to init\n Bound middlewares will be assigned on cls.in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the route API. Each 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 route API. Each 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...
This decorator defines custom route for both class and methods in the view. It behaves the same way as Flask's @app.route on class: It takes the following args - rule: the root route of the endpoint - decorators: a list of decorators to run on each method on methods: ...
"This decorator defines custom route for both class and methods in the view.\n It behaves the same way as Flask's @app.route\n\n on class:\n It takes the following args\n - rule: the root route of the endpoint\n - decorators: a list of decorators to run on each method\n\n on method...
101
false
mardix/Juice
route
4,583
LDU_FT/pyqt/python-qt5/createqtconf
LDU_FT
[ "<BEGIN>\n## `set_base_dir`", "Set the base directory to be used for all relative filenames.\n<END>", "<BEGIN>\n## `_parse_alignment`", "Convert a C++ alignment to the corresponding flags.\n<END>", "<BEGIN>\n## `_layout_position`", "Return either (), (0, alignment), (row, column, rowspan, colspan) or\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createqtconf API. 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 createqtconf API. 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...
Create a qt.conf file next to the current executable
"Create a qt.conf file next to the current executable"
45
false
pyqt/python-qt5
createqtconf
4,584
LDU_FT/pre-commit/pre-commit/xargs
LDU_FT
[ "<BEGIN>\n## `_shuffled`", "Deterministically shuffle identically under both py2 + py3.\n<END>", "<BEGIN>\n## `envcontext`", "In this context, `os.environ` is modified according to `patch`.", " `patch` is an iterable of 2-tuples (key, value):\n `key`: string\n `value`:\n - string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xargs API. Each 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 xargs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
A simplified implementation of xargs. negate: Make nonzero successful and zero a failure target_concurrency: Target number of partitions to run concurrently
"A simplified implementation of xargs.\n\n negate: Make nonzero successful and zero a failure\n target_concurrency: Target number of partitions to run concurrently"
54
false
pre-commit/pre-commit
xargs
4,585
LDU_FT/tango-controls/pytango/execute
LDU_FT
[ "<BEGIN>\n## `get_object_executor`", "Returns the proper executor for the given object.", " If the object has *_executors* and *_green_mode* members it returns\n the submit callable for the executor corresponding to the green_mode.\n Otherwise it returns the global executor for the given green_mode.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Execute an operation and return the result.
"Execute an operation and return the result."
577
false
tango-controls/pytango
execute
4,586
LDU_FT/Azure/azure-uamqp-python/send_all_messages
LDU_FT
[ "<BEGIN>\n## `_close_received`", "Callback called when a connection CLOSE frame is received.\n This callback will process the received CLOSE error to determine if\n the connection is recoverable or whether it should be shutdown.\n :param error: The error information from the close\n f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_all_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_all_messages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Send all pending messages in the queue. This will return a list of the send result of all the pending messages so it can be determined if any messages failed to send. This function will open the client if it is not already open. :param close_on_done: Close the client once the messages a...
"Send all pending messages in the queue. This will return a list\n of the send result of all the pending messages so it can be\n determined if any messages failed to send.\n This function will open the client if it is not already open.\n\n :param close_on_done: Close the client once the mess...
299
false
Azure/azure-uamqp-python
send_all_messages
4,587
LDU_FT/sosreport/sos/to_args
LDU_FT
[ "<BEGIN>\n## `build_query_cmd`", "Builds the command needed to invoke the pgsql query as the postgres\n user.\n The query requires significant quoting work to satisfy both the\n shell and postgres parsing requirements. Note that this will generate\n a large amount of quoting in sos log...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return command arguments for this object. Return a list of the non-default options of this ``SoSOptions`` object in ``sosreport`` command line argument notation: ``["--all-logs", "-vvv"]``
"Return command arguments for this object.\n\n Return a list of the non-default options of this ``SoSOptions``\n object in ``sosreport`` command line argument notation:\n\n ``[\"--all-logs\", \"-vvv\"]``"
286
false
sosreport/sos
to_args
4,588
LDU_FT/django-leonardo/django-leonardo/server_error
LDU_FT
[ "<BEGIN>\n## `sort_dependencies`", "Sort a list of (app_config, models) pairs into a single list of models.\n The single list of models is sorted so that any model with a natural key\n is serialized before a normal model, and any model with a natural key\n dependency has it's dependencies serialized firs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_error API. 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 server_error API. 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...
500 error handler. Templates: :template:`500.html` Context: None
"500 error handler.\n\n Templates: :template:`500.html`\n Context: None"
267
false
django-leonardo/django-leonardo
server_error
4,589
LDU_FT/nickpandolfi/Cyther/call
LDU_FT
[ "<BEGIN>\n## `get_content`", "Finds the 'content' tag from a 'pattern' in the provided 'string'\n<END>", "<BEGIN>\n## `extract`", "Used to extract a given regex pattern from a string, given several options\n<END>", "<BEGIN>\n## `extractRuntime`", "Used to find the correct static lib name to pass to gcc\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Will call a set of commands and wrangle the output how you choose
"Will call a set of commands and wrangle the output how you choose"
131
false
nickpandolfi/Cyther
call
4,590
LDU_FT/Equitable/trump/add_override
LDU_FT
[ "<BEGIN>\n## `create`", "Create, or get if exists, a Symbol.\r", " Parameters\r\n ----------\r\n name : str\r\n A symbol's name is a primary key, used across\r\n the Trump ORM.\r\n description : str, optional\r\n An arbitrary string, used to store use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_override API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_override API. 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...
Appends a single indexed-value pair, to a symbol object, to be used during the final steps of the aggregation of the datatable. With default settings Overrides, get applied with highest priority. Parameters ---------- symbol : Symbol or str The Symbo...
"Appends a single indexed-value pair, to a symbol object, to be\r\n used during the final steps of the aggregation of the datatable.\r\n\r\n With default settings Overrides, get applied with highest priority.\r\n \r\n Parameters\r\n ----------\r\n symbol : Symbol or str\r\n ...
177
false
Equitable/trump
add_override
4,591
LDU_FT/textmagic/textmagic-rest-python/make_tm_request
LDU_FT
[ "<BEGIN>\n## `messages`", "Fetch messages by given session id.\n An useful synonym for \"messages/search\" command with provided `sessionId` parameter.\n Returns a list of :class:`Message` objects and a pager dict.", " :Example:", " messages = client.sessions.messages(1901001)", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_tm_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_tm_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 e...
Make a request to TextMagic REST APIv2. :param str method: "POST", "GET", "PUT" or "DELETE" :param str uri: URI to process request. :return: :class:`Response`
"Make a request to TextMagic REST APIv2.\n\n :param str method: \"POST\", \"GET\", \"PUT\" or \"DELETE\"\n :param str uri: URI to process request.\n :return: :class:`Response`"
112
false
textmagic/textmagic-rest-python
make_tm_request
4,592
LDU_FT/JamesPHoughton/pysd/set_components
LDU_FT
[ "<BEGIN>\n## `parse`", "context : <string> 'eqn', 'defn'\n If context is set to equation, lone identifiers will be parsed as calls to elements\n If context is set to definition, lone identifiers will be cleaned and returned.\n<END>", "<BEGIN>\n## `read_tabular`", "Reads a vensim ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_components API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_components API. 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...
Set the value of exogenous model elements. Element values can be passed as keyword=value pairs in the function call. Values can be numeric type or pandas Series. Series will be interpolated by integrator. Examples -------- >>> model.set_components({'birth_rate': 10}) ...
"Set the value of exogenous model elements.\n Element values can be passed as keyword=value pairs in the function call.\n Values can be numeric type or pandas Series.\n Series will be interpolated by integrator.\n\n Examples\n --------\n\n >>> model.set_components({'birth_rate'...
268
false
JamesPHoughton/pysd
set_components
4,593
LDU_FT/limodou/uliweb/_make_op
LDU_FT
[ "<BEGIN>\n## `get_frame_info`", "Return a dict of information about a given traceback.\n<END>", "<BEGIN>\n## `get_sort_field`", "Get sort column info according request, the data format just likes:\r", " ?sort=fieldA.asc&sort=fieldB.desc\r", " or:\r", " ?sort=fieldA&sort=fieldB&order...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_op API. 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 _make_op API. 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...
make op condition :param column: column object :param op: >, <, >=, !=, <=, ==, in_, :param value: volumn value :return: condition object
"make op condition\r\n :param column: column object\r\n :param op: >, <, >=, !=, <=, ==, in_,\r\n :param value: volumn value\r\n :return: condition object"
886
false
limodou/uliweb
_make_op
4,594
LDU_FT/matousc89/padasip/LDA_base
LDU_FT
[ "<BEGIN>\n## `standardize_back`", "This is function for de-standarization of input series.", " **Args:**", " * `xs` : standardized input (1 dimensional array)", " * `offset` : offset to add (float).", " * `scale` : scale (float).", " **Returns:**", " * `x` : original (destandardised)...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the LDA_base API. 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 LDA_base API. 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...
Base function used for Linear Discriminant Analysis. **Args:** * `x` : input matrix (2d array), every row represents new sample * `labels` : list of labels (iterable), every item should be label for \ sample with corresponding index **Returns:** * `eigenvalues`, `eigenvectors` : eigen...
"Base function used for Linear Discriminant Analysis.\n\n **Args:**\n\n * `x` : input matrix (2d array), every row represents new sample\n\n * `labels` : list of labels (iterable), every item should be label for \\\n sample with corresponding index\n\n **Returns:**\n \n * `eigenvalues`, `eigenvec...
327
false
matousc89/padasip
LDA_base
4,595
LDU_FT/limodou/uliweb/generate_adapter
LDU_FT
[ "<BEGIN>\n## `get_frame_info`", "Return a dict of information about a given traceback.\n<END>", "<BEGIN>\n## `get_sort_field`", "Get sort column info according request, the data format just likes:\r", " ?sort=fieldA.asc&sort=fieldB.desc\r", " or:\r", " ?sort=fieldA&sort=fieldB&order...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_adapter API. 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 generate_adapter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generates the url building function for a map.
"Generates the url building function for a map."
886
false
limodou/uliweb
generate_adapter
4,596
LDU_FT/project-rig/rig/unpack_routing_table_entry
LDU_FT
[ "<BEGIN>\n## `minimise`", "Remove from the routing table any entries which could be replaced by\n default routing.", " Parameters\n ----------\n routing_table : [:py:class:`~rig.routing_table.RoutingTableEntry`, ...]\n Routing table from which to remove entries which could be handled by\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack_routing_table_entry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack_routing_table_entry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Unpack a routing table entry read from a SpiNNaker machine. Parameters ---------- packet : :py:class:`bytes` Bytes containing a packed routing table. Returns ------- (:py:class:`~rig.routing_table.RoutingTableEntry`, app_id, core) or None Tuple containing the routing entry, the...
"Unpack a routing table entry read from a SpiNNaker machine.\n\n Parameters\n ----------\n packet : :py:class:`bytes`\n Bytes containing a packed routing table.\n\n Returns\n -------\n (:py:class:`~rig.routing_table.RoutingTableEntry`, app_id, core) or None\n Tuple containing the routing...
983
false
project-rig/rig
unpack_routing_table_entry
4,597
LDU_FT/antiboredom/videogrep/parse_auto_sub
LDU_FT
[ "<BEGIN>\n## `parse_auto_sub`", "Parses webvtt and returns timestamps for words and lines\n Tested on automatically generated subtitles from YouTube\n<END>", "<BEGIN>\n## `framerate`", "setter for the framerate attribute\n :param framerate:\n :return:\n<END>", "<BEGIN>\n## `frames_to_tc`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_auto_sub API. 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 parse_auto_sub API. 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...
Parses webvtt and returns timestamps for words and lines Tested on automatically generated subtitles from YouTube
"Parses webvtt and returns timestamps for words and lines\n Tested on automatically generated subtitles from YouTube"
37
false
antiboredom/videogrep
parse_auto_sub
4,598
LDU_FT/se-esss-litterbox/Pynac/dynacRepresentation
LDU_FT
[ "<BEGIN>\n## `from_dynacRepr`", "Construct a ``Quad`` instance from the Pynac lattice element\n<END>", "<BEGIN>\n## `scaleField`", "Adjust the field of the magnet by the value of ``scalingFactor``. The adjustment\n is multiplicative, so a value of ``scalingFactor = 1.0`` will result in no change\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dynacRepresentation 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 dynacRepresentation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return the Pynac representation of this Set4DAperture instance.
"Return the Pynac representation of this Set4DAperture instance."
52
false
se-esss-litterbox/Pynac
dynacRepresentation
4,599
LDU_FT/tensorflow/datasets/_load_chunk
LDU_FT
[ "<BEGIN>\n## `_decode_image`", "Reads and decodes an image from a file object as a Numpy array.", " The SUN dataset contains images in several formats (despite the fact that\n all of them have .jpg extension). Some of them are:\n - BMP (RGB)\n - PNG (grayscale, RGBA, RGB interlaced)\n - JPEG (RGB)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_chunk API. 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 _load_chunk API. 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...
Loads a data chunk as specified by the paths. Args: dat_path: Path to dat file of the chunk. cat_path: Path to cat file of the chunk. info_path: Path to info file of the chunk. Returns: Tuple with the dat, cat, info_arrays.
"Loads a data chunk as specified by the paths.\n\n Args:\n dat_path: Path to dat file of the chunk.\n cat_path: Path to cat file of the chunk.\n info_path: Path to info file of the chunk.\n\n Returns:\n Tuple with the dat, cat, info_arrays."
609
false
tensorflow/datasets
_load_chunk
4,600
LDU_FT/swimlane/swimlane-python/set_python
LDU_FT
[ "<BEGIN>\n## `add_record_references`", "Bulk operation to directly add record references without making any additional requests", " Warnings:\n Does not perform any app, record, or target app/record validation", " Args:\n app_id (str): Full App ID string\n record...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_python API. 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 set_python API. 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...
Override to remove key from raw data when empty to work with server 2.16+ validation
"Override to remove key from raw data when empty to work with server 2.16+ validation"
273
false
swimlane/swimlane-python
set_python
4,601
LDU_FT/cwacek/python-jsonschema-objects/_build_literal
LDU_FT
[ "<BEGIN>\n## `validate_items`", "Validates the items in the backing array, including\n performing type validation.", " Sets the _typed property and clears the dirty flag as a side effect", " Returns:\n The typed array\n<END>", "<BEGIN>\n## `create`", "Create an array valida...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_literal API. 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 _build_literal API. 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...
@todo: Docstring for _build_literal :nm: @todo :clsdata: @todo :returns: @todo
"@todo: Docstring for _build_literal\n\n :nm: @todo\n :clsdata: @todo\n :returns: @todo"
41
false
cwacek/python-jsonschema-objects
_build_literal
4,602
LDU_FT/knipknap/exscript/process_rawq
LDU_FT
[ "<BEGIN>\n## `get_protocol_from_name`", "Returns the protocol class for the protocol with the given name.", " :type name: str\n :param name: The name of the protocol.\n :rtype: Protocol\n :return: The protocol class.\n<END>", "<BEGIN>\n## `create_protocol`", "Returns an instance of the protoco...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_rawq API. 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 process_rawq API. 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...
Transfer from raw queue to cooked queue. Set self.eof when connection is closed. Don't block unless in the midst of an IAC sequence.
"Transfer from raw queue to cooked queue.\n\n Set self.eof when connection is closed. Don't block unless in\n the midst of an IAC sequence."
683
false
knipknap/exscript
process_rawq
4,603
LDU_FT/sdispater/pendulum/average
LDU_FT
[ "<BEGIN>\n## `_safe_timezone`", "Creates a timezone instance\n from a string, Timezone, TimezoneInfo or integer offset.\n<END>", "<BEGIN>\n## `datetime`", "Creates a new DateTime instance from a specific date and time.\n<END>", "<BEGIN>\n## `local`", "Return a DateTime in the local timezone.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the average API. Each 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 average API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Modify the current instance to the average of a given instance (default now) and the current instance. :type dt: DateTime or datetime :rtype: DateTime
"Modify the current instance to the average\n of a given instance (default now) and the current instance.\n\n :type dt: DateTime or datetime\n\n :rtype: DateTime"
366
false
sdispater/pendulum
average
4,604
LDU_FT/phuijse/P4J/set_data
LDU_FT
[ "<BEGIN>\n## `set_data`", "Saves the light curve data, where \n mjd: modified julian date (time instants)\n mag: stellar magnitude \n err: photometric error", " If whitten is True the data is normalized to have zero\n mean and unit standard deviation. Note that robust \n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extracte...
Saves the light curve data, where mjd: modified julian date (time instants) mag: stellar magnitude err: photometric error If whitten is True the data is normalized to have zero mean and unit standard deviation. Note that robust estimators of these quantities a...
"Saves the light curve data, where \n mjd: modified julian date (time instants)\n mag: stellar magnitude \n err: photometric error\n \n If whitten is True the data is normalized to have zero\n mean and unit standard deviation. Note that robust \n estimators of these quan...
52
false
phuijse/P4J
set_data
4,605
LDU_FT/jtpaasch/simplygithub/get_ref
LDU_FT
[ "<BEGIN>\n## `get_url`", "Get the URL for a resource.", " Args:", " profile\n A profile generated from ``simplygithub.authentication.profile``.\n Such profiles tell this module (i) the ``repo`` to connect to,\n and (ii) the ``token`` to connect with.", " res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ref API. Each 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_ref API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Fetch a ref. Args: profile A profile generated from ``simplygithub.authentication.profile``. Such profiles tell this module (i) the ``repo`` to connect to, and (ii) the ``token`` to connect with. ref The ref to fetch, e.g., ``heads/my-feature-branch...
"Fetch a ref.\n\n Args:\n\n profile\n A profile generated from ``simplygithub.authentication.profile``.\n Such profiles tell this module (i) the ``repo`` to connect to,\n and (ii) the ``token`` to connect with.\n\n ref\n The ref to fetch, e.g., ``heads/my-fea...
224
false
jtpaasch/simplygithub
get_ref
4,606
LDU_FT/rackerlabs/lambda-uploader/requirements
LDU_FT
[ "<BEGIN>\n## `package_meta`", "Read __init__.py for global package metadata.\n Do this without importing the package.\n<END>", "<BEGIN>\n## `subscribe`", "Subscribes the lambda to the Kinesis stream\n<END>", "<BEGIN>\n## `_format_vpc_config`", "Returns {} if the VPC config is set to None by Config,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requirements API. 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 requirements API. 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...
Sets the requirements for the package. It will take either a valid path to a requirements file or a list of requirements.
"Sets the requirements for the package.\n\n It will take either a valid path to a requirements file or\n a list of requirements."
28
false
rackerlabs/lambda-uploader
requirements
4,607
LDU_FT/riga/law/send_mail
LDU_FT
[ "<BEGIN>\n## `full_parser`", "Returns the full *ArgumentParser* used by the luigi ``CmdlineParser``. The returned instance is\n cached.\n<END>", "<BEGIN>\n## `root_task_parser`", "Returns a new *ArgumentParser* instance that only contains paremeter actions of the root task.\n The returned instance is ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_mail API. 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 send_mail API. 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...
Lightweight mail functionality. Sends an mail from *sender* to *recipient* with *subject* and *content*. *smtp_host* and *smtp_port* are forwarded to the ``smtplib.SMTP`` constructor. *True* is returned on success, *False* otherwise.
"Lightweight mail functionality. Sends an mail from *sender* to *recipient* with *subject* and\n *content*. *smtp_host* and *smtp_port* are forwarded to the ``smtplib.SMTP`` constructor. *True*\n is returned on success, *False* otherwise."
279
false
riga/law
send_mail
4,608
LDU_FT/fmenabe/python-dokuwiki/get
LDU_FT
[ "<BEGIN>\n## `date`", "DokuWiki returns dates of `xmlrpclib`/`xmlrpc.client` ``DateTime``\n type and the format changes between DokuWiki versions ... This function\n convert *date* to a `datetime` object.\n<END>", "<BEGIN>\n## `utc2local`", "DokuWiki returns date with a +0000 timezone. This function con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns the content of *page*. The content of the last version is returned if *version* is not set.
"Returns the content of *page*. The content of the last version is\n returned if *version* is not set."
32
false
fmenabe/python-dokuwiki
get
4,609
LDU_FT/mrcagney/gtfstk/locate_trips
LDU_FT
[ "<BEGIN>\n## `get_stop_times`", "Return a subset of ``feed.stop_times``.", " Parameters\n ----------\n feed : Feed\n date : string\n YYYYMMDD date string restricting the output to trips active\n on the date", " Returns\n -------\n DataFrame\n Subset of ``feed.stop_tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the locate_trips API. 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 locate_trips API. 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...
Return the positions of all trips active on the given date and times Parameters ---------- feed : Feed date : string YYYYMMDD date string times : list HH:MM:SS time strings, possibly with HH > 23 Returns ------- DataFrame Columns are: - ``'trip_id'`...
"Return the positions of all trips active on the\n given date and times\n\n Parameters\n ----------\n feed : Feed\n date : string\n YYYYMMDD date string\n times : list\n HH:MM:SS time strings, possibly with HH > 23\n\n Returns\n -------\n DataFrame\n Columns are:\n\n ...
474
false
mrcagney/gtfstk
locate_trips
4,610
LDU_FT/crate/crash/_connect
LDU_FT
[ "<BEGIN>\n## `_padleft`", "Flush right.", " >>> _padleft(6, '\\u044f\\u0439\\u0446\\u0430') == ' \\u044f\\u0439\\u0446\\u0430'\n True\n<END>", "<BEGIN>\n## `_visible_width`", "Visible width of a printed string. ANSI color codes are removed.", " >>> _visible_width('\\x1b[31mhello\\x1b[0m'), _visi...
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 extracte...
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 extracte...
connect to the given server, e.g.: \\connect localhost:4200
"connect to the given server, e.g.: \\\\connect localhost:4200"
90
false
crate/crash
_connect
4,611
LDU_FT/getfleety/coralillo/q
LDU_FT
[ "<BEGIN>\n## `snake_case`", "Takes a string that represents for example a class name and returns\n the snake case version of it. It is used for model-to-key conversion\n<END>", "<BEGIN>\n## `value_or_default`", "Returns the given value or the specified default value for this\n field\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the q API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the q API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
Creates an iterator over the members of this class that applies the given filters and returns only the elements matching them
"Creates an iterator over the members of this class that applies the\n given filters and returns only the elements matching them"
62
false
getfleety/coralillo
q
4,612
LDU_FT/AlexandreDecan/python-intervals/to_atomic
LDU_FT
[ "<BEGIN>\n## `from_string`", "Parse given string and create an Interval instance.\n A converter function has to be provided to convert a bound (as string) to a value.", " :param string: string to parse.\n :param conv: function that converts a bound (as string) to an object.\n :param bound: pattern t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_atomic API. 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 to_atomic API. 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...
Return the smallest atomic interval containing this interval. :return: an AtomicInterval instance.
"Return the smallest atomic interval containing this interval.\n\n :return: an AtomicInterval instance."
40
false
AlexandreDecan/python-intervals
to_atomic
4,613
LDU_FT/pywavefront/PyWavefront/_load_vertex_buffers
LDU_FT
[ "<BEGIN>\n## `load_vertex_buffer`", "Load vertex data from file. Can be overriden to reduce data copy", " :param fd: file object\n :param material: The material these vertices belong to\n :param length: Byte length of the vertex data\n<END>", "<BEGIN>\n## `_load_vertex_buffers`", "Load ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_vertex_buffers 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 _load_vertex_buffers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Load each vertex buffer into each material
"Load each vertex buffer into each material"
42
false
pywavefront/PyWavefront
_load_vertex_buffers
4,614
LDU_FT/mapnik/Cascadenik/localize_file_datasource
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 localize_file_datasource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the localize_file_datasource API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Handle localizing file-based datasources other than shapefiles. This will only work for single-file based types.
"Handle localizing file-based datasources other than shapefiles.\n \n This will only work for single-file based types."
123
false
mapnik/Cascadenik
localize_file_datasource
4,615
LDU_FT/pymc-devs/pymc/internal_tally
LDU_FT
[ "<BEGIN>\n## `moral_graph`", "moral_graph(model,format='raw', prog='dot', path=None)", " Draws the moral graph for this model and writes it to path with filename name.\n Returns the pydot 'dot' object for further user manipulation.", " GraphViz and PyDot must be installed to use this function.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the internal_tally API. 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 internal_tally API. 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...
Store the trace of stochastics for the computation of the covariance. This trace is completely independent from the backend used by the sampler to store the samples.
"Store the trace of stochastics for the computation of the covariance.\n This trace is completely independent from the backend used by the\n sampler to store the samples."
1,025
true
pymc-devs/pymc
internal_tally
4,616
LDU_FT/getfleety/coralillo/mask_hash
LDU_FT
[ "<BEGIN>\n## `snake_case`", "Takes a string that represents for example a class name and returns\n the snake case version of it. It is used for model-to-key conversion\n<END>", "<BEGIN>\n## `value_or_default`", "Returns the given value or the specified default value for this\n field\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mask_hash API. 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 mask_hash API. 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...
Return the given hash, with only the first ``show`` number shown. The rest are masked with ``char`` for security reasons.
"Return the given hash, with only the first ``show`` number shown. The\n rest are masked with ``char`` for security reasons."
62
false
getfleety/coralillo
mask_hash
4,617
LDU_FT/kristianfoerster/melodist/disaggregate_precipitation
LDU_FT
[ "<BEGIN>\n## `calc_precipitation_stats`", "Calculates precipitation statistics for the cascade model while aggregating hourly observations", " Parameters\n ----------\n months : Months for each seasons to be used for statistics (array of numpy array, default=1-12, e.g., [np.arange(12...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disaggregate_precipitation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disaggregate_precipitation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Disaggregate precipitation. Parameters ---------- method : str, optional Disaggregation method. ``equal`` Daily precipitation is distributed equally over the 24 hours of the day. (Default) ``cascade`` Hourly precipitation val...
"Disaggregate precipitation.\n\n Parameters\n ----------\n method : str, optional\n Disaggregation method.\n\n ``equal``\n Daily precipitation is distributed equally over the 24 hours of the day. (Default)\n\n ``cascade``\n Hourly preci...
205
false
kristianfoerster/melodist
disaggregate_precipitation
4,618
LDU_FT/google/mobly/epoch_to_log_line_timestamp
LDU_FT
[ "<BEGIN>\n## `_parse_logline_timestamp`", "Parses a logline timestamp into a tuple.", " Args:\n t: Timestamp in logline format.", " Returns:\n An iterable of date and time elements in the order of month, day, hour,\n minute, second, microsecond.\n<END>", "<BEGIN>\n## `logline_time...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the epoch_to_log_line_timestamp 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 epoch_to_log_line_timestamp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Converts an epoch timestamp in ms to log line timestamp format, which is readible for humans. Args: epoch_time: integer, an epoch timestamp in ms. time_zone: instance of tzinfo, time zone information. Using pytz rather than python 3.2 time_zone implementation for python ...
"Converts an epoch timestamp in ms to log line timestamp format, which\n is readible for humans.\n\n Args:\n epoch_time: integer, an epoch timestamp in ms.\n time_zone: instance of tzinfo, time zone information.\n Using pytz rather than python 3.2 time_zone implementation for\n ...
593
false
google/mobly
epoch_to_log_line_timestamp
4,619
LDU_FT/meowklaski/custom_inherit/DocInheritMeta
LDU_FT
[ "<BEGIN>\n## `parse_napoleon_doc`", "Extract the text from the various sections of a numpy-formatted docstring.", " Parameters\n ----------\n doc: Union[str, None]\n The docstring to parse.", " style: str\n 'google' or 'numpy'", " Returns\n ---...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DocInheritMeta API. 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 DocInheritMeta API. 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...
A metaclass that merges the respective docstrings of a parent class and of its child, along with their properties, methods (including classmethod, staticmethod, decorated methods). Parameters ---------- style: Union[Any, Callable[[str, str], str]], optional (default: "parent") ...
"A metaclass that merges the respective docstrings of a parent class and of its child, along with their\n properties, methods (including classmethod, staticmethod, decorated methods).\n\n Parameters\n ----------\n style: Union[Any, Callable[[str, str], str]], optional (default: \"parent\")\n...
54
false
meowklaski/custom_inherit
DocInheritMeta
4,620
LDU_FT/tanghaibao/goatools/get_pvalue
LDU_FT
[ "<BEGIN>\n## `run`", "Compare two or more sets of GO IDs. Best done using sections.\n<END>", "<BEGIN>\n## `get_nts_sorted`", "Return a flat list of grouped and sorted GO terms.\n<END>", "<BEGIN>\n## `get_sorted_hdrgo2usrgos`", "Return GO IDs sorting using go2nt's namedtuple.\n<END>", "<BEGIN>\n## `plot_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_pvalue API. 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_pvalue API. 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...
Returns pval for 1st method, if it exists. Else returns uncorrected pval.
"Returns pval for 1st method, if it exists. Else returns uncorrected pval."
996
false
tanghaibao/goatools
get_pvalue
4,621
LDU_FT/Legobot/Legobot/cleanup
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a server.", " This overrides the function in SimpleIRCClient\n to provide SSL functionality.", " :param args:\n :param kwargs:\n :return:\n<END>", "<BEGIN>\n## `set_metadata`", "This function sets the metadata that is common between p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API. Each 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 cleanup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Clean up finished children. :return: None
"Clean up finished children.\n\n :return: None"
119
false
Legobot/Legobot
cleanup
4,622
LDU_FT/ly0/baidupcsapi/delete_download_task
LDU_FT
[ "<BEGIN>\n## `__err_handler`", "百度网盘下载错误控制\n :param act: 出错时的行为, 有 download\n :param errno: 出错时的errno,这个要配合act才有实际意义\n :param callback: 返回时的调用函数, 为空时返回None\n :param args: 给callback函数的参数tuple\n :param kwargs: 给callback函数的带名参数字典", " 在本函数调用后一定可以解决提交过来的问题, 在外部不需要重复检查是否存在原问题...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_download_task 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 delete_download_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
删除离线下载任务. :param task_id: 要删除的任务ID号。 :type task_id: str :return: requests.Response
"删除离线下载任务.\n\n :param task_id: 要删除的任务ID号。\n :type task_id: str\n :return: requests.Response"
222
false
ly0/baidupcsapi
delete_download_task
4,623
LDU_FT/python-thumbnails/python-thumbnails/get
LDU_FT
[ "<BEGIN>\n## `text_filter`", "A text-filter helper, used in ``markdown_thumbnails``-filter and ``html_thumbnails``-filter.\n It can be used to build custom thumbnail text-filters.", " :param regex_base: A string with a regex that contains ``%(captions)s`` and ``%(image)s`` where\n th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Wrapper for ``_get``, which converts the thumbnail_name to String if necessary before calling ``_get`` :rtype: Thumbnail
"Wrapper for ``_get``, which converts the thumbnail_name to String if necessary before\n calling ``_get``\n\n :rtype: Thumbnail"
41
false
python-thumbnails/python-thumbnails
get
4,624
LDU_FT/teaearlgraycold/puni/get_json
LDU_FT
[ "<BEGIN>\n## `full_url`", "Return the full reddit URL associated with the usernote.", " Arguments:\n subreddit: the subreddit name for the note (PRAW Subreddit object)\n<END>", "<BEGIN>\n## `_compress_url`", "Convert a reddit URL into the short-hand used by usernotes.", " Argument...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_json API. 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_json API. 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 the JSON stored on the usernotes wiki page. Returns a dict representation of the usernotes (with the notes BLOB decoded). Raises: RuntimeError if the usernotes version is incompatible with this version of puni.
"Get the JSON stored on the usernotes wiki page.\n\n Returns a dict representation of the usernotes (with the notes BLOB\n decoded).\n\n Raises:\n RuntimeError if the usernotes version is incompatible with this\n version of puni."
45
false
teaearlgraycold/puni
get_json
4,625
LDU_FT/underworldcode/stripy/remove_duplicate_lonlat
LDU_FT
[ "<BEGIN>\n## `install_documentation`", "Install the example notebooks for litho1pt0 in the given location", " WARNING: If the path exists, the Notebook files will be written into the path\n and will overwrite any existing files with which they collide. The default\n path (\"./Litho1pt0-Notebooks\") is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_duplicate_lonlat 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 remove_duplicate_lonlat API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
remove duplicates from an array of lon / lat points
"remove duplicates from an array of lon / lat points"
224
false
underworldcode/stripy
remove_duplicate_lonlat
4,626
LDU_FT/amelchio/pysonos/parse_event_xml
LDU_FT
[ "<BEGIN>\n## `iter_actions`", "Yield the service's actions with their arguments.", " Yields:\n `Action`: the next action.", " Each action is an Action namedtuple, consisting of action_name\n (a string), in_args (a list of Argument namedtuples consisting of name\n and arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_event_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_event_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Parse the body of a UPnP event. Args: xml_event (bytes): bytes containing the body of the event encoded with utf-8. Returns: dict: A dict with keys representing the evented variables. The relevant value will usually be a string representation of the variable...
"Parse the body of a UPnP event.\n\n Args:\n xml_event (bytes): bytes containing the body of the event encoded\n with utf-8.\n\n Returns:\n dict: A dict with keys representing the evented variables. The\n relevant value will usually be a string representation of the\n ...
60
false
amelchio/pysonos
parse_event_xml
4,627
LDU_FT/zsethna/OLGA/compute_CDR3_pgen
LDU_FT
[ "<BEGIN>\n## `nt2aa`", "Translate a nucleotide sequence into an amino acid sequence.", " Parameters\n ----------\n ntseq : str\n Nucleotide sequence composed of A, C, G, or T (uppercase or lowercase)", " Returns\n -------\n aaseq : str\n Amino acid sequence", " Example\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_CDR3_pgen API. 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 compute_CDR3_pgen API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Compute Pgen for CDR3 'amino acid' sequence CDR3_seq from VDJ model. Conditioned on the already formatted V genes/alleles indicated in V_usage_mask and the J genes/alleles in J_usage_mask. (Examples are TCRB sequences/model) Parameters ---------- CDR3_seq : st...
"Compute Pgen for CDR3 'amino acid' sequence CDR3_seq from VDJ model.\n \n Conditioned on the already formatted V genes/alleles indicated in \n V_usage_mask and the J genes/alleles in J_usage_mask. \n (Examples are TCRB sequences/model)\n \n Parameters\n ----------\n CDR3...
287
false
zsethna/OLGA
compute_CDR3_pgen
4,628
LDU_FT/rigetti/grove/estimate_from_ssr
LDU_FT
[ "<BEGIN>\n## `_prepare_c_jk_m`", "Prepare the coefficient matrix for state tomography. This function uses sparse matrices\n for much greater efficiency.\n The coefficient matrix is defined as:", " .. math::", " C_{(jk)m} = \\tr{\\Pi_{s_j} \\Lambda_k(P_m)} = \\sum_{r}\\pi_{jr}(\\mathcal{R}_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the estimate_from_ssr API. 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 estimate_from_ssr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Estimate a quantum process from single shot histograms obtained by preparing specific input states and measuring bitstrings in the Z-eigenbasis after application of given channel operators. :param numpy.ndarray histograms: The single shot histograms. :param DiagonalPOVM readout_povm: Th...
"Estimate a quantum process from single shot histograms obtained by preparing specific input\n states and measuring bitstrings in the Z-eigenbasis after application of given channel\n operators.\n\n :param numpy.ndarray histograms: The single shot histograms.\n :param DiagonalPOVM readout_po...
428
false
rigetti/grove
estimate_from_ssr
4,629
LDU_FT/jazzband/sorl-thumbnail/_cropbox
LDU_FT
[ "<BEGIN>\n## `is_valid_image`", "Wand library makes sure when opening any image that is fine, when\n the image is corrupted raises an exception.\n<END>", "<BEGIN>\n## `parse_geometry`", "Parses a geometry string syntax and returns a (width, height) tuple\n<END>", "<BEGIN>\n## `parse_crop`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cropbox API. 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 _cropbox API. 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...
Crops the image to a set of x,y coordinates (x,y) is top left, (x2,y2) is bottom left
"Crops the image to a set of x,y coordinates (x,y) is top left, (x2,y2) is bottom left"
68
false
jazzband/sorl-thumbnail
_cropbox
4,630
LDU_FT/vladsaveliev/TargQC/_flatten_plus_safe
LDU_FT
[ "<BEGIN>\n## `main`", "Annotating BED file based on reference features annotations.\n<END>", "<BEGIN>\n## `downsample`", "get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/\n<END>", "<BEGIN>\n## `AddIndex`", "Recursiv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _flatten_plus_safe 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 _flatten_plus_safe 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...
Flatten names of files and create temporary file names.
"Flatten names of files and create temporary file names."
184
false
vladsaveliev/TargQC
_flatten_plus_safe
4,631
LDU_FT/mixmastamyk/fr/get_diskinfo
LDU_FT
[ "<BEGIN>\n## `cprint`", "Print a string in a specified color style and then return to normal.\n def cprint(text, fg=white, bg=blackbg, w=norm, cr=True):\n<END>", "<BEGIN>\n## `bargraph`", "Creates a monochrome or two-color bar graph.\n<END>", "<BEGIN>\n## `get_diskinfo`", "Returns a list holding th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_diskinfo API. 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 get_diskinfo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a list holding the current disk info. Stats are divided by the outputunit.
"Returns a list holding the current disk info.\n Stats are divided by the outputunit."
36
false
mixmastamyk/fr
get_diskinfo
4,632
LDU_FT/cloudboss/friend/random_hex
LDU_FT
[ "<BEGIN>\n## `cached`", "A decorator function to cache values. It uses the decorated\n function's arguments as the keys to determine if the function\n has been called previously.\n<END>", "<BEGIN>\n## `retry_wait_time`", "Determine a retry wait time based on the number of the\n retry attempt and a ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_hex API. 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 random_hex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return a random hex string. :param int length: The length of string to return :returns: A random string :rtype: str
"Return a random hex string.\n\n :param int length: The length of string to return\n :returns: A random string\n :rtype: str"
49
false
cloudboss/friend
random_hex
4,633
LDU_FT/schapman1974/tinymongo/parse_query
LDU_FT
[ "<BEGIN>\n## `parse_md_to_rst`", "Read Markdown file and convert to ReStructured Text.\n<END>", "<BEGIN>\n## `build_table`", "Builds a new tinydb table at the parent database\n :return:\n<END>", "<BEGIN>\n## `drop`", "Removes a collection from the database.\n **kwargs only because of the opt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 parse_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...
Creates a tinydb Query() object from the query dict :param query: object containing the dictionary representation of the query :return: composite Query()
"Creates a tinydb Query() object from the query dict\n\n :param query: object containing the dictionary representation of the\n query\n :return: composite Query()"
38
false
schapman1974/tinymongo
parse_query
4,634
LDU_FT/pyusb/pyusb/getDescriptor
LDU_FT
[ "<BEGIN>\n## `_try_get_string`", "try to get a string, but return a string no matter what\n<END>", "<BEGIN>\n## `_try_lookup`", "try to get a string from the lookup table, return \"\" instead of key\n error\n<END>", "<BEGIN>\n## `find`", "r\"\"\"Find an USB device and return it.", " find() is the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getDescriptor API. 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 getDescriptor API. 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...
r"""Retrieves a descriptor from the device identified by the type and index of the descriptor. Arguments: desc_type: descriptor type. desc_index: index of the descriptor. len: descriptor length. endpoint: ignored.
"r\"\"\"Retrieves a descriptor from the device identified by the type\n and index of the descriptor.\n\n Arguments:\n desc_type: descriptor type.\n desc_index: index of the descriptor.\n len: descriptor length.\n endpoint: ignored."
229
false
pyusb/pyusb
getDescriptor
4,635
LDU_FT/quantmind/pulsar/get_params
LDU_FT
[ "<BEGIN>\n## `slugify`", "Normalizes string, removes non-alpha characters,\n and converts spaces to ``separator`` character\n<END>", "<BEGIN>\n## `multi_bulk`", "Multi bulk encoding for list/tuple ``args``\n<END>", "<BEGIN>\n## `is_mainthread`", "Check if thread is the main thread.", " If ``thread...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_params API. 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_params API. 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...
Create an array or positional or named parameters Mixing positional and named parameters in one call is not possible.
"Create an array or positional or named parameters\n Mixing positional and named parameters in one\n call is not possible."
643
false
quantmind/pulsar
get_params
4,636
LDU_FT/pyvisa/pyvisa-sim/read
LDU_FT
[ "<BEGIN>\n## `_get_triplet`", "Return a triplet from a dialogue dictionary.", " :param dd: Dialogue dictionary.\n :type dd: Dict[str, str]\n :return: (query, response, error response)\n :rtype: (str, str | NoResponse, str | NoResponse)\n<END>", "<BEGIN>\n## `_load`", "YAML Parse a file or str an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each 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 read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a single byte from the output buffer
"Return a single byte from the output buffer"
85
false
pyvisa/pyvisa-sim
read
4,637
LDU_FT/barrust/mediawiki/logos
LDU_FT
[ "<BEGIN>\n## `timeout`", "Set request timeout in seconds (or fractions of a second)\n<END>", "<BEGIN>\n## `language`", "Set the language to use; attempts to change the API URL\n<END>", "<BEGIN>\n## `login`", "Login as specified user", " Args:\n username (str): The username to l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logos API. Each 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 logos API. Each 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...
list: Parse images within the infobox signifying either the main \ image or logo Note: Not settable Note: Side effect is to also pull the html which can be slow Note: This is a parsing operation and not part of the st...
"list: Parse images within the infobox signifying either the main \\\n image or logo\n\n Note:\n Not settable\n Note:\n Side effect is to also pull the html which can be slow\n Note:\n This is a parsing operation and not part...
107
false
barrust/mediawiki
logos
4,638
LDU_FT/cathalgarvey/deadlock/ephemeral
LDU_FT
[ "<BEGIN>\n## `get_slanted_adjacent_coords`", "returns the six adjacent coordinates on a standard keyboard, where each row is slanted to the right from the last.\n adjacencies are clockwise, starting with key to the left, then two keys above, then right key, then two keys below.\n (that is, only near-diagona...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ephemeral API. 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 ephemeral API. 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...
Creates a new ephemeral key constructed using a raw 32-byte string from urandom. Ephemeral keys are used once for each encryption task and are then discarded; they are not intended for long-term or repeat use.
"Creates a new ephemeral key constructed using a raw 32-byte string from urandom.\n Ephemeral keys are used once for each encryption task and are then discarded;\n they are not intended for long-term or repeat use."
73
false
cathalgarvey/deadlock
ephemeral
4,639
LDU_FT/TissueMAPS/TmDeploy/_check_keypair
LDU_FT
[ "<BEGIN>\n## `__init_os_api`", "Initialise client objects for talking to OpenStack API.", " This is in a separate function so to be called by ``__init__`` and\n ``__setstate__``.\n<END>", "<BEGIN>\n## `stop_instance`", "Stops the instance gracefully.", " :param str instance_id: instan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_keypair API. 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 _check_keypair API. 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...
First checks if the keypair is valid, then checks if the keypair is registered with on the cloud. If not the keypair is added to the users ssh keys. :param str name: name of the ssh key :param str public_key_path: path to the ssh public key file :param str private_key_path: path...
"First checks if the keypair is valid, then checks if the keypair\n is registered with on the cloud. If not the keypair is added to the\n users ssh keys.\n\n :param str name: name of the ssh key\n :param str public_key_path: path to the ssh public key file\n :param str private_key_pat...
192
false
TissueMAPS/TmDeploy
_check_keypair
4,640
LDU_FT/google/dotty/accept
LDU_FT
[ "<BEGIN>\n## `generate_chunks`", "Yield 'chunk_size' items from 'data' at a time.\n<END>", "<BEGIN>\n## `reduce`", "Repeatedly call fold and merge on data and then finalize.", " Arguments:\n data: Input for the fold function.\n reducer: The IReducer to use.\n chunk_size: How many ite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accept API. Each 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 accept API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Like 'match', but consume the token (tokenizer advances.)
"Like 'match', but consume the token (tokenizer advances.)"
284
false
google/dotty
accept
4,641
LDU_FT/Fizzadar/pyinfra/keyscan
LDU_FT
[ "<BEGIN>\n## `agent`", "Run puppet agent", " + server: master server URL\n + port: puppet master port\n<END>", "<BEGIN>\n## `load_deploy_config`", "Loads any local config overrides in the deploy file.\n<END>", "<BEGIN>\n## `_parse_mode`", "Converts ls mode output (rwxrwxrwx) -> integer (755).\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyscan API. Each 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 keyscan API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Check/add hosts to the ``~/.ssh/known_hosts`` file. + hostname: hostname that should have a key in ``known_hosts`` + force: if the key already exists, remove and rescan
"Check/add hosts to the ``~/.ssh/known_hosts`` file.\n\n + hostname: hostname that should have a key in ``known_hosts``\n + force: if the key already exists, remove and rescan"
336
false
Fizzadar/pyinfra
keyscan
4,642
LDU_FT/klis87/django-cloudinary-storage/get_files_to_remove
LDU_FT
[ "<BEGIN>\n## `get_needful_files`", "Returns currently used static files.\n Assumes that manifest staticfiles.json is up-to-date.\n<END>", "<BEGIN>\n## `model_file_fields`", "Generator yielding all instances of FileField and its subclasses of a model.\n<END>", "<BEGIN>\n## `get_resource_types`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_files_to_remove 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 get_files_to_remove 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...
Returns orphaned media files to be removed grouped by resource type. All files which paths start with any of exclude paths are ignored.
"Returns orphaned media files to be removed grouped by resource type.\n All files which paths start with any of exclude paths are ignored."
20
false
klis87/django-cloudinary-storage
get_files_to_remove
4,643
LDU_FT/Asana/python-asana/dependencies
LDU_FT
[ "<BEGIN>\n## `fetch_token`", "Exchange a code (and 'state' token) for a bearer token\n<END>", "<BEGIN>\n## `find_by_id`", "Returns the complete tag record for a single tag.", " Parameters\n ----------\n tag : {Id} The tag to get.\n [params] : {Object} Parameters for the request\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dependencies API. 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 dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns the compact representations of all of the dependencies of a task. Parameters ---------- task : {Id} The task to get dependencies on. [params] : {Object} Parameters for the request
"Returns the compact representations of all of the dependencies of a task.\n\n Parameters\n ----------\n task : {Id} The task to get dependencies on.\n [params] : {Object} Parameters for the request"
318
false
Asana/python-asana
dependencies
4,644
LDU_FT/datadotworld/data.world-py/get_dataset
LDU_FT
[ "<BEGIN>\n## `download_dataset`", "Download dataset\n This endpoint will return a .zip containing all files within the dataset as originally uploaded. If you are interested retrieving clean data extracted from those files by data.world, check out `GET:/sql` and `GET:/sparql`.\n This method makes a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dataset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dataset API. 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...
Retrieve an existing dataset definition This method retrieves metadata about an existing :param dataset_key: Dataset identifier, in the form of owner/id :type dataset_key: str :returns: Dataset definition, with all attributes :rtype: dict :raises RestApiException: If a ...
"Retrieve an existing dataset definition\n\n This method retrieves metadata about an existing\n\n :param dataset_key: Dataset identifier, in the form of owner/id\n :type dataset_key: str\n :returns: Dataset definition, with all attributes\n :rtype: dict\n :raises RestApiExcepti...
398
false
datadotworld/data.world-py
get_dataset
4,645
LDU_FT/gitenberg-dev/gitberg/rect
LDU_FT
[ "<BEGIN>\n## `remote_path`", "turns an ebook_id into a path on PG's server(s)\n 4443 -> 4/4/4/4443/\n<END>", "<BEGIN>\n## `make`", "turn fetched files into a local repo, make auxiliary files\n<END>", "<BEGIN>\n## `push`", "create a github repo and push the local repo into it\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
See the Processing function rect(): https://processing.org/reference/rect_.html
"See the Processing function rect():\n https://processing.org/reference/rect_.html"
51
false
gitenberg-dev/gitberg
rect
4,646
LDU_FT/broadinstitute/fiss/meth_wdl
LDU_FT
[ "<BEGIN>\n## `_set_session`", "Sets global __SESSION and __USER_ID if they haven't been set\n<END>", "<BEGIN>\n## `_fiss_agent_header`", "Return request headers for fiss.\n Inserts FISS as the User-Agent.\n Initializes __SESSION if it hasn't been set.", " Args:\n headers (dict): Incl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the meth_wdl API. 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 meth_wdl API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Retrieve WDL for given version of a repository method
"Retrieve WDL for given version of a repository method"
375
false
broadinstitute/fiss
meth_wdl
4,647
LDU_FT/zikzakmedia/python-mediawiki/getCommon
LDU_FT
[ "<BEGIN>\n## `to_unicode`", "Convert a `str` object to an `unicode` object.", "\tIf `charset` is given, we simply assume that encoding for the text,\n\tbut we'll use the \"replace\" mode so that the decoding will always\n\tsucceed.\n\tIf `charset` is ''not'' specified, we'll make some guesses, first\n\ttrying t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCommon API. 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 getCommon API. 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...
getCommon() returns the length of the longest common substring of both arguments, starting at the beginning of both.
"getCommon() returns the length of the longest common substring\n\t\tof both arguments, starting at the beginning of both."
19
false
zikzakmedia/python-mediawiki
getCommon
4,648
LDU_FT/karimbahgat/PyGeoj/validate
LDU_FT
[ "<BEGIN>\n## `validate`", "Checks that the geojson data is a feature collection, that it\n contains a proper \"features\" attribute, and that all features are valid too.\n Returns True if all goes well.", " - skiperrors will throw away any features that fail to validate.\n - fixerrors will attempt t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Checks that the geojson data is a feature collection, that it contains a proper "features" attribute, and that all features are valid too. Returns True if all goes well. - skiperrors will throw away any features that fail to validate. - fixerrors will attempt to auto fix any minor errors without raisin...
"Checks that the geojson data is a feature collection, that it\n contains a proper \"features\" attribute, and that all features are valid too.\n Returns True if all goes well.\n\n - skiperrors will throw away any features that fail to validate.\n - fixerrors will attempt to auto fix any minor errors withou...
49
false
karimbahgat/PyGeoj
validate
4,649
LDU_FT/django-ses/django-ses/_get_cert_url
LDU_FT
[ "<BEGIN>\n## `certificate`", "Retrieves the certificate used to sign the bounce message.", " TODO: Cache the certificate based on the cert URL so we don't have to\n retrieve it for each bounce message. *We would need to do it in a\n secure way so that the cert couldn't be overwritten in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cert_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cert_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 ext...
Get the signing certificate URL. Only accept urls that match the domains set in the AWS_SNS_BOUNCE_CERT_TRUSTED_DOMAINS setting. Sub-domains are allowed. i.e. if amazonaws.com is in the trusted domains then sns.us-east-1.amazonaws.com will match.
"Get the signing certificate URL.\n Only accept urls that match the domains set in the\n AWS_SNS_BOUNCE_CERT_TRUSTED_DOMAINS setting. Sub-domains\n are allowed. i.e. if amazonaws.com is in the trusted domains\n then sns.us-east-1.amazonaws.com will match."
27
false
django-ses/django-ses
_get_cert_url
4,650
LDU_FT/MatterMiners/cobald/asyncio_main_run
LDU_FT
[ "<BEGIN>\n## `exclusive`", "Mark a callable as exclusive", " :param via: factory for a Lock to guard the callable", " Guards the callable against being entered again before completion.\n Explicitly raises a :py:exc:`RuntimeError` on violation.", " :note: If applied to a method, it is exclusive a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asyncio_main_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asyncio_main_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create an ``asyncio`` event loop running in the main thread and watching runners Using ``asyncio`` to handle suprocesses requires a specific loop type to run in the main thread. This function sets up and runs the correct loop in a portable way. In addition, it runs a single :py:class:`~.BaseRunner` until c...
"Create an ``asyncio`` event loop running in the main thread and watching runners\n\n Using ``asyncio`` to handle suprocesses requires a specific loop type to run in the main thread.\n This function sets up and runs the correct loop in a portable way.\n In addition, it runs a single :py:class:`~.BaseRunner` un...
74
false
MatterMiners/cobald
asyncio_main_run
4,651
LDU_FT/jonhadfield/creds/write_authorized_keys
LDU_FT
[ "<BEGIN>\n## `create_plan`", "Determine what changes are required.", " args:\n existing_users (Users): List of discovered users\n proposed_users (Users): List of proposed users\n purge_undefined (bool): Remove discovered users that have not been defined in proposed users list\n pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_authorized_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_authorized_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Write public keys back to authorized_keys file. Create keys directory if it doesn't already exist. args: user (User): Instance of User containing keys. returns: list: Authorised keys for the specified user.
"Write public keys back to authorized_keys file. Create keys directory if it doesn't already exist.\n\n args:\n user (User): Instance of User containing keys.\n\n returns:\n list: Authorised keys for the specified user."
71
false
jonhadfield/creds
write_authorized_keys
4,652
LDU_FT/NeuroML/NeuroMLlite/generate_lems_file
LDU_FT
[ "<BEGIN>\n## `create_new_model`", "net.projections.append(Projection(id='proj0',\n presynaptic=p0.id, \n postsynaptic=p1.id,\n synapse='ampa'))", " net.projections[0].random_connectivity=RandomConne...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_lems_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_lems_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Generate a LEMS file to use in simulations of the NeuroML file
"Generate a LEMS file to use in simulations of the NeuroML file"
35
false
NeuroML/NeuroMLlite
generate_lems_file
4,653
LDU_FT/tino/pyFirmata/str_to_two_byte_iter
LDU_FT
[ "<BEGIN>\n## `setup_layout`", "Setup the Pin instances based on the given board layout.\n<END>", "<BEGIN>\n## `auto_setup`", "Automatic setup based on Firmata's \"Capability Query\"\n<END>", "<BEGIN>\n## `get_pin`", "Returns the activated pin given by the pin definition.\n May raise an ``InvalidPin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_to_two_byte_iter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_to_two_byte_iter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return a iter consisting of two byte chars from a string.
"Return a iter consisting of two byte chars from a string."
43
false
tino/pyFirmata
str_to_two_byte_iter
4,654
LDU_FT/astraw38/lint/above_score_threshold
LDU_FT
[ "<BEGIN>\n## `cd_ctx`", "Context manager. Stores current dir, then changes to given directory.\n At the end it changes back.\n :param directory:\n :return:\n<END>", "<BEGIN>\n## `dump_to_console`", "Displays pylint data to the console.", " :param pylint_data:\n :return:\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the above_score_threshold 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 above_score_threshold API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Verifies that the pylint score is above a given threshold. :param new_data: :param old_data: :return:
"Verifies that the pylint score is above a given threshold.\n\n :param new_data:\n :param old_data:\n :return:"
48
false
astraw38/lint
above_score_threshold
4,655
LDU_FT/tBuLi/symfit/nonanalytical_func
LDU_FT
[ "<BEGIN>\n## `seperate_symbols`", "Seperate the symbols in symbolic function func. Return them in alphabetical\n order.", " :param func: scipy symbolic function.\n :return: (vars, params), a tuple of all variables and parameters, each \n sorted in alphabetical order.\n :raises TypeError: only...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nonanalytical_func 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 nonanalytical_func 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...
This can be any pythonic function which should be fitted, typically one which is not easily written or supported as an analytical expression.
"This can be any pythonic function which should be fitted, typically one\n which is not easily written or supported as an analytical expression."
239
false
tBuLi/symfit
nonanalytical_func
4,656
LDU_FT/agusmakmun/djipsum/randomCharField
LDU_FT
[ "<BEGIN>\n## `randomCharField`", "Checking if `field_name` has choices.\n Then, returning random value from it.\n Result of: `available_choices`\n [\n ('project', 'I wanna to talk about project'),\n ('feedback', 'I want to report a bugs or give feedback'),\n ('hello...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the randomCharField API. 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 randomCharField API. 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...
Checking if `field_name` has choices. Then, returning random value from it. Result of: `available_choices` [ ('project', 'I wanna to talk about project'), ('feedback', 'I want to report a bugs or give feedback'), ('hello', 'I just want to say hello') ]
"Checking if `field_name` has choices.\n Then, returning random value from it.\n Result of: `available_choices`\n [\n ('project', 'I wanna to talk about project'),\n ('feedback', 'I want to report a bugs or give feedback'),\n ('hello', 'I just want to say hello')\n ...
30
false
agusmakmun/djipsum
randomCharField
4,657
LDU_FT/avanwyk/cipy/optimize
LDU_FT
[ "<BEGIN>\n## `dictionary_based_metrics`", "Higher order function creating a result type and collection function from\n the given metrics.", " Args:\n metrics (iterable): Sequence of callable metrics, each\n accepting the algorithm state as parameter and returning the\n measure...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the optimize API. 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 optimize API. 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...
Perform particle swarm optimization of the given fitness function. Args: objective_function: the cost function to optimize. stopping_condition: function specifying the stopping condition. parameters: dictionary: parameter dictionary for the PSO. Returns: cipy.algorithms.pso.Part...
"Perform particle swarm optimization of the given fitness function.\n Args:\n objective_function: the cost function to optimize.\n stopping_condition: function specifying the stopping condition.\n parameters: dictionary: parameter dictionary for the PSO.\n\n Returns:\n cipy.algorithms....
54
false
avanwyk/cipy
optimize
4,658
LDU_FT/ozak/georasters/apply
LDU_FT
[ "<BEGIN>\n## `map_pixel`", "Usage:\n map_pixel(xcoord, ycoord, x_cell_size, y_cell_size, xmin, ymax)", " where:\n xmin is leftmost X coordinate in system", " ymax is topmost Y coordinate in system", " Example:\n raster = HMISea.tif", " ndv, xsize, ysize, ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
geo.apply(func, *args, **kwargs) Returns the value of applying function func on the raster data func: Python function *args: Arguments of function **kwargs: Additional arguments of function
"geo.apply(func, *args, **kwargs)\n\n Returns the value of applying function func on the raster data\n\n func: Python function\n *args: Arguments of function\n **kwargs: Additional arguments of function"
136
false
ozak/georasters
apply
4,659
LDU_FT/woolfson-group/isambard/from_start_and_end
LDU_FT
[ "<BEGIN>\n## `covalent_bonds`", "Returns all the covalent bonds in a list of `Atom` pairs.", " Notes\n -----\n Uses information `element_data`, which can be accessed directly\n through this module i.e. `isambard.ampal.interactions.element_data`.", " Parameters\n ----------\n atoms : [(`At...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_start_and_end 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 from_start_and_end 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...
Creates a `Helix` between `start` and `end`. Parameters ---------- start : 3D Vector (tuple or list or numpy.array) The coordinate of the start of the helix primitive. end : 3D Vector (tuple or list or numpy.array) The coordinate of the end of the helix primitive...
"Creates a `Helix` between `start` and `end`.\n\n Parameters\n ----------\n start : 3D Vector (tuple or list or numpy.array)\n The coordinate of the start of the helix primitive.\n end : 3D Vector (tuple or list or numpy.array)\n The coordinate of the end of the helix p...
880
false
woolfson-group/isambard
from_start_and_end
4,660
LDU_FT/jasonbot/arcrest/SubmitJob
LDU_FT
[ "<BEGIN>\n## `_get_subfolder`", "Return an object of the requested type with the path relative\n to the current object's URL. Optionally, query parameters\n may be set.\n<END>", "<BEGIN>\n## `_contents`", "The raw contents of the URL as fetched, this is done lazily.\n For non-laz...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SubmitJob API. 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 SubmitJob API. 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...
Asynchronously execute the specified GP task. This will return a Geoprocessing Job object. Parameters are passed in either in order or as keywords.
"Asynchronously execute the specified GP task. This will return a \n Geoprocessing Job object. Parameters are passed in either in order\n or as keywords."
66
false
jasonbot/arcrest
SubmitJob
4,661
LDU_FT/sys-git/certifiable/certify_text
LDU_FT
[ "<BEGIN>\n## `load_value_from_schema`", "Load a value from a schema defined string.\n<END>", "<BEGIN>\n## `parse_value`", "Convert a string received on the command-line into\n a value or None.", " :param str v:\n The value to parse.\n :param parser:\n The fallback callable to load the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the certify_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the certify_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Certifier for human readable string values. :param unicode value: The string to be certified. :param int min_length: The minimum length of the string. :param int max_length: The maximum acceptable length for the string. By default, the length is not checked. :param nonprintable:...
"Certifier for human readable string values.\n\n :param unicode value:\n The string to be certified.\n :param int min_length:\n The minimum length of the string.\n :param int max_length:\n The maximum acceptable length for the string. By default, the length is not checked.\n :param nonp...
100
false
sys-git/certifiable
certify_text
4,662
LDU_FT/tgbugs/pyontutils/extract_fragment
LDU_FT
[ "<BEGIN>\n## `build_transgenic_lines`", "init class | \"transgenic_line_source_name\":\"stock_number\" a Class\n add superClass | rdfs:subClassOf ilxtr:transgenicLine\n add *order* | ilxtr:useObjectProperty ilxtr:<order>\n add name | rdfs:label \"name\"\n add def ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_fragment API. 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 extract_fragment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Pulls only for code/ID from the iri I only add the str() conversion for the iri because rdflib objects need to be converted.
"Pulls only for code/ID from the iri\n\n I only add the str() conversion for the iri because rdflib objects need to be converted."
301
false
tgbugs/pyontutils
extract_fragment
4,663
LDU_FT/ericsuh/dirichlet/loglikelihood
LDU_FT
[ "<BEGIN>\n## `meanprecision`", "Mean and precision of Dirichlet distribution.", " Parameters\n ----------\n a : array\n Parameters of Dirichlet distribution.", " Returns\n -------\n mean : array\n Numbers [0,1] of the means of the Dirichlet distribution.\n precision : float\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loglikelihood API. 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 loglikelihood API. 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...
Compute log likelihood of Dirichlet distribution, i.e. log p(D|a). Parameters ---------- D : 2D array where ``N`` is the number of observations, ``K`` is the number of parameters for the Dirichlet distribution. a : array Parameters for the Dirichlet distribution. Returns ...
"Compute log likelihood of Dirichlet distribution, i.e. log p(D|a).\n\n Parameters\n ----------\n D : 2D array\n where ``N`` is the number of observations, ``K`` is the number of\n parameters for the Dirichlet distribution.\n a : array\n Parameters for the Dirichlet distribution.\n\n ...
39
false
ericsuh/dirichlet
loglikelihood
4,664
LDU_FT/basler/pypylon/make_attribute_list
LDU_FT
[ "<BEGIN>\n## `shift`", "Return a list corresponding to the lines of text in the `txt` list\n indented by `indent`. Prepend instead the string given in `prepend` to the\n beginning of the first line. Note that if len(prepend) > len(indent), then\n `prepend` will be truncated (doing better is tricky!). Thi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_attribute_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_attribute_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. T...
Produces the "Attributes" section in class docstrings for public member variables (attributes).
"Produces the \"Attributes\" section in class docstrings for public\n member variables (attributes)."
42
false
basler/pypylon
make_attribute_list
4,665
LDU_FT/ibis-project/ibis/valid_function_signature
LDU_FT
[ "<BEGIN>\n## `compile`", "Force compilation of expression for the SQLite target\n<END>", "<BEGIN>\n## `find_names`", "Return the unique :class:`ast.Name` instances in an AST.", " Parameters\n ----------\n node : ast.AST", " Returns\n -------\n unique_names : List[ast.Name]", " Examp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid_function_signature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid_function_signature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Check that the declared number of inputs (the length of `input_type`) and the number of inputs to `func` are equal. Parameters ---------- input_type : List[DataType] func : callable Returns ------- inspect.Signature
"Check that the declared number of inputs (the length of `input_type`)\n and the number of inputs to `func` are equal.\n\n Parameters\n ----------\n input_type : List[DataType]\n func : callable\n\n Returns\n -------\n inspect.Signature"
1,079
true
ibis-project/ibis
valid_function_signature
4,666
LDU_FT/biocommons/bioutils/seq_md5
LDU_FT
[ "<BEGIN>\n## `fetch_seq`", "Fetches sequences and subsequences from NCBI eutils and Ensembl\n REST interfaces.", " :param string ac: accession of sequence to fetch\n :param int start_i: start position of *interbase* interval\n :param int end_i: end position of *interbase* interval", " **IMPORTA...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seq_md5 API. Each 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 seq_md5 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
returns unicode md5 as hex digest for sequence `seq`. >>> seq_md5('') 'd41d8cd98f00b204e9800998ecf8427e' >>> seq_md5('ACGT') 'f1f8f4bf413b16ad135722aa4591043e' >>> seq_md5('ACGT*') 'f1f8f4bf413b16ad135722aa4591043e' >>> seq_md5(' A C G T ') 'f1f8f4bf413b16ad135722aa4591043e' >>>...
"returns unicode md5 as hex digest for sequence `seq`.\n\n >>> seq_md5('')\n 'd41d8cd98f00b204e9800998ecf8427e'\n\n >>> seq_md5('ACGT')\n 'f1f8f4bf413b16ad135722aa4591043e'\n\n >>> seq_md5('ACGT*')\n 'f1f8f4bf413b16ad135722aa4591043e'\n\n >>> seq_md5(' A C G T ')\n 'f1f8f4bf413b16ad135722aa45910...
172
false
biocommons/bioutils
seq_md5
4,667
LDU_FT/YeoLab/anchor/binify
LDU_FT
[ "<BEGIN>\n## `plot_best_worst_fits`", "Violinplots of the highest and lowest scoring of each modality\n<END>", "<BEGIN>\n## `violinplot`", "Wrapper around Seaborn's Violinplot specifically for [0, 1] ranged data", " What's different:\n - bw = 0.2: Sets bandwidth to be small and the same between datase...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binify API. Each 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 binify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Makes a histogram of each column the provided binsize Parameters ---------- data : pandas.DataFrame A samples x features dataframe. Each feature (column) will be binned into the provided bins bins : iterable Bins you would like to use for this data. Must include the final bin ...
"Makes a histogram of each column the provided binsize\n\n Parameters\n ----------\n data : pandas.DataFrame\n A samples x features dataframe. Each feature (column) will be binned\n into the provided bins\n bins : iterable\n Bins you would like to use for this data. Must include the fin...
94
false
YeoLab/anchor
binify
4,668
LDU_FT/byu-dml/metalearn/get_canonical_correlations
LDU_FT
[ "<BEGIN>\n## `get_canonical_correlations`", "computes the correlation coefficient between each distinct pairing of columns\n preprocessing note:\n any rows with missing values (in either paired column) are dropped for that pairing\n categorical columns are replaced with one-hot encoded columns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_canonical_correlations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_canonical_correlations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
computes the correlation coefficient between each distinct pairing of columns preprocessing note: any rows with missing values (in either paired column) are dropped for that pairing categorical columns are replaced with one-hot encoded columns any columns which have only one distinct value (...
"computes the correlation coefficient between each distinct pairing of columns\n preprocessing note:\n any rows with missing values (in either paired column) are dropped for that pairing\n categorical columns are replaced with one-hot encoded columns\n any columns which have only one distinct va...
14
false
byu-dml/metalearn
get_canonical_correlations
4,669
LDU_FT/CityOfZion/neo-python/GetTransactionResults
LDU_FT
[ "<BEGIN>\n## `Clone`", "Clone self.", " Returns:\n AccountState:\n<END>", "<BEGIN>\n## `FromReplica`", "Get AccountState object from a replica.\n Args:\n replica (obj): must have ScriptHash, IsFrozen, Votes and Balances members.", " Returns:\n AccountS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetTransactionResults 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 GetTransactionResults API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get the execution results of the transaction. Returns: None: if the transaction has no references. list: of TransactionResult objects.
"Get the execution results of the transaction.\n\n Returns:\n None: if the transaction has no references.\n list: of TransactionResult objects."
962
false
CityOfZion/neo-python
GetTransactionResults
4,670
LDU_FT/yatiml/yatiml/make_mapping
LDU_FT
[ "<BEGIN>\n## `class_subobjects`", "Find the aggregated subobjects of an object.", " These are the public attributes.", " Args:\n class_: The class whose subobjects to return.", " Yields:\n Tuples (name, type, required) describing subobjects.\n<END>", "<BEGIN>\n## `__sweeten`", "Ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_mapping API. 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 make_mapping API. 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...
Replaces the node with a new, empty mapping. Note that this will work on the Node object that is passed to \ a yatiml_savorize() or yatiml_sweeten() function, but not on \ any of its attributes or items. If you need to set an attribute \ to a complex value, build a yaml.Node representin...
"Replaces the node with a new, empty mapping.\n\n Note that this will work on the Node object that is passed to \\\n a yatiml_savorize() or yatiml_sweeten() function, but not on \\\n any of its attributes or items. If you need to set an attribute \\\n to a complex value, build a yaml.Node re...
224
false
yatiml/yatiml
make_mapping
4,671
LDU_FT/equinor/segyio/reload
LDU_FT
[ "<BEGIN>\n## `create`", "Create a new segy file.", " Create a new segy file with the geometry and properties given by `spec`.\n This enables creating SEGY files from your data. The created file supports\n all segyio modes, but has an emphasis on writing. The spec must be\n complete, otherwise an exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload API. Each 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 reload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
This object will read header when it is constructed, which means it might be out-of-date if the file is updated through some other handle. It's rarely required to call this method, and it's a symptom of fragile code. However, if you have multiple handles to the same header, it might be ...
"This object will read header when it is constructed, which means it\n might be out-of-date if the file is updated through some other handle.\n\n It's rarely required to call this method, and it's a symptom of fragile\n code. However, if you have multiple handles to the same header, it\n mig...
250
false
equinor/segyio
reload
4,672