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/ajenhl/tacl/_handle_witnesses
LDU_FT
[ "<BEGIN>\n## `_format_content`", "Returns `content` with consecutive spaces converted to non-break\n spaces, and linebreak converted into HTML br elements.", " :param content: text to format\n :type content: `str`\n :rtype: `str`\n<END>", "<BEGIN>\n## `_prepare_text`", "Returns `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_witnesses API. 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_witnesses API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns `root` with a witness list added to the TEI header and @wit values changed to references.
"Returns `root` with a witness list added to the TEI header and @wit\n values changed to references."
463
false
ajenhl/tacl
_handle_witnesses
7,773
LDU_FT/pennersr/django-allauth/filter_users_by_email
LDU_FT
[ "<BEGIN>\n## `_stash_user`", "Now, be aware, the following is quite ugly, let me explain:", " Even if the user credentials match, the authentication can fail because\n Django's default ModelBackend calls user_can_authenticate(), which\n checks `is_active`. Now, earlier versions of allauth d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_users_by_email 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 filter_users_by_email 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 list of users by email address Typically one, at most just a few in length. First we look through EmailAddress table, than customisable User model table. Add results together avoiding SQL joins and deduplicate.
"Return list of users by email address\n\n Typically one, at most just a few in length. First we look through\n EmailAddress table, than customisable User model table. Add results\n together avoiding SQL joins and deduplicate."
130
false
pennersr/django-allauth
filter_users_by_email
7,774
LDU_FT/guma44/GEOparse/parse_GDS_columns
LDU_FT
[ "<BEGIN>\n## `download`", "Download SRA files.", " Returns:\n :obj:`list` of :obj:`str`: List of downloaded files.\n<END>", "<BEGIN>\n## `add_log_file`", "Add log file.", " Args:\n path (:obj:`str`): Path to the log file.\n<END>", "<BEGIN>\n## `_sra_download_worker`", "A wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_GDS_columns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_GDS_columns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parse list of line with columns description from SOFT file of GDS. Args: lines (:obj:`Iterable`): Iterator over the lines. subsets (:obj:`dict` of :obj:`GEOparse.GDSSubset`): Subsets to use. Returns: :obj:`pandas.DataFrame`: Columns description.
"Parse list of line with columns description from SOFT file of GDS.\n\n Args:\n lines (:obj:`Iterable`): Iterator over the lines.\n subsets (:obj:`dict` of :obj:`GEOparse.GDSSubset`): Subsets to use.\n\n Returns:\n :obj:`pandas.DataFrame`: Columns description."
142
false
guma44/GEOparse
parse_GDS_columns
7,775
LDU_FT/theonion/djes/from_es
LDU_FT
[ "<BEGIN>\n## `stringify`", "Turns all dictionary values into strings\n<END>", "<BEGIN>\n## `batched_queryset`", "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 loa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_es API. 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 from_es API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a Django model instance, using a document from Elasticsearch
"Returns a Django model instance, using a document from Elasticsearch"
30
false
theonion/djes
from_es
7,776
LDU_FT/toumorokoshi/transmute-core/url_spec
LDU_FT
[ "<BEGIN>\n## `from_argspec`", "retrieve a FunctionSignature object\n from the argspec and the annotations passed.\n<END>", "<BEGIN>\n## `split_args`", "given a dictionary of arguments, split them into\n args and kwargs", " note: this destroys the arg_dict passed. if you need it,\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
convert the transmute_path to a tornado compatible regex, and return a tornado url object.
"convert the transmute_path\n to a tornado compatible regex,\n and return a tornado url object."
100
false
toumorokoshi/transmute-core
url_spec
7,777
LDU_FT/matrix-org/matrix-python-sdk/send_html
LDU_FT
[ "<BEGIN>\n## `set_user_profile`", "Set user profile within a room.", " This sets displayname and avatar_url for the logged in user only in a\n specific room. It does not change the user's global user profile.\n<END>", "<BEGIN>\n## `send_html`", "Send an html formatted message.", " Arg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Send an html formatted message. Args: html (str): The html formatted message to be sent. body (str): The unformatted body of the message to be sent.
"Send an html formatted message.\n\n Args:\n html (str): The html formatted message to be sent.\n body (str): The unformatted body of the message to be sent."
304
false
matrix-org/matrix-python-sdk
send_html
7,778
LDU_FT/calston/rhumba/fork
LDU_FT
[ "<BEGIN>\n## `getBody`", "Make an HTTP request and return the body\n<END>", "<BEGIN>\n## `clusterStatus`", "Returns a dict of cluster nodes and their status information\n<END>", "<BEGIN>\n## `getResult`", "Retrieve the result of a job from its ID\n<END>", "<BEGIN>\n## `clusterStatus`", "Returns a dict...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fork API. 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 fork API. 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...
fork Provides a deferred wrapper function with a timeout function :param executable: Executable :type executable: str. :param args: Tupple of arguments :type args: tupple. :param env: Environment dictionary :type env: dict. :param timeout: Kill the child process if timeout is exceeded ...
"fork\n Provides a deferred wrapper function with a timeout function\n\n :param executable: Executable\n :type executable: str.\n :param args: Tupple of arguments\n :type args: tupple.\n :param env: Environment dictionary\n :type env: dict.\n :param timeout: Kill the child process if timeout is ...
19
false
calston/rhumba
fork
7,779
LDU_FT/jingming/spotify/auth_string
LDU_FT
[ "<BEGIN>\n## `auth_string`", "Get the auth string. If the token is expired and auto refresh enabled,\n a new token will be fetched", " :return: the auth string\n :rtype: str\n<END>", "<BEGIN>\n## `tracks`", "Tracks list context", " :return: Tracks list context\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get the auth string. If the token is expired and auto refresh enabled, a new token will be fetched :return: the auth string :rtype: str
"Get the auth string. If the token is expired and auto refresh enabled,\n a new token will be fetched\n\n :return: the auth string\n :rtype: str"
18
false
jingming/spotify
auth_string
7,780
LDU_FT/contentful-labs/contentful.py/convert_value
LDU_FT
[ "<BEGIN>\n## `resolve_links`", "Attempt to resolve all internal links (locally).", " In case the linked resources are found either as members of the array or within\n the `includes` element, those will be replaced and reference the actual resources.\n No network calls will be performed.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Given a :class:`.fields.Field` and a value, ensure that the value matches the given type, otherwise attempt to convert it. :param value: field value. :param field: :class:`.fields.Field` instance. :return: Result value.
"Given a :class:`.fields.Field` and a value, ensure that the value matches the given type, otherwise\n attempt to convert it.\n\n :param value: field value.\n :param field: :class:`.fields.Field` instance.\n :return: Result value."
66
false
contentful-labs/contentful.py
convert_value
7,781
LDU_FT/ntucllab/libact/report_entry_label
LDU_FT
[ "<BEGIN>\n## `report_entry_label`", "Return the best label of the asked entry.", " Parameters\n ----------\n entry_id : int\n The index of the sample to ask.", " Returns\n -------\n label: object\n The best label of the given sample.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report_entry_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report_entry_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return the best label of the asked entry. Parameters ---------- entry_id : int The index of the sample to ask. Returns ------- label: object The best label of the given sample.
"Return the best label of the asked entry.\n\n Parameters\n ----------\n entry_id : int\n The index of the sample to ask.\n\n Returns\n -------\n label: object\n The best label of the given sample."
128
false
ntucllab/libact
report_entry_label
7,782
LDU_FT/stormpath/stormpath-django/_get_group_difference
LDU_FT
[ "<BEGIN>\n## `clean_email`", "Check if email exists on Stormpath.", " The email address is unique across all Stormpath applications.\n The username is only unique within a Stormpath application.\n<END>", "<BEGIN>\n## `create_provider_directory`", "Helper function for creating a provider direct...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_group_difference API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_group_difference API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Helper method for gettings the groups that are present in the local db but not on stormpath and the other way around.
"Helper method for gettings the groups that\n are present in the local db but not on stormpath\n and the other way around."
25
false
stormpath/stormpath-django
_get_group_difference
7,783
LDU_FT/django-danceschool/django-danceschool/get_initial
LDU_FT
[ "<BEGIN>\n## `get_context_data`", "Add the list of registrations for the given series\n<END>", "<BEGIN>\n## `get_context_data`", "The URL to redirect to can be explicitly specified, or it can come\n from the site session history, or it can be the default admin success page\n as specified in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_initial API. 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_initial API. 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...
If the user already submitted the form and decided to return from the confirmation page, then re-populate the form
"If the user already submitted the form and decided to return from the\n confirmation page, then re-populate the form"
337
false
django-danceschool/django-danceschool
get_initial
7,784
LDU_FT/skorch-dev/skorch/_get_span
LDU_FT
[ "<BEGIN>\n## `get_data`", "Get synthetic classification data with n_samples samples.\n<END>", "<BEGIN>\n## `get_model`", "Get a multi-layer perceptron model.", " Optionally, put it in a pipeline that scales the data.\n<END>", "<BEGIN>\n## `net`", "Train an MLP classifier on synthetic data.", " n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_span API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_span API. 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 span of the first group that matches the pattern.
"Return the span of the first group that matches the pattern."
394
false
skorch-dev/skorch
_get_span
7,785
LDU_FT/JonLiuFYI/pkdx/get_ability_desc
LDU_FT
[ "<BEGIN>\n## `description`", "Return a description of the given Pokemon.\n<END>", "<BEGIN>\n## `get_ability_desc`", "Return the description matching the given ability name. Check abilities.json in the same directory.\n<END>", "<BEGIN>\n## `get_move_data`", "Return the index number for the given move name....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ability_desc API. 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_ability_desc API. 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 the description matching the given ability name. Check abilities.json in the same directory.
"Return the description matching the given ability name. Check abilities.json in the same directory."
10
false
JonLiuFYI/pkdx
get_ability_desc
7,786
LDU_FT/Parsely/probably/compute_refresh_time
LDU_FT
[ "<BEGIN>\n## `_get_rho`", "Return the least signifiant bit\n O(N) in the worst case\n<END>", "<BEGIN>\n## `hash64`", "Wrapper around mmh3.hash64 to get us single 64-bit value.", " This also does the extra work of ensuring that we always treat the\n returned values as big-endian unsigned lon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_refresh_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_refresh_time API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Compute the refresh period for the given expiration delay
"Compute the refresh period for the given expiration delay"
33
false
Parsely/probably
compute_refresh_time
7,787
LDU_FT/Shoobx/xmldiff/diff_cleanupSemanticLossless
LDU_FT
[ "<BEGIN>\n## `diff_main`", "Find the differences between two texts. Simplifies the problem by\n stripping any common prefix or suffix off the texts before diffing.", " Args:\n text1: Old string to be diffed.\n text2: New string to be diffed.\n checklines: Optional speedup flag. If prese...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diff_cleanupSemanticLossless 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 diff_cleanupSemanticLossless API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Look for single edits surrounded on both sides by equalities which can be shifted sideways to align the edit to a word boundary. e.g: The c<ins>at c</ins>ame. -> The <ins>cat </ins>came. Args: diffs: Array of diff tuples.
"Look for single edits surrounded on both sides by equalities\n which can be shifted sideways to align the edit to a word boundary.\n e.g: The c<ins>at c</ins>ame. -> The <ins>cat </ins>came.\n\n Args:\n diffs: Array of diff tuples."
146
false
Shoobx/xmldiff
diff_cleanupSemanticLossless
7,788
LDU_FT/stephan-mclean/KickassTorrentsAPI/search
LDU_FT
[ "<BEGIN>\n## `_get_soup`", "Return BeautifulSoup object for given page\n<END>", "<BEGIN>\n## `search`", "Return a search result for term in category. Can also be\n\t\tsorted and span multiple pages.\n<END>", "<BEGIN>\n## `popular`", "Return a search result containing torrents appearing\n\t\ton the KAT hom...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. 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 search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return a search result for term in category. Can also be sorted and span multiple pages.
"Return a search result for term in category. Can also be\n\t\tsorted and span multiple pages."
16
false
stephan-mclean/KickassTorrentsAPI
search
7,789
LDU_FT/nginxinc/crossplane/_lex_file_object
LDU_FT
[ "<BEGIN>\n## `build_files`", "Uses a full nginx config payload (output of crossplane.parse) to build\n config files, then writes those files to disk.\n<END>", "<BEGIN>\n## `_lex_file_object`", "Generates token tuples from an nginx config file object", " Yields 3-tuples like (token, lineno, quoted)\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lex_file_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lex_file_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generates token tuples from an nginx config file object Yields 3-tuples like (token, lineno, quoted)
"Generates token tuples from an nginx config file object\n\n Yields 3-tuples like (token, lineno, quoted)"
20
false
nginxinc/crossplane
_lex_file_object
7,790
LDU_FT/pawelad/pymonzo/_get_response
LDU_FT
[ "<BEGIN>\n## `_parse_special_fields`", "Helper method that parses special fields to Python objects", " :param data: response from Monzo API request\n :type data: dict\n<END>", "<BEGIN>\n## `_save_token_on_disk`", "Helper function that saves the token on disk\n<END>", "<BEGIN>\n## `_get_oauth...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_response API. 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_response API. 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...
Helper method to handle HTTP requests and catch API errors :param method: valid HTTP method :type method: str :param endpoint: API endpoint :type endpoint: str :param params: extra parameters passed with the request :type params: dict :returns: API response ...
"Helper method to handle HTTP requests and catch API errors\n\n :param method: valid HTTP method\n :type method: str\n :param endpoint: API endpoint\n :type endpoint: str\n :param params: extra parameters passed with the request\n :type params: dict\n :returns: API respo...
40
false
pawelad/pymonzo
_get_response
7,791
LDU_FT/log2timeline/dfdatetime/CopyToDateTimeString
LDU_FT
[ "<BEGIN>\n## `_GetNormalizedTimestamp`", "Retrieves the normalized timestamp.", " Returns:\n decimal.Decimal: normalized timestamp, which contains the number of\n seconds since January 1, 1970 00:00:00 and a fraction of second used\n for increased precision, or None if the normalized t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CopyToDateTimeString 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 CopyToDateTimeString API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Copies the Cocoa timestamp to a date and time string. Returns: str: date and time value formatted as: YYYY-MM-DD hh:mm:ss.###### or None if the timestamp cannot be copied to a date and time string.
"Copies the Cocoa timestamp to a date and time string.\n\n Returns:\n str: date and time value formatted as: YYYY-MM-DD hh:mm:ss.###### or\n None if the timestamp cannot be copied to a date and time string."
244
false
log2timeline/dfdatetime
CopyToDateTimeString
7,792
LDU_FT/UniversalDevicesInc/polyglot-v2-python-interface/addNode
LDU_FT
[ "<BEGIN>\n## `init_interface`", "Grab the ~/.polyglot/.env file for variables\n If you are running Polyglot v2 on this same machine\n then it should already exist. If not create it.\n<END>", "<BEGIN>\n## `_connect`", "The callback for when the client receives a CONNACK response from the server.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addNode API. 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 addNode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Add a node to the NodeServer :param node: Dictionary of node settings. Keys: address, name, node_def_id, primary, and drivers are required.
"Add a node to the NodeServer\n\n :param node: Dictionary of node settings. Keys: address, name, node_def_id, primary, and drivers are required."
42
false
UniversalDevicesInc/polyglot-v2-python-interface
addNode
7,793
LDU_FT/Bachmann1234/diff-cover/_group_tokens
LDU_FT
[ "<BEGIN>\n## `_get_classes`", "Given a path and parsed xml_document provides class nodes\n with the relevant lines", " First, we look to see if xml_document contains a source\n node providing paths to search for", " If we don't have that we check each nodes filename attribute\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _group_tokens API. 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 _group_tokens API. 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...
Group tokens into snippet ranges. `token_stream` is a generator that produces `(token_type, value)` tuples, `range_list` is a list of `(start, end)` tuples representing the (inclusive) range of line numbers for each snippet. Assumes that `range_list` is an ascending order by s...
"Group tokens into snippet ranges.\n\n `token_stream` is a generator that produces\n `(token_type, value)` tuples,\n\n `range_list` is a list of `(start, end)` tuples representing\n the (inclusive) range of line numbers for each snippet.\n\n Assumes that `range_list` is an ascending o...
146
false
Bachmann1234/diff-cover
_group_tokens
7,794
LDU_FT/CTPUG/wafer/make_diff
LDU_FT
[ "<BEGIN>\n## `build_object`", "Override django-bakery to skip profiles that raise 404\n<END>", "<BEGIN>\n## `generate_schedule`", "Helper function which creates an ordered list of schedule days\n<END>", "<BEGIN>\n## `get_context_data`", "Allow adding a 'render_description' parameter\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_diff API. 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 make_diff API. 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...
Create the difference between the current revision and a previous version
"Create the difference between the current revision and a previous version"
72
false
CTPUG/wafer
make_diff
7,795
LDU_FT/facebook/watchman/from_socket
LDU_FT
[ "<BEGIN>\n## `_int_size`", "Return the smallest size int that can store the value\n<END>", "<BEGIN>\n## `loads`", "Deserialize a BSER-encoded blob.", " @param buf: The buffer to deserialize.\n @type buf: bytes", " @param mutable: Whether to return mutable results.\n @type mutable: bool", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_socket API. 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 from_socket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Create a new AIOClient using Unix transport and BSER Codec connecting to the specified socket. If the specified socket is None, then resolve the socket path automatically. This method also schedules the receive loop to run on the event loop. This method is a coroutine.
"Create a new AIOClient using Unix transport and BSER Codec\n connecting to the specified socket. If the specified socket is None,\n then resolve the socket path automatically.\n\n This method also schedules the receive loop to run on the event loop.\n\n This method is a coroutine."
93
false
facebook/watchman
from_socket
7,796
LDU_FT/contentful-labs/contentful.py/all
LDU_FT
[ "<BEGIN>\n## `resolve_links`", "Attempt to resolve all internal links (locally).", " In case the linked resources are found either as members of the array or within\n the `includes` element, those will be replaced and reference the actual resources.\n No network calls will be performed.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. 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 all API. 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...
Attempt to retrieve all available resources matching this request. :return: Result instance as returned by the :class:`.Dispatcher`.
"Attempt to retrieve all available resources matching this request.\n\n :return: Result instance as returned by the :class:`.Dispatcher`."
66
false
contentful-labs/contentful.py
all
7,797
LDU_FT/TUT-ARG/sed_eval/result_report_parameters
LDU_FT
[ "<BEGIN>\n## `result_report_overall`", "Report overall results", " Returns\n -------\n str\n result report in string format\n<END>", "<BEGIN>\n## `result_report_class_wise_average`", "Report class-wise averages", " Returns\n -------\n str\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result_report_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result_report_parameters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Report metric parameters Returns ------- str result report in string format
"Report metric parameters\n\n Returns\n -------\n str\n result report in string format"
268
false
TUT-ARG/sed_eval
result_report_parameters
7,798
LDU_FT/joestump/django-ajax/authenticate
LDU_FT
[ "<BEGIN>\n## `json_response`", "Wrap a view in JSON.", " This decorator runs the given function and looks out for ajax.AJAXError's,\n which it encodes into a proper HttpResponse object. If an unknown error\n is thrown it's encoded as a 500.", " All errors are then packaged up with an appropriate C...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Authenticate the AJAX request. By default any request to fetch a model is allowed for any user, including anonymous users. All other methods minimally require that the user is already logged in. Most likely you will want to lock down who can edit and delete various models. To d...
"Authenticate the AJAX request.\n\n By default any request to fetch a model is allowed for any user,\n including anonymous users. All other methods minimally require that\n the user is already logged in.\n\n Most likely you will want to lock down who can edit and delete various\n mode...
27
false
joestump/django-ajax
authenticate
7,799
LDU_FT/cuzzo/iw_parse/get_encryption
LDU_FT
[ "<BEGIN>\n## `get_quality`", "Gets the quality of a network / cell.\n @param string cell\n A network / cell from iwlist scan.", " @return string\n The quality of the network.\n<END>", "<BEGIN>\n## `get_signal_level`", "Gets the signal level of a network / cell.\n @param string cell\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_encryption API. 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_encryption API. 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...
Gets the encryption type of a network / cell. @param string cell A network / cell from iwlist scan. @return string The encryption type of the network.
"Gets the encryption type of a network / cell.\n @param string cell\n A network / cell from iwlist scan.\n\n @return string\n The encryption type of the network."
25
false
cuzzo/iw_parse
get_encryption
7,800
LDU_FT/kislyuk/argcomplete/rl_complete
LDU_FT
[ "<BEGIN>\n## `action_is_satisfied`", "Returns False if the parse would raise an error if no more arguments are given to this action, True otherwise.\n<END>", "<BEGIN>\n## `action_is_greedy`", "Returns True if action will necessarily consume the next argument.\n isoptional indicates whether the argument is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rl_complete API. 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 rl_complete API. 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...
Alternate entry point for using the argcomplete completer in a readline-based REPL. See also `rlcompleter <https://docs.python.org/2/library/rlcompleter.html#completer-objects>`_. Usage: .. code-block:: python import argcomplete, argparse, readline parser = argparse.Arg...
"Alternate entry point for using the argcomplete completer in a readline-based REPL. See also\n `rlcompleter <https://docs.python.org/2/library/rlcompleter.html#completer-objects>`_.\n Usage:\n\n .. code-block:: python\n\n import argcomplete, argparse, readline\n parser = argp...
28
false
kislyuk/argcomplete
rl_complete
7,801
LDU_FT/xym-tool/xym/extract_yang_model
LDU_FT
[ "<BEGIN>\n## `hexdump`", "Hexdump function by sbz and 7h3rAm on Github:\n (https://gist.github.com/7h3rAm/5603718).\n :param src: Source, the string to be shown in hexadecimal format\n :param length: Number of hex characters to print in one row\n :param sep: Unprintable characters representation\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_yang_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_yang_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Extracts one or more YANG models from an RFC or draft text string in which the models are specified. The function skips over page formatting (Page Headers and Footers) and performs basic YANG module syntax checking. In strict mode, the function also enforces the <CODE BEGINS> / <CODE END...
"Extracts one or more YANG models from an RFC or draft text string in\n which the models are specified. The function skips over page\n formatting (Page Headers and Footers) and performs basic YANG module\n syntax checking. In strict mode, the function also enforces the\n <CODE BEGINS> / <COD...
30
false
xym-tool/xym
extract_yang_model
7,802
LDU_FT/koszullab/instaGRAAL/external2internal
LDU_FT
[ "<BEGIN>\n## `estimate_parameters_rippe`", "estimation by least square optimization of Rippe parameters on the\n experimental data\n :param max_dist_kb:\n :param size_bin_kb:\n<END>", "<BEGIN>\n## `estimate_parameters`", "estimation by least square optimization of Rippe parameters on the\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the external2internal API. 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 external2internal API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Convert a series of external variables to internal variables
"Convert a series of external variables to internal variables"
116
false
koszullab/instaGRAAL
external2internal
7,803
LDU_FT/isogeo/isogeo-api-py-minsdk/keywords
LDU_FT
[ "<BEGIN>\n## `set_base_url`", "Set Isogeo base URLs according to platform.", " :param str platform: platform to use. Options:", " * prod [DEFAULT]\n * qa\n * int\n<END>", "<BEGIN>\n## `convert_uuid`", "Convert a metadata UUID to its URI equivalent. And conversely.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keywords API. 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 keywords API. 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...
Search for keywords within a specific thesaurus. :param str token: API auth token :param str thez_id: thesaurus UUID :param str query: search terms :param int offset: pagination start :param str order_by: sort criteria. Available values : - count.group, ...
"Search for keywords within a specific thesaurus.\n\n :param str token: API auth token\n :param str thez_id: thesaurus UUID\n :param str query: search terms\n :param int offset: pagination start\n :param str order_by: sort criteria. Available values :\n \n - count.gr...
154
false
isogeo/isogeo-api-py-minsdk
keywords
7,804
LDU_FT/robinagist/ezo/compile
LDU_FT
[ "<BEGIN>\n## `get_topic_sha3`", "takes an event block and returns a signature for sha3 hashing\n :param event_block:\n :return:\n<END>", "<BEGIN>\n## `info`", "Since this will always respond with height=0, Tendermint\n will resync this app from the begining\n<END>", "<BEGIN>\n## `check_tx`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
compiles the source code :param source: (string) - contract source code :param ezo: - ezo reference for Contract object creation :return: (list) compiled source
"compiles the source code\n\n :param source: (string) - contract source code\n :param ezo: - ezo reference for Contract object creation\n :return: (list) compiled source"
45
false
robinagist/ezo
compile
7,805
LDU_FT/mapillary/mapillary_tools/authenticate_with_email_and_pwd
LDU_FT
[ "<BEGIN>\n## `convert_from_gps_time`", "Convert gps time in ticks to standard time.\n<END>", "<BEGIN>\n## `upload`", "Upload local images to Mapillary\n Args:\n import_path: Directory path to where the images are stored.\n verbose: Print extra warnings and errors.\n skip_subfolders: Sk...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate_with_email_and_pwd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate_with_email_and_pwd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Authenticate the user by passing the email and password. This function avoids prompting the command line for user credentials and is useful for calling tools programmatically
"Authenticate the user by passing the email and password.\n This function avoids prompting the command line for user credentials and is useful for calling tools programmatically"
96
false
mapillary/mapillary_tools
authenticate_with_email_and_pwd
7,806
LDU_FT/ThreatConnect-Inc/tcex/document
LDU_FT
[ "<BEGIN>\n## `_print_results`", "Print the download results.", " Args:\n file (str): The filename.\n status (str): The file download status.\n<END>", "<BEGIN>\n## `_confirm_overwrite`", "Confirm overwrite of template files.", " Make sure the user would like to continue ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the document API. 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 document API. 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 the Document TI object. Args: owner: name: file_name: **kwargs: Return:
"Create the Document TI object.\n\n Args:\n owner:\n name:\n file_name:\n **kwargs:\n\n Return:"
1,591
true
ThreatConnect-Inc/tcex
document
7,807
LDU_FT/toomore/grs/plus_mons
LDU_FT
[ "<BEGIN>\n## `real`", "Real time data", " :rtype: dict\n :returns:", " :name: 股票名稱 Unicode\n :no: 股票代碼\n :range: 漲跌價\n :ranges: 漲跌判斷 True, False\n :time: 取得時間\n :max: 漲停價\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plus_mons API. 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 plus_mons API. 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...
增加 n 個月的資料 :param int month: 增加 n 個月的資料 :rtype: tuple
"增加 n 個月的資料\n\n :param int month: 增加 n 個月的資料\n :rtype: tuple"
88
false
toomore/grs
plus_mons
7,808
LDU_FT/LudovicRousseau/pyscard/GetATR
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 GetATR API. 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 GetATR API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return the ATR of the card inserted into the reader.
"Return the ATR of the card inserted into the reader."
164
false
LudovicRousseau/pyscard
GetATR
7,809
LDU_FT/christian-oudard/htmltreediff/remove_nesting
LDU_FT
[ "<BEGIN>\n## `diff`", "Show the differences between the old and new html document, as html.", " Return the document html with extra tags added to show changes. Add <ins>\n tags around newly added sections, and <del> tags to show sections that have\n been deleted.\n<END>", "<BEGIN>\n## `adjusted_ops`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_nesting API. 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 remove_nesting API. 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...
Unwrap items in the node list that have ancestors with the same tag.
"Unwrap items in the node list that have ancestors with the same tag."
69
false
christian-oudard/htmltreediff
remove_nesting
7,810
LDU_FT/JonathanRaiman/pytreebank/labels
LDU_FT
[ "<BEGIN>\n## `uproot`", "Take a subranch of a tree and deep-copy the children\n of this subbranch into a new LabeledTree\n<END>", "<BEGIN>\n## `lowercase`", "Lowercase all strings in this tree.\n Works recursively and in-place.\n<END>", "<BEGIN>\n## `to_dict`", "Dict format for use in Javasc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the labels API. 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 labels API. 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 ...
Construct a dictionary of string -> labels Returns: -------- OrderedDict<str, int> : string label pairs.
"Construct a dictionary of string -> labels\n\n Returns:\n --------\n OrderedDict<str, int> : string label pairs."
46
false
JonathanRaiman/pytreebank
labels
7,811
LDU_FT/klmitch/requiem/proc_request
LDU_FT
[ "<BEGIN>\n## `send`", "Issue the request.", " Uses httplib2.Http support for handling redirects. Returns an\n httplib2.Response, which may be augmented by the\n proc_response() method.", " Note that the default implementation of proc_response() causes\n an appropriate excep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the proc_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 proc_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...
Pre-process a request through all processors in the stack, in order. If any processor's proc_request() method returns a value other than None, that value is treated as a response and post-processed through the proc_response() methods of the processors preceding that processor in the sta...
"Pre-process a request through all processors in the stack, in\n order. If any processor's proc_request() method returns a\n value other than None, that value is treated as a response and\n post-processed through the proc_response() methods of the\n processors preceding that processor in th...
46
false
klmitch/requiem
proc_request
7,812
LDU_FT/underworldcode/stripy/join
LDU_FT
[ "<BEGIN>\n## `install_documentation`", "Install the example notebooks for litho1pt0 in the given location", " WARNING: If the path exists, the Notebook files will be written into the path\n and will overwrite any existing files with which they collide. The default\n path (\"./Litho1pt0-Notebooks\") is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API. 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 join API. 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...
Join this triangulation with another. If the points are known to have no duplicates, then set unique=False to skip the testing and duplicate removal
"Join this triangulation with another. If the points are known to have no duplicates, then\n set unique=False to skip the testing and duplicate removal"
224
false
underworldcode/stripy
join
7,813
LDU_FT/razorpay/razorpay-python/patch
LDU_FT
[ "<BEGIN>\n## `fetch`", "Fetch Card for given Id", " Args:\n card_id : Id for which card object has to be retrieved", " Returns:\n Card dict for given card Id\n<END>", "<BEGIN>\n## `all`", "Fetch all Virtual Account entities", " Returns:\n Dictionary ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch API. 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 patch API. 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...
Parses PATCH request options and dispatches a request
"Parses PATCH request options and dispatches a request"
159
false
razorpay/razorpay-python
patch
7,814
LDU_FT/senaite/senaite.jsonapi/get_endpoint
LDU_FT
[ "<BEGIN>\n## `get`", "Get a JSON compatible structure for the named attribute\n<END>", "<BEGIN>\n## `json_data`", "Get a JSON compatible value of the field\n<END>", "<BEGIN>\n## `set`", "Set the attribute to the given value.", " The keyword arguments represent the other attribute values\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_endpoint API. 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_endpoint API. 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...
Calculate the endpoint for this object :param brain_or_object: A single catalog brain or content object :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain :returns: Endpoint for this object :rtype: string
"Calculate the endpoint for this object\n\n :param brain_or_object: A single catalog brain or content object\n :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain\n :returns: Endpoint for this object\n :rtype: string"
205
false
senaite/senaite.jsonapi
get_endpoint
7,815
LDU_FT/uw-it-aca/uw-restclients-nws/delete_subscription
LDU_FT
[ "<BEGIN>\n## `get_endpoint_by_subscriber_id_and_protocol`", "Get an endpoint by subscriber_id and protocol\n<END>", "<BEGIN>\n## `get_endpoints_by_subscriber_id`", "Search for all endpoints by a given subscriber\n<END>", "<BEGIN>\n## `resend_sms_endpoint_verification`", "Calls NWS function to resend verif...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_subscription 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 delete_subscription 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...
Deleting an existing subscription :param subscription_id: is the subscription the client wants to delete
"Deleting an existing subscription\n :param subscription_id: is the subscription the client wants to delete"
44
false
uw-it-aca/uw-restclients-nws
delete_subscription
7,816
LDU_FT/SmartTeleMax/iktomi/get_data
LDU_FT
[ "<BEGIN>\n## `pare`", "Pare text to have maximum size and add etc to the end if it's\n changed\n<END>", "<BEGIN>\n## `quoteattrs`", "Takes dict of attributes and returns their HTML representation\n<END>", "<BEGIN>\n## `quote_js`", "Quotes text to be used as JavaScript string in HTML templates. The\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns data representing current state of the form. While Form.raw_data may contain alien fields and invalid data, this method returns only valid fields that belong to this form only. It's designed to pass somewhere current state of the form (as query string or by other means).
"Returns data representing current state of the form. While\n Form.raw_data may contain alien fields and invalid data, this method\n returns only valid fields that belong to this form only. It's designed\n to pass somewhere current state of the form (as query string or by\n other means)."
196
false
SmartTeleMax/iktomi
get_data
7,817
LDU_FT/intuition-io/intuition/relative_strength
LDU_FT
[ "<BEGIN>\n## `update`", "Actualizes the portfolio universe with the alog state\n<END>", "<BEGIN>\n## `trade_signals_handler`", "Process buy and sell signals from the simulation\n<END>", "<BEGIN>\n## `advise`", "General parameters or user settings\n (maw_weigth, max_assets, max_frequency, commission...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relative_strength API. 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 relative_strength API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
compute the <periods> period relative strength indicator http://stockcharts.com/school/doku.php?\ id=chart_school:glossary_r#relativestrengthindex http://www.investopedia.com/terms/r/rsi.asp
"compute the <periods> period relative strength indicator\n http://stockcharts.com/school/doku.php?\\\n id=chart_school:glossary_r#relativestrengthindex\n http://www.investopedia.com/terms/r/rsi.asp"
73
false
intuition-io/intuition
relative_strength
7,818
LDU_FT/juju/charm-helpers/py
LDU_FT
[ "<BEGIN>\n## `get_ubuntu_release_from_sentry`", "Get Ubuntu release codename from sentry unit.", " :param sentry_unit: amulet sentry/service unit pointer\n :returns: list of strings - release codename, failure message\n<END>", "<BEGIN>\n## `validate_services`", "Validate that lists of commands...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the py API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the py API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Output data as a nicely-formatted python data structure
"Output data as a nicely-formatted python data structure"
1,689
true
juju/charm-helpers
py
7,819
LDU_FT/jbeluch/xbmcswift2/url_for
LDU_FT
[ "<BEGIN>\n## `display_listitems`", "Displays a list of items along with the index to enable a user\n to select an item.\n<END>", "<BEGIN>\n## `display_video`", "Prints a message for a playing video and displays the parent\n listitem.\n<END>", "<BEGIN>\n## `get_user_choice`", "Returns the selected it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_for API. 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 url_for API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a valid XBMC plugin URL for the given endpoint name. endpoint can be the literal name of a function, or it can correspond to the name keyword arguments passed to the route decorator. Raises AmbiguousUrlException if there is more than one possible view for the given endpo...
"Returns a valid XBMC plugin URL for the given endpoint name.\n endpoint can be the literal name of a function, or it can\n correspond to the name keyword arguments passed to the route\n decorator.\n\n Raises AmbiguousUrlException if there is more than one possible\n view for the give...
164
false
jbeluch/xbmcswift2
url_for
7,820
LDU_FT/SpotlightData/preprocessing/preprocess_text
LDU_FT
[ "<BEGIN>\n## `correct_word`", "Finds all valid one and two letter corrections for word_string, returning the word\n with the highest relative probability as type str.\n<END>", "<BEGIN>\n## `find_candidates`", "Finds all potential words word_string could have intended to mean. If a word is not incorrectly\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preprocess_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Given each function within function_list, applies the order of functions put forward onto text_string, returning the processed string as type str. Keyword argument: - function_list: list of functions available in preprocessing.text - text_string: string instance Exceptions raised: - Func...
"Given each function within function_list, applies the order of functions put forward onto\n text_string, returning the processed string as type str.\n\n Keyword argument:\n\n - function_list: list of functions available in preprocessing.text\n - text_string: string instance\n\n Exceptions raised:\n \...
106
false
SpotlightData/preprocessing
preprocess_text
7,821
LDU_FT/NASA-AMMOS/AIT-Core/setDictDefaults
LDU_FT
[ "<BEGIN>\n## `crc32File`", "Computes the CRC-32 of the contents of filename, optionally\n skipping a certain number of bytes at the beginning of the file.\n<END>", "<BEGIN>\n## `endianSwapU16`", "Swaps pairs of bytes (16-bit words) in the given bytearray.\n<END>", "<BEGIN>\n## `setDictDefaults`", "Sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setDictDefaults API. 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 setDictDefaults API. 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...
Sets all defaults for the given dictionary to those contained in a second defaults dictionary. This convenience method calls: d.setdefault(key, value) for each key and value in the given defaults dictionary.
"Sets all defaults for the given dictionary to those contained in a\n second defaults dictionary. This convenience method calls:\n\n d.setdefault(key, value)\n\n for each key and value in the given defaults dictionary."
688
false
NASA-AMMOS/AIT-Core
setDictDefaults
7,822
LDU_FT/PyCQA/pyflakes/_exitOnSignal
LDU_FT
[ "<BEGIN>\n## `syntaxError`", "There was a syntax error in C{filename}.", " @param filename: The path to the file with the syntax error.\n @ptype filename: C{unicode}\n @param msg: An explanation of the syntax error.\n @ptype msg: C{unicode}\n @param lineno: The line number whe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _exitOnSignal API. 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 _exitOnSignal API. 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...
Handles a signal with sys.exit. Some of these signals (SIGPIPE, for example) don't exist or are invalid on Windows. So, ignore errors that might arise.
"Handles a signal with sys.exit.\n\n Some of these signals (SIGPIPE, for example) don't exist or are invalid on\n Windows. So, ignore errors that might arise."
54
false
PyCQA/pyflakes
_exitOnSignal
7,823
LDU_FT/tensorflow/lucid/import_graph
LDU_FT
[ "<BEGIN>\n## `SvelteComponent`", "Display svelte components in iPython.", " Args:\n name: name of svelte component (must match component filename when built)\n path: path to compile svelte .js file or source svelte .html file.\n (If html file, we try to call svelte and build the file.)", " Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_graph API. 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 import_graph API. 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...
Import model GraphDef into the current graph.
"Import model GraphDef into the current graph."
296
false
tensorflow/lucid
import_graph
7,824
LDU_FT/sdispater/orator/associate
LDU_FT
[ "<BEGIN>\n## `construct`", "Create a new factory container.", " :param faker: A faker generator instance\n :type faker: faker.Generator", " :param path_to_factories: The path to factories\n :type path_to_factories: str", " :rtype: Factory\n<END>", "<BEGIN>\n## `define`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the associate API. 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 associate API. 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...
Associate the model instance to the given parent. :type model: orator.Model :rtype: orator.Model
"Associate the model instance to the given parent.\n\n :type model: orator.Model\n\n :rtype: orator.Model"
1,212
true
sdispater/orator
associate
7,825
LDU_FT/chovanecm/sacredboard/get_files_zip
LDU_FT
[ "<BEGIN>\n## `get_file`", "Get a specific file from GridFS.", " Returns a binary stream response or HTTP 404 if not found.\n<END>", "<BEGIN>\n## `get_files_zip`", "Send all artifacts or sources of a run as ZIP.\n<END>", "<BEGIN>\n## `get`", "Return the file identified by a file_id string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_files_zip API. 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_files_zip API. 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...
Send all artifacts or sources of a run as ZIP.
"Send all artifacts or sources of a run as ZIP."
128
false
chovanecm/sacredboard
get_files_zip
7,826
LDU_FT/pyca/pynacl/generichash_blake2b_update
LDU_FT
[ "<BEGIN>\n## `ensure`", "Return if a condition is true, otherwise raise a caller-configurable\n :py:class:`Exception`\n :param bool cond: the condition to be checked\n :param sequence args: the arguments to be passed to the exception's\n constructor\n The only accepted named p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generichash_blake2b_update 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 generichash_blake2b_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Update the blake2b hash state :param state: a initialized Blake2bState object as returned from :py:func:`.crypto_generichash_blake2b_init` :type state: :py:class:`.Blake2State` :param data: :type data: bytes
"Update the blake2b hash state\n\n :param state: a initialized Blake2bState object as returned from\n :py:func:`.crypto_generichash_blake2b_init`\n :type state: :py:class:`.Blake2State`\n :param data:\n :type data: bytes"
266
false
pyca/pynacl
generichash_blake2b_update
7,827
LDU_FT/rigetti/quantumflow/run
LDU_FT
[ "<BEGIN>\n## `load_stdgraphs`", "Load standard graph validation sets", " For each size (from 6 to 32 graph nodes) the dataset consists of\n 100 graphs drawn from the Erdős-Rényi ensemble with edge\n probability 50%.\n<END>", "<BEGIN>\n## `load_mnist`", "Download and rescale the MNIST database of ha...
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...
Apply the action of this circuit upon a state. If no initial state provided an initial zero state will be created.
"Apply the action of this circuit upon a state.\n\n If no initial state provided an initial zero state will be created."
374
false
rigetti/quantumflow
run
7,828
LDU_FT/dstufft/crust/delete
LDU_FT
[ "<BEGIN>\n## `subclass_exception`", "Create exception subclass.", " If 'attached_to' is supplied, the exception will be created in a way that\n allows it to be pickled, assuming the returned exception class will be added\n as an attribute to the 'attached_to' class.\n<END>", "<BEGIN>\n## `save`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Deletes the records in the current QuerySet.
"Deletes the records in the current QuerySet."
38
false
dstufft/crust
delete
7,829
LDU_FT/cmorisse/ikp3db/enable_tracing
LDU_FT
[ "<BEGIN>\n## `set_trace`", "Breaks on the line that invoked this function or at given frame.\n User can then resume execution.", " To call set_trace() use:", " .. code-block:: python", " import ikp3db ; ikp3db.set_trace()", " :param a_frame: The frame at which to break on.\n :type a_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_tracing API. 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 enable_tracing API. 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...
Enable tracing if it is disabled and debugged program is running, else do nothing. Do this on all threads but the debugger thread. :return: True if tracing has been enabled, False else.
"Enable tracing if it is disabled and debugged program is running, \n else do nothing.\n Do this on all threads but the debugger thread.\n :return: True if tracing has been enabled, False else."
109
false
cmorisse/ikp3db
enable_tracing
7,830
LDU_FT/pricingassistant/mrq/group_iter
LDU_FT
[ "<BEGIN>\n## `group_iter`", "Given an iterator, it returns sub-lists made of n items.\n (except the last that can have len < n)\n<END>", "<BEGIN>\n## `memoize`", "Memoization decorator for a function taking one or more arguments.\n<END>", "<BEGIN>\n## `memoize_single_argument`", "Memoization decorator ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_iter API. 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 group_iter API. 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...
Given an iterator, it returns sub-lists made of n items. (except the last that can have len < n)
"Given an iterator, it returns sub-lists made of n items.\n (except the last that can have len < n)"
123
false
pricingassistant/mrq
group_iter
7,831
LDU_FT/gwastro/pycbc/write_to_hdf
LDU_FT
[ "<BEGIN>\n## `compute_u_val_for_sky_loc_stat`", "The max-over-sky location detection statistic maximizes over a phase,\n an amplitude and the ratio of F+ and Fx, encoded in a variable called u.\n Here we return the value of u for the given indices.\n<END>", "<BEGIN>\n## `compute_max_snr_over_sky_loc_stat_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_to_hdf API. 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 write_to_hdf API. 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...
Writes self to the given hdf file. Parameters ---------- filename : str The name of the file to write to. Must end in '.hdf'. start_index : If a specific slice of the template bank is to be written to the hdf file, this would specify the index of the ...
"Writes self to the given hdf file.\n\n Parameters\n ----------\n filename : str\n The name of the file to write to. Must end in '.hdf'.\n start_index : If a specific slice of the template bank is to be\n written to the hdf file, this would specify the index of the\n ...
4,120
true
gwastro/pycbc
write_to_hdf
7,832
LDU_FT/ldo/dbussy/server_id
LDU_FT
[ "<BEGIN>\n## `data_key`", "returns a unique value that allows data to be used as a dict/set key.\n<END>", "<BEGIN>\n## `get_version`", "returns the libdbus library version as a tuple of integers (major, minor, micro).\n<END>", "<BEGIN>\n## `matches_rule`", "does Message message match against the specified...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the server_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
asks the server at the other end for its unique id.
"asks the server at the other end for its unique id."
74
false
ldo/dbussy
server_id
7,833
LDU_FT/cknoll/ipydex/ips_excepthook
LDU_FT
[ "<BEGIN>\n## `format_frameinfo`", "Takes a frameinfo object (from the inspect module)", " returns a properly formated string\n<END>", "<BEGIN>\n## `IPS`", "Starts IPython embedded shell. This is similar to IPython.embed() but with some\n additional features:", " 1. Print a list of the calling fra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ips_excepthook API. 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 ips_excepthook API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
This function is launched after an exception. It launches IPS in suitable frame. Also note that if `__mu` is an integer in the local_ns of the closed IPS-Session then another Session is launched in the corresponding frame: "__mu" means = "move up" and referes to frame levels. :param excType: Exception ...
"This function is launched after an exception. It launches IPS in suitable frame.\n Also note that if `__mu` is an integer in the local_ns of the closed IPS-Session then another Session\n is launched in the corresponding frame: \"__mu\" means = \"move up\" and referes to frame levels.\n\n :param excType: E...
45
false
cknoll/ipydex
ips_excepthook
7,834
LDU_FT/theolind/pymysensors/handle_gateway_ready_20
LDU_FT
[ "<BEGIN>\n## `_check_connection`", "Check if connection is alive every reconnect_timeout seconds.\n<END>", "<BEGIN>\n## `_connect`", "Connect to socket. This should be run in a new thread.\n<END>", "<BEGIN>\n## `_check_connection`", "Check if connection is alive every reconnect_timeout seconds.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_gateway_ready_20 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 handle_gateway_ready_20 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Process an internal gateway ready message.
"Process an internal gateway ready message."
109
false
theolind/pymysensors
handle_gateway_ready_20
7,835
LDU_FT/neuropsychology/NeuroKit.py/complexity
LDU_FT
[ "<BEGIN>\n## `complexity`", "Computes several chaos/complexity indices of a signal (including entropy, fractal dimensions, Hurst and Lyapunov exponent etc.).", " Parameters\n ----------\n signal : list or array\n List or array of values.\n sampling_rate : int\n Sampling rate (samples/s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the complexity API. 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 complexity API. 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...
Computes several chaos/complexity indices of a signal (including entropy, fractal dimensions, Hurst and Lyapunov exponent etc.). Parameters ---------- signal : list or array List or array of values. sampling_rate : int Sampling rate (samples/second). shannon : bool Computes ...
"Computes several chaos/complexity indices of a signal (including entropy, fractal dimensions, Hurst and Lyapunov exponent etc.).\n\n Parameters\n ----------\n signal : list or array\n List or array of values.\n sampling_rate : int\n Sampling rate (samples/second).\n shannon : bool\n ...
778
false
neuropsychology/NeuroKit.py
complexity
7,836
LDU_FT/GoogleCloudPlatform/httplib2shim/_default_make_pool
LDU_FT
[ "<BEGIN>\n## `_default_make_pool`", "Creates a urllib3.PoolManager object that has SSL verification enabled\n and uses the certifi certificates.\n<END>", "<BEGIN>\n## `patch`", "Monkey-patches httplib2.Http to be httplib2shim.Http.", " This effectively makes all clients of httplib2 use urlilb3. It's p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _default_make_pool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _default_make_pool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Creates a urllib3.PoolManager object that has SSL verification enabled and uses the certifi certificates.
"Creates a urllib3.PoolManager object that has SSL verification enabled\n and uses the certifi certificates."
15
false
GoogleCloudPlatform/httplib2shim
_default_make_pool
7,837
LDU_FT/xray7224/PyPump/outbox
LDU_FT
[ "<BEGIN>\n## `verifier`", "Will ask user to click link to accept app and write code\n<END>", "<BEGIN>\n## `post_note`", "Post note and return the URL of the posted note\n<END>", "<BEGIN>\n## `get_obj_id`", "Get the id of a PumpObject.", " :param item: id string or PumpObject\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the outbox API. 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 outbox API. 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 ...
:class:`Outbox feed <pypump.models.feed.Outbox>` with all :class:`activities <pypump.models.activity.Activity>` sent by the person. Example: >>> for activity in pump.me.outbox[:2]: ... print(activity) ... pypumptest2 unliked a comment in reply to a no...
":class:`Outbox feed <pypump.models.feed.Outbox>` with all\n :class:`activities <pypump.models.activity.Activity>` sent by the person.\n\n Example:\n >>> for activity in pump.me.outbox[:2]:\n ... print(activity)\n ...\n pypumptest2 unliked a comment in reply...
100
false
xray7224/PyPump
outbox
7,838
LDU_FT/btimby/fulltext/handle_fobj
LDU_FT
[ "<BEGIN>\n## `check_backends`", "Invoke test() for all backends and fail (raise) if some dep\n is missing.\n<END>", "<BEGIN>\n## `main`", "Extract text from a file.", " Commands:\n extract - extract text from path\n check - make sure all deps are installed", " Usage:\n full...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_fobj API. 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 handle_fobj API. 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...
Handle a file-like object. Called by `get()` when provided a file-like. This function will prefer the backend's `handle_fobj()` if one is provided. Otherwise, it will write the data to a temporary file and call `handle_path()`.
"Handle a file-like object.\n\n Called by `get()` when provided a file-like. This function will prefer the\n backend's `handle_fobj()` if one is provided. Otherwise, it will write the\n data to a temporary file and call `handle_path()`."
38
false
btimby/fulltext
handle_fobj
7,839
LDU_FT/benjamin-hodgson/asynqp/hello_world
LDU_FT
[ "<BEGIN>\n## `open_channel`", "Open a new channel on this connection.", " This method is a :ref:`coroutine <coroutine>`.", " :return: The new :class:`Channel` object.\n<END>", "<BEGIN>\n## `close`", "Close the connection by handshaking with the server.", " This method is a :ref:`cor...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hello_world API. 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 hello_world API. 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...
Sends a 'hello world' message and then reads it from the queue.
"Sends a 'hello world' message and then reads it from the queue."
95
false
benjamin-hodgson/asynqp
hello_world
7,840
LDU_FT/pedrotgn/pyactor/set_result
LDU_FT
[ "<BEGIN>\n## `set_context`", "This function initializes the context of execution deciding which\n type of threads are being used: classic python threads or green\n threads, provided by Gevent.", " This should be called first of all in every execution, otherwise,\n the library would not work.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_result API. 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 set_result API. 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...
Sets the return value of work associated with the future. Only called internally.
"Sets the return value of work associated with the future.\n Only called internally."
102
false
pedrotgn/pyactor
set_result
7,841
LDU_FT/mattjj/pybasicbayes/principal_angle
LDU_FT
[ "<BEGIN>\n## `nice_indices`", "takes an array like [1,1,5,5,5,999,1,1]\n and maps to something like [0,0,1,1,1,2,0,0]\n modifies original in place as well as returns a ref\n<END>", "<BEGIN>\n## `principal_angle`", "Find the principal angle between two subspaces\n spanned by columns of A and B\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the principal_angle API. 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 principal_angle API. 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...
Find the principal angle between two subspaces spanned by columns of A and B
"Find the principal angle between two subspaces\n spanned by columns of A and B"
16
false
mattjj/pybasicbayes
principal_angle
7,842
LDU_FT/goldsmith/Wikipedia/section
LDU_FT
[ "<BEGIN>\n## `set_lang`", "Change the language of the API being requested.\n Set `prefix` to one of the two letter prefixes found on the `list of all Wikipedias <http://meta.wikimedia.org/wiki/List_of_Wikipedias>`_.", " After setting the language, the cache for ``search``, ``suggest``, and ``summary`` will be...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the section API. 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 section API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Get the plain text content of a section from `self.sections`. Returns None if `section_title` isn't found, otherwise returns a whitespace stripped string. This is a convenience method that wraps self.content. .. warning:: Calling `section` on a section that has subheadings will NOT return the f...
"Get the plain text content of a section from `self.sections`.\n Returns None if `section_title` isn't found, otherwise returns a whitespace stripped string.\n\n This is a convenience method that wraps self.content.\n\n .. warning:: Calling `section` on a section that has subheadings will NOT return\n ...
62
false
goldsmith/Wikipedia
section
7,843
LDU_FT/alejandroautalan/pygubu/_realize
LDU_FT
[ "<BEGIN>\n## `_autoscroll`", "Hide and show scrollbar as needed.\n Code from Joe English (JE) at http://wiki.tcl.tk/950\n<END>", "<BEGIN>\n## `__regpoly_coords`", "Create the coordinates of the regular polygon specified\n<END>", "<BEGIN>\n## `get_image`", "Return tk image corresponding to name which is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _realize API. 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 _realize API. 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...
Builds a widget from xml element using master as parent.
"Builds a widget from xml element using master as parent."
73
false
alejandroautalan/pygubu
_realize
7,844
LDU_FT/rfk/threading2/priority
LDU_FT
[ "<BEGIN>\n## `process_affinity`", "Get or set the CPU affinity set for the current process.", " This will affect all future threads spawned by this process. It is\n implementation-defined whether it will also affect previously-spawned\n threads.\n<END>", "<BEGIN>\n## `acquire`", "Attempt to acquir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the priority API. 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 priority API. 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...
Set the priority for all threads in this group. If setting priority fails on any thread, the priority of all threads is restored to its previous value.
"Set the priority for all threads in this group.\n\n If setting priority fails on any thread, the priority of all threads\n is restored to its previous value."
24
false
rfk/threading2
priority
7,845
LDU_FT/marshallward/f90nml/_f90str
LDU_FT
[ "<BEGIN>\n## `write`", "Save a namelist to disk using either a file object or its file path.", " File object usage:", " >>> with open(nml_path, 'w') as nml_file:\n >>> f90nml.write(nml, nml_file)", " File path usage:", " >>> f90nml.write(nml, 'data.nml')", " This function is equiva...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _f90str API. 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 _f90str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a Fortran 90 representation of a string.
"Return a Fortran 90 representation of a string."
98
false
marshallward/f90nml
_f90str
7,846
LDU_FT/tonioo/sievelib/__send_command
LDU_FT
[ "<BEGIN>\n## `authentication_required`", "Simple class method decorator.", " Checks if the client is currently connected.", " :param meth: the original called method\n<END>", "<BEGIN>\n## `__read_block`", "Read a block of 'size' bytes from the server.", " An internal buffer is used to read ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __send_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __send_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Send a command to the server. If args is not empty, we concatenate the given command with the content of this list. If extralines is not empty, they are sent one by one to the server. (CLRF are automatically appended to them) We wait for a response just after the command has be...
"Send a command to the server.\n\n If args is not empty, we concatenate the given command with\n the content of this list. If extralines is not empty, they are\n sent one by one to the server. (CLRF are automatically\n appended to them)\n\n We wait for a response just after the comman...
191
false
tonioo/sievelib
__send_command
7,847
LDU_FT/joshspeagle/dynesty/combine_runs
LDU_FT
[ "<BEGIN>\n## `runplot`", "Plot live points, ln(likelihood), ln(weight), and ln(evidence)\n as a function of ln(prior volume).", " Parameters\n ----------\n results : :class:`~dynesty.results.Results` instance\n A :class:`~dynesty.results.Results` instance from a nested\n sampling run."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine_runs API. 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 combine_runs API. 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...
Merge the most recent run into the previous (combined) run by "stepping through" both runs simultaneously.
"Merge the most recent run into the previous (combined) run by\n \"stepping through\" both runs simultaneously."
709
false
joshspeagle/dynesty
combine_runs
7,848
LDU_FT/square/connect-python-sdk/percentage
LDU_FT
[ "<BEGIN>\n## `attribute_name`", "Sets the attribute_name of this CatalogQueryRange.\n The name of the attribute to be searched.", " :param attribute_name: The attribute_name of this CatalogQueryRange.\n :type: str\n<END>", "<BEGIN>\n## `idempotency_key`", "Sets the idempotency_key of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the percentage API. 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 percentage API. 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...
Sets the percentage of this OrderLineItemTax. The percentage of the tax, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. :param percentage: The percentage of this OrderLineItemTax. :type: str
"Sets the percentage of this OrderLineItemTax.\n The percentage of the tax, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%.\n\n :param percentage: The percentage of this OrderLineItemTax.\n :type: str"
148
false
square/connect-python-sdk
percentage
7,849
LDU_FT/linkedin/shiv/create_archive
LDU_FT
[ "<BEGIN>\n## `get_args`", "Overrides easy_install.ScriptWriter.get_args", " This method avoids using pkg_resources to map a named entry_point\n to a callable at invocation time.\n<END>", "<BEGIN>\n## `clean_pip_env`", "A context manager for temporarily removing 'PIP_REQUIRE_VIRTUALENV' from the enviro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_archive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_archive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Create an application archive from SOURCE. A slightly modified version of stdlib's `zipapp.create_archive <https://docs.python.org/3/library/zipapp.html#zipapp.create_archive>`_
"Create an application archive from SOURCE.\n\n A slightly modified version of stdlib's\n `zipapp.create_archive <https://docs.python.org/3/library/zipapp.html#zipapp.create_archive>`_"
40
false
linkedin/shiv
create_archive
7,850
LDU_FT/rpcope1/PythonConfluenceAPI/get_content_by_id
LDU_FT
[ "<BEGIN>\n## `request_patch`", "Maintains the existing api for Session.request.\n Used by all of the higher level methods, e.g. Session.get.\n The background_callback param allows you to do some processing on the\n response in the background, e.g. call resp.json() so that json parsing\n happens in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_content_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns a piece of Content. :param content_id (string): The id of the content. :param status (string): OPTIONAL: List of Content statuses to filter results on. Default value: [current] :param version (int): OPTIONAL: The content version to retrieve. Default: Latest. :param expand (string...
"Returns a piece of Content.\n :param content_id (string): The id of the content.\n :param status (string): OPTIONAL: List of Content statuses to filter results on. Default value: [current]\n :param version (int): OPTIONAL: The content version to retrieve. Default: Latest.\n :param expand (s...
140
false
rpcope1/PythonConfluenceAPI
get_content_by_id
7,851
LDU_FT/jeroyang/txttk/unpack
LDU_FT
[ "<BEGIN>\n## `from_scale`", "deprecated, for backward compactbility\n try to use from_score\n<END>", "<BEGIN>\n## `condense`", "Given multiple strings, returns a compressed regular expression just\n for these strings", " >>> condense(['she', 'he', 'her', 'hemoglobin'])\n 'he(moglobin|r)?|she...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API. 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 unpack API. 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 ...
Remove the outermost parens, keep the (?P...) one >>> unpack(r'(abc)') 'abc' >>> unpack(r'(?:abc)') 'abc' >>> unpack(r'(?P<xyz>abc)') '(?P<xyz>abc)' >>> unpack(r'[abc]') '[abc]'
"Remove the outermost parens, keep the (?P...) one\n\n >>> unpack(r'(abc)')\n 'abc'\n >>> unpack(r'(?:abc)')\n 'abc'\n >>> unpack(r'(?P<xyz>abc)')\n '(?P<xyz>abc)'\n >>> unpack(r'[abc]')\n '[abc]'"
49
false
jeroyang/txttk
unpack
7,852
LDU_FT/greenbone/ospd/delete_scan
LDU_FT
[ "<BEGIN>\n## `run_command`", "Run a single command via SSH and return the content of stdout or\n None in case of an Error. A scan error is issued in the latter\n case.", " For logging into 'host', the scan options 'port', 'username',\n 'password' and 'ssh_timeout' are used.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_scan API. 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 delete_scan API. 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...
Deletes scan_id scan from collection. @return: 1 if scan deleted, 0 otherwise.
"Deletes scan_id scan from collection.\n\n @return: 1 if scan deleted, 0 otherwise."
203
false
greenbone/ospd
delete_scan
7,853
LDU_FT/radjkarl/fancyWidgets/treeWidgetChanged
LDU_FT
[ "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `findMenu`", "find a menu with a given title", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the treeWidgetChanged API. 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 treeWidgetChanged API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Called when this item is added or removed from a tree.
"Called when this item is added or removed from a tree."
48
false
radjkarl/fancyWidgets
treeWidgetChanged
7,854
LDU_FT/rikrd/inspire/full_task
LDU_FT
[ "<BEGIN>\n## `load_parameter`", "Load HTK parameter/feature file.", " :param input_filename:\n :param only_header: only load the metadata\n :return: a named tuple representing the HTK parmeter file\n<END>", "<BEGIN>\n## `create_parameter`", "Create a HTK Parameter object from an array of samples an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_task API. 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 full_task API. 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...
Provide the prediction of the full task. This function is used to predict the probability of a given pronunciation being reported for a given token. :param token_id: The token for which the prediction is provided :param pronunciation: The pronunciation for which the prediction is being made (a...
"Provide the prediction of the full task.\n\n This function is used to predict the probability of a given pronunciation being reported for a given token.\n\n :param token_id: The token for which the prediction is provided\n :param pronunciation: The pronunciation for which the prediction is being m...
91
false
rikrd/inspire
full_task
7,855
LDU_FT/arokem/python-matlab-bridge/encode_ndarray
LDU_FT
[ "<BEGIN>\n## `split_pulls`", "split a list of closed issues into non-PR Issues and Pull Requests\n<END>", "<BEGIN>\n## `issues_closed_since`", "Get all issues closed since a particular point in time. period\n can either be a datetime object, or a timedelta object. In the\n latter case, it is used as a t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_ndarray API. 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 encode_ndarray API. 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 a numpy array and its shape to base64 buffers
"Write a numpy array and its shape to base64 buffers"
58
false
arokem/python-matlab-bridge
encode_ndarray
7,856
LDU_FT/acrisci/i3ipc-python/get_version
LDU_FT
[ "<BEGIN>\n## `_pack`", "Packs the given message type and payload. Turns the resulting\n message into a byte string.\n<END>", "<BEGIN>\n## `_unpack`", "Unpacks the given byte string and parses the result from JSON.\n Returns None on failure and saves data into \"self.buffer\".\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Get json encoded information about the running i3 instance. The equivalent of :command:`i3-msg -t get_version`. The return object exposes the following attributes :attr:`~VersionReply.major`, :attr:`~VersionReply.minor`, :attr:`~VersionReply.patch`, :attr:`~VersionReply.human_readable`,...
"Get json encoded information about the running i3 instance. The\n equivalent of :command:`i3-msg -t get_version`. The return\n object exposes the following attributes :attr:`~VersionReply.major`,\n :attr:`~VersionReply.minor`, :attr:`~VersionReply.patch`,\n :attr:`~VersionReply.human_reada...
69
false
acrisci/i3ipc-python
get_version
7,857
LDU_FT/Crunch-io/crunch-cube/summary_pairwise_indices
LDU_FT
[ "<BEGIN>\n## `column_mask`", "ndarray, True where column margin <= min_base_size, same shape as slice.\n<END>", "<BEGIN>\n## `table_mask`", "ndarray, True where table margin <= min_base_size, same shape as slice.\n<END>", "<BEGIN>\n## `values`", "list of _ColumnPairwiseSignificance tests.", " Res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summary_pairwise_indices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summary_pairwise_indices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
ndarray containing tuples of pairwise indices for the column summary.
"ndarray containing tuples of pairwise indices for the column summary."
334
false
Crunch-io/crunch-cube
summary_pairwise_indices
7,858
LDU_FT/intelsdi-x/snap-plugin-lib-py/_monitor
LDU_FT
[ "<BEGIN>\n## `publish`", "Publishes metrics to a file in JSON format.", " This method is called by the Snap deamon during the collection phase\n of the execution of a Snap workflow.", " In this example we are writing the metrics to a file in json format.\n We obtain the path to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _monitor API. 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 _monitor API. 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...
Monitors health checks (pings) from the Snap framework. If the plugin doesn't receive 3 consecutive health checks from Snap the plugin will shutdown. The default timeout is set to 5 seconds.
"Monitors health checks (pings) from the Snap framework.\n\n If the plugin doesn't receive 3 consecutive health checks from Snap the\n plugin will shutdown. The default timeout is set to 5 seconds."
69
false
intelsdi-x/snap-plugin-lib-py
_monitor
7,859
LDU_FT/flashashen/flange/backoff
LDU_FT
[ "<BEGIN>\n## `search`", "find matches for the given path expression in the data", " :param path_expression: path tuple or string\n :return:\n<END>", "<BEGIN>\n## `split_iter`", "Splits an iterable based on a separator, *sep*, a max of\n *maxsplit* times (no max by default). *sep* can be:", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backoff API. 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 backoff API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a list of geometrically-increasing floating-point numbers, suitable for usage with `exponential backoff`_. Exactly like :func:`backoff_iter`, but without the ``'repeat'`` option for *count*. See :func:`backoff_iter` for more details. .. _exponential backoff: https://en.wikipedia.org/wiki/Expone...
"Returns a list of geometrically-increasing floating-point numbers,\n suitable for usage with `exponential backoff`_. Exactly like\n :func:`backoff_iter`, but without the ``'repeat'`` option for\n *count*. See :func:`backoff_iter` for more details.\n\n .. _exponential backoff: https://en.wikipedia.org/wiki/...
132
false
flashashen/flange
backoff
7,860
LDU_FT/rm-hull/OPi.GPIO/add_event_callback
LDU_FT
[ "<BEGIN>\n## `setmode`", "You must call this method prior to using all other calls.", " :param mode: the mode, one of :py:attr:`GPIO.BOARD`, :py:attr:`GPIO.BCM`,\n :py:attr:`GPIO.SUNXI`, or a `dict` or `object` representing a custom\n pin mapping.\n<END>", "<BEGIN>\n## `setup`", "You need t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_event_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_event_callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
:param channel: the channel based on the numbering system you have specified (:py:attr:`GPIO.BOARD`, :py:attr:`GPIO.BCM` or :py:attr:`GPIO.SUNXI`). :param callback: TODO :param bouncetime: (optional) TODO
":param channel: the channel based on the numbering system you have specified\n (:py:attr:`GPIO.BOARD`, :py:attr:`GPIO.BCM` or :py:attr:`GPIO.SUNXI`).\n :param callback: TODO\n :param bouncetime: (optional) TODO"
60
false
rm-hull/OPi.GPIO
add_event_callback
7,861
LDU_FT/yvesalexandre/bandicoot/read_csv
LDU_FT
[ "<BEGIN>\n## `filter_user`", "Filter records of a User objects by interaction, part of week and day.", " Parameters\n ----------\n user : User\n a bandicoot User object\n type : str, default 'records'\n 'records' or 'recharges'\n part_of_week : {'allweek', 'weekday', 'weekend'}, def...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_csv API. 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 read_csv API. 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...
Load user records from a CSV file. Parameters ---------- user_id : str ID of the user (filename) records_path : str Path of the directory all the user files. antennas_path : str, optional Path of the CSV file containing (place_id, latitude, longitude) values. This...
"Load user records from a CSV file.\n\n Parameters\n ----------\n\n user_id : str\n ID of the user (filename)\n\n records_path : str\n Path of the directory all the user files.\n\n antennas_path : str, optional\n Path of the CSV file containing (place_id, latitude, longitude) values....
318
false
yvesalexandre/bandicoot
read_csv
7,862
LDU_FT/mcieslik-mctp/papy/disconnect
LDU_FT
[ "<BEGIN>\n## `_inspect`", "(internal) Determines the type of a given ``object``. Discriminates between \n ``Piper``, ``Worker``, ``FunctionType`` and ``Iterable`` instances. It \n returns a ``tuple`` of boolean variables i.e: (is_piper, is_worker, \n is_function, is_iterable_of_pipers, is_iterable_of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect API. 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 disconnect API. 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...
Disconnects the ``Piper`` instance from its upstream ``Pipers`` or input data if the ``Piper`` is the input node of a pipeline. Arguments: - forced(``bool``) [default: ``False``] If ``True`` the ``Piper`` will try to forcefully remove all tasks (including the spa...
"Disconnects the ``Piper`` instance from its upstream ``Pipers`` or \n input data if the ``Piper`` is the input node of a pipeline.\n \n Arguments:\n \n - forced(``bool``) [default: ``False``] If ``True`` the ``Piper`` will\n try to forcefully remove all tasks (including ...
323
false
mcieslik-mctp/papy
disconnect
7,863
LDU_FT/FlaskGuys/Flask-Imagine/_bottom_position
LDU_FT
[ "<BEGIN>\n## `apply`", "Apply filter to resource\n :param resource: Image\n :return: Image\n<END>", "<BEGIN>\n## `get_item`", "Get resource item\n :param path: string\n :return: PIL.Image\n<END>", "<BEGIN>\n## `create_cached_item`", "Create cached resource item\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bottom_position API. 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 _bottom_position API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Place watermark to bottom position :param resource: Image.Image :return: Image.Image
"Place watermark to bottom position\n :param resource: Image.Image\n :return: Image.Image"
66
false
FlaskGuys/Flask-Imagine
_bottom_position
7,864
LDU_FT/apache/incubator-superset/handle_query_error
LDU_FT
[ "<BEGIN>\n## `new`", "Creates a new, blank dashboard and redirects to it in edit mode\n<END>", "<BEGIN>\n## `import_datasource`", "Imports the datasource from the object to the database.", " Metrics and columns and datasource will be overrided if exists.\n This function can be used to import/export ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_query_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_query_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Local method handling error while processing the SQL
"Local method handling error while processing the SQL"
411
false
apache/incubator-superset
handle_query_error
7,865
LDU_FT/nutechsoftware/alarmdecoder/find
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 find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Factory method that returns the requested :py:class:`USBDevice` device, or the first device. :param device: Tuple describing the USB device to open, as returned by find_all(). :type device: tuple :returns: :py:class:`USBDevice` object utilizing the specified devi...
"Factory method that returns the requested :py:class:`USBDevice` device, or the\n first device.\n\n :param device: Tuple describing the USB device to open, as returned\n by find_all().\n :type device: tuple\n\n :returns: :py:class:`USBDevice` object utilizing the specif...
286
false
nutechsoftware/alarmdecoder
find
7,866
LDU_FT/v1k45/python-qBittorrent/_post
LDU_FT
[ "<BEGIN>\n## `_post`", "Method to perform POST request on the API.", " :param endpoint: Endpoint of the API.\n :param data: POST DATA for the request.\n :param kwargs: Other keyword arguments for requests.", " :return: Response of the POST request.\n<END>", "<BEGIN>\n## `_request...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Method to perform POST request on the API. :param endpoint: Endpoint of the API. :param data: POST DATA for the request. :param kwargs: Other keyword arguments for requests. :return: Response of the POST request.
"Method to perform POST request on the API.\n\n :param endpoint: Endpoint of the API.\n :param data: POST DATA for the request.\n :param kwargs: Other keyword arguments for requests.\n\n :return: Response of the POST request."
98
false
v1k45/python-qBittorrent
_post
7,867
LDU_FT/OCHA-DAP/hdx-python-country/get_countries_in_region
LDU_FT
[ "<BEGIN>\n## `script_dir`", "Get current script's directory", " Args:\n pyobject (Any): Any Python object in the script\n follow_symlinks (Optional[bool]): Follow symlinks or not. Defaults to True.", " Returns:\n str: Current script's directory\n<END>", "<BEGIN>\n## `script_dir_pl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_countries_in_region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_countries_in_region API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Get countries (ISO3 codes) in region Args: region (Union[int,str]): Three digit UNStats M49 region code or region name use_live (bool): Try to get use latest data from web rather than file in package. Defaults to True. exception (Optional[ExceptionUpperBound]): An exception ...
"Get countries (ISO3 codes) in region\n\n Args:\n region (Union[int,str]): Three digit UNStats M49 region code or region name\n use_live (bool): Try to get use latest data from web rather than file in package. Defaults to True.\n exception (Optional[ExceptionUpperBound]): An exce...
76
false
OCHA-DAP/hdx-python-country
get_countries_in_region
7,868
LDU_FT/bastibe/SoundFile/_format_info
LDU_FT
[ "<BEGIN>\n## `read`", "Provide audio data from a sound file as NumPy array.", " By default, the whole file is read from the beginning, but the\n position to start reading can be specified with `start` and the\n number of frames to read can be specified with `frames`.\n Alternatively, a range can be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_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 extr...
Return the ID and short description of a given format.
"Return the ID and short description of a given format."
139
false
bastibe/SoundFile
_format_info
7,869
LDU_FT/geophysics-ubonn/crtomo_tools/add_to_configs
LDU_FT
[ "<BEGIN>\n## `clear_measurements`", "Remove all measurements from self.measurements. Reset the\n measurement counter. All ID are invalidated.\n<END>", "<BEGIN>\n## `add_measurements`", "Add new measurements to this instance", " Parameters\n ----------\n measurements: numpy.ndarra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_configs API. 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 add_to_configs API. 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...
Add configurations to all tomodirs Parameters ---------- configs : :class:`numpy.ndarray` Nx4 numpy array with abmn configurations
"Add configurations to all tomodirs\n\n Parameters\n ----------\n configs : :class:`numpy.ndarray`\n Nx4 numpy array with abmn configurations"
525
false
geophysics-ubonn/crtomo_tools
add_to_configs
7,870
LDU_FT/raamana/pyradigm/del_sample
LDU_FT
[ "<BEGIN>\n## `check_compatibility`", "Checks whether the given MLdataset instances are compatible", " i.e. with same set of subjects, each beloning to the same class in all instances.", " Checks the first dataset in the list against the rest, and returns a boolean array.", " Parameters\n -------...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the del_sample API. 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 del_sample API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Method to remove a sample from the dataset. Parameters ---------- sample_id : str sample id to be removed. Raises ------ UserWarning If sample id to delete was not found in the dataset.
"Method to remove a sample from the dataset.\n\n Parameters\n ----------\n sample_id : str\n sample id to be removed.\n\n Raises\n ------\n UserWarning\n If sample id to delete was not found in the dataset."
140
false
raamana/pyradigm
del_sample
7,871
LDU_FT/dragnet-org/dragnet/evaluation_metrics
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit :class`Extractor` features and model to a training dataset.", " Args:\n blocks (List[Block])\n labels (``np.ndarray``)\n weights (``np.ndarray``)", " Returns:\n :class`Extractor`\n<END>", "<BEGIN>\n## `get_html_labels_weight...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluation_metrics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evaluation_metrics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Input: predicted, actual = lists of the predicted and actual tokens bow: if true use bag of words assumption Returns: precision, recall, F1, Levenshtein distance
"Input:\n predicted, actual = lists of the predicted and actual tokens\n bow: if true use bag of words assumption\n Returns:\n precision, recall, F1, Levenshtein distance"
134
false
dragnet-org/dragnet
evaluation_metrics
7,872