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/inveniosoftware/invenio-pidstore/create | LDU_FT | [
"<BEGIN>\n## `recid_fetcher`",
"Fetch a record's identifiers.",
" :param record_uuid: The record UUID.\n :param data: The record metadata.\n :returns: A :data:`invenio_pidstore.fetchers.FetchedPID` instance.\n<END>",
"<BEGIN>\n## `get_object`",
"Get an object behind persistent identifier.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create a new record identifier.
Note: if the object_type and object_uuid values are passed, then the
PID status will be automatically setted to
:attr:`invenio_pidstore.models.PIDStatus.REGISTERED`.
:param object_type: The object type. (Default: None.)
:param object_uuid: The ob... | "Create a new record identifier.\n\n Note: if the object_type and object_uuid values are passed, then the\n PID status will be automatically setted to\n :attr:`invenio_pidstore.models.PIDStatus.REGISTERED`.\n\n :param object_type: The object type. (Default: None.)\n :param object_uuid... | 118 | false | inveniosoftware/invenio-pidstore | create | 13,373 | |
LDU_FT/thomasantony/simplepipe/validate_task | LDU_FT | [
"<BEGIN>\n## `validate_task`",
"Validates task and adds default values for missing options using the\n following steps.",
" 1. If there is no input list specified or if it is None, the input spec is\n assumed to be ['*'].",
" 2. If there are not outputs specified, or if the output spec is None ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_task API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_task API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Validates task and adds default values for missing options using the
following steps.
1. If there is no input list specified or if it is None, the input spec is
assumed to be ['*'].
2. If there are not outputs specified, or if the output spec is None or an
empty list, the output spec is assu... | "Validates task and adds default values for missing options using the\n following steps.\n\n 1. If there is no input list specified or if it is None, the input spec is\n assumed to be ['*'].\n\n 2. If there are not outputs specified, or if the output spec is None or an\n empty list, the output spec... | 26 | false | thomasantony/simplepipe | validate_task | 13,374 | |
LDU_FT/angr/claripy/collapse | LDU_FT | [
"<BEGIN>\n## `_align_ast`",
"Aligns the AST so that the argument with the highest cardinality is on the left.",
" :return: a new AST.\n<END>",
"<BEGIN>\n## `_doit`",
"This function processes the list of truisms and finds bounds for ASTs.\n<END>",
"<BEGIN>\n## `_handleable_truism`",
"Checks whethe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collapse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collapse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Collapse into a StridedInterval instance.
:return: A new StridedInterval instance. | "Collapse into a StridedInterval instance.\n\n :return: A new StridedInterval instance." | 453 | false | angr/claripy | collapse | 13,375 | |
LDU_FT/fitnr/convertdate/month_days | LDU_FT | [
"<BEGIN>\n## `to_jd`",
"Return Julian day count of given ISO year, week, and day\n<END>",
"<BEGIN>\n## `from_jd`",
"Return tuple of ISO (year, week, day) for Julian day\n<END>",
"<BEGIN>\n## `legal_date`",
"Check if this is a legal date in the Julian calendar\n<END>",
"<BEGIN>\n## `from_jd`",
"Calcula... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the month_days API.
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 month_days API.
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... | How many days are in a given month of a given year | "How many days are in a given month of a given year" | 85 | false | fitnr/convertdate | month_days | 13,376 | |
LDU_FT/steffann/pylisp/sanitize | LDU_FT | [
"<BEGIN>\n## `from_bytes`",
"Look at the type of the message, instantiate the correct class and\n let it parse the message.\n<END>",
"<BEGIN>\n## `sanitize`",
"Check if the current settings conform to the LISP specifications and\n fix them where possible.\n<END>",
"<BEGIN>\n## `calculate_authe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Check if the current settings conform to the LISP specifications and
fix them where possible. | "Check if the current settings conform to the LISP specifications and\n fix them where possible." | 85 | false | steffann/pylisp | sanitize | 13,377 | |
LDU_FT/lyst/lightfm/set_params | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit the user/item id and feature name mappings.",
" Calling fit the second time will reset existing mappings.",
" Parameters\n ----------",
" users: iterable of user ids\n items: iterable of item ids\n user_features: iterable of user features, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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.
The extrac... | Set the parameters of this estimator.
Returns
-------
self | "Set the parameters of this estimator.\n\n Returns\n -------\n\n self" | 151 | false | lyst/lightfm | set_params | 13,378 | |
LDU_FT/mdickinson/refcycle/owned_objects | LDU_FT | [
"<BEGIN>\n## `restore_gc_state`",
"Restore the garbage collector state on leaving the with block.\n<END>",
"<BEGIN>\n## `children`",
"Return the list of immediate children of the given vertex.\n<END>",
"<BEGIN>\n## `parents`",
"Return the list of immediate parents of this vertex.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the owned_objects API.
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 owned_objects API.
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... | List of gc-tracked objects owned by this ObjectGraph instance. | "List of gc-tracked objects owned by this ObjectGraph instance." | 98 | false | mdickinson/refcycle | owned_objects | 13,379 | |
LDU_FT/uw-it-aca/uw-restclients-core/getheader | LDU_FT | [
"<BEGIN>\n## `retry`",
"Decorator function for retrying the decorated function,\n using an exponential or fixed backoff.",
" Original: https://wiki.python.org/moin/PythonDecoratorLibrary#Retry",
" ExceptionToCheck: the exception to check. Can be a tuple of\n exceptions to check\n tries: num... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getheader API.
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 getheader API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns the HTTP response header field, case insensitively | "Returns the HTTP response header field, case insensitively" | 21 | false | uw-it-aca/uw-restclients-core | getheader | 13,380 | |
LDU_FT/inveniosoftware/invenio-previewer/render | LDU_FT | [
"<BEGIN>\n## `render`",
"Pretty print the XML file for rendering.\n<END>",
"<BEGIN>\n## `preview`",
"Render appropiate template with embed flag.\n<END>",
"<BEGIN>\n## `uri`",
"Get file download link.",
" .. note::",
" The URI generation assumes that you can download the file using t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Pretty print the XML file for rendering. | "Pretty print the XML file for rendering." | 29 | false | inveniosoftware/invenio-previewer | render | 13,381 | |
LDU_FT/mgraffg/EvoDAG/compute_weight | LDU_FT | [
"<BEGIN>\n## `compute_weight`",
"Returns the weight (w) using OLS of r * w = gp._ytr\n<END>",
"<BEGIN>\n## `isfinite`",
"Test whether the predicted values are finite\n<END>",
"<BEGIN>\n## `trace`",
"Restore the position in the history of individual v's nodes\n<END>",
"<BEGIN>\n## `tournament`",
"Tourn... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_weight API.
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 compute_weight API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns the weight (w) using OLS of r * w = gp._ytr | "Returns the weight (w) using OLS of r * w = gp._ytr" | 42 | false | mgraffg/EvoDAG | compute_weight | 13,382 | |
LDU_FT/RRZE-HPC/pycachesim/loadstore | LDU_FT | [
"<BEGIN>\n## `load`",
"Load one or more addresses.",
" :param addr: byte address of load location\n :param length: All address from addr until addr+length (exclusive) are\n loaded (default: 1)\n<END>",
"<BEGIN>\n## `store`",
"Store one or more adresses.",
" :para... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadstore API.
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 loadstore API.
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... | Load and store address in order given.
:param addrs: iteratable of address tuples: [(loads, stores), ...]
:param length: will load and store all bytes between addr and
addr+length (for each address) | "Load and store address in order given.\n\n :param addrs: iteratable of address tuples: [(loads, stores), ...]\n :param length: will load and store all bytes between addr and\n addr+length (for each address)" | 19 | false | RRZE-HPC/pycachesim | loadstore | 13,383 | |
LDU_FT/jessamynsmith/pipreq/determine_extra_packages | LDU_FT | [
"<BEGIN>\n## `generate_requirements_files`",
"Generate set of requirements files for config\n<END>",
"<BEGIN>\n## `_write_default_sections`",
"Starting from scratch, so create a default rc file\n<END>",
"<BEGIN>\n## `_parse_requirements`",
"Parse a list of requirements specifications.\n Lines t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_extra_packages 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 determine_extra_packages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Return all packages that are installed, but missing from "packages".
Return value is a tuple of the package names | "Return all packages that are installed, but missing from \"packages\".\n Return value is a tuple of the package names" | 13 | false | jessamynsmith/pipreq | determine_extra_packages | 13,384 | |
LDU_FT/nugget/python-insteonplm/set_x10_address | LDU_FT | [
"<BEGIN>\n## `data_received`",
"Receive data from the protocol.",
" Called when asyncio.Protocol detects received data from network.\n<END>",
"<BEGIN>\n## `connection_lost`",
"Reestablish the connection to the transport.",
" Called when asyncio.Protocol loses the network connection.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_x10_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.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_x10_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.
The e... | Set the X10 address for the current group/button. | "Set the X10 address for the current group/button." | 375 | false | nugget/python-insteonplm | set_x10_address | 13,385 | |
LDU_FT/nerdynick/PySQLPool/being | LDU_FT | [
"<BEGIN>\n## `getNewConnection`",
"Quickly Create a new PySQLConnection class",
"\t@param host: Hostname for your database\n\t@param username: Username to use to connect to database\n\t@param password: Password to use to connect to database \n\t@param schema: Schema to use\n\t@param port: Port to connect on\n\t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the being API.
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 being API.
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... | Being a Transaction
@author: Nick Verbeck
@since: 5/14/2011 | "Being a Transaction\n\t\t\n\t\t@author: Nick Verbeck\n\t\t@since: 5/14/2011" | 59 | false | nerdynick/PySQLPool | being | 13,386 | |
LDU_FT/tomi77/python-t77-date/to_local | LDU_FT | [
"<BEGIN>\n## `timedelta_to_seconds`",
"Convert datetime.timedelta to seconds\n :param value: timedelta to convert\n :type value: datetime.timedelta\n :param with_microseconds:\n :type with_microseconds: bool\n :return: seconds/seconds with microseconds or None if val is None\n :rtype: int/float/... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_local API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_local API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Convert datetime.datetime time to local time zone
If value doesn't have tzinfo, then defaulttz is set.
Default value of defaulttz is UTC. | "Convert datetime.datetime time to local time zone\n\n If value doesn't have tzinfo, then defaulttz is set.\n Default value of defaulttz is UTC." | 26 | false | tomi77/python-t77-date | to_local | 13,387 | |
LDU_FT/ebu/PlugIt/cache | LDU_FT | [
"<BEGIN>\n## `doQuery`",
"Send a request to the server and return the result\n<END>",
"<BEGIN>\n## `ping`",
"Return true if the server successfully pinged\n<END>",
"<BEGIN>\n## `checkVersion`",
"Check if the server use the same version of our protocol\n<END>",
"<BEGIN>\n## `getMedia`",
"Return a tuple... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d... | Decorator to specify the number of seconds the result should be cached, and if cache can be shared between users
:param time: Cache timeout in seconds
:param byUser: False by default, if true, cache is shared among users | "Decorator to specify the number of seconds the result should be cached, and if cache can be shared between users\n :param time: Cache timeout in seconds\n :param byUser: False by default, if true, cache is shared among users" | 75 | false | ebu/PlugIt | cache | 13,388 | |
LDU_FT/eclipse/unide.python/loads | LDU_FT | [
"<BEGIN>\n## `samples`",
"Yield the samples as dicts, keyed by dimensions.\n<END>",
"<BEGIN>\n## `device_measurement`",
"Returns a JSON MeasurementPayload ready to be send through a\n transport.",
" If `ts` is not given, the current time is used. `part` is an\n optional `Part` object, and `result` ... | 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... | Load a PPMP message from the JSON-formatted string in `data`. When
`validate` is set, raise `ValidationError`. Additional keyword
arguments are the same that are accepted by `json.loads`,
e.g. `indent` to get a pretty output. | "Load a PPMP message from the JSON-formatted string in `data`. When\n `validate` is set, raise `ValidationError`. Additional keyword\n arguments are the same that are accepted by `json.loads`,\n e.g. `indent` to get a pretty output." | 25 | false | eclipse/unide.python | loads | 13,389 | |
LDU_FT/jeffknupp/sandman2/_export | LDU_FT | [
"<BEGIN>\n## `to_dict`",
"Return a dictionary representation of the exception.\n<END>",
"<BEGIN>\n## `required`",
"Return a list of all columns required by the database to create the\n resource.",
" :param cls: The Model class to gather attributes from\n :rtype: list\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _export API.
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 _export API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return a CSV of the resources in *collection*.
:param list collection: A list of resources represented by dicts | "Return a CSV of the resources in *collection*.\n\n :param list collection: A list of resources represented by dicts" | 74 | false | jeffknupp/sandman2 | _export | 13,390 | |
LDU_FT/pysal/spglm/deviance | LDU_FT | [
"<BEGIN>\n## `fit`",
"Method that fits a model with a particular estimation routine.",
" Parameters\n ----------",
" ini_betas : array\n k*1, initial coefficient values, including constant.\n Default is None, which calculates initial value... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deviance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deviance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | r'''
Deviance function for either Bernoulli or Binomial data.
Parameters
----------
endog : array-like
Endogenous response variable (already transformed to a probability
if appropriate).
mu : array
Fitted mean response variable
freq_we... | "r'''\n Deviance function for either Bernoulli or Binomial data.\n\n Parameters\n ----------\n endog : array-like\n Endogenous response variable (already transformed to a probability\n if appropriate).\n mu : array\n Fitted mean response variable\n ... | 161 | false | pysal/spglm | deviance | 13,391 | |
LDU_FT/jbarlow83/OCRmyPDF/to_pdf | LDU_FT | [
"<BEGIN>\n## `re_symlink`",
"Helper function: relinks soft symbolic link if necessary\n<END>",
"<BEGIN>\n## `is_file_writable`",
"Intentionally racy test if target is writable.",
" We intend to write to the output file if and only if we succeed and\n can replace it atomically. Before doing the OCR wor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_pdf API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_pdf API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Creates a PDF file with an image superimposed on top of the text.
Text is positioned according to the bounding box of the lines in
the hOCR file.
The image need not be identical to the image used to create the hOCR
file.
It can have a lower resolution, different color mode, etc. | "Creates a PDF file with an image superimposed on top of the text.\n Text is positioned according to the bounding box of the lines in\n the hOCR file.\n The image need not be identical to the image used to create the hOCR\n file.\n It can have a lower resolution, different color mode,... | 195 | false | jbarlow83/OCRmyPDF | to_pdf | 13,392 | |
LDU_FT/tBaxter/tango-comments/unregister | LDU_FT | [
"<BEGIN>\n## `next_redirect`",
"Handle the \"where should I go next?\" part of comment views.",
" The next value could be a\n ``?next=...`` GET arg or the URL of a given view (``fallback``). See\n the view modules for examples.",
" Returns an ``HttpResponseRedirect``.\n<END>",
"<BEGIN>\n## `conf... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unregister API.
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 unregister API.
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... | Remove a model or a list of models from the list of models
whose comments will be moderated.
Raise ``NotModerated`` if any of the models are not currently
registered for moderation. | "Remove a model or a list of models from the list of models\n whose comments will be moderated.\n\n Raise ``NotModerated`` if any of the models are not currently\n registered for moderation." | 66 | false | tBaxter/tango-comments | unregister | 13,393 | |
LDU_FT/DataDog/integrations-core/_fetch_url_data | LDU_FT | [
"<BEGIN>\n## `check_election_status`",
"Retrieves the leader-election annotation from a given object, and\n submits metrics and a service check.",
" An integration warning is sent if the object is not retrievable,\n or no record is found. Monitors on the service-check should have\n n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fetch_url_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fetch_url_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 e... | Hit a given http url and return the stats lines | "Hit a given http url and return the stats lines" | 2,189 | true | DataDog/integrations-core | _fetch_url_data | 13,394 | |
LDU_FT/knowmalware/camcrypt/keygen | LDU_FT | [
"<BEGIN>\n## `keygen`",
"This must be called on the object before any encryption or\n decryption can take place. Provide it the key bit length,\n which must be 128, 192, or 256, and the key, which may be a\n sequence of bytes or a simple string.\n Does not return any value.\n Raises an exception i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keygen API.
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 keygen API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | This must be called on the object before any encryption or
decryption can take place. Provide it the key bit length,
which must be 128, 192, or 256, and the key, which may be a
sequence of bytes or a simple string.
Does not return any value.
Raises an exception if the arguments are not sane. | "This must be called on the object before any encryption or\n decryption can take place. Provide it the key bit length,\n which must be 128, 192, or 256, and the key, which may be a\n sequence of bytes or a simple string.\n Does not return any value.\n Raises an exception if the arguments are not sane." | 34 | false | knowmalware/camcrypt | keygen | 13,395 | |
LDU_FT/rytilahti/python-songpal/get_sound_settings | LDU_FT | [
"<BEGIN>\n## `make`",
"Create a container.",
" Reports extra keys as well as missing ones.\n Thanks to habnabit for the idea!\n<END>",
"<BEGIN>\n## `create_post_request`",
"Call the given method over POST.",
" :param method: Name of the method\n :param params: dict of parameters\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sound_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sound_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get the current sound settings.
:param str target: settings target, defaults to all. | "Get the current sound settings.\n\n :param str target: settings target, defaults to all." | 86 | false | rytilahti/python-songpal | get_sound_settings | 13,396 | |
LDU_FT/KrishnaswamyLab/graphtools/interpolate | LDU_FT | [
"<BEGIN>\n## `set_params`",
"Set parameters on this object",
" Safe setter method - attributes should not be modified directly as some\n changes are not valid.\n Valid parameters:\n - n_jobs\n - random_state\n - verbose\n Invalid parameters: (these would require ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interpolate API.
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 interpolate API.
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... | Interpolate new data onto a transformation of the graph data
One of either transitions or Y should be provided
Parameters
----------
transform : array-like, shape=[n_samples, n_transform_features]
transitions : array-like, optional, shape=[n_samples_y, n_samples]
... | "Interpolate new data onto a transformation of the graph data\n\n One of either transitions or Y should be provided\n\n Parameters\n ----------\n\n transform : array-like, shape=[n_samples, n_transform_features]\n\n transitions : array-like, optional, shape=[n_samples_y, n_samples]\n ... | 207 | false | KrishnaswamyLab/graphtools | interpolate | 13,397 | |
LDU_FT/mishan/twemredis-py/get_shard_by_key | LDU_FT | [
"<BEGIN>\n## `_init_redis_shards`",
"init_redis_shards is used internally to connect to the Redis sentinels\n and populate self.shards with the redis.StrictRedis instances. This\n is a convenient method to override / stub out in unit tests.\n<END>",
"<BEGIN>\n## `get_shard_names`",
"get_shard_na... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shard_by_key API.
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_shard_by_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | get_shard_by_key returns the Redis shard given a key.
Keyword arguments:
key -- the key (e.g. 'friend_request:{12345}')
If the key contains curly braces as in the example, then portion inside
the curly braces will be used as the key id. Otherwise, the entire key
is the key id.
... | "get_shard_by_key returns the Redis shard given a key.\n Keyword arguments:\n key -- the key (e.g. 'friend_request:{12345}')\n\n If the key contains curly braces as in the example, then portion inside\n the curly braces will be used as the key id. Otherwise, the entire key\n is the ke... | 48 | false | mishan/twemredis-py | get_shard_by_key | 13,398 | |
LDU_FT/helium/helium-python/build_request_include | LDU_FT | [
"<BEGIN>\n## `error_for`",
"Return the appropriate initialized exception class for a response.\n<END>",
"<BEGIN>\n## `device_configuration`",
"Get a specific device configuration.",
" A device can have at most one loaded and one pending device\n configuration. This returns that device_configur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_request_include 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 build_request_include API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Augment request parameters with includes.
When one or all resources are requested an additional set of
resources can be requested as part of the request. This function
extends the given parameters for a request with a list of resource
types passed in as a list of :class:`Resource` subclasses.
Args... | "Augment request parameters with includes.\n\n When one or all resources are requested an additional set of\n resources can be requested as part of the request. This function\n extends the given parameters for a request with a list of resource\n types passed in as a list of :class:`Resource` subclasses.\n\n... | 223 | false | helium/helium-python | build_request_include | 13,399 | |
LDU_FT/timgabets/pynblock/modify_key_parity | LDU_FT | [
"<BEGIN>\n## `xor`",
"XOR two blocks of data. Each block must be a hex representation of binary data, e.g. b'DF1267EEDCBA9876'\n<END>",
"<BEGIN>\n## `hexify`",
"Convert integer to hex string representation, e.g. 12 to '0C'\n<END>",
"<BEGIN>\n## `key_CV`",
"Get DES key check value. The key is binary hex e.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_key_parity API.
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 modify_key_parity API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | The prior use of the function is to return the parity-validated key.
The incoming key is expected to be hex data binary representation, e.g. b'E7A3C8B1' | "The prior use of the function is to return the parity-validated key.\n\n The incoming key is expected to be hex data binary representation, e.g. b'E7A3C8B1'" | 18 | false | timgabets/pynblock | modify_key_parity | 13,400 | |
LDU_FT/ConsenSys/mythril-classic/_get_block_hash | LDU_FT | [
"<BEGIN>\n## `_get_account`",
"Get account by address.",
" :param address:\n :return:\n<END>",
"<BEGIN>\n## `_get_block_hash`",
"Get block hash by block number.",
" :param number:\n :return:\n<END>",
"<BEGIN>\n## `_get_head_block`",
"Get head block header.",
" :ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_block_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_block_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 e... | Get block hash by block number.
:param number:
:return: | "Get block hash by block number.\n\n :param number:\n :return:" | 376 | false | ConsenSys/mythril-classic | _get_block_hash | 13,401 | |
LDU_FT/insightindustry/validator-collection/is_type | LDU_FT | [
"<BEGIN>\n## `disable_on_env`",
"Disable the ``func`` called if its name is present in ``VALIDATORS_DISABLED``.",
" :param func: The function/validator to be disabled.\n :type func: callable",
" :returns: If disabled, the ``value`` (first positional argument) passed to\n ``func``. If enabled, th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_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 extracted... | Indicate if ``obj`` is a type in ``type_``.
.. hint::
This checker is particularly useful when you want to evaluate whether
``obj`` is of a particular type, but importing that type directly to use
in :func:`isinstance() <python:isinstance>` would cause a circular import
error.
To us... | "Indicate if ``obj`` is a type in ``type_``.\n\n .. hint::\n\n This checker is particularly useful when you want to evaluate whether\n ``obj`` is of a particular type, but importing that type directly to use\n in :func:`isinstance() <python:isinstance>` would cause a circular import\n error.\n\n ... | 599 | false | insightindustry/validator-collection | is_type | 13,402 | |
LDU_FT/dedupeio/dedupe/matchBlocks | LDU_FT | [
"<BEGIN>\n## `getCentroid`",
"Takes in a list of attribute values for a field,\n evaluates the centroid using the comparator,\n & returns the centroid (i.e. the 'best' value for the field)\n<END>",
"<BEGIN>\n## `getCanonicalRep`",
"Given a list of records within a duplicate cluster, constructs a\n ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the matchBlocks API.
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 matchBlocks API.
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... | Partitions blocked data and generates a sequence of clusters, where
each cluster is a tuple of record ids
Keyword arguments:
blocks -- Sequence of tuples of records, where each tuple is a
set of records covered by a blocking predicate
threshold -- Number between 0 an... | "Partitions blocked data and generates a sequence of clusters, where\n each cluster is a tuple of record ids\n\n Keyword arguments:\n\n blocks -- Sequence of tuples of records, where each tuple is a\n set of records covered by a blocking predicate\n\n threshold -- Number bet... | 136 | false | dedupeio/dedupe | matchBlocks | 13,403 | |
LDU_FT/watson-developer-cloud/python-sdk/_to_dict | LDU_FT | [
"<BEGIN>\n## `synthesize_using_websocket`",
"Synthesizes text to spoken audio using web sockets. It supports the use of\n the SSML <mark> element to identify the location of user-specified markers in the audio.\n It can also return timing information for all strings of the input text.\n Note:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return a json dictionary representing this model. | "Return a json dictionary representing this model." | 1,254 | true | watson-developer-cloud/python-sdk | _to_dict | 13,404 | |
LDU_FT/Dallinger/Dallinger/execute | LDU_FT | [
"<BEGIN>\n## `setup`",
"Setup the networks.",
" Setup only does stuff if there are no networks, this is so it only\n runs once at the start of the experiment. It first calls the same\n function in the super (see experiments.py in dallinger). Then it adds a\n source to each network.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
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 execute API.
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... | Start the server, load the zip file into the database, then loop
until terminated with <control>-c. | "Start the server, load the zip file into the database, then loop\n until terminated with <control>-c." | 425 | false | Dallinger/Dallinger | execute | 13,405 | |
LDU_FT/tkarabela/pysubs2/shift | LDU_FT | [
"<BEGIN>\n## `make_time`",
"Convert time to milliseconds.",
" See :func:`pysubs2.time.times_to_ms()`. When both frames and fps are specified,\n :func:`pysubs2.time.frames_to_ms()` is called instead.",
" Raises:\n ValueError: Invalid fps, or one of frames/fps is missing.",
" Example:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shift API.
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 shift API.
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... | Shift start and end times.
See :meth:`SSAFile.shift()` for full description. | "Shift start and end times.\n\n See :meth:`SSAFile.shift()` for full description." | 94 | false | tkarabela/pysubs2 | shift | 13,406 | |
LDU_FT/glyphobet/fragments/_full_diff | LDU_FT | [
"<BEGIN>\n## `_visible_in_diff`",
"Collects the set of lines that should be visible in a diff with a certain number of context lines\n<END>",
"<BEGIN>\n## `_split_diff`",
"Split diffs and context lines into groups based on None sentinel\n<END>",
"<BEGIN>\n## `_diff_group_position`",
"Generate a unified di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _full_diff API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _full_diff API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Generate a full diff based on a Weave merge result | "Generate a full diff based on a Weave merge result" | 28 | false | glyphobet/fragments | _full_diff | 13,407 | |
LDU_FT/botswana-harvard/edc-registration/registration_options | LDU_FT | [
"<BEGIN>\n## `update_subject_identifier_on_save`",
"Overridden to not set the subject identifier on save.\n<END>",
"<BEGIN>\n## `raise_on_changed_subject_identifier`",
"Raises an exception if there is an attempt to change\n the subject identifier for an existing instance if the subject\n identif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the registration_options 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 registration_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Gathers values for common attributes between the
registration model and this instance. | "Gathers values for common attributes between the\n registration model and this instance." | 13 | false | botswana-harvard/edc-registration | registration_options | 13,408 | |
LDU_FT/shinichi-takii/ddlparse/get_name | LDU_FT | [
"<BEGIN>\n## `get_name`",
"Get Name converted case",
" :param name_case: name case type\n * DdlParse.NAME_CASE.original : Return to no convert\n * DdlParse.NAME_CASE.lower : Return to lower\n * DdlParse.NAME_CASE.upper : Return to upper",
" :return: name\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte... | Get Name converted case
:param name_case: name case type
* DdlParse.NAME_CASE.original : Return to no convert
* DdlParse.NAME_CASE.lower : Return to lower
* DdlParse.NAME_CASE.upper : Return to upper
:return: name | "Get Name converted case\n\n :param name_case: name case type\n * DdlParse.NAME_CASE.original : Return to no convert\n * DdlParse.NAME_CASE.lower : Return to lower\n * DdlParse.NAME_CASE.upper : Return to upper\n\n :return: name" | 19 | false | shinichi-takii/ddlparse | get_name | 13,409 | |
LDU_FT/TissueMAPS/TmDeploy/_check_keypair | LDU_FT | [
"<BEGIN>\n## `__init_os_api`",
"Initialise client objects for talking to OpenStack API.",
" This is in a separate function so to be called by ``__init__`` and\n ``__setstate__``.\n<END>",
"<BEGIN>\n## `stop_instance`",
"Stops the instance gracefully.",
" :param str instance_id: instan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_keypair API.
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 _check_keypair API.
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... | First checks if the keypair is valid, then checks if the keypair
is registered with on the cloud. If not the keypair is added to the
users ssh keys.
:param str name: name of the ssh key
:param str public_key_path: path to the ssh public key file
:param str private_key_path: path... | "First checks if the keypair is valid, then checks if the keypair\n is registered with on the cloud. If not the keypair is added to the\n users ssh keys.\n\n :param str name: name of the ssh key\n :param str public_key_path: path to the ssh public key file\n :param str private_key_pat... | 192 | false | TissueMAPS/TmDeploy | _check_keypair | 13,410 | |
LDU_FT/rmohr/static3/_conditions | LDU_FT | [
"<BEGIN>\n## `iter_and_close`",
"Yield file contents by block then close the file.\n<END>",
"<BEGIN>\n## `cling_wrap`",
"Return a Cling that serves from the given package and dir_name.",
" This uses pkg_resources.resource_filename which is not the\n recommended way, since it extracts the files.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _conditions API.
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 _conditions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return Etag and Last-Modified values defaults to now for both. | "Return Etag and Last-Modified values defaults to now for both." | 33 | false | rmohr/static3 | _conditions | 13,411 | |
LDU_FT/Gorialis/jishaku/jsk_sudo | LDU_FT | [
"<BEGIN>\n## `get_var_dict_from_ctx`",
"Returns the dict to be used in REPL for a given Context.\n<END>",
"<BEGIN>\n## `background_reader`",
"Reads a stream and forwards each line to an async callback.\n<END>",
"<BEGIN>\n## `make_reader_task`",
"Create a reader executor task for a stream.\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsk_sudo API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsk_sudo API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Run a command bypassing all checks and cooldowns.
This also bypasses permission checks so this has a high possibility of making a command raise. | "Run a command bypassing all checks and cooldowns.\n\n This also bypasses permission checks so this has a high possibility of making a command raise." | 161 | false | Gorialis/jishaku | jsk_sudo | 13,412 | |
LDU_FT/lincolnloop/salmon/get_queryset | LDU_FT | [
"<BEGIN>\n## `generate_settings`",
"This command is run when ``default_path`` doesn't exist, or ``init`` is\n run and returns a string representing the default data to put into their\n settings file.\n<END>",
"<BEGIN>\n## `configure_app`",
"Builds up the settings using the same method as logan\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_queryset API.
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_queryset API.
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... | Shows one entry per distinct metric name | "Shows one entry per distinct metric name" | 29 | false | lincolnloop/salmon | get_queryset | 13,413 | |
LDU_FT/inveniosoftware/kwalitee/is_file_excluded | LDU_FT | [
"<BEGIN>\n## `_get_files_modified`",
"Get the list of modified files that are Python or Jinja2.\n<END>",
"<BEGIN>\n## `_get_git_author`",
"Return the git author from the git variables.\n<END>",
"<BEGIN>\n## `_prepare_commit_msg`",
"Prepare the commit message in tmp_file.",
" It will build the commit ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_file_excluded API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_file_excluded API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Check if the file should be excluded.
:param filename: file name
:param excludes: list of regex to match
:return: True if the file should be excluded | "Check if the file should be excluded.\n\n :param filename: file name\n :param excludes: list of regex to match\n :return: True if the file should be excluded" | 77 | false | inveniosoftware/kwalitee | is_file_excluded | 13,414 | |
LDU_FT/cbclab/MOT/truncated_normal_log_likelihood | LDU_FT | [
"<BEGIN>\n## `get_historical_data`",
"Get the historical tank data.",
" Args:\n nmr_problems (int): the number of problems",
" Returns:\n tuple: (observations, nmr_tanks_ground_truth)\n<END>",
"<BEGIN>\n## `get_simulated_data`",
"Simulate some data.",
" This returns the simulated ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncated_normal_log_likelihood API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncated_normal_log_likelihood API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Calculate the log likelihood of the truncated normal distribution.
Args:
params: tuple with (mean, std), the parameters under which we evaluate the model
low (float): the lower truncation bound
high (float): the upper truncation bound
data (ndarray): the one dime... | "Calculate the log likelihood of the truncated normal distribution.\n\n Args:\n params: tuple with (mean, std), the parameters under which we evaluate the model\n low (float): the lower truncation bound\n high (float): the upper truncation bound\n data (ndarray): the o... | 445 | false | cbclab/MOT | truncated_normal_log_likelihood | 13,415 | |
LDU_FT/InspectorMustache/base16-builder-python/get_templates | LDU_FT | [
"<BEGIN>\n## `get_parent_dir`",
"Get the directory $level levels above $base_dir.\n<END>",
"<BEGIN>\n## `get_pystache_parsed`",
"Return a ParsedTemplate instance based on the contents of\n $mustache_file.\n<END>",
"<BEGIN>\n## `get_template_dirs`",
"Return a set of all template directories.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_templates API.
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_templates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return a list of template_dicts based on the config.yaml in
$self.base_path. Keys correspond to templates and values represent
further settings regarding each template. A pystache object containing
the parsed corresponding mustache file is added to the sub-dictionary. | "Return a list of template_dicts based on the config.yaml in\n $self.base_path. Keys correspond to templates and values represent\n further settings regarding each template. A pystache object containing\n the parsed corresponding mustache file is added to the sub-dictionary." | 50 | false | InspectorMustache/base16-builder-python | get_templates | 13,416 | |
LDU_FT/EmbodiedCognition/py-c3d/_pad_block | LDU_FT | [
"<BEGIN>\n## `write`",
"Write binary header data to a file handle.",
" This method writes exactly 512 bytes to the beginning of the given file\n handle.",
" Parameters\n ----------\n handle : file handle\n The given handle will be reset to 0 using `seek` and then ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pad_block API.
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 _pad_block API.
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... | Pad the file with 0s to the end of the next block boundary. | "Pad the file with 0s to the end of the next block boundary." | 61 | false | EmbodiedCognition/py-c3d | _pad_block | 13,417 | |
LDU_FT/etcher-be/elib_run/monitor_running_process | LDU_FT | [
"<BEGIN>\n## `filter_line`",
"Filters out lines that match a given regex",
" :param line: line to filter\n :type line: str\n :param context: run context\n :type context: _RunContext\n :return: line if it doesn't match the filter\n :rtype: optional str\n<END>",
"<BEGIN>\n## `decode_and_filter... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the monitor_running_process 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 monitor_running_process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Runs an infinite loop that waits for the process to either exit on its or time out
Captures all output from the running process
:param context: run context
:type context: RunContext | "Runs an infinite loop that waits for the process to either exit on its or time out\n\n Captures all output from the running process\n\n :param context: run context\n :type context: RunContext" | 32 | false | etcher-be/elib_run | monitor_running_process | 13,418 | |
LDU_FT/hobson/pug-ann/plot_network_results | LDU_FT | [
"<BEGIN>\n## `hourly`",
"Get detailed (hourly) weather data for the requested days and location",
" The Weather Underground URL for Fresno, CA on 1/1/2011 is:\n http://www.wunderground.com/history/airport/KFAT/2011/1/1/DailyHistory.html?MR=1&format=1",
" This will fail periodically on Travis, b/c wun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_network_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_network_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Identical to plot_trainer except `network` and `ds` must be provided separately | "Identical to plot_trainer except `network` and `ds` must be provided separately" | 81 | false | hobson/pug-ann | plot_network_results | 13,419 | |
LDU_FT/KxSystems/pyq/update | LDU_FT | [
"<BEGIN>\n## `console_size`",
"Return console size as a (LINES, COLUMNS) tuple\n<END>",
"<BEGIN>\n## `get_unit`",
"Extract the time unit from array's dtype\n<END>",
"<BEGIN>\n## `k2a`",
"Rescale data from a K object x to array a.\n<END>",
"<BEGIN>\n## `show`",
"pretty-print data to the console",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | update from self
>>> t = q('([]a:1 2 3; b:10 20 30)')
>>> t.update('a*2',
... where='b > 20').show() # doctest: +NORMALIZE_WHITESPACE
a b
----
1 10
2 20
6 30 | "update from self\n\n >>> t = q('([]a:1 2 3; b:10 20 30)')\n >>> t.update('a*2',\n ... where='b > 20').show() # doctest: +NORMALIZE_WHITESPACE\n a b\n ----\n 1 10\n 2 20\n 6 30" | 34 | false | KxSystems/pyq | update | 13,420 | |
LDU_FT/rackerlabs/fleece/get_config | LDU_FT | [
"<BEGIN>\n## `build_wsgi_environ_from_event`",
"Create a WSGI environment from the proxy integration event.\n<END>",
"<BEGIN>\n## `wsgi_handler`",
"lambda handler function.\n This function runs the WSGI app with it and collects its response, then\n translates the response back into the format expected b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac... | Get config file and parse YAML into dict. | "Get config file and parse YAML into dict." | 108 | false | rackerlabs/fleece | get_config | 13,421 | |
LDU_FT/gbowerman/azurerm/list_insights_components | LDU_FT | [
"<BEGIN>\n## `get_rg_from_id`",
"get a resource group name from a VMSS ID string\n<END>",
"<BEGIN>\n## `get_user_agent`",
"User-Agent Header. Sends library identification to Azure endpoint.\n<END>",
"<BEGIN>\n## `do_get`",
"Do an HTTP GET request and return JSON.",
" Args:\n endpoint (str): Az... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_insights_components 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 list_insights_components API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | List the Microsoft Insights components in a resource group.
Args:
access_token (str): A valid Azure authentication token.
subscription_id (str): Azure subscription id.
resource_group (str): Azure resource group name.
Returns:
HTTP response. JSON body of components. | "List the Microsoft Insights components in a resource group.\n\n Args:\n access_token (str): A valid Azure authentication token.\n subscription_id (str): Azure subscription id.\n resource_group (str): Azure resource group name.\n\n Returns:\n HTTP response. JSON body of components." | 605 | false | gbowerman/azurerm | list_insights_components | 13,422 | |
LDU_FT/holtjma/msbwt/mainRun | LDU_FT | [
"<BEGIN>\n## `extendSeed`",
"This function is intended to be an interactive technique for constructing transcripts, probably to be released\n in a future version of msbwt\n @param bwtFN - the filename of the BWT to load\n @param seedKmer - the seed sequence to use for construction\n @p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mainRun API.
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 mainRun API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | This is the primary function for external typical users to run when the Command Line Interface is used | "This is the primary function for external typical users to run when the Command Line Interface is used" | 84 | false | holtjma/msbwt | mainRun | 13,423 | |
LDU_FT/eyeseast/python-tablefu/map | LDU_FT | [
"<BEGIN>\n## `sort`",
"Sort rows in this table, preserving a record of how that\n sorting is done in TableFu.options['sorted_by']\n<END>",
"<BEGIN>\n## `filter`",
"Tables can be filtered in one of two ways:\n - Simple keyword arguments return rows where values match *exactly*\n - Pass i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc... | Map a function to rows, or to given columns | "Map a function to rows, or to given columns" | 51 | false | eyeseast/python-tablefu | map | 13,424 | |
LDU_FT/Genida/django-meerkat/url_is_project | LDU_FT | [
"<BEGIN>\n## `ip_geoloc`",
"Get IP geolocation.",
" Args:\n ip (str): IP address to use if no data provided.\n hit_api (bool): whether to hit api if info not found.",
" Returns:\n str: latitude and longitude, comma-separated.\n<END>",
"<BEGIN>\n## `google_maps_geoloc_link`",
"Ge... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_is_project API.
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 url_is_project API.
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... | Check if URL is part of the current project's URLs.
Args:
url (str): URL to check.
default (callable): used to filter out some URLs attached to function.
Returns: | "Check if URL is part of the current project's URLs.\n\n Args:\n url (str): URL to check.\n default (callable): used to filter out some URLs attached to function.\n\n Returns:" | 71 | false | Genida/django-meerkat | url_is_project | 13,425 | |
LDU_FT/wdm0006/git-pandas/coverage | LDU_FT | [
"<BEGIN>\n## `repo_name`",
"Returns a DataFrame of the repo names present in this project directory",
" :return: DataFrame\n<END>",
"<BEGIN>\n## `coverage`",
"Will return a DataFrame with coverage information (if available) for each repo in the project).",
" If there is a .coverage file avai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coverage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coverage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | If there is a .coverage file available, this will attempt to form a DataFrame with that information in it, which
will contain the columns:
* filename
* lines_covered
* total_lines
* coverage
If it can't be found or parsed, an empty DataFrame of that form will be ret... | "If there is a .coverage file available, this will attempt to form a DataFrame with that information in it, which\n will contain the columns:\n\n * filename\n * lines_covered\n * total_lines\n * coverage\n\n If it can't be found or parsed, an empty DataFrame of that form wi... | 123 | false | wdm0006/git-pandas | coverage | 13,426 | |
LDU_FT/CZ-NIC/yangson/get_schema_node | LDU_FT | [
"<BEGIN>\n## `schema_root`",
"Return the root node of the receiver's schema.\n<END>",
"<BEGIN>\n## `iname`",
"Return the instance name corresponding to the receiver.\n<END>",
"<BEGIN>\n## `_node_digest`",
"Return dictionary of receiver's properties suitable for clients.\n<END>",
"<BEGIN>\n## `_iname2qna... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema_node API.
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_schema_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return the schema node addressed by a schema path.
Args:
path: Schema path.
Returns:
Schema node if found in the schema, or ``None``.
Raises:
InvalidSchemaPath: If the schema path is invalid. | "Return the schema node addressed by a schema path.\n\n Args:\n path: Schema path.\n\n Returns:\n Schema node if found in the schema, or ``None``.\n\n Raises:\n InvalidSchemaPath: If the schema path is invalid." | 352 | false | CZ-NIC/yangson | get_schema_node | 13,427 | |
LDU_FT/wummel/patool/write_directory | LDU_FT | [
"<BEGIN>\n## `list_tar`",
"List a TAR archive with the tarfile Python module.\n<END>",
"<BEGIN>\n## `extract_tar`",
"Extract a TAR archive with the tarfile Python module.\n<END>",
"<BEGIN>\n## `create_tar`",
"Create a TAR archive with the tarfile Python module.\n<END>",
"<BEGIN>\n## `get_tar_mode`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 e... | Write recursively all directories and filenames to zipfile instance. | "Write recursively all directories and filenames to zipfile instance." | 127 | false | wummel/patool | write_directory | 13,428 | |
LDU_FT/crs4/hl7apy/_get_traversal_children | LDU_FT | [
"<BEGIN>\n## `check_encoding_chars`",
"Validate the given encoding chars",
" :type encoding_chars: ``dict``\n :param encoding_chars: the encoding chars (see :func:`hl7apy.set_default_encoding_chars`)\n :raises: :exc:`hl7apy.exceptions.InvalidEncodingChars` if the given encoding chars are not valid\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_traversal_children 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_traversal_children 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 component and subcomponent indexes from the given traversal path
(e.g. PID_1_2 -> component=2, subcomponent=None) | "Retrieve component and subcomponent indexes from the given traversal path\n (e.g. PID_1_2 -> component=2, subcomponent=None)" | 289 | false | crs4/hl7apy | _get_traversal_children | 13,429 | |
LDU_FT/calston/rhumba/getResult | LDU_FT | [
"<BEGIN>\n## `getBody`",
"Make an HTTP request and return the body\n<END>",
"<BEGIN>\n## `clusterStatus`",
"Returns a dict of cluster nodes and their status information\n<END>",
"<BEGIN>\n## `getResult`",
"Retrieve the result of a job from its ID\n<END>",
"<BEGIN>\n## `clusterStatus`",
"Returns a dict... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getResult API.
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 getResult API.
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... | Retrieve the result of a job from its ID | "Retrieve the result of a job from its ID" | 19 | false | calston/rhumba | getResult | 13,430 | |
LDU_FT/MagicTheGathering/mtg-sdk-python/find_many | LDU_FT | [
"<BEGIN>\n## `get`",
"Invoke an HTTP GET request on a url",
" Args:\n url (string): URL endpoint to request\n params (dict): Dictionary of url parameters\n Returns:\n dict: JSON response as a dictionary\n<END>",
"<BEGIN>\n## `find`",
"Get a resource by its id",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_many API.
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 find_many API.
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... | Get a list of resources
Args:
url (string): URL to invoke
type (class): Class type
resource (string): The REST Resource
Returns:
list of object: List of resource instances | "Get a list of resources\n\n Args:\n url (string): URL to invoke\n type (class): Class type\n resource (string): The REST Resource\n Returns:\n list of object: List of resource instances" | 15 | false | MagicTheGathering/mtg-sdk-python | find_many | 13,431 | |
LDU_FT/ubernostrum/django-flashpolicies/allow_identity | LDU_FT | [
"<BEGIN>\n## `allow_domain`",
"Allows access from ``domain``, which may be either a full\n domain name, or a wildcard (e.g., ``*.example.com``, or simply\n ``*``). Due to security concerns, it is strongly recommended\n that you use explicit domains rather than wildcards.",
" For sock... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allow_identity API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allow_identity API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Allows access from documents digitally signed by the key with
``fingerprint``.
In theory, multiple algorithms can be added in the future for
calculating ``fingerprint`` from the signing key, but at this
time only one algorithm -- SHA-1 -- is supported by the
cross-domain policy ... | "Allows access from documents digitally signed by the key with\n ``fingerprint``.\n\n In theory, multiple algorithms can be added in the future for\n calculating ``fingerprint`` from the signing key, but at this\n time only one algorithm -- SHA-1 -- is supported by the\n cross-domain ... | 31 | false | ubernostrum/django-flashpolicies | allow_identity | 13,432 | |
LDU_FT/koordinates/python-client/publish | LDU_FT | [
"<BEGIN>\n## `create`",
"Create single permission for the given object.",
" :param Permission permission: A single Permission object to be set.\n<END>",
"<BEGIN>\n## `set`",
"Set the object permissions. If the parent object already has permissions, they will be overwritten.",
" :param [] per... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish API.
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 publish API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Creates a publish task just for this version, which publishes as soon as any import is complete.
:return: the publish task
:rtype: Publish
:raises Conflict: If the version is already published, or already has a publish job. | "Creates a publish task just for this version, which publishes as soon as any import is complete.\n\n :return: the publish task\n :rtype: Publish\n :raises Conflict: If the version is already published, or already has a publish job." | 178 | false | koordinates/python-client | publish | 13,433 | |
LDU_FT/jessamynsmith/paragres/print_message | LDU_FT | [
"<BEGIN>\n## `print_message`",
"Prints the message, if verbosity is high enough.\n<END>",
"<BEGIN>\n## `error`",
"Prints the error, and exits with the given code.\n<END>",
"<BEGIN>\n## `parse_db_settings`",
"Parse out database settings from filename or DJANGO_SETTINGS_MODULE.\n<END>",
"<BEGIN>\n## `init... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_message API.
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 print_message API.
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... | Prints the message, if verbosity is high enough. | "Prints the message, if verbosity is high enough." | 20 | false | jessamynsmith/paragres | print_message | 13,434 | |
LDU_FT/SHTOOLS/SHTOOLS/to_shcoeffs | LDU_FT | [
"<BEGIN>\n## `example`",
"Plot random phase and Gaussian random variable spectra.\n<END>",
"<BEGIN>\n## `plot_rad`",
"Plot the radial component of the gravity field.",
" Usage\n -----\n x.plot_rad([tick_interval, xlabel, ylabel, ax, colorbar,\n cb_orientation, cb_labe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_shcoeffs API.
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 to_shcoeffs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return the spherical harmonic coefficients of taper i as a SHCoeffs
class instance.
Usage
-----
clm = x.to_shcoeffs(itaper, [normalization, csphase])
Returns
-------
clm : SHCoeffs class instance
Parameters
----------
itaper : int
... | "Return the spherical harmonic coefficients of taper i as a SHCoeffs\n class instance.\n\n Usage\n -----\n clm = x.to_shcoeffs(itaper, [normalization, csphase])\n\n Returns\n -------\n clm : SHCoeffs class instance\n\n Parameters\n ----------\n itape... | 779 | false | SHTOOLS/SHTOOLS | to_shcoeffs | 13,435 | |
LDU_FT/dahlia/sqlalchemy-imageattach/migrate_class | LDU_FT | [
"<BEGIN>\n## `readlines`",
"Reads until EOF using :meth:`readline()`.",
" :param sizehint: if it's present, instead of reading up to EOF,\n whole lines totalling approximately ``sizehint``\n bytes (or more to accommodate a final whole line)\n :type s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the migrate_class API.
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 migrate_class API.
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... | Migrate all image data of ``cls`` from ``source`` storage to
``destination`` storage. All data in ``source`` storage are *not*
deleted.
It does not execute migration by itself alone. You need to
:meth:`~MigrationPlan.execute()` the plan it returns::
migrate_class(session, UserPicture, source... | "Migrate all image data of ``cls`` from ``source`` storage to\n ``destination`` storage. All data in ``source`` storage are *not*\n deleted.\n\n It does not execute migration by itself alone. You need to\n :meth:`~MigrationPlan.execute()` the plan it returns::\n\n migrate_class(session, UserPicture... | 145 | false | dahlia/sqlalchemy-imageattach | migrate_class | 13,436 | |
LDU_FT/ptmcg/littletable/join_on | LDU_FT | [
"<BEGIN>\n## `copy_template`",
"Create empty copy of the current table, with copies of all\n index definitions.\n<END>",
"<BEGIN>\n## `clone`",
"Create full copy of the current table, including table contents\n and index definitions.\n<END>",
"<BEGIN>\n## `create_index`",
"Create a new... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_on API.
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 join_on API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Creates a JoinTerm in preparation for joining with another table, to
indicate what attribute should be used in the join. Only indexed attributes
may be used in a join.
@param attr: attribute name to join from this table (may be different
from the attribute name in the t... | "Creates a JoinTerm in preparation for joining with another table, to \n indicate what attribute should be used in the join. Only indexed attributes\n may be used in a join.\n @param attr: attribute name to join from this table (may be different\n from the attribute name in ... | 75 | false | ptmcg/littletable | join_on | 13,437 | |
LDU_FT/mattja/nsim/svd_entropy | LDU_FT | [
"<BEGIN>\n## `merge`",
"Merge several timeseries\n Arguments:\n tup: sequence of Timeseries, with the same shape except for axis 0\n Returns: \n Resulting merged timeseries which can have duplicate time points.\n<END>",
"<BEGIN>\n## `add_analyses`",
"Dynamically add new analysis methods to the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the svd_entropy API.
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 svd_entropy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Compute SVD Entropy from either two cases below:
1. a time series X, with lag tau and embedding dimension dE (default)
2. a list, W, of normalized singular values of a matrix (if W is provided,
recommend to speed up.)
If W is None, the function will do as follows to prepare singular spectrum:
... | "Compute SVD Entropy from either two cases below:\n 1. a time series X, with lag tau and embedding dimension dE (default)\n 2. a list, W, of normalized singular values of a matrix (if W is provided,\n recommend to speed up.)\n\n If W is None, the function will do as follows to prepare singular spectrum:\n\n... | 427 | false | mattja/nsim | svd_entropy | 13,438 | |
LDU_FT/475Cumulus/TBone/to_python | LDU_FT | [
"<BEGIN>\n## `request_args`",
"Returns the arguments passed with the request in a dictionary.\n Returns both URL resolved arguments and query string arguments.\n<END>",
"<BEGIN>\n## `connect`",
"Connects a signal to a receiver function",
" :param receiver:\n The callback function wh... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_python API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_python API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Coerce data from primitive form to native Python types.
Returns the default type (if exists) | "Coerce data from primitive form to native Python types.\n Returns the default type (if exists)" | 100 | false | 475Cumulus/TBone | to_python | 13,439 | |
LDU_FT/jamesturk/django-honeypot/render_honeypot_field | 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 render_honeypot_field 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 render_honeypot_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Renders honeypot field named field_name (defaults to HONEYPOT_FIELD_NAME). | "Renders honeypot field named field_name (defaults to HONEYPOT_FIELD_NAME)." | 12 | false | jamesturk/django-honeypot | render_honeypot_field | 13,440 | |
LDU_FT/sveetch/djangocodemirror/js_html | 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 js_html API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the js_html API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Render HTML tags for Javascript assets.
Returns:
string: HTML for Javascript assets from every registered config. | "Render HTML tags for Javascript assets.\n\n Returns:\n string: HTML for Javascript assets from every registered config." | 125 | false | sveetch/djangocodemirror | js_html | 13,441 | |
LDU_FT/coinbase/coinbase-python/buy | LDU_FT | [
"<BEGIN>\n## `set_primary`",
"https://developers.coinbase.com/api/v2#set-account-as-primary\n<END>",
"<BEGIN>\n## `modify`",
"https://developers.coinbase.com/api#modify-an-account\n<END>",
"<BEGIN>\n## `get_address`",
"https://developers.coinbase.com/api/v2#show-addresss\n<END>",
"<BEGIN>\n## `get_addre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buy API.
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 buy API.
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... | https://developers.coinbase.com/api/v2#buy-bitcoin | "https://developers.coinbase.com/api/v2#buy-bitcoin" | 166 | false | coinbase/coinbase-python | buy | 13,442 | |
LDU_FT/pavelsof/ipalint/get_report | LDU_FT | [
"<BEGIN>\n## `_save_stdin`",
"Creates a temporary dir (self.temp_dir) and saves the given input\n\t\tstream to a file within that dir. Returns the path to the file. The dir\n\t\tis removed in the __del__ method.\n<END>",
"<BEGIN>\n## `_open`",
"Opens the file specified by the given path. Raises ValueError if ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_report API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_report API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns a string describing all the errors collected so far (the
report). The first flag determines the type of report. The second flag
is ignored if the first is set to True. | "Returns a string describing all the errors collected so far (the\n\t\treport). The first flag determines the type of report. The second flag\n\t\tis ignored if the first is set to True." | 53 | false | pavelsof/ipalint | get_report | 13,443 | |
LDU_FT/esterhui/pypu/_update_config_location | LDU_FT | [
"<BEGIN>\n## `_connectToWP`",
"Establish the actual TCP connection to Flickr\n<END>",
"<BEGIN>\n## `_readMetaAndContent`",
"Reads meta data and content from file into WordPressPost() class.\n Returns the class",
" If error, returns None\n<END>",
"<BEGIN>\n## `GetStatus`",
"Scans through al... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_config_location 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_config_location API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Loads location and applies to all files in given
files list (or if none, all files in flickr DB)
google reverse GEO to figure out location lat/long
file can contain things like:
Australia
Sydney, Australia
Holcomb Campground, California.
If image already has Lat... | "Loads location and applies to all files in given\n files list (or if none, all files in flickr DB)\n\n google reverse GEO to figure out location lat/long\n file can contain things like:\n Australia\n Sydney, Australia\n Holcomb Campground, California.\n\n If image alrea... | 113 | false | esterhui/pypu | _update_config_location | 13,444 | |
LDU_FT/instacart/lore/load_env_directory | LDU_FT | [
"<BEGIN>\n## `foreground`",
"Color the text of the content",
" :param color: pick a constant, any constant\n :type color: int\n :param content: Whatever you want to say...\n :type content: unicode\n :return: ansi string\n :rtype: unicode\n<END>",
"<BEGIN>\n## `rgb`",
"Colors a content usin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_env_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_env_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.
Th... | Adds environment variables defined in :any:`ENV_DIRECTORY` to os.environ.
Each file will be added to os.environ via filename = contents.
Supports bash style comments and variable interpolation. | "Adds environment variables defined in :any:`ENV_DIRECTORY` to os.environ.\n Each file will be added to os.environ via filename = contents.\n Supports bash style comments and variable interpolation." | 69 | false | instacart/lore | load_env_directory | 13,445 | |
LDU_FT/SuperCowPowers/bat/expected_counts | 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 expected_counts API.
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 expected_counts API.
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... | Expected counts of the multivariate frequency distribution of the variables given the
null hypothesis of complete independence between variables.
Args:
rownames: the column name or list of columns names that make the keys of the rows
colnames: the column name or list of columns names... | "Expected counts of the multivariate frequency distribution of the variables given the\n null hypothesis of complete independence between variables.\n Args:\n rownames: the column name or list of columns names that make the keys of the rows\n colnames: the column name or list of columns ... | 79 | false | SuperCowPowers/bat | expected_counts | 13,446 | |
LDU_FT/Datary/scrapbag/pdf_to_dict | LDU_FT | [
"<BEGIN>\n## `parse_spss_headerfile`",
"Parse spss header file",
" Arguments:\n path {str} -- path al fichero de cabecera.\n leyend_position -- posicion del la leyenda en el header.\n<END>",
"<BEGIN>\n## `parse_spss_datafile`",
"Parse spss data file",
" Arguments:\n path {str} -... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pdf_to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pdf_to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Main method to parse a pdf file to a dict. | "Main method to parse a pdf file to a dict." | 119 | false | Datary/scrapbag | pdf_to_dict | 13,447 | |
LDU_FT/kevinsprong23/aperture/increment | LDU_FT | [
"<BEGIN>\n## `set_plot_params`",
"set plot parameters for session, as an alternative to\n manipulating RC file\n<END>",
"<BEGIN>\n## `calc_2d_hist`",
"given two vectors x and y, calculate a 2-d histogram matrix\n x = data list\n y = data list\n step = either a scalar dx/dy, or a tuple (dx,dy)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the increment API.
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 increment API.
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... | increment dict d at key by amount val
no need to return since d is mutable | "increment dict d at key by amount val\n no need to return since d is mutable" | 15 | false | kevinsprong23/aperture | increment | 13,448 | |
LDU_FT/rfosterslo/wagtailplus/delete | LDU_FT | [
"<BEGIN>\n## `add_panel_to_edit_handler`",
"Adds specified panel class to model class.",
" :param model: the model class.\n :param panel_cls: the panel class.\n :param heading: the panel heading.\n :param index: the index position to insert at.\n<END>",
"<BEGIN>\n## `get_context_data`",
"Returns... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Processes deletion of the specified instance.
:param request: the request instance.
:rtype: django.http.HttpResponse. | "Processes deletion of the specified instance.\n\n :param request: the request instance.\n :rtype: django.http.HttpResponse." | 128 | false | rfosterslo/wagtailplus | delete | 13,449 | |
LDU_FT/box/genty/_add_kwarg_datasets | LDU_FT | [
"<BEGIN>\n## `genty_repeat`",
"To use in conjunction with a TestClass wrapped with @genty.",
" Runs the wrapped test 'count' times:\n @genty_repeat(count)\n def test_some_function(self)\n ...",
" Can also wrap a test already decorated with @genty_dataset\n @genty_repeat(3... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_kwarg_datasets 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 _add_kwarg_datasets 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... | Add data sets of the given kwargs.
:param datasets:
The dict where to accumulate data sets.
:type datasets:
`dict`
:param kwargs:
Dict of pre-named data sets.
:type kwargs:
`dict` of `unicode` to varies | "Add data sets of the given kwargs.\n\n :param datasets:\n The dict where to accumulate data sets.\n :type datasets:\n `dict`\n :param kwargs:\n Dict of pre-named data sets.\n :type kwargs:\n `dict` of `unicode` to varies" | 69 | false | box/genty | _add_kwarg_datasets | 13,450 | |
LDU_FT/ahmontero/dop/add_ssh_key | LDU_FT | [
"<BEGIN>\n## `droplets`",
"This method returns the list of droplets\n<END>",
"<BEGIN>\n## `reboot_droplet`",
"This method allows you to reboot a droplet. This is the preferred method\n to use if a server is not responding.\n<END>",
"<BEGIN>\n## `power_cycle_droplet`",
"This method allows you to pow... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_ssh_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_ssh_key API.
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... | This method allows you to add a new public SSH key to your account.
Required parameters
name:
String, the name you want to give this SSH key.
ssh_pub_key:
String, the actual public SSH key. | "This method allows you to add a new public SSH key to your account.\n\n Required parameters\n\n name:\n String, the name you want to give this SSH key.\n\n ssh_pub_key:\n String, the actual public SSH key." | 102 | false | ahmontero/dop | add_ssh_key | 13,451 | |
LDU_FT/CygnusNetworks/pypureomapi/add | LDU_FT | [
"<BEGIN>\n## `parse_chain`",
"Creates a new parser that executes the passed parsers (args) with the\n\tprevious results and yields a tuple of the results.",
"\t>>> list(parse_chain(lambda: (None, 1), lambda one: (None, 2)))\n\t[None, None, (1, 2)]",
"\t@param args: parsers\n\t@returns: parser\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | >>> ob = OutBuffer().add(OutBuffer.sizelimit * b"x")
>>> ob.add(b"y") # doctest: +ELLIPSIS
Traceback (most recent call last):
...
OmapiSizeLimitError: ...
@type data: bytes
@returns: self
@raises OmapiSizeLimitError: | ">>> ob = OutBuffer().add(OutBuffer.sizelimit * b\"x\")\n\t\t>>> ob.add(b\"y\") # doctest: +ELLIPSIS\n\t\tTraceback (most recent call last):\n\t\t...\n\t\tOmapiSizeLimitError: ...\n\n\t\t@type data: bytes\n\t\t@returns: self\n\t\t@raises OmapiSizeLimitError:" | 114 | false | CygnusNetworks/pypureomapi | add | 13,452 | |
LDU_FT/softlayer/softlayer-python/_get_id_from_name | LDU_FT | [
"<BEGIN>\n## `cli`",
"List package items used for ordering.",
" The item keyNames listed can be used with `slcli order place` to specify\n the items that are being ordered in the package.",
" .. Note::\n Items with a numbered category, like disk0 or gpu0, can be included\n multiple time... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_id_from_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_id_from_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... | List placement group ids which match the given name. | "List placement group ids which match the given name." | 1,375 | true | softlayer/softlayer-python | _get_id_from_name | 13,453 | |
LDU_FT/jasonkeene/python-ubersmith/process_request | LDU_FT | [
"<BEGIN>\n## `init`",
"Initialize ubersmith API module with HTTP request handler.\n<END>",
"<BEGIN>\n## `process_request`",
"Process request over HTTP to ubersmith instance.",
" method: Ubersmith API method string\n data: dict of method arguments\n<END>",
"<BEGIN>\n## `append_qs`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Processing the call and set response_data. | "Processing the call and set response_data." | 25 | false | jasonkeene/python-ubersmith | process_request | 13,454 | |
LDU_FT/nvbn/thefuck/init | LDU_FT | [
"<BEGIN>\n## `get_loaded_rules`",
"Yields all available rules.",
" :type rules_paths: [Path]\n :rtype: Iterable[Rule]\n<END>",
"<BEGIN>\n## `get_rules_import_paths`",
"Yields all rules import paths.",
" :rtype: Iterable[Path]\n<END>",
"<BEGIN>\n## `get_rules`",
"Returns all enabled rules.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init API.
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 init API.
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... | Fills `settings` with values from `settings.py` and env. | "Fills `settings` with values from `settings.py` and env." | 132 | false | nvbn/thefuck | init | 13,455 | |
LDU_FT/RedFantom/ttkwidgets/_enter_handler | LDU_FT | [
"<BEGIN>\n## `_grid_widgets`",
"Puts the two whole widgets in the correct position depending on compound.\n<END>",
"<BEGIN>\n## `_on_click`",
"Function bound to event of selection in the Combobox, calls callback if callable",
" :param event: Tkinter event\n<END>",
"<BEGIN>\n## `left_press`",
"Cal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _enter_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _enter_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Callback for :obj:`<Enter>` event on marker, to set hover options | "Callback for :obj:`<Enter>` event on marker, to set hover options" | 429 | false | RedFantom/ttkwidgets | _enter_handler | 13,456 | |
LDU_FT/yeasy/hyperledger-py/peer_list | LDU_FT | [
"<BEGIN>\n## `_raise_for_status`",
"Raises stored :class:`APIError`, if one occurred.\n<END>",
"<BEGIN>\n## `block_get`",
"GET /chain/blocks/{Block}",
" Use the Block API to retrieve the contents of various blocks from the\n blockchain. The returned Block message structure is defined inside\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the peer_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the peer_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | GET /network/peers
Use the Network APIs to retrieve information about the network of peer
nodes comprising the blockchain network.
```golang
message PeersMessage {
repeated PeerEndpoint peers = 1;
}
message PeerEndpoint {
PeerID ID = 1;
... | "GET /network/peers\n\n Use the Network APIs to retrieve information about the network of peer\n nodes comprising the blockchain network.\n\n\n ```golang\n message PeersMessage {\n repeated PeerEndpoint peers = 1;\n }\n message PeerEndpoint {\n PeerID ID =... | 51 | false | yeasy/hyperledger-py | peer_list | 13,457 | |
LDU_FT/release-engineering/productmd/identify_image | LDU_FT | [
"<BEGIN>\n## `parse_nvra`",
"Parse RPM N-E:V-R.A string to a dict.",
" :param nvra: N-E:V-R.A string. This can be a file name or a file path including the '.rpm' suffix.\n :type nvra: str\n :rtype: dict, with \"name\", \"epoch\", \"version\", \"release\", and \"arch\" elements.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the identify_image API.
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 identify_image API.
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... | Provides a tuple of image's UNIQUE_IMAGE_ATTRIBUTES. Note:
this is not guaranteed to be unique (and will often not be)
for pre-1.1 metadata, as subvariant did not exist. Provided as
a function so consumers can use it on plain image dicts read from
the metadata or PDC. | "Provides a tuple of image's UNIQUE_IMAGE_ATTRIBUTES. Note:\n this is not guaranteed to be unique (and will often not be)\n for pre-1.1 metadata, as subvariant did not exist. Provided as\n a function so consumers can use it on plain image dicts read from\n the metadata or PDC." | 61 | false | release-engineering/productmd | identify_image | 13,458 | |
LDU_FT/rackerlabs/fleece/call_api | LDU_FT | [
"<BEGIN>\n## `build_wsgi_environ_from_event`",
"Create a WSGI environment from the proxy integration event.\n<END>",
"<BEGIN>\n## `wsgi_handler`",
"lambda handler function.\n This function runs the WSGI app with it and collects its response, then\n translates the response back into the format expected b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_api API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_api API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Wire up the incoming Lambda/API Gateway request to an application.
:param dict event:
Dictionary containing the entire request template. This can vary wildly
depending on the template structure and contents.
:param str app_name:
Name of the API application.
:param str app_swagger_pa... | "Wire up the incoming Lambda/API Gateway request to an application.\n\n :param dict event:\n Dictionary containing the entire request template. This can vary wildly\n depending on the template structure and contents.\n :param str app_name:\n Name of the API application.\n :param str app_sw... | 108 | false | rackerlabs/fleece | call_api | 13,459 | |
LDU_FT/aegirhall/console-menu/process_user_input | LDU_FT | [
"<BEGIN>\n## `set_border_style`",
"Set the border style using the specified MenuBorderStyle instance.\n :param border_style: the instance of MenuBorderStyle to use for border style formatting.\n<END>",
"<BEGIN>\n## `set_border_style_type`",
"Set the border style using the specified border style type. T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_user_input 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 process_user_input 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... | This overrides the method in ConsoleMenu to allow for comma-delimited and range inputs.
Examples:
All of the following inputs would have the same result:
* 1,2,3,4
* 1-4
* 1-2,3-4
* 1 - 4
* 1, 2, 3, 4
Raises:
... | "This overrides the method in ConsoleMenu to allow for comma-delimited and range inputs.\n\n Examples:\n All of the following inputs would have the same result:\n * 1,2,3,4\n * 1-4\n * 1-2,3-4\n * 1 - 4\n * 1, 2, 3, 4\n ... | 107 | false | aegirhall/console-menu | process_user_input | 13,460 | |
LDU_FT/cdumay/kser/_onsuccess | LDU_FT | [
"<BEGIN>\n## `check_required_params`",
"Check if all required parameters are set\n<END>",
"<BEGIN>\n## `_onsuccess`",
"To execute on execution success",
" :param kser.result.Result result: Execution result\n :return: Execution result\n :rtype: kser.result.Result\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _onsuccess API.
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 _onsuccess API.
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... | To execute on execution success
:param kser.schemas.Message kmsg: Kafka message
:param kser.result.Result result: Execution result
:return: Execution result
:rtype: kser.result.Result | "To execute on execution success\n\n :param kser.schemas.Message kmsg: Kafka message\n :param kser.result.Result result: Execution result\n :return: Execution result\n :rtype: kser.result.Result" | 94 | false | cdumay/kser | _onsuccess | 13,461 | |
LDU_FT/SylvanasSun/python-common-cache/get | LDU_FT | [
"<BEGIN>\n## `_enable_lock`",
"The decorator for ensuring thread-safe when current cache instance is concurrent status.\n<END>",
"<BEGIN>\n## `_enable_cleanup`",
"Execute cleanup operation when the decorated function completed.\n<END>",
"<BEGIN>\n## `_enable_thread_pool`",
"Use thread pool for executing a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc... | Test:
>>> import time
>>> cache = Cache(expire=2)
>>> cache.put(key='a', value=0)
>>> cache.put(key='b', value=1)
>>> cache.put(key='c',value= 2)
>>> cache.get('a')
0
>>> cache.get('b')
1
>>> cache.get('c')
2
>>> cache.get(... | "Test:\n\n >>> import time\n >>> cache = Cache(expire=2)\n >>> cache.put(key='a', value=0)\n >>> cache.put(key='b', value=1)\n >>> cache.put(key='c',value= 2)\n >>> cache.get('a')\n 0\n >>> cache.get('b')\n 1\n >>> cache.get('c')\n 2\n ... | 71 | false | SylvanasSun/python-common-cache | get | 13,462 | |
LDU_FT/goerz/clusterjob/resource_headers | LDU_FT | [
"<BEGIN>\n## `resource_headers`",
"Given a :class:`~clusterjob.JobScript` instance, return a list of\n lines that encode the resource requirements, to be added at the top of\n the rendered job script\n<END>",
"<BEGIN>\n## `replace_body_vars`",
"Given a multiline string that is the body of the jo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_headers API.
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 resource_headers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Given a :class:`~clusterjob.JobScript` instance, return a list of
lines that encode the resource requirements, to be added at the top of
the rendered job script | "Given a :class:`~clusterjob.JobScript` instance, return a list of\n lines that encode the resource requirements, to be added at the top of\n the rendered job script" | 69 | false | goerz/clusterjob | resource_headers | 13,463 | |
LDU_FT/slarse/pdfebc-core/send_files_preconf | LDU_FT | [
"<BEGIN>\n## `send_with_attachments`",
"Send an email from the user (a gmail) to the receiver.",
" Args:\n subject (str): Subject of the email.\n message (str): A message.\n filepaths (list(str)): Filepaths to files to be attached.\n config (defaultdict): A defaultdict.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_files_preconf 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 send_files_preconf 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... | Send files using the config.ini settings.
Args:
filepaths (list(str)): A list of filepaths. | "Send files using the config.ini settings.\n\n Args:\n filepaths (list(str)): A list of filepaths." | 56 | false | slarse/pdfebc-core | send_files_preconf | 13,464 | |
LDU_FT/PyHDI/Pyverilog/p_expression_power | LDU_FT | [
"<BEGIN>\n## `_create_opt_rule`",
"Given a rule name, creates an optional ply.yacc rule\n for it. The name of the optional rule is\n <rulename>_opt\n<END>",
"<BEGIN>\n## `p_pragma_assign`",
"pragma : LPAREN TIMES ID EQUALS expression TIMES RPAREN\n<END>",
"<BEGIN>\n## `p_moduledef`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_expression_power 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 p_expression_power 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... | expression : expression POWER expression | "expression : expression POWER expression" | 210 | false | PyHDI/Pyverilog | p_expression_power | 13,465 | |
LDU_FT/SoftwareDefinedBuildings/XBOS/event_duration | LDU_FT | [
"<BEGIN>\n## `fillPelicanHole`",
"Fill a hole in a Pelican thermostat's data stream.",
" Arguments:\n site -- The thermostat's Pelican site name\n username -- The Pelican username for the site\n password -- The Pelican password for the site\n tstat_name -- The name of the thermost... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_duration API.
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 event_duration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Takes in an object and returns a dictionary with the missing data events (start and end)
for each column in the inputted object (will map to a uuid)
To Do
-----
Need to make it specific for varying meters and label it for each type,
Either separate functions or make the function... | "Takes in an object and returns a dictionary with the missing data events (start and end)\n for each column in the inputted object (will map to a uuid)\n\n To Do\n -----\n Need to make it specific for varying meters and label it for each type,\n Either separate functions or make the f... | 305 | false | SoftwareDefinedBuildings/XBOS | event_duration | 13,466 | |
LDU_FT/bpannier/simpletr64/_processServiceList | LDU_FT | [
"<BEGIN>\n## `getLinkInfo`",
"Execute GetInfo action to get basic WAN link information's.",
" :param int wanInterfaceId: the id of the WAN device\n :param float timeout: the timeout to wait for the action to be executed\n :return: basic WAN link information's\n :rtype: WanLinkInfo\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _processServiceList 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 _processServiceList 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... | Internal method to iterate in the device definition XML tree through the service list.
:param serviceList: the XML root node of a service list
:type serviceList: xml.etree.ElementTree.Element | "Internal method to iterate in the device definition XML tree through the service list.\n\n :param serviceList: the XML root node of a service list\n :type serviceList: xml.etree.ElementTree.Element" | 196 | false | bpannier/simpletr64 | _processServiceList | 13,467 | |
LDU_FT/pypa/bandersnatch/filter | LDU_FT | [
"<BEGIN>\n## `_determine_unfiltered_package_names`",
"Return a list of package names to be filtered base on the configuration\n file.\n<END>",
"<BEGIN>\n## `check_match`",
"Check if the package name matches against a project that is blacklisted\n in the configuration.",
" Parameters\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Remove files from `releases` that match any pattern. | "Remove files from `releases` that match any pattern." | 70 | false | pypa/bandersnatch | filter | 13,468 | |
LDU_FT/zero-os/0-core/exists | LDU_FT | [
"<BEGIN>\n## `stdout`",
"The job stdout\n :return: string or None\n<END>",
"<BEGIN>\n## `stderr`",
"The job stderr\n :return: string or None\n<END>",
"<BEGIN>\n## `exists`",
"Returns true if the job is still running or zero-os still knows about this job ID",
" After a job is finishe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API.
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 exists API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Returns true if the job is still running or zero-os still knows about this job ID
After a job is finished, a job remains on zero-os for max of 5min where you still can read the job result
after the 5 min is gone, the job result is no more fetchable
:return: bool | "Returns true if the job is still running or zero-os still knows about this job ID\n\n After a job is finished, a job remains on zero-os for max of 5min where you still can read the job result\n after the 5 min is gone, the job result is no more fetchable\n :return: bool" | 236 | false | zero-os/0-core | exists | 13,469 | |
LDU_FT/cmcqueen/cobs-python/decode | LDU_FT | [
"<BEGIN>\n## `encode`",
"Encode a string using Consistent Overhead Byte Stuffing/Reduced (COBS/R).",
" Input is any byte string. Output is also a byte string.",
" Encoding guarantees no zero bytes in the output. The output\n string may be expanded slightly, by a predictable amount.",
" An empty ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Decode a string using Consistent Overhead Byte Stuffing (COBS).
Input should be a byte string that has been COBS encoded. Output
is also a byte string.
A cobs.DecodeError exception will be raised if the encoded data
is invalid. | "Decode a string using Consistent Overhead Byte Stuffing (COBS).\n \n Input should be a byte string that has been COBS encoded. Output\n is also a byte string.\n \n A cobs.DecodeError exception will be raised if the encoded data\n is invalid." | 28 | false | cmcqueen/cobs-python | decode | 13,470 | |
LDU_FT/StanfordBioinformatics/loom/_make_request_to_server | LDU_FT | [
"<BEGIN>\n## `get_by_value`",
"Converts a value into a corresponding data object.\n For files, this looks up a file DataObject by name, uuid, and/or md5.\n For other types, it creates a new DataObject.\n<END>",
"<BEGIN>\n## `_get_file_by_value`",
"Look up a file DataObject by name, uuid, and/or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_request_to_server API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_request_to_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... | Retry sending request until timeout or until receiving a response. | "Retry sending request until timeout or until receiving a response." | 93 | false | StanfordBioinformatics/loom | _make_request_to_server | 13,471 | |
LDU_FT/subdownloader/subdownloader/logging_file_install | LDU_FT | [
"<BEGIN>\n## `do_po`",
"Update all po files with the data in the pot reference file.\n<END>",
"<BEGIN>\n## `configuration_get_default_folder`",
"Return the default folder where user-specific data is stored.\n This depends of the system on which Python is running,\n :return: path to the user-specific con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logging_file_install API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the logging_file_install API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Install logger that will write to file. If this function has already installed a handler, replace it.
:param path: path to the log file, Use None for default file location. | "Install logger that will write to file. If this function has already installed a handler, replace it.\n :param path: path to the log file, Use None for default file location." | 87 | false | subdownloader/subdownloader | logging_file_install | 13,472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.