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/yueyoum/social-oauth/remote_route | LDU_FT | [
"<BEGIN>\n## `cookie_encode`",
"Encode and sign a pickle-able object. Return a (byte) string\n<END>",
"<BEGIN>\n## `cookie_decode`",
"Verify and decode an encoded string. Return an object or None.\n<END>",
"<BEGIN>\n## `load`",
"Import a module or fetch an object from a module.",
" * ``package.mo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remote_route API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remote_route API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | A list of all IPs that were involved in this request, starting with
the client IP and followed by zero or more proxies. This does only
work if all proxies support the ```X-Forwarded-For`` header. Note
that this information can be forged by malicious clients. | "A list of all IPs that were involved in this request, starting with\n the client IP and followed by zero or more proxies. This does only\n work if all proxies support the ```X-Forwarded-For`` header. Note\n that this information can be forged by malicious clients." | 63 | false | yueyoum/social-oauth | remote_route | 10,273 | |
LDU_FT/Huong-nt/flask-rak/_map_intent_to_view_func | LDU_FT | [
"<BEGIN>\n## `copy_func`",
"Based on https://stackoverflow.com/a/30714299 (Aaron Hall)\n<END>",
"<BEGIN>\n## `find_rak`",
"Find our instance of Rak, navigating Local's and possible blueprints.\n<END>",
"<BEGIN>\n## `init_app`",
"Initializes Ask app by setting configuration variables and maps RAK route to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _map_intent_to_view_func 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 _map_intent_to_view_func API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Provides appropiate parameters to the intent functions. | "Provides appropiate parameters to the intent functions." | 22 | false | Huong-nt/flask-rak | _map_intent_to_view_func | 10,274 | |
LDU_FT/ehuggett/send-cli/sign_nonce | LDU_FT | [
"<BEGIN>\n## `api_params`",
"Change the download limit for a file hosted on a Send Server\n<END>",
"<BEGIN>\n## `api_download`",
"Given a Send url, download and return the encrypted data and metadata\n<END>",
"<BEGIN>\n## `sign_nonce`",
"sign the server nonce from the WWW-Authenticate header with an authK... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign_nonce API.
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 sign_nonce API.
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... | sign the server nonce from the WWW-Authenticate header with an authKey | "sign the server nonce from the WWW-Authenticate header with an authKey" | 22 | false | ehuggett/send-cli | sign_nonce | 10,275 | |
LDU_FT/konstantint/matplotlib-venn/venn3 | LDU_FT | [
"<BEGIN>\n## `point_in_circle`",
"Returns true if a given point is located inside (or on the border) of a circle.",
" >>> point_in_circle((0, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 0), (0, 0), 1)\n True\n >>> point_in_circle((1, 1), (0, 0), 1)\n False\n<END>",
"<BEGIN>\n## `circle_i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the venn3 API.
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 venn3 API.
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... | Plots a 3-set area-weighted Venn diagram.
The subsets parameter can be one of the following:
- A list (or a tuple), containing three set objects.
- A dict, providing sizes of seven diagram regions.
The regions are identified via three-letter binary codes ('100', '010', etc), hence a valid set could... | "Plots a 3-set area-weighted Venn diagram.\n The subsets parameter can be one of the following:\n - A list (or a tuple), containing three set objects.\n - A dict, providing sizes of seven diagram regions.\n The regions are identified via three-letter binary codes ('100', '010', etc), hence a valid set ... | 166 | false | konstantint/matplotlib-venn | venn3 | 10,276 | |
LDU_FT/HiPERCAM/hcam_widgets/timing | LDU_FT | [
"<BEGIN>\n## `update`",
"Adds a handler to save to a file. Includes debug stuff.\n<END>",
"<BEGIN>\n## `saveJSON`",
"Saves the current setup to disk.",
" g : hcam_drivers.globals.Container\n Container with globals",
" data : dict\n The current setup in JSON compatible dictionary format.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timing API.
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 timing API.
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 ... | Estimates timing information for the current setup. You should
run a check on the instrument parameters before calling this.
Returns: (expTime, deadTime, cycleTime, dutyCycle)
expTime : exposure time per frame (seconds)
deadTime : dead time per frame (seconds)
cycleTime : sa... | "Estimates timing information for the current setup. You should\n run a check on the instrument parameters before calling this.\n\n Returns: (expTime, deadTime, cycleTime, dutyCycle)\n\n expTime : exposure time per frame (seconds)\n deadTime : dead time per frame (seconds)\n cycleT... | 233 | false | HiPERCAM/hcam_widgets | timing | 10,277 | |
LDU_FT/tchellomello/python-amcrest/mjpg_stream | LDU_FT | [
"<BEGIN>\n## `record_config`",
"rec_opt is the Record options listed as example below:",
" +----------------------+--------+------------------------------------+\n | ParamName | Value | Description |\n +----------------------+--------+---------------------... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mjpg_stream API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mjpg_stream API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Params:
channelno: integer, the video channel index which starts from 1,
default 1 if not specified.
typeno: the stream type, default 0 if not specified. It can be
the following value:
0-Main Stream
1-Extra Stre... | "Params:\n channelno: integer, the video channel index which starts from 1,\n default 1 if not specified.\n\n typeno: the stream type, default 0 if not specified. It can be\n the following value:\n\n 0-Main Stream\n 1-E... | 105 | false | tchellomello/python-amcrest | mjpg_stream | 10,278 | |
LDU_FT/BeyondTheClouds/enoslib/mk_pools | LDU_FT | [
"<BEGIN>\n## `_build_g5k_conf`",
"Build the conf of the g5k provider from the vmong5k conf.\n<END>",
"<BEGIN>\n## `cached`",
"Decorator for caching/retrieving api calls request.",
" Many calls to the API are getter on static parts (e.g site of a given\n cluster name won't change). By caching some resp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mk_pools API.
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 mk_pools API.
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... | Indexes a thing by the keyfnc to construct pools of things. | "Indexes a thing by the keyfnc to construct pools of things." | 229 | false | BeyondTheClouds/enoslib | mk_pools | 10,279 | |
LDU_FT/scarface-4711/denonavr/set_sound_mode | LDU_FT | [
"<BEGIN>\n## `exec_appcommand_post`",
"Prepare and execute a HTTP POST call to AppCommand.xml end point.",
" Returns XML ElementTree on success and None on fail.\n<END>",
"<BEGIN>\n## `get_status_xml`",
"Get status XML via HTTP and return it as XML ElementTree.\n<END>",
"<BEGIN>\n## `create_zones`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_sound_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_sound_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 ex... | Set sound_mode of device.
Valid values depend on the device and should be taken from
"sound_mode_list".
Return "True" on success and "False" on fail. | "Set sound_mode of device.\n\n Valid values depend on the device and should be taken from\n \"sound_mode_list\".\n Return \"True\" on success and \"False\" on fail." | 85 | false | scarface-4711/denonavr | set_sound_mode | 10,280 | |
LDU_FT/flask-restful/flask-restful/output_xml | LDU_FT | [
"<BEGIN>\n## `unpack`",
"Return a three tuple of data, code, and headers\n<END>",
"<BEGIN>\n## `output_xml`",
"Makes a Flask response with a XML encoded body\n<END>",
"<BEGIN>\n## `output_json`",
"Makes a Flask response with a JSON encoded body\n<END>",
"<BEGIN>\n## `abort`",
"Raise a HTTPException fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_xml API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_xml API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Makes a Flask response with a XML encoded body | "Makes a Flask response with a XML encoded body" | 123 | false | flask-restful/flask-restful | output_xml | 10,281 | |
LDU_FT/tjguk/networkzero/_start_beacon | LDU_FT | [
"<BEGIN>\n## `get_command`",
"Attempt to return a unicode object from the command socket",
" If no message is available without blocking (as opposed to a blank \n message), return None\n<END>",
"<BEGIN>\n## `send_response`",
"Send a unicode object as reply to the most recently-issued command\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start_beacon API.
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 _start_beacon API.
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... | Start a beacon thread within this process if no beacon is currently
running on this machine.
In general this is called automatically when an attempt is made to
advertise or discover. It might be convenient, though, to call this
function directly if you want to have a process whose only job is
t... | "Start a beacon thread within this process if no beacon is currently\n running on this machine.\n \n In general this is called automatically when an attempt is made to\n advertise or discover. It might be convenient, though, to call this\n function directly if you want to have a process whose only job is... | 76 | false | tjguk/networkzero | _start_beacon | 10,282 | |
LDU_FT/benvanwerkhoven/kernel_tuner/distance_to | LDU_FT | [
"<BEGIN>\n## `tune`",
"Find the best performing kernel configuration in the parameter space",
" :params runner: A runner from kernel_tuner.runners\n :type runner: kernel_tuner.runner",
" :param kernel_options: A dictionary with all options for the kernel.\n :type kernel_options: dict",
" :par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distance_to API.
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 distance_to API.
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 Euclidian distance between self and other Firefly | "Return Euclidian distance between self and other Firefly" | 294 | false | benvanwerkhoven/kernel_tuner | distance_to | 10,283 | |
LDU_FT/hishnash/djangochannelsrestframework/check_permissions | LDU_FT | [
"<BEGIN>\n## `pre_change_receiver`",
"Entry point for triggering the old_binding from save signals.\n<END>",
"<BEGIN>\n## `post_change_receiver`",
"Triggers the old_binding to possibly send to its group.\n<END>",
"<BEGIN>\n## `get_queryset`",
"Get the list of items for this view.\n This must be an ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_permissions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_permissions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Check if the action should be permitted.
Raises an appropriate exception if the request is not permitted. | "Check if the action should be permitted.\n Raises an appropriate exception if the request is not permitted." | 24 | false | hishnash/djangochannelsrestframework | check_permissions | 10,284 | |
LDU_FT/buguroo/pyknow/get_deffacts | LDU_FT | [
"<BEGIN>\n## `changes`",
"Pass the given changes to the root_node.\n<END>",
"<BEGIN>\n## `build_alpha_part`",
"Given a set of already adapted rules, build the alpha part of\n the RETE network starting at `root_node`.\n<END>",
"<BEGIN>\n## `build_beta_part`",
"Given a set of already adapted rules, a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deffacts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deffacts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return the existing deffacts sorted by the internal order | "Return the existing deffacts sorted by the internal order" | 78 | false | buguroo/pyknow | get_deffacts | 10,285 | |
LDU_FT/jongracecox/anybadge/main | LDU_FT | [
"<BEGIN>\n## `main`",
"Generate a badge based on command line arguments.\n<END>",
"<BEGIN>\n## `value_is_int`",
"Identify whether the value text is an int.\n<END>",
"<BEGIN>\n## `color_split_position`",
"The SVG x position where the color split should occur.\n<END>",
"<BEGIN>\n## `badge_width`",
"The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Generate a badge based on command line arguments. | "Generate a badge based on command line arguments." | 15 | false | jongracecox/anybadge | main | 10,286 | |
LDU_FT/dourvaris/nano-python/keepalive | LDU_FT | [
"<BEGIN>\n## `signature_unsafe`",
"Not safe to use with secret keys or secret data.\n See module docstring. This function should be used for testing only.\n<END>",
"<BEGIN>\n## `checkvalid`",
"Not safe to use when any argument is secret.\n See module docstring. This function should be used only for\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keepalive API.
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 keepalive API.
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... | Tells the node to send a keepalive packet to **address**:**port**
.. enable_control required
:param address: IP address of node to send keepalive packet to
:type address: str
:param port: Port of node to send keepalive packet to
:type port: int
:raises: :py:exc:`nano.... | "Tells the node to send a keepalive packet to **address**:**port**\n\n .. enable_control required\n\n :param address: IP address of node to send keepalive packet to\n :type address: str\n\n :param port: Port of node to send keepalive packet to\n :type port: int\n\n :raises: :py... | 574 | false | dourvaris/nano-python | keepalive | 10,287 | |
LDU_FT/restran/mountains/to_unicode | LDU_FT | [
"<BEGIN>\n## `set_dict_none_default`",
"对字典中为None的值,重新设置默认值\n :param dict_item:\n :param default_value:\n :return:\n<END>",
"<BEGIN>\n## `auto_model_name_recognize`",
"自动将 site-user 识别成 SiteUser\n :param model_name:\n :return:\n<END>",
"<BEGIN>\n## `model_to_select_list`",
"只选择 id 和 name,用来... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_unicode API.
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 to_unicode API.
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... | Converts a string argument to a unicode string. | "Converts a string argument to a unicode string." | 81 | false | restran/mountains | to_unicode | 10,288 | |
LDU_FT/ionelmc/python-cogen/pull | LDU_FT | [
"<BEGIN>\n## `run_op`",
"Handle the operation:",
" * if coro is in STATE_RUNNING, send or throw the given op\r",
" * if coro is in STATE_NEED_INIT, call the init function and if it\r\n doesn't return a generator, set STATE_COMPLETED and set the result\r\n to whatever the functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull API.
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 pull API.
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... | Take the messages from the queue and if there are none wait 30
seconds till returning an empty message.
Also, cogen's wsgi async extensions are in the environ and prefixed with
'cogen.' | "Take the messages from the queue and if there are none wait 30\r\n seconds till returning an empty message.\r\n\r\n Also, cogen's wsgi async extensions are in the environ and prefixed with\r\n 'cogen.'" | 175 | false | ionelmc/python-cogen | pull | 10,289 | |
LDU_FT/RiotGames/cloud-inquisitor/run | LDU_FT | [
"<BEGIN>\n## `options`",
"Returns metadata information required for User Creation\n<END>",
"<BEGIN>\n## `run`",
"Update the cache of all DNS entries and perform checks",
" Args:\n *args: Optional list of arguments\n **kwargs: Optional list of keyword arguments",
" Retur... | 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... | Entry point for the scheduler
Args:
*args: Optional arguments
**kwargs: Optional keyword arguments
Returns:
None | "Entry point for the scheduler\n\n Args:\n *args: Optional arguments\n **kwargs: Optional keyword arguments\n\n Returns:\n None" | 693 | false | RiotGames/cloud-inquisitor | run | 10,290 | |
LDU_FT/tgbugs/pyontutils/addLNT | LDU_FT | [
"<BEGIN>\n## `build_transgenic_lines`",
"init class | \"transgenic_line_source_name\":\"stock_number\" a Class\n add superClass | rdfs:subClassOf ilxtr:transgenicLine\n add *order* | ilxtr:useObjectProperty ilxtr:<order>\n add name | rdfs:label \"name\"\n add def ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addLNT API.
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 addLNT API.
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 ... | Add a local name for a phenotype from a pair of identifiers | "Add a local name for a phenotype from a pair of identifiers" | 301 | false | tgbugs/pyontutils | addLNT | 10,291 | |
LDU_FT/stbraun/fuzzing/step_impl09 | LDU_FT | [
"<BEGIN>\n## `step_impl03`",
"Check assertions.",
" :param context: test context.\n<END>",
"<BEGIN>\n## `step_impl`",
"Check assertions.",
" :param max_modified: maximum expected number of modifications.\n :param context: test context.\n<END>",
"<BEGIN>\n## `step_impl06`",
"Execute fuzzer.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_impl09 API.
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 step_impl09 API.
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... | Create application list.
:param context: test context. | "Create application list.\n\n :param context: test context." | 79 | false | stbraun/fuzzing | step_impl09 | 10,292 | |
LDU_FT/limpyd/redis-limpyd-jobs/stop_handling_end_signal | LDU_FT | [
"<BEGIN>\n## `_parse_queues`",
"Parse the given parameter and return a list of queues.\n The parameter must be a list/tuple of strings, or a string with queues\n separated by a comma.\n<END>",
"<BEGIN>\n## `_assert_correct_model`",
"Helper that asserts the model_to_check is the model_reference o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop_handling_end_signal 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 stop_handling_end_signal API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Stop handling the SIGINT and SIGTERM signals | "Stop handling the SIGINT and SIGTERM signals" | 122 | false | limpyd/redis-limpyd-jobs | stop_handling_end_signal | 10,293 | |
LDU_FT/pymupdf/PyMuPDF/addInkAnnot | LDU_FT | [
"<BEGIN>\n## `_Widget_fontdict`",
"Turns the above font definitions into a dictionary. Assumes certain line breaks and spaces.\n<END>",
"<BEGIN>\n## `getTextlength`",
"Calculate length of a string for a given built-in font.",
" Args:\n fontname: name of the font.\n fontsize: size of font in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addInkAnnot API.
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 addInkAnnot API.
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... | Add a 'handwriting' as a list of list of point-likes. Each sublist forms an independent stroke. | "Add a 'handwriting' as a list of list of point-likes. Each sublist forms an independent stroke." | 282 | false | pymupdf/PyMuPDF | addInkAnnot | 10,294 | |
LDU_FT/fchorney/rpI2C/write_block_data | LDU_FT | [
"<BEGIN>\n## `write_byte`",
"Writes an 8-bit byte to the specified command register\n<END>",
"<BEGIN>\n## `write_word`",
"Writes a 16-bit word to the specified command register\n<END>",
"<BEGIN>\n## `write_raw_byte`",
"Writes an 8-bit byte directly to the bus\n<END>",
"<BEGIN>\n## `write_block_data`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_block_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_block_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Writes a block of bytes to the bus using I2C format to the specified
command register | "Writes a block of bytes to the bus using I2C format to the specified\n command register" | 16 | false | fchorney/rpI2C | write_block_data | 10,295 | |
LDU_FT/aglie/meerkat/read_XPARM | LDU_FT | [
"<BEGIN>\n## `rotvec2mat`",
"Convert rotation from axis and angle to matrix representation\n<END>",
"<BEGIN>\n## `det2lab_xds`",
"Converts pixels coordinates from the frame into q-vector\n<END>",
"<BEGIN>\n## `r_get_numbers`",
"A helper function which can be used similarly to fscanf(fid,'%f',num) to extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_XPARM API.
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_XPARM API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Loads the instrumental geometry information from the XPARM.XDS or GXPARM.XDS files at the proposed location | "Loads the instrumental geometry information from the XPARM.XDS or GXPARM.XDS files at the proposed location" | 14 | false | aglie/meerkat | read_XPARM | 10,296 | |
LDU_FT/openstack/networking-arista/get_instances | LDU_FT | [
"<BEGIN>\n## `synchronize`",
"Synchronizes Router DB from Neturon DB with EOS.",
" Walks through the Neturon Db and ensures that all the routers\n created in Netuton DB match with EOS. After creating appropriate\n routers, it ensures to add interfaces as well.\n Uses idempotent prope... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instances API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instances API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns filtered list of all instances in the neutron db | "Returns filtered list of all instances in the neutron db" | 213 | false | openstack/networking-arista | get_instances | 10,297 | |
LDU_FT/numenta/htmresearch/createPregeneratedGraphs | LDU_FT | [
"<BEGIN>\n## `runExperiment`",
"Run experiment. What did you think this does?",
" args is a dict representing the parameters. We do it this way to support\n multiprocessing. args contains one or more of the following keys:",
" @param noiseLevel (float) Noise level to add to the locations and features\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createPregeneratedGraphs 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 createPregeneratedGraphs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Creates graphs based on previous runs of the scripts. Useful for editing
graph format for writeups. | "Creates graphs based on previous runs of the scripts. Useful for editing\n graph format for writeups." | 2,106 | true | numenta/htmresearch | createPregeneratedGraphs | 10,298 | |
LDU_FT/coursera-dl/coursera-dl/_extract_links_from_asset_tags_in_text | LDU_FT | [
"<BEGIN>\n## `parse_args`",
"Parse the arguments/options passed to the program on the command line.\n<END>",
"<BEGIN>\n## `random_string`",
"Return a pseudo-random string of specified length.\n<END>",
"<BEGIN>\n## `clean_filename`",
"Sanitize a string to be used as a filename.",
" If minimal_change i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_links_from_asset_tags_in_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_links_from_asset_tags_in_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | Scan the text and extract asset tags and links to corresponding
files.
@param text: Page text.
@type text: str
@return: @see CourseraOnDemand._extract_links_from_text | "Scan the text and extract asset tags and links to corresponding\n files.\n\n @param text: Page text.\n @type text: str\n\n @return: @see CourseraOnDemand._extract_links_from_text" | 246 | false | coursera-dl/coursera-dl | _extract_links_from_asset_tags_in_text | 10,299 | |
LDU_FT/RiotGames/cloud-inquisitor/update_rds_databases | LDU_FT | [
"<BEGIN>\n## `options`",
"Returns metadata information required for User Creation\n<END>",
"<BEGIN>\n## `run`",
"Update the cache of all DNS entries and perform checks",
" Args:\n *args: Optional list of arguments\n **kwargs: Optional list of keyword arguments",
" Retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_rds_databases 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 update_rds_databases API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Update list of RDS Databases for the account / region
Returns:
`None` | "Update list of RDS Databases for the account / region\n\n Returns:\n `None`" | 693 | false | RiotGames/cloud-inquisitor | update_rds_databases | 10,300 | |
LDU_FT/yamcs/yamcs-python/set_default_calibrator | LDU_FT | [
"<BEGIN>\n## `verification_events`",
"Events related to command verification.",
" :type: List[:class:`.CommandHistoryEvent`]\n<END>",
"<BEGIN>\n## `events`",
"All events.",
" :type: List[:class:`.CommandHistoryEvent`]\n<END>",
"<BEGIN>\n## `generation_time`",
"The generation time as set ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_default_calibrator 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 set_default_calibrator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Apply a calibrator while processing raw values of the specified
parameter. If there is already a default calibrator associated
to this parameter, that calibrator gets replaced.
.. note::
Contextual calibrators take precedence over the default calibrator
See :meth:`set_c... | "Apply a calibrator while processing raw values of the specified\n parameter. If there is already a default calibrator associated\n to this parameter, that calibrator gets replaced.\n\n .. note::\n\n Contextual calibrators take precedence over the default calibrator\n See :met... | 402 | false | yamcs/yamcs-python | set_default_calibrator | 10,301 | |
LDU_FT/GeoPyTool/GeoPyTool/TriFill | LDU_FT | [
"<BEGIN>\n## `lines`",
"read the Excel, then draw the wulf net and Plot points, job done~\n<END>",
"<BEGIN>\n## `add_edge`",
"Add a line between the i-th and j-th points,\n if not in the list already\n<END>",
"<BEGIN>\n## `alpha_shape`",
"Compute the alpha shape (concave hull) of a set\n of points.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the TriFill API.
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 TriFill API.
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... | Fill a region in triangular coord.
:param P: the peak points of the region in triangular coord
:type P: a list consist of at least three tuples, which are the points in triangular coord
:param Color: the color used to fill the region
:type Color: a string; b: blue, g: green, r: red, c: c... | "Fill a region in triangular coord.\n :param P: the peak points of the region in triangular coord\n :type P: a list consist of at least three tuples, which are the points in triangular coord\n :param Color: the color used to fill the region\n :type Color: a string; b: blue, g: green, r: red,... | 53 | false | GeoPyTool/GeoPyTool | TriFill | 10,302 | |
LDU_FT/quarkslab/arybo/vectorial_decomp | LDU_FT | [
"<BEGIN>\n## `asm_module`",
"Generate an LLVM module for a list of expressions",
" Arguments:\n * See :meth:`arybo.lib.exprs_asm.asm_binary` for a description of the list of arguments",
" Output:\n * An LLVM module with one function named \"__arybo\", containing the\n translated express... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vectorial_decomp API.
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 vectorial_decomp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Compute the vectorial decomposition of the expression according to the given symbols.
symbols is a list that represents the input of the resulting
application. They are considerated as a flatten vector of bits.
Args:
symbols: TODO
Returns:
An :class:`pytanque.A... | "Compute the vectorial decomposition of the expression according to the given symbols.\n\n symbols is a list that represents the input of the resulting\n application. They are considerated as a flatten vector of bits.\n\n Args:\n symbols: TODO\n\n Returns:\n An :class:`... | 45 | false | quarkslab/arybo | vectorial_decomp | 10,303 | |
LDU_FT/cloudify-cosmo/wagon/create | LDU_FT | [
"<BEGIN>\n## `install_package`",
"Install a Python package.",
" Can specify a specific version.\n Can specify a prerelease.\n Can specify a venv to install in.\n Can specify a list of paths or urls to requirement txt files.\n Can specify a local wheels_path to use for offline installation.\n C... | 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 ... | Create a Wagon archive and returns its path.
Package name and version are extracted from the setup.py file
of the `source` or from the PACKAGE_NAME==PACKAGE_VERSION if the source
is a PyPI package.
Supported `python_versions` must be in the format e.g [33, 27, 2, 3]..
`force` will remove any exce... | "Create a Wagon archive and returns its path.\n\n Package name and version are extracted from the setup.py file\n of the `source` or from the PACKAGE_NAME==PACKAGE_VERSION if the source\n is a PyPI package.\n\n Supported `python_versions` must be in the format e.g [33, 27, 2, 3]..\n\n `force` will remove... | 51 | false | cloudify-cosmo/wagon | create | 10,304 | |
LDU_FT/anomaly/prestans/_add_generate_sub_commands | LDU_FT | [
"<BEGIN>\n## `_setup_serializers`",
"Auto set the return serializer based on Accept headers\n http://docs.webob.org/en/latest/reference.html#header-getters",
" Intersection of requested types and supported types tells us if we\n can in fact respond in one of the request formats\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_generate_sub_commands API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_generate_sub_commands API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Sub commands for generating models for usage by clients.
Currently supports Google Closure. | "Sub commands for generating models for usage by clients.\n Currently supports Google Closure." | 99 | false | anomaly/prestans | _add_generate_sub_commands | 10,305 | |
LDU_FT/jealous/stockstats/_get_c | LDU_FT | [
"<BEGIN>\n## `_get_p`",
"get the permutation of specified range\r",
" example:\r\n index x x_-2,-1_p\r\n 0 1 NaN\r\n 1 -1 NaN\r\n 2 3 2 (0.x > 0, and assigned to weight 2)\r\n 3 5 1 (2.x > 0, and assi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_c API.
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_c API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | get the count of column in range (shifts)
example: kdjj_0_le_20_c
:param df: stock data
:param column: column name
:param shifts: range to count, only to previous
:return: | "get the count of column in range (shifts)\r\n\r\n example: kdjj_0_le_20_c\r\n :param df: stock data\r\n :param column: column name\r\n :param shifts: range to count, only to previous\r\n :return:" | 84 | false | jealous/stockstats | _get_c | 10,306 | |
LDU_FT/Microsoft/LightGBM/log_loss | LDU_FT | [
"<BEGIN>\n## `check_dependicies`",
"Check the dynamic symbol versions.",
" Parameters\n ----------\n objdump_string : string\n The dynamic symbol table entries of the file (result of `objdump -T` command).\n<END>",
"<BEGIN>\n## `_objective_function_wrapper`",
"Decorate an objective function.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_loss API.
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 log_loss API.
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... | Logarithmic loss with non-necessarily-binary labels. | "Logarithmic loss with non-necessarily-binary labels." | 379 | false | Microsoft/LightGBM | log_loss | 10,307 | |
LDU_FT/sunlightlabs/django-locksmith/report_calls | LDU_FT | [
"<BEGIN>\n## `_active_keys_by_month`",
"Returns a dict of (year, month) -> active_keys. The dict will contain a key\n for each month observed in the data.\n<END>",
"<BEGIN>\n## `keys`",
"Lists API keys. Compatible with jQuery DataTables.\n<END>",
"<BEGIN>\n## `resolve_model`",
"model: Model class\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report_calls API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report_calls API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | POST endpoint for APIs to report their statistics
requires parameters: api, key, calls, date, endpoint & signature
if 'api' or 'key' parameter is invalid returns a 404
if signature is bad returns a 400
returns a 200 with content 'OK' if call succeeds | "POST endpoint for APIs to report their statistics\n\n requires parameters: api, key, calls, date, endpoint & signature\n\n if 'api' or 'key' parameter is invalid returns a 404\n if signature is bad returns a 400\n returns a 200 with content 'OK' if call succeeds" | 33 | false | sunlightlabs/django-locksmith | report_calls | 10,308 | |
LDU_FT/unbit/sftpclone/override_ssh_auth_env | LDU_FT | [
"<BEGIN>\n## `path_join`",
"Wrapper around `os.path.join`.\n Makes sure to join paths of the same type (bytes).\n<END>",
"<BEGIN>\n## `parse_username_password_hostname`",
"Parse a command line string and return username, password, remote hostname and remote path.",
" :param remote_url: A command line ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the override_ssh_auth_env 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 override_ssh_auth_env API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Override the `$SSH_AUTH_SOCK `env variable to mock the absence of an SSH agent. | "Override the `$SSH_AUTH_SOCK `env variable to mock the absence of an SSH agent." | 35 | false | unbit/sftpclone | override_ssh_auth_env | 10,309 | |
LDU_FT/projecthamster/hamster/bus_inspector | LDU_FT | [
"<BEGIN>\n## `set_start_time`",
"set the start time. when start time is set, drop down list\n will start from start time and duration will be displayed in\n brackets\n<END>",
"<BEGIN>\n## `parse_fact`",
"tries to extract fact fields from the string\n the optional arguments in the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bus_inspector API.
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 bus_inspector API.
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... | Inspect the bus for screensaver messages of interest | "Inspect the bus for screensaver messages of interest" | 249 | false | projecthamster/hamster | bus_inspector | 10,310 | |
LDU_FT/taspinar/twitterscraper/query_user_info | LDU_FT | [
"<BEGIN>\n## `get_user_info`",
"An example of using the query_user_info method\n :param twitter_user: the twitter user to capture user data\n :return: twitter_user_data: returns a dictionary of twitter user data\n<END>",
"<BEGIN>\n## `query_single_page`",
"Returns tweets from the given URL.",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_user_info API.
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 query_user_info API.
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 scraped user data from a twitter user page.
:param user: the twitter user to web scrape its twitter page info | "Returns the scraped user data from a twitter user page.\n\n :param user: the twitter user to web scrape its twitter page info" | 18 | false | taspinar/twitterscraper | query_user_info | 10,311 | |
LDU_FT/glomex/gcdt/parse_ts | LDU_FT | [
"<BEGIN>\n## `list_functions`",
"List the deployed lambda functions and print configuration.",
" :return: exit_code\n<END>",
"<BEGIN>\n## `deploy_lambda`",
"Create or update a lambda function.",
" :param awsclient:\n :param function_name:\n :param role:\n :param handler_filename:\n :para... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_ts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_ts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | parse timestamp.
:param ts: timestamp in ISO8601 format
:return: tbd!!! | "parse timestamp.\n \n :param ts: timestamp in ISO8601 format\n :return: tbd!!!" | 301 | false | glomex/gcdt | parse_ts | 10,312 | |
LDU_FT/coopernurse/barrister/unpack_method | LDU_FT | [
"<BEGIN>\n## `get_checksum`",
"Returns a checksum based on the IDL that ignores comments and \n ordering, but detects changes to types, parameter order, \n and enum values.\n<END>",
"<BEGIN>\n## `contract_from_file`",
"Loads a Barrister IDL JSON from the given file and returns a Contract class",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack_method API.
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 unpack_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Given a JSON-RPC method in: [interface].[function] notation, returns a tuple of the interface
name and function.
For example, unpack_method("MyService.LoadUser") would return: ("MyService", "LoadUser")
:Parameters:
method
String method name | "Given a JSON-RPC method in: [interface].[function] notation, returns a tuple of the interface\n name and function.\n\n For example, unpack_method(\"MyService.LoadUser\") would return: (\"MyService\", \"LoadUser\")\n\n :Parameters:\n method\n String method name" | 126 | false | coopernurse/barrister | unpack_method | 10,313 | |
LDU_FT/instaloader/instaloader/caption_mentions | LDU_FT | [
"<BEGIN>\n## `save_structure_to_file`",
"Saves a :class:`Post`, :class:`Profile` or :class:`StoryItem` to a '.json' or '.json.xz' file such that it can\n later be loaded by :func:`load_structure_from_file`.",
" If the specified filename ends in '.xz', the file will be LZMA compressed. Otherwise, a pretty-... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the caption_mentions API.
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 caption_mentions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | List of all lowercased profiles that are mentioned in the Post's caption, without preceeding @. | "List of all lowercased profiles that are mentioned in the Post's caption, without preceeding @." | 227 | false | instaloader/instaloader | caption_mentions | 10,314 | |
LDU_FT/facelessuser/backrefs/get_version | LDU_FT | [
"<BEGIN>\n## `download_unicodedata`",
"Download Unicode data scripts and blocks.\n<END>",
"<BEGIN>\n## `get_unicodedata`",
"Ensure we have Unicode data to generate Unicode tables.\n<END>",
"<BEGIN>\n## `posix_props`",
"Insert POSIX properties.",
" Posix style properties are not as forgiving\n ... | 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... | Get version and version_info without importing the entire module. | "Get version and version_info without importing the entire module." | 75 | false | facelessuser/backrefs | get_version | 10,315 | |
LDU_FT/stuaxo/vext/do_check | LDU_FT | [
"<BEGIN>\n## `do_enable`",
"Uncomment any lines that start with #import in the .pth file\n<END>",
"<BEGIN>\n## `do_disable`",
"Comment any lines that start with import in the .pth file\n<END>",
"<BEGIN>\n## `do_check`",
"Attempt to import everything in the 'test-imports' section of specified\n vext_fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_check API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_check API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Attempt to import everything in the 'test-imports' section of specified
vext_files
:param: list of vext filenames (without paths), '*' matches all.
:return: True if test_imports was successful from all files | "Attempt to import everything in the 'test-imports' section of specified\n vext_files\n\n :param: list of vext filenames (without paths), '*' matches all.\n :return: True if test_imports was successful from all files" | 64 | false | stuaxo/vext | do_check | 10,316 | |
LDU_FT/DMSC-Instrument-Data/lewis/_add_member_wrappers | LDU_FT | [
"<BEGIN>\n## `get_submodules`",
"This function imports all sub-modules of the supplied module and returns a dictionary\n with module names as keys and the sub-module objects as values. If the supplied parameter\n is not a module object, a RuntimeError is raised.",
" :param module: Module object from wh... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_member_wrappers 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_member_wrappers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | This method probes the supplied member of the wrapped object and inserts an appropriate
entry into the internal method map. Getters and setters for properties get a suffix
':get' and ':set' respectively.
:param member: The member of the wrapped object to expose | "This method probes the supplied member of the wrapped object and inserts an appropriate\n entry into the internal method map. Getters and setters for properties get a suffix\n ':get' and ':set' respectively.\n\n :param member: The member of the wrapped object to expose" | 198 | false | DMSC-Instrument-Data/lewis | _add_member_wrappers | 10,317 | |
LDU_FT/ondryaso/pi-rc522/write_trailer | LDU_FT | [
"<BEGIN>\n## `request`",
"Requests for tag.\n Returns (False, None) if no tag is present, otherwise returns (True, tag type)\n<END>",
"<BEGIN>\n## `anticoll`",
"Anti-collision detection.\n Returns tuple of (error state, tag ID).\n<END>",
"<BEGIN>\n## `select_tag`",
"Selects tag for further u... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_trailer API.
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 write_trailer API.
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... | Writes sector trailer of specified sector. Tag and auth must be set - does auth.
If value is None, value of byte is kept.
Returns error state. | "Writes sector trailer of specified sector. Tag and auth must be set - does auth.\n If value is None, value of byte is kept.\n Returns error state." | 28 | false | ondryaso/pi-rc522 | write_trailer | 10,318 | |
LDU_FT/heuer/segno/write_terminal | LDU_FT | [
"<BEGIN>\n## `make`",
"\\\n Creates a (Micro) QR Code.",
" This is main entry point to create QR Codes and Micro QR Codes.",
" Aside from `content`, all parameters are optional and an optimal (minimal)\n (Micro) QR Code with a maximal error correction level (minimum \"M\") is\n generated.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_terminal API.
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 write_terminal API.
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... | \
Function to write to a terminal which supports ANSI escape codes.
:param matrix: The matrix to serialize.
:param int version: The (Micro) QR code version.
:param out: Filename or a file-like object supporting to write text.
:param int border: Integer indicating the size of the quiet zone.
... | "\\\n Function to write to a terminal which supports ANSI escape codes.\n\n :param matrix: The matrix to serialize.\n :param int version: The (Micro) QR code version.\n :param out: Filename or a file-like object supporting to write text.\n :param int border: Integer indicating the size of the quiet zone.... | 436 | false | heuer/segno | write_terminal | 10,319 | |
LDU_FT/dependencies-io/cli/print_settings_example | LDU_FT | [
"<BEGIN>\n## `collect_manifest_dependencies`",
"Convert the manifest format to the dependencies schema\n<END>",
"<BEGIN>\n## `collect_lockfile_dependencies`",
"Convert the lockfile format to the dependencies schema\n<END>",
"<BEGIN>\n## `validate`",
"Validate JSON input using dependencies-schema\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_settings_example 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_settings_example 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 can use settings to get additional information from the user via their
dependencies.io configuration file. Settings will be automatically injected as
env variables with the "SETTING_" prefix.
All settings will be passed as strings. More complex types will be json
encoded. You should always provide ... | "You can use settings to get additional information from the user via their\n dependencies.io configuration file. Settings will be automatically injected as\n env variables with the \"SETTING_\" prefix.\n\n All settings will be passed as strings. More complex types will be json\n encoded. You should always ... | 13 | false | dependencies-io/cli | print_settings_example | 10,320 | |
LDU_FT/kragniz/python-etcd3/hash | LDU_FT | [
"<BEGIN>\n## `new_event`",
"Wrap a raw gRPC event in a friendlier containing class.",
" This picks the appropriate class from one of PutEvent or DeleteEvent and\n returns a new instance.\n<END>",
"<BEGIN>\n## `acquire`",
"Acquire the lock.",
" :params timeout: Maximum time to wait before retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | Return the hash of the local KV state.
:returns: kv state hash
:rtype: int | "Return the hash of the local KV state.\n\n :returns: kv state hash\n :rtype: int" | 113 | false | kragniz/python-etcd3 | hash | 10,321 | |
LDU_FT/sdispater/backpack/for_page | LDU_FT | [
"<BEGIN>\n## `avg`",
"Get the average value of a given key.",
" :param key: The key to get the average for\n :type key: mixed",
" :rtype: float or int\n<END>",
"<BEGIN>\n## `chunk`",
"Chunk the underlying collection.",
" :param size: The chunk size\n :type size: int",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the for_page API.
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 for_page API.
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... | "Paginate" the collection by slicing it into a smaller collection.
:param page: The current page
:type page: int
:param per_page: Number of items by slice
:type per_page: int
:rtype: Collection | "\"Paginate\" the collection by slicing it into a smaller collection.\n\n :param page: The current page\n :type page: int\n\n :param per_page: Number of items by slice\n :type per_page: int\n\n :rtype: Collection" | 137 | false | sdispater/backpack | for_page | 10,322 | |
LDU_FT/lrq3000/pyFileFixity/cookie_is_encoded | LDU_FT | [
"<BEGIN>\n## `discard`",
"Remove the first occurrence of *val*.",
" If *val* is not a member, does nothing.\n<END>",
"<BEGIN>\n## `remove`",
"Remove first occurrence of *val*.",
" Raises ValueError if *val* is not present.\n<END>",
"<BEGIN>\n## `_delete`",
"Delete the item at the given (... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cookie_is_encoded API.
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 cookie_is_encoded API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Verify and decode an encoded string. Return an object or None | "Verify and decode an encoded string. Return an object or None" | 1,045 | true | lrq3000/pyFileFixity | cookie_is_encoded | 10,323 | |
LDU_FT/projectatomic/osbs-client/create_config_map | LDU_FT | [
"<BEGIN>\n## `get_openshift_base_uri`",
"https://<host>[:<port>]/",
" :return: str\n<END>",
"<BEGIN>\n## `get_builder_openshift_url`",
"url of OpenShift where builder will connect\n<END>",
"<BEGIN>\n## `generate_nodeselector_dict`",
"helper method for generating nodeselector dict\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_config_map API.
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_config_map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Create an ConfigMap object on the server
Raises exception on error
:param name: str, name of configMap
:param data: dict, dictionary of data to be stored
:returns: ConfigMapResponse containing the ConfigMap with name and data | "Create an ConfigMap object on the server\n\n Raises exception on error\n\n :param name: str, name of configMap\n :param data: dict, dictionary of data to be stored\n :returns: ConfigMapResponse containing the ConfigMap with name and data" | 268 | false | projectatomic/osbs-client | create_config_map | 10,324 | |
LDU_FT/rigetti/grove/unitary_function | LDU_FT | [
"<BEGIN>\n## `_prepare_c_jk_m`",
"Prepare the coefficient matrix for state tomography. This function uses sparse matrices\n for much greater efficiency.\n The coefficient matrix is defined as:",
" .. math::",
" C_{(jk)m} = \\tr{\\Pi_{s_j} \\Lambda_k(P_m)} = \\sum_{r}\\pi_{jr}(\\mathcal{R}_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unitary_function API.
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 unitary_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Creates a unitary transformation that maps each state to the values specified in mappings.
Some (but not all) of these transformations involve a scratch qubit, so room for one is
always provided. That is, if given the mapping of n qubits, the calculated transformation
will be on n + 1 qubits, w... | "Creates a unitary transformation that maps each state to the values specified in mappings.\n\n Some (but not all) of these transformations involve a scratch qubit, so room for one is\n always provided. That is, if given the mapping of n qubits, the calculated transformation\n will be on n + 1 qubi... | 428 | false | rigetti/grove | unitary_function | 10,325 | |
LDU_FT/Dapid/tmscoring/get_default_values | LDU_FT | [
"<BEGIN>\n## `get_default_values`",
"Make a crude estimation of the alignment using the center of mass\n and general C->N orientation.\n<END>",
"<BEGIN>\n## `get_matrix`",
"Build the rotation-translation matrix.",
" It has the form:",
" [ | dx ]\n [ R | dy ]\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_values 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_default_values 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... | Make a crude estimation of the alignment using the center of mass
and general C->N orientation. | "Make a crude estimation of the alignment using the center of mass\n and general C->N orientation." | 15 | false | Dapid/tmscoring | get_default_values | 10,326 | |
LDU_FT/sampottinger/pycotracer/update_loan_entry | LDU_FT | [
"<BEGIN>\n## `parse_yes_no_str`",
"Parse a string serialization of boolean data as yes (Y) or no (N).",
" Prase a string serialization of boolean data where True is \"Y\" and False is\n \"N\" case-insensitive.",
" @param bool_str: The string to parse.\n @type bool_str: str\n @return: The interp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_loan_entry API.
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 update_loan_entry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Update a record of a loan report in the provided database.
@param db: The MongoDB database to operate on. The loans collection will be
used from this database.
@type db: pymongo.database.Database
@param entry: The entry to insert into the database, updating the entry with
the same recordID ... | "Update a record of a loan report in the provided database.\n\n @param db: The MongoDB database to operate on. The loans collection will be\n used from this database.\n @type db: pymongo.database.Database\n @param entry: The entry to insert into the database, updating the entry with\n the same re... | 71 | false | sampottinger/pycotracer | update_loan_entry | 10,327 | |
LDU_FT/filestack/filestack-python/get_content | LDU_FT | [
"<BEGIN>\n## `to_filelink`",
"Checks is the status of the conversion is complete and, if so, converts to a Filelink",
" *returns* [Filestack.Filelink]",
" ```python\n filelink = av_convert.to_filelink()\n ```\n<END>",
"<BEGIN>\n## `url`",
"Returns the URL for the instance, whic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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.
The extra... | Returns the raw byte content of a given Filelink
*returns* [Bytes]
```python
from filestack import Client
client = Client('API_KEY')
filelink = client.upload(filepath='/path/to/file/foo.jpg')
byte_content = filelink.get_content()
``` | "Returns the raw byte content of a given Filelink\n\n *returns* [Bytes]\n ```python\n from filestack import Client\n\n client = Client('API_KEY')\n filelink = client.upload(filepath='/path/to/file/foo.jpg')\n byte_content = filelink.get_content()\n ```" | 82 | false | filestack/filestack-python | get_content | 10,328 | |
LDU_FT/davidmiller/letter/send | LDU_FT | [
"<BEGIN>\n## `main`",
"Do the things!",
" Return: 0\n Exceptions:\n<END>",
"<BEGIN>\n## `send`",
"Send BODY as an @message from FROM to TO",
" If we don't have the access tokens for FROM, raise AccountNotFoundError.\n If the tweet resulting from '@{0} {1}'.format(TO, BODY) is > 140 cha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Send the message.
If we have PLAIN and HTML versions, send a multipart alternative
MIME message, else send whichever we do have.
If we have neither, raise NoContentError
Arguments:
- `sender`: str
- `to`: list
- `subject`: str
- `plain`: str
- `... | "Send the message.\n\n If we have PLAIN and HTML versions, send a multipart alternative\n MIME message, else send whichever we do have.\n\n If we have neither, raise NoContentError\n\n Arguments:\n - `sender`: str\n - `to`: list\n - `subject`: str\n - `plain`: str... | 74 | false | davidmiller/letter | send | 10,329 | |
LDU_FT/twisted/axiom/createStore | LDU_FT | [
"<BEGIN>\n## `upgradeProcessor1to2`",
"Batch processors stopped polling at version 2, so they no longer needed the\n idleInterval attribute. They also gained a scheduled attribute which\n tracks their interaction with the scheduler. Since they stopped polling,\n we also set them up as a timed event her... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createStore API.
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 createStore API.
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... | Create the actual Store this Substore represents. | "Create the actual Store this Substore represents." | 479 | false | twisted/axiom | createStore | 10,330 | |
LDU_FT/Enteee/pdml2flow/autoconvert | LDU_FT | [
"<BEGIN>\n## `getitem_by_path`",
"Access item in d using path.",
" a = { 0: { 1: 'item' } }\n getitem_by_path(a, [0, 1]) == 'item'\n<END>",
"<BEGIN>\n## `clean_empty`",
"Returns a copy of d without empty leaves.",
" https://stackoverflow.com/questions/27973988/python-how-to-remove-all... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autoconvert API.
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 autoconvert API.
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... | Try to convert variables into datatypes. | "Try to convert variables into datatypes." | 22 | false | Enteee/pdml2flow | autoconvert | 10,331 | |
LDU_FT/jbasko/configmanager/json | LDU_FT | [
"<BEGIN>\n## `values`",
"Returns a mapping of items to their new values. The mapping includes only items whose value or raw string value\n has changed in the context.\n<END>",
"<BEGIN>\n## `changes`",
"Returns a mapping of items to their effective change objects which include the old values\n an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Adapter to dump/load JSON format strings and files.
Returns:
ConfigPersistenceAdapter | "Adapter to dump/load JSON format strings and files.\n \n Returns:\n ConfigPersistenceAdapter" | 120 | false | jbasko/configmanager | json | 10,332 | |
LDU_FT/gplepage/gvar/eigh | LDU_FT | [
"<BEGIN>\n## `deriv`",
"Compute *n*-th derivative of ``self``.",
" :param n: Number of derivatives.\n :type n: positive integer\n :returns: *n*-th derivative of ``self``.\n<END>",
"<BEGIN>\n## `integ`",
"Compute *n*-th indefinite integral of ``self``.",
" If *x0* is specified, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eigh API.
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 eigh API.
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... | Eigenvalues and eigenvectors of symmetric matrix ``a``.
Args:
a: Two-dimensional, square Hermitian matrix/array of numbers
and/or :class:`gvar.GVar`\s. Array elements must be
real-valued if `gvar.GVar`\s are involved (i.e., symmetric
matrix).
eigvec (bool): If ``... | "Eigenvalues and eigenvectors of symmetric matrix ``a``.\n\n Args:\n a: Two-dimensional, square Hermitian matrix/array of numbers\n and/or :class:`gvar.GVar`\\s. Array elements must be\n real-valued if `gvar.GVar`\\s are involved (i.e., symmetric\n matrix).\n eigvec (bo... | 206 | false | gplepage/gvar | eigh | 10,333 | |
LDU_FT/jhazelwo/python-fileasobj/rm | LDU_FT | [
"<BEGIN>\n## `example_add_line_to_file`",
"Different methods to append a given line to the file, all work the same.\n<END>",
"<BEGIN>\n## `example_write_file_to_disk_if_changed`",
"Try to remove all comments from a file, and save it if changes were made.\n<END>",
"<BEGIN>\n## `read`",
"Read given_file to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rm API.
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 docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rm API.
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 docu... | Remove all occurrences of 'line' from contents
where 'line' is an entire line or a list of lines.
Return true if the file was changed by rm(), False otherwise.
Multi-line strings are converted to a list delimited by new lines.
:param line: String, or List of Strings; each string r... | "Remove all occurrences of 'line' from contents\n where 'line' is an entire line or a list of lines.\n\n Return true if the file was changed by rm(), False otherwise.\n\n Multi-line strings are converted to a list delimited by new lines.\n\n :param line: String, or List of Strings; each ... | 39 | false | jhazelwo/python-fileasobj | rm | 10,334 | |
LDU_FT/CygnusNetworks/pypureomapi/del_host | LDU_FT | [
"<BEGIN>\n## `parse_chain`",
"Creates a new parser that executes the passed parsers (args) with the\n\tprevious results and yields a tuple of the results.",
"\t>>> list(parse_chain(lambda: (None, 1), lambda one: (None, 2)))\n\t[None, None, (1, 2)]",
"\t@param args: parsers\n\t@returns: parser\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the del_host API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the del_host API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Delete a host object with with given mac address.
@type mac: str
@raises ValueError:
@raises OmapiError:
@raises OmapiErrorNotFound: if no lease object with the given
mac address could be found
@raises socket.error: | "Delete a host object with with given mac address.\n\n\t\t@type mac: str\n\t\t@raises ValueError:\n\t\t@raises OmapiError:\n\t\t@raises OmapiErrorNotFound: if no lease object with the given\n\t\t\t\tmac address could be found\n\t\t@raises socket.error:" | 114 | false | CygnusNetworks/pypureomapi | del_host | 10,335 | |
LDU_FT/fboender/ansible-cmdb/write_module_code | LDU_FT | [
"<BEGIN>\n## `tokenize`",
"Parse a string expression into a set of tokens that can be used as a path\n into a Python datastructure.\n<END>",
"<BEGIN>\n## `jsonxs`",
"Get, set, delete values in a JSON structure. `expr` is a JSONpath-like\n expression pointing to the desired value. `action` determines the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_module_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_module_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | write module-level template code, i.e. that which
is enclosed in <%! %> tags in the template. | "write module-level template code, i.e. that which\n is enclosed in <%! %> tags in the template." | 271 | false | fboender/ansible-cmdb | write_module_code | 10,336 | |
LDU_FT/hearsaycorp/normalize/reverse | LDU_FT | [
"<BEGIN>\n## `path`",
"The path attribute returns a stringified, concise representation of\n the MultiFieldSelector. It can be reversed by the ``from_path``\n constructor.\n<END>",
"<BEGIN>\n## `get`",
"Creates a copy of the passed object which only contains the parts\n which are pointed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse API.
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 reverse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Like :py:meth:`normalize.visitor.VisitorPattern.apply` but called
for ``cast`` operations. The default implementation passes through but
squashes exceptions, just like apply. | "Like :py:meth:`normalize.visitor.VisitorPattern.apply` but called\n for ``cast`` operations. The default implementation passes through but\n squashes exceptions, just like apply." | 210 | false | hearsaycorp/normalize | reverse | 10,337 | |
LDU_FT/RadhikaG/markdown-magic/genMeme | LDU_FT | [
"<BEGIN>\n## `processGif`",
"This function returns the url of the gif searched for\n with the given search parameters using the Giphy API.\n Thanks!",
" Fails gracefully when it can't find a gif by returning an \n appropriate image url with the failure message on it.\n<END>",
"<BEGIN>\n## `genMeme... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the genMeme API.
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 genMeme API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | This function returns the url of the meme with the given
template, upper text, and lower text using the ImgFlip
meme generation API. Thanks!
Returns None if it is unable to generate the meme. | "This function returns the url of the meme with the given\n template, upper text, and lower text using the ImgFlip\n meme generation API. Thanks!\n\n Returns None if it is unable to generate the meme." | 19 | false | RadhikaG/markdown-magic | genMeme | 10,338 | |
LDU_FT/bpython/curtsies/drunk_value | LDU_FT | [
"<BEGIN>\n## `tictactoe`",
"Put two strategies to a classic battle of wits.\n<END>",
"<BEGIN>\n## `memo`",
"Return a function like f that remembers and reuses results of past calls.\n<END>",
"<BEGIN>\n## `max_play`",
"Play like Spock, except breaking ties by drunk_value.\n<END>",
"<BEGIN>\n## `drunk_val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drunk_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drunk_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return the expected value to the player if both players play at random. | "Return the expected value to the player if both players play at random." | 163 | false | bpython/curtsies | drunk_value | 10,339 | |
LDU_FT/DocNow/twarc/friendships | LDU_FT | [
"<BEGIN>\n## `rate_limit`",
"A decorator to handle rate limiting from the Twitter API. If\n a rate limit error is encountered we will sleep until we can\n issue the API call again.\n<END>",
"<BEGIN>\n## `catch_conn_reset`",
"A decorator to handle connection reset errors even ones from pyOpenSSL\n unt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the friendships API.
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 friendships API.
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... | Pass in a user_id and you will be returned a generator of friendship
tuples (user_id, friend_id). By default it will return the friend
of a friend network (level=2), but you can expand this by settings the
level parameter to either another number. But beware, it could run for a
while! | "Pass in a user_id and you will be returned a generator of friendship \n tuples (user_id, friend_id). By default it will return the friend\n of a friend network (level=2), but you can expand this by settings the \n level parameter to either another number. But beware, it could run for a \n while!" | 58 | false | DocNow/twarc | friendships | 10,340 | |
LDU_FT/bihealth/vcfpy/serialize_for_header | LDU_FT | [
"<BEGIN>\n## `make_virtual_offset`",
"Compute a BGZF virtual offset from block start and within block offsets.\n The BAM indexing scheme records read positions using a 64 bit\n 'virtual offset', comprising in C terms:\n block_start_offset << 16 | within_block_offset\n Here block_start_offset is the fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_for_header API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_for_header API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Serialize value for the given mapping key for a VCF header line | "Serialize value for the given mapping key for a VCF header line" | 127 | false | bihealth/vcfpy | serialize_for_header | 10,341 | |
LDU_FT/larryng/narwal/submit_text | LDU_FT | [
"<BEGIN>\n## `get`",
"Sends a GET request to a reddit path determined by ``args``. Basically ``.get('foo', 'bar', 'baz')`` will GET http://www.reddit.com/foo/bar/baz/.json. ``kwargs`` supplied will be passed to :meth:`requests.get` after having ``user_agent`` and ``cookies`` injected. Injection only occurs if ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submit_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Login required. POSTs a text submission. Returns :class:`things.Link` object if ``follow=True`` (default), or the string permalink of the new submission otherwise.
Argument ``follow`` exists because reddit only returns the permalink after POSTing a submission. In order to get detailed info on the ne... | "Login required. POSTs a text submission. Returns :class:`things.Link` object if ``follow=True`` (default), or the string permalink of the new submission otherwise.\n \n Argument ``follow`` exists because reddit only returns the permalink after POSTing a submission. In order to get detailed info on the... | 147 | false | larryng/narwal | submit_text | 10,342 | |
LDU_FT/EpistasisLab/tpot/positive_integer | LDU_FT | [
"<BEGIN>\n## `auto_select_categorical_features`",
"Make a feature mask of categorical features in X.",
" Features with less than 10 unique values are considered categorical.",
" Parameters\n ----------\n X : array-like or sparse matrix, shape=(n_samples, n_features)\n Dense array or sparse ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the positive_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the positive_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 ... | Ensure that the provided value is a positive integer.
Parameters
----------
value: int
The number to evaluate
Returns
-------
value: int
Returns a positive integer | "Ensure that the provided value is a positive integer.\n\n Parameters\n ----------\n value: int\n The number to evaluate\n\n Returns\n -------\n value: int\n Returns a positive integer" | 249 | false | EpistasisLab/tpot | positive_integer | 10,343 | |
LDU_FT/adamrehn/slidingwindow/batchWindows | LDU_FT | [
"<BEGIN>\n## `generate`",
"Generates a set of sliding windows for the specified dataset.\n<END>",
"<BEGIN>\n## `generateForSize`",
"Generates a set of sliding windows for a dataset with the specified dimensions and order.\n<END>",
"<BEGIN>\n## `apply`",
"Slices the supplied matrix and applies any transfor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batchWindows API.
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 batchWindows API.
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... | Splits a list of windows into a series of batches. | "Splits a list of windows into a series of batches." | 46 | false | adamrehn/slidingwindow | batchWindows | 10,344 | |
LDU_FT/astroML/gatspy/fetch_rrlyrae_fitdata | LDU_FT | [
"<BEGIN>\n## `mode_in_range`",
"Find the mode of values to within a certain range\n<END>",
"<BEGIN>\n## `scores`",
"Compute the scores under the various models",
" Parameters\n ----------\n periods : array_like\n array of periods at which to compute scores",
" Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_rrlyrae_fitdata 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 fetch_rrlyrae_fitdata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Fetch data from table 3 of Sesar 2010
This table includes parameters derived from template fits to all the
Sesar 2010 lightcurves. | "Fetch data from table 3 of Sesar 2010\n\n This table includes parameters derived from template fits to all the\n Sesar 2010 lightcurves." | 123 | false | astroML/gatspy | fetch_rrlyrae_fitdata | 10,345 | |
LDU_FT/alvations/pywsd/random_sense | LDU_FT | [
"<BEGIN>\n## `similarity_by_path`",
"Returns maximum path similarity between two senses.",
" :param sense1: A synset.\n :param sense2: A synset.\n :param option: String, one of ('path', 'wup', 'lch').\n :return: A float, similarity measurement.\n<END>",
"<BEGIN>\n## `similarity_by_infocontent`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_sense API.
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 random_sense API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Returns a random sense.
:param ambiguous_word: String, a single word.
:param pos: String, one of 'a', 'r', 's', 'n', 'v', or None.
:return: A random Synset. | "Returns a random sense.\n\n :param ambiguous_word: String, a single word.\n :param pos: String, one of 'a', 'r', 's', 'n', 'v', or None.\n :return: A random Synset." | 83 | false | alvations/pywsd | random_sense | 10,346 | |
LDU_FT/myusuf3/delorean/replace | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parses a datetime string and returns a `Delorean` object.",
" :param datetime_str: The string to be interpreted into a `Delorean` object.\n :param timezone: Pass this parameter and the returned Delorean object will be normalized to this timezone. Any\n offsets passed as part... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns a new Delorean object after applying replace on the
existing datetime object.
.. testsetup::
from datetime import datetime
from delorean import Delorean
.. doctest::
>>> d = Delorean(datetime(2015, 1, 1, 12, 15), timezone='U... | "Returns a new Delorean object after applying replace on the\n existing datetime object.\n\n .. testsetup::\n\n from datetime import datetime\n from delorean import Delorean\n\n .. doctest::\n\n >>> d = Delorean(datetime(2015, 1, 1, 12, 15), ... | 85 | false | myusuf3/delorean | replace | 10,347 | |
LDU_FT/Genida/archan/inflate_analysis_group | LDU_FT | [
"<BEGIN>\n## `validate_rows_length`",
"Validate that all rows have the same length.\n<END>",
"<BEGIN>\n## `validate_square`",
"Validate that the matrix has equal number of rows and columns.\n<END>",
"<BEGIN>\n## `validate_categories_equal_entities`",
"Validate that the matrix has equal number of entities ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inflate_analysis_group 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 inflate_analysis_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Inflate a whole analysis group.
An analysis group is a section defined in the YAML file.
Args:
identifier (str): the group identifier.
definition (list/dict): the group definition.
Returns:
AnalysisGroup: an instance of AnalysisGroup.
Raises:
... | "Inflate a whole analysis group.\n\n An analysis group is a section defined in the YAML file.\n\n Args:\n identifier (str): the group identifier.\n definition (list/dict): the group definition.\n\n Returns:\n AnalysisGroup: an instance of AnalysisGroup.\n\n R... | 127 | false | Genida/archan | inflate_analysis_group | 10,348 | |
LDU_FT/byt3bl33d3r/CrackMapExec/options | LDU_FT | [
"<BEGIN>\n## `add_computer`",
"Check if this host has already been added to the database, if not add it in.\n<END>",
"<BEGIN>\n## `remove_credentials`",
"Removes a credential ID from the database\n<END>",
"<BEGIN>\n## `options`",
"SERVER IP of the SMB server\n NAME LNK file name\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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.
The extracted... | PATH Path to dll/exe to inject
PROCID Process ID to inject into (default: current powershell process)
EXEARGS Arguments to pass to the executable being reflectively loaded (default: None) | "PATH Path to dll/exe to inject\n PROCID Process ID to inject into (default: current powershell process)\n EXEARGS Arguments to pass to the executable being reflectively loaded (default: None)" | 77 | false | byt3bl33d3r/CrackMapExec | options | 10,349 | |
LDU_FT/influxdata/influxdb-python/_json_body_ | LDU_FT | [
"<BEGIN>\n## `_get_unicode`",
"Try to return a text aka unicode object from the given data.\n<END>",
"<BEGIN>\n## `make_lines`",
"Extract points from given dict.",
" Extracts the points from the given dict and returns a Unicode string\n matching the line protocol introduced in InfluxDB 0.9.0.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _json_body_ API.
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 _json_body_ API.
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 JSON body of given datapoints.
:return: JSON body of these datapoints. | "Return the JSON body of given datapoints.\n\n :return: JSON body of these datapoints." | 205 | false | influxdata/influxdb-python | _json_body_ | 10,350 | |
LDU_FT/SecurityInnovation/PGPy/fingerprints | LDU_FT | [
"<BEGIN>\n## `decrypt_sk`",
"The value \"m\" in the above formulas is derived from the session key\n as follows. First, the session key is prefixed with a one-octet\n algorithm identifier that specifies the symmetric encryption\n algorithm used to encrypt the following Symmetrically Encrypte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fingerprints API.
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 fingerprints API.
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... | List loaded fingerprints with some optional filtering.
:param str keyhalf: Can be 'any', 'public', or 'private'. If 'public', or 'private', the fingerprints of keys of the
the other type will not be included in the results.
:param str keytype: Can be 'any', 'primary', or 'su... | "List loaded fingerprints with some optional filtering.\n\n :param str keyhalf: Can be 'any', 'public', or 'private'. If 'public', or 'private', the fingerprints of keys of the\n the other type will not be included in the results.\n :param str keytype: Can be 'any', 'primary', o... | 197 | false | SecurityInnovation/PGPy | fingerprints | 10,351 | |
LDU_FT/joeyespo/grip/_read_text | LDU_FT | [
"<BEGIN>\n## `_get_style_urls`",
"Gets the specified resource and parses all style URLs and their\n assets in the form of the specified patterns.\n<END>",
"<BEGIN>\n## `_cache_contents`",
"Fetches the given URLs and caches their contents\n and their assets in the given directory.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Helper that reads the UTF-8 content of the specified file, or
None if the file doesn't exist. This returns a unicode string. | "Helper that reads the UTF-8 content of the specified file, or\n None if the file doesn't exist. This returns a unicode string." | 77 | false | joeyespo/grip | _read_text | 10,352 | |
LDU_FT/mixer/beam-interactive-python/get_packet_id | LDU_FT | [
"<BEGIN>\n## `remaining_bytes`",
"Returns the remaining, unread bytes from the buffer.\n<END>",
"<BEGIN>\n## `encode`",
"Pushes a packet to the writer, encoding it on the internal\n buffer.\n<END>",
"<BEGIN>\n## `get_packet_id`",
"Returns the ID of a protocol buffer packet. Returns None\n if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_packet_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_packet_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns the ID of a protocol buffer packet. Returns None
if no ID was found. | "Returns the ID of a protocol buffer packet. Returns None\n if no ID was found." | 28 | false | mixer/beam-interactive-python | get_packet_id | 10,353 | |
LDU_FT/alexmojaki/littleutils/retry | LDU_FT | [
"<BEGIN>\n## `helpful_error_list_get`",
">>> helpful_error_list_get([1, 2, 3], 1)\n 2\n >>> helpful_error_list_get([1, 2, 3], 4)\n Traceback (most recent call last):\n ...\n IndexError: Tried to access 4, length is only 3\n<END>",
"<BEGIN>\n## `only`",
">>> only([7])\n 7\n >>> only([1, 2]... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry API.
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 retry API.
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... | >>> def fail():
... runs[0] += 1
... raise ValueError()
>>> runs = [0]; retry(sleeptime=0)(fail)()
Traceback (most recent call last):
...
ValueError
>>> runs
[3]
>>> runs = [0]; retry(2, sleeptime=0)(fail)()
Traceback (most recent call last):
...
ValueError
>>... | ">>> def fail():\n ... runs[0] += 1\n ... raise ValueError()\n >>> runs = [0]; retry(sleeptime=0)(fail)()\n Traceback (most recent call last):\n ...\n ValueError\n >>> runs\n [3]\n >>> runs = [0]; retry(2, sleeptime=0)(fail)()\n Traceback (most recent call last):\n ...\n Valu... | 34 | false | alexmojaki/littleutils | retry | 10,354 | |
LDU_FT/venthur/gscholar/get_links | LDU_FT | [
"<BEGIN>\n## `query`",
"Query google scholar.",
" This method queries google scholar and returns a list of citations.",
" Parameters\n ----------\n searchstr : str\n the query\n outformat : int, optional\n the output format of the citations. Default is bibtex.\n allresults : bo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_links API.
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 get_links API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return a list of reference links from the html.
Parameters
----------
html : str
outformat : int
the output format of the citations
Returns
-------
List[str]
the links to the references | "Return a list of reference links from the html.\n\n Parameters\n ----------\n html : str\n outformat : int\n the output format of the citations\n\n Returns\n -------\n List[str]\n the links to the references" | 24 | false | venthur/gscholar | get_links | 10,355 | |
LDU_FT/mattja/nsim/epochs_distributed | LDU_FT | [
"<BEGIN>\n## `merge`",
"Merge several timeseries\n Arguments:\n tup: sequence of Timeseries, with the same shape except for axis 0\n Returns: \n Resulting merged timeseries which can have duplicate time points.\n<END>",
"<BEGIN>\n## `add_analyses`",
"Dynamically add new analysis methods to the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the epochs_distributed 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 epochs_distributed 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... | Same as `epochs()`, but computes channels in parallel for speed.
(Note: This requires an IPython cluster to be started first,
e.g. on a workstation type 'ipcluster start')
Identify "stationary" epochs within a time series, based on a
continuous measure of variability.
Epochs are defined t... | "Same as `epochs()`, but computes channels in parallel for speed.\n\n (Note: This requires an IPython cluster to be started first, \n e.g. on a workstation type 'ipcluster start')\n\n Identify \"stationary\" epochs within a time series, based on a \n continuous measure of variability.\n Epochs are... | 427 | false | mattja/nsim | epochs_distributed | 10,356 | |
LDU_FT/swisscom/cleanerversion/_clone | LDU_FT | [
"<BEGIN>\n## `get_readonly_fields`",
"This is required a subclass of VersionedAdmin has readonly_fields\n ours won't be undone\n<END>",
"<BEGIN>\n## `get_list_display`",
"This method determines which fields go in the changelist\n<END>",
"<BEGIN>\n## `get_list_filter`",
"Adds versionable custom filt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clone API.
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 _clone API.
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 ... | Overrides the QuerySet._clone method by adding the cloning of the
VersionedQuerySet's query_time parameter
:param kwargs: Same as the original QuerySet._clone params
:return: Just as QuerySet._clone, this method returns a clone of the
original object | "Overrides the QuerySet._clone method by adding the cloning of the\n VersionedQuerySet's query_time parameter\n\n :param kwargs: Same as the original QuerySet._clone params\n :return: Just as QuerySet._clone, this method returns a clone of the\n original object" | 149 | false | swisscom/cleanerversion | _clone | 10,357 | |
LDU_FT/fp12/achallonge/update_notifications | LDU_FT | [
"<BEGIN>\n## `report_winner`",
"report scores and give a winner",
" |methcoro|",
" Args:\n winner: :class:Participant instance\n scores_csv: Comma separated set/game scores with player 1 score first (e.g. \"1-3,3-0,3-2\")",
" Raises:\n ValueError: scores... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_notifications 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 update_notifications API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | update participants notifications for this tournament
|methcoro|
Args:
on_match_open: Email registered Challonge participants when matches open up for them
on_tournament_end: Email registered Challonge participants the results when this tournament ends
Raises:
... | "update participants notifications for this tournament\n\n |methcoro|\n\n Args:\n on_match_open: Email registered Challonge participants when matches open up for them\n on_tournament_end: Email registered Challonge participants the results when this tournament ends\n\n Raises:... | 173 | false | fp12/achallonge | update_notifications | 10,358 | |
LDU_FT/genepattern/genepattern-python/_join_data_lines | LDU_FT | [
"<BEGIN>\n## `GCT`",
"Create a Dataframe with the contents of the GCT file\n<END>",
"<BEGIN>\n## `ODF`",
"Create a Dataframe with the contents of the ODF file",
" For more information on the ODF format see:\n http://software.broadinstitute.org/cancer/software/genepattern/file-formats-guide",
" :o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _join_data_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _join_data_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 ... | Join all the data lines into a byte string | "Join all the data lines into a byte string" | 156 | false | genepattern/genepattern-python | _join_data_lines | 10,359 | |
LDU_FT/druids/django-chamber/change_and_save | LDU_FT | [
"<BEGIN>\n## `get_class_method`",
"Returns a method from a given class or instance. When the method doest not exist, it returns `None`. Also works with\n properties and cached properties.\n<END>",
"<BEGIN>\n## `model_to_dict`",
"The same implementation as django model_to_dict but editable fields are allowe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_and_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the change_and_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 e... | Changes a given `changed_fields` on object, saves it and returns changed object. | "Changes a given `changed_fields` on object, saves it and returns changed object." | 38 | false | druids/django-chamber | change_and_save | 10,360 | |
LDU_FT/WhyNotHugo/python-barcode/save | LDU_FT | [
"<BEGIN>\n## `build`",
"Builds the barcode pattern from `self.ean`.",
" :returns: The pattern as string\n :rtype: String\n<END>",
"<BEGIN>\n## `build`",
"Builds the barcode pattern from `self.ean`.",
" :returns: The pattern as string\n :rtype: String\n<END>",
"<BEGIN>\n## `ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Renders the barcode and saves it in `filename`.
:parameters:
filename : String
Filename to save the barcode in (without filename
extension).
options : Dict
The same as in `self.render`.
text : str (unicode on Python 2)
... | "Renders the barcode and saves it in `filename`.\n\n :parameters:\n filename : String\n Filename to save the barcode in (without filename\n extension).\n options : Dict\n The same as in `self.render`.\n text : str (unicode on Python 2)... | 30 | false | WhyNotHugo/python-barcode | save | 10,361 | |
LDU_FT/etgalloway/fullqualname/_fullqualname_function_py3 | LDU_FT | [
"<BEGIN>\n## `fullqualname_py3`",
"Fully qualified name for objects in Python 3.\n<END>",
"<BEGIN>\n## `_fullqualname_builtin_py3`",
"Fully qualified name for 'builtin_function_or_method' objects in\n Python 3.\n<END>",
"<BEGIN>\n## `_fullqualname_function_py3`",
"Fully qualified name for 'function' ob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fullqualname_function_py3 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fullqualname_function_py3 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Fully qualified name for 'function' objects in Python 3. | "Fully qualified name for 'function' objects in Python 3." | 14 | false | etgalloway/fullqualname | _fullqualname_function_py3 | 10,362 | |
LDU_FT/ARMmbed/icetea/init_duts | LDU_FT | [
"<BEGIN>\n## `init_process_dut`",
"Initialize process type Dut as DutProcess or DutConsole.\n<END>",
"<BEGIN>\n## `allocate`",
"Allocates resources from available local devices.",
" :param dut_configuration_list: List of ResourceRequirements objects\n :param args: Not used\n :return: Al... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_duts API.
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 init_duts API.
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... | Initializes duts of different types based on configuration provided by AllocationContext.
Able to do the initialization of duts in parallel, if --parallel_flash was provided.
:param args: Argument Namespace object
:return: list of initialized duts. | "Initializes duts of different types based on configuration provided by AllocationContext.\n Able to do the initialization of duts in parallel, if --parallel_flash was provided.\n\n :param args: Argument Namespace object\n :return: list of initialized duts." | 663 | false | ARMmbed/icetea | init_duts | 10,363 | |
LDU_FT/nephila/djangocms-apphook-setup/_create_config_translation | 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 _create_config_translation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_config_translation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Creates a translation for the given ApphookConfig
Only django-parler kind of models are currently supported.
``AutoCMSAppMixin.auto_setup['config_translated_fields']`` is used to fill in the data
of the instance for all the languages.
:param config: ApphookConfig instance
:par... | "Creates a translation for the given ApphookConfig\n\n Only django-parler kind of models are currently supported.\n\n ``AutoCMSAppMixin.auto_setup['config_translated_fields']`` is used to fill in the data\n of the instance for all the languages.\n\n :param config: ApphookConfig instance\n ... | 21 | false | nephila/djangocms-apphook-setup | _create_config_translation | 10,364 | |
LDU_FT/arne-cl/discoursegraphs/get_xsi_type | LDU_FT | [
"<BEGIN>\n## `merging_cli`",
"simple commandline interface of the merging module.",
" This function is called when you use the ``discoursegraphs`` application\n directly on the command line.\n<END>",
"<BEGIN>\n## `add_node_ids_as_labels`",
"Adds the ID of each node of a discourse graph as a label (an ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_xsi_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_xsi_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 extr... | returns the type of an element of the XML tree (incl. its namespace),
i.e. nodes, edges, layers etc.), raises an exception if the element has no
'xsi:type' attribute. | "returns the type of an element of the XML tree (incl. its namespace),\n i.e. nodes, edges, layers etc.), raises an exception if the element has no\n 'xsi:type' attribute." | 846 | false | arne-cl/discoursegraphs | get_xsi_type | 10,365 | |
LDU_FT/myaooo/pysbrl/rule_satisfied | LDU_FT | [
"<BEGIN>\n## `print_rule`",
"print the rule in a nice way\n :param rule: An instance of Rule\n :param feature_names: a list of n_features feature names,\n :param category_names: the names of the categories of each feature.\n :param label: Can take two values, 'label': just print the label as output, o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rule_satisfied API.
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 rule_satisfied API.
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... | return a logical array representing whether entries in x satisfied the rules denoted by features and categories
:param x: a categorical 2D array
:param features: a list of feature indices
:param categories: a list of categories
:return: | "return a logical array representing whether entries in x satisfied the rules denoted by features and categories\n :param x: a categorical 2D array\n :param features: a list of feature indices\n :param categories: a list of categories\n :return:" | 29 | false | myaooo/pysbrl | rule_satisfied | 10,366 | |
LDU_FT/mattja/sdeint/_AtildeTerm | LDU_FT | [
"<BEGIN>\n## `broadcast_to`",
"Broadcast an array to a new shape.",
" Parameters\n ----------\n array : array_like\n The array to broadcast.\n shape : tuple\n The shape of the desired array.\n subok : bool, optional\n If True, then sub-classes will be passed-through, otherwis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _AtildeTerm API.
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 _AtildeTerm API.
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... | kth term in the sum for Atilde (Wiktorsson2001 p481, 1st eqn) | "kth term in the sum for Atilde (Wiktorsson2001 p481, 1st eqn)" | 118 | false | mattja/sdeint | _AtildeTerm | 10,367 | |
LDU_FT/Stranger6667/postmarker/activate | LDU_FT | [
"<BEGIN>\n## `create`",
"Creates a template.",
" :param Name: Name of template\n :param Subject: The content to use for the Subject when this template is used to send email.\n :param HtmlBody: The content to use for the HtmlBody when this template is used to send email.\n :param Text... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate API.
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 activate API.
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... | Activates the bounce instance and updates it with the latest data.
:return: Activation status.
:rtype: `str` | "Activates the bounce instance and updates it with the latest data.\n\n :return: Activation status.\n :rtype: `str`" | 74 | false | Stranger6667/postmarker | activate | 10,368 | |
LDU_FT/KelSolaar/Foundations/variables | LDU_FT | [
"<BEGIN>\n## `list_attributes`",
"Returns the Node attributes names.",
" Usage::",
" >>>\tnode_a = AbstractNode(\"MyNodeA\", attributeA=Attribute(), attributeB=Attribute())\n >>> node_a.list_attributes()\n ['attributeB', 'attributeA']",
" :return: Attributes na... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the variables API.
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 variables API.
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... | Setter for **self.__variables** attribute.
:param value: Attribute value.
:type value: dict | "Setter for **self.__variables** attribute.\n\n :param value: Attribute value.\n :type value: dict" | 629 | false | KelSolaar/Foundations | variables | 10,369 | |
LDU_FT/AoiKuiyuyou/AoikLiveReload/get_full_python_version | LDU_FT | [
"<BEGIN>\n## `main`",
"Main function.",
" :return:\n None.\n<END>",
"<BEGIN>\n## `start_watcher_thread`",
"Start watcher thread.",
" :return:\n Watcher thread object.\n<END>",
"<BEGIN>\n## `run_watcher`",
"Watcher thread's function.",
" :return:\n None.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_full_python_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_full_python_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... | Get full Python version.
E.g.
- `2.7.11.final.0.32bit`
- `3.5.1.final.0.64bit`
:return: Full Python version. | "Get full Python version.\n\n E.g.\n - `2.7.11.final.0.32bit`\n - `3.5.1.final.0.64bit`\n\n :return: Full Python version." | 216 | false | AoiKuiyuyou/AoikLiveReload | get_full_python_version | 10,370 | |
LDU_FT/grycap/RADL/check_simple | LDU_FT | [
"<BEGIN>\n## `parse_radl`",
"Parse a RADL document in JSON.",
" Args.:\n - data(str or list): document to parse.",
" Return(RADL): RADL object.\n<END>",
"<BEGIN>\n## `radlToSimple`",
"Return a list of maps whose values are only other maps or lists.\n<END>",
"<BEGIN>\n## `getValue`",
"Return t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_simple API.
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 check_simple API.
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... | Check types, operators and units in simple features. | "Check types, operators and units in simple features." | 121 | false | grycap/RADL | check_simple | 10,371 | |
LDU_FT/MisterWil/abodepy/_update_name | LDU_FT | [
"<BEGIN>\n## `map_event_code`",
"Map a specific event_code to an event group.\n<END>",
"<BEGIN>\n## `desc`",
"Get a short description of the automation.\n<END>",
"<BEGIN>\n## `_get_numeric_status`",
"Extract the numeric value from the statuses object.\n<END>",
"<BEGIN>\n## `is_on`",
"Get sensor state.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Set the device name from _json_state, with a sensible default. | "Set the device name from _json_state, with a sensible default." | 53 | false | MisterWil/abodepy | _update_name | 10,372 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.