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/hwmrocker/smtplibaio/parse_esmtp_extensions
LDU_FT
[ "<BEGIN>\n## `read_reply`", "Reads a reply from the server.", " Raises:\n ConnectionResetError: If the connection with the server is lost\n (we can't read any response anymore). Or if the server\n replies without a proper return code.", " Returns:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_esmtp_extensions 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 parse_esmtp_extensions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Parses the response given by an ESMTP server after a *EHLO* command. The response is parsed to build: - A dict of supported ESMTP extensions (with parameters, if any). - A list of supported authentication methods. Returns: (dict, list): A (extensions, auth_mechanisms) 2-tu...
"Parses the response given by an ESMTP server after a *EHLO* command.\n\n The response is parsed to build:\n\n - A dict of supported ESMTP extensions (with parameters, if any).\n - A list of supported authentication methods.\n\n Returns:\n (dict, list): A (extensions, auth_mechani...
140
false
hwmrocker/smtplibaio
parse_esmtp_extensions
26,973
LDU_FT/limpyd/redis-limpyd/compose
LDU_FT
[ "<BEGIN>\n## `_make_command_method`", "Return a function which call _call_command for the given name.\n Used to bind redis commands to our own calls\n<END>", "<BEGIN>\n## `_call_command`", "Check if the command to be executed is a modifier, to connect the object.\n Then call _traverse_command.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compose API. 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 compose API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Create a new class with the given index classes Parameters ----------- index_classes: list The list of index classes to be used in the multi-index class to create name: str The name of the new multi-index class. If not set, it will be the same as the ...
"Create a new class with the given index classes\n\n Parameters\n -----------\n index_classes: list\n The list of index classes to be used in the multi-index class to create\n name: str\n The name of the new multi-index class. If not set, it will be the same\n ...
408
false
limpyd/redis-limpyd
compose
26,974
LDU_FT/tensorpack/tensorpack/match_box_with_gt
LDU_FT
[ "<BEGIN>\n## `CaffeLMDB`", "Read a Caffe LMDB file where each value contains a ``caffe.Datum`` protobuf.\n Produces datapoints of the format: [HWC image, label].", " Note that Caffe LMDB format is not efficient: it stores serialized raw\n arrays rather than JPEG images.", " Args:\n lmdb_pat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_box_with_gt API. 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 match_box_with_gt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Args: boxes: Nx4 Returns: BoxProposals
"Args:\n boxes: Nx4\n Returns:\n BoxProposals"
1,105
true
tensorpack/tensorpack
match_box_with_gt
26,975
LDU_FT/inveniosoftware-contrib/record-recommender/create_all_recommendations
LDU_FT
[ "<BEGIN>\n## `_is_download`", "Check if file ending is considered as download.\n<END>", "<BEGIN>\n## `fetch`", "Fetch PageViews and Downloads from Elasticsearch.\n<END>", "<BEGIN>\n## `_fetch_pageviews`", "Fetch PageViews from Elasticsearch.", " :param time_from: Staring at timestamp.\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_all_recommendations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_all_recommendations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Calculate the recommendations for all records.
"Calculate the recommendations for all records."
55
false
inveniosoftware-contrib/record-recommender
create_all_recommendations
26,976
LDU_FT/Metatab/geoid/promote
LDU_FT
[ "<BEGIN>\n## `base62_decode`", "Decode a Base X encoded string into the number", " Arguments:\n - `string`: The encoded string\n - `alphabet`: The alphabet to use for encoding\n Stolen from: http://stackoverflow.com/a/1119769/1144479\n<END>", "<BEGIN>\n## `augment`", "Call the augment() method f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the promote API. 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 promote API. 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 to the next higher level summary level
"Convert to the next higher level summary level"
40
false
Metatab/geoid
promote
26,977
LDU_FT/eventbrite/eventbrite-sdk-python/post_event_ticket_classes
LDU_FT
[ "<BEGIN>\n## `objectify`", "Converts the returned value from a models.Payload to\n a models.EventbriteObject. Used by the access methods\n of the client.Eventbrite object\n<END>", "<BEGIN>\n## `get_category`", "GET /categories/:id/\n Gets a :format:`category` by ID as ``category``.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_event_ticket_classes 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 post_event_ticket_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
POST /events/:id/ticket_classes/ Creates a new ticket class, returning the result as a :format:`ticket_class` under the key ``ticket_class``.
"POST /events/:id/ticket_classes/\n Creates a new ticket class, returning the result as a :format:`ticket_class`\n under the key ``ticket_class``."
194
false
eventbrite/eventbrite-sdk-python
post_event_ticket_classes
26,978
LDU_FT/morse-talk/morse-talk/display
LDU_FT
[ "<BEGIN>\n## `decode`", "Converts a string of morse code into English message", " The encoded message can also be decoded using the same morse chart\n backwards.", " >>> code = '... --- ...'\n >>> decode(code)\n 'SOS'\n<END>", "<BEGIN>\n## `grouper`", "grouper(3, 'ABCDEFG', 'x') --> ABC...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display API. 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 display API. 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...
Display text message morse code binary morse code
"Display\n text message\n morse code\n binary morse code"
111
false
morse-talk/morse-talk
display
26,979
LDU_FT/nutechsoftware/alarmdecoder/_update_battery_status
LDU_FT
[ "<BEGIN>\n## `main`", "Example application that watches for an event from a specific RF device.", " This feature allows you to watch for events from RF devices if you have\n an RF receiver. This is useful in the case of internal sensors, which\n don't emit a FAULT if the sensor is tripped and the pane...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_battery_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_battery_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Uses the provided message to update the battery state. :param message: message to use to update :type message: :py:class:`~alarmdecoder.messages.Message` :param status: battery status, overrides message bits :type status: bool :returns: boolean indicating the new status
"Uses the provided message to update the battery state.\n\n :param message: message to use to update\n :type message: :py:class:`~alarmdecoder.messages.Message`\n :param status: battery status, overrides message bits\n :type status: bool\n\n :returns: boolean indicating the new status...
286
false
nutechsoftware/alarmdecoder
_update_battery_status
26,980
LDU_FT/lacava/few/is_valid_program
LDU_FT
[ "<BEGIN>\n## `survival`", "routes to the survival method, returns survivors\n<END>", "<BEGIN>\n## `tournament`", "conducts tournament selection of size tourn_size\n<END>", "<BEGIN>\n## `lexicase`", "conducts lexicase selection for de-aggregated fitness vectors\n<END>", "<BEGIN>\n## `epsilon_lexicase`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_program API. 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 is_valid_program API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
checks whether program p makes a syntactically valid tree. checks that the accumulated program length is always greater than the accumulated arities, indicating that the appropriate number of arguments is alway present for functions. It then checks that the sum of arties +1 exactly equa...
"checks whether program p makes a syntactically valid tree.\n\n checks that the accumulated program length is always greater than the\n accumulated arities, indicating that the appropriate number of arguments is\n alway present for functions. It then checks that the sum of arties +1\n exactl...
54
false
lacava/few
is_valid_program
26,981
LDU_FT/marshmallow-code/apispec/clean_operations
LDU_FT
[ "<BEGIN>\n## `load_operations_from_docstring`", "Return a dictionary of OpenAPI operations parsed from a\n a docstring.\n<END>", "<BEGIN>\n## `resolve_schema_instance`", "Return schema instance for given schema (instance or class)", " :param type|Schema|str schema: instance, class or class name of mar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_operations API. 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 clean_operations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Ensure that all parameters with "in" equal to "path" are also required as required by the OpenAPI specification, as well as normalizing any references to global parameters. Also checks for invalid HTTP methods. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterObject. ...
"Ensure that all parameters with \"in\" equal to \"path\" are also required\n as required by the OpenAPI specification, as well as normalizing any\n references to global parameters. Also checks for invalid HTTP methods.\n\n See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#paramete...
149
false
marshmallow-code/apispec
clean_operations
26,982
LDU_FT/ppo/django-guitar/static_absolute_tag
LDU_FT
[ "<BEGIN>\n## `csv_list`", "Return a comma-separated list of models, optionaly with a link.\n<END>", "<BEGIN>\n## `get_admin_url`", "Return the URL to admin pages for this object.\n<END>", "<BEGIN>\n## `get_fieldset_index`", "Return the index of a fieldset in the ``fieldsets`` list.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the static_absolute_tag 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 static_absolute_tag 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 absolute URL of a static file. Usage: ``{% %}``
"Return the absolute URL of a static file.\n\n Usage: ``{% %}``"
39
false
ppo/django-guitar
static_absolute_tag
26,983
LDU_FT/epfl-lts2/pygsp/prox_tv
LDU_FT
[ "<BEGIN>\n## `compute_avg_adj_deg`", "r\"\"\"\n Compute the average adjacency degree for each node.", " The average adjacency degree is the average of the degrees of a node and\n its neighbors.", " Parameters\n ----------\n G: Graph\n Graph on which the statistic is extracted\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prox_tv API. 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 prox_tv API. 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...
r""" Total Variation proximal operator for graphs. This function computes the TV proximal operator for graphs. The TV norm is the one norm of the gradient. The gradient is defined in the function :meth:`pygsp.graphs.Graph.grad`. This function requires the PyUNLocBoX to be executed. This functi...
"r\"\"\"\n Total Variation proximal operator for graphs.\n\n This function computes the TV proximal operator for graphs. The TV norm\n is the one norm of the gradient. The gradient is defined in the\n function :meth:`pygsp.graphs.Graph.grad`.\n This function requires the PyUNLocBoX to be executed.\n\n ...
617
false
epfl-lts2/pygsp
prox_tv
26,984
LDU_FT/davgeo/clear/GetBestStringMatchValue
LDU_FT
[ "<BEGIN>\n## `_SetGuide`", "Select guide corresponding to guideName", " Parameters\n ----------\n guideName : string\n Name of guide to use.", " Note\n ----------\n Supported guide names are: EPGUIDES\n<END>", "<BEGIN>\n## `_GetUniqueFileShowNames`", "Return a list containing al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetBestStringMatchValue 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 GetBestStringMatchValue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return the value of the highest matching substrings between two strings. Parameters ---------- string1 : string First string. string2 : string Second string. Returns ---------- int Integer value representing the best match found between string1 and string2.
"Return the value of the highest matching substrings between two strings.\n\n Parameters\n ----------\n string1 : string\n First string.\n\n string2 : string\n Second string.\n\n Returns\n ----------\n int\n Integer value representing the best match found\n between string1 and string2."
298
false
davgeo/clear
GetBestStringMatchValue
26,985
LDU_FT/vertexproject/synapse/getHiveKey
LDU_FT
[ "<BEGIN>\n## `openDatFile`", "Open a file-like object using a pkg relative path.", " Example:", " fd = openDatFile('foopkg.barpkg/wootwoot.bin')\n<END>", "<BEGIN>\n## `scrape`", "Scrape types from a blob of text and return node tuples.", " Args:\n text (str): Text to scrape.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getHiveKey API. 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 getHiveKey API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get the value of a key in the cell default hive
"Get the value of a key in the cell default hive"
1,135
true
vertexproject/synapse
getHiveKey
26,986
LDU_FT/etcher-be/emiz/edit_miz
LDU_FT
[ "<BEGIN>\n## `unit_pos_to_spot`", "Translates a unit position to a known parking spot", " Args:\n unit_pos: unit position as Vec2", " Returns: ParkingSpot object\n<END>", "<BEGIN>\n## `_tdec`", "Translates a 4-digit decimal temperature representation", " Ex: 1045 -> -4.5°C 0237 -> 23....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_miz API. 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 edit_miz API. 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...
Edit an opened MIZ file and sets the time and date and the weather Args: infile: source file outfile: output file (will default to source file) metar: metar string, ICAO or object to apply time: time string to apply (YYYYMMDDHHMMSS) min_wind: minimum wind max_wind: m...
"Edit an opened MIZ file and sets the time and date and the weather\n\n Args:\n infile: source file\n outfile: output file (will default to source file)\n metar: metar string, ICAO or object to apply\n time: time string to apply (YYYYMMDDHHMMSS)\n min_wind: minimum wind\n ma...
297
false
etcher-be/emiz
edit_miz
26,987
LDU_FT/kwarunek/file2py/save
LDU_FT
[ "<BEGIN>\n## `load_file`", "Loads data array from file (result of this converter)", " Tries to import, load and replace files' data.\n It will overwirte previously added items with #add_file or #load_file.", " :param input_file\n :type str or unicode\n<END>", "<BEGIN>\n## `set_te...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Generates output and saves to given file :param filename File name :type str or unicode
"Generates output and saves to given file\n\n :param filename File name\n :type str or unicode"
16
false
kwarunek/file2py
save
26,988
LDU_FT/pylast/pylast/get_top_artists
LDU_FT
[ "<BEGIN>\n## `cleanup_nodes`", "Remove text nodes containing only whitespace\n<END>", "<BEGIN>\n## `_collect_nodes`", "Returns a sequence of dom.Node objects about as close to limit as possible\n<END>", "<BEGIN>\n## `_extract_all`", "Extracts all the values from the xml string. returning a list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_top_artists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_top_artists API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns the most played artists as a sequence of TopItem objects.
"Returns the most played artists as a sequence of TopItem objects."
146
false
pylast/pylast
get_top_artists
26,989
LDU_FT/fedora-infra/fmn.rules/user_package_filter
LDU_FT
[ "<BEGIN>\n## `pagure_specific_project_filter`", "Particular pagure projects", " Adding this rule allows you to get notifications for one or more\n `pagure.io <https://pagure.io>`_ projects. Specify multiple\n projects by separating them with a comma ','.\n<END>", "<BEGIN>\n## `pagure_specific_proj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_package_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_package_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
A particular user's packages (any acl) This rule includes messages that relate to packages where the specified user has *either* commit ACLs or the watchcommits flag.
"A particular user's packages (any acl)\n\n This rule includes messages that relate to packages where the\n specified user has *either* commit ACLs or the watchcommits flag."
95
false
fedora-infra/fmn.rules
user_package_filter
26,990
LDU_FT/liftoff/pyminifier/remove_comments
LDU_FT
[ "<BEGIN>\n## `obfuscation_machine`", "A generator that returns short sequential combinations of lower and\n upper-case letters that will never repeat.", " If *use_unicode* is ``True``, use nonlatin cryllic, arabic, and syriac\n letters instead of the usual ABCs.", " The *identifier_length* represe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_comments API. 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 remove_comments API. 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...
Removes comments from *tokens* which is expected to be a list equivalent of tokenize.generate_tokens() (so we can update in-place). .. note:: * If the comment makes up the whole line, the newline will also be removed (so you don't end up with lots of blank lines). * Preserves shebangs and enco...
"Removes comments from *tokens* which is expected to be a list equivalent of\n tokenize.generate_tokens() (so we can update in-place).\n\n .. note::\n\n * If the comment makes up the whole line, the newline will also be removed (so you don't end up with lots of blank lines).\n * Preserves shebangs a...
160
false
liftoff/pyminifier
remove_comments
26,991
LDU_FT/uber/tchannel-python/write_exc_info
LDU_FT
[ "<BEGIN>\n## `should_retry_on_error`", "rules for retry", " :param error:\n ProtocolException that returns from Server\n<END>", "<BEGIN>\n## `client_for`", "Build a synchronous client class for the given Thrift service.", " The generated class accepts a TChannelSyncClient and an optio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_exc_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_exc_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 ex...
Write exception information to the response. Only one of this and ``write_result`` may be called. :param exc_info: 3-tuple of exception information. If omitted, the last exception will be retrieved using ``sys.exc_info()``.
"Write exception information to the response.\n\n Only one of this and ``write_result`` may be called.\n\n :param exc_info:\n 3-tuple of exception information. If omitted, the last exception\n will be retrieved using ``sys.exc_info()``."
422
false
uber/tchannel-python
write_exc_info
26,992
LDU_FT/thautwarm/Redy/hash_from_stream
LDU_FT
[ "<BEGIN>\n## `map_by`", "when pycharm supports type hinting for any implementation of currying,\n map_with and map_on would be deprecated.\n >>> from Redy.Collections import Traversal, Flow\n >>> def double(x: int) -> int: return x * 2\n >>> lst: Iterable[int] = [1, 2, 3]\n >>> x = Flow(lst)[Traver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_from_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash_from_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
>>> from Redy.Tools.Hash import hash_from_stream >>> s = iter((1, 2, 3)) >>> assert hash_from_stream(3, iter(s)) == hash((1, 2, 3))
">>> from Redy.Tools.Hash import hash_from_stream\n >>> s = iter((1, 2, 3))\n >>> assert hash_from_stream(3, iter(s)) == hash((1, 2, 3))"
83
false
thautwarm/Redy
hash_from_stream
26,993
LDU_FT/vadimk2016/v-vk-api/create
LDU_FT
[ "<BEGIN>\n## `request_method`", "Process method request and return json with results", " :param method: str: specifies the method, example: \"users.get\"\n :param method_kwargs: dict: method parameters,\n example: \"users_id=1\", \"fields='city, contacts'\"\n<END>", "<BEGIN>\n## `request_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Creates an API instance, requires app ID, login and password or service token to create connection :param app_id: int: specifies app ID :param login: str: specifies login, can be phone number or email :param password: str: specifies password :param service_token: str: specifies password service tok...
"Creates an API instance, requires app ID,\n login and password or service token to create connection\n\n :param app_id: int: specifies app ID\n :param login: str: specifies login, can be phone number or email\n :param password: str: specifies password\n :param service_token: str: specifies password serv...
22
false
vadimk2016/v-vk-api
create
26,994
LDU_FT/timstaley/voevent-parse/valid_as_v2_0
LDU_FT
[ "<BEGIN>\n## `Param`", "'Parameter', used as a general purpose key-value entry in the 'What' section.", " May be assembled into a :class:`Group`.", " NB ``name`` is not mandated by schema, but *is* mandated in full spec.", " Args:\n value(str): String representing parameter value.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid_as_v2_0 API. 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 valid_as_v2_0 API. 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...
Tests if a voevent conforms to the schema. Args: voevent(:class:`Voevent`): Root node of a VOEvent etree. Returns: bool: Whether VOEvent is valid
"Tests if a voevent conforms to the schema.\n\n Args:\n voevent(:class:`Voevent`): Root node of a VOEvent etree.\n Returns:\n bool: Whether VOEvent is valid"
131
false
timstaley/voevent-parse
valid_as_v2_0
26,995
LDU_FT/hangyan/shaw/superdict
LDU_FT
[ "<BEGIN>\n## `queryset_iterator`", "Iterate over a Django Queryset ordered by the primary key", " This method loads a maximum of chunksize (default: 1000) rows in it's\n memory at the same time while django normally would load all rows in it's\n memory. Using the iterator() method only causes it to not...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the superdict API. 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 superdict API. 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...
Recursive defaultdict which can init with other dict
"Recursive defaultdict which can init with other dict"
26
false
hangyan/shaw
superdict
26,996
LDU_FT/dfm/george/get_parameter
LDU_FT
[ "<BEGIN>\n## `computed`", "Has the processes been computed since the last update of the kernel?\n<END>", "<BEGIN>\n## `parse_samples`", "Parse a list of samples to make sure that it has the correct\n dimensions.", " :param t: ``(nsamples,)`` or ``(nsamples, ndim)``\n The list of sam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parameter API. 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_parameter API. 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 a parameter value by name Args: name: The name of the parameter
"Get a parameter value by name\n\n Args:\n name: The name of the parameter"
111
false
dfm/george
get_parameter
26,997
LDU_FT/dschreij/python-mediadecoder/__texUpdate
LDU_FT
[ "<BEGIN>\n## `get_frame`", "Callback function for the audio stream. Don't use directly.\n<END>", "<BEGIN>\n## `queue`", "Sets the audioqueue.", "\t\tParameters\n\t\t----------\n\t\tvalue : queue.Queue\n\t\t\tThe buffer from which audioframes are received.\n<END>", "<BEGIN>\n## `loop`", "Indicates whethe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __texUpdate API. 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 __texUpdate API. 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...
Update the texture with the newly supplied frame.
"Update the texture with the newly supplied frame."
75
false
dschreij/python-mediadecoder
__texUpdate
26,998
LDU_FT/CitrineInformatics/dftparse/_parse_total_magnetization
LDU_FT
[ "<BEGIN>\n## `_parse_refraction`", "Parse Energy [eV] ref_ind_xx ref_ind_zz extinct_xx extinct_zz\n<END>", "<BEGIN>\n## `_is_kpoint`", "Is this line the start of a new k-point block\n<END>", "<BEGIN>\n## `_parse_kpoint`", "Parse the k-point and then continue to iterate over the band energies and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_total_magnetization 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 _parse_total_magnetization API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Parse the total magnetization, which is somewhat hidden
"Parse the total magnetization, which is somewhat hidden"
25
false
CitrineInformatics/dftparse
_parse_total_magnetization
26,999
LDU_FT/Kozea/pygal/_plot
LDU_FT
[ "<BEGIN>\n## `erfinv`", "Approximation of the inverse error function\n https://en.wikipedia.org/wiki/Error_function\n #Approximation_with_elementary_functions\n<END>", "<BEGIN>\n## `confidence_interval_continuous`", "Continuous confidence interval from sample size and standard error\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _plot API. 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 _plot API. 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...
Draw bars for series and secondary series
"Draw bars for series and secondary series"
147
false
Kozea/pygal
_plot
27,000
LDU_FT/riggsd/davies/parse
LDU_FT
[ "<BEGIN>\n## `lint`", "Run verbose PyLint on source. Optionally specify fmt=html for HTML output.\n<END>", "<BEGIN>\n## `azm`", "Corrected azimuth, taking into account backsight, declination, and compass corrections.\n<END>", "<BEGIN>\n## `inc`", "Corrected inclination, taking into account backsight and c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. 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 parse API. 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...
Parse our .PLT file and return :class:`Plot` object or raise :exc:`ParseException`.
"Parse our .PLT file and return :class:`Plot` object or raise :exc:`ParseException`."
60
false
riggsd/davies
parse
27,001
LDU_FT/aconrad/pycobertura/line_statuses
LDU_FT
[ "<BEGIN>\n## `line_rate`", "Return the global line rate of the coverage report. If the\n `filename` file is given, return the line rate of the file.\n<END>", "<BEGIN>\n## `branch_rate`", "Return the global branch rate of the coverage report. If the\n `filename` file is given, return the branch r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the line_statuses API. 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 line_statuses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return a list of tuples `(lineno, status)` of all the lines found in the Cobertura report for the given file `filename` where `lineno` is the line number and `status` is coverage status of the line which can be either `True` (line hit) or `False` (line miss).
"Return a list of tuples `(lineno, status)` of all the lines found in\n the Cobertura report for the given file `filename` where `lineno` is\n the line number and `status` is coverage status of the line which can\n be either `True` (line hit) or `False` (line miss)."
53
false
aconrad/pycobertura
line_statuses
27,002
LDU_FT/openeventdata/mordecai/clean_entity
LDU_FT
[ "<BEGIN>\n## `country_list_maker`", "Helper function to return dictionary of countries in {\"country\" : \"iso\"} form.\n<END>", "<BEGIN>\n## `make_skip_list`", "Return hand-defined list of place names to skip and not attempt to geolocate. If users would like to exclude\n country names, this would be the f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_entity API. 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 clean_entity API. 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...
Strip out extra words that often get picked up by spaCy's NER. To do: preserve info about what got stripped out to help with ES/Geonames resolution later. Parameters --------- ent: a spaCy named entity Span Returns ------- new_ent: a spaCy Span, wit...
"Strip out extra words that often get picked up by spaCy's NER.\n\n To do: preserve info about what got stripped out to help with ES/Geonames\n resolution later.\n\n Parameters\n ---------\n ent: a spaCy named entity Span\n\n Returns\n -------\n new_ent: a spa...
110
false
openeventdata/mordecai
clean_entity
27,003
LDU_FT/honeynet/beeswarm/connect
LDU_FT
[ "<BEGIN>\n## `setup_db`", "Sets up the database schema and adds defaults.\n :param connection_string: Database URL. e.g: sqlite:///filename.db\n This is usually taken from the config file.\n<END>", "<BEGIN>\n## `start_pty_request`", "Start a PTY - intended to run it a (green)th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Open a new telnet session on the remote server.
"Open a new telnet session on the remote server."
112
false
honeynet/beeswarm
connect
27,004
LDU_FT/kvesteri/postgresql-audit/configure_versioned_classes
LDU_FT
[ "<BEGIN>\n## `alter_column`", "Run given callable against given table and given column in activity table\n jsonb data columns. This function is useful when you want to reflect type\n changes in your schema to activity table.", " In the following example we change the data type of User's age column from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_versioned_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_versioned_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Configures all versioned classes that were collected during instrumentation process.
"Configures all versioned classes that were collected during\n instrumentation process."
40
false
kvesteri/postgresql-audit
configure_versioned_classes
27,005
LDU_FT/VonStruddle/PyHunter/delete_leads_list
LDU_FT
[ "<BEGIN>\n## `domain_search`", "Return all the email addresses found for a given domain.", " :param domain: The domain on which to search for emails. Must be\n defined if company is not.", " :param company: The name of the company on which to search for emails.\n Must be defined if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_leads_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_leads_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Delete a leads list. :param leads_list_id: The id of the list to delete. :return: 204 Response.
"Delete a leads list.\n\n :param leads_list_id: The id of the list to delete.\n\n :return: 204 Response."
87
false
VonStruddle/PyHunter
delete_leads_list
27,006
LDU_FT/Ouranosinc/xclim/fit
LDU_FT
[ "<BEGIN>\n## `build_module`", "Create a module from imported objects.", " Parameters\n ----------\n name : str\n New module name.\n objs : dict\n Dictionary of the objects (or their name) to import into the module,\n keyed by the name they will take in the created module.\n doc : s...
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 doc...
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 doc...
Fit an array to a univariate distribution along the time dimension. Parameters ---------- arr : xarray.DataArray Time series to be fitted along the time dimension. dist : str Name of the univariate distribution, such as beta, expon, genextreme, gamma, gumbel_r, lognorm, norm (see scip...
"Fit an array to a univariate distribution along the time dimension.\n\n Parameters\n ----------\n arr : xarray.DataArray\n Time series to be fitted along the time dimension.\n dist : str\n Name of the univariate distribution, such as beta, expon, genextreme, gamma, gumbel_r, lognorm, norm\n ...
578
false
Ouranosinc/xclim
fit
27,007
LDU_FT/booktype/python-ooxml/_get_font_size
LDU_FT
[ "<BEGIN>\n## `parse_drawing`", "Parse drawing element.", " We don't do much with drawing element. We can find embeded image but we don't do more than that.\n<END>", "<BEGIN>\n## `parse_paragraph`", "Parse paragraph element.", " Some other elements could be found inside of paragraph element (math, li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_font_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_font_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get font size defined for this style. It will try to get font size from it's parent style if it is not defined by original style. :Args: - document (:class:`ooxml.doc.Document`): Document object - style (:class:`ooxml.doc.Style`): Style object :Returns: Returns font size as a number. -...
"Get font size defined for this style.\n\n It will try to get font size from it's parent style if it is not defined by original style. \n\n :Args:\n - document (:class:`ooxml.doc.Document`): Document object\n - style (:class:`ooxml.doc.Style`): Style object\n\n :Returns:\n Returns font size as a...
117
false
booktype/python-ooxml
_get_font_size
27,008
LDU_FT/aloetesting/aloe_django/_create_m2m_links_step
LDU_FT
[ "<BEGIN>\n## `run_from_argv`", "Set the default Gherkin test runner for its options to be parsed.\n<END>", "<BEGIN>\n## `django_url`", "The URL for a page from the test server.", " :param step: A Gherkin step\n :param url: If specified, the relative URL to append.\n<END>", "<BEGIN>\n## `_models_gene...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_m2m_links_step 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 _create_m2m_links_step API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Link many-to-many models together. Syntax: And `model` with `field` "`value`" is linked to `other model` in the database: Example: .. code-block:: gherkin And article with name "Guidelines" is linked to tags in the database: | name | | coding | ...
"Link many-to-many models together.\n\n Syntax:\n\n And `model` with `field` \"`value`\" is linked to `other model` in the\n database:\n\n Example:\n\n .. code-block:: gherkin\n\n And article with name \"Guidelines\" is linked to tags in the database:\n | name |\n |...
58
false
aloetesting/aloe_django
_create_m2m_links_step
27,009
LDU_FT/abe-winter/pg13-py/refkeys
LDU_FT
[ "<BEGIN>\n## `names_from_exp`", "Return a list of AttrX and NameX from the expression.\n<END>", "<BEGIN>\n## `classify_wherex`", "helper for wherex_to_rowlist. returns [SingleTableCond,...], [CartesianCond,...]\n<END>", "<BEGIN>\n## `table_to_rowlist`", "helper for wherex_to_rowlist. (table.Table, [exp, ....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refkeys API. 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 refkeys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
returns {ModelClass:list_of_pkey_tuples}. see syncschema.RefKey. Don't use this yet.
"returns {ModelClass:list_of_pkey_tuples}. see syncschema.RefKey. Don't use this yet."
182
false
abe-winter/pg13-py
refkeys
27,010
LDU_FT/usc-isi-i2/etk/_populate_trie
LDU_FT
[ "<BEGIN>\n## `decode_unicode`", "Process of parsing:\n -> Convert unicode into standard form\n -> Convert each character of the unicode symbol to its numerical equivalent\n -> Mapping Process:\n - First check in pattern dictionary to map suffix/prefix\n - Check Emoticon Dictionary \n - Replace valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _populate_trie API. 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 _populate_trie API. 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...
Takes a list and inserts its elements into a new trie and returns it
"Takes a list and inserts its elements into a new trie and returns it"
427
false
usc-isi-i2/etk
_populate_trie
27,011
LDU_FT/brandon-rhodes/logging_tree/build_description
LDU_FT
[ "<BEGIN>\n## `build_description`", "Return a multi-line string describing a `logging_tree.nodes.Node`.", " If no `node` argument is provided, then the entire tree of currently\n active `logging` loggers is printed out.\n<END>", "<BEGIN>\n## `_describe`", "Generate lines describing the given `node` tup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_description API. 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 build_description API. 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 multi-line string describing a `logging_tree.nodes.Node`. If no `node` argument is provided, then the entire tree of currently active `logging` loggers is printed out.
"Return a multi-line string describing a `logging_tree.nodes.Node`.\n\n If no `node` argument is provided, then the entire tree of currently\n active `logging` loggers is printed out."
13
false
brandon-rhodes/logging_tree
build_description
27,012
LDU_FT/chapel-lang/sphinxcontrib-chapeldomain/_pseudo_parse_arglist
LDU_FT
[ "<BEGIN>\n## `make_field`", "Copy+Paste of TypedField.make_field() from Sphinx version 1.2.3. The first\n and second nodes.Text() instance are changed in this implementation to\n be ' : ' and '' respectively (instead of ' (' and ')').", " TODO: Ask sphinx devs if there is a better way to su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pseudo_parse_arglist 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 _pseudo_parse_arglist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Parse list of comma separated arguments. Arguments can have optional types.
"Parse list of comma separated arguments.\n\n Arguments can have optional types."
60
false
chapel-lang/sphinxcontrib-chapeldomain
_pseudo_parse_arglist
27,013
LDU_FT/xav-b/pyconsul/safe_request
LDU_FT
[ "<BEGIN>\n## `decode_values`", "Decode base64 encoded responses from Consul storage\n<END>", "<BEGIN>\n## `safe_request`", "Return json messages instead of raising errors\n<END>", "<BEGIN>\n## `get`", "Fetch value at the given key\n kwargs can hold `recurse`, `wait` and `index` params\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return json messages instead of raising errors
"Return json messages instead of raising errors"
14
false
xav-b/pyconsul
safe_request
27,014
LDU_FT/nwilming/ocupy/lower_bound
LDU_FT
[ "<BEGIN>\n## `path`", "Constructs the path to categories, images and features.", " This path function assumes that the following storage scheme is used on\n the hard disk to access categories, images and features:\n - categories: /impath/category\n - images: /impath/categ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lower_bound API. 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 lower_bound API. 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...
Compute the spatial bias lower bound for a fixmat. Input: fm : a fixmat instance nr_subs : the number of subjects used for the prediction. Defaults to the total number of subjects in the fixmat minus 1 nr_imgs : the number of images used for prediction. If given, the ...
"Compute the spatial bias lower bound for a fixmat.\n\n Input:\n fm : a fixmat instance\n nr_subs : the number of subjects used for the prediction. Defaults\n to the total number of subjects in the fixmat minus 1\n nr_imgs : the number of images used for prediction. If given, th...
310
false
nwilming/ocupy
lower_bound
27,015
LDU_FT/sdispater/cachy/add
LDU_FT
[ "<BEGIN>\n## `tag_id`", "Get the unique tag identifier for a given tag.", " :param name: The tag\n :type name: str", " :rtype: str\n<END>", "<BEGIN>\n## `reset_tag`", "Reset the tag and return the new tag identifier.", " :param name: The tag\n :type name: str", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Store an item in the cache if it does not exist. :param key: The cache key :type key: str :param val: The cache value :type val: mixed :param minutes: The lifetime in minutes of the cached value :type minutes: int|datetime :rtype: bool
"Store an item in the cache if it does not exist.\n\n :param key: The cache key\n :type key: str\n\n :param val: The cache value\n :type val: mixed\n\n :param minutes: The lifetime in minutes of the cached value\n :type minutes: int|datetime\n\n :rtype: bool"
206
false
sdispater/cachy
add
27,016
LDU_FT/Kensuke-Mitsuzawa/JapaneseTokenizers/on_timeout
LDU_FT
[ "<BEGIN>\n## `__check_mecab_dict_path`", "check path to dict of Mecab in system environment\n<END>", "<BEGIN>\n## `__feature_parser`", "Parse the POS feature output by Mecab\n :param uni_feature unicode:\n :return ( (pos1, pos2, pos3), word_stem ):\n<END>", "<BEGIN>\n## `__postprocess_analyzed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_timeout API. 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 on_timeout API. 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...
指定した実行時間に終了しなかった場合、handlerをhint/limitを引数にして呼び出します @on_timeout(limit=3600, handler=notify_func, hint=u'長い計算') def long_time_function():
"指定した実行時間に終了しなかった場合、handlerをhint/limitを引数にして呼び出します\n @on_timeout(limit=3600, handler=notify_func, hint=u'長い計算')\n def long_time_function():"
58
false
Kensuke-Mitsuzawa/JapaneseTokenizers
on_timeout
27,017
LDU_FT/pjmark/NIMPA/bias_field_correction
LDU_FT
[ "<BEGIN>\n## `trimim`", "Trim and upsample PET image(s), e.g., for GPU execution,\n PVC correction, ROI sampling, etc.\n The input images 'fims' can be passed in multiple ways:\n 1. as a string of the folder containing NIfTI files\n 2. as a string of a NIfTI file path (this way a 4D image can be loade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bias_field_correction 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 bias_field_correction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Correct for bias field in MR image(s) given in <fmr> as a string (single file) or as a list of strings (multiple files). Output dictionary with the bias corrected file names. Options: - fimout: The name (with path) of the output file. It's ignored when...
"Correct for bias field in MR image(s) given in <fmr> as a string\n (single file) or as a list of strings (multiple files). \n\n Output dictionary with the bias corrected file names.\n\n Options:\n - fimout: The name (with path) of the output file. It's \n igno...
78
false
pjmark/NIMPA
bias_field_correction
27,018
LDU_FT/gestaolivre/brazil-types/format
LDU_FT
[ "<BEGIN>\n## `format`", "u\"\"\"\n Formata o CNPJ.", " Códigos de formatação:\n r -> raw\n f -> formatado", " >>> cnpj = CNPJ(58414462000135)\n >>> cnpj.format('r')\n '58414462000135'\n >>> cnpj.format('f')\n '58.414.462/0001-35'\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. 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 format API. 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 ...
u""" Formata o CNPJ. Códigos de formatação: r -> raw f -> formatado >>> cnpj = CNPJ(58414462000135) >>> cnpj.format('r') '58414462000135' >>> cnpj.format('f') '58.414.462/0001-35'
"u\"\"\"\n Formata o CNPJ.\n\n Códigos de formatação:\n r -> raw\n f -> formatado\n\n >>> cnpj = CNPJ(58414462000135)\n >>> cnpj.format('r')\n '58414462000135'\n >>> cnpj.format('f')\n '58.414.462/0001-35'"
20
false
gestaolivre/brazil-types
format
27,019
LDU_FT/Knoema/knoema-python-driver/get_data_raw
LDU_FT
[ "<BEGIN>\n## `is_equal_strings_ignore_case`", "The function compares strings ignoring case\n<END>", "<BEGIN>\n## `find_dimension_by_name`", "the method searching dimension with a given name\n<END>", "<BEGIN>\n## `find_dimension_by_id`", "the method searching dimension with a given id\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_raw API. 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...
The method is getting data by raw request
"The method is getting data by raw request"
48
false
Knoema/knoema-python-driver
get_data_raw
27,020
LDU_FT/dfm/casjobs/list_tables
LDU_FT
[ "<BEGIN>\n## `_send_request`", "Construct and submit a structured/authenticated request.", " ## Arguments", " * `job_type` (str): The job type identifier to use.", " ## Keyword Arguments", " * `params` (dict): Any additional entries to include in the POST\n request.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_tables API. 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 list_tables API. 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...
Lists the tables in mydb. ## Returns * `tables` (list): A list of strings with all the table names from mydb.
"Lists the tables in mydb.\n\n ## Returns\n\n * `tables` (list): A list of strings with all the table names from mydb."
71
false
dfm/casjobs
list_tables
27,021
LDU_FT/scarface-4711/denonavr/_get_status_from_xml_tags
LDU_FT
[ "<BEGIN>\n## `exec_appcommand_post`", "Prepare and execute a HTTP POST call to AppCommand.xml end point.", " Returns XML ElementTree on success and None on fail.\n<END>", "<BEGIN>\n## `get_status_xml`", "Get status XML via HTTP and return it as XML ElementTree.\n<END>", "<BEGIN>\n## `create_zones`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_status_from_xml_tags 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 _get_status_from_xml_tags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Get relevant status tags from XML structure with this internal method. Status is saved to internal attributes. Return dictionary of tags not found in XML.
"Get relevant status tags from XML structure with this internal method.\n\n Status is saved to internal attributes.\n Return dictionary of tags not found in XML."
85
false
scarface-4711/denonavr
_get_status_from_xml_tags
27,022
LDU_FT/draperjames/qtpandas/removeColumns
LDU_FT
[ "<BEGIN>\n## `startDrag`", "start a drag operation with a PandasCellPayload on defined index.", " Args:\n index (QModelIndex): model index you want to start the drag operation.\n<END>", "<BEGIN>\n## `initUi`", "Initalizes the Uuser Interface with all sub widgets.\n<END>", "<BEGIN>\n## `e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the removeColumns API. 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 removeColumns API. 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...
Removes one or multiple columns from the model. This method is also a slot. Args: columnNames (list): A list of columns, which shall be removed from the model.
"Removes one or multiple columns from the model.\n\n This method is also a slot.\n\n Args:\n columnNames (list): A list of columns, which shall\n be removed from the model."
420
false
draperjames/qtpandas
removeColumns
27,023
LDU_FT/websocket-client/websocket-client/settimeout
LDU_FT
[ "<BEGIN>\n## `parse_url`", "parse url and the result is tuple of\n (hostname, port, resource path and the flag of secure mode)", " url: url string.\n<END>", "<BEGIN>\n## `get_proxy_info`", "try to retrieve proxy host and port from environment\n if not provided in options.\n result is (proxy_host...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the settimeout API. 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 settimeout API. 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...
Set the timeout to the websocket. timeout: timeout time(second).
"Set the timeout to the websocket.\n\n timeout: timeout time(second)."
81
false
websocket-client/websocket-client
settimeout
27,024
LDU_FT/ucbvislab/radiotool/retarget_with_change_points
LDU_FT
[ "<BEGIN>\n## `analysis`", "Get musical analysis of the song using the librosa library\n<END>", "<BEGIN>\n## `read_frames`", "Read ``n`` frames from the track, starting\n with the current frame", " :param integer n: Number of frames to read\n :param integer channels: Number of channels t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retarget_with_change_points API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retarget_with_change_points API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Create a composition of a song of a given duration that reaches music change points at specified times. This is still under construction. It might not work as well with more than 2 ``cp_times`` at the moment. Here's an example of retargeting music to be 40 seconds long and hit a change point at the...
"Create a composition of a song of a given duration that reaches\n music change points at specified times. This is still under\n construction. It might not work as well with more than\n 2 ``cp_times`` at the moment.\n\n Here's an example of retargeting music to be 40 seconds long and\n hit a change point...
107
false
ucbvislab/radiotool
retarget_with_change_points
27,025
LDU_FT/playpauseandstop/rororo/inject_settings
LDU_FT
[ "<BEGIN>\n## `str_to_timedelta`", "Convert string value to timedelta instance according to the given format.", " If format not set function tries to load timedelta using default\n ``TIMEDELTA_FORMAT`` and then both of magic \"full\" formats.", " You should also specify list of formats and function tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject_settings API. 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 inject_settings API. 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...
Inject settings values to given context. :param mixed: Settings can be a string (that it will be read from Python path), Python module or dict-like instance. :param context: Context to assign settings key values. It should support dict-like item assingment. :param fail_silen...
"Inject settings values to given context.\n\n :param mixed:\n Settings can be a string (that it will be read from Python path),\n Python module or dict-like instance.\n :param context:\n Context to assign settings key values. It should support dict-like item\n assingment.\n :param f...
128
false
playpauseandstop/rororo
inject_settings
27,026
LDU_FT/IBM-Cloud/gp-python-client/translation
LDU_FT
[ "<BEGIN>\n## `__get_user_env_vars`", "Return the user defined environment variables\n<END>", "<BEGIN>\n## `__parse_vcap_services_env_var`", "Parse the ``VCAP_SERVICES`` env var and search for the necessary\r\n values\n<END>", "<BEGIN>\n## `__get_language_match`", "Compares ``languageCode`` to the p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translation API. 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 translation API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the ``Translations`` instance to be used for obtaining translations. ``bundleId`` is the name of the bundle to use. ``languages`` is the list of languages to use, with subsequent ones being fallbacks. Additionally, based on the value of ``priority``, local translat...
"Returns the ``Translations`` instance to be used for obtaining\r\n translations.\r\n\r\n ``bundleId`` is the name of the bundle to use.\r\n ``languages`` is the list of languages to use, with subsequent ones\r\n being fallbacks. Additionally, based on the value of ``priority``,\r\n l...
71
false
IBM-Cloud/gp-python-client
translation
27,027
LDU_FT/projectatomic/atomic-reactor/validate_arrangement_version
LDU_FT
[ "<BEGIN>\n## `_build`", "build image from provided build_args", " :return: BuildResults\n<END>", "<BEGIN>\n## `_load_results`", "load results from recent build", " :return: BuildResults\n<END>", "<BEGIN>\n## `commit_buildroot`", "create image from buildroot", " :return:\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_arrangement_version 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 validate_arrangement_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Validate if the arrangement_version is supported This is for autorebuilds to fail early otherwise they may failed on workers because of osbs-client validation checks. Method should be called after self.adjust_build_kwargs Shows a warning when version is deprecated :raises Val...
"Validate if the arrangement_version is supported\n\n This is for autorebuilds to fail early otherwise they may failed\n on workers because of osbs-client validation checks.\n\n Method should be called after self.adjust_build_kwargs\n\n Shows a warning when version is deprecated\n\n :...
440
false
projectatomic/atomic-reactor
validate_arrangement_version
27,028
LDU_FT/aspiers/git-deps/refs_to
LDU_FT
[ "<BEGIN>\n## `find_dependencies`", "Find all dependencies of the given revision, recursively traversing\n the dependency tree if requested.\n<END>", "<BEGIN>\n## `find_dependencies_with_parent`", "Find all dependencies of the given revision caused by the\n given parent commit. This will be call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refs_to API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refs_to API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns all refs pointing to the given SHA1.
"Returns all refs pointing to the given SHA1."
14
false
aspiers/git-deps
refs_to
27,029
LDU_FT/igorcoding/asynctnt/update
LDU_FT
[ "<BEGIN>\n## `close`", "Same as disconnect, but not a coroutine, i.e. it does not wait\n for disconnect to finish.\n<END>", "<BEGIN>\n## `call`", "Call request coroutine. It is a call with a new behaviour\n (return result of a Tarantool procedure is not wrapped into\n an extra...
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 request coroutine. Examples: .. code-block:: pycon # Assuming tuple [0, 'hello'] is in space tester >>> await conn.update('tester', [0], [ ['=', 1, 'hi!'] ]) <Response sync=3 rowcount=1 data=[ <TarantoolTuple id=0 nam...
"Update request coroutine.\n\n Examples:\n\n .. code-block:: pycon\n\n # Assuming tuple [0, 'hello'] is in space tester\n\n >>> await conn.update('tester', [0], [ ['=', 1, 'hi!'] ])\n <Response sync=3 rowcount=1 data=[\n <TarantoolTup...
74
false
igorcoding/asynctnt
update
27,030
LDU_FT/ibis-project/ibis/_table_limit
LDU_FT
[ "<BEGIN>\n## `compile`", "Force compilation of expression for the SQLite target\n<END>", "<BEGIN>\n## `find_names`", "Return the unique :class:`ast.Name` instances in an AST.", " Parameters\n ----------\n node : ast.AST", " Returns\n -------\n unique_names : List[ast.Name]", " Examp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _table_limit API. 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 _table_limit API. 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...
Select the first n rows at beginning of table (may not be deterministic depending on implementation and presence of a sorting). Parameters ---------- n : int Number of rows to include offset : int, default 0 Number of rows to skip first Returns ------- limited : TableExpr
"Select the first n rows at beginning of table (may not be deterministic\n depending on implementation and presence of a sorting).\n\n Parameters\n ----------\n n : int\n Number of rows to include\n offset : int, default 0\n Number of rows to skip first\n\n Returns\n -------\n limited ...
1,079
true
ibis-project/ibis
_table_limit
27,031
LDU_FT/cirruscluster/cirruscluster/run
LDU_FT
[ "<BEGIN>\n## `fetch_file`", "save a remote file to the specified path\n<END>", "<BEGIN>\n## `_varFindLimitSpace`", "limits the search space of space to part", " basically does space.get(part, None), but with\n templating for part and a few more things\n<END>", "<BEGIN>\n## `_varFind`", "Searches f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
transfer & execute a module that is not 'copy' or 'template'
"transfer & execute a module that is not 'copy' or 'template'"
225
false
cirruscluster/cirruscluster
run
27,032
LDU_FT/chaoss/grimoirelab-cereslib/eventize
LDU_FT
[ "<BEGIN>\n## `filter_`", "This method filter some of the rows where the 'value'\n is found in each of the 'columns'.", " :param column: list of strings\n :param value: any type", " :returns: filtered dataframe\n :rtype: pandas.DataFrame\n<END>", "<BEGIN>\n## `eventize`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eventize API. 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 eventize API. 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...
This splits the JSON information found at self.events into the several events. For this there are three different levels of time consuming actions: 1-soft, 2-medium and 3-hard. Level 1 provides events about open and closed issues. Level 2 provides events about the rest of the status upd...
"This splits the JSON information found at self.events into the\n several events. For this there are three different levels of time\n consuming actions: 1-soft, 2-medium and 3-hard.\n\n Level 1 provides events about open and closed issues.\n Level 2 provides events about the rest of the stat...
107
false
chaoss/grimoirelab-cereslib
eventize
27,033
LDU_FT/cloudmesh-cmd3/cmd3/do_man
LDU_FT
[ "<BEGIN>\n## `do_clear`", "Usage:\n clear", " Clears the screen.\n<END>", "<BEGIN>\n## `do_banner`", "::", " Usage:\n banner [-c CHAR] [-n WIDTH] [-i INDENT] [-r COLOR] TEXT", " Arguments:\n TEXT The text message from which to creat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_man API. 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 do_man API. 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 ...
:: Usage: man COMMAND man [--noheader] Options: --norule no rst header Arguments: COMMAND the command to be printed Description: man Prints ou...
"::\n \n Usage:\n man COMMAND\n man [--noheader]\n\n Options:\n --norule no rst header\n\n Arguments:\n COMMAND the command to be printed \n\n Description:\n man \n ...
184
false
cloudmesh-cmd3/cmd3
do_man
27,034
LDU_FT/eddiejessup/metropack/draw_medium
LDU_FT
[ "<BEGIN>\n## `n_to_pf`", "Returns the packing fraction for a number of non-intersecting spheres.", " Parameters\n ----------\n L: float array, shape (d,)\n System lengths.\n n: integer\n Number of spheres.\n R: float\n Sphere radius.", " Returns\n -------\n pf: flo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_medium API. 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 draw_medium API. 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...
Draw circles representing circles in a two-dimensional periodic system. Circles may be tiled up to a number of periods. Parameters ---------- r: float array, shape (:, 2). Set of points. R: float Circle radius. L: float array, shape (2,) System lengths. n: integer. ...
"Draw circles representing circles in a two-dimensional periodic system.\n Circles may be tiled up to a number of periods.\n\n Parameters\n ----------\n r: float array, shape (:, 2).\n Set of points.\n R: float\n Circle radius.\n L: float array, shape (2,)\n System lengths.\n n...
35
false
eddiejessup/metropack
draw_medium
27,035
LDU_FT/deeplook/svglib/split_floats
LDU_FT
[ "<BEGIN>\n## `find_font`", "Return the font and a Boolean indicating if the match is exact.\n<END>", "<BEGIN>\n## `svg2rlg`", "Convert an SVG file to an RLG Drawing object.\n<END>", "<BEGIN>\n## `monkeypatch_reportlab`", "https://bitbucket.org/rptlab/reportlab/issues/95/\n ReportLab always use 'Even-Od...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_floats API. 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 split_floats API. 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...
Split `value`, a list of numbers as a string, to a list of float numbers. Also optionally insert a `l` or `L` operation depending on the operation and the length of values. Example: with op='m' and value='10,20 30,40,' the returned value will be ['m', [10.0, 20.0], 'l', [30.0, 40.0]]
"Split `value`, a list of numbers as a string, to a list of float numbers.\n\n Also optionally insert a `l` or `L` operation depending on the operation\n and the length of values.\n Example: with op='m' and value='10,20 30,40,' the returned value will be\n ['m', [10.0, 20.0], 'l', [30.0, 40.0]]"
40
false
deeplook/svglib
split_floats
27,036
LDU_FT/miquelo/resort/insert
LDU_FT
[ "<BEGIN>\n## `insert`", "Build the project.", "\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context.\n<END>", "<BEGIN>\n## `load`", "Load the profile with the given name.", "\t\t:param str prof_name:\n\t\t Profile name.\n\t\t:rtype:\n\t\t ProfileStub\n\t\t:return:\n\t\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
Resolve resoures. :param resort.engine.execution.Context context: Current execution context.
"Resolve resoures.\n\t\t\n\t\t:param resort.engine.execution.Context context:\n\t\t Current execution context."
125
false
miquelo/resort
insert
27,037
LDU_FT/limodou/uliweb/www_authenticate
LDU_FT
[ "<BEGIN>\n## `get_frame_info`", "Return a dict of information about a given traceback.\n<END>", "<BEGIN>\n## `get_sort_field`", "Get sort column info according request, the data format just likes:\r", " ?sort=fieldA.asc&sort=fieldB.desc\r", " or:\r", " ?sort=fieldA&sort=fieldB&order...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the www_authenticate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the www_authenticate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
The `WWW-Authenticate` header in a parsed form.
"The `WWW-Authenticate` header in a parsed form."
886
false
limodou/uliweb
www_authenticate
27,038
LDU_FT/Vagrants/blackbird/get_handler_fp
LDU_FT
[ "<BEGIN>\n## `helper_import`", "Return class or module object.\n if the argument is only a module name and return a module object.\n if the argument is a module and class name, and return a class object.\n<END>", "<BEGIN>\n## `global_import`", "This function search sys.path[1:], return specified module....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_handler_fp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_handler_fp API. 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 handler_fp. This method is integrated to LoggerFactory Object in the future. :param logging.Logger logger: Python logging.Logger. logger instance. :rtype: logging.Logger.handlers.BaseRotatingHandler :return: Handler or Handler's stream. We call it `handler_fp`.
"Get handler_fp.\n This method is integrated to LoggerFactory Object in the future.\n :param logging.Logger logger: Python logging.Logger. logger instance.\n :rtype: logging.Logger.handlers.BaseRotatingHandler\n :return: Handler or Handler's stream. We call it `handler_fp`."
106
false
Vagrants/blackbird
get_handler_fp
27,039
LDU_FT/simonvh/genomepy/install
LDU_FT
[ "<BEGIN>\n## `register_provider`", "Register method to keep list of providers.\n<END>", "<BEGIN>\n## `tar_to_bigfile`", "Convert tar of multiple FASTAs to one file.\n<END>", "<BEGIN>\n## `download_genome`", "Download a (gzipped) genome file to a specific directory", " Parameters\n --------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install API. 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 install API. 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...
Install genome NAME from provider PROVIDER in directory GENOME_DIR.
"Install genome NAME from provider PROVIDER in directory GENOME_DIR."
87
false
simonvh/genomepy
install
27,040
LDU_FT/genomoncology/related/SetField
LDU_FT
[ "<BEGIN>\n## `init_default`", "Returns optional default if field is not required and\n default was not provided.", " :param bool required: whether the field is required in a given model.\n :param default: default provided by creator of field.\n :param optional_default: default for the data type if n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SetField API. 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 SetField API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Create new set field on a model. :param cls: class (or name) of the model to be related in Set. :param default: any TypedSet or set :param bool required: whether or not the object is invalid if not provided. :param bool repr: include this field should appear in object's repr. :param bool cmp: inclu...
"Create new set field on a model.\n\n :param cls: class (or name) of the model to be related in Set.\n :param default: any TypedSet or set\n :param bool required: whether or not the object is invalid if not provided.\n :param bool repr: include this field should appear in object's repr.\n :param bool cmp...
95
false
genomoncology/related
SetField
27,041
LDU_FT/astropy/photutils/daofind_marginal_fit
LDU_FT
[ "<BEGIN>\n## `_move_tuple_axes_first`", "Bottleneck can only take integer axis, not tuple, so this function\n takes all the axes to be operated on and combines them into the\n first dimension of the array so that we can then use axis=0\n<END>", "<BEGIN>\n## `_nanmean`", "Bottleneck nanmean function that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the daofind_marginal_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the daofind_marginal_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. ...
Fit 1D Gaussians, defined from the marginal x/y kernel distributions, to the marginal x/y distributions of the original (unconvolved) image. These fits are used calculate the star centroid and roundness ("GROUND") properties. Parameters ---------- axis : {0, 1},...
"Fit 1D Gaussians, defined from the marginal x/y kernel\n distributions, to the marginal x/y distributions of the original\n (unconvolved) image.\n\n These fits are used calculate the star centroid and roundness\n (\"GROUND\") properties.\n\n Parameters\n ----------\n ax...
1,397
true
astropy/photutils
daofind_marginal_fit
27,042
LDU_FT/nocarryr/python-dispatch/acquire
LDU_FT
[ "<BEGIN>\n## `register_event`", "Registers new events after instance creation", " Args:\n *names (str): Name or names of the events to register\n<END>", "<BEGIN>\n## `bind`", "Subscribes to events or to :class:`~pydispatch.properties.Property` updates", " Keyword arguments are use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acquire API. 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 acquire API. 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...
Acquire the :attr:`lock` Args: blocking (bool): See :meth:`threading.Lock.acquire` timeout (float): See :meth:`threading.Lock.acquire` Returns: bool: :obj:`True` if the lock was acquired, otherwise :obj:`False`
"Acquire the :attr:`lock`\n\n Args:\n blocking (bool): See :meth:`threading.Lock.acquire`\n timeout (float): See :meth:`threading.Lock.acquire`\n\n Returns:\n bool: :obj:`True` if the lock was acquired, otherwise :obj:`False`"
89
false
nocarryr/python-dispatch
acquire
27,043
LDU_FT/tanghaibao/jcvi/estimate
LDU_FT
[ "<BEGIN>\n## `patience_sort`", "Patience sort an iterable, xs.", " This function generates a series of pairs (x, pile), where \"pile\"\n is the 0-based index of the pile \"x\" should be placed on top of.\n Elements of \"xs\" must be less-than comparable.\n<END>", "<BEGIN>\n## `longest_monotonic_subse...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the estimate API. 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 estimate API. 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...
%prog estimate gaps.bed all.spans.bed all.mates Estimate gap sizes based on mate positions and library insert sizes.
"%prog estimate gaps.bed all.spans.bed all.mates\n\n Estimate gap sizes based on mate positions and library insert sizes."
3,304
true
tanghaibao/jcvi
estimate
27,044
LDU_FT/guaix-ucm/pyemir/islitlet_progress
LDU_FT
[ "<BEGIN>\n## `merge2images`", "Merge 2 EMIR images, averaging the common region.", " Parameters\n ----------\n hdu1 : HDUList object\n Input image #1.\n hdu2 : HDUList object\n Input image #2.\n debugplot : int\n Determines whether intermediate computations and/or plots\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the islitlet_progress API. 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 islitlet_progress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Auxiliary function to print out progress in loop of slitlets. Parameters ---------- islitlet : int Current slitlet number. islitlet_max : int Maximum slitlet number.
"Auxiliary function to print out progress in loop of slitlets.\n\n Parameters\n ----------\n islitlet : int\n Current slitlet number.\n islitlet_max : int\n Maximum slitlet number."
282
false
guaix-ucm/pyemir
islitlet_progress
27,045
LDU_FT/Calysto/calysto/connectAt
LDU_FT
[ "<BEGIN>\n## `setCoords`", "Set coordinates of window to run from (x1,y1) in the\n lower-left corner to (x2,y2) in the upper-right corner.\n<END>", "<BEGIN>\n## `convert`", "png, ps, pdf, gif, jpg, svg\n returns image in format as bytes\n<END>", "<BEGIN>\n## `getPixels`", "Return a stream of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connectAt API. 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 connectAt API. 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...
Connects two layers by instantiating an instance of Connection class. Allows a position number, indicating the ordering of the connection.
"Connects two layers by instantiating an instance of Connection\n class. Allows a position number, indicating the ordering of\n the connection."
236
false
Calysto/calysto
connectAt
27,046
LDU_FT/mardix/ses-mailer/render
LDU_FT
[ "<BEGIN>\n## `_get_template`", "Retrieve the cached version of the template\n<END>", "<BEGIN>\n## `render_blocks`", "To render all the blocks\n :param template_name: The template file name\n :param context: **kwargs context to render\n :retuns dict: of all the blocks with block_name as ke...
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 ...
TO render a block in the template :param template_name: the template file name :param block: the name of the block within {% block $block_name %} :param context: **kwargs context to render :returns string: of rendered content
"TO render a block in the template\n :param template_name: the template file name\n :param block: the name of the block within {% block $block_name %}\n :param context: **kwargs context to render\n :returns string: of rendered content"
28
false
mardix/ses-mailer
render
27,047
LDU_FT/roamanalytics/mittens/_format_param_value
LDU_FT
[ "<BEGIN>\n## `_apply_updates`", "Apply AdaGrad update to parameters.", " Parameters\n ----------\n gradients", " Returns\n -------\n<END>", "<BEGIN>\n## `get_step`", "Computes the 'step' to take for the next gradient descent update.", " Returns the step rather t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_param_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_param_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Wraps string values in quotes, and returns as 'key=value'.
"Wraps string values in quotes, and returns as 'key=value'."
47
false
roamanalytics/mittens
_format_param_value
27,048
LDU_FT/gouthambs/Flask-Blogging/init_app
LDU_FT
[ "<BEGIN>\n## `init_app`", "Initialize the engine.", " :param app: The app to use\n :type app: Object\n :param storage: The blog storage instance that implements the\n :type storage: Object\n :param cache: (Optional) A Flask-Cache object to enable caching\n :type cache: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Initialize the engine. :param app: The app to use :type app: Object :param storage: The blog storage instance that implements the :type storage: Object :param cache: (Optional) A Flask-Cache object to enable caching :type cache: Object ``Storage`` class interfac...
"Initialize the engine.\n\n :param app: The app to use\n :type app: Object\n :param storage: The blog storage instance that implements the\n :type storage: Object\n :param cache: (Optional) A Flask-Cache object to enable caching\n :type cache: Object\n ``Storage`` class...
53
false
gouthambs/Flask-Blogging
init_app
27,049
LDU_FT/dlecocq/nsq-py/json_wrap
LDU_FT
[ "<BEGIN>\n## `pack_iterable`", "Pack an iterable of messages in the TCP protocol format\n<END>", "<BEGIN>\n## `hexify`", "Print out printable characters, but others in hex\n<END>", "<BEGIN>\n## `distribute`", "Generator for (count, object) tuples that distributes count evenly among\n the provided objec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_wrap API. 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 json_wrap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the json content of a function that returns a request
"Return the json content of a function that returns a request"
54
false
dlecocq/nsq-py
json_wrap
27,050
LDU_FT/Roastero/freshroastsr700/update_data_run
LDU_FT
[ "<BEGIN>\n## `fan_speed`", "Verifies the value is between 1 and 9 inclusively.\n<END>", "<BEGIN>\n## `heat_setting`", "Verifies that the heat setting is between 0 and 3.\n<END>", "<BEGIN>\n## `heater_level`", "Verifies that the heater_level is between 0 and heater_segments.\n Can only be called ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_data_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_data_run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
This is the thread that listens to an event from the comm process to execute the update_data_func callback in the context of the main process.
"This is the thread that listens to an event from\n the comm process to execute the update_data_func callback\n in the context of the main process."
61
false
Roastero/freshroastsr700
update_data_run
27,051
LDU_FT/zeroSteiner/AdvancedHTTPServer/call
LDU_FT
[ "<BEGIN>\n## `resolve_ssl_protocol_version`", "Look up an SSL protocol version by name. If *version* is not specified, then\n\tthe strongest protocol available will be returned.", "\t:param str version: The name of the version to look up.\n\t:return: A protocol constant from the :py:mod:`ssl` module.\n\t:rtype:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Issue a call to the remote end point to execute the specified procedure. :param str method: The name of the remote procedure to execute. :return: The return value from the remote function.
"Issue a call to the remote end point to execute the specified\n\t\tprocedure.\n\n\t\t:param str method: The name of the remote procedure to execute.\n\t\t:return: The return value from the remote function."
102
false
zeroSteiner/AdvancedHTTPServer
call
27,052
LDU_FT/Damgaard/PyImgur/download
LDU_FT
[ "<BEGIN>\n## `convert_general`", "Take a python object and convert it to the format Imgur expects.\n<END>", "<BEGIN>\n## `to_imgur_format`", "Convert the parameters to the format Imgur expects.\n<END>", "<BEGIN>\n## `_get_album_or_image`", "Return a gallery image/album depending on what the json represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API. 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 download API. 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...
Download the image. :param path: The image will be downloaded to the folder specified at path, if path is None (default) then the current working directory will be used. :param name: The name the image will be stored as (not including file extension). If name is None...
"Download the image.\n\n :param path: The image will be downloaded to the folder specified at\n path, if path is None (default) then the current working directory\n will be used.\n :param name: The name the image will be stored as (not including file\n extension). If name ...
139
false
Damgaard/PyImgur
download
27,053
LDU_FT/avalente/appmetrics/kurtosis
LDU_FT
[ "<BEGIN>\n## `notify`", "Increment or decrement the value, according to the given value's sign", " The value should be an integer, an attempt to cast it to integer will be made\n<END>", "<BEGIN>\n## `new_metric`", "Create a new metric of the given class.", " Raise DuplicateMetricError if the giv...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kurtosis API. 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 kurtosis API. 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...
Return the kurtosis of the data's distribution
"Return the kurtosis of the data's distribution"
120
false
avalente/appmetrics
kurtosis
27,054
LDU_FT/acroz/pylivy/get_session
LDU_FT
[ "<BEGIN>\n## `start`", "Create the remote Spark session and wait for it to be ready.\n<END>", "<BEGIN>\n## `run`", "Run some code in the managed Spark session.", " :param code: The code to run.\n<END>", "<BEGIN>\n## `read`", "Evaluate and retrieve a Spark dataframe in the managed session.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_session API. 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_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get information about a session. :param session_id: The ID of the session.
"Get information about a session.\n\n :param session_id: The ID of the session."
34
false
acroz/pylivy
get_session
27,055
LDU_FT/snowblink14/smatch/compute_files
LDU_FT
[ "<BEGIN>\n## `build_arg_parser`", "Build an argument parser using argparse. Use it when python version is 2.7 or later.\n<END>", "<BEGIN>\n## `build_arg_parser2`", "Build an argument parser using optparse. Use it when python version is 2.5 or 2.6.\n<END>", "<BEGIN>\n## `get_best_match`", "Get the highest ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_files API. 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 compute_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Compute the smatch scores for a file list between two users Args: user1: user 1 name user2: user 2 name file_list: file list dir_pre: the file location prefix start_num: the number of restarts in smatch Returns: smatch f score.
"Compute the smatch scores for a file list between two users\n Args:\n user1: user 1 name\n user2: user 2 name\n file_list: file list\n dir_pre: the file location prefix\n start_num: the number of restarts in smatch\n Returns:\n smatch f score."
54
false
snowblink14/smatch
compute_files
27,056
LDU_FT/d0c-s4vage/pfp/_handle_func_decl
LDU_FT
[ "<BEGIN>\n## `instantiate`", "Create a ParamList instance for actual interpretation", " :args: TODO\n :returns: A ParamList object\n<END>", "<BEGIN>\n## `int3`", "Define the ``Int3()`` function in the interpreter. Calling\n ``Int3()`` will drop the user into an interactive debugger.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_func_decl API. 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 _handle_func_decl API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Handle FuncDecl nodes :node: TODO :scope: TODO :ctxt: TODO :stream: TODO :returns: TODO
"Handle FuncDecl nodes\n\n :node: TODO\n :scope: TODO\n :ctxt: TODO\n :stream: TODO\n :returns: TODO"
383
false
d0c-s4vage/pfp
_handle_func_decl
27,057
LDU_FT/limpyd/redis-limpyd-extensions/srem
LDU_FT
[ "<BEGIN>\n## `get_name_for`", "Return the name for the current dynamic field, accepting a limpyd\n instance for the dynamic part\n<END>", "<BEGIN>\n## `_attach_to_model`", "Check that the model can handle dynamic fields\n<END>", "<BEGIN>\n## `pattern`", "Return the pattern used to check if a field ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the srem API. 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 srem API. 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...
Do a "set" call with self.instance as parameter for each value. Values must be primary keys of the related model.
"Do a \"set\" call with self.instance as parameter for each value. Values\n must be primary keys of the related model."
46
false
limpyd/redis-limpyd-extensions
srem
27,058
LDU_FT/krukas/Trionyx/create_celerybeat_schedule
LDU_FT
[ "<BEGIN>\n## `auto_load_model_menu`", "Auto load model menu entries, can be configured in `trionyx.config.ModelConfig`:", " - menu_name\n - menu_icon\n - menu_order\n<END>", "<BEGIN>\n## `add_item`", "Add new menu item to menu", " :param path: Path of menu\n :param name:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_celerybeat_schedule API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_celerybeat_schedule API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Create Celery beat schedule by get schedule from every installed app
"Create Celery beat schedule by get schedule from every installed app"
88
false
krukas/Trionyx
create_celerybeat_schedule
27,059
LDU_FT/elmotec/massedit/set_functions
LDU_FT
[ "<BEGIN>\n## `get_function`", "Retrieve the function defined by the function_name.", " Arguments:\n fn_name: specification of the type module:function_name.\n<END>", "<BEGIN>\n## `parse_command_line`", "Parse command line argument. See -h option.", " Arguments:\n argv: arguments on the com...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_functions API. 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 set_functions API. 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...
Check functions passed as argument and set them to be used.
"Check functions passed as argument and set them to be used."
43
false
elmotec/massedit
set_functions
27,060
LDU_FT/pygobject/pgi/cache_return
LDU_FT
[ "<BEGIN>\n## `get_backend`", "Returns the backend by name or raises KeyError\n<END>", "<BEGIN>\n## `set_backend`", "Set a prefered ffi backend (cffi, ctypes).", " set_backend() -- default\n set_backend(\"cffi\") -- cffi first, others as fallback\n set_backend(\"ctypes\") -- ctypes first, others as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_return API. 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 cache_return API. 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...
Cache the return value of a function without arguments
"Cache the return value of a function without arguments"
363
false
pygobject/pgi
cache_return
27,061
LDU_FT/orbingol/NURBS-Python/split_curve
LDU_FT
[ "<BEGIN>\n## `bspline_to_nurbs`", "Converts non-rational parametric shapes to rational ones.", " :param obj: B-Spline shape\n :type obj: BSpline.Curve, BSpline.Surface or BSpline.Volume\n :return: NURBS shape\n :rtype: NURBS.Curve, NURBS.Surface or NURBS.Volume\n :raises: TypeError\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_curve API. 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 split_curve API. 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...
Splits the curve at the input parametric coordinate. This method splits the curve into two pieces at the given parametric coordinate, generates two different curve objects and returns them. It does not modify the input curve. Keyword Arguments: * ``find_span_func``: FindSpan implementation. *Defau...
"Splits the curve at the input parametric coordinate.\n\n This method splits the curve into two pieces at the given parametric coordinate, generates two different\n curve objects and returns them. It does not modify the input curve.\n\n Keyword Arguments:\n * ``find_span_func``: FindSpan implementation....
809
false
orbingol/NURBS-Python
split_curve
27,062
LDU_FT/bennylope/django-organizations/activate
LDU_FT
[ "<BEGIN>\n## `invitation_backend`", "Returns a specified invitation backend", " Args:\n backend: dotted path to the invitation backend class\n namespace: URL namespace to use", " Returns:\n an instance of an InvitationBackend\n<END>", "<BEGIN>\n## `registration_backend`", "Retur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the activate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Updates the `invitee` value and saves the instance Provided as a way of extending the behavior. Args: user: the newly created user Returns: the linking organization user
"Updates the `invitee` value and saves the instance\n\n Provided as a way of extending the behavior.\n\n Args:\n user: the newly created user\n\n Returns:\n the linking organization user"
90
false
bennylope/django-organizations
activate
27,063
LDU_FT/dcwatson/bbcode/_transform
LDU_FT
[ "<BEGIN>\n## `render_html`", "A module-level convenience method that creates a default bbcode parser,\n and renders the input string as HTML.\n<END>", "<BEGIN>\n## `add_formatter`", "Installs a render function for the specified tag name. The render function\n should have the following signature:", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Transforms the input string based on the options specified, taking into account whether the option is enabled globally for this parser.
"Transforms the input string based on the options specified, taking into account\n whether the option is enabled globally for this parser."
36
false
dcwatson/bbcode
_transform
27,064
LDU_FT/infothrill/python-launchd/discover_filename
LDU_FT
[ "<BEGIN>\n## `launchctl`", "A minimal wrapper to call the launchctl binary and capture the output\n :param subcommand: string\n<END>", "<BEGIN>\n## `discover_filename`", "Check the filesystem for the existence of a .plist file matching the job label.\n Optionally specify one or more scopes to search (de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover_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 discover_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...
Check the filesystem for the existence of a .plist file matching the job label. Optionally specify one or more scopes to search (default all). :param label: string :param scope: tuple or list or oneOf(USER, USER_ADMIN, DAEMON_ADMIN, USER_OS, DAEMON_OS)
"Check the filesystem for the existence of a .plist file matching the job label.\n Optionally specify one or more scopes to search (default all).\n\n :param label: string\n :param scope: tuple or list or oneOf(USER, USER_ADMIN, DAEMON_ADMIN, USER_OS, DAEMON_OS)"
18
false
infothrill/python-launchd
discover_filename
27,065
LDU_FT/mrallen1/pygett/get_file
LDU_FT
[ "<BEGIN>\n## `get`", "**get**", " Make a GET call to a remote endpoint", " Input:\n * An endpoint relative to the ``base_url``", " Output:\n * A :py:mod:`pygett.request.GettResponse` object\n<END>", "<BEGIN>\n## `post`", "**post**", " Make a POST call ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Get a specific file. Does not require authentication. Input: * A sharename * A fileid - must be an integer Output: * A :py:mod:`pygett.files.GettFile` object Example:: file = client.get_file("4ddfds", 0)
"Get a specific file. Does not require authentication.\n\n Input:\n * A sharename\n * A fileid - must be an integer\n\n Output:\n * A :py:mod:`pygett.files.GettFile` object\n\n Example::\n\n file = client.get_file(\"4ddfds\", 0)"
117
false
mrallen1/pygett
get_file
27,066
LDU_FT/gbiggs/rtctree/is_zombie
LDU_FT
[ "<BEGIN>\n## `build_attr_string`", "Build a string that will turn any ANSI shell output the desired\r\n colour.\r", " attrs should be a list of keys into the term_attributes table.\n<END>", "<BEGIN>\n## `get_num_columns_and_rows`", "Given a list of string widths, a width of the minimum gap to place\r\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_zombie API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_zombie API. 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...
Is the node pointed to by @ref path a zombie object?
"Is the node pointed to by @ref path a zombie object?"
285
false
gbiggs/rtctree
is_zombie
27,067
LDU_FT/lobocv/anonymoususage/start_watcher
LDU_FT
[ "<BEGIN>\n## `get_average`", "Return the statistic's count divided by the number of rows in the table. If it cannot be calculated return\n `default`.\n :return: The average count value (count / table rows) or `default` if it cannot be calculated.\n<END>", "<BEGIN>\n## `elapsed_time_s`", "Return ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_watcher API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_watcher API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Start the watcher thread that tries to upload usage statistics.
"Start the watcher thread that tries to upload usage statistics."
60
false
lobocv/anonymoususage
start_watcher
27,068
LDU_FT/cloudendpoints/endpoints-python/get_verified_jwt
LDU_FT
[ "<BEGIN>\n## `_GetFieldAttributes`", "Decomposes field into the needed arguments to pass to the constructor.", " This can be used to create copies of the field or to compare if two fields\n are \"equal\" (since __eq__ is not implemented on messages.Field).", " Args:\n field: A ProtoRPC message field (po...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_verified_jwt API. 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_verified_jwt API. 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 function will extract, verify, and parse a JWT token from the Authorization header or access_token query argument. The JWT is assumed to contain an issuer and audience claim, as well as issued-at and expiration timestamps. The signature will be cryptographically verified, the claims and timestamps will be...
"This function will extract, verify, and parse a JWT token from the\n Authorization header or access_token query argument.\n\n The JWT is assumed to contain an issuer and audience claim, as well\n as issued-at and expiration timestamps. The signature will be\n cryptographically verified, the claims and timestamps w...
801
false
cloudendpoints/endpoints-python
get_verified_jwt
27,069
LDU_FT/kajala/django-jacc/resend_invoices
LDU_FT
[ "<BEGIN>\n## `balance`", "Returns account balance after this entry.\n :return: Decimal\n<END>", "<BEGIN>\n## `get_balance`", "Returns account balance before specified datetime (excluding entries on the datetime).\n :param t: datetime\n :return: Decimal\n<END>", "<BEGIN>\n## `needs_settl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resend_invoices API. 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 resend_invoices API. 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...
Marks invoices with as un-sent. :param modeladmin: :param request: :param queryset: :return:
"Marks invoices with as un-sent.\n :param modeladmin:\n :param request:\n :param queryset:\n :return:"
31
false
kajala/django-jacc
resend_invoices
27,070
LDU_FT/LudovicRousseau/pyscard/OnAddCards
LDU_FT
[ "<BEGIN>\n## `translateprotocolmask`", "Translate CardConnection protocol mask into PCSC protocol mask.\n<END>", "<BEGIN>\n## `translateprotocolheader`", "Translate protocol into PCSC protocol header.\n<END>", "<BEGIN>\n## `connect`", "Connect to the card.", " If protocol is not specified, connec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the OnAddCards API. 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 OnAddCards API. 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...
Called when a card is inserted. Adds the smart card child to the reader node.
"Called when a card is inserted.\n Adds the smart card child to the reader node."
164
false
LudovicRousseau/pyscard
OnAddCards
27,071
LDU_FT/lawsie/guizero/_call_wrapper
LDU_FT
[ "<BEGIN>\n## `value_text`", "Sets or returns the option selected in a ButtonGroup by its text value.\n<END>", "<BEGIN>\n## `resize`", "Resizes the widget.", " :param int width:\n The width of the widget.", " :param int height:\n The height of the widget.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _call_wrapper API. 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 _call_wrapper API. 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...
Fired by tk.after, gets the callback and either executes the function and cancels or repeats
"Fired by tk.after, gets the callback and either executes the function and cancels or repeats"
173
false
lawsie/guizero
_call_wrapper
27,072