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/BYU-PCCL/holodeck/set_control_scheme
LDU_FT
[ "<BEGIN>\n## `malloc`", "Allocates a block of shared memory, and returns a numpy array whose data corresponds with that block.", " Args:\n key (str): The key to identify the block.\n shape (list of int): The shape of the numpy array to allocate.\n dtype (type): The numpy ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_control_scheme 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 set_control_scheme 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...
Set the control scheme for a specific agent. Args: agent_name (str): The name of the agent to set the control scheme for. control_scheme (int): A control scheme value (see :obj:`holodeck.agents.ControlSchemes`)
"Set the control scheme for a specific agent.\n\n Args:\n agent_name (str): The name of the agent to set the control scheme for.\n control_scheme (int): A control scheme value (see :obj:`holodeck.agents.ControlSchemes`)"
111
false
BYU-PCCL/holodeck
set_control_scheme
10,173
LDU_FT/tensorflow/skflow/write_markdown_to_file
LDU_FT
[ "<BEGIN>\n## `collect_members`", "Collect all symbols from a list of modules.", " Args:\n module_to_name: Dictionary mapping modules to short names.", " Returns:\n Dictionary mapping name to (fullname, member) pairs.\n<END>", "<BEGIN>\n## `_get_anchor`", "Turn a full member name into an anchor.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_markdown_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_markdown_to_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Prints this library to file `f`. Args: f: File to write to. Returns: Dictionary of documented members.
"Prints this library to file `f`.\n\n Args:\n f: File to write to.\n\n Returns:\n Dictionary of documented members."
46
false
tensorflow/skflow
write_markdown_to_file
10,174
LDU_FT/bniemczyk/automata/SpamsumDistance
LDU_FT
[ "<BEGIN>\n## `transitions_to`", "returns enumerable of (prevstate, t) tuples\n this is super slow and needs to be sped up\n<END>", "<BEGIN>\n## `reltags`", "returns all the tags that are relevant at this state\n cache should be a dictionary and it is updated\n by the function\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SpamsumDistance API. 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 SpamsumDistance API. 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 the spamsum distance between ssA and ssB if they use a different block size, assume maximum distance otherwise returns the LevDistance
"returns the spamsum distance between ssA and ssB\n if they use a different block size, assume maximum distance\n otherwise returns the LevDistance"
13
false
bniemczyk/automata
SpamsumDistance
10,175
LDU_FT/sernst/cauldron/entry_from_dict
LDU_FT
[ "<BEGIN>\n## `set_executing`", "Toggle whether or not the current thread is executing a step file. This\n will only apply when the current thread is a CauldronThread. This function\n has no effect when run on a Main thread.", " :param on:\n Whether or not the thread should be annotated as execut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entry_from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entry_from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Converts the given data dictionary into either a file write or file copy entry depending on the keys in the dictionary. The dictionary should contain either ('path', 'contents') keys for file write entries or ('source', 'destination') keys for file copy entries.
"Converts the given data dictionary into either a file write or file copy\n entry depending on the keys in the dictionary. The dictionary should\n contain either ('path', 'contents') keys for file write entries or\n ('source', 'destination') keys for file copy entries."
534
false
sernst/cauldron
entry_from_dict
10,176
LDU_FT/VikParuchuri/percept/reformat_file
LDU_FT
[ "<BEGIN>\n## `train`", "Calculate the standard deviations and means in the training data\n<END>", "<BEGIN>\n## `predict`", "Adjust new input by the values in the training data\n<END>", "<BEGIN>\n## `save`", "Save an object, and use id_code in the filename\n obj - any object\n id_code - uniqu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reformat_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reformat_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Reformat input data files to a format the tasks can use
"Reformat input data files to a format the tasks can use"
72
false
VikParuchuri/percept
reformat_file
10,177
LDU_FT/dshean/pygeotools/diskwarp
LDU_FT
[ "<BEGIN>\n## `fn_check_full`", "Check for file existence", " Avoids race condition, but slower than os.path.exists.", " Parameters\n ----------\n fn : str\n Input filename string.", " Returns\n -------\n status \n True if file exists, False otherwise.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diskwarp API. 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 diskwarp API. 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...
Helper function that calls warp for single input Dataset with output to disk (GDAL GeoTiff Driver)
"Helper function that calls warp for single input Dataset with output to disk (GDAL GeoTiff Driver)"
322
false
dshean/pygeotools
diskwarp
10,178
LDU_FT/peterwittek/ncpol2sdpa/solve_with_sdpa
LDU_FT
[ "<BEGIN>\n## `read_sdpa_out`", "Helper function to parse the output file of SDPA.", " :param filename: The name of the SDPA output file.\n :type filename: str.\n :param solutionmatrix: Optional parameter for retrieving the solution.\n :type solutionmatrix: bool.\n :param status: Optional paramete...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve_with_sdpa API. 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 solve_with_sdpa API. 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...
Helper function to write out the SDP problem to a temporary file, call the solver, and parse the output. :param sdp: The SDP relaxation to be solved. :type sdp: :class:`ncpol2sdpa.sdp`. :param solverparameters: Optional parameters to SDPA. :type solverparameters: dict of str. :returns: tuple of...
"Helper function to write out the SDP problem to a temporary\n file, call the solver, and parse the output.\n\n :param sdp: The SDP relaxation to be solved.\n :type sdp: :class:`ncpol2sdpa.sdp`.\n :param solverparameters: Optional parameters to SDPA.\n :type solverparameters: dict of str.\n :returns: ...
217
false
peterwittek/ncpol2sdpa
solve_with_sdpa
10,179
LDU_FT/aroberge/experimental/get_lib2to3_fixers
LDU_FT
[ "<BEGIN>\n## `start_console`", "Starts a console; modified from code.interact\n<END>", "<BEGIN>\n## `push`", "Transform and push a line to the interpreter.", " The line should not have a trailing newline; it may have\n internal newlines. The line is appended to a buffer and the\n inter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lib2to3_fixers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lib2to3_fixers 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...
returns a list of all fixers found in the lib2to3 library
"returns a list of all fixers found in the lib2to3 library"
54
false
aroberge/experimental
get_lib2to3_fixers
10,180
LDU_FT/line/line-bot-sdk-python/get_message_content
LDU_FT
[ "<BEGIN>\n## `get`", "GET request.", " :param str url: Request url\n :param dict headers: (optional) Request headers\n :param dict params: (optional) Request query parameter\n :param bool stream: (optional) get content as stream\n :param timeout: (optional), How long to wait f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message_content 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...
Call get content API. https://devdocs.line.me/en/#get-content Retrieve image, video, and audio data sent by users. :param str message_id: Message ID :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a (conn...
"Call get content API.\n\n https://devdocs.line.me/en/#get-content\n\n Retrieve image, video, and audio data sent by users.\n\n :param str message_id: Message ID\n :param timeout: (optional) How long to wait for the server\n to send data before giving up, as a float,\n ...
135
false
line/line-bot-sdk-python
get_message_content
10,181
LDU_FT/MolSSI-BSE/basis_set_exchange/sort_single_reference
LDU_FT
[ "<BEGIN>\n## `read_gbasis`", "Reads gbasis-formatted file data and converts it to a dictionary with the\n usual BSE fields", " Note that the gbasis format does not store all the fields we\n have, so some fields are left blank\n<END>", "<BEGIN>\n## `read_molcas`", "Reads molcas-formatted fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_single_reference 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 sort_single_reference API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sorts a dictionary containing data for a single reference into a standard order
"Sorts a dictionary containing data for a single reference into a standard order"
408
false
MolSSI-BSE/basis_set_exchange
sort_single_reference
10,182
LDU_FT/nion-software/nionswift/clone_workspace
LDU_FT
[ "<BEGIN>\n## `get_string`", "Return a string value that the user enters. Raises exception for cancel.\n<END>", "<BEGIN>\n## `__accept_reject`", "Return a boolean value for accept/reject.\n<END>", "<BEGIN>\n## `item_transaction`", "Begin transaction state for item.", " A transaction state is exist...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone_workspace API. 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 clone_workspace API. 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...
Pose a dialog to name and clone a workspace.
"Pose a dialog to name and clone a workspace."
690
false
nion-software/nionswift
clone_workspace
10,183
LDU_FT/F483/btctxstore/publish
LDU_FT
[ "<BEGIN>\n## `_recover_public_key`", "Recover a public key from a signature.\n See SEC 1: Elliptic Curve Cryptography, section 4.1.6, \"Public\n Key Recovery Operation\".\n http://www.secg.org/sec1-v2.pdf\n<END>", "<BEGIN>\n## `chunks`", "Split list into chunks of the given size.\n Original order ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish API. 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 publish API. 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...
Publish signed <rawtx> to bitcoin network.
"Publish signed <rawtx> to bitcoin network."
41
false
F483/btctxstore
publish
10,184
LDU_FT/SiLab-Bonn/pyBAR/invert_pixel_mask
LDU_FT
[ "<BEGIN>\n## `thunkify`", "Make a function immediately return a function of no args which, when called,\n waits for the result, which will start being processed in another thread.\n Taken from https://wiki.python.org/moin/PythonDecoratorLibrary.\n<END>", "<BEGIN>\n## `set_event_when_keyboard_interrupt`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invert_pixel_mask API. 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 invert_pixel_mask API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Invert pixel mask (0->1, 1(and greater)->0). Parameters ---------- mask : array-like Mask. Returns ------- inverted_mask : array-like Inverted Mask.
"Invert pixel mask (0->1, 1(and greater)->0).\r\n\r\n Parameters\r\n ----------\r\n mask : array-like\r\n Mask.\r\n\r\n Returns\r\n -------\r\n inverted_mask : array-like\r\n Inverted Mask."
501
false
SiLab-Bonn/pyBAR
invert_pixel_mask
10,185
LDU_FT/HdrHistogram/HdrHistogram_py/get_next_interval_histogram
LDU_FT
[ "<BEGIN>\n## `init_counts`", "Called after instantiating with a compressed payload\n Params:\n counts_len counts size to use based on decoded settings in the header\n<END>", "<BEGIN>\n## `_decompress`", "Decompress a compressed payload into this payload wrapper.\n Note that the decomp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_interval_histogram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_interval_histogram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Read the next interval histogram from the log, if interval falls within an absolute or relative time range. Timestamps are assumed to appear in order in the log file, and as such this method will return a null upon encountering a timestamp larger than range_end_time_sec. Relati...
"Read the next interval histogram from the log, if interval falls\n within an absolute or relative time range.\n\n Timestamps are assumed to appear in order in the log file, and as such\n this method will return a null upon encountering a timestamp larger than\n range_end_time_sec.\n\n ...
71
false
HdrHistogram/HdrHistogram_py
get_next_interval_histogram
10,186
LDU_FT/Cito/DBUtils/connection
LDU_FT
[ "<BEGIN>\n## `connection`", "Get a steady, cached DB-API 2 connection from the pool.", " If shareable is set and the underlying DB-API 2 allows it,\n then the connection may be shared with other threads.\n<END>", "<BEGIN>\n## `unshare`", "Decrease the share of a connection in the shared cache....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection API. 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 connection API. 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...
Get a steady, cached DB-API 2 connection from the pool. If shareable is set and the underlying DB-API 2 allows it, then the connection may be shared with other threads.
"Get a steady, cached DB-API 2 connection from the pool.\n\n If shareable is set and the underlying DB-API 2 allows it,\n then the connection may be shared with other threads."
80
false
Cito/DBUtils
connection
10,187
LDU_FT/stitchfix/pyxley/set_integer
LDU_FT
[ "<BEGIN>\n## `set_float`", "Set a float option.", " Args:\n option (str): name of option.\n value (float): value of the option.", " Raises:\n TypeError: Value must be a float.\n<END>", "<BEGIN>\n## `set_integer`", "Set an integer option.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_integer API. 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_integer API. 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...
Set an integer option. Args: option (str): name of option. value (int): value of the option. Raises: ValueError: Value must be an integer.
"Set an integer option.\n\n Args:\n option (str): name of option.\n value (int): value of the option.\n\n Raises:\n ValueError: Value must be an integer."
82
false
stitchfix/pyxley
set_integer
10,188
LDU_FT/IDSIA/sacred/run
LDU_FT
[ "<BEGIN>\n## `open_resource`", "Open a file and also save it as a resource.", " Opens a file, reports it to the observers as a resource, and returns\n the opened file.", " In Sacred terminology a resource is a file that the experiment needed\n to access during a run. In case of a M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run the main function of the experiment or a given command. Parameters ---------- command_name : str, optional Name of the command to be run. Defaults to main function. config_updates : dict, optional Changes to the configuration as a nested dictionary ...
"Run the main function of the experiment or a given command.\n\n Parameters\n ----------\n command_name : str, optional\n Name of the command to be run. Defaults to main function.\n\n config_updates : dict, optional\n Changes to the configuration as a nested dictionary\...
284
false
IDSIA/sacred
run
10,189
LDU_FT/cmcdowell/weatherpy/as_html
LDU_FT
[ "<BEGIN>\n## `_get_xml`", "Returns the channel element of the RSS feed\n<END>", "<BEGIN>\n## `_parse_text`", "Returns the text, as a string, of the specified element in the specified\n namespace of the RSS feed.", " Takes element_name and namespace as strings.\n<END>", "<BEGIN>\n## `_parse_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns the image of the Yahoo rss feed as an html string
"Returns the image of the Yahoo rss feed as an html string"
19
false
cmcdowell/weatherpy
as_html
10,190
LDU_FT/sananth12/ImageScraper/download_image
LDU_FT
[ "<BEGIN>\n## `download_worker_fn`", "Stnadalone function that downloads images.\n<END>", "<BEGIN>\n## `get_arguments`", "Gets the arguments from the command line.\n<END>", "<BEGIN>\n## `get_html`", "Downloads HTML content of page given the page_url\n<END>", "<BEGIN>\n## `process_download_path`", "Proc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_image API. 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 download_image API. 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...
Downloads a single image. Downloads img_url using self.page_url as base. Also, raises the appropriate exception if required.
"Downloads a single image.\n\n Downloads img_url using self.page_url as base.\n Also, raises the appropriate exception if required."
18
false
sananth12/ImageScraper
download_image
10,191
LDU_FT/m32/endesive/set_auto_page_break
LDU_FT
[ "<BEGIN>\n## `load_elements`", "Initialize the internal element structures\n<END>", "<BEGIN>\n## `parse_csv`", "Parse template format csv file and create elements dict\n<END>", "<BEGIN>\n## `split_multicell`", "Divide (\\n) a string using a given element width\n<END>", "<BEGIN>\n## `set_auto_page_break`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_auto_page_break 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 set_auto_page_break 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...
Set auto page break mode and triggering margin
"Set auto page break mode and triggering margin"
23
false
m32/endesive
set_auto_page_break
10,192
LDU_FT/pinax/pinax-likes/render_like
LDU_FT
[ "<BEGIN>\n## `who_likes`", "Usage:\n {% who_likes obj as var %}\n<END>", "<BEGIN>\n## `likes`", "Usage:\n {% likes user as var %}\n Or\n {% likes user [model1, model2] as var %}\n<END>", "<BEGIN>\n## `likes_count`", "Usage:", " {% likes_count obj %}\n or\n {% lik...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_like API. 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 render_like API. 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...
{% likes user as like_list %} <ul> {% for like in like_list %} <li>{% render_like like %}</li> {% endfor %} </ul>
"{% likes user as like_list %}\n <ul>\n {% for like in like_list %}\n <li>{% render_like like %}</li>\n {% endfor %}\n </ul>"
12
false
pinax/pinax-likes
render_like
10,193
LDU_FT/SolutionsCloud/apidoc/load_all_from_directory
LDU_FT
[ "<BEGIN>\n## `_init_config`", "return command's configuration from call's arguments\n<END>", "<BEGIN>\n## `_merge_files`", "Combine the input files to a big output file\n<END>", "<BEGIN>\n## `create_from_name_and_dictionary`", "Return a populated object Object from dictionary datas\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_all_from_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_all_from_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return a list of dict from a directory containing files
"Return a list of dict from a directory containing files"
42
false
SolutionsCloud/apidoc
load_all_from_directory
10,194
LDU_FT/pysathq/pysat/add_clause
LDU_FT
[ "<BEGIN>\n## `open`", "Open a file pointer. Note that a file is *always* opened in text\n mode. The method inherits its input parameters from the constructor\n of :class:`FileObject`.\n<END>", "<BEGIN>\n## `get_compression_type`", "Determine compression type for a given file using its ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_clause API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_clause API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Add a new clause to solver's internal formula.
"Add a new clause to solver's internal formula."
578
false
pysathq/pysat
add_clause
10,195
LDU_FT/emory-libraries/eulcommon/create_textinput
LDU_FT
[ "<BEGIN>\n## `search_terms`", "Takes a search string and parses it into a list of keywords and\n phrases.\n<END>", "<BEGIN>\n## `pages_to_show`", "Generate a dictionary of pages to show around the current page. Show\n 3 numbers on either side of the specified page, or more if close to end or\n beginn...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_textinput API. 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 create_textinput API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generate and render a :class:`django.forms.widgets.TextInput` for a single year, month, or day input. If size is specified in the extra attributes, it will also be used to set the maximum length of the field. :param name: base name of the input field :param field: pattern for t...
"Generate and render a :class:`django.forms.widgets.TextInput` for\n a single year, month, or day input.\n\n If size is specified in the extra attributes, it will also be used to\n set the maximum length of the field.\n\n :param name: base name of the input field\n :param field: patte...
52
false
emory-libraries/eulcommon
create_textinput
10,196
LDU_FT/noirbizarre/flask-fs/init_app
LDU_FT
[ "<BEGIN>\n## `configure`", "Load configuration from application configuration.", " For each storage, the configuration is loaded with the following pattern::", " FS_{BACKEND_NAME}_{KEY} then\n {STORAGE_NAME}_FS_{KEY}", " If no configuration is set for a given key, global ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Initialize Storages configuration Register blueprint if necessary. :param app: The `~flask.Flask` instance to get the configuration from. :param storages: A `Storage` instance list to register and configure.
"Initialize Storages configuration\n Register blueprint if necessary.\n\n :param app: The `~flask.Flask` instance to get the configuration from.\n :param storages: A `Storage` instance list to register and configure."
62
false
noirbizarre/flask-fs
init_app
10,197
LDU_FT/e7dal/bubble3/inside_try
LDU_FT
[ "<BEGIN>\n## `cli`", "Show example for doing some task in bubble(experimental)\n<END>", "<BEGIN>\n## `cli`", "Bubble: command line tool for bubbling information between services", " .oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.\\n\n Making single point to point API connections:\\n\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inside_try API. 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 inside_try API. 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...
decorator to silence exceptions, for logging we want a "safe" fail of the functions
"decorator to silence exceptions, for logging\n we want a \"safe\" fail of the functions"
171
false
e7dal/bubble3
inside_try
10,198
LDU_FT/ethan92429/onshapepy/_make_headers
LDU_FT
[ "<BEGIN>\n## `log`", "Logs a message to the console, with optional level paramater", " Args:\n - msg (str): message to send to console\n - level (int): log level; 0 for info, 1 for error (default = 0)\n<END>", "<BEGIN>\n## `parse_quantity`", "Parse an OnShape units definition\n Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates a headers object to sign the request Args: - method (str): HTTP method - path (str): Request path, e.g. /api/documents. No query string - query (dict, default={}): Query string in key-value format - headers (dict, default={}): Other headers to pass in ...
"Creates a headers object to sign the request\n\n Args:\n - method (str): HTTP method\n - path (str): Request path, e.g. /api/documents. No query string\n - query (dict, default={}): Query string in key-value format\n - headers (dict, default={}): Other headers to pass...
93
false
ethan92429/onshapepy
_make_headers
10,199
LDU_FT/log2timeline/dfwinreg/last_written_time
LDU_FT
[ "<BEGIN>\n## `_CheckKeyPath`", "Checks the key path find specification.", " Args:\n registry_key (WinRegistryKey): Windows Registry key.\n search_depth (int): number of key path segments to compare.", " Returns:\n bool: True if the Windows Registry key matches the find specification,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last_written_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 last_written_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...
dfdatetime.DateTimeValues: last written time.
"dfdatetime.DateTimeValues: last written time."
199
false
log2timeline/dfwinreg
last_written_time
10,200
LDU_FT/jeffh/pyconstraints/_compute_search_spaces
LDU_FT
[ "<BEGIN>\n## `extract_values`", "Returns a tuple of the values that pertain to this constraint.", " It simply filters all values to by the variables this constraint uses.\n<END>", "<BEGIN>\n## `keys`", "Returns all the keys this object can return proper values for.\n<END>", "<BEGIN>\n## `values`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_search_spaces 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 _compute_search_spaces API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns the size of each domain for a simple constraint size computation. This is used to pick the most constraining constraint first.
"Returns the size of each domain for a simple constraint size computation.\n This is used to pick the most constraining constraint first."
30
false
jeffh/pyconstraints
_compute_search_spaces
10,201
LDU_FT/dnephin/PyStaticConfiguration/reload_if_changed
LDU_FT
[ "<BEGIN>\n## `build_attributes`", "Return an attributes dictionary with ValueTokens replaced by a\n property which returns the config value.\n<END>", "<BEGIN>\n## `cache_as_field`", "Cache a functions return value as the field 'cache_name'.\n<END>", "<BEGIN>\n## `extract_value`", "Given a value pro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload_if_changed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload_if_changed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
If the file(s) being watched by this object have changed, their configuration will be loaded again using `config_loader`. Otherwise this is a noop. :param force: If True ignore the `min_interval` and proceed to file modified comparisons. To force a reload use :func:`rel...
"If the file(s) being watched by this object have changed,\n their configuration will be loaded again using `config_loader`.\n Otherwise this is a noop.\n\n :param force: If True ignore the `min_interval` and proceed to\n file modified comparisons. To force a reload use\n :fu...
49
false
dnephin/PyStaticConfiguration
reload_if_changed
10,202
LDU_FT/wakatime/wakatime/format_lines
LDU_FT
[ "<BEGIN>\n## `wrap`", "[MS-NLMP] v28.0 2016-07-14", " 3.4.6 GSS_WrapEx()\n Emulates the GSS_Wrap() implementation to sign and seal messages if the correct flags\n are set.", " @param message: The message data that will be wrapped\n @return message: The message that has been ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_lines API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_lines API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Formats a sequence of strings for output.
"Formats a sequence of strings for output."
623
false
wakatime/wakatime
format_lines
10,203
LDU_FT/dlecocq/nsq-py/stats
LDU_FT
[ "<BEGIN>\n## `pack_iterable`", "Pack an iterable of messages in the TCP protocol format\n<END>", "<BEGIN>\n## `hexify`", "Print out printable characters, but others in hex\n<END>", "<BEGIN>\n## `distribute`", "Generator for (count, object) tuples that distributes count evenly among\n the provided objec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats API. 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 stats API. 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...
Read a stream of floats and give summary statistics
"Read a stream of floats and give summary statistics"
54
false
dlecocq/nsq-py
stats
10,204
LDU_FT/nickstenning/tagalog/execute_command
LDU_FT
[ "<BEGIN>\n## `fields`", "Add a set of fields to each item in ``iterable``. The set of fields have a\n key=value format. '@' are added to the front of each key.\n<END>", "<BEGIN>\n## `tag`", "Add tags to each dict or dict-like object in ``iterable``. Tags are added\n to each dict with a key set by ``key`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_command API. 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 execute_command API. 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...
Execute a command and return a parsed response
"Execute a command and return a parsed response"
17
false
nickstenning/tagalog
execute_command
10,205
LDU_FT/adamrehn/ue4cli/_getEngineRoot
LDU_FT
[ "<BEGIN>\n## `findArgs`", "Extracts the list of arguments that start with any of the specified prefix values\n<END>", "<BEGIN>\n## `stripArgs`", "Removes any arguments in the supplied list that are contained in the specified blacklist\n<END>", "<BEGIN>\n## `capture`", "Executes a child process and capture...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getEngineRoot API. 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 _getEngineRoot API. 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...
Retrieves the user-specified engine root directory override (if set), or else performs auto-detection
"Retrieves the user-specified engine root directory override (if set), or else performs auto-detection"
120
false
adamrehn/ue4cli
_getEngineRoot
10,206
LDU_FT/obsrvbl/flowlogs-reader/aggregated_records
LDU_FT
[ "<BEGIN>\n## `aggregated_records`", "Yield dicts that correspond to aggregates of the flow records given by\n the sequence of FlowRecords in `all_records`. Skips incomplete records.\n This will consume the `all_records` iterator, and requires enough memory to\n be able to read it entirely.\n `key_fiel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aggregated_records 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 aggregated_records 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...
Yield dicts that correspond to aggregates of the flow records given by the sequence of FlowRecords in `all_records`. Skips incomplete records. This will consume the `all_records` iterator, and requires enough memory to be able to read it entirely. `key_fields` optionally contains the fields over which t...
"Yield dicts that correspond to aggregates of the flow records given by\n the sequence of FlowRecords in `all_records`. Skips incomplete records.\n This will consume the `all_records` iterator, and requires enough memory to\n be able to read it entirely.\n `key_fields` optionally contains the fields over wh...
10
false
obsrvbl/flowlogs-reader
aggregated_records
10,207
LDU_FT/wandb/client/sum_layout_dimensions
LDU_FT
[ "<BEGIN>\n## `load_emacs_open_in_editor_bindings`", "Pressing C-X C-E will open the buffer in an external editor.\n<END>", "<BEGIN>\n## `load_extra_emacs_page_navigation_bindings`", "Key bindings, for scrolling up and down through pages.\n This are separate bindings, because GNU readline doesn't have them....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sum_layout_dimensions 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 sum_layout_dimensions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sum a list of :class:`.LayoutDimension` instances.
"Sum a list of :class:`.LayoutDimension` instances."
1,104
true
wandb/client
sum_layout_dimensions
10,208
LDU_FT/thingful/hypercat-py/rels
LDU_FT
[ "<BEGIN>\n## `_values`", "Searches a set <metadata> to find all relations <rel>\n Returns a list of the values of those relations\n (A list, because a rel can occur more than once)\n<END>", "<BEGIN>\n## `loads`", "Takes a string and converts it into an internal hypercat object, with some checking\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rels API. 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 rels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns a LIST of all the metadata relations
"Returns a LIST of all the metadata relations"
14
false
thingful/hypercat-py
rels
10,209
LDU_FT/PyMLGame/pymlgame/render
LDU_FT
[ "<BEGIN>\n## `update`", "Update the screens contents in every loop.\n<END>", "<BEGIN>\n## `render`", "Send the current screen content to Mate Light.\n<END>", "<BEGIN>\n## `gameloop`", "A game loop that circles through the methods.\n<END>", "<BEGIN>\n## `init`", "Initialize PyMLGame. This creates a con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. 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 render API. 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 ...
Send the current screen content to Mate Light.
"Send the current screen content to Mate Light."
63
false
PyMLGame/pymlgame
render
10,210
LDU_FT/ryanvarley/ExoData/convert
LDU_FT
[ "<BEGIN>\n## `load_db_from_url`", "Loads the database from a gzipped version of the system folder, by default the one located in the oec_gzip repo\n in the OpenExoplanetCatalogue GitHub group.", " The database is loaded from the url in memory", " :param url: url to load (must be gzipped version of sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Converts magnitudes using UBVRIJHKLMNQ photometry in Taurus-Auriga (Kenyon+ 1995) ReadMe+ftp1995ApJS..101..117K Colors for main-sequence stars If from_mag isn't specified the program will cycle through provided magnitudes and choose one. Note that all magnitudes are first converted to V, and...
"Converts magnitudes using UBVRIJHKLMNQ photometry in Taurus-Auriga (Kenyon+ 1995)\n ReadMe+ftp1995ApJS..101..117K Colors for main-sequence stars\n\n If from_mag isn't specified the program will cycle through provided magnitudes and choose one. Note that all\n magnitudes are first converted to V...
133
false
ryanvarley/ExoData
convert
10,211
LDU_FT/romana/vpc-router/_event_monitor_loop
LDU_FT
[ "<BEGIN>\n## `_do_tcp_check`", "Attempt to establish a TCP connection.", " If not successful, record the IP in the results dict.", " Always closes the connection at the end.\n<END>", "<BEGIN>\n## `do_health_checks`", "Perform a health check on a list of IP addresses.", " Each check ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _event_monitor_loop 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 _event_monitor_loop 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...
Monitor queues to receive updates about new route specs or any detected failed IPs. If any of those have updates, notify the health-monitor thread with a message on a special queue and also re-process the entire routing table. The 'iterations' argument allows us to limit the running time of the watch ...
"Monitor queues to receive updates about new route specs or any detected\n failed IPs.\n\n If any of those have updates, notify the health-monitor thread with a\n message on a special queue and also re-process the entire routing table.\n\n The 'iterations' argument allows us to limit the running time of the...
207
false
romana/vpc-router
_event_monitor_loop
10,212
LDU_FT/Trebek/pydealer/is_sorted
LDU_FT
[ "<BEGIN>\n## `build`", "Builds a standard 52 card French deck of Card instances.", " :arg bool jokers:\n Whether or not to include jokers in the deck.\n :arg int num_jokers:\n The number of jokers to include.\n<END>", "<BEGIN>\n## `deal`", "Returns a list of cards, which ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_sorted API. 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 is_sorted API. 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...
Checks whether the stack is sorted. :arg dict ranks: The rank dict to reference for checking. If ``None``, it will default to ``DEFAULT_RANKS``. :returns: Whether or not the cards are sorted.
"Checks whether the stack is sorted.\n\n :arg dict ranks:\n The rank dict to reference for checking. If ``None``, it will\n default to ``DEFAULT_RANKS``.\n\n :returns:\n Whether or not the cards are sorted."
96
false
Trebek/pydealer
is_sorted
10,213
LDU_FT/nephila/djangocms-apphook-setup/_setup_pages
LDU_FT
[ "<BEGIN>\n## `_create_page`", "Create a single page or titles", " :param page: Page instance\n :param lang: language code\n :param auto_title: title text for the newly created title\n :param cms_app: Apphook Class to be attached to the page\n :param parent: parent page (None w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_pages API. 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 _setup_pages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Create the page structure. It created a home page (if not exists) and a sub-page, and attach the Apphook to the sub-page. Pages titles are provided by ``AutoCMSAppMixin.auto_setup`` :param setup_config: boolean to control whether creating the ApphookConfig instance
"Create the page structure.\n\n It created a home page (if not exists) and a sub-page, and attach the Apphook to the\n sub-page.\n Pages titles are provided by ``AutoCMSAppMixin.auto_setup``\n\n :param setup_config: boolean to control whether creating the ApphookConfig instance"
21
false
nephila/djangocms-apphook-setup
_setup_pages
10,214
LDU_FT/05bit/peewee-async/scalar
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute *SELECT*, *INSERT*, *UPDATE* or *DELETE* query asyncronously.", " :param query: peewee query instance created with ``Model.select()``,\n ``Model.update()`` etc.\n :return: result depends on query type, it's the same as for sync\n ``query.execute()`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scalar API. 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 scalar API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get single value from ``select()`` query, i.e. for aggregation. :return: result is the same as after sync ``query.scalar()`` call
"Get single value from ``select()`` query, i.e. for aggregation.\n\n :return: result is the same as after sync ``query.scalar()`` call"
92
false
05bit/peewee-async
scalar
10,215
LDU_FT/polyaxon/polyaxon/get_dag
LDU_FT
[ "<BEGIN>\n## `on_failure`", "Update query status and send email notification to a user\n<END>", "<BEGIN>\n## `on_success`", "Send email notification and a file, if requested to do so by a user\n<END>", "<BEGIN>\n## `user_write_events`", "Return event types where use acted on an object.", " The wr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a dag representation of the nodes passed. This is equally used for pipelines and pipeline runs. Params: nodes: an instance of `Operation` | `OperationRun` the nodes to represent en dag. downstream_fn: a function that returns the downstream nodes of the a node. Returns: tup...
"Return a dag representation of the nodes passed.\n\n This is equally used for pipelines and pipeline runs.\n\n Params:\n nodes: an instance of `Operation` | `OperationRun` the nodes to represent en dag.\n downstream_fn: a function that returns the downstream nodes of the a node.\n\n Returns:\n ...
270
false
polyaxon/polyaxon
get_dag
10,216
LDU_FT/jay-johnson/network-pipeline/send_tcp_message
LDU_FT
[ "<BEGIN>\n## `publish_processed_network_packets`", "# Redis/RabbitMQ/SQS messaging endpoints for pub-sub\n routing_key = ev(\"PUBLISH_EXCHANGE\",\n \"reporting.accounts\")\n queue_name = ev(\"PUBLISH_QUEUE\",\n \"reporting.accounts\")\n auth_url = ev(\"PUB_BROKER_UR...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_tcp_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_tcp_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
send_tcp_message Send a ``TCP`` message to port 80 by default.
"send_tcp_message\n\n Send a ``TCP`` message to port 80 by default."
140
false
jay-johnson/network-pipeline
send_tcp_message
10,217
LDU_FT/CiscoUcs/UcsPythonSDK/GetUcsChild
LDU_FT
[ "<BEGIN>\n## `get_boot_device`", "Get the current boot device for the node.\r", " Provides the current boot device of the node. Be aware that not\r\n all drivers support this.\r", " :raises: InvalidParameterValue if any connection parameters are\r\n incorrect.\r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetUcsChild API. 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 GetUcsChild API. 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...
Gets Child Managed Object from UCS. - in_mo, if provided, it acts as a parent for the present operation. (required if in_dn is None). - in_dn, parent mo dn (required if in_mo is None) - class_id of the managed object/s to get.(optional) - in_hierarchical, Explores hierarchy if true, else returns managed object...
"Gets Child Managed Object from UCS.\n\n\t\t- in_mo, if provided, it acts as a parent for the present operation. (required if in_dn is None).\n\t\t- in_dn, parent mo dn (required if in_mo is None)\n\t\t- class_id of the managed object/s to get.(optional)\n\t\t- in_hierarchical, Explores hierarchy if true, else returns ...
179
false
CiscoUcs/UcsPythonSDK
GetUcsChild
10,218
LDU_FT/gabrielfalcao/HTTPretty/playback
LDU_FT
[ "<BEGIN>\n## `fake_wrap_socket`", "drop-in replacement for py:func:`ssl.wrap_socket`\n<END>", "<BEGIN>\n## `fake_getaddrinfo`", "drop-in replacement for :py:func:`socket.getaddrinfo`\n<END>", "<BEGIN>\n## `httprettified`", "decorator for test functions", " .. tip:: Also available under the alias :py:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the playback API. 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 playback API. 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...
.. testcode:: import io import json import requests import httpretty with httpretty.record('/tmp/ip.json'): data = requests.get('https://httpbin.org/ip').json() with io.open('/tmp/ip.json') as fd: assert data == json.load...
".. testcode::\n\n import io\n import json\n import requests\n import httpretty\n\n with httpretty.record('/tmp/ip.json'):\n data = requests.get('https://httpbin.org/ip').json()\n\n with io.open('/tmp/ip.json') as fd:\n assert data ...
54
false
gabrielfalcao/HTTPretty
playback
10,219
LDU_FT/ska-sa/katversion/get_version
LDU_FT
[ "<BEGIN>\n## `patch_init_py`", "Patch __init__.py to remove version check and append hard-coded version.\n<END>", "<BEGIN>\n## `setuptools_entry`", "Setuptools entry point for setting version and baking it into package.\n<END>", "<BEGIN>\n## `date_version`", "Generate a version string based on the SCM typ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. 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_version API. 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 the version string. This function ensures that the version string complies with PEP 440. The format of our version string is: - for RELEASE builds: <major>.<minor> e.g. 0.1 2.4 - for DEVELOPMENT builds: <major>.<minor>.dev<num_b...
"Return the version string.\n\n This function ensures that the version string complies with PEP 440.\n The format of our version string is:\n\n - for RELEASE builds:\n <major>.<minor>\n e.g.\n 0.1\n 2.4\n\n - for DEVELOPMENT builds:\n <major>.<min...
41
false
ska-sa/katversion
get_version
10,220
LDU_FT/cocagne/txdbus/connectionLost
LDU_FT
[ "<BEGIN>\n## `isSignatureValid`", "Verifies that the received signature matches the expected value\n<END>", "<BEGIN>\n## `notifyOnDisconnect`", "Registers a callback that will be called when the DBus connection\n underlying the remote object is lost", " @type callback: Callable object acceptin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connectionLost API. 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 connectionLost API. 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...
Called when the transport loses connection to the bus
"Called when the transport loses connection to the bus"
160
false
cocagne/txdbus
connectionLost
10,221
LDU_FT/dankelley/nota/add
LDU_FT
[ "<BEGIN>\n## `compute_hash`", "Compute a hash. This is somewhat resistant to errors, e.g. if somehow the date is None,\n this will still work.\n<END>", "<BEGIN>\n## `initialize`", "Initialize the database. This is dangerous since it removes any\n existing content.\n<END>", "<BEGIN>\n## `add`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add a note to the database. The title should be short (perhaps 3 to 7 words). The keywords are comma-separated, and should be similar in style to others in the database. The content may be of any length. The attachments are comma-separated, and must be full pathnames to files that ex...
"Add a note to the database. The title should be short (perhaps 3\n to 7 words). The keywords are comma-separated, and should be similar\n in style to others in the database. The content may be of any length. The\n attachments are comma-separated, and must be full pathnames to files \n th...
12
false
dankelley/nota
add
10,222
LDU_FT/moonso/loqusdb/add_structural_variant
LDU_FT
[ "<BEGIN>\n## `update_database`", "Update a case in the database", " Args:\n adapter: Connection to database\n variant_file(str): Path to variant file\n sv_file(str): Path to sv variant file\n family_file(str): Path to family file\n family_type(str): Format of fami...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_structural_variant 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 add_structural_variant API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Add a variant to the structural variants collection The process of adding an SV variant differs quite a bit from the more straight forward case of SNV/INDEL. Variants are represented in the database by clusters that are two intervals, one interval for start(pos) and on...
"Add a variant to the structural variants collection\n \n The process of adding an SV variant differs quite a bit from the \n more straight forward case of SNV/INDEL.\n \n Variants are represented in the database by clusters that are two intervals,\n one interval for start(pos)...
216
false
moonso/loqusdb
add_structural_variant
10,223
LDU_FT/rueckstiess/mtools/planSummary
LDU_FT
[ "<BEGIN>\n## `wait_for_host`", "Ping server and wait for response.", " Ping a mongod or mongos every `interval` seconds until it responds, or\n `timeout` seconds have passed. If `to_start` is set to False, will wait for\n the node to shut down instead. This function can be called as a separate\n thr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the planSummary API. 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 planSummary API. 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...
Extract planSummary if available (lazy).
"Extract planSummary if available (lazy)."
260
false
rueckstiess/mtools
planSummary
10,224
LDU_FT/paydunya/paydunya-python/create
LDU_FT
[ "<BEGIN>\n## `_process`", "Processes the current transaction", " Sends an HTTP request to the PAYDUNYA API server\n<END>", "<BEGIN>\n## `add_header`", "Add a custom HTTP header to the client's request headers\n<END>", "<BEGIN>\n## `create`", "Adds the items to the invoice", " Format of '...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. 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 create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Adds the items to the invoice Format of 'items': [ InvoiceItem( name="VIP Ticket", quantity= 2, unit_price= "3500", total_price= "7000", description= "VIP Tickets for the Party" } ,... ]
"Adds the items to the invoice\n\n Format of 'items':\n [\n InvoiceItem(\n name=\"VIP Ticket\",\n quantity= 2,\n unit_price= \"3500\",\n total_price= \"7000\",\n description= \"VIP Tickets for the Party\"\n }\n ,...\n ...
26
false
paydunya/paydunya-python
create
10,225
LDU_FT/Alexis-benoist/eralchemy/get_output_mode
LDU_FT
[ "<BEGIN>\n## `filter_lines_from_comments`", "Filter the lines from comments and non code lines.\n<END>", "<BEGIN>\n## `_check_no_current_table`", "Raises exception if we try to add a relation or a column\n with no current table.\n<END>", "<BEGIN>\n## `markdown_file_to_intermediary`", "Parse a file and ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_output_mode API. 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 get_output_mode API. 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...
From the output name and the mode returns a the function that will transform the intermediary representation to the output.
"From the output name and the mode returns a the function that will transform the intermediary\n representation to the output."
39
false
Alexis-benoist/eralchemy
get_output_mode
10,226
LDU_FT/square/pylink/cpu_halt_reasons
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 cpu_halt_reasons API. 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 cpu_halt_reasons API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Retrives the reasons that the CPU was halted. Args: self (JLink): the ``JLink`` instance Returns: A list of ``JLInkMOEInfo`` instances specifying the reasons for which the CPU was halted. This list may be empty in the case that the CPU is not halted. R...
"Retrives the reasons that the CPU was halted.\n\n Args:\n self (JLink): the ``JLink`` instance\n\n Returns:\n A list of ``JLInkMOEInfo`` instances specifying the reasons for which\n the CPU was halted. This list may be empty in the case that the CPU\n is not halted.\n...
949
false
square/pylink
cpu_halt_reasons
10,227
LDU_FT/lago-project/lago/get_hash
LDU_FT
[ "<BEGIN>\n## `expose`", "Decorator to be used with :class:`SDKWrapper`. This decorator indicates\n that the wrapped method or class should be exposed in the proxied object.", " Args:\n func(types.FunctionType/types.MethodType): function to decorate", " Returns:\n None\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte...
Get the associated hash for the given handle, the hash file must exist (``handle + '.hash'``). Args: handle (str): Path to the template to get the hash from Returns: str: Hash for the given handle
"Get the associated hash for the given handle, the hash file must\n exist (``handle + '.hash'``).\n\n Args:\n handle (str): Path to the template to get the hash from\n\n Returns:\n str: Hash for the given handle"
718
false
lago-project/lago
get_hash
10,228
LDU_FT/peopledoc/workalendar/get_spring_holiday
LDU_FT
[ "<BEGIN>\n## `get_variable_days`", "Add Late Summer holiday (First Monday of September)\n<END>", "<BEGIN>\n## `iso_register`", "Registers Calendar class as country or region in IsoRegistry.", " Registered country must set class variables ``iso`` using this decorator.", " >>> from workalendar.core im...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_spring_holiday API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_spring_holiday API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return Spring Holiday for Edinburgh. Set to the 3rd Monday of April, unless it falls on Easter Monday, then it's shifted to previous week.
"Return Spring Holiday for Edinburgh.\n\n Set to the 3rd Monday of April, unless it falls on Easter Monday, then\n it's shifted to previous week."
106
false
peopledoc/workalendar
get_spring_holiday
10,229
LDU_FT/usc-isi-i2/dig-sparkutil/get_config
LDU_FT
[ "<BEGIN>\n## `addClusterId`", ":param line:\n reads all the ads in particular cluster, takes the hash of those uri's and appends that as cluster_id\n<END>", "<BEGIN>\n## `show_partitioning`", "Seems to be significantly more expensive on cluster than locally\n<END>", "<BEGIN>\n## `dict_minus`", "De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Like get_json_config but does not parse result as JSON
"Like get_json_config but does not parse result as JSON"
12
false
usc-isi-i2/dig-sparkutil
get_config
10,230
LDU_FT/jumpscale7/python-consistent-toml/structure
LDU_FT
[ "<BEGIN>\n## `peek`", "Returns PeekableIterator.Nothing when the iterator is exhausted.\n<END>", "<BEGIN>\n## `_append_to_parent`", "Causes this ephemeral table to be persisted on the TOMLFile.\n<END>", "<BEGIN>\n## `structure`", "Accepts an ordered sequence of TopLevel instances and returns a navigable o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the structure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the structure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Accepts an ordered sequence of TopLevel instances and returns a navigable object structure representation of the TOML file.
"Accepts an ordered sequence of TopLevel instances and returns a navigable object structure representation of the\n TOML file."
43
false
jumpscale7/python-consistent-toml
structure
10,231
LDU_FT/greenbone/ospd/ports_str_check_failed
LDU_FT
[ "<BEGIN>\n## `run_command`", "Run a single command via SSH and return the content of stdout or\n None in case of an Error. A scan error is issued in the latter\n case.", " For logging into 'host', the scan options 'port', 'username',\n 'password' and 'ssh_timeout' are used.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ports_str_check_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 ports_str_check_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....
Check if the port string is well formed. Return True if fail, False other case.
"Check if the port string is well formed.\n Return True if fail, False other case."
203
false
greenbone/ospd
ports_str_check_failed
10,232
LDU_FT/ChristianTremblay/BAC0/_buildPointList
LDU_FT
[ "<BEGIN>\n## `sim`", "Simulate I/O points by setting the Out_Of_Service property, then doing a \r\n WriteProperty to the point's Present_Value.\r", " :param args: String with <addr> <type> <inst> <prop> <value> [ <indx> ] [ <priority> ]\n<END>", "<BEGIN>\n## `out_of_service`", "Set the Out_Of_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _buildPointList API. 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 _buildPointList API. 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...
Upon connection to build the device point list and properties.
"Upon connection to build the device point list and properties."
73
false
ChristianTremblay/BAC0
_buildPointList
10,233
LDU_FT/jonaprieto/ponywhoosh/delete_documents
LDU_FT
[ "<BEGIN>\n## `add_field`", "Add a field in the index of the model.", " Args:\n fieldname (Text): This parameters register a new field in specified model.\n fieldspec (Name, optional): This option adds various options as were described before.", " Returns:\n TYPE: The new schema afte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_documents API. 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 delete_documents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Deletes all the documents using the pk associated to them.
"Deletes all the documents using the pk associated to them."
35
false
jonaprieto/ponywhoosh
delete_documents
10,234
LDU_FT/ska-sa/spead2/connect
LDU_FT
[ "<BEGIN>\n## `add_to_heap`", "Update a heap to contains all the new items and item descriptors\n since the last call.", " Parameters\n ----------\n heap : :py:class:`Heap`\n The heap to update.\n descriptors : {'stale', 'all', 'none'}\n Which descriptors ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Open a connection. The arguments are the same as for the constructor of :py:class:`spead2.send.TcpStream`.
"Open a connection.\n\n The arguments are the same as for the constructor of\n :py:class:`spead2.send.TcpStream`."
43
false
ska-sa/spead2
connect
10,235
LDU_FT/hvac/hvac/update_entity_alias
LDU_FT
[ "<BEGIN>\n## `read_init_status`", "Read the initialization status of Vault.", " Supported methods:\n GET: /sys/init. Produces: 200 application/json", " :return: The JSON response of the request.\n :rtype: dict\n<END>", "<BEGIN>\n## `initialize`", "Initialize a new Vault.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_entity_alias 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 update_entity_alias 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...
Update an existing entity alias. Supported methods: POST: /{mount_point}/entity-alias/id/{id}. Produces: 200 application/json :param alias_id: Identifier of the entity alias. :type alias_id: str | unicode :param name: Name of the alias. Name should be the identifier of the ...
"Update an existing entity alias.\n\n Supported methods:\n POST: /{mount_point}/entity-alias/id/{id}. Produces: 200 application/json\n\n :param alias_id: Identifier of the entity alias.\n :type alias_id: str | unicode\n :param name: Name of the alias. Name should be the identifier...
856
false
hvac/hvac
update_entity_alias
10,236
LDU_FT/mpapi/lazylights/parse_payload
LDU_FT
[ "<BEGIN>\n## `parse_packet`", "Parses a Lifx data packet (as a bytestring), returning into a Header object\n for the fields that are common to all data packets, and a bytestring of\n payload data for the type-specific fields (suitable for passing to\n `parse_payload`).\n<END>", "<BEGIN>\n## `parse_payl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_payload API. 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 parse_payload API. 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...
Parses a bytestring of Lifx payload data (the bytes after the common fields), as returned by `parse_packet`. Returns a dictionary where the keys are from `payload_names` and the values are the corresponding values from the bytestring.
"Parses a bytestring of Lifx payload data (the bytes after the common\n fields), as returned by `parse_packet`. Returns a dictionary where the keys\n are from `payload_names` and the values are the corresponding values from\n the bytestring."
63
false
mpapi/lazylights
parse_payload
10,237
LDU_FT/Richienb/quilt/average
LDU_FT
[ "<BEGIN>\n## `userinput`", "Get the input of the user via a universally secure method.", " :type prompttext: string\n :param prompttext: The text to display while receiving the data.", " :type times: integer\n :param times: The amount of times to ask the user. If value is not 1, a list will be ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the average API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the average API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Find the average of a list of numbers :type numbers: list :param numbers: The list of numbers to find the average of. :type averagetype: string :param averagetype: The type of average to find. >>> average([1, 2, 3, 4, 5], 'median') 3
"Find the average of a list of numbers\n\n :type numbers: list\n :param numbers: The list of numbers to find the average of.\n\n :type averagetype: string\n :param averagetype: The type of average to find.\n\n >>> average([1, 2, 3, 4, 5], 'median')\n 3"
210
false
Richienb/quilt
average
10,238
LDU_FT/elijahr/lk/build_parser
LDU_FT
[ "<BEGIN>\n## `build_parser`", "Returns an argparse.ArgumentParser instance to parse the command line\n arguments for lk\n<END>", "<BEGIN>\n## `get_file_contents`", "Return the contents of the text file at path.\n If it is a binary file,raise an IOError\n<END>", "<BEGIN>\n## `main`", "if lk.py is run...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns an argparse.ArgumentParser instance to parse the command line arguments for lk
"Returns an argparse.ArgumentParser instance to parse the command line\n arguments for lk"
12
false
elijahr/lk
build_parser
10,239
LDU_FT/redcanari/canari3/remote_transform
LDU_FT
[ "<BEGIN>\n## `icon_resource`", "Returns the absolute URI path to an image. If a package is not explicitly specified then the calling package name is\n used.", " :param name: path relative to package path of the image resource.\n :param package: package name in dotted format.\n :return: the file URI ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remote_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remote_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 ...
Runs Canari local transforms in a terminal-friendly fashion.
"Runs Canari local transforms in a terminal-friendly fashion."
126
false
redcanari/canari3
remote_transform
10,240
LDU_FT/tjvr/kurt/load_midi_file
LDU_FT
[ "<BEGIN>\n## `_workaround_no_stage_specific_variables`", "Make Stage-specific variables global (move them to Project).\n<END>", "<BEGIN>\n## `register`", "Register a new :class:`KurtPlugin`.", " Once registered, the plugin can be used by :class:`Project`, when:", " * :attr:`Project.load` see...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_midi_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_midi_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Yield (pitch, start_beat, end_beat) for each note in midi file.
"Yield (pitch, start_beat, end_beat) for each note in midi file."
171
false
tjvr/kurt
load_midi_file
10,241
LDU_FT/etcher-be/epab/reqs
LDU_FT
[ "<BEGIN>\n## `cli`", "This is a tool that handles all the tasks to build a Python application", " This tool is installed as a setuptools entry point, which means it should be accessible from your terminal once\n this application is installed in develop mode.\n<END>", "<BEGIN>\n## `sort`", "Runs iSort ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reqs API. 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 reqs API. 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...
Write requirements files Args: amend: amend last commit with changes stage: stage changes
"Write requirements files\n\n Args:\n amend: amend last commit with changes\n stage: stage changes"
133
false
etcher-be/epab
reqs
10,242
LDU_FT/ssanderson/interface/_invalid_implementation
LDU_FT
[ "<BEGIN>\n## `unique`", "Yield values yielded by ``g``, removing any duplicates.", " Example\n -------\n >>> list(unique(iter([1, 3, 1, 2, 3])))\n [1, 3, 2]\n<END>", "<BEGIN>\n## `static_get_type_attr`", "Get a type attribute statically, circumventing the descriptor protocol.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _invalid_implementation 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 _invalid_implementation 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 a TypeError explaining why ``t`` doesn't implement our interface.
"Make a TypeError explaining why ``t`` doesn't implement our interface."
31
false
ssanderson/interface
_invalid_implementation
10,243
LDU_FT/jenisys/parse_type/split_type
LDU_FT
[ "<BEGIN>\n## `build_type_dict`", "Builds type dictionary for user-defined type converters,\n used by :mod:`parse` module.\n This requires that each type converter has a \"name\" attribute.", " :param converters: List of type converters (parse_types)\n :return: Type converter dictionary\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Split type of a type name with CardinalityField suffix into its parts. :param type_name: Type name (as string). :return: Tuple (type_basename, cardinality)
"Split type of a type name with CardinalityField suffix into its parts.\n\n :param type_name: Type name (as string).\n :return: Tuple (type_basename, cardinality)"
115
false
jenisys/parse_type
split_type
10,244
LDU_FT/GeorgeArgyros/symautomata/_read_file
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 _read_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Args: fname (str): Name of the grammar file to be parsed Return: list: The grammar rules
"Args:\n fname (str): Name of the grammar file to be parsed\n Return:\n list: The grammar rules"
143
false
GeorgeArgyros/symautomata
_read_file
10,245
LDU_FT/juju/juju-bundlelib/_parse_url
LDU_FT
[ "<BEGIN>\n## `isstring`", "Report whether the given value is a byte or unicode string.\n<END>", "<BEGIN>\n## `_parse_url`", "Parse the given charm or bundle URL, provided as a string.", " Return a tuple containing the entity reference fragments: schema, user,\n series, name and revision.\n Each fra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_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 extrac...
Parse the given charm or bundle URL, provided as a string. Return a tuple containing the entity reference fragments: schema, user, series, name and revision. Each fragment is a string except revision (int). Raise a ValueError with a descriptive message if the given URL is not valid. If fully_quali...
"Parse the given charm or bundle URL, provided as a string.\n\n Return a tuple containing the entity reference fragments: schema, user,\n series, name and revision.\n Each fragment is a string except revision (int).\n\n Raise a ValueError with a descriptive message if the given URL is not\n valid. If ful...
84
false
juju/juju-bundlelib
_parse_url
10,246
LDU_FT/aws/aws-iot-device-sdk-python/setBackoffTiming
LDU_FT
[ "<BEGIN>\n## `shadowGet`", "**Description**", " Retrieve the device shadow JSON document from AWS IoT by publishing an empty JSON document to the \n corresponding shadow topics. Shadow response topics will be subscribed to receive responses from \n AWS IoT regarding the result of the get op...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setBackoffTiming API. 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 setBackoffTiming API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Make custom settings for backoff timing for reconnect logic srcBaseReconnectTimeSecond - The base reconnection time in seconds srcMaximumReconnectTimeSecond - The maximum reconnection time in seconds srcMinimumConnectTimeSecond - The minimum time in seconds that a connection must be maintained i...
"Make custom settings for backoff timing for reconnect logic\n srcBaseReconnectTimeSecond - The base reconnection time in seconds\n srcMaximumReconnectTimeSecond - The maximum reconnection time in seconds\n srcMinimumConnectTimeSecond - The minimum time in seconds that a connection must be maintain...
420
false
aws/aws-iot-device-sdk-python
setBackoffTiming
10,247
LDU_FT/MisterY/gnucash-portfolio/print_failure_message
LDU_FT
[ "<BEGIN>\n## `get_next_occurrence`", "Calculates the next occurrence date for scheduled transaction.\n Mimics the recurrenceNextInstance() function from GnuCash.\n Still not fully complete but handles the main cases I use.\n<END>", "<BEGIN>\n## `handle_friday`", "Extracted the calculation for when the n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_failure_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_failure_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Print a message indicating failure in red color to STDERR. :param message: the message to print :type message: :class:`str`
"Print a message indicating failure in red color to STDERR.\n\n :param message: the message to print\n :type message: :class:`str`"
157
false
MisterY/gnucash-portfolio
print_failure_message
10,248
LDU_FT/ColtonProvias/sqlalchemy-jsonapi/post_relationship
LDU_FT
[ "<BEGIN>\n## `user_error`", "Create and return a general user error response that is jsonapi compliant.", " Required args:\n status_code: The HTTP status code associated with the problem.\n title: A short summary of the problem.\n detail: An explanation specific to the occurence of the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_relationship API. 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 post_relationship API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Append to a relationship. :param session: SQLAlchemy session :param json_data: Request JSON Data :param api_type: Type of the resource :param obj_id: ID of the resource :param rel_key: Key of the relationship to fetch
"Append to a relationship.\n\n :param session: SQLAlchemy session\n :param json_data: Request JSON Data\n :param api_type: Type of the resource\n :param obj_id: ID of the resource\n :param rel_key: Key of the relationship to fetch"
95
false
ColtonProvias/sqlalchemy-jsonapi
post_relationship
10,249
LDU_FT/Aluriak/ACCC/compile
LDU_FT
[ "<BEGIN>\n## `constructSpec`", "Return a language specification based on parameters.\n<END>", "<BEGIN>\n## `translated`", "Return code associated to given structure and values, \n translate with given language specification.\n<END>", "<BEGIN>\n## `cpp_spec`", "C++ specification, provided for example, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile API. 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 compile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return ready-to-exec object code of compilation. Use python built-in compile function. Use exec(1) on returned object for execute it.
"Return ready-to-exec object code of compilation.\n Use python built-in compile function.\n Use exec(1) on returned object for execute it."
22
false
Aluriak/ACCC
compile
10,250
LDU_FT/aws/chalice/get_sdk_download_stream
LDU_FT
[ "<BEGIN>\n## `create_from_lambda_arn`", "Create a LogRetriever from a client and lambda arn.", " :type client: botocore.client.Logs\n :param client: A ``logs`` client.", " :type lambda_arn: str\n :param lambda_arn: The ARN of the lambda function.", " :return: An instance o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sdk_download_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sdk_download_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...
Generate an SDK for a given SDK. Returns a file like object that streams a zip contents for the generated SDK.
"Generate an SDK for a given SDK.\n\n Returns a file like object that streams a zip contents for the\n generated SDK."
96
false
aws/chalice
get_sdk_download_stream
10,251
LDU_FT/sentinel-hub/eo-learn/register
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute computation of blobs on input eopatch", " :param eopatch: Input eopatch\n :type eopatch: eolearn.core.EOPatch\n :return: EOPatch instance with new key holding the blob image.\n :rtype: eolearn.core.EOPatch\n<END>", "<BEGIN>\n## `_check_classifier`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Implementation of pair-wise registration and warping using Enhanced Correlation Coefficient This function estimates an Euclidean transformation (x,y translation + rotation) using the intensities of the pair of images to be registered. The similarity metric is a modification of the cross-correlation met...
"Implementation of pair-wise registration and warping using Enhanced Correlation Coefficient\n\n This function estimates an Euclidean transformation (x,y translation + rotation) using the intensities of the\n pair of images to be registered. The similarity metric is a modification of the cross-correlation...
453
false
sentinel-hub/eo-learn
register
10,252
LDU_FT/daveoncode/python-string-utils/camel_case_to_snake
LDU_FT
[ "<BEGIN>\n## `is_url`", "Check if a string is a valid url.", " :param string: String to check.\n :param allowed_schemes: List of valid schemes ('http', 'https', 'ftp'...). Default to None (any scheme is valid).\n :return: True if url, false otherwise\n :rtype: bool\n<END>", "<BEGIN>\n## `is_credit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the camel_case_to_snake 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 camel_case_to_snake API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Convert a camel case string into a snake case one. (The original string is returned if is not a valid camel case string) :param string: String to convert. :type string: str :param separator: Sign to use as separator. :type separator: str :return: Converted string. :rtype: str
"Convert a camel case string into a snake case one.\n (The original string is returned if is not a valid camel case string)\n\n :param string: String to convert.\n :type string: str\n :param separator: Sign to use as separator.\n :type separator: str\n :return: Converted string.\n :rtype: str"
46
false
daveoncode/python-string-utils
camel_case_to_snake
10,253
LDU_FT/Calysto/calysto/lookupPattern
LDU_FT
[ "<BEGIN>\n## `setCoords`", "Set coordinates of window to run from (x1,y1) in the\n lower-left corner to (x2,y2) in the upper-right corner.\n<END>", "<BEGIN>\n## `convert`", "png, ps, pdf, gif, jpg, svg\n returns image in format as bytes\n<END>", "<BEGIN>\n## `getPixels`", "Return a stream of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookupPattern API. 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 lookupPattern API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
See if there is a name/layer pattern combo, else return the name pattern.
"See if there is a name/layer pattern combo, else return the name pattern."
236
false
Calysto/calysto
lookupPattern
10,254
LDU_FT/pypa/warehouse/merge
LDU_FT
[ "<BEGIN>\n## `user_projects`", "Return all the projects for which the user is a sole owner\n<END>", "<BEGIN>\n## `merge`", "Merge one or more revisions.", " Takes one or more revisions or \"heads\" for all heads and merges them into\n a single revision.\n<END>", "<BEGIN>\n## `column_windows`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API. 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 merge API. 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...
Merge one or more revisions. Takes one or more revisions or "heads" for all heads and merges them into a single revision.
"Merge one or more revisions.\n\n Takes one or more revisions or \"heads\" for all heads and merges them into\n a single revision."
47
false
pypa/warehouse
merge
10,255
LDU_FT/django-auth-ldap/django-auth-ldap/_get_groups
LDU_FT
[ "<BEGIN>\n## `get_or_build_user`", "This must return a (User, built) 2-tuple for the given LDAP user.", " username is the Django-friendly username of the user. ldap_user.dn is\n the user's DN and ldap_user.attrs contains all of their LDAP\n attributes.", " The returned User object ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_groups API. 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_groups API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns an _LDAPUserGroups object, which can determine group membership.
"Returns an _LDAPUserGroups object, which can determine group\n membership."
65
false
django-auth-ldap/django-auth-ldap
_get_groups
10,256
LDU_FT/RedFantom/ttkwidgets/cget
LDU_FT
[ "<BEGIN>\n## `_grid_widgets`", "Puts the two whole widgets in the correct position depending on compound.\n<END>", "<BEGIN>\n## `_on_click`", "Function bound to event of selection in the Combobox, calls callback if callable", " :param event: Tkinter event\n<END>", "<BEGIN>\n## `left_press`", "Cal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cget API. 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 cget API. 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...
Query widget option. :param key: option name :type key: str :return: value of the option To get the list of options for this widget, call the method :meth:`~Balloon.keys`.
"Query widget option.\n\n :param key: option name\n :type key: str\n :return: value of the option\n\n To get the list of options for this widget, call the method :meth:`~Balloon.keys`."
429
false
RedFantom/ttkwidgets
cget
10,257
LDU_FT/obulpathi/cdn-fastly-python/create_backend
LDU_FT
[ "<BEGIN>\n## `list_backends`", "List all backends for a particular service and version.\n<END>", "<BEGIN>\n## `create_backend`", "Create a backend for a particular service and version.\n<END>", "<BEGIN>\n## `get_backend`", "Get the backend for a particular service and version.\n<END>", "<BEGIN>\n## `upd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_backend API. 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_backend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create a backend for a particular service and version.
"Create a backend for a particular service and version."
116
false
obulpathi/cdn-fastly-python
create_backend
10,258
LDU_FT/obriencj/python-javatools/default_jardiff_options
LDU_FT
[ "<BEGIN>\n## `compare`", "yields EVENT,ENTRY pairs describing the differences between left\n and right, which are filenames for a pair of zip files\n<END>", "<BEGIN>\n## `compare_zips`", "yields EVENT,ENTRY pairs describing the differences between left\n and right ZipFile instances\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_jardiff_options 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 default_jardiff_options API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
generate an options object with the appropriate default values in place for API usage of jardiff features. overrides is an optional dictionary which will be used to update fields on the options object.
"generate an options object with the appropriate default values in\n place for API usage of jardiff features. overrides is an optional\n dictionary which will be used to update fields on the options\n object."
357
false
obriencj/python-javatools
default_jardiff_options
10,259
LDU_FT/gvanderheide/discreteMarkovChain/partition
LDU_FT
[ "<BEGIN>\n## `uniqueStates`", "Returns unique states and sums up the corresponding rates.\n States should be a 2d numpy array with on each row a state, and rates a 1d numpy array with length equal to the number of rows in states. ", " This may be helpful in the transition function for summing up the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partition API. 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 partition API. 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...
Function that can be helpful for obtaining the state space of a discrete Markov chain or Markov decision processes. Returns a 2d-array with on the rows all possible partitions of the ranges `min_range[j],...,max_range[j]` for each j. If the argument `max_sum` is specified, the numbers will add up to at most `...
"Function that can be helpful for obtaining the state space of a discrete Markov chain or Markov decision processes. \n Returns a 2d-array with on the rows all possible partitions of the ranges `min_range[j],...,max_range[j]` for each j. \n If the argument `max_sum` is specified, the numbers will add up to at mos...
68
false
gvanderheide/discreteMarkovChain
partition
10,260
LDU_FT/IBMStreams/pypi.streamsx/get_application_configurations
LDU_FT
[ "<BEGIN>\n## `get_application_configuration`", "Get a named application configuration.", " An application configuration is a named set of securely stored properties\n where each key and its value in the property set is a string.", " An application configuration object is used to store information tha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_application_configurations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_application_configurations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Retrieves application configurations for this instance. Args: name (str, optional): Only return application configurations containing property **name** that matches `name`. `name` can be a regular expression. If `name` is not supplied, then all application configurations are returne...
"Retrieves application configurations for this instance.\n\n Args:\n name (str, optional): Only return application configurations containing property **name** that matches `name`. `name` can be a\n regular expression. If `name` is not supplied, then all application configurations are re...
651
false
IBMStreams/pypi.streamsx
get_application_configurations
10,261
LDU_FT/ontio/ontology-python-sdk/get_asset_address
LDU_FT
[ "<BEGIN>\n## `init`", "This interface is used to call the TotalSupply method in ope4\n that initialize smart contract parameter.", " :param acct: an Account class that used to sign the transaction.\n :param payer_acct: an Account class that used to pay for the transaction.\n :param g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_asset_address API. 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_asset_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This interface is used to get the smart contract address of ONT otr ONG. :param asset: a string which is used to indicate which asset's contract address we want to get. :return: the contract address of asset in the form of bytearray.
"This interface is used to get the smart contract address of ONT otr ONG.\n\n :param asset: a string which is used to indicate which asset's contract address we want to get.\n :return: the contract address of asset in the form of bytearray."
375
false
ontio/ontology-python-sdk
get_asset_address
10,262
LDU_FT/mdickinson/refcycle/import_json
LDU_FT
[ "<BEGIN>\n## `restore_gc_state`", "Restore the garbage collector state on leaving the with block.\n<END>", "<BEGIN>\n## `children`", "Return the list of immediate children of the given vertex.\n<END>", "<BEGIN>\n## `parents`", "Return the list of immediate parents of this vertex.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_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 extra...
Import graph from the given file. The file is expected to contain UTF-8 encoded JSON data.
"Import graph from the given file. The file is expected\n to contain UTF-8 encoded JSON data."
98
false
mdickinson/refcycle
import_json
10,263
LDU_FT/portfoliome/foil/create_indexer
LDU_FT
[ "<BEGIN>\n## `_`", "ISO 8601 format. Interprets naive datetime as UTC with zulu suffix.\n<END>", "<BEGIN>\n## `create_key_filter`", "Generate combinations of key, value pairs for each key in properties.", " Examples\n --------\n properties = {'ent': ['geo_rev', 'supply_chain'], 'own', 'fi'}\n >>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_indexer API. 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_indexer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create indexer function to pluck values from list.
"Create indexer function to pluck values from list."
89
false
portfoliome/foil
create_indexer
10,264
LDU_FT/dwavesystems/dwave_embedding_utilities/chain_break_frequency
LDU_FT
[ "<BEGIN>\n## `embed_ising`", "Embeds a logical Ising model onto another graph via an embedding.", " Args:\n source_linear (dict): The linear biases to be embedded. Should be a dict of\n the form {v: bias, ...} where v is a variable in the source model\n and bias is the linear bia...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chain_break_frequency 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 chain_break_frequency API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Determines the frequency of chain breaks in the given samples. Args: samples (iterable): An iterable of samples where each sample is a dict of the form {v: val, ...} where v is a variable in the target graph and val is the associated value as determined by a binary quadr...
"Determines the frequency of chain breaks in the given samples.\n\n Args:\n samples (iterable): An iterable of samples where each sample\n is a dict of the form {v: val, ...} where v is a variable\n in the target graph and val is the associated value as\n determined by a binar...
33
false
dwavesystems/dwave_embedding_utilities
chain_break_frequency
10,265
LDU_FT/MacHu-GWU/angora-project/repr_setattr
LDU_FT
[ "<BEGIN>\n## `run_backup`", "The backup utility method.", " :param root_dir: the directory you want to backup\n :param ignore: file or directory defined in this list will be ignored.\n :param ignore_ext: file with extensions defined in this list will be ignored.\n :param ignore_pattern: any file or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repr_setattr API. 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 repr_setattr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Create code like this:: person = Person(name='Jack', person_id=1) self.name____Jack = person self.person_id____1 = person person = Person(name='Paul', person_id=2) self.name____Paul = person self.pe...
"Create code like this::\n \n person = Person(name='Jack', person_id=1)\n self.name____Jack = person\n self.person_id____1 = person\n \n person = Person(name='Paul', person_id=2)\n self.name____Paul = person\n ...
616
false
MacHu-GWU/angora-project
repr_setattr
10,266
LDU_FT/pmneila/morphsnakes/inverse_gaussian_gradient
LDU_FT
[ "<BEGIN>\n## `visual_callback_2d`", "Returns a callback than can be passed as the argument `iter_callback`\n of `morphological_geodesic_active_contour` and\n `morphological_chan_vese` for visualizing the evolution\n of the levelsets. Only works for 2D images.", " Parameters\n ----------\n back...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inverse_gaussian_gradient 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 inverse_gaussian_gradient API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Inverse of gradient magnitude. Compute the magnitude of the gradients in the image and then inverts the result in the range [0, 1]. Flat areas are assigned values close to 1, while areas close to borders are assigned values close to 0. This function or a similar one defined by the user should be appli...
"Inverse of gradient magnitude.\n\n Compute the magnitude of the gradients in the image and then inverts the\n result in the range [0, 1]. Flat areas are assigned values close to 1,\n while areas close to borders are assigned values close to 0.\n\n This function or a similar one defined by the user should b...
66
false
pmneila/morphsnakes
inverse_gaussian_gradient
10,267
LDU_FT/MostAwesomeDude/gentleman/DeleteInstance
LDU_FT
[ "<BEGIN>\n## `request`", "Sends an HTTP request.", " This constructs a full URL, encodes and decodes HTTP bodies, and\n handles invalid responses in a pythonic way.", " @type method: string\n @param method: HTTP method to use\n @type path: string\n @param path: HTTP U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DeleteInstance API. 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 DeleteInstance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Deletes an instance. @type instance: str @param instance: the instance to delete @rtype: int @return: job id
"Deletes an instance.\n\n @type instance: str\n @param instance: the instance to delete\n\n @rtype: int\n @return: job id"
173
false
MostAwesomeDude/gentleman
DeleteInstance
10,268
LDU_FT/lmcinnes/umap/reset_local_connectivity
LDU_FT
[ "<BEGIN>\n## `tau_rand_int`", "A fast (pseudo)-random number generator.", " Parameters\n ----------\n state: array of int64, shape (3,)\n The internal state of the rng", " Returns\n -------\n A (pseudo)-random int32 value\n<END>", "<BEGIN>\n## `norm`", "Compute the (standard l2) n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_local_connectivity 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 reset_local_connectivity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Reset the local connectivity requirement -- each data sample should have complete confidence in at least one 1-simplex in the simplicial set. We can enforce this by locally rescaling confidences, and then remerging the different local simplicial sets together. Parameters ---------- simplicial_s...
"Reset the local connectivity requirement -- each data sample should\n have complete confidence in at least one 1-simplex in the simplicial set.\n We can enforce this by locally rescaling confidences, and then remerging the\n different local simplicial sets together.\n\n Parameters\n ----------\n simp...
255
false
lmcinnes/umap
reset_local_connectivity
10,269
LDU_FT/bennyrowland/suspect/time_axis
LDU_FT
[ "<BEGIN>\n## `write_all_files`", "Creates an LCModel control file for processing the supplied MRSData, and\n optional water reference data, updating the default parameters with any\n values supplied through params.", " :param filename: the location where the control file should be saved.\n :param da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_axis API. 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 time_axis API. 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...
Returns an array of the sample times in seconds for each point in the FID. :return: an array of the sample times in seconds for each point in the FID.
"Returns an array of the sample times in seconds for each point in the\n FID.\n\n :return: an array of the sample times in seconds for each point in the FID."
71
false
bennyrowland/suspect
time_axis
10,270
LDU_FT/ultrabug/py3status/run
LDU_FT
[ "<BEGIN>\n## `load_from_file`", "Return user-written class object from given path.\n<END>", "<BEGIN>\n## `prepare_module`", "Ready the module to get it ready to start.\n<END>", "<BEGIN>\n## `error_output`", "Something is wrong with the module so we want to output the error to\n the i3bar\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Wait for an i3bar JSON event, then find the right module to dispatch the message to based on the 'name' and 'instance' of the event. In case the module does NOT support click_events, the default implementation is to clear the module's cache when the MIDDLE button (2) is pressed on it. ...
"Wait for an i3bar JSON event, then find the right module to dispatch\n the message to based on the 'name' and 'instance' of the event.\n\n In case the module does NOT support click_events, the default\n implementation is to clear the module's cache\n when the MIDDLE button (2) is pressed on...
514
false
ultrabug/py3status
run
10,271
LDU_FT/pytroll/trollimage/pil_save
LDU_FT
[ "<BEGIN>\n## `colorize`", "Colorize a monochromatic array *arr*, based *colors* given for\n *values*. Interpolation is used. *values* must be in ascending order.\n<END>", "<BEGIN>\n## `palettize`", "From start *values* apply *colors* to *data*.\n<END>", "<BEGIN>\n## `set_range`", "Set the range of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pil_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pil_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 extracte...
Save the image to the given *filename* using PIL. For now, the compression level [0-9] is ignored, due to PIL's lack of support. See also :meth:`save`.
"Save the image to the given *filename* using PIL.\n\n For now, the compression level [0-9] is ignored, due to PIL's lack of\n support. See also :meth:`save`."
150
false
pytroll/trollimage
pil_save
10,272