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/simoninireland/epyc/sync_imports
LDU_FT
[ "<BEGIN>\n## `_parametersAsIndex`", "Private method to turn a parameter dict into a string suitable for\n keying a dict.", " ps: the parameters as a hash\n returns: a string key\n<END>", "<BEGIN>\n## `addResult`", "Add a result. This should be :term:`results dict` as returned from\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_imports API. 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 sync_imports API. 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 a context manager to control imports onto all the engines in the underlying cluster. This method is used within a ``with`` statement. Any imports should be done with no experiments running, otherwise the method will block until the cluster is quiet. Generally imports will be one ...
"Return a context manager to control imports onto all the engines\n in the underlying cluster. This method is used within a ``with`` statement.\n\n Any imports should be done with no experiments running, otherwise the\n method will block until the cluster is quiet. Generally imports will be one\n ...
116
false
simoninireland/epyc
sync_imports
142,673
LDU_FT/RedisJSON/rejson-py/jsonobjlen
LDU_FT
[ "<BEGIN>\n## `bulk_of_jsons`", "Replace serialized JSON values with objects in a bulk array response (list)\n<END>", "<BEGIN>\n## `setEncoder`", "Sets the client's encoder\n ``encoder`` should be an instance of a ``json.JSONEncoder`` class\n<END>", "<BEGIN>\n## `setDecoder`", "Sets the client's dec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonobjlen API. 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 jsonobjlen API. 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...
Returns the length of the dictionary JSON value under ``path`` at key ``name``
"Returns the length of the dictionary JSON value under ``path`` at key\n ``name``"
43
false
RedisJSON/rejson-py
jsonobjlen
142,674
LDU_FT/BD2KOnFHIR/fhirtordf/known_formats
LDU_FT
[ "<BEGIN>\n## `namespace_for`", "Reverse namespace lookup. Note that returned namespace may not be unique\n :param uri: namespace URI\n :return: namespace\n<END>", "<BEGIN>\n## `known_formats`", "Return a list of available formats in rdflib for the required task\n :param use: task (typically Serializ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the known_formats API. 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 known_formats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return a list of available formats in rdflib for the required task :param use: task (typically Serializer or Parser) :param include_mime_types: whether mime types are included in the return list :return: list of formats
"Return a list of available formats in rdflib for the required task\n :param use: task (typically Serializer or Parser)\n :param include_mime_types: whether mime types are included in the return list\n :return: list of formats"
75
false
BD2KOnFHIR/fhirtordf
known_formats
142,675
LDU_FT/tomduck/pandoc-xnos/_repair_refs
LDU_FT
[ "<BEGIN>\n## `_repeat`", "Repeats func(...) call until something other than None is returned.\n<END>", "<BEGIN>\n## `init`", "Sets or determines the pandoc version. This must be called.", " The pandoc version is needed for multi-version support.\n See: https://github.com/jgm/pandoc/issues/2640", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repair_refs API. 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 _repair_refs API. 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...
Performs the repair on the element list 'x'.
"Performs the repair on the element list 'x'."
63
false
tomduck/pandoc-xnos
_repair_refs
142,676
LDU_FT/chaoss/grimoirelab-sortinghat/add_identity
LDU_FT
[ "<BEGIN>\n## `run`", "List, add or delete entries from the blacklist.", " By default, it prints the list of entries available on\n the blacklist.\n<END>", "<BEGIN>\n## `add`", "Add entries to the blacklist.", " This method adds the given 'entry' to the blacklist.", " :param e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_identity API. 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 add_identity API. 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...
Add an identity to the session. This function adds a new identity to the session using `identity_id` as its identifier. The new identity will also be linked to the unique identity object of `uidentity`. Neither the values given to `identity_id` nor to `source` can be `None` or empty. Moreover, `na...
"Add an identity to the session.\n\n This function adds a new identity to the session using\n `identity_id` as its identifier. The new identity will\n also be linked to the unique identity object of `uidentity`.\n\n Neither the values given to `identity_id` nor to `source` can\n be `None` or empty. Moreo...
700
false
chaoss/grimoirelab-sortinghat
add_identity
142,677
LDU_FT/brutasse/graphite-api/secondYAxis
LDU_FT
[ "<BEGIN>\n## `_find_paths`", "Recursively generates absolute paths whose components\n underneath current_dir match the corresponding pattern in\n patterns\n<END>", "<BEGIN>\n## `union_overlapping`", "Union any overlapping intervals in the given set.\n<END>", "<BEGIN>\n## `recurse`", "Recursi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the secondYAxis API. 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 secondYAxis API. 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...
Graph the series on the secondary Y axis.
"Graph the series on the secondary Y axis."
519
false
brutasse/graphite-api
secondYAxis
142,678
LDU_FT/cdeboever3/cdpybio/make_splice_junction_df
LDU_FT
[ "<BEGIN>\n## `get_region_nt_counts`", "Get counts of each nucleotide from a bam file for a given region. If R1 and\n R2 reads both overlap a position, only one count will be added. If the R1\n and R2 reads disagree at a position they both overlap, that read pair is not\n used for that position. Can opti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_splice_junction_df 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 make_splice_junction_df API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Read the Gencode gtf file and make a pandas dataframe describing the splice junctions Parameters ---------- filename : str of filename Filename of the Gencode gtf file Returns ------- df : pandas.DataFrame Dataframe of splice junctions with the following columns 'gene', ...
"Read the Gencode gtf file and make a pandas dataframe describing the \n splice junctions\n\n Parameters\n ----------\n filename : str of filename \n Filename of the Gencode gtf file\n\n Returns\n -------\n df : pandas.DataFrame\n Dataframe of splice junctions with the following colum...
387
false
cdeboever3/cdpybio
make_splice_junction_df
142,679
LDU_FT/square/pylink/strace_clear
LDU_FT
[ "<BEGIN>\n## `main`", "Prints the core's information.", " Args:\n jlink_serial (str): the J-Link serial number\n device (str): the target CPU", " Returns:\n Always returns ``0``.", " Raises:\n JLinkException: on error\n<END>", "<BEGIN>\n## `acquire`", "Attempts to acquire a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strace_clear API. 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 strace_clear API. 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...
Clears the trace event specified by the given handle. Args: self (JLink): the ``JLink`` instance. handle (int): handle of the trace event. Returns: ``None`` Raises: JLinkException: on error.
"Clears the trace event specified by the given handle.\n\n Args:\n self (JLink): the ``JLink`` instance.\n handle (int): handle of the trace event.\n\n Returns:\n ``None``\n\n Raises:\n JLinkException: on error."
949
false
square/pylink
strace_clear
142,680
LDU_FT/lk-geimfari/mimesis/top_level_domain
LDU_FT
[ "<BEGIN>\n## `content_type`", "Get a random HTTP content type.", " :return: Content type.", " :Example:\n Content-Type: application/json\n<END>", "<BEGIN>\n## `ip_v4`", "Generate a random IPv4 address.", " :param with_port: Add port to IP.\n :return: Random IPv4 ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top_level_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top_level_domain API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return random top level domain. :param tld_type: Enum object DomainType :return: Top level domain. :raises NonEnumerableError: if tld_type not in DomainType.
"Return random top level domain.\n\n :param tld_type: Enum object DomainType\n :return: Top level domain.\n :raises NonEnumerableError: if tld_type not in DomainType."
559
false
lk-geimfari/mimesis
top_level_domain
142,681
LDU_FT/samluescher/django-media-tree/exclude
LDU_FT
[ "<BEGIN>\n## `i18n_javascript`", "Displays the i18n JavaScript that the Django admin requires.", " This takes into account the USE_I18N setting. If it's set to False, the\n generated JavaScript will be leaner and faster.\n<END>", "<BEGIN>\n## `file_links`", "Turns a (optionally nested) list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exclude API. 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 exclude API. 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...
Works just like the default Manager's :func:`exclude` method, but you can pass an additional keyword argument named ``path`` specifying the full **path of the folder whose immediate child objects** you want to exclude, e.g. ``"path/to/folder"``.
"Works just like the default Manager's :func:`exclude` method, but\n you can pass an additional keyword argument named ``path`` specifying\n the full **path of the folder whose immediate child objects** you\n want to exclude, e.g. ``\"path/to/folder\"``."
96
false
samluescher/django-media-tree
exclude
142,682
LDU_FT/foliant-docs/foliantcontrib.includes/process_includes
LDU_FT
[ "<BEGIN>\n## `_find_file`", "Find a file in a directory by name. Check subdirectories recursively.", " :param file_name: Name of the file\n :lookup_dir: Starting directory", " :returns: Path to the found file or None if the file was not found\n :raises: FileNotFoundError\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_includes API. 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 process_includes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Replace all include statements with the respective file contents. :param markdown_file_path: Path to curently processed Markdown file :param content: Markdown content :returns: Markdown content with resolved includes
"Replace all include statements with the respective file contents.\n\n :param markdown_file_path: Path to curently processed Markdown file\n :param content: Markdown content\n\n :returns: Markdown content with resolved includes"
49
false
foliant-docs/foliantcontrib.includes
process_includes
142,683
LDU_FT/mitodl/pylti/_post_patched_request
LDU_FT
[ "<BEGIN>\n## `_post_patched_request`", "Authorization header needs to be capitalized for some LTI clients\n this function ensures that header is capitalized", " :param body: body of the call\n :param client: OAuth Client\n :param url: outcome url\n :return: response\n<END>", "<BEGIN>\n## `post_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _post_patched_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _post_patched_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. ...
Authorization header needs to be capitalized for some LTI clients this function ensures that header is capitalized :param body: body of the call :param client: OAuth Client :param url: outcome url :return: response
"Authorization header needs to be capitalized for some LTI clients\n this function ensures that header is capitalized\n\n :param body: body of the call\n :param client: OAuth Client\n :param url: outcome url\n :return: response"
53
false
mitodl/pylti
_post_patched_request
142,684
LDU_FT/tgbugs/ontquery/crude_search_scicrunch_via_label
LDU_FT
[ "<BEGIN>\n## `examples`", "Examples of how to use. Default are that some functions are commented out in order\n to not cause harm to existing metadata within the database.\n<END>", "<BEGIN>\n## `process_response`", "Checks for correct data response and status codes\n<END>", "<BEGIN>\n## `process_syno...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crude_search_scicrunch_via_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crude_search_scicrunch_via_label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Server returns anything that is simlar in any catagory
"Server returns anything that is simlar in any catagory"
44
false
tgbugs/ontquery
crude_search_scicrunch_via_label
142,685
LDU_FT/Kami/python-yubico-client/get_parameters_as_dictionary
LDU_FT
[ "<BEGIN>\n## `translate`", "Return set() of possible modhex interpretations of a Yubikey otp.", " If otp uses all 16 characters in its alphabet, there will be only\n one possible interpretation of that Yubikey otp (except for two\n Armenian keyboard layouts).", " otp: Yubikey output.\n to: 16-c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parameters_as_dictionary 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 get_parameters_as_dictionary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Returns query string parameters as a dictionary.
"Returns query string parameters as a dictionary."
32
false
Kami/python-yubico-client
get_parameters_as_dictionary
142,686
LDU_FT/micha030201/aionationstates/censusranks
LDU_FT
[ "<BEGIN>\n## `tgcanrecruit`", "Whether the nation will receive a recruitment telegram.", " Useful in conjunction with the Telegrams API.", " Parameters\n ----------\n region : str\n Name of the region you are recruiting for.", " Returns\n -------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the censusranks API. 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 censusranks API. 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...
Iterate through nations ranked on the World Census scale. If the ranks change while you interate over them, they may be inconsistent. Parameters ---------- scale : int A World Census scale, an integer between 0 and 85 inclusive. Returns ------- ...
"Iterate through nations ranked on the World Census scale.\n\n If the ranks change while you interate over them, they may be\n inconsistent.\n\n Parameters\n ----------\n scale : int\n A World Census scale, an integer between 0 and 85 inclusive.\n\n Returns\n ...
156
false
micha030201/aionationstates
censusranks
142,687
LDU_FT/wright-group/WrightTools/log
LDU_FT
[ "<BEGIN>\n## `flatten_list`", "Flatten an irregular sequence.", " Works generally but may be slower than it could\n be if you can make assumptions about your list.", " `Source`__", " __ https://stackoverflow.com/a/10824086", " Parameters\n ----------\n items : iterable\n The ir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log API. 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 log API. 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...
Take the log of the entire dataset. Parameters ---------- base : number (optional) Base of log. Default is e. floor : number (optional) Clip values below floor after log. Default is None.
"Take the log of the entire dataset.\n\n Parameters\n ----------\n base : number (optional)\n Base of log. Default is e.\n floor : number (optional)\n Clip values below floor after log. Default is None."
603
false
wright-group/WrightTools
log
142,688
LDU_FT/cloudboss/friend/random_ipv4
LDU_FT
[ "<BEGIN>\n## `cached`", "A decorator function to cache values. It uses the decorated\n function's arguments as the keys to determine if the function\n has been called previously.\n<END>", "<BEGIN>\n## `retry_wait_time`", "Determine a retry wait time based on the number of the\n retry attempt and a ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_ipv4 API. 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 random_ipv4 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return a random IPv4 address from the given CIDR block. :key str cidr: CIDR block :returns: An IPv4 address from the given CIDR block :rtype: ipaddress.IPv4Address
"Return a random IPv4 address from the given CIDR block.\n\n :key str cidr: CIDR block\n :returns: An IPv4 address from the given CIDR block\n :rtype: ipaddress.IPv4Address"
49
false
cloudboss/friend
random_ipv4
142,689
LDU_FT/fitnr/convertdate/delay_2
LDU_FT
[ "<BEGIN>\n## `to_jd`", "Return Julian day count of given ISO year, week, and day\n<END>", "<BEGIN>\n## `from_jd`", "Return tuple of ISO (year, week, day) for Julian day\n<END>", "<BEGIN>\n## `legal_date`", "Check if this is a legal date in the Julian calendar\n<END>", "<BEGIN>\n## `from_jd`", "Calcula...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delay_2 API. 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 delay_2 API. 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...
Check for delay in start of new year due to length of adjacent years
"Check for delay in start of new year due to length of adjacent years"
85
false
fitnr/convertdate
delay_2
142,690
LDU_FT/biolink/ontobio/termset_ancestors
LDU_FT
[ "<BEGIN>\n## `extract_subset`", "Find all nodes in a subset.", " We assume the oboInOwl encoding of subsets, and subset IDs are IRIs\n<END>", "<BEGIN>\n## `sparql`", "Execute a SPARQL query.", " The query is specified using `select` and `body` parameters.\n The argument for the Named ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the termset_ancestors API. 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 termset_ancestors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
reflexive ancestors Arguments --------- terms - a set or list of class IDs Returns: set of class IDs
"reflexive ancestors\n\n Arguments\n ---------\n\n terms - a set or list of class IDs\n\n Returns: set of class IDs"
526
false
biolink/ontobio
termset_ancestors
142,691
LDU_FT/skggm/skggm/empirical
LDU_FT
[ "<BEGIN>\n## `log_likelihood`", "Computes the log-likelihood between the covariance and precision\n estimate.", " Parameters\n ----------\n covariance : 2D ndarray (n_features, n_features)\n Maximum Likelihood Estimator of covariance", " precision : 2D ndarray (n_features, n_features)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the empirical API. 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 empirical API. 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...
Compute empirical covariance as baseline estimator.
"Compute empirical covariance as baseline estimator."
239
false
skggm/skggm
empirical
142,692
LDU_FT/gbiggs/rtctree/has_port
LDU_FT
[ "<BEGIN>\n## `build_attr_string`", "Build a string that will turn any ANSI shell output the desired\r\n colour.\r", " attrs should be a list of keys into the term_attributes table.\n<END>", "<BEGIN>\n## `get_num_columns_and_rows`", "Given a list of string widths, a width of the minimum gap to place\r\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_port API. 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 has_port API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Return True if this connection involves the given Port object. @param port The Port object to search for in this connection's ports.
"Return True if this connection involves the given Port object.\n\n @param port The Port object to search for in this connection's ports."
285
false
gbiggs/rtctree
has_port
142,693
LDU_FT/carlosp420/primer-designer/make_report_from_html_file
LDU_FT
[ "<BEGIN>\n## `is_fasta`", "Check if filename is FASTA based on extension", " Return:\n Boolean\n<END>", "<BEGIN>\n## `insert_taxon_in_new_fasta_file`", "primer4clades infers the codon usage table from the taxon names in the\n sequences.", " These names need to be enclosed by square ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_report_from_html_file 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 make_report_from_html_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Processes the results from primer4clades (a html file). Makes a report based on the best possible primer pair (with highest quality and longest amplicon).
"Processes the results from primer4clades (a html file).\n\n Makes a report based on the best possible primer pair (with highest\n quality and longest amplicon)."
14
false
carlosp420/primer-designer
make_report_from_html_file
142,694
LDU_FT/twitterdev/twitter-python-ads-sdk/stats
LDU_FT
[ "<BEGIN>\n## `content_type`", "Returns the content-type value determined by file extension.\n<END>", "<BEGIN>\n## `__init_chunked_upload`", "Initialization for a multi-chunk upload.\n<END>", "<BEGIN>\n## `__upload_chunk`", "Uploads a single chunk of a multi-chunk upload.\n<END>", "<BEGIN>\n## `save`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Pulls a list of metrics for the current object instance.
"Pulls a list of metrics for the current object instance."
74
false
twitterdev/twitter-python-ads-sdk
stats
142,695
LDU_FT/Jahaja/psdash/find
LDU_FT
[ "<BEGIN>\n## `_read`", "Reads and returns a buffer reversely from current file-pointer position.", " :rtype : str\n<END>", "<BEGIN>\n## `find`", "Returns the position of the first occurence of needle.\n If the needle was not found, -1 is returned.", " :rtype : int\n<END>", "<BEGIN>\...
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...
Returns the position of the first occurence of needle. If the needle was not found, -1 is returned. :rtype : int
"Returns the position of the first occurence of needle.\n If the needle was not found, -1 is returned.\n\n :rtype : int"
14
false
Jahaja/psdash
find
142,696
LDU_FT/django-blog-zinnia/wordpress2zinnia/migrate_author
LDU_FT
[ "<BEGIN>\n## `guess_wxr_version`", "We will try to guess the wxr version used\n to complete the wordpress xml namespace name.\n<END>", "<BEGIN>\n## `import_authors`", "Retrieve all the authors used in posts\n and convert it to new or existing author and\n return the conversion.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the migrate_author API. 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 migrate_author API. 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...
Handle actions for migrating the authors.
"Handle actions for migrating the authors."
20
false
django-blog-zinnia/wordpress2zinnia
migrate_author
142,697
LDU_FT/pypa/bandersnatch/find_package_indexes_in_dir
LDU_FT
[ "<BEGIN>\n## `_determine_unfiltered_package_names`", "Return a list of package names to be filtered base on the configuration\n file.\n<END>", "<BEGIN>\n## `check_match`", "Check if the package name matches against a project that is blacklisted\n in the configuration.", " Parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_package_indexes_in_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_package_indexes_in_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Given a directory that contains simple packages indexes, return a sorted list of normalized package names. This presumes every directory within is a simple package index directory.
"Given a directory that contains simple packages indexes, return\n a sorted list of normalized package names. This presumes every\n directory within is a simple package index directory."
70
false
pypa/bandersnatch
find_package_indexes_in_dir
142,698
LDU_FT/contentful/contentful-management.py/assets
LDU_FT
[ "<BEGIN>\n## `create`", "Creates an entry with a given ID (optional) and attributes.\n<END>", "<BEGIN>\n## `create`", "Creates a webhook with given attributes.\n<END>", "<BEGIN>\n## `camel_case`", "Returns a camel-cased version of a string.", " :param a_string: any :class:`str` object.", " Usage...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assets API. 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 assets API. 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 ...
Provides access to asset management methods. API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/assets :return: :class:`EnvironmentAssetsProxy <contentful_management.environment_assets_proxy.EnvironmentAssetsProxy>` object. :rtype: contentfu...
"Provides access to asset management methods.\n\n API reference: https://www.contentful.com/developers/docs/references/content-management-api/#/reference/assets\n\n :return: :class:`EnvironmentAssetsProxy <contentful_management.environment_assets_proxy.EnvironmentAssetsProxy>` object.\n :rtype: con...
161
false
contentful/contentful-management.py
assets
142,699
LDU_FT/CiscoTestAutomation/yang/node_less
LDU_FT
[ "<BEGIN>\n## `retrieve_config`", "retrieve_config", " High-level api: Retrive config from rpc-reply.", " Parameters\n ----------", " element : `Element`\n A rpc-reply or content of Config instance.", " Returns\n -------", " Element\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the node_less API. 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 node_less API. 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...
node_less Low-level api: Return True if all descendants of node1 exist in node2. Otherwise False. This is a recursive method. Parameters ---------- node1 : `Element` A node in a model tree. node2 : `Element` A node in another model tree. ...
"node_less\n\n Low-level api: Return True if all descendants of node1 exist in node2.\n Otherwise False. This is a recursive method.\n\n Parameters\n ----------\n\n node1 : `Element`\n A node in a model tree.\n\n node2 : `Element`\n A node in another model...
554
false
CiscoTestAutomation/yang
node_less
142,700
LDU_FT/ricmoo/pyscrypt/_load_get_attr
LDU_FT
[ "<BEGIN>\n## `pbkdf2_single`", "Returns the result of the Password-Based Key Derivation Function 2 with\n a single iteration (i.e. count = 1).", " prf - a psuedorandom function", " See http://en.wikipedia.org/wiki/PBKDF2\n<END>", "<BEGIN>\n## `salsa20_8`", "Salsa 20/8 stream cypher; Used...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_get_attr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_get_attr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return an internal attribute after ensuring the headers is loaded if necessary.
"Return an internal attribute after ensuring the headers is loaded if necessary."
33
false
ricmoo/pyscrypt
_load_get_attr
142,701
LDU_FT/instacart/lore/get_or_create
LDU_FT
[ "<BEGIN>\n## `foreground`", "Color the text of the content", " :param color: pick a constant, any constant\n :type color: int\n :param content: Whatever you want to say...\n :type content: unicode\n :return: ansi string\n :rtype: unicode\n<END>", "<BEGIN>\n## `rgb`", "Colors a content usin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Creates an object or returns the object if exists credit to Kevin @ StackOverflow from: http://stackoverflow.com/questions/2546207/does-sqlalchemy-have-an-equivalent-of-djangos-get-or-create
"Creates an object or returns the object if exists\n credit to Kevin @ StackOverflow\n from: http://stackoverflow.com/questions/2546207/does-sqlalchemy-have-an-equivalent-of-djangos-get-or-create"
69
false
instacart/lore
get_or_create
142,702
LDU_FT/steffann/pylisp/from_bytes
LDU_FT
[ "<BEGIN>\n## `from_bytes`", "Look at the type of the message, instantiate the correct class and\n let it parse the message.\n<END>", "<BEGIN>\n## `sanitize`", "Check if the current settings conform to the LISP specifications and\n fix them where possible.\n<END>", "<BEGIN>\n## `calculate_authe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_bytes API. 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 from_bytes API. 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...
Look at the type of the message, instantiate the correct class and let it parse the message.
"Look at the type of the message, instantiate the correct class and\n let it parse the message."
85
false
steffann/pylisp
from_bytes
142,703
LDU_FT/nitmir/django-cas-server/_gen_ticket
LDU_FT
[ "<BEGIN>\n## `clean_deleted_sessions`", "remove old :class:`FederateSLO` object for which the session do not exists anymore\n<END>", "<BEGIN>\n## `send_mails`", "For each new django-cas-server version, if the current instance is not up to date\n send one mail to ``settings.ADMINS``.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gen_ticket API. 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 _gen_ticket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Generate a ticket with prefix ``prefix`` and length ``lg`` :param unicode prefix: An optional prefix (probably ST, PT, PGT or PGTIOU) :param int lg: The length of the generated ticket (with the prefix) :return: A randomlly generated ticket of length ``lg`` :rtype: unicode
"Generate a ticket with prefix ``prefix`` and length ``lg``\n\n :param unicode prefix: An optional prefix (probably ST, PT, PGT or PGTIOU)\n :param int lg: The length of the generated ticket (with the prefix)\n :return: A randomlly generated ticket of length ``lg``\n :rtype: unicode"
182
false
nitmir/django-cas-server
_gen_ticket
142,704
LDU_FT/nmdp-bioinformatics/SeqAnn/search_seqs
LDU_FT
[ "<BEGIN>\n## `search_seqs`", "search_seqs - method for annotating a BioPython sequence without alignment", " :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The inp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_seqs API. 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 search_seqs API. 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...
search_seqs - method for annotating a BioPython sequence without alignment :param seqrec: The reference sequence :type seqrec: SeqRecord :param locus: The gene locus associated with the sequence. :type locus: str :param in_seq: The input sequence :type in_seq: SeqRecord ...
"search_seqs - method for annotating a BioPython sequence without alignment\n\n :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The input sequence\n :type in_seq: Se...
112
false
nmdp-bioinformatics/SeqAnn
search_seqs
142,705
LDU_FT/kenneth-reitz/args/all_without
LDU_FT
[ "<BEGIN>\n## `remove`", "Removes given arg (or list thereof) from Args object.\n<END>", "<BEGIN>\n## `first`", "Returns first found index of given value (or list of values).\n<END>", "<BEGIN>\n## `start_with`", "Returns all arguments beginning with given string\n (or list thereof).\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_without API. 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 all_without API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns all arguments not containing given string (or list thereof).
"Returns all arguments not containing given string\n (or list thereof)."
14
false
kenneth-reitz/args
all_without
142,706
LDU_FT/woolfson-group/isambard/category_count
LDU_FT
[ "<BEGIN>\n## `covalent_bonds`", "Returns all the covalent bonds in a list of `Atom` pairs.", " Notes\n -----\n Uses information `element_data`, which can be accessed directly\n through this module i.e. `isambard.ampal.interactions.element_data`.", " Parameters\n ----------\n atoms : [(`At...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the category_count API. 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 category_count API. 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...
Returns the number of categories in `categories`.
"Returns the number of categories in `categories`."
880
false
woolfson-group/isambard
category_count
142,707
LDU_FT/jcrist/skein/to_directory
LDU_FT
[ "<BEGIN>\n## `add_page`", "Add a new proxied page to the Web UI.", " Parameters\n ----------\n route : str\n The route for the proxied page. Must be a valid path *segment* in a\n url (e.g. ``foo`` in ``/foo/bar/baz``). Routes must be unique\n across the appl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Write this security object to a directory. Parameters ---------- directory : str The directory to write the configuration to. force : bool, optional If security credentials already exist at this location, an error will be raised by default. Set to Tru...
"Write this security object to a directory.\n\n Parameters\n ----------\n directory : str\n The directory to write the configuration to.\n force : bool, optional\n If security credentials already exist at this location, an error\n will be raised by default. S...
153
false
jcrist/skein
to_directory
142,708
LDU_FT/LEMS/pylems/parse_event_writer
LDU_FT
[ "<BEGIN>\n## `toxml`", "Exports this object into a LEMS XML object\n<END>", "<BEGIN>\n## `toxml`", "Exports this object into a LEMS XML object\n<END>", "<BEGIN>\n## `tokenize`", "Tokenizes the string stored in the parser object into a list\n of tokens.\n<END>", "<BEGIN>\n## `parse_token_list_rec`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_event_writer 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 parse_event_writer 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...
Parses <EventWriter> @param node: Node containing the <EventWriter> element @type node: xml.etree.Element
"Parses <EventWriter>\n\n @param node: Node containing the <EventWriter> element\n @type node: xml.etree.Element"
441
false
LEMS/pylems
parse_event_writer
142,709
LDU_FT/NASA-AMMOS/AIT-Core/_assertField
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 _assertField API. 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 _assertField API. 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...
Raise AttributeError when PacketHistory has no field with the given name.
"Raise AttributeError when PacketHistory has no field with the given\n name."
688
false
NASA-AMMOS/AIT-Core
_assertField
142,710
LDU_FT/fm4d/KickassAPI/pages
LDU_FT
[ "<BEGIN>\n## `build`", "Build and return url. Also update max_page.\n<END>", "<BEGIN>\n## `build`", "Build and return url. Also update max_page.\n URL structure for user torrent lists differs from other result lists\n as the page number is part of the query string and not the URL path\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Yield torrents in range from page_from to page_to
"Yield torrents in range from page_from to page_to"
12
false
fm4d/KickassAPI
pages
142,711
LDU_FT/fhcrc/nestly/name_targets
LDU_FT
[ "<BEGIN>\n## `_delim_accum`", "Accumulator for delimited files", " Combines each file with values from JSON dictionary in same directory", " :param iterable control_files: Iterable of control files\n :param filename_template: A template for the file to nest_map\n :param keys: List of keys to selec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the name_targets API. 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 name_targets API. 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...
Wrap a function such that returning ``'a', 'b', 'c', [1, 2, 3]`` transforms the value into ``dict(a=1, b=2, c=3)``. This is useful in the case where the last parameter is an SCons command.
"Wrap a function such that returning ``'a', 'b', 'c', [1, 2, 3]`` transforms\n the value into ``dict(a=1, b=2, c=3)``.\n\n This is useful in the case where the last parameter is an SCons command."
73
false
fhcrc/nestly
name_targets
142,712
LDU_FT/makinacorpus/django-screamshot/render_template
LDU_FT
[ "<BEGIN>\n## `casperjs_command`", "Determine which capture engine is specified. Possible options:\n - casperjs\n - phantomjs\n Based on this value, locate the binary of the capture engine.", " If setting <engine>_CMD is not defined, then\n look up for ``<engine>`` in shell PATH and\n build the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_template API. 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 render_template API. 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...
Render a template from django project, and return the file object of the result.
"Render a template from django project, and return the\n file object of the result."
15
false
makinacorpus/django-screamshot
render_template
142,713
LDU_FT/mixmastamyk/console/load_x11_color_map
LDU_FT
[ "<BEGIN>\n## `clear_line`", "Clear the current line.", " Arguments:", " mode: | 0 | 'forward' | 'right' - Clear cursor to end of line.\n | 1 | 'backward' | 'left' - Clear cursor to beginning of line.\n | 2 | 'full' - Clear entire line.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_x11_color_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_x11_color_map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Load and parse X11's rgb.txt. Loads: x11_color_map: { name_lower: ('R', 'G', 'B') }
"Load and parse X11's rgb.txt.\n\n Loads:\n x11_color_map: { name_lower: ('R', 'G', 'B') }"
158
false
mixmastamyk/console
load_x11_color_map
142,714
LDU_FT/pinax/pinax-likes/likes
LDU_FT
[ "<BEGIN>\n## `who_likes`", "Usage:\n {% who_likes obj as var %}\n<END>", "<BEGIN>\n## `likes`", "Usage:\n {% likes user as var %}\n Or\n {% likes user [model1, model2] as var %}\n<END>", "<BEGIN>\n## `likes_count`", "Usage:", " {% likes_count obj %}\n or\n {% lik...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the likes API. 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 likes API. 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...
Usage: {% likes user as var %} Or {% likes user [model1, model2] as var %}
"Usage:\n {% likes user as var %}\n Or\n {% likes user [model1, model2] as var %}"
12
false
pinax/pinax-likes
likes
142,715
LDU_FT/btel/svg_utils/from_mpl
LDU_FT
[ "<BEGIN>\n## `fromfile`", "Open SVG figure from file.", " Parameters\n ----------\n fname : str\n name of the SVG file", " Returns\n -------\n SVGFigure\n newly created :py:class:`SVGFigure` initialised with the file content\n<END>", "<BEGIN>\n## `fromstring`", "Create a SV...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_mpl API. 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 from_mpl API. 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 a SVG figure from a ``matplotlib`` figure. Parameters ---------- fig : matplotlib.Figure instance savefig_kw : dict keyword arguments to be passed to matplotlib's `savefig` Returns ------- SVGFigure newly created :py:class:`SVGFigure` initialised with th...
"Create a SVG figure from a ``matplotlib`` figure.\n\n Parameters\n ----------\n fig : matplotlib.Figure instance\n\n savefig_kw : dict\n keyword arguments to be passed to matplotlib's\n `savefig`\n\n\n\n Returns\n -------\n SVGFigure\n newly created :py:class:`SVGFigure` ini...
63
false
btel/svg_utils
from_mpl
142,716
LDU_FT/tomturner/django-tenants/check
LDU_FT
[ "<BEGIN>\n## `get_table_list`", "Returns a list of table names in the current database and schema.\n<END>", "<BEGIN>\n## `get_table_description`", "Returns a description of the table, with the DB-API cursor.description interface.\n<END>", "<BEGIN>\n## `delete`", "Deletes this row. Drops the tenant's schem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
In addition to parent class' checks, also ensure that MULTITENANT_STATICFILES_DIRS is a tuple or a list.
"In addition to parent class' checks, also ensure that MULTITENANT_STATICFILES_DIRS\n is a tuple or a list."
50
false
tomturner/django-tenants
check
142,717
LDU_FT/rckclmbr/pyportify/constant_time_cmp
LDU_FT
[ "<BEGIN>\n## `perform_master_login`", "Perform a master login, which is what Android does when you first add a\n Google account.", " Return a dict, eg::", " {\n 'Auth': '...',\n 'Email': 'email@gmail.com',\n 'GooglePlusUpgrade': '1',\n 'LSID': '...',\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the constant_time_cmp API. 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 constant_time_cmp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Compare two strings using constant time.
"Compare two strings using constant time."
57
false
rckclmbr/pyportify
constant_time_cmp
142,718
LDU_FT/nickmckay/LiPD-utilities/get_data
LDU_FT
[ "<BEGIN>\n## `update_dois`", "Get DOI publication info for a batch of DOIs. This is LiPD-independent and only requires a CSV file with all DOIs\n listed in a single column. The output is LiPD-formatted publication data for each entry.", " :param str csv_source: Local path to CSV file\n :param bool writ...
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...
Resolve DOI and compile all attributes into one dictionary :param str doi_id: :param int idx: Publication index :return dict: Updated publication dictionary
"Resolve DOI and compile all attributes into one dictionary\n :param str doi_id:\n :param int idx: Publication index\n :return dict: Updated publication dictionary"
796
false
nickmckay/LiPD-utilities
get_data
142,719
LDU_FT/hollenstein/maspy/_fromJSON
LDU_FT
[ "<BEGIN>\n## `_getArrays`", "Return arrays with equal size of item attributes from a list of sorted\n \"items\" for fast and convenient data processing.", " :param attr: list of item attributes that should be added to the returned\n array.\n :param defaultValue: if an item is missing an attribut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fromJSON API. 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 _fromJSON API. 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...
Generates a new instance of :class:`maspy.core.MzmlScan` from a decoded JSON object (as generated by :func:`maspy.core.MzmlScan._reprJSON()`). :param jsonobject: decoded JSON object :returns: a new instance of :class:`MzmlScan`
"Generates a new instance of :class:`maspy.core.MzmlScan` from a\n decoded JSON object (as generated by\n :func:`maspy.core.MzmlScan._reprJSON()`).\n\n :param jsonobject: decoded JSON object\n\n :returns: a new instance of :class:`MzmlScan`"
742
false
hollenstein/maspy
_fromJSON
142,720
LDU_FT/mattja/sdeint/stratKP2iS
LDU_FT
[ "<BEGIN>\n## `broadcast_to`", "Broadcast an array to a new shape.", " Parameters\n ----------\n array : array_like\n The array to broadcast.\n shape : tuple\n The shape of the desired array.\n subok : bool, optional\n If True, then sub-classes will be passed-through, otherwis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stratKP2iS API. 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 stratKP2iS API. 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...
Use the Kloeden and Platen two-step implicit order 1.0 strong algorithm to integrate a Stratonovich equation dy = f(y,t)dt + G(y,t)\circ dW(t) This semi-implicit algorithm may be useful for stiff systems. The noise does not need to be scalar, diagonal, or commutative. This algorithm is defined in Kloe...
"Use the Kloeden and Platen two-step implicit order 1.0 strong algorithm\n to integrate a Stratonovich equation dy = f(y,t)dt + G(y,t)\\circ dW(t)\n\n This semi-implicit algorithm may be useful for stiff systems. The noise\n does not need to be scalar, diagonal, or commutative.\n\n This algorithm is defined...
118
false
mattja/sdeint
stratKP2iS
142,721
LDU_FT/OpenGov/python_data_wrap/GetColumnNumber
LDU_FT
[ "<BEGIN>\n## `read`", "Loads an arbitrary file type (xlsx, xls, or csv like) and returns\n a list of 2D tables. For csv files this will be a list of one table,\n but excel formats can have many tables/worksheets.", " TODO:\n Add wrapper which can be closed/exited on each file type which cleans\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetColumnNumber API. 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 GetColumnNumber API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
returns the column number for a given column heading name, 0 if not found
"returns the column number for a given column heading name, 0 if not found"
94
false
OpenGov/python_data_wrap
GetColumnNumber
142,722
LDU_FT/robinandeer/puzzle/delete_gemini_query
LDU_FT
[ "<BEGIN>\n## `individual_dict`", "Return a dict with ind_id as key and Individual as values.\n<END>", "<BEGIN>\n## `_get_genes`", "Add the genes for a variant", " Get the hgnc symbols from all transcripts and add them\n to the variant.", " Args:\n variant (dict): A variant ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_gemini_query 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_gemini_query 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...
Delete a gemini query Args: name (str)
"Delete a gemini query\n\n Args:\n name (str)"
306
false
robinandeer/puzzle
delete_gemini_query
142,723
LDU_FT/networks-lab/tidyextractors/tweets
LDU_FT
[ "<BEGIN>\n## `_col_type_set`", "Determines the set of types present in a DataFrame column.", " :param str col: A column name.\n :param pandas.DataFrame df: The dataset. Usually ``self._data``.\n :return: A set of Types.\n<END>", "<BEGIN>\n## `_drop_collections`", "Drops columns containi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tweets API. 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 tweets API. 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 table of Twitter user data, with "tweets" as rows/observations. .. note:: drop_collections is not available for this method, since there are no meaningful collections to keep. :return: pandas.DataFrame
"Returns a table of Twitter user data, with \"tweets\" as rows/observations.\n\n .. note::\n\n drop_collections is not available for this method, since there are no meaningful collections to keep.\n\n :return: pandas.DataFrame"
81
false
networks-lab/tidyextractors
tweets
142,724
LDU_FT/bioasp/iggy/get_scenfit_labelings
LDU_FT
[ "<BEGIN>\n## `readProfile`", "input: string, name of a file containing a profile description\n output: asp.TermSet, with atoms matching the contents of the input file", " Parses a profile description, and returns\n a TermSet object.\n<END>", "<BEGIN>\n## `get_scenfit`", "returns the scenfit of data and m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_scenfit_labelings 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_scenfit_labelings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
returns a list of atmost [nm] ``TermSet`` representing scenfit labelings to the system described by the ``TermSet`` object [instance].
"returns a list of atmost [nm] ``TermSet`` representing scenfit labelings\n to the system described by the ``TermSet`` object [instance]."
13
false
bioasp/iggy
get_scenfit_labelings
142,725
LDU_FT/edx/edx-drf-extensions/_get_signing_jwk_key_set
LDU_FT
[ "<BEGIN>\n## `authenticate_credentials`", "Validate the bearer token against the OAuth provider.", " Arguments:\n token (str): Access token to validate", " Returns:\n (tuple): tuple containing:", " user (User): User associated with the access token\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_signing_jwk_key_set 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 _get_signing_jwk_key_set API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns a JWK Keyset containing all active keys that are configured for verifying signatures.
"Returns a JWK Keyset containing all active keys that are configured\n for verifying signatures."
76
false
edx/edx-drf-extensions
_get_signing_jwk_key_set
142,726
LDU_FT/mapmyfitness/jtime/_save_config
LDU_FT
[ "<BEGIN>\n## `get_input`", "Get input from the user given an input function and an input string\n<END>", "<BEGIN>\n## `working_cycletime`", "Get the working time between a beginning and an end point subtracting out non-office time\n<END>", "<BEGIN>\n## `status`", "Gets the worklog status for the current b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _save_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _save_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Saves the username and password to the config
"Saves the username and password to the config"
36
false
mapmyfitness/jtime
_save_config
142,727
LDU_FT/rstoneback/pysat/difference
LDU_FT
[ "<BEGIN>\n## `list_files`", "Return a Pandas Series of every file for chosen satellite data.", " This routine is intended to be used by pysat instrument modules supporting\n a particular NASA CDAWeb dataset.", " Parameters\n -----------\n tag : (string or NoneType)\n Denotes type of file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extrac...
Calculates the difference in signals from multiple instruments within the given bounds. Parameters ---------- instrument1 : Instrument Information must already be loaded into the instrument. instrument2 : Instrument Information must already b...
"Calculates the difference in signals from multiple\n instruments within the given bounds.\n\n Parameters\n ----------\n instrument1 : Instrument\n Information must already be loaded into the\n instrument.\n\n instrument2 : Instrument\n Information mus...
525
false
rstoneback/pysat
difference
142,728
LDU_FT/mardix/flask-cloudy/_register_file_server
LDU_FT
[ "<BEGIN>\n## `get_file_extension_type`", "Return the group associated to the file\n :param filename:\n :return: str\n<END>", "<BEGIN>\n## `get_driver_class`", "Return the driver class\n :param provider: str - provider name\n :return:\n<END>", "<BEGIN>\n## `get_provider_name`", "Return the prov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _register_file_server 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 _register_file_server API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
File server Only local files can be served It's recommended to serve static files through NGINX instead of Python Use this for development only :param app: Flask app instance
"File server\n Only local files can be served\n It's recommended to serve static files through NGINX instead of Python\n Use this for development only\n :param app: Flask app instance"
33
false
mardix/flask-cloudy
_register_file_server
142,729
LDU_FT/GeospatialPython/pyshp/multipoint
LDU_FT
[ "<BEGIN>\n## `signed_area`", "Return the signed area enclosed by a ring using the linear time\r\n algorithm. A value >= 0 indicates a counter-clockwise oriented ring.\n<END>", "<BEGIN>\n## `as_dict`", "Returns this Record as a dictionary using the field names as keys\r\n :return: dict\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multipoint API. 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 multipoint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Creates a MULTIPOINT shape. Points is a list of xy values.
"Creates a MULTIPOINT shape.\r\n Points is a list of xy values."
82
false
GeospatialPython/pyshp
multipoint
142,730
LDU_FT/alphagov/performanceplatform-collector/parse_price
LDU_FT
[ "<BEGIN>\n## `parse_time_range`", "Convert the start/end datetimes specified by the user, specifically:\n - truncate any minutes/seconds\n - for a missing end time, use start + 24 hours\n - for a missing start time, use end - 24 hours\n - for missing start and end, use the last 24 hours\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_price API. 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 parse_price API. 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...
>>> parse_price('£16,000.00') 16000.0 >>> parse_price('-£16,000.00') -16000.0
">>> parse_price('£16,000.00')\n 16000.0\n >>> parse_price('-£16,000.00')\n -16000.0"
56
false
alphagov/performanceplatform-collector
parse_price
142,731
LDU_FT/KyleJamesWalker/yamlsettings/update_from_file
LDU_FT
[ "<BEGIN>\n## `conform_query`", "Converts the query string from a target uri, uses\n cls.default_query to populate default arguments.", " :param query: Unparsed query string\n :type query: urllib.parse.unsplit(uri).query\n :returns: Dictionary of parsed values, everything in cls.defau...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_from_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Override YAML settings with loaded values from filepaths. - File paths in the list gets the priority by their orders of the list.
"Override YAML settings with loaded values from filepaths.\n\n - File paths in the list gets the priority by their orders of the list."
46
false
KyleJamesWalker/yamlsettings
update_from_file
142,732
LDU_FT/Iotic-Labs/py-IoticAgent/__clear_references
LDU_FT
[ "<BEGIN>\n## `_notify_thing_lid_change`", "Used by Thing instances to indicate that a rename operation has happened\n<END>", "<BEGIN>\n## `register_catchall_feeddata`", "Registers a callback that is called for all feeddata your Thing receives", " `Example`", " #!python\n def f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __clear_references 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 __clear_references 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...
Remove any internal references to the given request
"Remove any internal references to the given request"
643
false
Iotic-Labs/py-IoticAgent
__clear_references
142,733
LDU_FT/pip-services3-python/pip-services3-components-python/clear
LDU_FT
[ "<BEGIN>\n## `configure`", "Configures component by passing configuration parameters.", " :param config: configuration parameters to be set.\n<END>", "<BEGIN>\n## `can_create`", "Checks if this factory is able to create component by given locator.", " This method searches for all registered ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. 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 clear API. 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...
Clears (resets) a counter specified by its name. :param name: a counter name to clear.
"Clears (resets) a counter specified by its name.\n\n :param name: a counter name to clear."
272
false
pip-services3-python/pip-services3-components-python
clear
142,734
LDU_FT/GoogleCloudPlatform/appengine-gcs-client/_check_etag
LDU_FT
[ "<BEGIN>\n## `check_status`", "Check HTTP response status is expected.", " Args:\n status: HTTP response status. int.\n expected: a list of expected statuses. A list of ints.\n path: filename or a path prefix.\n headers: HTTP request headers.\n resp_headers: HTTP response headers.\n body: HTT...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_etag API. 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 _check_etag API. 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...
Check if etag is the same across requests to GCS. If self._etag is None, set it. If etag is set, check that the new etag equals the old one. In the __init__ method, we fire one HEAD and one GET request using ndb tasklet. One of them would return first and set the first value. Args: etag: et...
"Check if etag is the same across requests to GCS.\n\n If self._etag is None, set it. If etag is set, check that the new\n etag equals the old one.\n\n In the __init__ method, we fire one HEAD and one GET request using\n ndb tasklet. One of them would return first and set the first value.\n\n Args:\n ...
270
false
GoogleCloudPlatform/appengine-gcs-client
_check_etag
142,735
LDU_FT/cherrypy/cheroot/serve
LDU_FT
[ "<BEGIN>\n## `respond`", "Process the current request.", " From :pep:`333`:", " The start_response callable must not actually transmit\n the response headers. Instead, it must store them for the\n server or gateway to transmit only after the first\n iteration...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve API. 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 serve API. 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...
Serve requests, after invoking :func:`prepare()`.
"Serve requests, after invoking :func:`prepare()`."
143
false
cherrypy/cheroot
serve
142,736
LDU_FT/zxylvlp/PingPHP/p_InDecrement
LDU_FT
[ "<BEGIN>\n## `t_DOCCOMMENT`", "r'((\\'\\'\\'((?!\\'\\'\\')[\\s\\S])*\\'\\'\\')|(\\'{6,8})|(\"\"\"((?!\"\"\")[\\s\\S])*\"\"\")|(\"{6,8}))[ \\t]*\\n\n<END>", "<BEGIN>\n## `t_NATIVEPHP`", "r'<\\?php((?!<\\?php)[\\s\\S])*\\?>[ \\t]*(?=\\n)\n<END>", "<BEGIN>\n## `t_INDENTIFIER`", "r'(\\$?[_a-zA-Z][_a-zA-Z0-9]*...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_InDecrement API. 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 p_InDecrement API. 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...
InDecrement : INDECREMENT Expression | Expression INDECREMENT
"InDecrement : INDECREMENT Expression\n | Expression INDECREMENT"
74
false
zxylvlp/PingPHP
p_InDecrement
142,737
LDU_FT/juanifioren/django-oidc-provider/userinfo
LDU_FT
[ "<BEGIN>\n## `userinfo`", "Create a dictionary with all the requested claims about the End-User.\n See: http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse", " Return a dictionary.\n<END>", "<BEGIN>\n## `create_response_dic`", "Generate the dic that will be jsonify. Checking scopes g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the userinfo API. 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 userinfo API. 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 a dictionary with all the requested claims about the End-User. See: http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse Return a dictionary.
"Create a dictionary with all the requested claims about the End-User.\n See: http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse\n\n Return a dictionary."
60
false
juanifioren/django-oidc-provider
userinfo
142,738
LDU_FT/SUNCAT-Center/CatHub/file_to_df
LDU_FT
[ "<BEGIN>\n## `molecules2symbols`", "Take a list of molecules and return just a list of atomic\n symbols, possibly adding hydrogen\n<END>", "<BEGIN>\n## `construct_reference_system`", "Take a list of symbols and construct gas phase\n references system, when possible avoiding O2.\n Candidates can be re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_to_df API. 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 file_to_df API. 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...
Read in file and return pandas data_frame. Parameters ---------- filename : Filename including path. Returns ------- df : pandas data frame
"Read in file and return pandas data_frame.\n\n Parameters\n ----------\n filename : Filename including path.\n\n Returns\n -------\n df : pandas data frame"
178
false
SUNCAT-Center/CatHub
file_to_df
142,739
LDU_FT/cosven/feeluown-core/handle
LDU_FT
[ "<BEGIN>\n## `handle`", "NOTE: use tcp instead of udp because some operations need ack\n<END>", "<BEGIN>\n## `url`", "We will always check if this song file exists in local library,\n if true, we return the url of the local file.", " .. note::", " As netease song url will be expir...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API. 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 handle API. 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 ...
NOTE: use tcp instead of udp because some operations need ack
"NOTE: use tcp instead of udp because some operations need ack"
74
false
cosven/feeluown-core
handle
142,740
LDU_FT/jay-johnson/antinex-client/build_ai_client_from_env
LDU_FT
[ "<BEGIN>\n## `generate_ai_request`", "generate_ai_request", " :param predict_rows: list of predict rows to build into the request\n :param req_dict: request dictionary to update - for long-running clients\n :param req_file: file holding a request dict to update - one-off tests\n :param features: fea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_ai_client_from_env 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 build_ai_client_from_env API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
build_ai_client_from_env Use environment variables to build a client :param verbose: verbose logging :param debug: debug internal client calls :param ca_dir: optional path to CA bundle dir :param cert_file: optional path to x509 ssl cert file :param key_file: optional path to x509 ssl key file
"build_ai_client_from_env\n\n Use environment variables to build a client\n\n :param verbose: verbose logging\n :param debug: debug internal client calls\n :param ca_dir: optional path to CA bundle dir\n :param cert_file: optional path to x509 ssl cert file\n :param key_file: optional path to x509 ssl...
46
false
jay-johnson/antinex-client
build_ai_client_from_env
142,741
LDU_FT/SuperCowPowers/chains/tag_stuff
LDU_FT
[ "<BEGIN>\n## `packet_meta_data`", "Pull out the metadata about each packet from the input_stream\n Args:\n None\n Returns:\n generator (dictionary): a generator that contains packet meta data in the form of a dictionary\n<END>", "<BEGIN>\n## `pull`", "Print out ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag_stuff API. 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 tag_stuff API. 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...
Look through my input stream for the fields to be tagged
"Look through my input stream for the fields to be tagged"
41
false
SuperCowPowers/chains
tag_stuff
142,742
LDU_FT/msuozzo/Lector/_wait_for_js
LDU_FT
[ "<BEGIN>\n## `_to_reader_home`", "Navigate to the Cloud Reader library page.", " Raises:\n BrowserError: If the KCR homepage could not be loaded.\n ConnectionError: If there was a connection error.\n<END>", "<BEGIN>\n## `_login`", "Logs in to Kindle Cloud Reader.", " Args:\n max_tries...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wait_for_js API. 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 _wait_for_js API. 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...
Wait for the Kindle Cloud Reader JS modules to initialize. These modules provide the interface used to execute API queries.
"Wait for the Kindle Cloud Reader JS modules to initialize.\n\n These modules provide the interface used to execute API queries."
29
false
msuozzo/Lector
_wait_for_js
142,743
LDU_FT/qwilka/vn-tree/add_child
LDU_FT
[ "<BEGIN>\n## `add_child`", "Add a child node to the current node instance.", " :param node: the child node instance.\n :type node: Node\n :returns: The new child node instance. \n :rtype: Node\n<END>", "<BEGIN>\n## `remove_child`", "Remove a child node from the current node ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_child API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_child API. 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...
Add a child node to the current node instance. :param node: the child node instance. :type node: Node :returns: The new child node instance. :rtype: Node
"Add a child node to the current node instance.\n\n :param node: the child node instance.\n :type node: Node\n :returns: The new child node instance. \n :rtype: Node"
59
false
qwilka/vn-tree
add_child
142,744
LDU_FT/cds-astro/mocpy/serialize
LDU_FT
[ "<BEGIN>\n## `max_order`", "Depth of the smallest HEALPix cells found in the MOC instance.\n<END>", "<BEGIN>\n## `intersection`", "Intersection between the MOC instance and other MOCs.", " Parameters\n ----------\n another_moc : `~mocpy.moc.MOC`\n The MOC used for performing ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API. 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 serialize API. 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...
Serializes the MOC into a specific format. Possible formats are FITS, JSON and STRING Parameters ---------- format : str 'fits' by default. The other possible choice is 'json' or 'str'. optional_kw_dict : dict Optional keywords arguments added to the FIT...
"Serializes the MOC into a specific format.\n\n Possible formats are FITS, JSON and STRING\n\n Parameters\n ----------\n format : str\n 'fits' by default. The other possible choice is 'json' or 'str'.\n optional_kw_dict : dict\n Optional keywords arguments added ...
210
false
cds-astro/mocpy
serialize
142,745
LDU_FT/creare-com/pydem/_plot_debug_slopes_directions
LDU_FT
[ "<BEGIN>\n## `_get_flat_ids`", "This is a helper function to recover the coordinates of regions that have\n been labeled within an image. This function efficiently computes the\n coordinate of all regions and returns the information in a memory-efficient\n manner.", " Parameters\n -----------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _plot_debug_slopes_directions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _plot_debug_slopes_directions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
A debug function to plot the direction calculated in various ways.
"A debug function to plot the direction calculated in various ways."
201
false
creare-com/pydem
_plot_debug_slopes_directions
142,746
LDU_FT/scivision/histutils/_findindex
LDU_FT
[ "<BEGIN>\n## `cp_parents`", "This function requires Python >= 3.6.", " This acts like bash cp --parents in Python\n inspiration from\n http://stackoverflow.com/questions/15329223/copy-a-file-into-a-directory-with-its-original-leading-directories-appended", " example\n source: /tmp/e/f\n dest...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _findindex API. 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 _findindex API. 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...
inputs: ------ az0, el0: N-D array of azimuth, elevation. May be masked arrays az, el: 1-D vectors of azimuth, elevation points from other camera to find closest angle for joint FOV. output: row, col: index of camera 0 closest to camera 1 FOV for each unmasked pixel I think with some minor tw...
"inputs:\n ------\n az0, el0: N-D array of azimuth, elevation. May be masked arrays\n az, el: 1-D vectors of azimuth, elevation points from other camera to find closest angle for joint FOV.\n\n output:\n row, col: index of camera 0 closest to camera 1 FOV for each unmasked pixel\n\n I think with some...
58
false
scivision/histutils
_findindex
142,747
LDU_FT/naphatkrit/click-extensions/bash_complete_command
LDU_FT
[ "<BEGIN>\n## `private_dir_path`", "Returns the private directory path", " :param str app_name: the name of the app", " :rtype: str\n :returns: directory path\n<END>", "<BEGIN>\n## `ensure_private_dir_exists`", "Ensures that the private directory exists and is a directory.", " :param str app_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bash_complete_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bash_complete_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. ...
Return a command that outputs the script that the user can run to activate bash completion. :param str app_name: the name of the app
"Return a command that outputs the script that the user can run\n to activate bash completion.\n\n :param str app_name: the name of the app"
25
false
naphatkrit/click-extensions
bash_complete_command
142,748
LDU_FT/collectiveacuity/labPack/_to_python
LDU_FT
[ "<BEGIN>\n## `_delete`", "a helper method for non-blocking deletion of files\r", " :param _file_path: string with path to file to remove \r\n :param _method_title: string with name of method calling _delete\r\n :param _record_key: string with name of record key to delete\r\n :return:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_python API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_python API. 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...
a helper method to convert camelcase to python
"a helper method to convert camelcase to python"
886
false
collectiveacuity/labPack
_to_python
142,749
LDU_FT/CMUSTRUDEL/strudel.utils/guard
LDU_FT
[ "<BEGIN>\n## `mkdir`", "Create a directory specified by a sequence of subdirectories", " >>> mkdir(\"/tmp\", \"foo\", \"bar\", \"baz\")\n '/tmp/foo/bar/baz'\n >>> os.path.isdir('/tmp/foo/bar/baz')\n True\n<END>", "<BEGIN>\n## `shell`", "Execute shell command and return output", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guard API. 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 guard API. 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...
Prevents the decorated function from parallel execution. Internally, this decorator creates a Lock object and transparently obtains/releases it when calling the function.
"Prevents the decorated function from parallel execution.\n\n Internally, this decorator creates a Lock object and transparently\n obtains/releases it when calling the function."
61
false
CMUSTRUDEL/strudel.utils
guard
142,750
LDU_FT/quantumlib/Cirq/_renorm
LDU_FT
[ "<BEGIN>\n## `_absorb_z_into_w`", "Absorbs a Z^t gate into a W(a) flip.", " [Where W(a) is shorthand for PhasedX(phase_exponent=a).]", " Uses the following identity:\n ───W(a)───Z^t───\n ≡ ───W(a)───────────Z^t/2──────────Z^t/2─── (split Z)\n ≡ ───W(a)───W(a)───Z^-t/2───W(a)───Z^t/2...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _renorm API. 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 _renorm API. 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...
Renormalizes the state using the norm arg.
"Renormalizes the state using the norm arg."
1,764
true
quantumlib/Cirq
_renorm
142,751
LDU_FT/Metatab/metapack/caller_locals
LDU_FT
[ "<BEGIN>\n## `_load_resource`", "The CSV package has no reseources, so we just need to resolve the URLs to them. Usually, the\n CSV package is built from a file system ackage on a publically acessible server.\n<END>", "<BEGIN>\n## `set_s3_profile`", "Load the credentials for an s3 profile into envi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the caller_locals API. 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 caller_locals API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get the local variables in the caller's frame.
"Get the local variables in the caller's frame."
261
false
Metatab/metapack
caller_locals
142,752
LDU_FT/turicas/rows/export_data
LDU_FT
[ "<BEGIN>\n## `import_from_json`", "Import a JSON file or file-like object into a `rows.Table`.", " If a file-like object is provided it MUST be open in text (non-binary) mode\n on Python 3 and could be open in both binary or text mode on Python 2.\n<END>", "<BEGIN>\n## `export_to_json`", "Export a `ro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_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 extra...
Return the object ready to be exported or only data if filename_or_fobj is not passed.
"Return the object ready to be exported or only data if filename_or_fobj is not passed."
123
false
turicas/rows
export_data
142,753
LDU_FT/vburenin/xjpath/_split_path
LDU_FT
[ "<BEGIN>\n## `split`", "Separates a string on a character, taking into account escapes.", " :param str inp_str: string to split.\n :param str sep_char: separator character.\n :param int maxsplit: maximum number of times to split from left.\n :param str escape_char: escape character.\n :rtype: __g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Extract the last piece of XJPath. :param str xj_path: A XJPath expression. :rtype: tuple[str|None, str] :return: A tuple where first element is a root XJPath and the second is a last piece of key.
"Extract the last piece of XJPath.\n\n :param str xj_path: A XJPath expression.\n :rtype: tuple[str|None, str]\n :return: A tuple where first element is a root XJPath and the second is\n a last piece of key."
27
false
vburenin/xjpath
_split_path
142,754
LDU_FT/facetoe/zenpy/delete
LDU_FT
[ "<BEGIN>\n## `agents`", "| Description: IDs of agents involved in the chat\n<END>", "<BEGIN>\n## `department`", "| Description: The ID of the department to which the chat is directed\n<END>", "<BEGIN>\n## `zendesk_ticket`", "| Description: The ID of the Zendesk Support ticket created from this chat. Av...
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 ...
This function completely wipes attachment from Zendesk Helpdesk article. :param article_attachment: :class:`ArticleAttachment` object or numeric article attachment id. :return: status_code == 204 on success
"This function completely wipes attachment from Zendesk Helpdesk article.\n\n :param article_attachment: :class:`ArticleAttachment` object or numeric article attachment id.\n :return: status_code == 204 on success"
321
false
facetoe/zenpy
delete
142,755
LDU_FT/zerok/zs.bibtex/check_crossrefs
LDU_FT
[ "<BEGIN>\n## `register`", "Register a new type for an entry-type. The 2nd argument has to be a\n subclass of structures.Entry.\n<END>", "<BEGIN>\n## `validate`", "Validates each entry (passing the provided arguments down to them and\n also tries to resolve all cross-references between the entrie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_crossrefs API. 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 check_crossrefs API. 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...
Checks all crossreferences found in the bibliography. If one can not be resolved from *this* Bibliography instance, a BrokenCrossReferences exception is raised.
"Checks all crossreferences found in the bibliography. If one can not\n be resolved from *this* Bibliography instance, a BrokenCrossReferences\n exception is raised."
21
false
zerok/zs.bibtex
check_crossrefs
142,756
LDU_FT/pawelad/pymonzo/transactions
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 transactions API. 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 transactions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a list of transactions on the user's account. Official docs: https://monzo.com/docs/#list-transactions :param account_id: Monzo account ID :type account_id: str :param reverse: whether transactions should be in in descending order :type reverse: bool ...
"Returns a list of transactions on the user's account.\n\n Official docs:\n https://monzo.com/docs/#list-transactions\n\n :param account_id: Monzo account ID\n :type account_id: str\n :param reverse: whether transactions should be in in descending order\n :type reverse: boo...
40
false
pawelad/pymonzo
transactions
142,757
LDU_FT/marshmallow-code/webargs/location_handler
LDU_FT
[ "<BEGIN>\n## `dict2schema`", "Generate a `marshmallow.Schema` class given a dictionary of\n `Fields <marshmallow.fields.Field>`.\n<END>", "<BEGIN>\n## `is_json`", "Indicates if this mimetype is JSON or not. By default a request\n is considered to include JSON data if the mimetype is\n ``application/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the location_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the location_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Decorator that registers a function for parsing a request location. The wrapped function receives a request, the name of the argument, and the corresponding `Field <marshmallow.fields.Field>` object. Example: :: from webargs import core parser = core.Parser() ...
"Decorator that registers a function for parsing a request location.\n The wrapped function receives a request, the name of the argument, and\n the corresponding `Field <marshmallow.fields.Field>` object.\n\n Example: ::\n\n from webargs import core\n parser = core.Parser()\n\...
108
false
marshmallow-code/webargs
location_handler
142,758
LDU_FT/pyinvoke/invocations/_release_and_issues
LDU_FT
[ "<BEGIN>\n## `confirm`", "Ask user a yes/no question and return their response as a boolean.", " ``question`` should be a simple, grammatically complete question such as\n \"Do you wish to continue?\", and will have a string similar to ``\" [Y/n] \"``\n appended automatically. This function will *not* ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _release_and_issues 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 _release_and_issues API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Return most recent branch-appropriate release, if any, and its contents. :param dict changelog: Changelog contents, as returned by ``releases.util.parse_changelog``. :param str branch: Branch name. :param release_type: Member of `Release`, e.g. `Release.FEATURE`. :returns: ...
"Return most recent branch-appropriate release, if any, and its contents.\n\n :param dict changelog:\n Changelog contents, as returned by ``releases.util.parse_changelog``.\n\n :param str branch:\n Branch name.\n\n :param release_type:\n Member of `Release`, e.g. `Release.FEATURE`.\n\n ...
126
false
pyinvoke/invocations
_release_and_issues
142,759
LDU_FT/casebeer/factual/records
LDU_FT
[ "<BEGIN>\n## `make_category_filter`", "Generates a dict representing a Factual filter matching any of the categories\n\tpassed. ", "\tThe resulting filter uses $bw \"begins with\" operators to return all matching\n\tsubcategories. Because of this, passing a top level category removes the need\n\tto pass any of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the records API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the records API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return a list of dicts corresponding to the data returned by Factual.
"Return a list of dicts corresponding to the data returned by Factual."
19
false
casebeer/factual
records
142,760
LDU_FT/pytries/DAWG-Python/read
LDU_FT
[ "<BEGIN>\n## `similar_keys`", "Returns all variants of ``key`` in this DAWG according to\n ``replaces``.", " ``replaces`` is an object obtained from\n ``DAWG.compile_replaces(mapping)`` where mapping is a dict\n that maps single-char unicode sitrings to another single-char\n u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. 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 read API. 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...
Reads a dictionary from an input stream.
"Reads a dictionary from an input stream."
16
false
pytries/DAWG-Python
read
142,761
LDU_FT/jeremymcrae/denovonear/rate_limit_ensembl_requests
LDU_FT
[ "<BEGIN>\n## `get_cached_data`", "get cached data for a url if stored in the cache and not outdated", " Args:\n url: URL for the Ensembl REST service", " Returns:\n data if data in cache, else None\n<END>", "<BEGIN>\n## `cache_url_data`", "cache the data retrieved from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rate_limit_ensembl_requests API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rate_limit_ensembl_requests API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
limit ensembl requests to one per 0.067 s
"limit ensembl requests to one per 0.067 s"
112
false
jeremymcrae/denovonear
rate_limit_ensembl_requests
142,762
LDU_FT/sosreport/sos/mangle_package_path
LDU_FT
[ "<BEGIN>\n## `build_query_cmd`", "Builds the command needed to invoke the pgsql query as the postgres\n user.\n The query requires significant quoting work to satisfy both the\n shell and postgres parsing requirements. Note that this will generate\n a large amount of quoting in sos log...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mangle_package_path 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 mangle_package_path 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...
Mangle paths for post-UsrMove systems. If the system implements UsrMove, all files will be in '/usr/[s]bin'. This method substitutes all the /[s]bin references in the 'files' list with '/usr/[s]bin'. :param files: the list of package managed files
"Mangle paths for post-UsrMove systems.\n\n If the system implements UsrMove, all files will be in\n '/usr/[s]bin'. This method substitutes all the /[s]bin\n references in the 'files' list with '/usr/[s]bin'.\n\n :param files: the list of package managed files"
286
false
sosreport/sos
mangle_package_path
142,763
LDU_FT/git-afsantos/bonsai/_afterpass
LDU_FT
[ "<BEGIN>\n## `_build_for_statement`", "NOTE: this is not a complete implementation of for loop parsing.\n Turns out for loops allow a number of wacky things going on,\n such as declaring a variable in place of a condition.\n These more peculiar cases are not covered. See\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _afterpass API. 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 _afterpass API. 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...
Assign the `member_of` of child members and call their `_afterpass()`. This should only be called after the object is fully built.
"Assign the `member_of` of child members and call\n their `_afterpass()`.\n\n This should only be called after the object is fully built."
111
false
git-afsantos/bonsai
_afterpass
142,764
LDU_FT/smdabdoub/phylotoast/write_mapping_file
LDU_FT
[ "<BEGIN>\n## `sample_group`", "Iterate through all categories in an OrderedDict and return category name if SampleID\n present in that category.", " :type sid: str\n :param sid: SampleID from dataset.", " :type groups: OrderedDict\n :param groups: Returned dict from phylotoast.util.gather_categ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_mapping_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_mapping_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Given a mapping from sample IDs to barcodes/primers/other info, write out a QIIME-compatible mapping file. File format described at: http://qiime.org/documentation/file_formats.html Note that primer column can be left blank.
"Given a mapping from sample IDs to barcodes/primers/other info,\n write out a QIIME-compatible mapping file.\n\n File format described at: http://qiime.org/documentation/file_formats.html\n Note that primer column can be left blank."
200
false
smdabdoub/phylotoast
write_mapping_file
142,765
LDU_FT/moonso/vcf_parser/build_models_dict
LDU_FT
[ "<BEGIN>\n## `build_models_dict`", "Take a list with annotated genetic inheritance patterns for each\n family and returns a dictionary with family_id as key and a list of\n genetic models as value.", " Args:\n annotated_models : A list on the form ['1:AD','2:AR_comp|AD_dn']", " Returns:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_models_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_models_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Take a list with annotated genetic inheritance patterns for each family and returns a dictionary with family_id as key and a list of genetic models as value. Args: annotated_models : A list on the form ['1:AD','2:AR_comp|AD_dn'] Returns: parsed_models : A dictionary on...
"Take a list with annotated genetic inheritance patterns for each\n family and returns a dictionary with family_id as key and a list of\n genetic models as value.\n \n Args:\n annotated_models : A list on the form ['1:AD','2:AR_comp|AD_dn']\n \n Returns:\n parsed_models : A dict...
71
false
moonso/vcf_parser
build_models_dict
142,766
LDU_FT/Mindwerks/worldengine/harmonize_ocean
LDU_FT
[ "<BEGIN>\n## `anti_alias`", "Execute the anti_alias operation steps times on the given map\n<END>", "<BEGIN>\n## `count_neighbours`", "Count how many neighbours of a coordinate are set to one.\n This uses the same principles as anti_alias, compare comments there.\n<END>", "<BEGIN>\n## `_calculate`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the harmonize_ocean API. 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 harmonize_ocean API. 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...
The goal of this function is to make the ocean floor less noisy. The underwater erosion should cause the ocean floor to be more uniform
"The goal of this function is to make the ocean floor less noisy.\n The underwater erosion should cause the ocean floor to be more uniform"
63
false
Mindwerks/worldengine
harmonize_ocean
142,767
LDU_FT/rasbt/biopandas/_construct_df
LDU_FT
[ "<BEGIN>\n## `docstring_to_markdown`", "Convert a Python object's docstring to markdown", " Parameters\n ----------\n docstring : str\n The docstring body.", " Returns\n ----------\n clean_lst : list\n The markdown formatted docstring as lines (str) in a Python list.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _construct_df API. 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 _construct_df API. 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...
Construct DataFrames from list of PDB lines.
"Construct DataFrames from list of PDB lines."
110
false
rasbt/biopandas
_construct_df
142,768
LDU_FT/tanghaibao/goatools/get_prt_fmt
LDU_FT
[ "<BEGIN>\n## `run`", "Compare two or more sets of GO IDs. Best done using sections.\n<END>", "<BEGIN>\n## `get_nts_sorted`", "Return a flat list of grouped and sorted GO terms.\n<END>", "<BEGIN>\n## `get_sorted_hdrgo2usrgos`", "Return GO IDs sorting using go2nt's namedtuple.\n<END>", "<BEGIN>\n## `plot_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prt_fmt API. 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_prt_fmt API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the format for printing GO named tuples and their related information.
"Return the format for printing GO named tuples and their related information."
996
false
tanghaibao/goatools
get_prt_fmt
142,769
LDU_FT/fjwCode/cerium/is_connectable
LDU_FT
[ "<BEGIN>\n## `version`", "Show the version number of Android Debug Bridge.\n<END>", "<BEGIN>\n## `devices_l`", "List connected devices (-l for long output).\n<END>", "<BEGIN>\n## `connect`", "Connect to a device via TCP/IP directly.\n<END>", "<BEGIN>\n## `disconnect`", "Disconnect from given TCP/IP de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_connectable API. 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 is_connectable API. 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...
Tries to connect to the device to see if it is connectable. Args: host: The host to connect. port: The port to connect. Returns: True or False.
"Tries to connect to the device to see if it is connectable.\n\n Args:\n host: The host to connect.\n port: The port to connect.\n\n Returns:\n True or False."
95
false
fjwCode/cerium
is_connectable
142,770
LDU_FT/mlperf/training/cat_boxlist
LDU_FT
[ "<BEGIN>\n## `sorted_product_set`", "Compute the product set of array_a and array_b and sort it.\n<END>", "<BEGIN>\n## `set_low_quality_matches_`", "Produce additional matches for predictions that have only low-quality matches.\n Specifically, for each ground-truth find the set of predictions that have...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cat_boxlist API. 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 cat_boxlist API. 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...
Concatenates a list of BoxList (having the same image size) into a single BoxList Arguments: bboxes (list[BoxList])
"Concatenates a list of BoxList (having the same image size) into a\n single BoxList\n\n Arguments:\n bboxes (list[BoxList])"
1,285
true
mlperf/training
cat_boxlist
142,771
LDU_FT/kathyxchen/crosstalk-correction/_update_probabilities
LDU_FT
[ "<BEGIN>\n## `crosstalk_correction`", "A wrapper function around the maximum impact estimation algorithm.", " Parameters\n -----------\n pathway_definitions : dict(str -> set(str))\n The original pathway definitions.\n A pathway (key) is defined by a set of genes (value).\n random_seed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_probabilities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_probabilities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Updates the probability vector for each iteration of the expectation maximum algorithm in maximum impact estimation. Parameters ----------- pr : numpy.array(float), shape = [k] The current vector of probabilities. An element at index j, where j is between 0 and k - 1, corresponds to the...
"Updates the probability vector for each iteration of the\n expectation maximum algorithm in maximum impact estimation.\n\n Parameters\n -----------\n pr : numpy.array(float), shape = [k]\n The current vector of probabilities. An element at index j,\n where j is between 0 and k - 1, correspond...
29
false
kathyxchen/crosstalk-correction
_update_probabilities
142,772