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/readbeyond/aeneas/check_cdtw | LDU_FT | [
"<BEGIN>\n## `pretty_print`",
"Return a Unicode string pretty print of the log entries.",
" :param bool as_list: if ``True``, return a list of Unicode strings,\n one for each entry, instead of a Unicode string\n :param bool show_datetime: if ``True``, show the date and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_cdtw API.
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 check_cdtw API.
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... | Check whether Python C extension ``cdtw`` can be imported.
Return ``True`` on failure and ``False`` on success.
:rtype: bool | "Check whether Python C extension ``cdtw`` can be imported.\n\n Return ``True`` on failure and ``False`` on success.\n\n :rtype: bool" | 1,097 | true | readbeyond/aeneas | check_cdtw | 33,373 | |
LDU_FT/pandeylab/pythomics/add_header | LDU_FT | [
"<BEGIN>\n## `add_header`",
"Parses the VCF Header field and returns the number of samples in the VCF file\n<END>",
"<BEGIN>\n## `parse_entry`",
"Parse an individual VCF entry and return a VCFEntry which contains information about\n the call (such as alternative allele, zygosity, etc.)\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_header API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_header API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Parses the VCF Header field and returns the number of samples in the VCF file | "Parses the VCF Header field and returns the number of samples in the VCF file" | 49 | false | pandeylab/pythomics | add_header | 33,374 | |
LDU_FT/brentp/cruzdb/map_to | LDU_FT | [
"<BEGIN>\n## `relate`",
"Produce a relationship between this mapped table and another\n one. ",
" This makes usage of SQLAlchemy's :func:`sqlalchemy.orm.relationship`\n construct.\n<END>",
"<BEGIN>\n## `execute`",
"Execute a SQL statement.",
" The statement may be a string SQL ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_to API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_to API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Configure a mapping to the given attrname.
This is the "master" method that can be used to create any
configuration.
:param attrname: String attribute name which will be
established as an attribute on this :class:.`.SQLSoup`
instance.
:param base: a Python class wh... | "Configure a mapping to the given attrname.\n\n This is the \"master\" method that can be used to create any \n configuration.\n\n :param attrname: String attribute name which will be\n established as an attribute on this :class:.`.SQLSoup`\n instance.\n :param base: a Pyth... | 169 | false | brentp/cruzdb | map_to | 33,375 | |
LDU_FT/borntyping/python-riemann-client/send | LDU_FT | [
"<BEGIN>\n## `socket_recvall`",
"A helper method to read of bytes from a socket to a maximum length\n<END>",
"<BEGIN>\n## `send`",
"Sends a message, but does not return a response",
" :returns: None - can't receive a response over UDP\n<END>",
"<BEGIN>\n## `send`",
"Sends a message to a Riemann s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Sends a message, but does not return a response
:returns: None - can't receive a response over UDP | "Sends a message, but does not return a response\n\n :returns: None - can't receive a response over UDP" | 43 | false | borntyping/python-riemann-client | send | 33,376 | |
LDU_FT/takuti/flurs/ndcg | LDU_FT | [
"<BEGIN>\n## `__create_proj_mat`",
"Create a random projection matrix",
" [1] D. Achlioptas. Database-friendly random projections: Johnson-Lindenstrauss with binary coins.\n [2] P. Li, et al. Very sparse random projections.",
" http://scikit-learn.org/stable/modules/random_projection.html... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ndcg API.
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 ndcg API.
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... | Normalized Discounted Cumulative Grain (NDCG).
Args:
truth (numpy 1d array): Set of truth samples.
recommend (numpy 1d array): Ordered set of recommended samples.
k (int): Top-k items in `recommend` will be recommended.
Returns:
float: NDCG. | "Normalized Discounted Cumulative Grain (NDCG).\n\n Args:\n truth (numpy 1d array): Set of truth samples.\n recommend (numpy 1d array): Ordered set of recommended samples.\n k (int): Top-k items in `recommend` will be recommended.\n\n Returns:\n float: NDCG." | 74 | false | takuti/flurs | ndcg | 33,377 | |
LDU_FT/timstaley/voevent-parse/get_toplevel_params | LDU_FT | [
"<BEGIN>\n## `Param`",
"'Parameter', used as a general purpose key-value entry in the 'What' section.",
" May be assembled into a :class:`Group`.",
" NB ``name`` is not mandated by schema, but *is* mandated in full spec.",
" Args:\n value(str): String representing parameter value.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_toplevel_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_toplevel_params 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... | Fetch ungrouped Params from the `What` section of a voevent as an omdict.
This fetches 'toplevel' Params, i.e. those not enclosed in a Group element,
and returns them as a nested dict-like structure, keyed like
ParamName->AttribName.
Note that since multiple Params may share the same ParamName, the re... | "Fetch ungrouped Params from the `What` section of a voevent as an omdict.\n\n This fetches 'toplevel' Params, i.e. those not enclosed in a Group element,\n and returns them as a nested dict-like structure, keyed like\n ParamName->AttribName.\n\n Note that since multiple Params may share the same ParamName,... | 131 | false | timstaley/voevent-parse | get_toplevel_params | 33,378 | |
LDU_FT/SuperCowPowers/bat/most_recent | LDU_FT | [
"<BEGIN>\n## `readlines`",
"Open the file for reading and yield lines as they are added\n<END>",
"<BEGIN>\n## `readrows`",
"The readrows method reads simply 'combines' the rows of\n multiple files OR gunzips the file and then reads the rows\n<END>",
"<BEGIN>\n## `most_recent`",
"Recursively insp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the most_recent API.
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 most_recent API.
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... | Recursively inspect all files under a directory and return the most recent
Args:
path (str): the path of the directory to traverse
startswith (str): the file name start with (optional)
endswith (str): the file name ends with (optional)
Returns:
the most r... | "Recursively inspect all files under a directory and return the most recent\n\n Args:\n path (str): the path of the directory to traverse\n startswith (str): the file name start with (optional)\n endswith (str): the file name ends with (optional)\n Returns:\n th... | 79 | false | SuperCowPowers/bat | most_recent | 33,379 | |
LDU_FT/rsalmei/clearly/start_server | LDU_FT | [
"<BEGIN>\n## `server`",
"Starts the Clearly Server.",
" BROKER: The broker being used by celery, like \"amqp://localhost\".\n<END>",
"<BEGIN>\n## `start_server`",
"Starts a Clearly Server programmatically.\n<END>",
"<BEGIN>\n## `_event_to_pb`",
"Supports converting internal TaskData and WorkerDat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_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.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_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.
The extr... | Starts a Clearly Server programmatically. | "Starts a Clearly Server programmatically." | 63 | false | rsalmei/clearly | start_server | 33,380 | |
LDU_FT/ubccr/pinky/draw | LDU_FT | [
"<BEGIN>\n## `draw`",
"(molecule)->canonical representation of a molecule\n Well, it's only canonical if the atom symorders are\n canonical, otherwise it's arbitrary.",
" atoms must have a symorder attribute\n bonds must have a equiv_class attribute\n<END>",
"<BEGIN>\n## `getPyroleLikeAtoms`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw API.
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 draw API.
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... | (molecule)->canonical representation of a molecule
Well, it's only canonical if the atom symorders are
canonical, otherwise it's arbitrary.
atoms must have a symorder attribute
bonds must have a equiv_class attribute | "(molecule)->canonical representation of a molecule\n Well, it's only canonical if the atom symorders are\n canonical, otherwise it's arbitrary.\n\n atoms must have a symorder attribute\n bonds must have a equiv_class attribute" | 63 | false | ubccr/pinky | draw | 33,381 | |
LDU_FT/cortical-io/retina-sdk.py/getContextsForTerm | LDU_FT | [
"<BEGIN>\n## `getTerms`",
"Get term objects\n Args:\n term, str: A term in the retina (optional)\n getFingerprint, bool: Configure if the fingerprint should be returned as part of the results (optional)\n startIndex, int: The start-index for pagination (optional)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getContextsForTerm 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 getContextsForTerm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get the contexts for a given term
Args:
term, str: A term in the retina (required)
getFingerprint, bool: Configure if the fingerprint should be returned as part of the results (optional)
startIndex, int: The start-index for pagination (optional)
maxResults, int: M... | "Get the contexts for a given term\n Args:\n term, str: A term in the retina (required)\n getFingerprint, bool: Configure if the fingerprint should be returned as part of the results (optional)\n startIndex, int: The start-index for pagination (optional)\n maxResults, ... | 64 | false | cortical-io/retina-sdk.py | getContextsForTerm | 33,382 | |
LDU_FT/SCIP-Interfaces/PySCIPOpt/gpp | LDU_FT | [
"<BEGIN>\n## `gpp`",
"gpp -- model for the graph partitioning problem\n Parameters:\n - V: set/list of nodes in the graph\n - E: set/list of edges in the graph\n Returns a model, ready to be solved.\n<END>",
"<BEGIN>\n## `gpp_soco`",
"gpp -- model for the graph partitioning problem in soco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpp API.
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 gpp API.
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... | gpp -- model for the graph partitioning problem
Parameters:
- V: set/list of nodes in the graph
- E: set/list of edges in the graph
Returns a model, ready to be solved. | "gpp -- model for the graph partitioning problem\n Parameters:\n - V: set/list of nodes in the graph\n - E: set/list of edges in the graph\n Returns a model, ready to be solved." | 220 | false | SCIP-Interfaces/PySCIPOpt | gpp | 33,383 | |
LDU_FT/tgbugs/ontquery/add_triple | 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 add_triple API.
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 add_triple API.
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... | Triple of curied or full iris to add to graph.
Subject should be an interlex | "Triple of curied or full iris to add to graph.\n Subject should be an interlex" | 44 | false | tgbugs/ontquery | add_triple | 33,384 | |
LDU_FT/openstack/pyghmi/get_inventory | LDU_FT | [
"<BEGIN>\n## `get_bootdev`",
"Get current boot device override information.",
" :raises: PyghmiException on error\n :returns: dict\n<END>",
"<BEGIN>\n## `set_bootdev`",
"Set boot device to use on next reboot",
" :param bootdev:\n *network -- Request network boot... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_inventory API.
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_inventory API.
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... | Retrieve inventory of system
Retrieve inventory of the targeted system. This frequently includes
serial numbers, sometimes hardware addresses, sometimes memory modules
This function will retrieve whatever the underlying platform provides
and apply some structure. Iterating over the re... | "Retrieve inventory of system\n\n Retrieve inventory of the targeted system. This frequently includes\n serial numbers, sometimes hardware addresses, sometimes memory modules\n This function will retrieve whatever the underlying platform provides\n and apply some structure. Iterating over ... | 273 | false | openstack/pyghmi | get_inventory | 33,385 | |
LDU_FT/cs50/style50/_check | LDU_FT | [
"<BEGIN>\n## `get_terminal_size`",
"Return tuple containing columns and rows of controlling terminal, trying harder\n than shutil.get_terminal_size to find a tty before returning fallback.",
" Theoretically, stdout, stderr, and stdin could all be different ttys that could\n cause us to get the wrong me... | 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 ... | 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 ... | Run apropriate check based on `file`'s extension and return it,
otherwise raise an Error | "Run apropriate check based on `file`'s extension and return it,\n otherwise raise an Error" | 25 | false | cs50/style50 | _check | 33,386 | |
LDU_FT/huffpostdata/python-pollster/polls_get | LDU_FT | [
"<BEGIN>\n## `charts_get`",
"Charts\n Returns a list of Charts, ordered by creation date (newest first). A Chart is chosen by Pollster editors. One example is \\\"Obama job approval - Democrats\\\". It is always based upon a single Question. Users should strongly consider basing their analysis on Questio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the polls_get API.
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 polls_get API.
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... | Polls
A Poll on Pollster is a collection of questions and responses published by a reputable survey house. This endpoint provides raw data from the survey house, plus Pollster-provided metadata about each question. Pollster editors don't include every question when they enter Polls, and they don't necessarily ... | "Polls\n A Poll on Pollster is a collection of questions and responses published by a reputable survey house. This endpoint provides raw data from the survey house, plus Pollster-provided metadata about each question. Pollster editors don't include every question when they enter Polls, and they don't necessaril... | 58 | false | huffpostdata/python-pollster | polls_get | 33,387 | |
LDU_FT/reorx/torext/set_logger | LDU_FT | [
"<BEGIN>\n## `format_request`",
"Override for better log format",
" Tornado format:\n [INFO 2015-03-24 11:29:57 app:521] 200 GET /static/css/lib/pure-min.css (127.0.0.1) 6.76ms\n Current format:\n [gevent.wsgi] INFO 127.0.0.1 - - [2015-03-24 11:18:45] \"GET /test HTTP/1.1\" 200 304 0... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_logger API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_logger API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | This function will clear the previous handlers and set only one handler,
which will only be StreamHandler for the logger.
This function is designed to be able to called multiple times in a context.
Note that if a logger has no handlers, it will be added a handler automatically when it is used. | "This function will clear the previous handlers and set only one handler,\n which will only be StreamHandler for the logger.\n\n This function is designed to be able to called multiple times in a context.\n\n Note that if a logger has no handlers, it will be added a handler automatically when it is used." | 70 | false | reorx/torext | set_logger | 33,388 | |
LDU_FT/djungelorm/sphinx-csharp/parse_indexer_signature | LDU_FT | [
"<BEGIN>\n## `split_sig`",
"Split a list of parameters/types by commas,\n whilst respecting brackets.",
" For example:\n String arg0, int arg2 = 1, List<int> arg3 = [1, 2, 3]\n => ['String arg0', 'int arg2 = 1', 'List<int> arg3 = [1, 2, 3]']\n<END>",
"<BEGIN>\n## `parse_method_signature`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_indexer_signature API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_indexer_signature API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Parse a indexer signature of the form:
modifier* type this[params] { (get;)? (set;)? } | "Parse a indexer signature of the form:\n modifier* type this[params] { (get;)? (set;)? }" | 13 | false | djungelorm/sphinx-csharp | parse_indexer_signature | 33,389 | |
LDU_FT/markchil/gptools/plot_sampler_fingerprint | LDU_FT | [
"<BEGIN>\n## `matern_function`",
"r\"\"\"Matern covariance function of arbitrary dimension, for use with :py:class:`ArbitraryKernel`.",
" The Matern kernel has the following hyperparameters, always referenced in\n the order listed:",
" = ===== ====================================\n 0 sigma prefact... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_sampler_fingerprint 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 plot_sampler_fingerprint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Make a plot of the sampler's "fingerprint": univariate marginal histograms for all hyperparameters.
The hyperparameters are mapped to [0, 1] using
:py:meth:`hyperprior.elementwise_cdf`, so this can only be used with prior
distributions which implement this function.
Returns the figure and axis... | "Make a plot of the sampler's \"fingerprint\": univariate marginal histograms for all hyperparameters.\n \n The hyperparameters are mapped to [0, 1] using\n :py:meth:`hyperprior.elementwise_cdf`, so this can only be used with prior\n distributions which implement this function.\n \n Returns the figure... | 496 | false | markchil/gptools | plot_sampler_fingerprint | 33,390 | |
LDU_FT/bitlabstudio/django-development-fabfile/stage | LDU_FT | [
"<BEGIN>\n## `require_server`",
"Checks if the user has called the task with a server name.",
" Fabric tasks decorated with this decorator must be called like so::",
" fab <server name> <task name>",
" If no server name is given, the task will not be executed.\n<END>",
"<BEGIN>\n## `run_deplo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stage API.
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 stage API.
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... | Option to do something on the staging server. | "Option to do something on the staging server." | 77 | false | bitlabstudio/django-development-fabfile | stage | 33,391 | |
LDU_FT/ktdreyer/txkoji/url | LDU_FT | [
"<BEGIN>\n## `duration`",
"Return a timedelta for this build.",
" Measure the time between this build's start and end time, or \"now\"\n if the build has not yet finished.",
" :returns: timedelta object\n<END>",
"<BEGIN>\n## `url`",
"Return a kojiweb URL for this resource.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url API.
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 url API.
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... | Return a kojiweb URL for this resource.
:returns: ``str``, kojiweb URL like
"http://cbs.centos.org/koji/buildinfo?buildID=21155" | "Return a kojiweb URL for this resource.\n\n :returns: ``str``, kojiweb URL like\n \"http://cbs.centos.org/koji/buildinfo?buildID=21155\"" | 213 | false | ktdreyer/txkoji | url | 33,392 | |
LDU_FT/google-research/batch-ppo/feed_forward_categorical | LDU_FT | [
"<BEGIN>\n## `count_weights`",
"Count learnable parameters.",
" Args:\n scope: Restrict the count to a variable scope.\n exclude: Regex to match variable names to exclude.\n graph: Operate on a graph other than the current default graph.",
" Returns:\n Number of learnable parameters as integer.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the feed_forward_categorical 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 feed_forward_categorical API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Independent feed forward networks for policy and value.
The policy network outputs the mean action and the log standard deviation
is learned as independent parameter vector.
Args:
config: Configuration object.
action_space: Action space of the environment.
observations: Sequences of observations.
... | "Independent feed forward networks for policy and value.\n\n The policy network outputs the mean action and the log standard deviation\n is learned as independent parameter vector.\n\n Args:\n config: Configuration object.\n action_space: Action space of the environment.\n observations: Sequences of observa... | 362 | false | google-research/batch-ppo | feed_forward_categorical | 33,393 | |
LDU_FT/sammchardy/python-binance/_init_cache | LDU_FT | [
"<BEGIN>\n## `add_bid`",
"Add a bid to the cache",
" :param bid:\n :return:\n<END>",
"<BEGIN>\n## `add_ask`",
"Add an ask to the cache",
" :param ask:\n :return:\n<END>",
"<BEGIN>\n## `_init_cache`",
"Initialise the depth cache calling REST endpoint",
" :return:\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_cache API.
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 _init_cache API.
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... | Initialise the depth cache calling REST endpoint
:return: | "Initialise the depth cache calling REST endpoint\n\n :return:" | 233 | false | sammchardy/python-binance | _init_cache | 33,394 | |
LDU_FT/workhorsy/py-cpuinfo/_get_cpu_info_from_cpuid | LDU_FT | [
"<BEGIN>\n## `_actual_get_cpu_info_from_cpuid`",
"Warning! This function has the potential to crash the Python runtime.\n\tDo not call it directly. Use the _get_cpu_info_from_cpuid function instead.\n\tIt will safely call this function in another process.\n<END>",
"<BEGIN>\n## `_get_cpu_info_from_cpuid`",
"Re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cpu_info_from_cpuid 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_cpu_info_from_cpuid 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 the CPU info gathered by querying the X86 cpuid register in a new process.
Returns {} on non X86 cpus.
Returns {} if SELinux is in enforcing mode. | "Returns the CPU info gathered by querying the X86 cpuid register in a new process.\n\tReturns {} on non X86 cpus.\n\tReturns {} if SELinux is in enforcing mode." | 34 | false | workhorsy/py-cpuinfo | _get_cpu_info_from_cpuid | 33,395 | |
LDU_FT/axialmarket/fsq/down | LDU_FT | [
"<BEGIN>\n## `barf`",
"Exit with a log message (usually a fatal error)\n<END>",
"<BEGIN>\n## `done_item`",
"Succeed or fail an item based on the return code of a program\n<END>",
"<BEGIN>\n## `setenv`",
"Set environment, based on item. Usually done in a baby fork\n<END>",
"<BEGIN>\n## `shout`",
"Log ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the down API.
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 down API.
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... | Construct a path to the down file for a queue | "Construct a path to the down file for a queue" | 99 | false | axialmarket/fsq | down | 33,396 | |
LDU_FT/robhowley/nhlscrapi/parse_rosters | LDU_FT | [
"<BEGIN>\n## `totals`",
"Computes and returns dictionary containing home/away by player, shots and face-off totals",
" :returns: dict of the form ``{ 'home/away': { 'all_keys': w_numeric_data } }``\n<END>",
"<BEGIN>\n## `filter_players`",
"Return the subset home and away players that satisfy the prov... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_rosters API.
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 parse_rosters API.
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... | Parse the home and away game rosters
:returns: ``self`` on success, ``None`` otherwise | "Parse the home and away game rosters\n\n :returns: ``self`` on success, ``None`` otherwise" | 126 | false | robhowley/nhlscrapi | parse_rosters | 33,397 | |
LDU_FT/geomet/geomet/_get_geom_type | LDU_FT | [
"<BEGIN>\n## `block_splitter`",
"Creates a generator by slicing ``data`` into chunks of ``block_size``.",
" >>> data = range(10)\n >>> list(block_splitter(data, 2))\n [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]",
" If ``data`` cannot be evenly divided by ``block_size``, the last block will\n simpl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_geom_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_geom_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get the GeoJSON geometry type label from a WKB type byte string.
:param type_bytes:
4 byte string in big endian byte order containing a WKB type number.
It may also contain a "has SRID" flag in the high byte (the first type,
since this is big endian byte order), indicated as 0x20. If the SR... | "Get the GeoJSON geometry type label from a WKB type byte string.\n\n :param type_bytes:\n 4 byte string in big endian byte order containing a WKB type number.\n It may also contain a \"has SRID\" flag in the high byte (the first type,\n since this is big endian byte order), indicated as 0x20. I... | 120 | false | geomet/geomet | _get_geom_type | 33,398 | |
LDU_FT/DeV1doR/aioethereum/eth_submitWork | LDU_FT | [
"<BEGIN>\n## `db_putString`",
"https://github.com/ethereum/wiki/wiki/JSON-RPC#db_putstring",
" DEPRECATED\n<END>",
"<BEGIN>\n## `db_getString`",
"https://github.com/ethereum/wiki/wiki/JSON-RPC#db_getstring",
" DEPRECATED\n<END>",
"<BEGIN>\n## `db_putHex`",
"https://github.com/ethereum/wi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eth_submitWork API.
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 eth_submitWork API.
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... | https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_submitwork
:param nonce: Nonce of work
:type nonce: int
:param header: Pow-hash header
:type header: str
:param mix_digest: Mix digest
:type mix_digest: str
:return: success
:rtype: bool | "https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_submitwork\n\n :param nonce: Nonce of work\n :type nonce: int\n\n :param header: Pow-hash header\n :type header: str\n\n :param mix_digest: Mix digest\n :type mix_digest: str\n\n :return: success\n :rtype: bool" | 166 | false | DeV1doR/aioethereum | eth_submitWork | 33,399 | |
LDU_FT/twisted/txacme/fetch_chain | LDU_FT | [
"<BEGIN>\n## `_parse_header_links`",
"Parse the links from a Link: header field.",
" .. todo:: Links with the same relation collide at the moment.",
" :param bytes value: The header value.",
" :rtype: `dict`\n :return: A dictionary of parsed links, keyed by ``rel`` or ``url``.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_chain API.
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 fetch_chain API.
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... | Fetch the intermediary chain for a certificate.
:param acme.messages.CertificateResource certr: The certificate to
fetch the chain for.
:param int max_length: The maximum length of the chain that will be
fetched.
:rtype: Deferred[List[`acme.messages.CertificateResource`... | "Fetch the intermediary chain for a certificate.\n\n :param acme.messages.CertificateResource certr: The certificate to\n fetch the chain for.\n :param int max_length: The maximum length of the chain that will be\n fetched.\n\n :rtype: Deferred[List[`acme.messages.CertificateR... | 150 | false | twisted/txacme | fetch_chain | 33,400 | |
LDU_FT/evhub/coconut/internal_assert | LDU_FT | [
"<BEGIN>\n## `single_import`",
"Generate import statements from a fully qualified import and the name to bind it to.\n<END>",
"<BEGIN>\n## `universal_import`",
"Generate code for a universal import of imports from imp_from on target.\n imports = [[imp1], [imp2, as], ...]\n<END>",
"<BEGIN>\n## `bind`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the internal_assert API.
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 internal_assert API.
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... | Raise InternalException if condition is False.
If condition is a function, execute it on DEVELOP only. | "Raise InternalException if condition is False.\n If condition is a function, execute it on DEVELOP only." | 219 | false | evhub/coconut | internal_assert | 33,401 | |
LDU_FT/jamesturk/django-honeypot/verify_honeypot_value | LDU_FT | [
"<BEGIN>\n## `honeypot_equals`",
"Default verifier used if HONEYPOT_VERIFIER is not specified.\n Ensures val == HONEYPOT_VALUE or HONEYPOT_VALUE() if it's a callable.\n<END>",
"<BEGIN>\n## `verify_honeypot_value`",
"Verify that request.POST[field_name] is a valid honeypot.",
" Ensures that the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_honeypot_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_honeypot_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Verify that request.POST[field_name] is a valid honeypot.
Ensures that the field exists and passes verification according to
HONEYPOT_VERIFIER. | "Verify that request.POST[field_name] is a valid honeypot.\n\n Ensures that the field exists and passes verification according to\n HONEYPOT_VERIFIER." | 12 | false | jamesturk/django-honeypot | verify_honeypot_value | 33,402 | |
LDU_FT/BlueBrain/NeuroM/types | LDU_FT | [
"<BEGIN>\n## `_get_type`",
"get the type of the soma",
" Args:\n points: Soma points\n soma_class(str): one of 'contour' or 'cylinder' to specify the type\n<END>",
"<BEGIN>\n## `make_soma`",
"Make a soma object from a set of points",
" Infers the soma type (SomaSinglePoint, SomaSimpleC... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns an iterator over the types of the neurites in the object.
If the object is a tree, then one value is returned. | "Returns an iterator over the types of the neurites in the object.\n If the object is a tree, then one value is returned." | 706 | false | BlueBrain/NeuroM | types | 33,403 | |
LDU_FT/opencivicdata/pupa/items_differ | LDU_FT | [
"<BEGIN>\n## `items_differ`",
"check whether or not jsonitems and dbitems differ\n<END>",
"<BEGIN>\n## `resolve_json_id`",
"Given an id found in scraped JSON, return a DB id for the object.",
" params:\n json_id: id from json\n allow_no_match: just return None... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items_differ API.
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 items_differ API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | check whether or not jsonitems and dbitems differ | "check whether or not jsonitems and dbitems differ" | 48 | false | opencivicdata/pupa | items_differ | 33,404 | |
LDU_FT/chemlab/chemlab/isnamedtuple | LDU_FT | [
"<BEGIN>\n## `molecular_orbital`",
"Return a molecular orbital given the nuclei coordinates, as well as\n molecular orbital coefficients and basis set specification as given by the cclib library.",
" The molecular orbital is represented as a function that takes x, y, z coordinates (in a vectorized f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isnamedtuple API.
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 isnamedtuple API.
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... | Heuristic check if an object is a namedtuple. | "Heuristic check if an object is a namedtuple." | 665 | false | chemlab/chemlab | isnamedtuple | 33,405 | |
LDU_FT/iamteem/redisco/_initialize_references | LDU_FT | [
"<BEGIN>\n## `_initialize_referenced`",
"Adds a property to the target of a reference field that\n returns the list of associated objects.\n<END>",
"<BEGIN>\n## `_initialize_lists`",
"Stores the list fields descriptors of a model.\n<END>",
"<BEGIN>\n## `_initialize_references`",
"Stores the list of ref... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initialize_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.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initialize_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.... | Stores the list of reference field descriptors of a model. | "Stores the list of reference field descriptors of a model." | 70 | false | iamteem/redisco | _initialize_references | 33,406 | |
LDU_FT/scivision/pymap3d/anglesep_meeus | LDU_FT | [
"<BEGIN>\n## `anglesep_meeus`",
"Parameters\n ----------",
" lon0 : float or numpy.ndarray of float\n longitude of first point\n lat0 : float or numpy.ndarray of float\n latitude of first point\n lon1 : float or numpy.ndarray of float\n longitude of second point\n lat1 : floa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the anglesep_meeus API.
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 anglesep_meeus API.
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... | Parameters
----------
lon0 : float or numpy.ndarray of float
longitude of first point
lat0 : float or numpy.ndarray of float
latitude of first point
lon1 : float or numpy.ndarray of float
longitude of second point
lat1 : float or numpy.ndarray of float
latitude of se... | "Parameters\n ----------\n\n lon0 : float or numpy.ndarray of float\n longitude of first point\n lat0 : float or numpy.ndarray of float\n latitude of first point\n lon1 : float or numpy.ndarray of float\n longitude of second point\n lat1 : float or numpy.ndarray of float\n lat... | 293 | false | scivision/pymap3d | anglesep_meeus | 33,407 | |
LDU_FT/sveetch/djangocodemirror/get_configs | LDU_FT | [
"<BEGIN>\n## `codemirror_settings_update`",
"Return a new dictionnary of configs updated with given parameters.",
" You may use ``on`` and ``names`` arguments to select config or filter out\n some configs from returned dict.",
" Arguments:\n configs (dict): Dictionnary of configurations to upd... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns registred configurations.
* If ``name`` argument is not given, default behavior is to return
every config from all registred config;
* If ``name`` argument is given, just return its config and nothing
else;
Keyword Arguments:
name (string): Specific conf... | "Returns registred configurations.\n\n * If ``name`` argument is not given, default behavior is to return\n every config from all registred config;\n * If ``name`` argument is given, just return its config and nothing\n else;\n\n Keyword Arguments:\n name (string): Spec... | 125 | false | sveetch/djangocodemirror | get_configs | 33,408 | |
LDU_FT/blue-yonder/turbodbc/fetchallnumpy | LDU_FT | [
"<BEGIN>\n## `cursor`",
"Create a new ``Cursor`` instance associated with this ``Connection``",
" :return: A new ``Cursor`` instance\n<END>",
"<BEGIN>\n## `close`",
"Close the connection and all associated cursors. This will implicitly\n roll back any uncommitted operations.\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetchallnumpy API.
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 fetchallnumpy API.
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... | Fetches all rows in the active result set generated with ``execute()`` or
``executemany()``.
:return: An ``OrderedDict`` of *columns*, where the keys of the dictionary
are the column names. The columns are of NumPy's ``MaskedArray``
type, where the optimal data type fo... | "Fetches all rows in the active result set generated with ``execute()`` or\n ``executemany()``.\n\n :return: An ``OrderedDict`` of *columns*, where the keys of the dictionary\n are the column names. The columns are of NumPy's ``MaskedArray``\n type, where the optimal data t... | 54 | false | blue-yonder/turbodbc | fetchallnumpy | 33,409 | |
LDU_FT/axltxl/m2bk/make_tmp_dir | LDU_FT | [
"<BEGIN>\n## `chkstr`",
"Small routine for checking whether a string is empty\n even a string",
" :param s: the string in question\n :param v: variable name\n<END>",
"<BEGIN>\n## `load`",
"Load this driver",
" Note that if either aws_access_key_id or aws_secret_access_key are\n not specifie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_tmp_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_tmp_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Create a temporary directory
:param prefix(str): Name prefix for the new directory
:return: a string with the resulting name of new directory | "Create a temporary directory\n\n :param prefix(str): Name prefix for the new directory\n :return: a string with the resulting name of new directory" | 83 | false | axltxl/m2bk | make_tmp_dir | 33,410 | |
LDU_FT/tumblr/pytumblr/tagged | LDU_FT | [
"<BEGIN>\n## `new_oauth`",
"Return the consumer and oauth tokens with three-legged OAuth process and\n save in a yaml file in the user's home directory.\n<END>",
"<BEGIN>\n## `validate_params`",
"Helps us validate the parameters for the request",
" :param valid_options: a list of strings of valid opti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tagged API.
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 tagged API.
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 ... | Gets a list of posts tagged with the given tag
:param tag: a string, the tag you want to look for
:param before: a unix timestamp, the timestamp you want to start at
to look at posts.
:param limit: the number of results you want
:param filter: the post format that... | "Gets a list of posts tagged with the given tag\n\n :param tag: a string, the tag you want to look for\n :param before: a unix timestamp, the timestamp you want to start at\n to look at posts.\n :param limit: the number of results you want\n :param filter: the post form... | 126 | false | tumblr/pytumblr | tagged | 33,411 | |
LDU_FT/wickerwaka/russound_rio/_store_cached_zone_variable | LDU_FT | [
"<BEGIN>\n## `_retrieve_cached_zone_variable`",
"Retrieves the cache state of the named variable for a particular\n zone. If the variable has not been cached then the UncachedVariable\n exception is raised.\n<END>",
"<BEGIN>\n## `_store_cached_zone_variable`",
"Stores the current known value of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _store_cached_zone_variable 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 _store_cached_zone_variable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Stores the current known value of a zone variable into the cache.
Calls any zone callbacks. | "Stores the current known value of a zone variable into the cache.\n Calls any zone callbacks." | 24 | false | wickerwaka/russound_rio | _store_cached_zone_variable | 33,412 | |
LDU_FT/google/grr/ProcessMessage | LDU_FT | [
"<BEGIN>\n## `Column`",
"Iterates over values of a given column.",
" Args:\n column_name: A nome of the column to retrieve the values for.",
" Yields:\n Values of the specified column.",
" Raises:\n KeyError: If given column is not present in the table.\n<END>",
"<BEGIN>\n## `Check... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ProcessMessage API.
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 ProcessMessage API.
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... | Processes a stats response from the client. | "Processes a stats response from the client." | 4,605 | true | google/grr | ProcessMessage | 33,413 | |
LDU_FT/arkottke/pysra/_calc_corr | LDU_FT | [
"<BEGIN>\n## `_calc_strain_ref`",
"Compute the reference strain using Equation (6).\n<END>",
"<BEGIN>\n## `_calc_mod_reduc`",
"Compute the shear modulus reduction using Equation (1).\n<END>",
"<BEGIN>\n## `_calc_damping`",
"Compute the damping ratio using Equation (16).\n<END>",
"<BEGIN>\n## `relative_e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc_corr API.
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 _calc_corr API.
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... | Compute the adjacent-layer correlations
Parameters
----------
profile : :class:`site.Profile`
Input site profile
Yields
------
corr : :class:`numpy.array`
Adjacent-layer correlations | "Compute the adjacent-layer correlations\n\n Parameters\n ----------\n profile : :class:`site.Profile`\n Input site profile\n\n Yields\n ------\n corr : :class:`numpy.array`\n Adjacent-layer correlations" | 111 | false | arkottke/pysra | _calc_corr | 33,414 | |
LDU_FT/nugget/python-anthemav/connection_lost | LDU_FT | [
"<BEGIN>\n## `refresh_core`",
"Query device for all attributes that exist regardless of power state.",
" This will force a refresh for all device queries that are valid to\n request at any time. It's the only safe suite of queries that we can\n make if we do not know the current state (on ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connection_lost API.
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 connection_lost API.
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... | Called when asyncio.Protocol loses the network connection. | "Called when asyncio.Protocol loses the network connection." | 47 | false | nugget/python-anthemav | connection_lost | 33,415 | |
LDU_FT/Tygs/ww/stops_when | LDU_FT | [
"<BEGIN>\n## `join`",
"Join values and convert to string",
" Example:",
" >>> from ww import l\n >>> lst = l('012')\n >>> lst.join(',')\n u'0,1,2'\n >>> lst.join(',', template=\"{}#\")\n u'0#,1#,2#'\n >>> string = lst.join(','... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stops_when API.
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 stops_when API.
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... | Stop yielding items when a condition arise.
Args:
iterable: the iterable to filter.
condition: if the callable returns True once, stop yielding
items. If it's not a callable, it will be converted
to one as `lambda condition: condition == item`.
Example:
... | "Stop yielding items when a condition arise.\n\n Args:\n iterable: the iterable to filter.\n condition: if the callable returns True once, stop yielding\n items. If it's not a callable, it will be converted\n to one as `lambda condition: condition == item`.\n\n Ex... | 104 | false | Tygs/ww | stops_when | 33,416 | |
LDU_FT/bitesofcode/projexui/clear | LDU_FT | [
"<BEGIN>\n## `addEntry`",
"Creates a new entry item for this widget.\r",
" :param key | <str>\r\n value | <variant>\n<END>",
"<BEGIN>\n## `dictionary`",
"Returns a dictionary of the key/value pairing for the items in\r\n this widget.\r",
" :return {<s... | 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... | Removes all the items from this tree widget. This will go through
and also destroy any XTreeWidgetItems prior to the model clearing
its references. | "Removes all the items from this tree widget. This will go through\r\n and also destroy any XTreeWidgetItems prior to the model clearing\r\n its references." | 4,917 | true | bitesofcode/projexui | clear | 33,417 | |
LDU_FT/BernardFW/bernard/get_friendly_name | LDU_FT | [
"<BEGIN>\n## `_build_stack`",
"Generates the stack of functions to call. It looks at the ordered list\n of all middlewares and only keeps those which have the method we're\n trying to call.\n<END>",
"<BEGIN>\n## `instance`",
"Creates, initializes and returns a unique MiddlewareManager instance.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_friendly_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_friendly_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Let's use the first name of the user as friendly name. In some cases
the user object is incomplete, and in those cases the full user is
fetched. | "Let's use the first name of the user as friendly name. In some cases\n the user object is incomplete, and in those cases the full user is\n fetched." | 427 | false | BernardFW/bernard | get_friendly_name | 33,418 | |
LDU_FT/jmoiron/johnny-cache/patch | LDU_FT | [
"<BEGIN>\n## `disallowed_table`",
"Returns True if a set of tables is in the blacklist or, if a whitelist is set,\n any of the tables is not in the whitelist. False otherwise.\n<END>",
"<BEGIN>\n## `invalidate`",
"Invalidate the current generation for one or more tables. The arguments\n can be either s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | monkey patches django.db.models.sql.compiler.SQL*Compiler series | "monkey patches django.db.models.sql.compiler.SQL*Compiler series" | 38 | false | jmoiron/johnny-cache | patch | 33,419 | |
LDU_FT/UCL-INGI/INGInious/get_submissions | LDU_FT | [
"<BEGIN>\n## `handle_agent_message`",
"Dispatch messages received from agents to the right handlers\n<END>",
"<BEGIN>\n## `handle_client_message`",
"Dispatch messages received from clients to the right handlers\n<END>",
"<BEGIN>\n## `send_container_update_to_client`",
":param client_addrs: list of clients... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_submissions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_submissions API.
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 list of submissions and corresponding aggragations based on inputs | "Returns the list of submissions and corresponding aggragations based on inputs" | 567 | false | UCL-INGI/INGInious | get_submissions | 33,420 | |
LDU_FT/MostAwesomeDude/gentleman/CancelJob | LDU_FT | [
"<BEGIN>\n## `request`",
"Sends an HTTP request.",
" This constructs a full URL, encodes and decodes HTTP bodies, and\n handles invalid responses in a pythonic way.",
" @type method: string\n @param method: HTTP method to use\n @type path: string\n @param path: HTTP U... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CancelJob API.
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 CancelJob API.
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... | Cancels a job.
@type job_id: int
@param job_id: id of the job to delete
@type dry_run: bool
@param dry_run: whether to perform a dry run | "Cancels a job.\n\n @type job_id: int\n @param job_id: id of the job to delete\n @type dry_run: bool\n @param dry_run: whether to perform a dry run" | 173 | false | MostAwesomeDude/gentleman | CancelJob | 33,421 | |
LDU_FT/mezz64/pyEight/last_bed_temp | LDU_FT | [
"<BEGIN>\n## `fetch_userid`",
"Return the userid for the specified bed side.\n<END>",
"<BEGIN>\n## `room_temperature`",
"Return room temperature for both sides of bed.\n<END>",
"<BEGIN>\n## `heating_values`",
"Return a dict of all the current heating values.\n<END>",
"<BEGIN>\n## `current_sleep_stage`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last_bed_temp API.
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 last_bed_temp API.
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 avg bed temperature for last session. | "Return avg bed temperature for last session." | 37 | false | mezz64/pyEight | last_bed_temp | 33,422 | |
LDU_FT/wal-e/wal-e/_get_signal_handler | LDU_FT | [
"<BEGIN>\n## `configure`",
"Configure logging.",
" Borrowed from logging.basicConfig",
" Uses the IndentFormatter instead of the regular Formatter",
" Also, opts the caller into Syslog output, unless syslog could not\n be opened for some reason or another, in which case a warning will\n be pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_signal_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_signal_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.
T... | get the callback function for handler
If the handler is None, returns signal.SIG_IGN.
If the handler is a string, return the matching attribute of this
instance if possible.
Else return the handler itself.
:param handler:
:type handler: str, None, function
:retu... | "get the callback function for handler\n\n If the handler is None, returns signal.SIG_IGN.\n If the handler is a string, return the matching attribute of this\n instance if possible.\n Else return the handler itself.\n\n :param handler:\n :type handler: str, None, function\n ... | 214 | false | wal-e/wal-e | _get_signal_handler | 33,423 | |
LDU_FT/praekeltfoundation/molo/cookiecutter | LDU_FT | [
"<BEGIN>\n## `generate_slug`",
"Returns a new unique slug. Object must provide a SlugField called slug.\n URL friendly slugs are generated using django.template.defaultfilters'\n slugify. Numbers are added to the end of slugs for uniqueness.",
" based on implementation in jmbo.utils\n https://github... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cookiecutter API.
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 cookiecutter API.
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... | Replacement for cookiecutter's own cookiecutter.
The difference with cookiecutter's cookiecutter function
is that this one doesn't automatically str() all the values
passed along to the template.
:param template: A directory containing a project template directory,
or a URL to a git repository... | "Replacement for cookiecutter's own cookiecutter.\n\n The difference with cookiecutter's cookiecutter function\n is that this one doesn't automatically str() all the values\n passed along to the template.\n\n :param template: A directory containing a project template directory,\n or a URL to a git re... | 101 | false | praekeltfoundation/molo | cookiecutter | 33,424 | |
LDU_FT/drj11/pypng/pixmeta | LDU_FT | [
"<BEGIN>\n## `adam7_generate`",
"Generate the coordinates for the reduced scanlines\n of an Adam7 interlaced image\n of size `width` by `height` pixels.",
" Yields a generator for each pass,\n and each pass generator yields a series of (x, y, xstep) triples,\n each one identifying a reduced scanl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pixmeta API.
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 pixmeta API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Convert (uncompressed) Plan 9 image file to pair of (*metadata*,
*pixels*). This is intended to be used by PyPNG format. *metadata*
is the metadata returned in a dictionary, *pixels* is an iterator that
yields each row in boxed row flat pixel format.
`f`, the input file, should be cued up to the star... | "Convert (uncompressed) Plan 9 image file to pair of (*metadata*,\n *pixels*). This is intended to be used by PyPNG format. *metadata*\n is the metadata returned in a dictionary, *pixels* is an iterator that\n yields each row in boxed row flat pixel format.\n\n `f`, the input file, should be cued up to th... | 153 | false | drj11/pypng | pixmeta | 33,425 | |
LDU_FT/ericsomdahl/python-bittrex/get_deposit_address | LDU_FT | [
"<BEGIN>\n## `_api_query`",
"Queries Bittrex",
" :param request_url: fully-formed URL to request\n :type options: dict\n :return: JSON response from Bittrex\n :rtype : dict\n<END>",
"<BEGIN>\n## `get_market_summary`",
"Used to get the last 24 hour summary of all active\n e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deposit_address API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deposit_address API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Used to generate or retrieve an address for a specific currency
Endpoint:
1.1 /account/getdepositaddress
2.0 /key/balance/getdepositaddress
:param currency: String literal for the currency (ie. BTC)
:type currency: str
:return: Address info in JSON
:rtype : dict | "Used to generate or retrieve an address for a specific currency\n\n Endpoint:\n 1.1 /account/getdepositaddress\n 2.0 /key/balance/getdepositaddress\n\n :param currency: String literal for the currency (ie. BTC)\n :type currency: str\n :return: Address info in JSON\n :rt... | 58 | false | ericsomdahl/python-bittrex | get_deposit_address | 33,426 | |
LDU_FT/allianceauth/allianceauth/update_groups_for_state | LDU_FT | [
"<BEGIN>\n## `register`",
"Decorator to register a function as a hook",
" Register hook for ``hook_name``. Can be used as a decorator::\n @register('hook_name')\n def my_hook(...):\n pass",
" or as a function call::\n def my_hook(...):\n pass\n register(... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_groups_for_state 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_groups_for_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Update all the Group memberships for the users
who have State
:param state: State to update for
:return: | "Update all the Group memberships for the users\n who have State\n :param state: State to update for\n :return:" | 57 | false | allianceauth/allianceauth | update_groups_for_state | 33,427 | |
LDU_FT/tgalal/yowsup/deserialize | LDU_FT | [
"<BEGIN>\n## `set_prekeys_as_sent`",
":param prekeyIds:\n :type prekeyIds: list\n :return:\n :rtype:\n<END>",
"<BEGIN>\n## `encrypt`",
":param recipient_id:\n :type recipient_id: str\n :param data:\n :type data: bytes\n :return:\n :rtype:\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API.
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 deserialize API.
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... | :type cls: type
:param data:
:type data: bytes
:return:
:rtype: yowsup.config.base.config.Config | ":type cls: type\n :param data:\n :type data: bytes\n :return:\n :rtype: yowsup.config.base.config.Config" | 46 | false | tgalal/yowsup | deserialize | 33,428 | |
LDU_FT/trailofbits/protofuzz/_fields_to_object | LDU_FT | [
"<BEGIN>\n## `find_protoc`",
"Traverse a path ($PATH by default) to find the protoc compiler\n<END>",
"<BEGIN>\n## `from_string`",
"Produce a Protobuf module from a string description.\r",
" Return the module if successfully compiled, otherwise raise a BadProtobuf\r\n exception.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fields_to_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fields_to_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Helper to convert a descriptor and a set of fields to a Protobuf instance | "Helper to convert a descriptor and a set of fields to a Protobuf instance" | 52 | false | trailofbits/protofuzz | _fields_to_object | 33,429 | |
LDU_FT/nerdvegas/rez/writepy | LDU_FT | [
"<BEGIN>\n## `add_node`",
"Add given node to the graph.",
" @attention: While nodes can be of any type, it's strongly recommended to use only\n numbers and single-line strings as node identifiers if you intend to use write().",
" @type node: node\n @param node: Node identifier.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the writepy API.
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 writepy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Add all files from "pathname" to the ZIP archive.
If pathname is a package directory, search the directory and
all package subdirectories recursively for all *.py and enter
the modules into the archive. If pathname is a plain
directory, listdir *.py and enter all modules. Else, pathna... | "Add all files from \"pathname\" to the ZIP archive.\n\n If pathname is a package directory, search the directory and\n all package subdirectories recursively for all *.py and enter\n the modules into the archive. If pathname is a plain\n directory, listdir *.py and enter all modules. Else... | 2,330 | true | nerdvegas/rez | writepy | 33,430 | |
LDU_FT/rocky/python-xdis/loads | LDU_FT | [
"<BEGIN>\n## `disco`",
"diassembles and deparses a given code block 'co'\n<END>",
"<BEGIN>\n## `disco_loop`",
"Disassembles a queue of code objects. If we discover\n another code object which will be found in co_consts, we add\n the new code to the list. Note that the order of code discovery\n is in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API.
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 loads API.
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... | xdis.marshal.load() but with its dispatch load_code() function replaced
with our decoding version. | "xdis.marshal.load() but with its dispatch load_code() function replaced\n with our decoding version." | 133 | false | rocky/python-xdis | loads | 33,431 | |
LDU_FT/icometrix/dicom2nifti/_is_valid_imaging_dicom | LDU_FT | [
"<BEGIN>\n## `_get_gdcmconv`",
"Get the full path to gdcmconv.\n If not found raise error\n<END>",
"<BEGIN>\n## `compress_directory`",
"This function can be used to convert a folder of jpeg compressed images to an uncompressed ones",
" :param dicom_directory: directory of dicom files to compress\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_valid_imaging_dicom 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 _is_valid_imaging_dicom API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Function will do some basic checks to see if this is a valid imaging dicom | "Function will do some basic checks to see if this is a valid imaging dicom" | 243 | false | icometrix/dicom2nifti | _is_valid_imaging_dicom | 33,432 | |
LDU_FT/thejunglejane/datums/_get_instance | LDU_FT | [
"<BEGIN>\n## `run_migrations_offline`",
"Run migrations in 'offline' mode.",
" This configures the context with just a URL\n and not an Engine, though an Engine is acceptable\n here as well. By skipping the Engine creation\n we don't even need a DBAPI to be available.",
" Calls to context.exec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_instance API.
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_instance API.
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 the first existing instance of the response record. | "Return the first existing instance of the response record." | 30 | false | thejunglejane/datums | _get_instance | 33,433 | |
LDU_FT/daboth/pagan/create_subfield_layer | LDU_FT | [
"<BEGIN>\n## `init_weapon_list`",
"Initialize the possible weapon\n combinations.\n<END>",
"<BEGIN>\n## `grind_hash_for_colors`",
"Extracts information from the hashcode\n to generate different colors. Returns a\n list of colors in (r,g,b) tupels.\n<END>",
"<BEGIN>\n## `split_sequence`",
"Generat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_subfield_layer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_subfield_layer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Reads the SUBFIELD.pgn file and creates
the subfield layer. | "Reads the SUBFIELD.pgn file and creates\n the subfield layer." | 46 | false | daboth/pagan | create_subfield_layer | 33,434 | |
LDU_FT/amaas-fintech/amaas-utils-python/random_string | LDU_FT | [
"<BEGIN>\n## `random_string`",
"Generates a random string of length equal to the length parameter\n<END>",
"<BEGIN>\n## `random_date`",
"Generates a random \"sensible\" date for use in things like issue dates and maturities\n<END>",
"<BEGIN>\n## `dict_camel_to_snake_case`",
"Recursively convert camelCased... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Generates a random string of length equal to the length parameter | "Generates a random string of length equal to the length parameter" | 12 | false | amaas-fintech/amaas-utils-python | random_string | 33,435 | |
LDU_FT/F5Networks/f5-common-python/_prepare_put_or_patch | LDU_FT | [
"<BEGIN>\n## `update`",
"Update the object, removing device group if inherited",
" If inheritedDevicegroup is the string \"true\" we need to remove\n deviceGroup from the args before we update or we get the\n following error:",
" The floating traffic-group: /Common/traffic-group-1 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_put_or_patch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_put_or_patch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Retrieve the appropriate request items for put or patch calls. | "Retrieve the appropriate request items for put or patch calls." | 559 | false | F5Networks/f5-common-python | _prepare_put_or_patch | 33,436 | |
LDU_FT/mjj4791/python-buienradar/__parse_loc_data | LDU_FT | [
"<BEGIN>\n## `__to_float`",
"Convert val into float with digits decimal.\n<END>",
"<BEGIN>\n## `__getBarFC`",
"Parse the pressure and return FC (numerical).\n<END>",
"<BEGIN>\n## `__getBarFCName`",
"Parse the pressure and return FC (String).\n<END>",
"<BEGIN>\n## `get_json_data`",
"Get buienradar json... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_loc_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_loc_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 ... | Parse the xml data from selected weatherstation. | "Parse the xml data from selected weatherstation." | 50 | false | mjj4791/python-buienradar | __parse_loc_data | 33,437 | |
LDU_FT/Genida/dependenpy/as_dict | LDU_FT | [
"<BEGIN>\n## `cast`",
"Cast a set of keys and an array to a Matrix object.\n<END>",
"<BEGIN>\n## `connect_to`",
"Connect this vertex to another one.",
" Args:\n vertex (Vertex): vertex to connect to.\n weight (int): weight of the edge.",
" Returns:\n Edge: th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return the dependencies as a dictionary.
Returns:
dict: dictionary of dependencies. | "Return the dependencies as a dictionary.\n\n Returns:\n dict: dictionary of dependencies." | 130 | false | Genida/dependenpy | as_dict | 33,438 | |
LDU_FT/cisco-sas/kitty/hash | LDU_FT | [
"<BEGIN>\n## `update`",
"update db entry",
" :param field_dict: dictionary of fields and values\n :param where_clause: where clause for the update\n<END>",
"<BEGIN>\n## `insert`",
"insert new db entry",
" :param fields: list of fields to insert\n :param values: list of values t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | :rtype: int
:return: hash of the container | ":rtype: int\n :return: hash of the container" | 331 | false | cisco-sas/kitty | hash | 33,439 | |
LDU_FT/ctuning/ck/deps | LDU_FT | [
"<BEGIN>\n## `call_ck`",
"Input: {\n Input for CK\n }",
" Output: {\n return - return code = 0, if successful\n > 0, if error\n (error) - error text if return > 0",
" (stdout) - stdout, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deps API.
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 deps API.
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... | Input: {
(data_uoa) - repo UOA
or
(path) - path to .cmr.json
(current_repos) - list of repos being updated (to avoid infinite recursion)
(how) - 'pull' (default) or 'add'
(version) - checkout versio... | "Input: {\n (data_uoa) - repo UOA\n or\n (path) - path to .cmr.json\n\n (current_repos) - list of repos being updated (to avoid infinite recursion)\n\n (how) - 'pull' (default) or 'add'\n\n (version) - check... | 640 | false | ctuning/ck | deps | 33,440 | |
LDU_FT/LeKono/pyhgnc/query_entry | LDU_FT | [
"<BEGIN>\n## `get_many2many_table`",
"Creates a many-to-many table that links the given tables table1 and table2.",
" :param str table1: Tablename of left hand table without TABLE_PREFIX.\n :param str table2: Tablename of right hand table without TABLE_PREFIX.\n :return:\n<END>",
"<BEGIN>\n## `_limit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_entry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_entry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns list of HGNC entries by query paramaters
---
tags:
- Query functions
parameters:
- name: name
in: query
type: string
required: false
description: 'HGNC approved name for the gene'
default: 'lysine demethylase 1A'
- name: symbol
i... | "Returns list of HGNC entries by query paramaters\n ---\n\n tags:\n\n - Query functions\n\n parameters:\n\n - name: name\n in: query\n type: string\n required: false\n description: 'HGNC approved name for the gene'\n default: 'lysine demethylase 1A'\n\n - name:... | 248 | false | LeKono/pyhgnc | query_entry | 33,441 | |
LDU_FT/cloudera/cm_api/get_host_map | LDU_FT | [
"<BEGIN>\n## `set_basic_auth`",
"Set up basic auth for the client\n @param username: Login name.\n @param password: Login password.\n @param realm: The authentication realm.\n @return: The current object\n<END>",
"<BEGIN>\n## `execute`",
"Submit an HTTP request.\n @param http_method: GET, POST,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_host_map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_host_map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Gets a mapping between CM hostId and Nagios host information
The key is the CM hostId
The value is an object containing the Nagios hostname and host address | "Gets a mapping between CM hostId and Nagios host information\n\n The key is the CM hostId\n The value is an object containing the Nagios hostname and host address" | 561 | false | cloudera/cm_api | get_host_map | 33,442 | |
LDU_FT/Shapeways/coyote_framework/create_directory | LDU_FT | [
"<BEGIN>\n## `get_login_form_component`",
"Initializes and returns the login form component",
" @rtype: LoginForm\n @return: Initialized component\n<END>",
"<BEGIN>\n## `objectify`",
"Converts a dictionary into a named tuple (shallow)\n<END>",
"<BEGIN>\n## `create_directory`",
"Creates a d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_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 ... | Creates a directory if it does not exist (in a thread-safe way)
@param directory: The directory to create
@return: The directory specified | "Creates a directory if it does not exist (in a thread-safe way)\n\n @param directory: The directory to create\n @return: The directory specified" | 370 | false | Shapeways/coyote_framework | create_directory | 33,443 | |
LDU_FT/addisonlynch/iexfinance/get_stats_daily | LDU_FT | [
"<BEGIN>\n## `_sanitize_dates`",
"Return (datetime_start, datetime_end) tuple\r\n if start is None - default is 2015/01/01\r\n if end is None - default is today\n<END>",
"<BEGIN>\n## `get_social_sentiment`",
"Social Sentiment",
" .. warning:: Unstable endpoint. May return unexpected results.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stats_daily API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stats_daily API.
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... | MOVED to iexfinance.iexdata.get_stats_daily | "MOVED to iexfinance.iexdata.get_stats_daily" | 129 | false | addisonlynch/iexfinance | get_stats_daily | 33,444 | |
LDU_FT/ereOn/azmq/requires_libsodium | LDU_FT | [
"<BEGIN>\n## `metadata_to_buffers`",
"Transform a dict of metadata into a sequence of buffers.",
" :param metadata: The metadata, as a dict.\n :returns: A list of buffers.\n<END>",
"<BEGIN>\n## `buffer_to_metadata`",
"Transform a buffer to a metadata dictionary.",
" :param buffer: The buffer, as ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requires_libsodium 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 requires_libsodium 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... | Mark a function as requiring libsodium.
If no libsodium support is detected, a `RuntimeError` is thrown. | "Mark a function as requiring libsodium.\n\n If no libsodium support is detected, a `RuntimeError` is thrown." | 111 | false | ereOn/azmq | requires_libsodium | 33,445 | |
LDU_FT/Trax-air/swagger-parser/_example_from_definition | LDU_FT | [
"<BEGIN>\n## `_validate_post_body`",
"returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>",
"<BEGIN>\n## `build_definitions_example`",
"Parse all definitions in the swagger specification.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _example_from_definition 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 _example_from_definition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Get an example from a property specification linked to a definition.
Args:
prop_spec: specification of the property you want an example of.
Returns:
An example. | "Get an example from a property specification linked to a definition.\n\n Args:\n prop_spec: specification of the property you want an example of.\n\n Returns:\n An example." | 100 | false | Trax-air/swagger-parser | _example_from_definition | 33,446 | |
LDU_FT/vulndb/python-sdk/get_file_for_id | LDU_FT | [
"<BEGIN>\n## `from_file`",
"This is an alternative \"constructor\" for the DBVuln class which loads\n the data from a file.",
" :param db_file: Contents of a json file from the DB\n :param language: The user's language (en, es, etc.)\n<END>",
"<BEGIN>\n## `from_id`",
"This is an alterna... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_for_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_for_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Given _id, search the DB for the file which contains the data
:param _id: The id to search (int)
:param language: The user's language (en, es, etc.)
:return: The filename | "Given _id, search the DB for the file which contains the data\n\n :param _id: The id to search (int)\n :param language: The user's language (en, es, etc.)\n :return: The filename" | 26 | false | vulndb/python-sdk | get_file_for_id | 33,447 | |
LDU_FT/rix0rrr/gcl/eval | LDU_FT | [
"<BEGIN>\n## `from_spec`",
"Return a schema object from a spec.",
" A spec is either a string for a scalar type, or a list of 0 or 1 specs,\n or a dictionary with two elements: {'fields': { ... }, required: [...]}.\n<END>",
"<BEGIN>\n## `validate`",
"Validate an object according to its own AND an external... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval API.
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 eval API.
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... | Evaluate a thunk in an environment.
Will defer the actual evaluation to the thunk itself, but adds two things:
caching and recursion detection.
Since we have to use a global evaluation stack (because there is a variety of functions that may
be invoked, not just eval() but also __getitem__, and not all of them... | "Evaluate a thunk in an environment.\n\n Will defer the actual evaluation to the thunk itself, but adds two things:\n caching and recursion detection.\n\n Since we have to use a global evaluation stack (because there is a variety of functions that may\n be invoked, not just eval() but also __getitem__, and not all ... | 129 | false | rix0rrr/gcl | eval | 33,448 | |
LDU_FT/BlueBrain/NeuroM/get_nonmonotonic_neurites | LDU_FT | [
"<BEGIN>\n## `_get_type`",
"get the type of the soma",
" Args:\n points: Soma points\n soma_class(str): one of 'contour' or 'cylinder' to specify the type\n<END>",
"<BEGIN>\n## `make_soma`",
"Make a soma object from a set of points",
" Infers the soma type (SomaSinglePoint, SomaSimpleC... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nonmonotonic_neurites API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nonmonotonic_neurites API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Get neurites that are not monotonic
Args:
neurite(Neurite): neurite to operate on
tol(float): the tolerance or the ratio
Returns:
list of neurites that do not satisfy monotonicity test | "Get neurites that are not monotonic\n\n Args:\n neurite(Neurite): neurite to operate on\n tol(float): the tolerance or the ratio\n\n Returns:\n list of neurites that do not satisfy monotonicity test" | 706 | false | BlueBrain/NeuroM | get_nonmonotonic_neurites | 33,449 | |
LDU_FT/rhayes777/PyAutoFit/gaussian_prior_model_for_arguments | LDU_FT | [
"<BEGIN>\n## `residual_map_from_data_mask_and_model_data`",
"Compute the residual map between a masked observed data and model data, where:",
" Residuals = (Data - Model_Data).",
" Parameters\n -----------\n data : np.ndarray\n The observed data that is fitted.\n mask : np.ndarray\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gaussian_prior_model_for_arguments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gaussian_prior_model_for_arguments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Parameters
----------
arguments: {Prior: float}
A dictionary of arguments
Returns
-------
prior_models: [PriorModel]
A new list of prior models with gaussian priors | "Parameters\n ----------\n arguments: {Prior: float}\n A dictionary of arguments\n\n Returns\n -------\n prior_models: [PriorModel]\n A new list of prior models with gaussian priors" | 243 | false | rhayes777/PyAutoFit | gaussian_prior_model_for_arguments | 33,450 | |
LDU_FT/sepandhaghighi/pycm/matrix_check | LDU_FT | [
"<BEGIN>\n## `print_report`",
"Print Compare report.",
" :return: None\n<END>",
"<BEGIN>\n## `save_report`",
"Save Compare report in .comp (flat file format).",
" :param name: filename\n :type name : str\n :param address: flag for address return\n :type address : bool\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matrix_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matrix_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 extr... | Check input matrix format.
:param table: input matrix
:type table : dict
:return: bool | "Check input matrix format.\n\n :param table: input matrix\n :type table : dict\n :return: bool" | 259 | false | sepandhaghighi/pycm | matrix_check | 33,451 | |
LDU_FT/Grk0/python-libconf/get_array_value_dtype | LDU_FT | [
"<BEGIN>\n## `load`",
"Load the contents of ``f`` (a file-like object) to a Python object",
" The returned object is a subclass of ``dict`` that exposes string keys as\n attributes as well.",
" Example:",
" >>> with open('test/example.cfg') as f:\n ... config = libconf.load(f)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_array_value_dtype 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_array_value_dtype 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 array value type, raise ConfigSerializeError for invalid arrays
Libconfig arrays must only contain scalar values and all elements must be
of the same libconfig data type. Raises ConfigSerializeError if these
invariants are not met.
Returns the value type of the array. If an array contains both ... | "Return array value type, raise ConfigSerializeError for invalid arrays\n\n Libconfig arrays must only contain scalar values and all elements must be\n of the same libconfig data type. Raises ConfigSerializeError if these\n invariants are not met.\n\n Returns the value type of the array. If an array contain... | 53 | false | Grk0/python-libconf | get_array_value_dtype | 33,452 | |
LDU_FT/Oneiroe/PySimpleAutomata/nfa_nonuniversality_check | LDU_FT | [
"<BEGIN>\n## `dfa_word_acceptance`",
"Checks if a given **word** is accepted by a DFA,\n returning True/false.",
" The word w is accepted by a DFA if DFA has an accepting run\n on w. Since A is deterministic,\n :math:`w ∈ L(A)` if and only if :math:`ρ(s_0 , w) ∈ F` .",
" :param dict dfa: input ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nfa_nonuniversality_check API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nfa_nonuniversality_check API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Checks if the language read by the input NFA is different
from Σ∗ (i.e. contains all possible words), returning
True/False.
To test nfa A for nonuniversality, it suffices to test Ā (
complementary automaton of A) for nonemptiness
:param dict nfa: input NFA.
:return: *(bool)*, True if input nfa... | "Checks if the language read by the input NFA is different\n from Σ∗ (i.e. contains all possible words), returning\n True/False.\n\n To test nfa A for nonuniversality, it suffices to test Ā (\n complementary automaton of A) for nonemptiness\n\n :param dict nfa: input NFA.\n :return: *(bool)*, True if ... | 208 | false | Oneiroe/PySimpleAutomata | nfa_nonuniversality_check | 33,453 | |
LDU_FT/klen/zeta-library/parse_extends | LDU_FT | [
"<BEGIN>\n## `watch`",
"Watch directory for changes and auto pack sources\n<END>",
"<BEGIN>\n## `pack`",
"Parse file or dir, import css, js code and save with prefix\n<END>",
"<BEGIN>\n## `_invert`",
"Returns the inverse (negative) of a color.\n The red, green, and blue values are inverted, while the o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_extends API.
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 parse_extends API.
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... | For each part, create the inheritance parts from the ' extends ' | "For each part, create the inheritance parts from the ' extends '" | 56 | false | klen/zeta-library | parse_extends | 33,454 | |
LDU_FT/scrapinghub/adblockparser/_domain_variants | LDU_FT | [
"<BEGIN>\n## `split_data`",
"Split data from ``iterable`` into two lists.\n Each element is passed to function ``pred``; elements\n for which ``pred`` returns True are put into ``yes`` list,\n other elements are put into ``no`` list.",
" >>> split_data([\"foo\", \"Bar\", \"Spam\", \"egg\"], lambda t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _domain_variants API.
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 _domain_variants API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | >>> list(_domain_variants("foo.bar.example.com"))
['foo.bar.example.com', 'bar.example.com', 'example.com']
>>> list(_domain_variants("example.com"))
['example.com']
>>> list(_domain_variants("localhost"))
['localhost'] | ">>> list(_domain_variants(\"foo.bar.example.com\"))\n ['foo.bar.example.com', 'bar.example.com', 'example.com']\n >>> list(_domain_variants(\"example.com\"))\n ['example.com']\n >>> list(_domain_variants(\"localhost\"))\n ['localhost']" | 25 | false | scrapinghub/adblockparser | _domain_variants | 33,455 | |
LDU_FT/horejsek/python-sqlpuzzle/has | LDU_FT | [
"<BEGIN>\n## `_get_convert_method`",
"Get right method to convert of the value.\n<END>",
"<BEGIN>\n## `has`",
"Returns ``True`` if ``querypart_name`` with ``value`` is set. For example\n you can check if you already used condition by ``sql.has('where')``.",
" If you want to check for more info... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has API.
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 has API.
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... | Returns ``True`` if ``querypart_name`` with ``value`` is set. For example
you can check if you already used condition by ``sql.has('where')``.
If you want to check for more information, for example if that condition
also contain ID, you can do this by ``sql.has('where', 'id')``. | "Returns ``True`` if ``querypart_name`` with ``value`` is set. For example\n you can check if you already used condition by ``sql.has('where')``.\n\n If you want to check for more information, for example if that condition\n also contain ID, you can do this by ``sql.has('where', 'id')``." | 31 | false | horejsek/python-sqlpuzzle | has | 33,456 | |
LDU_FT/hannes-brt/hebel/linear_scheduler_up_down | LDU_FT | [
"<BEGIN>\n## `parameters`",
"A property that returns all of the model's parameters.\n<END>",
"<BEGIN>\n## `parameters`",
"Used to set all of the model's parameters to new values.",
" **Parameters:**",
" value : array_like\n New values for the model parameters. Must be of length\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linear_scheduler_up_down 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 linear_scheduler_up_down API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Increases linearly to target_value, stays at target_value until
t_decrease and then decreases linearly | "Increases linearly to target_value, stays at target_value until\n t_decrease and then decreases linearly" | 372 | false | hannes-brt/hebel | linear_scheduler_up_down | 33,457 | |
LDU_FT/Robpol86/sphinxcontrib-versioning/env_updated | LDU_FT | [
"<BEGIN>\n## `setup_logging`",
"Configure console logging. Info and below go to stdout, others go to stderr.",
" :param int verbose: Verbosity level. > 0 print debug statements. > 1 passed to sphinx-build.\n :param bool colors: Print color text in non-verbose mode.\n :param str name: Which logger name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the env_updated API.
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 env_updated API.
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... | Abort Sphinx after initializing config and discovering all pages to build.
:param sphinx.application.Sphinx app: Sphinx application object.
:param sphinx.environment.BuildEnvironment env: Sphinx build environment. | "Abort Sphinx after initializing config and discovering all pages to build.\n\n :param sphinx.application.Sphinx app: Sphinx application object.\n :param sphinx.environment.BuildEnvironment env: Sphinx build environment." | 172 | false | Robpol86/sphinxcontrib-versioning | env_updated | 33,458 | |
LDU_FT/ScienceLogic/ovfexporter/get_vcenter_vm_uuid_by_name | LDU_FT | [
"<BEGIN>\n## `parse_args`",
"Argument parser and validator\n :return: args\n<END>",
"<BEGIN>\n## `validate_args`",
"Call all required validation functions\n :param args:\n :return:\n<END>",
"<BEGIN>\n## `convert`",
"Download VM disks, and OVF from vCenter\n :param args:\n :return: created v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vcenter_vm_uuid_by_name 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 get_vcenter_vm_uuid_by_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Log into vCenter API search for a vm by name, and return it's uuid
:param host:
:param user:
:param password:
:param vm_name:
:return: | "Log into vCenter API search for a vm by name, and return it's uuid\n :param host:\n :param user:\n :param password:\n :param vm_name:\n :return:" | 24 | false | ScienceLogic/ovfexporter | get_vcenter_vm_uuid_by_name | 33,459 | |
LDU_FT/ktdreyer/txproductpages/schedule_tasks | LDU_FT | [
"<BEGIN>\n## `schedule_tasks`",
"Get all the tasks for a release.",
" :param release_id: int, release id number.\n :returns: deferred that when fired returns a list of Munch (dict-like)\n objects representing all tasks.\n<END>",
"<BEGIN>\n## `task_date`",
"Get a datetime.date ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule_tasks API.
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 schedule_tasks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get all the tasks for a release.
:param release_id: int, release id number.
:returns: deferred that when fired returns a list of Munch (dict-like)
objects representing all tasks. | "Get all the tasks for a release.\n\n :param release_id: int, release id number.\n :returns: deferred that when fired returns a list of Munch (dict-like)\n objects representing all tasks." | 25 | false | ktdreyer/txproductpages | schedule_tasks | 33,460 | |
LDU_FT/fusepy/fusepy/symlink | LDU_FT | [
"<BEGIN>\n## `fuse_exit`",
"This will shutdown the FUSE mount and cause the call to FUSE(...) to\n return, similar to sending SIGINT to the process.",
" Flags the native FUSE session as terminated and will cause any running FUSE\n event loops to exit on the next opportunity. (see fuse.c::fuse_exit)\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symlink API.
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 symlink API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Create a symbolic link
Valid replies:
reply_entry
reply_err | "Create a symbolic link\n\n Valid replies:\n reply_entry\n reply_err" | 68 | false | fusepy/fusepy | symlink | 33,461 | |
LDU_FT/pzs741/TEDT/extend_config | LDU_FT | [
"<BEGIN>\n## `get_url`",
"获取url地址并根据网页编码格式自动解析",
" Keyword arguments:\n url -- 用户传入地址,头部必须含有http://\n Return:\n 网页源代码(为了下一步预处理方便,所有英文字母转换为小写)\n 网页编解码\n<END>",
"<BEGIN>\n## `html_clean`",
"获取网页源代码并进行预处理",
" Keyword arguments:\n html_code -- 网页源代码,字符... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend_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 ext... | We are handling config value setting like this for a cleaner api.
Users just need to pass in a named param to this source and we can
dynamically generate a config object for it. | "We are handling config value setting like this for a cleaner api.\n Users just need to pass in a named param to this source and we can\n dynamically generate a config object for it." | 91 | false | pzs741/TEDT | extend_config | 33,462 | |
LDU_FT/maxzheng/localconfig/save | LDU_FT | [
"<BEGIN>\n## `_to_dot_key`",
"Return the section and key in dot notation format.\n<END>",
"<BEGIN>\n## `_add_dot_key`",
":param str section: Config section\n :param str key: Config key\n<END>",
"<BEGIN>\n## `read`",
"Queues the config sources to be read later (when config is accessed), or reads imm... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Save the config
:param str target_file: File to save to. Defaults to `self._last_source` if set
:param bool as_template: Save the config with all keys and sections commented out for user to modify
:raise AttributeError: if target file is not provided and `self._last_source` is not set | "Save the config\n\n :param str target_file: File to save to. Defaults to `self._last_source` if set\n :param bool as_template: Save the config with all keys and sections commented out for user to modify\n :raise AttributeError: if target file is not provided and `self._last_source` is not set" | 32 | false | maxzheng/localconfig | save | 33,463 | |
LDU_FT/46elks/elkme/format_sms_payload | LDU_FT | [
"<BEGIN>\n## `query_api`",
"Send a request to the 46elks API.\n Fetches SMS history as JSON by default, sends a HTTP POST request\n with the incoming data dictionary as a urlencoded query if data is\n provided, otherwise HTTP GET",
" Throws HTTPError on non 2xx\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_sms_payload 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 format_sms_payload 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... | Helper function to create a SMS payload with little effort | "Helper function to create a SMS payload with little effort" | 11 | false | 46elks/elkme | format_sms_payload | 33,464 | |
LDU_FT/nefarioustim/parker/_get_stripped_text_from_node | LDU_FT | [
"<BEGIN>\n## `save_media`",
"Store any media within model.media_list.\n<END>",
"<BEGIN>\n## `get_proxy`",
"Return a random proxy from proxy config.\n<END>",
"<BEGIN>\n## `get`",
"Return Requests response to GET request.\n<END>",
"<BEGIN>\n## `get_content`",
"Return content from URI if Response status ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_stripped_text_from_node 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_stripped_text_from_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Return the stripped text content of a node. | "Return the stripped text content of a node." | 34 | false | nefarioustim/parker | _get_stripped_text_from_node | 33,465 | |
LDU_FT/fake-name/WebRequest/_submit | LDU_FT | [
"<BEGIN>\n## `getFileAndName`",
"Give a requested page (note: the arguments for this call are forwarded to getpage()),\n\t\treturn the content at the target URL and the filename for the target content as a\n\t\t2-tuple (pgctnt, hName) for the content at the target URL.",
"\t\tThe filename specified in the conte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _submit API.
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 _submit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Submit either a file from disk, or a in-memory file to the solver service, and
return the request ID associated with the new captcha task. | "Submit either a file from disk, or a in-memory file to the solver service, and\n\t\treturn the request ID associated with the new captcha task." | 66 | false | fake-name/WebRequest | _submit | 33,466 | |
LDU_FT/buildinspace/peru/_maybe_quote | LDU_FT | [
"<BEGIN>\n## `_find_plugin_dir`",
"Find the directory containing the plugin definition for the given type.\n Do this by searching all the paths where plugins can live for a dir that\n matches the type name.\n<END>",
"<BEGIN>\n## `_get_plugin_install_dirs`",
"Return all the places on the filesystem where... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _maybe_quote API.
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 _maybe_quote API.
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... | All of our values should be strings. Usually those can be passed in as
bare words, but if they're parseable as an int or float we need to quote
them. | "All of our values should be strings. Usually those can be passed in as\n bare words, but if they're parseable as an int or float we need to quote\n them." | 75 | false | buildinspace/peru | _maybe_quote | 33,467 | |
LDU_FT/rlabbe/filterpy/systematic_resample | LDU_FT | [
"<BEGIN>\n## `reset`",
"reset filter back to state at time of construction\n<END>",
"<BEGIN>\n## `update`",
"Update filter with new measurement `z`",
" Returns\n -------",
" x : np.array\n estimate for this time step (same as self.x)\n<END>",
"<BEGIN>\n## `errors`",
"Co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the systematic_resample 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 systematic_resample 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... | Performs the systemic resampling algorithm used by particle filters.
This algorithm separates the sample space into N divisions. A single random
offset is used to to choose where to sample from for all divisions. This
guarantees that every sample is exactly 1/N apart.
Parameters
----------
wei... | "Performs the systemic resampling algorithm used by particle filters.\n\n This algorithm separates the sample space into N divisions. A single random\n offset is used to to choose where to sample from for all divisions. This\n guarantees that every sample is exactly 1/N apart.\n\n Parameters\n ----------... | 665 | false | rlabbe/filterpy | systematic_resample | 33,468 | |
LDU_FT/jd/tenacity/before_sleep_func_accept_retry_state | LDU_FT | [
"<BEGIN>\n## `after_log`",
"After call strategy that logs to some logger the finished attempt.\n<END>",
"<BEGIN>\n## `retry`",
"Wrap a function with a new `Retrying` object.",
" :param dargs: positional arguments passed to Retrying object\n :param dkw: keyword arguments passed to the Retrying object\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before_sleep_func_accept_retry_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the before_sleep_func_accept_retry_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | Wrap "before_sleep" function to accept "retry_state". | "Wrap \"before_sleep\" function to accept \"retry_state\"." | 44 | false | jd/tenacity | before_sleep_func_accept_retry_state | 33,469 | |
LDU_FT/sorrowless/battery_systray/right_click_event_statusicon | LDU_FT | [
"<BEGIN>\n## `set_refresh`",
"It is just stub for simplify setting timeout.\n Args:\n timeout (int): timeout in milliseconds, after which callback will be called\n callback (callable): usually, just a function that will be called each time after timeout\n *callback_args (any type... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the right_click_event_statusicon 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 right_click_event_statusicon API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | It's just way how popup menu works in GTK. Don't ask me how it works. | "It's just way how popup menu works in GTK. Don't ask me how it works." | 12 | false | sorrowless/battery_systray | right_click_event_statusicon | 33,470 | |
LDU_FT/treethought/flask-assistant/get_assistant | LDU_FT | [
"<BEGIN>\n## `build_item`",
"Builds an item that may be added to List or Carousel\n<END>",
"<BEGIN>\n## `suggest`",
"Use suggestion chips to hint at responses to continue or pivot the conversation\n<END>",
"<BEGIN>\n## `link_out`",
"Presents a chip similar to suggestion, but instead links to a url\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_assistant API.
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_assistant API.
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... | Imports a module from filename as a string, returns the contained Assistant object | "Imports a module from filename as a string, returns the contained Assistant object" | 65 | false | treethought/flask-assistant | get_assistant | 33,471 | |
LDU_FT/gbiggs/rtsprofile/parse_yaml | LDU_FT | [
"<BEGIN>\n## `parse_xml_node`",
"Parse an xml.dom Node object representing a message sending object\n into this object.\n<END>",
"<BEGIN>\n## `parse_yaml`",
"Parse a YAML speficication of a message sending object into this\n object.\n<END>",
"<BEGIN>\n## `save_xml`",
"Save this message_sendi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_yaml API.
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 parse_yaml API.
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... | Parse a YAML specification of a configuration set into this
object. | "Parse a YAML specification of a configuration set into this\n object." | 166 | false | gbiggs/rtsprofile | parse_yaml | 33,472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.