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/ska-sa/purr/fillDataProducts
LDU_FT
[ "<BEGIN>\n## `rotate`", "Rotate a coordinate around point (0,0).\n - x and y specify the coordinate.\n - degree is a number from 0 to 360.\n Returns a new coordinate.\n<END>", "<BEGIN>\n## `_compute_bounding_box`", "Given the list of coordinates (x,y), this procedure computes\n the smallest rectan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fillDataProducts API. 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 fillDataProducts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Fills listview with existing data products
"Fills listview with existing data products"
265
false
ska-sa/purr
fillDataProducts
24,173
LDU_FT/andrewsnowden/dota2py/creep_kill
LDU_FT
[ "<BEGIN>\n## `load_heroes`", "Load hero details from JSON file into memoy\n<END>", "<BEGIN>\n## `load_items`", "Load item details fom JSON file into memory\n<END>", "<BEGIN>\n## `debug_dump`", "Utility while developing to dump message data to play with in the\n interpreter\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the creep_kill API. 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 creep_kill API. 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...
A creep was tragically killed. Need to split this into radiant/dire and neutrals
"A creep was tragically killed. Need to split this into radiant/dire\n and neutrals"
45
false
andrewsnowden/dota2py
creep_kill
24,174
LDU_FT/cga-harvard/Hypermap-Registry/inverse_mercator
LDU_FT
[ "<BEGIN>\n## `update_schema`", "set the mapping in solr.\n :param catalog: core\n :return:\n<END>", "<BEGIN>\n## `create_layer_from_metadata_xml`", "Create a layer / keyword list from a metadata record if it does not already exist.\n<END>", "<BEGIN>\n## `create_service_from_endpoint`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inverse_mercator API. 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 inverse_mercator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Given coordinates in spherical mercator, return a lon,lat tuple.
"Given coordinates in spherical mercator, return a lon,lat tuple."
132
false
cga-harvard/Hypermap-Registry
inverse_mercator
24,175
LDU_FT/closeio/quotequail/get_html_tree
LDU_FT
[ "<BEGIN>\n## `quote`", "Takes a plain text message as an argument, returns a list of tuples. The\n first argument of the tuple denotes whether the text should be expanded by\n default. The second argument is the unmodified corresponding text.", " Example: [(True, 'expanded text'), (False, '> Some quote...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_html_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_html_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Given the HTML string, returns a LXML tree object. The tree is wrapped in <div> elements if it doesn't have a top level tag or parsing would otherwise result in an error. The wrapping can be later removed with strip_wrapping().
"Given the HTML string, returns a LXML tree object. The tree is wrapped in\n <div> elements if it doesn't have a top level tag or parsing would\n otherwise result in an error. The wrapping can be later removed with\n strip_wrapping()."
65
false
closeio/quotequail
get_html_tree
24,176
LDU_FT/IS-ENES-Data/esgf-pid/log_every_x_times
LDU_FT
[ "<BEGIN>\n## `logtrace`", "If esgfpid.defaults.LOG_TRACE_TO_DEBUG, messages are treated\n like debug messages (with an added [trace]).\n Otherwise, they are ignored.\n<END>", "<BEGIN>\n## `logdebug`", "Logs messages as DEBUG,\n unless show=True and esgfpid.defaults.LOG_SHOW_TO_INFO=True,\n (then i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_every_x_times API. 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 log_every_x_times API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Works like logdebug, but only prints first and and every xth message.
"Works like logdebug, but only prints first and\n and every xth message."
67
false
IS-ENES-Data/esgf-pid
log_every_x_times
24,177
LDU_FT/puiterwijk/flask-oidc/_after_request
LDU_FT
[ "<BEGIN>\n## `check_redirect_uris`", "This function checks all return uris provided and tries to deduce\n as what type of client we should register.", " :param uris: The redirect URIs to check.\n :type uris: list\n :param client_type: An indicator of which client type you are expecting\n to b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _after_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _after_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Set a new ID token cookie if the ID token has changed.
"Set a new ID token cookie if the ID token has changed."
74
false
puiterwijk/flask-oidc
_after_request
24,178
LDU_FT/uw-it-aca/uw-restclients/get_resource
LDU_FT
[ "<BEGIN>\n## `new_regid_custom_field`", "Return a BridgeCustomField object for REGID\n to be used in a POST, PATCH request\n<END>", "<BEGIN>\n## `get_reservations`", "Return a list of reservations matching the passed filter.\n Supported kwargs are listed at\n http://knowledge25.collegenet.com/display...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resource API. 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_resource API. 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...
Issue a GET request to R25 with the given url and return a response as an etree element.
"Issue a GET request to R25 with the given url\n and return a response as an etree element."
129
false
uw-it-aca/uw-restclients
get_resource
24,179
LDU_FT/tansey/gfl/hypercube_edges
LDU_FT
[ "<BEGIN>\n## `solve_gfl`", "A very easy-to-use version of GFL solver that just requires the data and\n the edges.\n<END>", "<BEGIN>\n## `sample_gtf`", "Generate samples from the generalized graph trend filtering distribution via a modified Swendsen-Wang slice sampling algorithm.\n Options for likelihood...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hypercube_edges API. 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 hypercube_edges API. 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...
Create edge lists for an arbitrary hypercube. TODO: this is probably not the fastest way.
"Create edge lists for an arbitrary hypercube. TODO: this is probably not the fastest way."
50
false
tansey/gfl
hypercube_edges
24,180
LDU_FT/OCHA-DAP/hdx-python-utilities/raisefrom
LDU_FT
[ "<BEGIN>\n## `raisefrom`", "Call Python 3 raise from or emulate it for Python 2", " Args:\n exc_type (Any): Type of Exception\n message (str): Error message to display\n exc (BaseException): original exception", " Returns:\n None\n<END>", "<BEGIN>\n## `get_session`", "Set...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raisefrom API. 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 raisefrom API. 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...
Call Python 3 raise from or emulate it for Python 2 Args: exc_type (Any): Type of Exception message (str): Error message to display exc (BaseException): original exception Returns: None
"Call Python 3 raise from or emulate it for Python 2\n\n Args:\n exc_type (Any): Type of Exception\n message (str): Error message to display\n exc (BaseException): original exception\n\n Returns:\n None"
232
false
OCHA-DAP/hdx-python-utilities
raisefrom
24,181
LDU_FT/GeorgeArgyros/symautomata/save
LDU_FT
[ "<BEGIN>\n## `main`", "Testing function for DFA brzozowski algebraic method Operation\n<END>", "<BEGIN>\n## `_bfs_sort`", "maintain a map of states distance using BFS\n Args:\n start (fst state): The initial DFA state\n Returns:\n list: An ordered list of DFA states\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each 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 save API. Each 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...
Save the machine in the openFST format in the file denoted by txt_fst_filename. Args: txt_fst_filename (str): The name of the file Returns: None
"Save the machine in the openFST format in the file denoted by\n txt_fst_filename.\n Args:\n txt_fst_filename (str): The name of the file\n Returns:\n None"
143
false
GeorgeArgyros/symautomata
save
24,182
LDU_FT/probcomp/crosscat/row_structural_typicality
LDU_FT
[ "<BEGIN>\n## `find`", "Find current canonical representative equivalent to node.", " Adjust the parent pointer of each node along the way to the root\n to point directly at the root for inverse-Ackerman-fast access.\n<END>", "<BEGIN>\n## `union`", "Assert equality of two nodes a and b so find(a) is fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the row_structural_typicality API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the row_structural_typicality API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Returns the typicality (opposite of anomalousness) of given row. :param row_id: id of the target row :type row_id: int :returns: float, the typicality, from 0 to 1
"Returns the typicality (opposite of anomalousness) of given row.\n\n :param row_id: id of the target row\n :type row_id: int\n\n :returns: float, the typicality, from 0 to 1"
92
false
probcomp/crosscat
row_structural_typicality
24,183
LDU_FT/christian-oudard/htmltreediff/merge_blocks
LDU_FT
[ "<BEGIN>\n## `diff`", "Show the differences between the old and new html document, as html.", " Return the document html with extra tags added to show changes. Add <ins>\n tags around newly added sections, and <del> tags to show sections that have\n been deleted.\n<END>", "<BEGIN>\n## `adjusted_ops`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_blocks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_blocks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Given two lists of blocks, combine them, in the proper order. Ensure that there are no overlaps, and that they are for sequences of the same length.
"Given two lists of blocks, combine them, in the proper order.\n\n Ensure that there are no overlaps, and that they are for sequences of the\n same length."
69
false
christian-oudard/htmltreediff
merge_blocks
24,184
LDU_FT/limpyd/redis-limpyd/release
LDU_FT
[ "<BEGIN>\n## `_make_command_method`", "Return a function which call _call_command for the given name.\n Used to bind redis commands to our own calls\n<END>", "<BEGIN>\n## `_call_command`", "Check if the command to be executed is a modifier, to connect the object.\n Then call _traverse_command.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release API. Each 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 release API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Really release the lock only if it's not a sub-lock. Then save the sub-lock status and mark the model as unlocked.
"Really release the lock only if it's not a sub-lock. Then save the\n sub-lock status and mark the model as unlocked."
408
false
limpyd/redis-limpyd
release
24,185
LDU_FT/pbrisk/unicum/row_append
LDU_FT
[ "<BEGIN>\n## `register_link`", "creates link from obj.attr to self\n :param obj: object to register link to\n :param attr: attribute name to register link to\n<END>", "<BEGIN>\n## `update_link`", "redirects all links to self (the new linked object)\n<END>", "<BEGIN>\n## `_is_visible`", "priv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the row_append API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the row_append API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
append a new row to a DataRange :param row_key: a string :param value_list: a list
"append a new row to a DataRange\n\n :param row_key: a string\n :param value_list: a list"
27
false
pbrisk/unicum
row_append
24,186
LDU_FT/doanguyen/lasotuvi/getLunarMonth11
LDU_FT
[ "<BEGIN>\n## `nhapDaiHan`", "Nhap dai han", " Args:\n cucSo (TYPE): Description\n gioiTinh (TYPE): Description", " Returns:\n TYPE: Description\n<END>", "<BEGIN>\n## `ngayThangNam`", "Summary", " Args:\n nn (TYPE): ngay\n tt (TYPE): thang\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getLunarMonth11 API. 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 getLunarMonth11 API. 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...
def getLunarMonth11(yy, timeZone): Find the day that starts the luner month 11of the given year for the given time zone.
"def getLunarMonth11(yy, timeZone): Find the day that starts the luner month\n 11of the given year for the given time zone."
47
false
doanguyen/lasotuvi
getLunarMonth11
24,187
LDU_FT/hasgeek/coaster/_value
LDU_FT
[ "<BEGIN>\n## `init_app`", "Enables logging for an app using :class:`LocalVarFormatter`. Requires the\n app to be configured and checks for the following configuration parameters.\n All are optional:", " * ``LOGFILE``: Name of the file to log to (default ``error.log``)\n * ``ADMINS``: List of email a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _value API. Each 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 _value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
The state value (called from the wrapper)
"The state value (called from the wrapper)"
344
false
hasgeek/coaster
_value
24,188
LDU_FT/rfosterslo/wagtailplus/add_panel_to_edit_handler
LDU_FT
[ "<BEGIN>\n## `add_panel_to_edit_handler`", "Adds specified panel class to model class.", " :param model: the model class.\n :param panel_cls: the panel class.\n :param heading: the panel heading.\n :param index: the index position to insert at.\n<END>", "<BEGIN>\n## `get_context_data`", "Returns...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_panel_to_edit_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_panel_to_edit_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Adds specified panel class to model class. :param model: the model class. :param panel_cls: the panel class. :param heading: the panel heading. :param index: the index position to insert at.
"Adds specified panel class to model class.\n\n :param model: the model class.\n :param panel_cls: the panel class.\n :param heading: the panel heading.\n :param index: the index position to insert at."
128
false
rfosterslo/wagtailplus
add_panel_to_edit_handler
24,189
LDU_FT/pmorissette/bt/allocate
LDU_FT
[ "<BEGIN>\n## `use_integer_positions`", "Set indicator to use (or not) integer positions for a given strategy or\n security.", " By default all positions in number of stocks should be integer.\n However this may lead to unexpected results when working with adjusted\n prices of stocks....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allocate API. 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 allocate API. 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...
Allocate capital to Strategy. By default, capital is allocated recursively down the children, proportionally to the children's weights. If a child is specified, capital will be allocated to that specific child. Allocation also have a side-effect. They will deduct the same amount ...
"Allocate capital to Strategy. By default, capital is allocated\n recursively down the children, proportionally to the children's\n weights. If a child is specified, capital will be allocated\n to that specific child.\n\n Allocation also have a side-effect. They will deduct the same amount\...
47
false
pmorissette/bt
allocate
24,190
LDU_FT/xav/Grapefruit/from_cmy
LDU_FT
[ "<BEGIN>\n## `rgb_to_hsl`", "Convert the color from RGB coordinates to HSL.", " Parameters:\n :r:\n The Red component value [0...1]\n :g:\n The Green component value [0...1]\n :b:\n The Blue component value [0...1]", " Returns:\n The color as an (h, s, l) tuple in the range:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_cmy API. 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 from_cmy API. 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...
Create a new instance based on the specifed CMY values. Parameters: :c: The Cyan component value [0...1] :m: The Magenta component value [0...1] :y: The Yellow component value [0...1] :alpha: The color transparency [0...1], default is opaque :wref: ...
"Create a new instance based on the specifed CMY values.\n\n Parameters:\n :c:\n The Cyan component value [0...1]\n :m:\n The Magenta component value [0...1]\n :y:\n The Yellow component value [0...1]\n :alpha:\n The color transparency [0...1], default is opaque\n ...
234
false
xav/Grapefruit
from_cmy
24,191
LDU_FT/chriso/gauged/add_namespace_statistics
LDU_FT
[ "<BEGIN>\n## `insert_keys`", "Insert keys into a table which assigns an ID\n<END>", "<BEGIN>\n## `replace_blocks`", "Replace multiple blocks. blocks must be a list of tuples where\n each tuple consists of (namespace, offset, key, data)\n<END>", "<BEGIN>\n## `remove_namespace`", "Remove all data ass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_namespace_statistics 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 add_namespace_statistics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Update namespace statistics for the period identified by offset
"Update namespace statistics for the period identified by\n offset"
62
false
chriso/gauged
add_namespace_statistics
24,192
LDU_FT/mgraffg/EvoDAG/predict
LDU_FT
[ "<BEGIN>\n## `compute_weight`", "Returns the weight (w) using OLS of r * w = gp._ytr\n<END>", "<BEGIN>\n## `isfinite`", "Test whether the predicted values are finite\n<END>", "<BEGIN>\n## `trace`", "Restore the position in the history of individual v's nodes\n<END>", "<BEGIN>\n## `tournament`", "Tourn...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict API. Each 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 predict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
In classification this returns the classes, in regression it is equivalent to the decision function
"In classification this returns the classes, in\n regression it is equivalent to the decision function"
42
false
mgraffg/EvoDAG
predict
24,193
LDU_FT/ajdavis/mongo-mockup-db/interactive_server
LDU_FT
[ "<BEGIN>\n## `go`", "Launch an operation on a thread and get a handle to its future result.", " >>> from time import sleep\n >>> def print_sleep_print(duration):\n ... sleep(duration)\n ... print('hello from background thread')\n ... sleep(duration)\n ... print('goodbye from ba...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interactive_server 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 interactive_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
A `MockupDB` that the mongo shell can connect to. Call `~.MockupDB.run` on the returned server, and clean it up with `~.MockupDB.stop`. If ``all_ok`` is True, replies {ok: 1} to anything unmatched by a specific responder.
"A `MockupDB` that the mongo shell can connect to.\n\n Call `~.MockupDB.run` on the returned server, and clean it up with\n `~.MockupDB.stop`.\n\n If ``all_ok`` is True, replies {ok: 1} to anything unmatched by a specific\n responder."
129
false
ajdavis/mongo-mockup-db
interactive_server
24,194
LDU_FT/mixmastamyk/console/fullscreen
LDU_FT
[ "<BEGIN>\n## `clear_line`", "Clear the current line.", " Arguments:", " mode: | 0 | 'forward' | 'right' - Clear cursor to end of line.\n | 1 | 'backward' | 'left' - Clear cursor to beginning of line.\n | 2 | 'full' - Clear entire line.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fullscreen API. 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 fullscreen API. 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...
Context Manager that enters full-screen mode and restores normal mode on exit. :: with screen.fullscreen(): print('Hello, world!')
"Context Manager that enters full-screen mode and restores normal\n mode on exit.\n\n ::\n\n with screen.fullscreen():\n print('Hello, world!')"
158
false
mixmastamyk/console
fullscreen
24,195
LDU_FT/kajala/django-jutil/format_xml
LDU_FT
[ "<BEGIN>\n## `se_iban_load_map`", "Loads Swedish monetary institution codes in CSV format.\n :param filename: CSV file name of the BIC definitions.\n Columns: Institution Name, Range Begin-Range End (inclusive), Account digits count\n :return: List of (bank name, clearing code begin, clearing code end, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_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 extrac...
Formats XML document as human-readable plain text. :param xml_str: str (Input XML str) :param exceptions: Raise exceptions on error :return: str (Formatted XML str)
"Formats XML document as human-readable plain text.\n :param xml_str: str (Input XML str)\n :param exceptions: Raise exceptions on error\n :return: str (Formatted XML str)"
110
false
kajala/django-jutil
format_xml
24,196
LDU_FT/Pytwitcher/pytwitcherapi/wrap_get_stream
LDU_FT
[ "<BEGIN>\n## `needs_auth`", "Wraps a method of :class:`TwitchSession` and\n raises an :class:`exceptions.NotAuthorizedError`\n if before calling the method, the session isn't authorized.", " :param meth:\n :type meth:\n :returns: the wrapped method\n :rtype: Method\n :raises: None\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_get_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_get_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Wrap the response from getting a stream into an instance and return it :param response: The response from getting a stream :type response: :class:`requests.Response` :returns: the new stream instance :rtype: :class:`list` of :class:`stream` :raises: None
"Wrap the response from getting a stream into an instance\n and return it\n\n :param response: The response from getting a stream\n :type response: :class:`requests.Response`\n :returns: the new stream instance\n :rtype: :class:`list` of :class:`stream`\n :raises: None"
198
false
Pytwitcher/pytwitcherapi
wrap_get_stream
24,197
LDU_FT/thiagopbueno/rddl2tf/Exponential
LDU_FT
[ "<BEGIN>\n## `constant`", "Returns a constant `value` TensorFluent with given `dtype`.", " Args:\n value: The constant value.\n dtype: The output's data type.", " Returns:\n A constant TensorFluent.\n<END>", "<BEGIN>\n## `Bernoulli`", "Returns a TensorFluent ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Exponential API. 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 Exponential API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns a TensorFluent for the Exponential sampling op with given mean parameter. Args: mean: The mean parameter of the Exponential distribution. batch_size: The size of the batch (optional). Returns: The Exponential distribution and a TensorFluent sample drawn from...
"Returns a TensorFluent for the Exponential sampling op with given mean parameter.\n\n Args:\n mean: The mean parameter of the Exponential distribution.\n batch_size: The size of the batch (optional).\n\n Returns:\n The Exponential distribution and a TensorFluent sample dr...
297
false
thiagopbueno/rddl2tf
Exponential
24,198
LDU_FT/KvasirSecurity/kvasirapi-python/load_calls
LDU_FT
[ "<BEGIN>\n## `load`", "Load a YAML configuration file.", " :param configuration: Configuration filename or YAML string\n<END>", "<BEGIN>\n## `instances`", "Returns a dict of all instances defined using a regex", " :param test_type: Regular expression to match for self.instance['test_type'] v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_calls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_calls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Loads the KvasirAPI calls into API.call based on the call_type variable. Utilizes the `Calls` class to establish an attribute-based access method. For instance a configuration with an instance called 'internal' will create an API.call that can be used like this: API.call.internal.hosts.list...
"Loads the KvasirAPI calls into API.call based on the call_type variable. Utilizes the `Calls` class to\n establish an attribute-based access method. For instance a configuration with an instance called 'internal'\n will create an API.call that can be used like this:\n\n API.call.internal.hosts...
66
false
KvasirSecurity/kvasirapi-python
load_calls
24,199
LDU_FT/openstax/rhaptos.cnxmlutils/_transform
LDU_FT
[ "<BEGIN>\n## `transform_collxml`", "Given a collxml file (collection.xml) this returns an HTML version of it\n (including \"include\" anchor links to the modules)\n<END>", "<BEGIN>\n## `transform_cnxml`", "Given a module cnxml file (index.cnxml) this returns an HTML version of it\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _transform API. 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 _transform API. 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...
Transforms the xml using the specifiec xsl file.
"Transforms the xml using the specifiec xsl file."
32
false
openstax/rhaptos.cnxmlutils
_transform
24,200
LDU_FT/cyface/django-termsandconditions/terms_required
LDU_FT
[ "<BEGIN>\n## `is_path_protected`", "returns True if given path is to be protected, otherwise False", " The path is not to be protected when it appears on:\n TERMS_EXCLUDE_URL_PREFIX_LIST, TERMS_EXCLUDE_URL_LIST, TERMS_EXCLUDE_URL_CONTAINS_LIST or as\n ACCEPT_TERMS_PATH\n<END>", "<BEGIN>\n## `process_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the terms_required API. 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 terms_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
This decorator checks to see if the user is logged in, and if so, if they have accepted the site terms.
"This decorator checks to see if the user is logged in, and if so, if they have accepted the site terms."
34
false
cyface/django-termsandconditions
terms_required
24,201
LDU_FT/peterwittek/somoclu/load_bmus
LDU_FT
[ "<BEGIN>\n## `_check_cooling_parameters`", "Helper function to verify the cooling parameters of the training.\n<END>", "<BEGIN>\n## `_hexplot`", "Internal function to plot a hexagonal map.\n<END>", "<BEGIN>\n## `load_bmus`", "Load the best matching units from a file to the Somoclu object.", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_bmus API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_bmus API. 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...
Load the best matching units from a file to the Somoclu object. :param filename: The name of the file. :type filename: str.
"Load the best matching units from a file to the Somoclu object.\n\n :param filename: The name of the file.\n :type filename: str."
55
false
peterwittek/somoclu
load_bmus
24,202
LDU_FT/PixelwarStudio/PyTree/get_size
LDU_FT
[ "<BEGIN>\n## `generate_branches`", "Generates branches with alternative system.", " Args:\n scales (tuple/array): Indicating how the branch/es length/es develop/s from age to age.\n angles (tuple/array): Holding the branch and shift angle in radians.\n shift_angle (float): Holding the ro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_size API. 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_size API. 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 size of the tree. Returns: tupel: (width, height)
"Get the size of the tree.\n\n Returns:\n tupel: (width, height)"
63
false
PixelwarStudio/PyTree
get_size
24,203
LDU_FT/marrow/mongo/create_indexes
LDU_FT
[ "<BEGIN>\n## `process_fields`", "Process a list of simple string field definitions and assign their order based on prefix.\n<END>", "<BEGIN>\n## `create`", "Create this index in the specified collection; keyword arguments are passed to PyMongo.", "\t\thttp://api.mongodb.com/python/current/api/pymongo/collec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_indexes API. 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 create_indexes API. 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...
Iterate all known indexes and construct them. https://api.mongodb.com/python/current/api/pymongo/collection.html#pymongo.collection.Collection.create_indexes
"Iterate all known indexes and construct them.\n\t\t\n\t\thttps://api.mongodb.com/python/current/api/pymongo/collection.html#pymongo.collection.Collection.create_indexes"
175
false
marrow/mongo
create_indexes
24,204
LDU_FT/kivy/buildozer/path_or_git_url
LDU_FT
[ "<BEGIN>\n## `_sdkmanager`", "Call the sdkmanager in our Android SDK with the given arguments.\n<END>", "<BEGIN>\n## `_locate_java`", "If JAVA_HOME is in the environ, return $JAVA_HOME/bin/s. Otherwise,\n return s.\n<END>", "<BEGIN>\n## `_android_get_installed_platform_tools_version`", "Crudely par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path_or_git_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path_or_git_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 e...
Get source location for a git checkout This method will check the `buildozer.spec` for the keys: {repo}_dir {repo}_url {repo}_branch and use them to determine the source location for a git checkout. If a `platform` is specified, {platform}.{repo} will be us...
"Get source location for a git checkout\n\n This method will check the `buildozer.spec` for the keys:\n {repo}_dir\n {repo}_url\n {repo}_branch\n\n and use them to determine the source location for a git checkout.\n\n If a `platform` is specified, {platform}.{repo} ...
54
false
kivy/buildozer
path_or_git_url
24,205
LDU_FT/atztogo/phonopy/set_modulations
LDU_FT
[ "<BEGIN>\n## `_set_translations`", "Set primitive translations in supercell", " _trans_s\n Translations with respect to supercell basis vectors\n _trans_p\n Translations with respect to primitive cell basis vectors\n _N\n Number of the translations = det(sup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_modulations API. 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 set_modulations API. 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...
Generate atomic displacements of phonon modes. The design of this feature is not very satisfactory, and thus API. Therefore it should be reconsidered someday in the fugure. Parameters ---------- dimension : array_like Supercell dimension with respect to the primitive...
"Generate atomic displacements of phonon modes.\n\n The design of this feature is not very satisfactory, and thus API.\n Therefore it should be reconsidered someday in the fugure.\n\n Parameters\n ----------\n dimension : array_like\n Supercell dimension with respect to the ...
417
false
atztogo/phonopy
set_modulations
24,206
LDU_FT/pmacosta/pcsv/_homogenize_data_filter
LDU_FT
[ "<BEGIN>\n## `dsort`", "r\"\"\"\n Sort file data.", " :param fname: Name of the comma-separated values file to sort\n :type fname: FileNameExists_", " :param order: Sort order\n :type order: :ref:`CsvColFilter`", " :param has_header: Flag that indicates whether the comma-separated\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _homogenize_data_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _homogenize_data_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Make data filter definition consistent. Create a tuple where first element is the row filter and the second element is the column filter
"Make data filter definition consistent.\n\n Create a tuple where first element is the row filter and the second element\n is the column filter"
171
false
pmacosta/pcsv
_homogenize_data_filter
24,207
LDU_FT/erikrose/conway/is_bored_of
LDU_FT
[ "<BEGIN>\n## `main`", "Play Conway's Game of Life on the terminal.\n<END>", "<BEGIN>\n## `cell_strings`", "Return the strings that represent each possible living cell state.", " Return the most colorful ones the terminal supports.\n<END>", "<BEGIN>\n## `random_board`", "Return a random board with giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_bored_of API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_bored_of API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return whether the simulation is probably in a loop. This is a stochastic guess. Basically, it detects whether the simulation has had the same number of cells a lot lately. May have false positives (like if you just have a screen full of gliders) or take awhile to catch on sometimes. I'...
"Return whether the simulation is probably in a loop.\n\n This is a stochastic guess. Basically, it detects whether the\n simulation has had the same number of cells a lot lately. May have\n false positives (like if you just have a screen full of gliders) or\n take awhile to catch on sometim...
16
false
erikrose/conway
is_bored_of
24,208
LDU_FT/lambdalisue/django-permission/permission_required
LDU_FT
[ "<BEGIN>\n## `permission_required`", "Permission check decorator for classbased generic view", " This decorator works as class decorator\n DO NOT use ``method_decorator`` or whatever while this decorator will use\n ``self`` argument for method of classbased generic view.", " Parameters\n ------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the permission_required 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 permission_required 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...
Permission check decorator for classbased generic view This decorator works as class decorator DO NOT use ``method_decorator`` or whatever while this decorator will use ``self`` argument for method of classbased generic view. Parameters ---------- perm : string A permission string ...
"Permission check decorator for classbased generic view\n\n This decorator works as class decorator\n DO NOT use ``method_decorator`` or whatever while this decorator will use\n ``self`` argument for method of classbased generic view.\n\n Parameters\n ----------\n perm : string\n A permission s...
147
false
lambdalisue/django-permission
permission_required
24,209
LDU_FT/adrn/gala/to_dict
LDU_FT
[ "<BEGIN>\n## `w`", "This returns a single array containing the phase-space positions.", " Parameters\n ----------\n units : `~gala.units.UnitSystem` (optional)\n The unit system to represent the position and velocity in\n before combining into the full array.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Turn a potential object into a dictionary that fully specifies the state of the object. Parameters ---------- potential : :class:`~gala.potential.PotentialBase` The instantiated :class:`~gala.potential.PotentialBase` object.
"Turn a potential object into a dictionary that fully specifies the\n state of the object.\n\n Parameters\n ----------\n potential : :class:`~gala.potential.PotentialBase`\n The instantiated :class:`~gala.potential.PotentialBase` object."
465
false
adrn/gala
to_dict
24,210
LDU_FT/jreese/dotlink/scp
LDU_FT
[ "<BEGIN>\n## `parse_mapping`", "Do a simple parse of the dotfile mapping, using semicolons to\n separate source file name from the target file paths.\n<END>", "<BEGIN>\n## `sh`", "Run a shell command with the given arguments.\n<END>", "<BEGIN>\n## `ssh`", "Run an ssh command using the configured us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scp API. Each 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 scp API. Each 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...
Copy a local file to the given remote path.
"Copy a local file to the given remote path."
16
false
jreese/dotlink
scp
24,211
LDU_FT/ergoithz/browsepy/check_path
LDU_FT
[ "<BEGIN>\n## `defaultsnamedtuple`", "Generate namedtuple with default values.", " :param name: name\n :param fields: iterable with field names\n :param defaults: iterable or mapping with field defaults\n :returns: defaultdict with given fields and given defaults\n :rtype: collections.defaultdict\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Check if both given paths are equal. :param path: absolute path :type path: str :param base: absolute base path :type base: str :param os_sep: path separator, defaults to os.sep :type base: str :return: wether two path are equal or not :rtype: bool
"Check if both given paths are equal.\n\n :param path: absolute path\n :type path: str\n :param base: absolute base path\n :type base: str\n :param os_sep: path separator, defaults to os.sep\n :type base: str\n :return: wether two path are equal or not\n :rtype: bool"
207
false
ergoithz/browsepy
check_path
24,212
LDU_FT/TkTech/Jawa/ins
LDU_FT
[ "<BEGIN>\n## `_walk`", "A modified os.walk with support for maximum traversal depth.\n<END>", "<BEGIN>\n## `update`", "Add one or more ClassFile sources to the class loader.", " If a given source is a directory path, it is traversed up to the\n maximum set depth and all files under it are adde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ins API. Each 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 ins API. Each 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...
Lookup instruction information. Lookup an instruction by its mnemonic.
"Lookup instruction information.\n\n Lookup an instruction by its mnemonic."
226
false
TkTech/Jawa
ins
24,213
LDU_FT/vmagamedov/grpclib/send_initial_metadata
LDU_FT
[ "<BEGIN>\n## `extend`", "Extends services list with reflection service:", " .. code-block:: python3", " from grpclib.reflection.service import ServerReflection", " services = [Greeter()]\n services = ServerReflection.extend(services)", " server = Server(s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_initial_metadata 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 send_initial_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Coroutine to send headers with initial metadata to the client. In gRPC you can send initial metadata as soon as possible, because gRPC doesn't use `:status` pseudo header to indicate success or failure of the current request. gRPC uses trailers for this purpose, and trailers are sent du...
"Coroutine to send headers with initial metadata to the client.\n\n In gRPC you can send initial metadata as soon as possible, because\n gRPC doesn't use `:status` pseudo header to indicate success or failure\n of the current request. gRPC uses trailers for this purpose, and\n trailers are s...
106
false
vmagamedov/grpclib
send_initial_metadata
24,214
LDU_FT/onelogin/python-saml/is_valid
LDU_FT
[ "<BEGIN>\n## `is_valid`", "Validates the response object.", " :param request_data: Request Data\n :type request_data: dict", " :param request_id: Optional argument. The ID of the AuthNRequest sent by this SP to the IdP\n :type request_id: string", " :param raise_exceptions...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API. 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 is_valid API. 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 if the Logout Request received is valid :param request_data: Request Data :type request_data: dict :param raise_exceptions: Whether to return false on failure or raise an exception :type raise_exceptions: Boolean :return: If the Logout Request is or not valid :rtyp...
"Checks if the Logout Request received is valid\n :param request_data: Request Data\n :type request_data: dict\n :param raise_exceptions: Whether to return false on failure or raise an exception\n :type raise_exceptions: Boolean\n :return: If the Logout Request is or not valid\n ...
229
false
onelogin/python-saml
is_valid
24,215
LDU_FT/markchil/gptools/double_tanh_warp
LDU_FT
[ "<BEGIN>\n## `matern_function`", "r\"\"\"Matern covariance function of arbitrary dimension, for use with :py:class:`ArbitraryKernel`.", " The Matern kernel has the following hyperparameters, always referenced in\n the order listed:", " = ===== ====================================\n 0 sigma prefact...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the double_tanh_warp API. 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 double_tanh_warp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
r"""Implements a sum-of-tanh warping function and its derivative. .. math:: l = a\tanh\frac{x-x_a}{l_a} + b\tanh\frac{x-x_b}{l_b} Parameters ---------- x : float or array of float Locations to evaluate the function at. n : int Derivative order to take. Used for...
"r\"\"\"Implements a sum-of-tanh warping function and its derivative.\n \n .. math::\n \n l = a\\tanh\\frac{x-x_a}{l_a} + b\\tanh\\frac{x-x_b}{l_b}\n \n Parameters\n ----------\n x : float or array of float\n Locations to evaluate the function at.\n n : int\n Derivative orde...
496
false
markchil/gptools
double_tanh_warp
24,216
LDU_FT/ansible/molecule/safe_load
LDU_FT
[ "<BEGIN>\n## `bake`", "Bake an ``ansible-playbook`` command so it's ready to execute and\n returns ``None``.", " :return: None\n<END>", "<BEGIN>\n## `execute`", "Executes ``ansible-playbook`` and returns a string.", " :return: str\n<END>", "<BEGIN>\n## `execute`", "Execute the act...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Parse the provided string returns a dict. :param string: A string to be parsed. :return: dict
"Parse the provided string returns a dict.\n\n :param string: A string to be parsed.\n :return: dict"
234
false
ansible/molecule
safe_load
24,217
LDU_FT/ns1/ns1-python/loadRecord
LDU_FT
[ "<BEGIN>\n## `delete`", "Delete the record from the zone, including all advanced configuration,\n meta data, etc.\n<END>", "<BEGIN>\n## `update`", "Update record configuration. Pass list of keywords and their values to\n update. For the list of keywords available for zone configuration, see\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadRecord API. 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 loadRecord API. 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...
Load an existing record into a high level Record object. :param str domain: domain name of the record in the zone, for example \ 'myrecord'. You may leave off the zone, since it must be \ specified in the zone parameter :param str type: record type, such as 'A', 'MX', 'AAAA', et...
"Load an existing record into a high level Record object.\n\n :param str domain: domain name of the record in the zone, for example \\\n 'myrecord'. You may leave off the zone, since it must be \\\n specified in the zone parameter\n :param str type: record type, such as 'A', 'MX', 'A...
159
false
ns1/ns1-python
loadRecord
24,218
LDU_FT/benvanwerkhoven/kernel_tuner/tune
LDU_FT
[ "<BEGIN>\n## `tune`", "Find the best performing kernel configuration in the parameter space", " :params runner: A runner from kernel_tuner.runners\n :type runner: kernel_tuner.runner", " :param kernel_options: A dictionary with all options for the kernel.\n :type kernel_options: dict", " :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tune API. Each 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 tune API. Each 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...
Find the best performing kernel configuration in the parameter space :params runner: A runner from kernel_tuner.runners :type runner: kernel_tuner.runner :param kernel_options: A dictionary with all options for the kernel. :type kernel_options: dict :param device_options: A dictionary with all op...
"Find the best performing kernel configuration in the parameter space\n\n :params runner: A runner from kernel_tuner.runners\n :type runner: kernel_tuner.runner\n\n :param kernel_options: A dictionary with all options for the kernel.\n :type kernel_options: dict\n\n :param device_options: A dictionary wi...
294
false
benvanwerkhoven/kernel_tuner
tune
24,219
LDU_FT/kennethreitz/records/query
LDU_FT
[ "<BEGIN>\n## `isexception`", "Given an object, return a boolean indicating whether it is an instance\n or subclass of :py:class:`Exception`.\n<END>", "<BEGIN>\n## `_reduce_datetimes`", "Receives a row, converts datetimes to strings.\n<END>", "<BEGIN>\n## `as_dict`", "Returns the row as a dictionary, as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Executes the given SQL query against the connected Database. Parameters can, optionally, be provided. Returns a RecordCollection, which can be iterated over to get result rows as dictionaries.
"Executes the given SQL query against the connected Database.\n Parameters can, optionally, be provided. Returns a RecordCollection,\n which can be iterated over to get result rows as dictionaries."
30
false
kennethreitz/records
query
24,220
LDU_FT/horejsek/python-webdriverwrapper/wait_for_alert
LDU_FT
[ "<BEGIN>\n## `expected_error_page`", "Decorator expecting defined error page at the end of test method. As param\n use what :py:meth:`~.WebdriverWrapperErrorMixin.get_error_page`\n returns.", " .. versionadded:: 2.0\n Before this decorator was called ``ShouldBeErrorPage``.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_for_alert API. 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 wait_for_alert API. 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...
Shortcut for waiting for alert. If it not ends with exception, it returns that alert. Detault timeout is `~.default_wait_timeout`.
"Shortcut for waiting for alert. If it not ends with exception, it\n returns that alert. Detault timeout is `~.default_wait_timeout`."
120
false
horejsek/python-webdriverwrapper
wait_for_alert
24,221
LDU_FT/prechelt/typecheck-decorator/check
LDU_FT
[ "<BEGIN>\n## `_is_possible_subclass`", "Like issubclass(subtype, supertype) except that TypeVars\n are not taken into account.\n<END>", "<BEGIN>\n## `check`", "See whether the TypeVar is bound for the first time\n or is met with _exactly_ the same type as previously.\n That type must also...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
specifying a plain tuple allows arguments that are tuples or lists; specifying a specialized (subclassed) tuple allows only that type; specifying a list allows only that list type.
"specifying a plain tuple allows arguments that are tuples or lists;\n specifying a specialized (subclassed) tuple allows only that type;\n specifying a list allows only that list type."
18
false
prechelt/typecheck-decorator
check
24,222
LDU_FT/hatemile/hatemile-for-python/_provide_speak_properties_with_rule
LDU_FT
[ "<BEGIN>\n## `_get_shortcut_prefix`", "Returns the shortcut prefix of browser.", " :param user_agent: The user agent of browser.\n :type user_agent: str\n :param standart_prefix: The default prefix.\n :type standart_prefix: str\n :return: The shortcut prefix of browser.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _provide_speak_properties_with_rule API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _provide_speak_properties_with_rule API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
Provide the CSS features of speaking and speech properties in element. :param element: The element. :type element: hatemile.util.html.htmldomelement.HTMLDOMElement :param rule: The stylesheet rule. :type rule: hatemile.util.css.stylesheetrule.StyleSheetRule
"Provide the CSS features of speaking and speech properties in element.\n\n :param element: The element.\n :type element: hatemile.util.html.htmldomelement.HTMLDOMElement\n :param rule: The stylesheet rule.\n :type rule: hatemile.util.css.stylesheetrule.StyleSheetRule"
202
false
hatemile/hatemile-for-python
_provide_speak_properties_with_rule
24,223
LDU_FT/inveniosoftware-attic/invenio-comments/query_add_comment_or_remark
LDU_FT
[ "<BEGIN>\n## `perform_request_display_comments_or_remarks`", "Returns all the comments (reviews) of a specific internal record or external basket record.\n :param recID: record id where (internal record IDs > 0) or (external basket record IDs < -100)\n :param display_order: hh = highest helpful score...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_add_comment_or_remark 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 query_add_comment_or_remark API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Private function Insert a comment/review or remarkinto the database :param recID: record id :param uid: user id :param msg: comment body :param note: comment title :param score: review star score :param priority: remark priority #!FIXME :param editor_type: the kind of editor used to subm...
"Private function\n Insert a comment/review or remarkinto the database\n :param recID: record id\n :param uid: user id\n :param msg: comment body\n :param note: comment title\n :param score: review star score\n :param priority: remark priority #!FIXME\n :param editor_type: the kind of editor use...
123
false
inveniosoftware-attic/invenio-comments
query_add_comment_or_remark
24,224
LDU_FT/chimpler/pyhocon/parse_string
LDU_FT
[ "<BEGIN>\n## `to_json`", "Convert HOCON input into a JSON output", " :return: JSON string representation\n :type return: basestring\n<END>", "<BEGIN>\n## `to_hocon`", "Convert HOCON input into a HOCON output", " :return: JSON string representation\n :type return: basestring\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_string API. 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...
Parse URL :param content: content to parse :type content: basestring :param resolve: If true, resolve substitutions :param resolve: if true, resolve substitutions :type resolve: boolean :param unresolved_value: assigned value value to unresolved substitution. If ...
"Parse URL\n\n :param content: content to parse\n :type content: basestring\n :param resolve: If true, resolve substitutions\n :param resolve: if true, resolve substitutions\n :type resolve: boolean\n :param unresolved_value: assigned value value to unresolved substitution.\n ...
80
false
chimpler/pyhocon
parse_string
24,225
LDU_FT/Zimbra-Community/python-zimbra/authenticate
LDU_FT
[ "<BEGIN>\n## `set_context_params`", "Set header context parameters. Refer to the top of <Zimbra\n Server-Root>/docs/soap.txt about specifics.", " The <format>-Parameter cannot be changed, because it is set by the\n implementing class.", " Should be called by implementing method to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API. 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 authenticate API. 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...
Authenticate to the Zimbra server :param url: URL of Zimbra SOAP service :param account: The account to be authenticated against :param key: The preauth key of the domain of the account or a password (if admin_auth or use_password is True) :param by: If the account is specified as a name, an ID o...
"Authenticate to the Zimbra server\n\n :param url: URL of Zimbra SOAP service\n :param account: The account to be authenticated against\n :param key: The preauth key of the domain of the account or a password (if\n admin_auth or use_password is True)\n :param by: If the account is specified as a name, ...
48
false
Zimbra-Community/python-zimbra
authenticate
24,226
LDU_FT/PatrikValkovic/grammpy/_get_toSymbol
LDU_FT
[ "<BEGIN>\n## `reverse_cyk_transforms`", "Reverse transformation made to grammar before CYK.\n Performs following steps:\n - transform from chomsky normal form\n - restore unit rules\n - restore epsilon rules\n :param root: Root node of the parsed tree.\n :return: Restored...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_toSymbol API. 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_toSymbol API. 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 symbol from which the rule is rewrote. :param cls: Rule for which return the symbol. :return: Symbol from which the rule is rewrote. :raise RuleNotDefinedException: If the rule is not defined. :raise CantCreateSingleRuleException: If the rule consists of more rules. :raise No...
"Get symbol from which the rule is rewrote.\n :param cls: Rule for which return the symbol.\n :return: Symbol from which the rule is rewrote.\n :raise RuleNotDefinedException: If the rule is not defined.\n :raise CantCreateSingleRuleException: If the rule consists of more rules.\n :ra...
126
false
PatrikValkovic/grammpy
_get_toSymbol
24,227
LDU_FT/aquatix/ns-api/parse_disruptions
LDU_FT
[ "<BEGIN>\n## `simple_time`", "Format a datetime or timedelta object to a string of format HH:MM\n<END>", "<BEGIN>\n## `is_dst`", "Find out whether it's Daylight Saving Time in this timezone\n<END>", "<BEGIN>\n## `list_to_json`", "Serialise all the items in source_list to json\n<END>", "<BEGIN>\n## `list...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_disruptions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_disruptions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parse the NS API xml result into Disruption objects @param xml: raw XML result from the NS API
"Parse the NS API xml result into Disruption objects\n @param xml: raw XML result from the NS API"
32
false
aquatix/ns-api
parse_disruptions
24,228
LDU_FT/mwhooker/jones/assoc_host
LDU_FT
[ "<BEGIN>\n## `create_config`", "Set conf to env under service.", " pass None to env for root.\n<END>", "<BEGIN>\n## `set_config`", "Set conf to env under service.", " pass None to env for root.\n<END>", "<BEGIN>\n## `assoc_host`", "Associate a host with an environment.", " hostn...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assoc_host API. 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 assoc_host API. 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...
Associate a host with an environment. hostname is opaque to Jones. Any string which uniquely identifies a host is acceptable.
"Associate a host with an environment.\n\n hostname is opaque to Jones.\n Any string which uniquely identifies a host is acceptable."
15
false
mwhooker/jones
assoc_host
24,229
LDU_FT/meyersj/geotweet/mapper_init
LDU_FT
[ "<BEGIN>\n## `validate_geotweet`", "check that stream record is actual tweet with coordinates\n<END>", "<BEGIN>\n## `get_object`", "lookup object based on point as [longitude, latitude]\n<END>", "<BEGIN>\n## `_build_from_geojson`", "Build a RTree index to disk using bounding box of each feature\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mapper_init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mapper_init API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Download counties geojson from S3 and build spatial index and cache
"Download counties geojson from S3 and build spatial index and cache"
30
false
meyersj/geotweet
mapper_init
24,230
LDU_FT/quantumlib/Cirq/phase_flip
LDU_FT
[ "<BEGIN>\n## `_absorb_z_into_w`", "Absorbs a Z^t gate into a W(a) flip.", " [Where W(a) is shorthand for PhasedX(phase_exponent=a).]", " Uses the following identity:\n ───W(a)───Z^t───\n ≡ ───W(a)───────────Z^t/2──────────Z^t/2─── (split Z)\n ≡ ───W(a)───W(a)───Z^-t/2───W(a)───Z^t/2...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the phase_flip API. 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 phase_flip API. 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...
r""" Returns a PhaseFlipChannel that flips a qubit's phase with probability p if p is None, return a guaranteed phase flip in the form of a Z operation. This channel evolves a density matrix via: $$ \rho \rightarrow M_0 \rho M_0^\dagger + M_1 \rho M_1^\dagger $$ With: ...
"r\"\"\"\n Returns a PhaseFlipChannel that flips a qubit's phase with probability p\n if p is None, return a guaranteed phase flip in the form of a Z operation.\n\n This channel evolves a density matrix via:\n\n $$\n \\rho \\rightarrow M_0 \\rho M_0^\\dagger + M_1 \\rho M_1^\\dagger\n $$\n...
1,764
true
quantumlib/Cirq
phase_flip
24,231
LDU_FT/Autodesk/aomi/py_resources
LDU_FT
[ "<BEGIN>\n## `seed`", "Will provision vault based on the definition within a Secretfile\n<END>", "<BEGIN>\n## `render`", "Render any provided template. This includes the Secretfile,\n Vault policies, and inline AWS roles\n<END>", "<BEGIN>\n## `export`", "Export contents of a Secretfile from the Vault s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the py_resources API. 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 py_resources API. 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...
Discovers all aomi Vault resource models. This includes anything extending aomi.model.Mount or aomi.model.Resource.
"Discovers all aomi Vault resource models. This includes\n anything extending aomi.model.Mount or aomi.model.Resource."
231
false
Autodesk/aomi
py_resources
24,232
LDU_FT/QunarOPS/qg.core/utcnow_ts
LDU_FT
[ "<BEGIN>\n## `import_class`", "Returns a class from a string including module and class.\n<END>", "<BEGIN>\n## `import_object_ns`", "Tries to import object from default namespace.", " Imports a class and return an instance of it, first by trying\n to find the class in a default namespace, then failing...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the utcnow_ts API. 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 utcnow_ts API. 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...
Timestamp version of our utcnow function.
"Timestamp version of our utcnow function."
74
false
QunarOPS/qg.core
utcnow_ts
24,233
LDU_FT/Shopify/shopify_python_api/find
LDU_FT
[ "<BEGIN>\n## `find`", "Find an asset by key\n E.g.\n shopify.Asset.find('layout/theme.liquid', theme_id=99)\n<END>", "<BEGIN>\n## `get_prefix_source`", "Return the prefix source, by default derived from site.\n<END>", "<BEGIN>\n## `calculate_hmac`", "Calculate the HMAC of the given param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Find an asset by key E.g. shopify.Asset.find('layout/theme.liquid', theme_id=99)
"Find an asset by key\n E.g.\n shopify.Asset.find('layout/theme.liquid', theme_id=99)"
13
false
Shopify/shopify_python_api
find
24,234
LDU_FT/hollenstein/maspy/aquireMs1CalibrationData
LDU_FT
[ "<BEGIN>\n## `_getArrays`", "Return arrays with equal size of item attributes from a list of sorted\n \"items\" for fast and convenient data processing.", " :param attr: list of item attributes that should be added to the returned\n array.\n :param defaultValue: if an item is missing an attribut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aquireMs1CalibrationData 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 aquireMs1CalibrationData API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Aquire mass error data, observed vs expected m/z, for calibration of MS1 ion m/z values. Expected m/z values can be of ambient ions with known exact masses and from identified precursor masses of peptide spectrum matching results. :param msrunContainer: intance of :class:`maspy.core.MsrunContainer` ...
"Aquire mass error data, observed vs expected m/z, for calibration of MS1\n ion m/z values. Expected m/z values can be of ambient ions with known exact\n masses and from identified precursor masses of peptide spectrum matching\n results.\n\n :param msrunContainer: intance of :class:`maspy.core.MsrunContaine...
742
false
hollenstein/maspy
aquireMs1CalibrationData
24,235
LDU_FT/codeinn/vcs/get_config_value
LDU_FT
[ "<BEGIN>\n## `make_ui`", "A funcion that will read python rc files and make an ui from read options", " :param path: path to mercurial config file\n<END>", "<BEGIN>\n## `status`", "Returns modified, added, removed, deleted files for current changeset\n<END>", "<BEGIN>\n## `_fix_path`", "Paths are sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns configuration value for a given [``section``] and ``name``. :param section: Section we want to retrieve value from :param name: Name of configuration we want to retrieve :param config_file: A path to file which should be used to retrieve configuration from (might also be a lis...
"Returns configuration value for a given [``section``] and ``name``.\n\n :param section: Section we want to retrieve value from\n :param name: Name of configuration we want to retrieve\n :param config_file: A path to file which should be used to retrieve\n configuration from (might also be...
326
false
codeinn/vcs
get_config_value
24,236
LDU_FT/caseyjlaw/sdmreader/calc_intsize
LDU_FT
[ "<BEGIN>\n## `read_bdf`", "Reads given range of integrations from sdm of given scan.\r\n Uses BDFData object to read.\r\n readints=0 will read all of bdf (skipping nskip).\r\n Option to write pkl to store bdf info for faster parse next time.\n<END>", "<BEGIN>\n## `calc_uvw`", "Calculates and returns ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_intsize API. 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 calc_intsize API. 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...
Calculates the size of an integration (cross + auto) in bytes
"Calculates the size of an integration (cross + auto) in bytes"
14
false
caseyjlaw/sdmreader
calc_intsize
24,237
LDU_FT/chatfirst/chatfirst/to_json
LDU_FT
[ "<BEGIN>\n## `bots_list`", "List all user's bots", " :rtype: list of Bot\n :return: user's bots\n<END>", "<BEGIN>\n## `bots_create`", "Save new bot", " :param bot: bot object to save\n :type bot: Bot\n<END>", "<BEGIN>\n## `bots_get`", "Fetch and fill Bot object", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted...
Serialize object to json dict :return: dict
"Serialize object to json dict\n\n :return: dict"
38
false
chatfirst/chatfirst
to_json
24,238
LDU_FT/joeyespo/grip/normalize_subpath
LDU_FT
[ "<BEGIN>\n## `_get_style_urls`", "Gets the specified resource and parses all style URLs and their\n assets in the form of the specified patterns.\n<END>", "<BEGIN>\n## `_cache_contents`", "Fetches the given URLs and caches their contents\n and their assets in the given directory.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_subpath API. 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 normalize_subpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Normalizes the specified subpath, or None if subpath is None. This allows Readme files to be inferred from directories while still allowing relative paths to work properly. Raises werkzeug.exceptions.NotFound if the resulting path would fall out of the root directory.
"Normalizes the specified subpath, or None if subpath is None.\n\n This allows Readme files to be inferred from directories while\n still allowing relative paths to work properly.\n\n Raises werkzeug.exceptions.NotFound if the resulting path\n would fall out of the root directory."
77
false
joeyespo/grip
normalize_subpath
24,239
LDU_FT/Sanji-IO/sanji/to_dict
LDU_FT
[ "<BEGIN>\n## `add`", "Add a object\n Args:\n Object: Object will be added\n Returns:\n Object: Object with id\n Raises:\n TypeError: If add object is not a dict\n MultipleInvalid: If input object is invaild\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
to_dict will clean all protected and private properties
"to_dict will clean all protected and private properties"
45
false
Sanji-IO/sanji
to_dict
24,240
LDU_FT/twisted/vertex/openReadWrite
LDU_FT
[ "<BEGIN>\n## `enregister`", "Register a new account and return a Deferred that fires if it worked.", " @param svc: a Q2QService", " @param newAddress: a Q2QAddress object", " @param password: a shared secret (str)\n<END>", "<BEGIN>\n## `connectCached`", "See module docstring", " @param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the openReadWrite API. 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 openReadWrite API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return a 2-tuple of: (whether the file existed before, open file object)
"Return a 2-tuple of: (whether the file existed before, open file object)"
191
false
twisted/vertex
openReadWrite
24,241
LDU_FT/square/pylink/strace_configure
LDU_FT
[ "<BEGIN>\n## `main`", "Prints the core's information.", " Args:\n jlink_serial (str): the J-Link serial number\n device (str): the target CPU", " Returns:\n Always returns ``0``.", " Raises:\n JLinkException: on error\n<END>", "<BEGIN>\n## `acquire`", "Attempts to acquire a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strace_configure API. 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 strace_configure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Configures the trace port width for tracing. Note that configuration cannot occur while STRACE is running. Args: self (JLink): the ``JLink`` instance port_width (int): the trace port width to use. Returns: ``None`` Raises: ValueError: if ``port...
"Configures the trace port width for tracing.\n\n Note that configuration cannot occur while STRACE is running.\n\n Args:\n self (JLink): the ``JLink`` instance\n port_width (int): the trace port width to use.\n\n Returns:\n ``None``\n\n Raises:\n ValueErr...
949
false
square/pylink
strace_configure
24,242
LDU_FT/Kozea/cairocffi/add_color_stop_rgba
LDU_FT
[ "<BEGIN>\n## `set_size`", "Informs cairo of the new size of the X Drawable underlying the surface.\n For a surface created for a Window (rather than a Pixmap), this\n function must be called each time the size of the window changes (for\n a subwindow, you are normally resizing the window your...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_color_stop_rgba 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 add_color_stop_rgba 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...
Adds a translucent color stop to a gradient pattern. The offset specifies the location along the gradient's control vector. For example, a linear gradient's control vector is from (x0,y0) to (x1,y1) while a radial gradient's control vector is from any point on the start circle ...
"Adds a translucent color stop to a gradient pattern.\n\n The offset specifies the location along the gradient's control vector.\n For example,\n a linear gradient's control vector is from (x0,y0) to (x1,y1)\n while a radial gradient's control vector is\n from any point on the start c...
669
false
Kozea/cairocffi
add_color_stop_rgba
24,243
LDU_FT/kakwa/ldapcherry/_extract_format_keys
LDU_FT
[ "<BEGIN>\n## `get_param`", "Get a parameter in config (handle default value)", " :param param: name of the parameter to recover\n :type param: string\n :param default: the default value, raises an exception\n if param is not in configuration and default\n is None (whic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_format_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 _extract_format_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. ...
Extract the keys of a format string (the 'stuff' in '%(stuff)s'
"Extract the keys of a format string\n (the 'stuff' in '%(stuff)s'"
83
false
kakwa/ldapcherry
_extract_format_keys
24,244
LDU_FT/ckan/ckan-service-provider/is_authorized
LDU_FT
[ "<BEGIN>\n## `init`", "Initialise and configure the app, database, scheduler, etc.", " This should be called once at application startup or at tests startup\n (and not e.g. called once for each test case).\n<END>", "<BEGIN>\n## `_init_login_manager`", "Initialise and configure the login manager.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_authorized API. 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 is_authorized API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns true if the request is authorized for the job if provided. If no job is provided, the user has to be admin to be authorized.
"Returns true if the request is authorized for the job\n if provided. If no job is provided, the user has to be admin\n to be authorized."
117
false
ckan/ckan-service-provider
is_authorized
24,245
LDU_FT/cwoebker/pen/_get_at_pos
LDU_FT
[ "<BEGIN>\n## `re_tab`", "Return a tabbed string from an expanded one.\n<END>", "<BEGIN>\n## `_get_at_pos`", "Return a widget for the line number passed.\n<END>", "<BEGIN>\n## `split_focus`", "Divide the focus edit widget at the cursor location.\n<END>", "<BEGIN>\n## `combine_focus_with_prev`", "Combin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_at_pos API. 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_at_pos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a widget for the line number passed.
"Return a widget for the line number passed."
10
false
cwoebker/pen
_get_at_pos
24,246
LDU_FT/hatemile/hatemile-for-python/_isolate_text_node
LDU_FT
[ "<BEGIN>\n## `_get_shortcut_prefix`", "Returns the shortcut prefix of browser.", " :param user_agent: The user agent of browser.\n :type user_agent: str\n :param standart_prefix: The default prefix.\n :type standart_prefix: str\n :return: The shortcut prefix of browser.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _isolate_text_node 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 _isolate_text_node 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...
Isolate text nodes of element nodes. :param element: The element. :type element: hatemile.util.html.htmldomelement.HTMLDOMElement
"Isolate text nodes of element nodes.\n\n :param element: The element.\n :type element: hatemile.util.html.htmldomelement.HTMLDOMElement"
202
false
hatemile/hatemile-for-python
_isolate_text_node
24,247
LDU_FT/apache/spark/first_spark_call
LDU_FT
[ "<BEGIN>\n## `_parse_datatype_string`", "Parses the given data type string to a :class:`DataType`. The data type string format equals\n to :class:`DataType.simpleString`, except that top level struct type can omit\n the ``struct<>`` and atomic types use ``typeName()`` as their format, e.g. use ``byte`` inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the first_spark_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the first_spark_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 ...
Return a CallSite representing the first Spark call in the current call stack.
"Return a CallSite representing the first Spark call in the current call stack."
2,386
true
apache/spark
first_spark_call
24,248
LDU_FT/datacratic/pymldb/query
LDU_FT
[ "<BEGIN>\n## `query`", "Shortcut for GET /v1/query, except with argument format='dataframe'\n (the default), in which case it will simply wrap the result of the GET\n query to /v1/query (with format='table') in a `pandas.DataFrame`.\n<END>", "<BEGIN>\n## `put_and_track`", "Put and track progress...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Shortcut for GET /v1/query, except with argument format='dataframe' (the default), in which case it will simply wrap the result of the GET query to /v1/query (with format='table') in a `pandas.DataFrame`.
"Shortcut for GET /v1/query, except with argument format='dataframe'\n (the default), in which case it will simply wrap the result of the GET\n query to /v1/query (with format='table') in a `pandas.DataFrame`."
20
false
datacratic/pymldb
query
24,249
LDU_FT/blueset/ehForwarderBot/add_channel
LDU_FT
[ "<BEGIN>\n## `self`", "Set the chat as yourself.\n In this context, \"yourself\" means the user behind the master channel.\n Every channel should relate this to the corresponding target.", " Returns:\n EFBChat: This object.\n<END>", "<BEGIN>\n## `system`", "Set the chat as a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_channel API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_channel API. 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...
Register the channel with the coordinator. Args: channel (EFBChannel): Channel to register
"Register the channel with the coordinator.\n\n Args:\n channel (EFBChannel): Channel to register"
66
false
blueset/ehForwarderBot
add_channel
24,250
LDU_FT/yunojuno/elasticsearch-django/_in_search_queryset
LDU_FT
[ "<BEGIN>\n## `execute_search`", "Create a new SearchQuery instance and execute a search against ES.", " Args:\n search: elasticsearch.search.Search object, that internally contains\n the connection and query; this is the query that is executed. All\n we are doing is logging the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _in_search_queryset 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 _in_search_queryset 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...
Wrapper around the instance manager method.
"Wrapper around the instance manager method."
124
false
yunojuno/elasticsearch-django
_in_search_queryset
24,251
LDU_FT/rdussurget/py-altimetry/delete_Variable
LDU_FT
[ "<BEGIN>\n## `bilinear_interpolation`", "Interpolate (x,y) from values associated with four points.\r", " The four points are a list of four triplets: (x, y, value).\r\n The four points can be in any order. They should form a rectangle.\r", " >>> bilinear_interpolation(12, 5.5,\r\n ... ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_Variable API. 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 delete_Variable API. 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...
pops a variable from class and delete it from parameter list :parameter name: name of the parameter to delete
"pops a variable from class and delete it from parameter list\r\n \r\n :parameter name: name of the parameter to delete"
320
false
rdussurget/py-altimetry
delete_Variable
24,252
LDU_FT/eng-tools/sfsimodels/format_value
LDU_FT
[ "<BEGIN>\n## `set_beam_prop`", "Specify the properties of the beams", " :param values:\n :param repeat: if 'up' then duplicate up the structure\n :return:\n<END>", "<BEGIN>\n## `set_column_prop`", "Specify the properties of the columns", " :param values:\n :param repeat:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_value API. 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 format_value API. 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...
convert a parameter value into a formatted string with certain significant figures :param value: the value to be formatted :param sf: number of significant figures :return: str
"convert a parameter value into a formatted string with certain significant figures\n\n :param value: the value to be formatted\n :param sf: number of significant figures\n :return: str"
126
false
eng-tools/sfsimodels
format_value
24,253
LDU_FT/1flow/python-ftr/_auto_extract_if_failed
LDU_FT
[ "<BEGIN>\n## `reset`", "(re)set all instance attributes to default.", " Every attribute is set to ``None``, except :attr:`author`\n and :attr:`failures` which are set to ``[]``.\n<END>", "<BEGIN>\n## `_process_replacements`", "Do raw string replacements on :param:`html`.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _auto_extract_if_failed 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 _auto_extract_if_failed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Try to automatically extract as much as possible.
"Try to automatically extract as much as possible."
65
false
1flow/python-ftr
_auto_extract_if_failed
24,254
LDU_FT/ttinies/sc2common/Dumper
LDU_FT
[ "<BEGIN>\n## `relateObjectLocs`", "calculate the minimum distance to reach any iterable of entities with a loc\n<END>", "<BEGIN>\n## `gridSnap`", "cause the given point to snap to nearest X/Y grid point\n<END>", "<BEGIN>\n## `convertToMapPic`", "convert a bytestring into a 2D row x column array, represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Dumper API. Each 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 Dumper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
appropriately view a given dict/list/tuple/object data structure
"appropriately view a given dict/list/tuple/object data structure"
22
false
ttinies/sc2common
Dumper
24,255
LDU_FT/rfarley3/Kibana/put_object
LDU_FT
[ "<BEGIN>\n## `post_field_cache`", "Where field_cache is a list of fields' mappings\n<END>", "<BEGIN>\n## `check_mapping`", "Assert minimum set of fields in cache, does not validate contents\n<END>", "<BEGIN>\n## `get_index_mappings`", "Converts all index's doc_types to .kibana\n<END>", "<BEGIN>\n## `get...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Wrapper for es.index, determines metadata needed to index from obj. If you have a raw object json string you can hard code these: index is .kibana (as of kibana4); id can be A-Za-z0-9\- and must be unique; doc_type is either visualization, dashboard, search or for settings do...
"Wrapper for es.index, determines metadata needed to index from obj.\n If you have a raw object json string you can hard code these:\n index is .kibana (as of kibana4);\n id can be A-Za-z0-9\\- and must be unique;\n doc_type is either visualization, dashboard, search\n or for sett...
27
false
rfarley3/Kibana
put_object
24,256
LDU_FT/oceanprotocol/aquarius/get_asset_ddos
LDU_FT
[ "<BEGIN>\n## `get_assets`", "Get all asset IDs.\n ---\n tags:\n - ddo\n responses:\n 200:\n description: successful action\n<END>", "<BEGIN>\n## `get_ddo`", "Get DDO of a particular asset.\n ---\n tags:\n - ddo\n parameters:\n - name: did\n in: path\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_asset_ddos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_asset_ddos API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get DDO of all assets. --- tags: - ddo responses: 200: description: successful action
"Get DDO of all assets.\n ---\n tags:\n - ddo\n responses:\n 200:\n description: successful action"
26
false
oceanprotocol/aquarius
get_asset_ddos
24,257
LDU_FT/bspaans/python-mingus/set_title
LDU_FT
[ "<BEGIN>\n## `valid_beat_duration`", "Return True when log2(duration) is an integer.\n<END>", "<BEGIN>\n## `add_notes`", "Add a Note, note as string or NoteContainer to the last Bar.", " If the Bar is full, a new one will automatically be created.", " If the Bar is not full but the note can'...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_title API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_title API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set the title and the subtitle of the suite.
"Set the title and the subtitle of the suite."
535
false
bspaans/python-mingus
set_title
24,258
LDU_FT/marteinn/wpparser/_parse_categories
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses xml and returns a formatted dict.", " Example:", " wpparser.parse(\"./blog.wordpress.2014-09-26.xml\")", " Will return:", " {\n \"blog\": {\n \"tagline\": \"Tagline\",\n \"site_url\": \"http://marteinn.se/blog\",\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_categories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_categories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns a list with categories with relations.
"Returns a list with categories with relations."
19
false
marteinn/wpparser
_parse_categories
24,259
LDU_FT/michaelliao/sinaweibopy/_guess_content_type
LDU_FT
[ "<BEGIN>\n## `_parse_json`", "Parse json string into JsonDict.", " >>> r = _parse_json(r'{\"name\":\"Michael\",\"score\":95}')\n >>> r.name\n u'Michael'\n >>> r['score']\n 95\n<END>", "<BEGIN>\n## `_encode_params`", "Do url-encode parameters", " >>> _encode_params(a=1, b='R&D')\n 'a=1...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _guess_content_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _guess_content_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Guess content type by url. >>> _guess_content_type('http://test/A.HTML') 'text/html' >>> _guess_content_type('http://test/a.jpg') 'image/jpeg' >>> _guess_content_type('/path.txt/aaa') 'application/octet-stream'
"Guess content type by url.\n\n >>> _guess_content_type('http://test/A.HTML')\n 'text/html'\n >>> _guess_content_type('http://test/a.jpg')\n 'image/jpeg'\n >>> _guess_content_type('/path.txt/aaa')\n 'application/octet-stream'"
37
false
michaelliao/sinaweibopy
_guess_content_type
24,260
LDU_FT/plivo/sharq/_initialize
LDU_FT
[ "<BEGIN>\n## `_initialize`", "Read the SharQ configuration and set appropriate\n variables. Open a redis connection pool and load all\n the Lua scripts.\n<END>", "<BEGIN>\n## `_load_config`", "Read the configuration file and load it into memory.\n<END>", "<BEGIN>\n## `_load_lua_scripts`", "L...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initialize API. 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 _initialize API. 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...
Read the SharQ configuration and set appropriate variables. Open a redis connection pool and load all the Lua scripts.
"Read the SharQ configuration and set appropriate\n variables. Open a redis connection pool and load all\n the Lua scripts."
27
false
plivo/sharq
_initialize
24,261
LDU_FT/nyaruka/smartmin/derive_ordering
LDU_FT
[ "<BEGIN>\n## `_read_requirements`", "Parses a file for pip installation requirements.\n<END>", "<BEGIN>\n## `get_list_class`", "Returns the class to use for the passed in list. We just build something up\n from the object type for the list.\n<END>", "<BEGIN>\n## `format_datetime`", "Formats a date, co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derive_ordering API. 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 derive_ordering API. 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...
Returns what field should be used for ordering (using a prepended '-' to indicate descending sort). If the default order of the queryset should be used, returns None
"Returns what field should be used for ordering (using a prepended '-' to indicate descending sort).\n\n If the default order of the queryset should be used, returns None"
118
false
nyaruka/smartmin
derive_ordering
24,262
LDU_FT/GluuFederation/oxd-python/send
LDU_FT
[ "<BEGIN>\n## `register_site`", "Function to register the site and generate a unique ID for the site", " Returns:\n **string:** The ID of the site (also called client id) if the registration is successful", " Raises:\n **OxdServerError:** If the site registration fails.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
send function sends the command to the oxd server and recieves the response. Parameters: * **command (dict):** Dict representation of the JSON command string Returns: **response (dict):** The JSON response from the oxd Server as a dict
"send function sends the command to the oxd server and recieves the\n response.\n\n Parameters:\n * **command (dict):** Dict representation of the JSON command string\n\n Returns:\n **response (dict):** The JSON response from the oxd Server as a dict"
124
false
GluuFederation/oxd-python
send
24,263
LDU_FT/kylejusticemagnuson/pyti/chande_momentum_oscillator
LDU_FT
[ "<BEGIN>\n## `band_width`", "Bandwidth.", " Formula:\n BW = SMA(H - L)\n<END>", "<BEGIN>\n## `center_band`", "Center Band.", " Formula:\n CB = SMA(TP)\n<END>", "<BEGIN>\n## `upper_band`", "Upper Band.", " Formula:\n UB = CB + BW\n<END>", "<BEGIN>\n## `lower_band`", "Lower Band....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chande_momentum_oscillator 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 chande_momentum_oscillator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Chande Momentum Oscillator. Formula: cmo = 100 * ((sum_up - sum_down) / (sum_up + sum_down))
"Chande Momentum Oscillator.\n\n Formula:\n cmo = 100 * ((sum_up - sum_down) / (sum_up + sum_down))"
204
false
kylejusticemagnuson/pyti
chande_momentum_oscillator
24,264
LDU_FT/Bystroushaak/BalancedDiscStorage/delete_by_hash
LDU_FT
[ "<BEGIN>\n## `_unpack_zip`", "Unpack .zip archive in `file_obj` to given `path`. Make sure, that it\n fits into limits (see :attr:`._max_zipfiles` for details).", " Args:\n file_obj (file): Opened file-like object.\n path (str): Path into which the .zip will be unpacked.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_by_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_by_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 ex...
Remove file/archive by it's `file_hash`. Args: file_hash (str): Hash, which is used to find the file in storage. Raises: IOError: If the file for given `file_hash` was not found in \ storage.
"Remove file/archive by it's `file_hash`.\n\n Args:\n file_hash (str): Hash, which is used to find the file in storage.\n\n Raises:\n IOError: If the file for given `file_hash` was not found in \\\n storage."
50
false
Bystroushaak/BalancedDiscStorage
delete_by_hash
24,265
LDU_FT/myint/rstcheck/check
LDU_FT
[ "<BEGIN>\n## `check`", "Yield errors.", " Use lower report_level for noisier error output.", " Each yielded error is a tuple of the form:", " (line_number, message)", " Line numbers are indexed at 1 and are with respect to the full RST file.", " Each code block is checked asynchronous...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Yield errors. Use lower report_level for noisier error output. Each yielded error is a tuple of the form: (line_number, message) Line numbers are indexed at 1 and are with respect to the full RST file. Each code block is checked asynchronously in a subprocess. Note that this function m...
"Yield errors.\n\n Use lower report_level for noisier error output.\n\n Each yielded error is a tuple of the form:\n\n (line_number, message)\n\n Line numbers are indexed at 1 and are with respect to the full RST file.\n\n Each code block is checked asynchronously in a subprocess.\n\n Note that th...
29
false
myint/rstcheck
check
24,266
LDU_FT/intelligenia/modeltranslation/get_translated_attribute
LDU_FT
[ "<BEGIN>\n## `_get_fieldtranslations`", "Get all the translations for this object.\n<END>", "<BEGIN>\n## `_load_translations`", "Loads all translations as dynamic attributes:\n\t\t<attr>_<lang_code>\n\t\t<attr>_<lang_code>_is_fuzzy\n<END>", "<BEGIN>\n## `_set_dict_translations`", "Establece los atributos ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_translated_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_translated_attribute API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Wraps Django Model __getattribute__ method making translation in templates less painful
"Wraps Django Model __getattribute__ method making translation in templates less painful"
36
false
intelligenia/modeltranslation
get_translated_attribute
24,267
LDU_FT/Bystroushaak/pyDHTMLParser/toString
LDU_FT
[ "<BEGIN>\n## `_raw_split`", "Parse HTML from text into array filled with tags end text.", " Source code is little bit unintutive, because it is state machine parser.", " For better understanding, look at http://bit.ly/1rXRcJj", " Example::", " >>> dhtmlparser._raw_split('<html><tag params=...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toString API. 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 toString API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns almost original string. If you want prettified string, try :meth:`.prettify`. Returns: str: Complete representation of the element with childs, endtag \ and so on.
"Returns almost original string.\n\n If you want prettified string, try :meth:`.prettify`.\n\n Returns:\n str: Complete representation of the element with childs, endtag \\\n and so on."
147
false
Bystroushaak/pyDHTMLParser
toString
24,268
LDU_FT/dadadel/pyment/_set_params
LDU_FT
[ "<BEGIN>\n## `isin_alone`", "Check if an element from a list is the only element of a string.", " :type elems: list\n :type line: str\n<END>", "<BEGIN>\n## `isin_start`", "Check if an element from a list starts a string.", " :type elems: list\n :type line: str\n<END>", "<BEGIN>\n## `isin`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_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 extra...
Sets the parameters with types, descriptions and default value if any
"Sets the parameters with types, descriptions and default value if any"
165
false
dadadel/pyment
_set_params
24,269
LDU_FT/ixc/python-edtf/dt_to_struct_time
LDU_FT
[ "<BEGIN>\n## `pre_save`", "Updates the edtf value from the value of the display_field.\n If there's a valid edtf, then set the date values.\n<END>", "<BEGIN>\n## `apply_delta`", "Apply a `relativedelta` to a `struct_time` data structure.", " `op` is an operator function, probably always `add` or `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dt_to_struct_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dt_to_struct_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert a `datetime.date` or `datetime.datetime` to a `struct_time` representation *with zero values* for data fields that we cannot always rely on for ancient or far-future dates: tm_wday, tm_yday, tm_isdst NOTE: If it wasn't for the requirement that the extra fields are unset we could use the `timetu...
"Convert a `datetime.date` or `datetime.datetime` to a `struct_time`\n representation *with zero values* for data fields that we cannot always\n rely on for ancient or far-future dates: tm_wday, tm_yday, tm_isdst\n\n NOTE: If it wasn't for the requirement that the extra fields are unset\n we could use the `...
83
false
ixc/python-edtf
dt_to_struct_time
24,270
LDU_FT/orbingol/NURBS-Python/find_span_binsearch
LDU_FT
[ "<BEGIN>\n## `bspline_to_nurbs`", "Converts non-rational parametric shapes to rational ones.", " :param obj: B-Spline shape\n :type obj: BSpline.Curve, BSpline.Surface or BSpline.Volume\n :return: NURBS shape\n :rtype: NURBS.Curve, NURBS.Surface or NURBS.Volume\n :raises: TypeError\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_span_binsearch 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 find_span_binsearch 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...
Finds the span of the knot over the input knot vector using binary search. Implementation of Algorithm A2.1 from The NURBS Book by Piegl & Tiller. The NURBS Book states that the knot span index always starts from zero, i.e. for a knot vector [0, 0, 1, 1]; if FindSpan returns 1, then the knot is between th...
"Finds the span of the knot over the input knot vector using binary search.\n\n Implementation of Algorithm A2.1 from The NURBS Book by Piegl & Tiller.\n\n The NURBS Book states that the knot span index always starts from zero, i.e. for a knot vector [0, 0, 1, 1];\n if FindSpan returns 1, then the knot is betw...
809
false
orbingol/NURBS-Python
find_span_binsearch
24,271
LDU_FT/andialbrecht/sqlparse/split
LDU_FT
[ "<BEGIN>\n## `_group_matching`", "Groups Tokens that have beginning and end.\n<END>", "<BEGIN>\n## `group_order`", "Group together Identifier and Asc/Desc token\n<END>", "<BEGIN>\n## `_group`", "Groups together tokens that are joined by a middle token. i.e. x < y\n<END>", "<BEGIN>\n## `_reset`", "Set ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split API. Each 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 split API. Each 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...
Split *sql* into single statements. :param sql: A string containing one or more SQL statements. :param encoding: The encoding of the statement (optional). :returns: A list of strings.
"Split *sql* into single statements.\n\n :param sql: A string containing one or more SQL statements.\n :param encoding: The encoding of the statement (optional).\n :returns: A list of strings."
57
false
andialbrecht/sqlparse
split
24,272