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/thebigmunch/google-music-utils/suggest_filename
LDU_FT
[ "<BEGIN>\n## `suggest_filename`", "Generate a filename like Google for a song based on metadata.", "\tParameters:\n\t\tmetadata (~collections.abc.Mapping): A metadata dict.", "\tReturns:\n\t\tstr: A filename string without an extension.\n<END>", "<BEGIN>\n## `template_to_filepath`", "Create directory stru...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the suggest_filename API. 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 suggest_filename API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generate a filename like Google for a song based on metadata. Parameters: metadata (~collections.abc.Mapping): A metadata dict. Returns: str: A filename string without an extension.
"Generate a filename like Google for a song based on metadata.\n\n\tParameters:\n\t\tmetadata (~collections.abc.Mapping): A metadata dict.\n\n\tReturns:\n\t\tstr: A filename string without an extension."
44
false
thebigmunch/google-music-utils
suggest_filename
15,373
LDU_FT/eyurtsev/FlowCytometryTools/ID_from_data
LDU_FT
[ "<BEGIN>\n## `get_tag_value`", "Extracts the value of a tag from a string.", " Parameters\n -----------------", " pre : str\n regular expression to match before the the tag value", " post : str | list | tuple\n regular expression to match after the the tag value", " if lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ID_from_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ID_from_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 extr...
Returns the well ID from the src keyword in the FCS file. (e.g., A2) This keyword may not appear in FCS files generated by other machines, in which case this function will raise an exception.
"Returns the well ID from the src keyword in the FCS file. (e.g., A2)\n This keyword may not appear in FCS files generated by other machines,\n in which case this function will raise an exception."
330
false
eyurtsev/FlowCytometryTools
ID_from_data
15,374
LDU_FT/pyapi-gitlab/pyapi-gitlab/getsystemhooks
LDU_FT
[ "<BEGIN>\n## `login`", "Logs the user in and setups the header with the private token", " :param email: Gitlab user Email\n :param user: Gitlab username\n :param password: Gitlab user password\n :return: True if login successful\n :raise: HttpError\n :raise: ValueError\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getsystemhooks API. 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 getsystemhooks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get all system hooks :param page: Page number :param per_page: Records per page :return: list of hooks
"Get all system hooks\n\n :param page: Page number\n :param per_page: Records per page\n :return: list of hooks"
239
false
pyapi-gitlab/pyapi-gitlab
getsystemhooks
15,375
LDU_FT/kigawas/eciespy/hex2pub
LDU_FT
[ "<BEGIN>\n## `encrypt`", "Encrypt with eth public key", " Parameters\n ----------\n receiver_pubhex: str\n Receiver's ethereum public key hex string\n msg: bytes\n Data to encrypt", " Returns\n -------\n bytes\n Encrypted data\n<END>", "<BEGIN>\n## `decrypt`", "De...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hex2pub API. 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 hex2pub API. 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...
Convert ethereum hex to EllipticCurvePublicKey The hex should be 65 bytes, but ethereum public key only has 64 bytes So have to add \x04 Parameters ---------- pub_hex: str Ethereum public key hex string Returns ------- coincurve.PublicKey A secp256k1 public key calculat...
"Convert ethereum hex to EllipticCurvePublicKey\n The hex should be 65 bytes, but ethereum public key only has 64 bytes\n So have to add \\x04\n\n Parameters\n ----------\n pub_hex: str\n Ethereum public key hex string\n\n Returns\n -------\n coincurve.PublicKey\n A secp256k1 publi...
27
false
kigawas/eciespy
hex2pub
15,376
LDU_FT/sailthru/sailthru-python-client/save_user
LDU_FT
[ "<BEGIN>\n## `flatten_nested_hash`", "Flatten nested dictionary for GET / POST / DELETE API request\n<END>", "<BEGIN>\n## `sailthru_http_request`", "Perform an HTTP GET / POST / DELETE request\n<END>", "<BEGIN>\n## `extract_params`", "Extracts the values of a set of parameters, recursing into nested dicti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
save user by a given id http://getstarted.sailthru.com/api/user
"save user by a given id\n http://getstarted.sailthru.com/api/user"
64
false
sailthru/sailthru-python-client
save_user
15,377
LDU_FT/Othernet-Project/bottle-fdsend/emulate_seek
LDU_FT
[ "<BEGIN>\n## `send_file`", "Send a file represented by file object", " This function constcuts a HTTPResponse object that uses a file descriptor\n as response body. The file descriptor is suppled as ``fd`` argument and it\n must have a ``read()`` method. ``ValueError`` is raised when this is not\n t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emulate_seek API. 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 emulate_seek API. 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...
Emulates a seek on an object that does not support it The seek is emulated by reading and discarding bytes until specified offset is reached. The ``offset`` argument is in bytes from start of file. The ``chunk`` argument can be used to adjust the size of the chunks in which read operation is perfo...
"Emulates a seek on an object that does not support it\n\n The seek is emulated by reading and discarding bytes until specified offset\n is reached.\n\n The ``offset`` argument is in bytes from start of file. The ``chunk``\n argument can be used to adjust the size of the chunks in which read\n operation ...
40
false
Othernet-Project/bottle-fdsend
emulate_seek
15,378
LDU_FT/dslackw/slpkg/custom_repository
LDU_FT
[ "<BEGIN>\n## `repos`", "View or enabled or disabled repositories\n<END>", "<BEGIN>\n## `reset`", "Reset slpkg.conf file with default values\n<END>", "<BEGIN>\n## `case_sensitive`", "Create dictionary from list with key in lower case\n and value with default\n<END>", "<BEGIN>\n## `package_name`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the custom_repository API. 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 custom_repository API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Return dictionary with repo name and url (used external)
"Return dictionary with repo name and url (used external)"
168
false
dslackw/slpkg
custom_repository
15,379
LDU_FT/ulfalizer/Kconfiglib/node_str
LDU_FT
[ "<BEGIN>\n## `oldconfig`", "Prompts the user for a value if node.item is a visible symbol/choice with\n no user value.\n<END>", "<BEGIN>\n## `all_arch_srcarch_pairs`", "Generates all valid (ARCH, SRCARCH) tuples for the kernel, corresponding to\n different architectures. SRCARCH holds the arch/ subdirec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the complete menu entry text for a menu node, or "" for invisible menu nodes. Invisible menu nodes are those that lack a prompt or that do not have a satisfied prompt condition. Example return value: "[*] Bool symbol (BOOL)" The symbol name is printed in parentheses to the right of the prompt....
"Returns the complete menu entry text for a menu node, or \"\" for invisible\n menu nodes. Invisible menu nodes are those that lack a prompt or that do\n not have a satisfied prompt condition.\n\n Example return value: \"[*] Bool symbol (BOOL)\"\n\n The symbol name is printed in parentheses to the right of ...
139
false
ulfalizer/Kconfiglib
node_str
15,380
LDU_FT/bdcht/grandalf/setdummies
LDU_FT
[ "<BEGIN>\n## `_meanvalueattr`", "find new position of vertex v according to adjacency in prevlayer.\n position is given by the mean value of adjacent positions.\n experiments show that meanvalue heuristic performs better than median.\n<END>", "<BEGIN>\n## `_medianindex`", "find new position of v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setdummies API. 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 setdummies API. 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...
creates and defines all needed dummy vertices for edge e.
"creates and defines all needed dummy vertices for edge e."
41
false
bdcht/grandalf
setdummies
15,381
LDU_FT/danishabdullah/algen/basic_types
LDU_FT
[ "<BEGIN>\n## `convert_case`", "Converts name from CamelCase to snake_case\n<END>", "<BEGIN>\n## `table_name`", "Pluralises the class_name using utterly simple algo and returns as table_name\n<END>", "<BEGIN>\n## `types`", "All the unique types found in user supplied model\n<END>", "<BEGIN>\n## `basic_ty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basic_types API. 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 basic_types API. 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 non-postgres types referenced in user supplied model
"Returns non-postgres types referenced in user supplied model"
26
false
danishabdullah/algen
basic_types
15,382
LDU_FT/coursera/courseraoauth2client/_check_token_cache_type
LDU_FT
[ "<BEGIN>\n## `add_logging_parser`", "Build an argparse argument parser to parse the command line.\n<END>", "<BEGIN>\n## `set_logging_level`", "Computes and sets the logging level from the parsed arguments.\n<END>", "<BEGIN>\n## `authorize`", "Authorizes Coursera's OAuth2 client for using coursera.org API ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_token_cache_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_token_cache_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...
Checks the cache_value for appropriate type correctness. Pass strict=True for strict validation to ensure the latest types are being written. Returns true is correct type, False otherwise.
"Checks the cache_value for appropriate type correctness.\n\n Pass strict=True for strict validation to ensure the latest types are\n being written.\n\n Returns true is correct type, False otherwise."
31
false
coursera/courseraoauth2client
_check_token_cache_type
15,383
LDU_FT/erocarrera/pefile/add_lines
LDU_FT
[ "<BEGIN>\n## `is_suspicious`", "unusual locations of import tables\n non recognized section names\n presence of long ASCII strings\n<END>", "<BEGIN>\n## `is_probably_packed`", "Returns True is there is a high likelihood that a file is packed or contains compressed data.", " The sections of the PE f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extract...
Adds a list of lines. The list can be indented with the optional argument 'indent'.
"Adds a list of lines.\n\n The list can be indented with the optional argument 'indent'."
160
false
erocarrera/pefile
add_lines
15,384
LDU_FT/opendatateam/udata/public_dsn
LDU_FT
[ "<BEGIN>\n## `save`", "PeriodicTask is dynamic and save behavior changed\n See: https://github.com/zakird/celerybeat-mongo/commit/dfbbd20edde91134b57f5406d0ce4eac59d6899b\n<END>", "<BEGIN>\n## `has_manifest`", "Verify the existance of a JSON assets manifest\n<END>", "<BEGIN>\n## `from_manifest`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the public_dsn API. 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 public_dsn API. 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...
Transform a standard Sentry DSN into a public one
"Transform a standard Sentry DSN into a public one"
476
false
opendatateam/udata
public_dsn
15,385
LDU_FT/wecatch/app-turbo/default_encode
LDU_FT
[ "<BEGIN>\n## `convert_to_record`", "Wrap mongodb record to a dict record with default value None\n<END>", "<BEGIN>\n## `instance`", "Instantiate a model class according to import path\n args:\n name: class import path like `user.User`\n return:\n model instance\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_encode API. 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 default_encode API. 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...
convert ObjectId, datetime, date into string
"convert ObjectId, datetime, date into string"
43
false
wecatch/app-turbo
default_encode
15,386
LDU_FT/volafiled/python-volapi/fileupdate
LDU_FT
[ "<BEGIN>\n## `register_callback`", "Register callback that we will have to wait for\n<END>", "<BEGIN>\n## `_handle_callback`", "Handle lain's callback. Only used with getFileinfo so far\n<END>", "<BEGIN>\n## `_handle_config`", "Handle initial config push and config changes\n<END>", "<BEGIN>\n## `find_ve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fileupdate API. 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 fileupdate API. 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...
Method to update extra metadata fields with dict obtained through `fileinfo`
"Method to update extra metadata fields with dict obtained\n through `fileinfo`"
78
false
volafiled/python-volapi
fileupdate
15,387
LDU_FT/trolldbois/ctypeslib/get_cursor
LDU_FT
[ "<BEGIN>\n## `init_fundamental_types`", "Registers all fundamental typekind handlers\n<END>", "<BEGIN>\n## `_handle_fundamental_types`", "Handles POD types nodes.\n see init_fundamental_types for the registration.\n<END>", "<BEGIN>\n## `_array_handler`", "Handles all array types.\n Resolves ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cursor API. 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...
Obtain a cursor from a source object. This provides a convenient search mechanism to find a cursor with specific spelling within a source. The first argument can be either a TranslationUnit or Cursor instance. If the cursor is not found, None is returned.
"Obtain a cursor from a source object.\n\n This provides a convenient search mechanism to find a cursor with specific\n spelling within a source. The first argument can be either a\n TranslationUnit or Cursor instance.\n\n If the cursor is not found, None is returned."
88
false
trolldbois/ctypeslib
get_cursor
15,388
LDU_FT/jquast/wcwidth/_run_tty
LDU_FT
[ "<BEGIN>\n## `_do_readme_update`", "Patch README.rst to reflect the data files used in release.\n<END>", "<BEGIN>\n## `_make_table`", "Return a tuple of lookup tables for given values.\n<END>", "<BEGIN>\n## `_do_retrieve`", "Retrieve given url to target filepath fname.\n<END>", "<BEGIN>\n## `_do_write`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_tty API. 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 _run_tty API. 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...
Pager run method for terminals that are a tty.
"Pager run method for terminals that are a tty."
60
false
jquast/wcwidth
_run_tty
15,389
LDU_FT/fopina/tgbotplug/send_sticker
LDU_FT
[ "<BEGIN>\n## `print_commands`", "utility method to print commands\n and descriptions for @BotFather\n<END>", "<BEGIN>\n## `send_message`", "Use this method to send text messages.", " :param chat_id: Unique identifier for the message recipient — User or GroupChat id\n :param text: Text of the me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_sticker API. 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 send_sticker API. 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...
:param chat_id: Unique identifier for the message recipient — User or GroupChat id :param sticker: Sticker to send. You can either pass a file_id as String to resend a sticker that is already on the Telegram servers, or upload a new sticker using multipart/form-data. :param reply_to_message_...
":param chat_id: Unique identifier for the message recipient — User or GroupChat id\n :param sticker: Sticker to send. You can either pass a file_id as String to resend a sticker\n that is already on the Telegram servers, or upload a new sticker using multipart/form-data.\n :param reply_to_mess...
41
false
fopina/tgbotplug
send_sticker
15,390
LDU_FT/OpenGov/carpenter/_find_block_bounds
LDU_FT
[ "<BEGIN>\n## `get_cell_type`", "Returns a type to be used in table cell analysis. This is either\n 'basestring' or '(int, float)'.\n<END>", "<BEGIN>\n## `check_cell_type`", "Checks the cell type to see if it represents the cell_type passed in.", " Args:\n cell_type: The type id for a cell match...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_block_bounds 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 _find_block_bounds 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...
First walk the rows, checking for the farthest left column belonging to the block and the bottom most row belonging to the block. If a blank cell is hit and the column started with a blank cell or has length < self.blank_repeat_threshold, then restart one row to the right. Alternatively, if assu...
"First walk the rows, checking for the farthest left column belonging to the block and the\n bottom most row belonging to the block. If a blank cell is hit and the column started with a\n blank cell or has length < self.blank_repeat_threshold, then restart one row to the right.\n Alternatively, if ...
123
false
OpenGov/carpenter
_find_block_bounds
15,391
LDU_FT/cloudmesh/cloudmesh-common/ping
LDU_FT
[ "<BEGIN>\n## `names`", "The names defined in ~/.ssh/config\n :return: the names\n<END>", "<BEGIN>\n## `load`", "list the hosts defined in the ssh config file\n<END>", "<BEGIN>\n## `execute`", "execute the command on the named host\n :param name: the name of the host in config\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ping API. 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 ping API. 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...
execute ping :param host: the host to ping :param count: the number of pings :return:
"execute ping\n :param host: the host to ping \n :param count: the number of pings\n :return:"
203
false
cloudmesh/cloudmesh-common
ping
15,392
LDU_FT/IntegralDefense/cbinterface/dump_sensor_memory
LDU_FT
[ "<BEGIN>\n## `events_to_json`", "Attempt to build a comprehensive json document for this process.\n Note: This can be problematic for excessivly large processes. ", " :param int segment_limit: Stop building the document after this many process segments.\n :return: A dictionary of process ev...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_sensor_memory 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 dump_sensor_memory 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...
Customized function for dumping sensor memory. :arguments cb_compress: If True, use CarbonBlack's built-in compression. :arguments custom_compress_file: Supply path to lr_tools/compress_file.bat to fork powershell compression :collect_mem_file: If True, wait for memdump + and compression to com...
"Customized function for dumping sensor memory.\n\n :arguments cb_compress: If True, use CarbonBlack's built-in compression.\n :arguments custom_compress_file: Supply path to lr_tools/compress_file.bat to fork powershell compression\n :collect_mem_file: If True, wait for memdump + and compression t...
15
false
IntegralDefense/cbinterface
dump_sensor_memory
15,393
LDU_FT/shaypal5/strct/key_value_nested_generator
LDU_FT
[ "<BEGIN>\n## `find_point_in_section_list`", "Returns the start of the section the given point belongs to.", " The given list is assumed to contain start points of consecutive\n sections, except for the final point, assumed to be the end point of the\n last section. For example, the list [5, 8, 30, 31] ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the key_value_nested_generator 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 key_value_nested_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Recursively iterate over key-value pairs of nested dictionaries. Parameters ---------- dict_obj : dict The outer-most dict to iterate on. Returns ------- generator A generator over key-value pairs in all nested dictionaries. Example ------- >>> dicti = {'a': 1, 'b'...
"Recursively iterate over key-value pairs of nested dictionaries.\n\n Parameters\n ----------\n dict_obj : dict\n The outer-most dict to iterate on.\n\n Returns\n -------\n generator\n A generator over key-value pairs in all nested dictionaries.\n\n Example\n -------\n >>> dicti...
140
false
shaypal5/strct
key_value_nested_generator
15,394
LDU_FT/llazzaro/analyzerdam/quotes
LDU_FT
[ "<BEGIN>\n## `getAll`", "Get all available quote data for the given ticker symbol.\r\n Returns a dictionary.\n<END>", "<BEGIN>\n## `getQuotes`", "Get historical prices for the given ticker symbol.\r\n Date format is 'YYYY-MM-DD'\r", " Returns a nested list.\n<END>", "<BEGIN>\n## `getW...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quotes API. 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 quotes API. 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 historical prices for the given ticker security. Date format is 'YYYYMMDD' Returns a nested list.
"Get historical prices for the given ticker security.\r\n Date format is 'YYYYMMDD'\r\n\r\n Returns a nested list."
22
false
llazzaro/analyzerdam
quotes
15,395
LDU_FT/pip-services3-python/pip-services3-components-python/_read_config
LDU_FT
[ "<BEGIN>\n## `configure`", "Configures component by passing configuration parameters.", " :param config: configuration parameters to be set.\n<END>", "<BEGIN>\n## `can_create`", "Checks if this factory is able to create component by given locator.", " This method searches for all registered ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Reads configuration from a file, parameterize it with given values and returns a new ConfigParams object. :param correlation_id: (optional) transaction id to trace execution through call chain. :param path: a path to configuration file. :param parameters: values to parameters the configuratio...
"Reads configuration from a file, parameterize it with given values and returns a new ConfigParams object.\n\n :param correlation_id: (optional) transaction id to trace execution through call chain.\n\n :param path: a path to configuration file.\n\n :param parameters: values to parameters the confi...
272
false
pip-services3-python/pip-services3-components-python
_read_config
15,396
LDU_FT/devopshq/artifactory/with_suffix
LDU_FT
[ "<BEGIN>\n## `_create_and_update`", "Create or update request, re-read object from Artifactory\n :return: None\n<END>", "<BEGIN>\n## `read`", "Read object from artifactory. Fill object if exist\n :return:\n True if object exist,\n False else\n<END>", "<BEGIN>\n## `_create_json`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_suffix API. 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 with_suffix API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a new path with the file suffix changed (or added, if none).
"Return a new path with the file suffix changed (or added, if none)."
104
false
devopshq/artifactory
with_suffix
15,397
LDU_FT/hermanschaaf/mafan/decode
LDU_FT
[ "<BEGIN>\n## `decode`", "Converts text in the numbering format of pinyin (\"ni3hao3\") to text with the \n appropriate tone marks (\"nǐhǎo\").\n<END>", "<BEGIN>\n## `convert`", "Convert file with crappy encoding to a new proper encoding (or vice versa if you wish).", " filename -- the name, partial pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode API. 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 decode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Converts text in the numbering format of pinyin ("ni3hao3") to text with the appropriate tone marks ("nǐhǎo").
"Converts text in the numbering format of pinyin (\"ni3hao3\") to text with the \n appropriate tone marks (\"nǐhǎo\")."
21
false
hermanschaaf/mafan
decode
15,398
LDU_FT/iamjarret/pystockfish/isready
LDU_FT
[ "<BEGIN>\n## `move`", "Advance game by single move, if possible.", " @return: logical indicator if move was performed.\n<END>", "<BEGIN>\n## `setposition`", "Move list is a list of moves (i.e. ['e2e4', 'e7e5', ...]) each entry as a string. Moves must be in full algebraic notation.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isready API. 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 isready API. 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...
Used to synchronize the python engine object with the back-end engine. Sends 'isready' and waits for 'readyok.'
"Used to synchronize the python engine object with the back-end engine. Sends 'isready' and waits for 'readyok.'"
25
false
iamjarret/pystockfish
isready
15,399
LDU_FT/mishbahr/django-usersettings2/get_usersettings_model
LDU_FT
[ "<BEGIN>\n## `usersettings`", "Returns the current ``UserSettings`` based on\n the SITE_ID in the project's settings as context variables", " If there is no 'usersettings' attribute in the request, fetches the\n current UserSettings (from usersettings.shortcuts.get_current_usersettings).\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_usersettings_model 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_usersettings_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns the ``UserSettings`` model that is active in this project.
"Returns the ``UserSettings`` model that is active in this project."
13
false
mishbahr/django-usersettings2
get_usersettings_model
15,400
LDU_FT/pmacosta/pmisc/_to_scientific_tuple
LDU_FT
[ "<BEGIN>\n## `make_dir`", "Create the directory of a fully qualified file name if it does not exist.", " :param fname: File name\n :type fname: string", " Equivalent to these Bash shell commands:", " .. code-block:: bash", " $ fname=\"${HOME}/mydir/myfile.txt\"\n $ dir=$(dirname...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_scientific_tuple 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 _to_scientific_tuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
r""" Return mantissa and exponent of a number expressed in scientific notation. Full precision is maintained if the number is represented as a string. :param number: Number :type number: integer, float or string :rtype: Tuple whose first item is the mantissa (*string*) and the second ...
"r\"\"\"\n Return mantissa and exponent of a number expressed in scientific notation.\n\n Full precision is maintained if the number is represented as a string.\n\n :param number: Number\n :type number: integer, float or string\n\n :rtype: Tuple whose first item is the mantissa (*string*) and the second...
151
false
pmacosta/pmisc
_to_scientific_tuple
15,401
LDU_FT/paperhive/ansible-ec2-inventory/get_instances_by_region
LDU_FT
[ "<BEGIN>\n## `is_cache_valid`", "Determines if the cache files have expired, or if it is still\n valid\n<END>", "<BEGIN>\n## `read_settings`", "Reads the settings from the ec2.ini file\n<END>", "<BEGIN>\n## `do_api_calls_update_cache`", "Do API calls to each region, and save data in cache files\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_instances_by_region 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_instances_by_region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Makes an AWS EC2 API call to the list of instances in a particular region
"Makes an AWS EC2 API call to the list of instances in a particular\n region"
46
false
paperhive/ansible-ec2-inventory
get_instances_by_region
15,402
LDU_FT/pysal/mapclassify/_fit
LDU_FT
[ "<BEGIN>\n## `quantile`", "Calculates the quantiles for an array", " Parameters\n ----------\n y : array\n (n,1), values to classify\n k : int\n number of quantiles", " Returns\n -------\n q : array\n (n,1), quantile values", " Examples\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fit API. 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 _fit API. 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...
Calculate the total sum of squares for a vector y classified into classes Parameters ---------- y : array (n,1), variable to be classified classes : array (k,1), integer values denoting class membership
"Calculate the total sum of squares for a vector y classified into\n classes\n\n Parameters\n ----------\n y : array\n (n,1), variable to be classified\n\n classes : array\n (k,1), integer values denoting class membership"
87
false
pysal/mapclassify
_fit
15,403
LDU_FT/ocaballeror/LyricFetch/vagalume
LDU_FT
[ "<BEGIN>\n## `load_from_file`", "Load a list of filenames from an external text file.\n<END>", "<BEGIN>\n## `parse_argv`", "Parse command line arguments. Settings will be stored in the global\n variables declared above.\n<END>", "<BEGIN>\n## `exclude_sources`", "Returns a narrower list of sources.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vagalume API. 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 vagalume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the lyrics found in vagalume.com.br for the specified mp3 file or an empty string if not found.
"Returns the lyrics found in vagalume.com.br for the specified mp3 file or\n an empty string if not found."
69
false
ocaballeror/LyricFetch
vagalume
15,404
LDU_FT/idlesign/django-admirarchy/hook_get_results
LDU_FT
[ "<BEGIN>\n## `action_checkbox`", "Renders checkboxes.", " Disable checkbox for parent item navigation link.\n<END>", "<BEGIN>\n## `hierarchy_nav`", "Renders hierarchy navigation elements (folders).\n<END>", "<BEGIN>\n## `get_queryset`", "Constructs a query set.", " :param request:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hook_get_results API. 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 hook_get_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Triggered by `ChangeList.get_results()`.
"Triggered by `ChangeList.get_results()`."
31
false
idlesign/django-admirarchy
hook_get_results
15,405
LDU_FT/cocaine/cocaine-tools/app_pause
LDU_FT
[ "<BEGIN>\n## `reelect_app`", "tries to connect to the same app on differnet host from dist-info\n<END>", "<BEGIN>\n## `expr`", "expr ::= term ((AND | OR) term)*\n term ::= factor ((EQ | NE) factor)*\n factor ::= func | const | LPAREN expr RPAREN\n func ::= lit LPAREN expr (,expr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the app_pause API. 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 app_pause API. 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...
Stop application. This command is alias for ```cocaine-tool app stop```.
"Stop application.\n\n This command is alias for ```cocaine-tool app stop```."
127
false
cocaine/cocaine-tools
app_pause
15,406
LDU_FT/ubernostrum/django-registration/get_email_context
LDU_FT
[ "<BEGIN>\n## `dispatch`", "Check that user signup is allowed before even bothering to\n dispatch or do other processing.\n<END>", "<BEGIN>\n## `get`", "The base activation logic; subclasses should leave this method\n alone and implement activate(), which is called from this\n method.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_email_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_email_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Build the template context used for the activation email.
"Build the template context used for the activation email."
20
false
ubernostrum/django-registration
get_email_context
15,407
LDU_FT/cloudtools/stacker/cf_safe_name
LDU_FT
[ "<BEGIN>\n## `handle`", "Returns the value of a key for a given hook in hook_data.", " Format of value:", " <hook_name>::<key>\n<END>", "<BEGIN>\n## `resolve_variables`", "Given a list of variables, resolve all of them.", " Args:\n variables (list of :class:`stacker.variables...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cf_safe_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 cf_safe_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...
Converts a name to a safe string for a Cloudformation resource. Given a string, returns a name that is safe for use as a CloudFormation Resource. (ie: Only alphanumeric characters)
"Converts a name to a safe string for a Cloudformation resource.\n\n Given a string, returns a name that is safe for use as a CloudFormation\n Resource. (ie: Only alphanumeric characters)"
733
false
cloudtools/stacker
cf_safe_name
15,408
LDU_FT/SuryaSankar/flask-sqlalchemy-booster/todict_using_struct
LDU_FT
[ "<BEGIN>\n## `_isinstance`", "Checks if the specified model instance matches the class model.\n By default this method will raise a `ValueError` if the model is not of\n expected type.", " Args:", " model (Model) : The instance to be type checked", " raise_error (b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the todict_using_struct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the todict_using_struct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
dict_struct: { 'attrs': ['id', 'created_at'], 'rels': { 'merchandise': { 'attrs': ['id', 'label'] } } }
"dict_struct:\n {\n 'attrs': ['id', 'created_at'],\n 'rels': {\n 'merchandise': {\n 'attrs': ['id', 'label']\n }\n }\n }"
177
false
SuryaSankar/flask-sqlalchemy-booster
todict_using_struct
15,409
LDU_FT/joesecurity/jbxapi/server_languages_and_locales
LDU_FT
[ "<BEGIN>\n## `get_version`", "Extract the version number from the code.\n<END>", "<BEGIN>\n## `submit_sample`", "Submit a sample and returns the submission id.", " Parameters:\n sample: The sample to submit. Needs to be a file-like object or a tuple in\n the shap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_languages_and_locales API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_languages_and_locales API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Show the available languages and locales
"Show the available languages and locales"
44
false
joesecurity/jbxapi
server_languages_and_locales
15,410
LDU_FT/jldantas/libmft/get_attr_info
LDU_FT
[ "<BEGIN>\n## `apply_fixup_array`", "This function reads the fixup array and apply the correct values\n to the underlying binary stream. This function changes the bin_view\n in memory.", " Args:\n bin_view (memoryview of bytearray) - The binary stream\n fx_offset (int) - Offset to the fixu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attr_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attr_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 ext...
Gets basic information from a binary stream to allow correct processing of the attribute header. This function allows the interpretation of the Attribute type, attribute length and if the attribute is non resident. Args: binary_view (memoryview of bytearray) - A binary stream with the ...
"Gets basic information from a binary stream to allow correct processing of\n the attribute header.\n\n This function allows the interpretation of the Attribute type, attribute length\n and if the attribute is non resident.\n\n Args:\n binary_view (memoryview of bytearray) - A binary stream with the\...
107
false
jldantas/libmft
get_attr_info
15,411
LDU_FT/mongodb/motor/find_raw_batches
LDU_FT
[ "<BEGIN>\n## `chain_return_value`", "Compatible way to return a value in all Pythons.", " PEP 479, raise StopIteration(value) from a coroutine won't work forever,\n but \"return value\" doesn't work in Python 2. Instead, Motor methods that\n return values resolve a Future with it, and are implemented w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_raw_batches API. 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 find_raw_batches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Query the database and retrieve batches of raw BSON. Similar to the :meth:`find` method but returns each batch as bytes. This example demonstrates how to work with raw batches, but in practice raw batches should be passed to an external library that can decode BSON into another data ty...
"Query the database and retrieve batches of raw BSON.\n\n Similar to the :meth:`find` method but returns each batch as bytes.\n\n This example demonstrates how to work with raw batches, but in practice\n raw batches should be passed to an external library that can decode\n BSON into another ...
133
false
mongodb/motor
find_raw_batches
15,412
LDU_FT/core/uricore/to_dict
LDU_FT
[ "<BEGIN>\n## `iteritems`", "Like :meth:`items` but returns an iterator.\n<END>", "<BEGIN>\n## `iterlists`", "Like :meth:`items` but returns an iterator.\n<END>", "<BEGIN>\n## `to_dict`", "Return the contents as regular dict. If `flat` is `True` the\n returned dict will only have the first item pre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the contents as regular dict. If `flat` is `True` the returned dict will only have the first item present, if `flat` is `False` all values will be returned as lists. :param flat: If set to `False` the dict returned will have lists with all the values in it. Otherwi...
"Return the contents as regular dict. If `flat` is `True` the\n returned dict will only have the first item present, if `flat` is\n `False` all values will be returned as lists.\n\n :param flat: If set to `False` the dict returned will have lists\n with all the values in it. O...
85
false
core/uricore
to_dict
15,413
LDU_FT/hydpy-dev/hydpy/update
LDU_FT
[ "<BEGIN>\n## `xml_replace`", "Read the content of an XML template file (XMLT), apply the given\n `replacements` to its substitution markers, and write the result into\n an XML file with the same name but ending with `xml` instead of `xmlt`.", " First, we write an XMLT file, containing a regular HTML c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Update value based on the actual |calc_qg_v1| method. Required derived parameter: |H| Note that the value of parameter |lstream_derived.QM| is directly related to the value of parameter |HM| and indirectly related to all parameters values relevant for method |calc_qg_v1|. H...
"Update value based on the actual |calc_qg_v1| method.\n\n Required derived parameter:\n |H|\n\n Note that the value of parameter |lstream_derived.QM| is directly\n related to the value of parameter |HM| and indirectly related to\n all parameters values relevant for method |calc_q...
3,847
true
hydpy-dev/hydpy
update
15,414
LDU_FT/ColtonProvias/sqlalchemy-jsonapi/_setup_adapter
LDU_FT
[ "<BEGIN>\n## `user_error`", "Create and return a general user error response that is jsonapi compliant.", " Required args:\n status_code: The HTTP status code associated with the problem.\n title: A short summary of the problem.\n detail: An explanation specific to the occurence of the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_adapter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_adapter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Initialize the serializer and loop through the views to generate them. :param namespace: Prefix for generated endpoints :param route_prefix: Prefix for route patterns
"Initialize the serializer and loop through the views to generate them.\n\n :param namespace: Prefix for generated endpoints\n :param route_prefix: Prefix for route patterns"
95
false
ColtonProvias/sqlalchemy-jsonapi
_setup_adapter
15,415
LDU_FT/hozn/stravalib/get_routes
LDU_FT
[ "<BEGIN>\n## `logged_in`", "Method called by Strava (redirect) that includes parameters.\n - state\n - code\n - error\n<END>", "<BEGIN>\n## `unmarshal`", "Convert the value from parsed JSON structure to native python representation.", " By default this will leave the value as-is since the JS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_routes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_routes API. 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...
Gets the routes list for an authenticated user. http://strava.github.io/api/v3/routes/#list :param athlete_id: id for the :param limit: Max rows to return (default unlimited). :type limit: int :return: An iterator of :class:`stravalib.model.Route` objects. :rtype: :cl...
"Gets the routes list for an authenticated user.\n\n http://strava.github.io/api/v3/routes/#list\n\n :param athlete_id: id for the\n\n :param limit: Max rows to return (default unlimited).\n :type limit: int\n\n :return: An iterator of :class:`stravalib.model.Route` objects.\n ...
367
false
hozn/stravalib
get_routes
15,416
LDU_FT/mgoral/subconvert/convertTime
LDU_FT
[ "<BEGIN>\n## `__parseFormat`", "Actual parser. Please note that time_to is not required to process as not all subtitles\n provide it.\n<END>", "<BEGIN>\n## `createSubtitle`", "Returns a correct 'Subtitle' object from a text given in 'section'. If 'section' cannot\n be parsed, None is returned.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convertTime API. 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 convertTime API. 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...
Convert FrameTime object to properly formatted string that describes subtitle start or end time.
"Convert FrameTime object to properly formatted string that describes subtitle start or\n end time."
50
false
mgoral/subconvert
convertTime
15,417
LDU_FT/pyscaffold/configupdater/add_after
LDU_FT
[ "<BEGIN>\n## `add_before`", "Returns a builder inserting a new block before the current block\n<END>", "<BEGIN>\n## `add_after`", "Returns a builder inserting a new block after the current block\n<END>", "<BEGIN>\n## `comment`", "Creates a comment block", " Args:\n text (str): content ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_after API. 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 add_after API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns a builder inserting a new block after the current block
"Returns a builder inserting a new block after the current block"
78
false
pyscaffold/configupdater
add_after
15,418
LDU_FT/sqlboy/fileseq/getPaddingNum
LDU_FT
[ "<BEGIN>\n## `xfrange`", "Returns a generator that yields the frames from start to stop, inclusive.\n In other words it adds or subtracts a frame, as necessary, to return the\n stop value as well, if the stepped range would touch that value.", " Args:\n start (int):\n stop (int):\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPaddingNum API. 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 getPaddingNum API. 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 supported group of padding characters, return the amount of padding. Args: chars (str): a supported group of padding characters Returns: int: Raises: ValueError: if unsupported padding character is detected
"Given a supported group of padding characters, return the amount of padding.\n\n Args:\n chars (str): a supported group of padding characters\n\n Returns:\n int:\n\n Raises:\n ValueError: if unsupported padding character is detected"
146
false
sqlboy/fileseq
getPaddingNum
15,419
LDU_FT/josuebrunel/myql/get_news_feed
LDU_FT
[ "<BEGIN>\n## `get_current_info`", "get_current_info() uses the yahoo.finance.quotes datatable to get all of the stock information presented in the main table on a typical stock page \n and a bunch of data from the key statistics page.\n<END>", "<BEGIN>\n## `get_news_feed`", "get_news_feed() uses the rs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_news_feed API. 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_news_feed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
get_news_feed() uses the rss data table to get rss feeds under the Headlines and Financial Blogs headings on a typical stock page.
"get_news_feed() uses the rss data table to get rss feeds under the Headlines and Financial Blogs headings on a typical stock page."
44
false
josuebrunel/myql
get_news_feed
15,420
LDU_FT/noahmorrison/chevron/render
LDU_FT
[ "<BEGIN>\n## `l_sa_check`", "Do a preliminary check to see if a tag could be a standalone\n<END>", "<BEGIN>\n## `r_sa_check`", "Do a final checkto see if a tag could be a standalone\n<END>", "<BEGIN>\n## `tokenize`", "Tokenize a mustache template", " Tokenizes a mustache template in a generator fashi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Render a mustache template. Renders a mustache template with a data scope and partial capability. Given the file structure... ╷ ├─╼ main.py ├─╼ main.ms └─┮ partials └── part.ms then main.py would make the following call: render(open('main.ms', 'r'), {...}, 'partials', 'ms') ...
"Render a mustache template.\n\n Renders a mustache template with a data scope and partial capability.\n Given the file structure...\n ╷\n ├─╼ main.py\n ├─╼ main.ms\n └─┮ partials\n └── part.ms\n\n then main.py would make the following call:\n\n render(open('main.ms', 'r'), {...}, 'partials...
35
false
noahmorrison/chevron
render
15,421
LDU_FT/LasLabs/python-helpscout/post
LDU_FT
[ "<BEGIN>\n## `create`", "Create an object on HelpScout.", " Args:\n session (requests.sessions.Session): Authenticated session.\n record (helpscout.BaseModel): The record to be created.\n endpoint_override (str, optional): Override the default\n endpoint us...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. 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 post API. 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 a POST request and return the JSON decoded result. Args: json (dict, optional): Object to encode and send in request. Returns: mixed: JSON decoded response data.
"Send a POST request and return the JSON decoded result.\n\n Args:\n json (dict, optional): Object to encode and send in request.\n\n Returns:\n mixed: JSON decoded response data."
178
false
LasLabs/python-helpscout
post
15,422
LDU_FT/riptano/ccm/start
LDU_FT
[ "<BEGIN>\n## `actively_watch_logs_for_error`", "Begins a thread that repeatedly scans system.log for new errors, every interval seconds.\n (The first pass covers the entire log contents written at that point,\n subsequent scans cover newly appended log messages).", " Reports new errors, by ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Start the node. Options includes: - join_ring: if false, start the node with -Dcassandra.join_ring=False - no_wait: by default, this method returns when the node is started and listening to clients. If no_wait=True, the method returns sooner. - wait_other_notice: if truthy, thi...
"Start the node. Options includes:\n - join_ring: if false, start the node with -Dcassandra.join_ring=False\n - no_wait: by default, this method returns when the node is started and listening to clients.\n If no_wait=True, the method returns sooner.\n - wait_other_notice: if truthy...
108
false
riptano/ccm
start
15,423
LDU_FT/joowani/quadriga/get_deposit_address
LDU_FT
[ "<BEGIN>\n## `_validate_order_book`", "Check if the given order book is valid.", " :param book: Order book name.\n :type book: str | unicode\n :raise InvalidOrderBookError: If an invalid order book is given.\n<END>", "<BEGIN>\n## `_validate_currency`", "Check if the given order book is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deposit_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deposit_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return the deposit address for the given major currency. :param currency: Major currency name in lowercase (e.g. "btc", "eth"). :type currency: str | unicode :return: Deposit address. :rtype: str | unicode
"Return the deposit address for the given major currency.\n\n :param currency: Major currency name in lowercase (e.g. \"btc\", \"eth\").\n :type currency: str | unicode\n :return: Deposit address.\n :rtype: str | unicode"
58
false
joowani/quadriga
get_deposit_address
15,424
LDU_FT/albert12132/templar/process_links
LDU_FT
[ "<BEGIN>\n## `applies`", "Checks if this rule applies to the given src and dst paths, based on the src pattern and\n dst pattern given in the constructor.", " If src pattern was None, this rule will apply to any given src path (same for dst).\n<END>", "<BEGIN>\n## `link`", "Links the content f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 ext...
Process a string of content for include tags. This function assumes there are no blocks in the content. The content is split into segments, with include tags being replaced by Block objects. PARAMETERS: content -- str; content to be converted into a Block. block_map -- BlockMap link_stac...
"Process a string of content for include tags.\n\n This function assumes there are no blocks in the content. The content is split into segments,\n with include tags being replaced by Block objects.\n\n PARAMETERS:\n content -- str; content to be converted into a Block.\n block_map -- BlockMap\n ...
130
false
albert12132/templar
process_links
15,425
LDU_FT/klen/python-scss/set_var
LDU_FT
[ "<BEGIN>\n## `unknown`", "Unknow scss function handler.\n Simple return 'funcname(args)'\n<END>", "<BEGIN>\n## `_rgba`", "Converts an rgba(red, green, blue, alpha) quadruplet into a color.\n<END>", "<BEGIN>\n## `_invert`", "Returns the inverse (negative) of a color.\n The red, green, and blu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_var API. 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 set_var API. 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...
Set variable to global stylesheet context.
"Set variable to global stylesheet context."
14
false
klen/python-scss
set_var
15,426
LDU_FT/robertmartin8/PyPortfolioOpt/min_cvar
LDU_FT
[ "<BEGIN>\n## `negative_sharpe`", "Calculate the negative Sharpe ratio of a portfolio", " :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param expected_returns: expected return of each asset\n :type expected_returns: pd.Series\n :param cov_matrix: the covariance matr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the min_cvar API. 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 min_cvar API. 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...
Find the portfolio weights that minimises the CVaR, via Monte Carlo sampling from the return distribution. :param s: number of bootstrap draws, defaults to 10000 :type s: int, optional :param beta: "significance level" (i. 1 - q), defaults to 0.95 :type beta: float, optional ...
"Find the portfolio weights that minimises the CVaR, via\n Monte Carlo sampling from the return distribution.\n\n :param s: number of bootstrap draws, defaults to 10000\n :type s: int, optional\n :param beta: \"significance level\" (i. 1 - q), defaults to 0.95\n :type beta: float, opt...
90
false
robertmartin8/PyPortfolioOpt
min_cvar
15,427
LDU_FT/Robpol86/terminaltables/visible_width
LDU_FT
[ "<BEGIN>\n## `combine`", "Zip borders between items in `line`.", " e.g. ('l', '1', 'c', '2', 'c', '3', 'r')", " :param iter line: List to iterate.\n :param left: Left border.\n :param intersect: Column separator.\n :param right: Right border.", " :return: Yields combined objects.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visible_width API. 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 visible_width API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get the visible width of a unicode string. Some CJK unicode characters are more than one byte unlike ASCII and latin unicode characters. From: https://github.com/Robpol86/terminaltables/pull/9 :param str string: String to measure. :return: String's width. :rtype: int
"Get the visible width of a unicode string.\n\n Some CJK unicode characters are more than one byte unlike ASCII and latin unicode characters.\n\n From: https://github.com/Robpol86/terminaltables/pull/9\n\n :param str string: String to measure.\n\n :return: String's width.\n :rtype: int"
88
false
Robpol86/terminaltables
visible_width
15,428
LDU_FT/mediawiki-utilities/python-mwreverts/check_deleted
LDU_FT
[ "<BEGIN>\n## `revdocs2reverts`", "Converts a sequence of page-partitioned revision documents into a sequence\n of reverts.", " :Params:\n rev_docs : `iterable` ( `dict` )\n a page-partitioned sequence of revision documents\n radius : `int`\n The maximum number of revisi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_deleted API. 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 check_deleted API. 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...
Checks the revert status of a deleted revision. With this method, you can determine whether an edit is a 'reverting' edit, was 'reverted' by another edit and/or was 'reverted_to' by another edit. :Parameters: session : :class:`mwapi.Session` An API session to make use of rev_id...
"Checks the revert status of a deleted revision. With this method, you can\n determine whether an edit is a 'reverting' edit, was 'reverted' by another\n edit and/or was 'reverted_to' by another edit.\n\n :Parameters:\n session : :class:`mwapi.Session`\n An API session to make use of\n ...
47
false
mediawiki-utilities/python-mwreverts
check_deleted
15,429
LDU_FT/sci-bots/serial-device/_serial_send
LDU_FT
[ "<BEGIN>\n## `_comports`", "Returns\n -------\n pandas.DataFrame\n Table containing descriptor, and hardware ID of each available COM\n port, indexed by port (e.g., \"COM4\").\n<END>", "<BEGIN>\n## `comports`", ".. versionchanged:: 0.9\n Add :data:`check_available` keyword argument ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serial_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serial_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 extr...
Send data to connected device. Parameters ---------- port : str Device name/port. payload : bytes Payload to send to device.
"Send data to connected device.\n\n Parameters\n ----------\n port : str\n Device name/port.\n payload : bytes\n Payload to send to device."
63
false
sci-bots/serial-device
_serial_send
15,430
LDU_FT/mcs07/ChemDataExtractor/_get_features
LDU_FT
[ "<BEGIN>\n## `train_punkt`", "Train Punkt sentence splitter using sentences in input.\n<END>", "<BEGIN>\n## `sentences`", "Read input document, and output sentences.\n<END>", "<BEGIN>\n## `_in_stoplist`", "Return True if the entity is in the stoplist.\n<END>", "<BEGIN>\n## `tag`", "Run individual chem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_features API. 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_features API. 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...
Map tokens into a feature representation.
"Map tokens into a feature representation."
243
false
mcs07/ChemDataExtractor
_get_features
15,431
LDU_FT/shazow/unstdlib.py/get_cache_buster
LDU_FT
[ "<BEGIN>\n## `convert_exception`", "Decorator: Catch exception ``from_exception`` and instead raise ``to_exception(*to_args, **to_kw)``.", " Useful when modules you're using in a method throw their own errors that you want to\n convert to your own exceptions that you handle higher in the stack.", " E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_buster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_buster API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return a string that can be used as a parameter for cache-busting URLs for this asset. :param src_path: Filesystem path to the file we're generating a cache-busting value for. :param method: Method for cache-busting. Supported values: importtime, mtime, md5 The default is 'importti...
"Return a string that can be used as a parameter for cache-busting URLs\n for this asset.\n\n :param src_path:\n Filesystem path to the file we're generating a cache-busting value for.\n\n :param method:\n Method for cache-busting. Supported values: importtime, mtime, md5\n The default is ...
187
false
shazow/unstdlib.py
get_cache_buster
15,432
LDU_FT/robdmc/behold/show
LDU_FT
[ "<BEGIN>\n## `get_version`", "Obtain the packge version from a python file e.g. pkg/__init__.py\n See <https://packaging.python.org/en/latest/single_source_version.html>.\n<END>", "<BEGIN>\n## `when`", ":type bools: bool\n :param bools: Boolean arguments", " All boolean arguments passed to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show API. 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 show API. 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...
:type values: str arguments :param values: A list of variable or attribute names you want to print. At most one argument can be something other than a string. Strings are interpreted as the variable/attribute names you want to print. If a sin...
":type values: str arguments\n :param values: A list of variable or attribute names you want to print.\n At most one argument can be something other than a\n string. Strings are interpreted as the\n variable/attribute names you want to print. If ...
49
false
robdmc/behold
show
15,433
LDU_FT/shmir/PyTrafficGenerator/get_objects_by_type_in_subtree
LDU_FT
[ "<BEGIN>\n## `new_log_file`", "Create new logger and log file from existing logger.", " The new logger will be create in the same directory as the existing logger file and will be named\n as the existing log file with the requested suffix.", " :param logger: existing logger\n :param suffix: string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects_by_type_in_subtree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_objects_by_type_in_subtree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
:param types: requested object types. :return: all children of the specified types.
":param types: requested object types.\n :return: all children of the specified types."
50
false
shmir/PyTrafficGenerator
get_objects_by_type_in_subtree
15,434
LDU_FT/aleontiev/dj/get_context
LDU_FT
[ "<BEGIN>\n## `parse_application_name`", "Parse a setup.py file for the name.", " Returns:\n name, or None\n<END>", "<BEGIN>\n## `build`", "Builds the app in the app's environment.", " Only builds if the build is out-of-date and is non-empty.\n Builds in 3 stages: requiremen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Generate a command with given name. The command can be run immediately after generation. For example: dj generate command bar dj run manage.py bar
"Generate a command with given name.\n The command can be run immediately after generation.\n\n For example:\n\n dj generate command bar\n\n dj run manage.py bar"
44
false
aleontiev/dj
get_context
15,435
LDU_FT/miguelgrinberg/climax/_subcommand
LDU_FT
[ "<BEGIN>\n## `command`", "Decorator to define a command.", " The arguments to this decorator are those of the\n `ArgumentParser <https://docs.python.org/3/library/argparse.html\\\n#argumentparser-objects>`_\n object constructor.\n<END>", "<BEGIN>\n## `_subcommand`", "Decorator to define a subcomman...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _subcommand API. 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 _subcommand API. 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...
Decorator to define a subcommand. This decorator is used for the group's @command decorator.
"Decorator to define a subcommand.\n\n This decorator is used for the group's @command decorator."
18
false
miguelgrinberg/climax
_subcommand
15,436
LDU_FT/pyviz/holoviews/get_dimension_type
LDU_FT
[ "<BEGIN>\n## `initialize_plot`", "Initializes a new plot object with the last available frame.\n<END>", "<BEGIN>\n## `_get_axis_dims`", "Returns the dimensions corresponding to each axis.", " Should return a list of dimensions or list of lists of\n dimensions, which will be formatted to label ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dimension_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dimension_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. Th...
Get the type of the requested dimension. Type is determined by Dimension.type attribute or common type of the dimension values, otherwise None. Args: dimension: Dimension to look up by name or by index Returns: Declared type of values along the dimension
"Get the type of the requested dimension.\n\n Type is determined by Dimension.type attribute or common\n type of the dimension values, otherwise None.\n\n Args:\n dimension: Dimension to look up by name or by index\n\n Returns:\n Declared type of values along the dimens...
1,961
true
pyviz/holoviews
get_dimension_type
15,437
LDU_FT/MycroftAI/mycroft-precise/vectorize_inhibit
LDU_FT
[ "<BEGIN>\n## `load_precise_model`", "Loads a Keras model from file, handling custom loss function\n<END>", "<BEGIN>\n## `create_model`", "Load or create a precise model", " Args:\n model_name: Name of model\n params: Parameters used to create the model", " Returns:\n model: Load...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vectorize_inhibit API. 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 vectorize_inhibit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns an array of inputs generated from the wake word audio that shouldn't cause an activation
"Returns an array of inputs generated from the\n wake word audio that shouldn't cause an activation"
79
false
MycroftAI/mycroft-precise
vectorize_inhibit
15,438
LDU_FT/aio-libs/aiodocker/inspect
LDU_FT
[ "<BEGIN>\n## `inspect`", "Return low-level information about an image", " Args:\n name: name of the image\n<END>", "<BEGIN>\n## `pull`", "Similar to `docker pull`, pull an image locally", " Args:\n fromImage: name of the image to pull\n repo: repository name ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inspect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inspect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return info about a task Args: task_id: is ID of the task
"Return info about a task\n\n Args:\n task_id: is ID of the task"
108
false
aio-libs/aiodocker
inspect
15,439
LDU_FT/sdispater/orator/process_insert_get_id
LDU_FT
[ "<BEGIN>\n## `construct`", "Create a new factory container.", " :param faker: A faker generator instance\n :type faker: faker.Generator", " :param path_to_factories: The path to factories\n :type path_to_factories: str", " :rtype: Factory\n<END>", "<BEGIN>\n## `define`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_insert_get_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_insert_get_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. ...
Process an "insert get ID" query. :param query: A QueryBuilder instance :type query: QueryBuilder :param sql: The sql query to execute :type sql: str :param values: The value bindings :type values: list :param sequence: The ids sequence :type sequence:...
"Process an \"insert get ID\" query.\n\n :param query: A QueryBuilder instance\n :type query: QueryBuilder\n\n :param sql: The sql query to execute\n :type sql: str\n\n :param values: The value bindings\n :type values: list\n\n :param sequence: The ids sequence\n ...
1,212
true
sdispater/orator
process_insert_get_id
15,440
LDU_FT/dhocker/udmx-pyusb/main
LDU_FT
[ "<BEGIN>\n## `add_values`", "Adds an alias with list of values to the channel/value dictionary.\n<END>", "<BEGIN>\n## `are_valid_values`", "Determines if a list of values are valid DMX values (0-255).\n<END>", "<BEGIN>\n## `load_rc_file`", "Load the contents of the resource file ~/.uDMXrc\n<END>", "<BEG...
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...
How to control a DMX light through an Anyma USB controller
"How to control a DMX light through an Anyma USB controller"
22
false
dhocker/udmx-pyusb
main
15,441
LDU_FT/tdegeus/GooseMPL/histogram_bin_edges_minwidth
LDU_FT
[ "<BEGIN>\n## `find_latex_font_serif`", "r'''\nFind an available font to mimic LaTeX, and return its name.\n<END>", "<BEGIN>\n## `copy_style`", "r'''\nWrite all goose-styles to the relevant matplotlib configuration directory.\n<END>", "<BEGIN>\n## `set_decade_lims`", "r'''\nSet limits the the floor/ceil va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram_bin_edges_minwidth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram_bin_edges_minwidth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
r''' Merge bins with right-neighbour until each bin has a minimum width. :arguments: **bins** (``<array_like>``) The bin-edges. **min_width** (``<float>``) The minimum bin width.
"r'''\nMerge bins with right-neighbour until each bin has a minimum width.\n\n:arguments:\n\n **bins** (``<array_like>``)\n The bin-edges.\n\n **min_width** (``<float>``)\n The minimum bin width."
159
false
tdegeus/GooseMPL
histogram_bin_edges_minwidth
15,442
LDU_FT/bkircher/python-rpm-spec/replace_macros
LDU_FT
[ "<BEGIN>\n## `replace_macros`", "Replace all macros in given string with corresponding values.", " For example: a string '%{name}-%{version}.tar.gz' will be transformed to 'foo-2.0.tar.gz'.", " :param string A string containing macros that you want to be replaced\n :param spec An optional spec file. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_macros API. 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 replace_macros API. 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...
Replace all macros in given string with corresponding values. For example: a string '%{name}-%{version}.tar.gz' will be transformed to 'foo-2.0.tar.gz'. :param string A string containing macros that you want to be replaced :param spec An optional spec file. If given, definitions in that spec file will...
"Replace all macros in given string with corresponding values.\n\n For example: a string '%{name}-%{version}.tar.gz' will be transformed to 'foo-2.0.tar.gz'.\n\n :param string A string containing macros that you want to be replaced\n :param spec An optional spec file. If given, definitions in that spec\n fi...
18
false
bkircher/python-rpm-spec
replace_macros
15,443
LDU_FT/Loudr/pale/doc_dict
LDU_FT
[ "<BEGIN>\n## `py_doc_trim`", "Trim a python doc string.", " This example is nipped from https://www.python.org/dev/peps/pep-0257/,\n which describes how to conventionally format and trim docstrings.", " It has been modified to replace single newlines with a space, but leave\n multiple consecutive ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doc_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doc_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the documentation dictionary for this argument.
"Returns the documentation dictionary for this argument."
107
false
Loudr/pale
doc_dict
15,444
LDU_FT/vbwagner/ctypescrypto/certs
LDU_FT
[ "<BEGIN>\n## `digest`", "Method digest is redefined to return keyed MAC value instead of\n just digest.\n<END>", "<BEGIN>\n## `bytes`", "Returns num bytes of cryptographically strong pseudo-random\n bytes. If checkc_result is True, raises error if PRNG is not\n seeded enough\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the certs API. 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 certs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
List of the certificates contained in the structure
"List of the certificates contained in the structure"
119
false
vbwagner/ctypescrypto
certs
15,445
LDU_FT/dwavesystems/penaltymodel/_decode_quadratic_biases
LDU_FT
[ "<BEGIN>\n## `get_penalty_model`", "Factory function for penaltymodel_maxgap.", " Args:\n specification (penaltymodel.Specification): The specification\n for the desired penalty model.", " Returns:\n :class:`penaltymodel.PenaltyModel`: Penalty model with the given specification....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode_quadratic_biases 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 _decode_quadratic_biases API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Inverse of _serialize_quadratic_biases Args: quadratic_string (str) : base 64 encoded string of little endian 8 byte floats, one for each of the edges. edgelist (list): a list of edges of the form [(node1, node2), ...]. Returns: dict: J. A dict of the form {edge1: bias1, .....
"Inverse of _serialize_quadratic_biases\n\n Args:\n quadratic_string (str) : base 64 encoded string of little\n endian 8 byte floats, one for each of the edges.\n edgelist (list): a list of edges of the form [(node1, node2), ...].\n\n Returns:\n dict: J. A dict of the form {edge1: ...
186
false
dwavesystems/penaltymodel
_decode_quadratic_biases
15,446
LDU_FT/benoitkugler/abstractDataLibrary/_load_users
LDU_FT
[ "<BEGIN>\n## `recherche`", "abstractSearch in fields of collection and reset rendering.\n Returns number of results.\n If in_all is True, call get_all before doing the search.\n<END>", "<BEGIN>\n## `launch_background_job`", "Launch the callable job in background thread.\n Succes or failur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_users API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_users API. 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...
Default implentation requires users from DB. Should setup `users` attribute
"Default implentation requires users from DB.\n Should setup `users` attribute"
131
false
benoitkugler/abstractDataLibrary
_load_users
15,447
LDU_FT/Esri/ArcREST/addRasters
LDU_FT
[ "<BEGIN>\n## `trace`", "trace finds the line, the filename\n and error message and returns it\n to the user\n<END>", "<BEGIN>\n## `merge_dicts`", "Merge a list of dictionaries.", " Args:\n dicts (list): a list of dictionary objects\n op (operator): an operator item used to mer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addRasters API. 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 addRasters API. 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...
This operation is supported at 10.1 and later. The Add Rasters operation is performed on an image service resource. The Add Rasters operation adds new rasters to an image service (POST only). The added rasters can either be uploaded items, using the itemIds parameter, or publishe...
"This operation is supported at 10.1 and later.\n The Add Rasters operation is performed on an image service resource.\n The Add Rasters operation adds new rasters to an image service\n (POST only).\n The added rasters can either be uploaded items, using the itemIds\n parameter, or pu...
1,240
true
Esri/ArcREST
addRasters
15,448
LDU_FT/LuqueDaniel/pybooru/forum_topic_undelete
LDU_FT
[ "<BEGIN>\n## `post_update`", "Update a specific post (Requires login).", " Parameters:\n post_id (int): The id number of the post to update.\n tag_string (str): A space delimited list of tags.\n rating (str): The rating for the post. Can be: safe, questionable,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forum_topic_undelete 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 forum_topic_undelete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Un delete a topic (Login requries) (Moderator+) (UNTESTED). Parameters: topic_id (int): Where topic_id is the topic id.
"Un delete a topic (Login requries) (Moderator+) (UNTESTED).\n\n Parameters:\n topic_id (int): Where topic_id is the topic id."
299
false
LuqueDaniel/pybooru
forum_topic_undelete
15,449
LDU_FT/deginner/mq-client/close_connection
LDU_FT
[ "<BEGIN>\n## `_on_message`", "Invoked by pika when a message is delivered from RabbitMQ. The\n channel is passed for your convenience. The basic_deliver object that\n is passed in carries the exchange, routing key, delivery tag and\n a redelivered flag for the message. The properties passed in is an\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This method closes the connection to RabbitMQ.
"This method closes the connection to RabbitMQ."
61
false
deginner/mq-client
close_connection
15,450
LDU_FT/Esri/ArcREST/findAddressCandidates
LDU_FT
[ "<BEGIN>\n## `trace`", "trace finds the line, the filename\n and error message and returns it\n to the user\n<END>", "<BEGIN>\n## `merge_dicts`", "Merge a list of dictionaries.", " Args:\n dicts (list): a list of dictionary objects\n op (operator): an operator item used to mer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findAddressCandidates 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 findAddressCandidates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
The findAddressCandidates operation is performed on a geocode service resource. The result of this operation is a resource representing the list of address candidates. This resource provides information about candidates, including the address, location, and match score. Locators publishe...
"The findAddressCandidates operation is performed on a geocode\n service resource. The result of this operation is a resource\n representing the list of address candidates. This resource provides\n information about candidates, including the address, location, and\n match score. Locators pub...
1,240
true
Esri/ArcREST
findAddressCandidates
15,451
LDU_FT/FlorianRhiem/pyGLFW/create_window
LDU_FT
[ "<BEGIN>\n## `_find_library_candidates`", "Finds and returns filenames which might be the library you are looking for.\n<END>", "<BEGIN>\n## `_load_library`", "Finds, loads and returns the most recent version of the library.\n<END>", "<BEGIN>\n## `_get_library_search_paths`", "Returns a list of library se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_window API. 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 create_window API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates a window and its associated context. Wrapper for: GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share);
"Creates a window and its associated context.\n\n Wrapper for:\n GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share);"
105
false
FlorianRhiem/pyGLFW
create_window
15,452
LDU_FT/kalefranz/auxlib/unset_env
LDU_FT
[ "<BEGIN>\n## `import_and_wrap_deprecated`", "Usage:\n import_and_wrap_deprecated('conda.common.connection', locals())\n # looks for conda.common.connection.__all__\n<END>", "<BEGIN>\n## `deprecate_module_with_proxy`", "Usage:\n deprecate_module_with_proxy(__name__, locals()) # at bottom ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unset_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. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unset_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. The extract...
Removes an environment variable using the prepended app_name convention with `key`.
"Removes an environment variable using the prepended app_name convention with `key`."
107
false
kalefranz/auxlib
unset_env
15,453
LDU_FT/charnley/rmsd/quaternion_rotate
LDU_FT
[ "<BEGIN>\n## `rmsd`", "Calculate Root-mean-square deviation from two sets of vectors V and W.", " Parameters\n ----------\n V : array\n (N,D) matrix, where N is points and D is dimension.\n W : array\n (N,D) matrix, where N is points and D is dimension.", " Returns\n -------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quaternion_rotate API. 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 quaternion_rotate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Calculate the rotation Parameters ---------- X : array (N,D) matrix, where N is points and D is dimension. Y: array (N,D) matrix, where N is points and D is dimension. Returns ------- rot : matrix Rotation matrix (D,D)
"Calculate the rotation\n\n Parameters\n ----------\n X : array\n (N,D) matrix, where N is points and D is dimension.\n Y: array\n (N,D) matrix, where N is points and D is dimension.\n\n Returns\n -------\n rot : matrix\n Rotation matrix (D,D)"
66
false
charnley/rmsd
quaternion_rotate
15,454
LDU_FT/networks-lab/metaknowledge/reverseDict
LDU_FT
[ "<BEGIN>\n## `readGraph`", "Reads the files given by _edgeList_ and _nodeList_ and creates a networkx graph for the files.", " This is designed only for the files produced by metaknowledge and is meant to be the reverse of [writeGraph()](#metaknowledge.graphHelpers.writeGraph), if this does not produce the d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverseDict API. 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 reverseDict API. 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...
Helper for generating fullToTag Makes dict of value to key
"Helper for generating fullToTag\n Makes dict of value to key"
1,149
true
networks-lab/metaknowledge
reverseDict
15,455
LDU_FT/Netflix-Skunkworks/historical/decimal_default
LDU_FT
[ "<BEGIN>\n## `handler`", "Historical security group event differ.", " Listens to the Historical current table and determines if there are differences that need to be persisted in the\n historical record.\n<END>", "<BEGIN>\n## `serialize`", "Serializes the JSON for the Polling Event Model.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decimal_default API. 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 decimal_default API. 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...
Properly parse out the Decimal datatypes into proper int/float types.
"Properly parse out the Decimal datatypes into proper int/float types."
146
false
Netflix-Skunkworks/historical
decimal_default
15,456
LDU_FT/gamechanger/schemer/_verify_field_spec
LDU_FT
[ "<BEGIN>\n## `Mixed`", "Mixed type, used to indicate a field in a schema can be\n one of many types. Use as a last resort only.\n The Mixed type can be used directly as a class to indicate\n any type is permitted for a given field:\n `\"my_field\": {\"type\": Mixed}`\n It can also be instantiated w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _verify_field_spec 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 _verify_field_spec 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...
Verifies a given field specification is valid, recursing into nested schemas if required.
"Verifies a given field specification is valid, recursing into nested schemas if required."
48
false
gamechanger/schemer
_verify_field_spec
15,457
LDU_FT/tBaxter/tango-comments/security_errors
LDU_FT
[ "<BEGIN>\n## `next_redirect`", "Handle the \"where should I go next?\" part of comment views.", " The next value could be a\n ``?next=...`` GET arg or the URL of a given view (``fallback``). See\n the view modules for examples.", " Returns an ``HttpResponseRedirect``.\n<END>", "<BEGIN>\n## `conf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the security_errors API. 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 security_errors API. 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...
Return just those errors associated with security
"Return just those errors associated with security"
66
false
tBaxter/tango-comments
security_errors
15,458
LDU_FT/rraadd88/rohan/annot_heatmap
LDU_FT
[ "<BEGIN>\n## `dqueries2queriessam`", "Aligns queries to genome and gets SAM file\n step#1", " :param cfg: configuration dict\n :param dqueries: dataframe of queries\n<END>", "<BEGIN>\n## `queriessam2dalignbed`", "Processes SAM file to get the genomic coordinates in BED format\n step#2", " :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the annot_heatmap API. 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 annot_heatmap API. 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...
kws_text={'marker','s','linewidth','facecolors','edgecolors'}
"kws_text={'marker','s','linewidth','facecolors','edgecolors'}"
124
false
rraadd88/rohan
annot_heatmap
15,459
LDU_FT/WojciechMula/canvas2svg/convert
LDU_FT
[ "<BEGIN>\n## `convert`", "Convert 'items' stored in 'canvas' to SVG 'document'.\n\tIf 'items' is None, then all items are convered.", "\ttounicode is a function that get text and returns\n\tit's unicode representation. It should be used when\n\tnational characters are used on canvas.", "\tReturn list of XML e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert 'items' stored in 'canvas' to SVG 'document'. If 'items' is None, then all items are convered. tounicode is a function that get text and returns it's unicode representation. It should be used when national characters are used on canvas. Return list of XML elements
"Convert 'items' stored in 'canvas' to SVG 'document'.\n\tIf 'items' is None, then all items are convered.\n\n\ttounicode is a function that get text and returns\n\tit's unicode representation. It should be used when\n\tnational characters are used on canvas.\n\n\tReturn list of XML elements"
14
false
WojciechMula/canvas2svg
convert
15,460
LDU_FT/RaRe-Technologies/gensim-simserver/train
LDU_FT
[ "<BEGIN>\n## `merge_sims`", "Merge two precomputed similarity lists, truncating the result to `clip` most similar items.\n<END>", "<BEGIN>\n## `terminate`", "Delete all files created by this index, invalidating `self`. Use with care.\n<END>", "<BEGIN>\n## `index_documents`", "Update fresh index with new d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the train API. 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 train API. 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...
Create an indexing model. Will overwrite the model if it already exists. All indexes become invalid, because documents in them use a now-obsolete representation. The model is trained on documents previously entered via `buffer`, or directly on `corpus`, if specified.
"Create an indexing model. Will overwrite the model if it already exists.\n All indexes become invalid, because documents in them use a now-obsolete\n representation.\n\n The model is trained on documents previously entered via `buffer`,\n or directly on `corpus`, if specified."
74
false
RaRe-Technologies/gensim-simserver
train
15,461
LDU_FT/markuskiller/textblob-de/classify
LDU_FT
[ "<BEGIN>\n## `definite_article`", "Returns the definite article (der/die/das/die) for a given word.\n<END>", "<BEGIN>\n## `indefinite_article`", "Returns the indefinite article (ein) for a given word.\n<END>", "<BEGIN>\n## `article`", "Returns the indefinite (ein) or definite (der/die/das/die) article for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the classify API. 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 classify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the (most recently added) semantic type for the given term ("many" => "quantity"). If the term is not in the dictionary, try Taxonomy.classifiers.
"Returns the (most recently added) semantic type for the given term (\"many\" => \"quantity\").\n If the term is not in the dictionary, try Taxonomy.classifiers."
407
false
markuskiller/textblob-de
classify
15,462
LDU_FT/yougov/vr.common/clean_slug_dir
LDU_FT
[ "<BEGIN>\n## `str_to_pool`", "Given a string containing an nginx upstream section, return the pool name\n and list of nodes.\n<END>", "<BEGIN>\n## `get_buildfile_path`", "Path to which a build tarball should be downloaded.\n<END>", "<BEGIN>\n## `_retry`", "Try to call f(*args, **kwargs) \"n\" times bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_slug_dir API. 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 clean_slug_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Given a path, delete anything specified in .slugignore.
"Given a path, delete anything specified in .slugignore."
49
false
yougov/vr.common
clean_slug_dir
15,463
LDU_FT/InQuest/python-sandboxapi/analyze
LDU_FT
[ "<BEGIN>\n## `_request`", "Robustness wrapper. Tries up to 3 times to dance with the Sandbox API.", " :type uri: str\n :param uri: URI to append to base_url.\n :type params: dict\n :param params: Optional parameters for API.\n :type files: dict\n :param f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze API. 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 analyze API. 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...
Submit a file for analysis. :type handle: File handle :param handle: Handle to file to upload for analysis. :type filename: str :param filename: File name. :rtype: str :return: Task ID as a string
"Submit a file for analysis.\n\n :type handle: File handle\n :param handle: Handle to file to upload for analysis.\n :type filename: str\n :param filename: File name.\n\n :rtype: str\n :return: Task ID as a string"
93
false
InQuest/python-sandboxapi
analyze
15,464
LDU_FT/ihgazni2/edict/brkl2d
LDU_FT
[ "<BEGIN>\n## `pipe_shell_cmds`", "shell_CMDs = {}\n shell_CMDs[1] = 'netstat -n'\n shell_CMDs[2] = \"awk {'print $6'}\"\n<END>", "<BEGIN>\n## `_reorder_via_klist`", "d = {'scheme': 'http', 'path': '/index.php', 'params': 'params', 'query': 'username=query', 'fragment': 'frag', 'username': '', 'p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the brkl2d API. 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 brkl2d API. 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 ...
arr = ["color1","r1","g1","b1","a1","color2","r2","g2","b2","a2"] >>> brkl2d(arr,5) [{'color1': ['r1', 'g1', 'b1', 'a1']}, {'color2': ['r2', 'g2', 'b2', 'a2']}]
"arr = [\"color1\",\"r1\",\"g1\",\"b1\",\"a1\",\"color2\",\"r2\",\"g2\",\"b2\",\"a2\"]\n >>> brkl2d(arr,5)\n [{'color1': ['r1', 'g1', 'b1', 'a1']}, {'color2': ['r2', 'g2', 'b2', 'a2']}]"
71
false
ihgazni2/edict
brkl2d
15,465
LDU_FT/Vito2015/pyextend/add_handler
LDU_FT
[ "<BEGIN>\n## `haversine`", "Compute km by geo-coordinates\n See also: haversine define https://en.wikipedia.org/wiki/Haversine_formula\n<END>", "<BEGIN>\n## `calc_distance`", "Calc distance (km) by geo-coordinates.\n @:param lng1: first coordinate.lng\n @:param lat1: first coordinate.lat\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_handler API. 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 configured handler to the global logger.
"Add a configured handler to the global logger."
42
false
Vito2015/pyextend
add_handler
15,466
LDU_FT/Microsoft/vsts-cd-manager/setup_continuous_delivery
LDU_FT
[ "<BEGIN>\n## `set_azure_web_info`", "Call this method before attempting to setup continuous delivery to setup the azure settings\n :param resource_group_name:\n :param website_name:\n :param credentials:\n :param subscription_id:\n :param subscription_name:\n :param tenan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_continuous_delivery API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_continuous_delivery API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Use this method to setup Continuous Delivery of an Azure web site from a source control repository. :param swap_with_slot: the slot to use for deployment :param app_type_details: the details of app that will be deployed. i.e. app_type = Python, python_framework = Django etc. :param cd_project_ur...
"Use this method to setup Continuous Delivery of an Azure web site from a source control repository.\n :param swap_with_slot: the slot to use for deployment\n :param app_type_details: the details of app that will be deployed. i.e. app_type = Python, python_framework = Django etc.\n :param cd_projec...
12
false
Microsoft/vsts-cd-manager
setup_continuous_delivery
15,467
LDU_FT/TomasTomecek/sen/notify_widget
LDU_FT
[ "<BEGIN>\n## `quit`", "This could be called from another thread, so let's do this via alarm\n<END>", "<BEGIN>\n## `_set_main_widget`", "add provided widget to widget list and display it", " :param widget:\n :return:\n<END>", "<BEGIN>\n## `display_buffer`", "display provided buffer", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify_widget API. 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 notify_widget API. 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...
opens notification popup. :param widget: instance of Widget, widget to display :param message: str, message to remove from list of notifications :param clear_in: int, time seconds when notification should be removed
"opens notification popup.\n\n :param widget: instance of Widget, widget to display\n :param message: str, message to remove from list of notifications\n :param clear_in: int, time seconds when notification should be removed"
85
false
TomasTomecek/sen
notify_widget
15,468
LDU_FT/eXamadeus/godaddypy/update_domain
LDU_FT
[ "<BEGIN>\n## `_request_submit`", "A helper function that will wrap any requests we make.", " :param func: a function reference to the requests method to invoke\n :param kwargs: any extra arguments that requests.request takes", " :type func: (url: Any, data: Any, json: Any, kwargs: Dict)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Update an existing domain via PATCH /v1/domains/{domain} https://developer.godaddy.com/doc#!/_v1_domains/update currently it supports ( all optional ) locked = boolean nameServers = list renewAuto = boolean subaccountId = string NOTE: ...
"Update an existing domain via PATCH /v1/domains/{domain}\n https://developer.godaddy.com/doc#!/_v1_domains/update\n \n currently it supports ( all optional )\n locked = boolean\n nameServers = list\n renewAuto = boolean\n subaccountId = string\n\n ...
42
false
eXamadeus/godaddypy
update_domain
15,469
LDU_FT/cwacek/python-jsonschema-objects/propmerge
LDU_FT
[ "<BEGIN>\n## `validate_items`", "Validates the items in the backing array, including\n performing type validation.", " Sets the _typed property and clears the dirty flag as a side effect", " Returns:\n The typed array\n<END>", "<BEGIN>\n## `create`", "Create an array valida...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the propmerge API. 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 propmerge API. 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...
Merge JSON schema requirements into a dictionary
"Merge JSON schema requirements into a dictionary"
41
false
cwacek/python-jsonschema-objects
propmerge
15,470
LDU_FT/cdumay/kser/_onerror
LDU_FT
[ "<BEGIN>\n## `check_required_params`", "Check if all required parameters are set\n<END>", "<BEGIN>\n## `_onsuccess`", "To execute on execution success", " :param kser.result.Result result: Execution result\n :return: Execution result\n :rtype: kser.result.Result\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _onerror API. 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 _onerror API. 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...
To execute on execution failure :param kser.result.Result result: Execution result :return: Execution result :rtype: kser.result.Result
"To execute on execution failure\n\n :param kser.result.Result result: Execution result\n :return: Execution result\n :rtype: kser.result.Result"
94
false
cdumay/kser
_onerror
15,471
LDU_FT/Unity-Technologies/ml-agents/is_ready_update
LDU_FT
[ "<BEGIN>\n## `get_action`", "Decides actions given observations information, and takes them in environment.\n :param brain_info: A dictionary of brain names and BrainInfo from environment.\n :return: an ActionInfo containing action, memories, values and an object\n to be passed to add experie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ready_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ready_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns whether or not the trainer has enough elements to run update model :return: A boolean corresponding to whether or not update_model() can be run
"Returns whether or not the trainer has enough elements to run update model\n :return: A boolean corresponding to whether or not update_model() can be run"
171
false
Unity-Technologies/ml-agents
is_ready_update
15,472