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/ratt-ru/PyMORESANE/snr_ratio | LDU_FT | [
"<BEGIN>\n## `iuwt_decomposition`",
"This function serves as a handler for the different implementations of the IUWT decomposition. It allows the\n different methods to be used almost interchangeably.",
" INPUTS:\n in1 (no default): Array on which the decomposition is to be perfor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the snr_ratio API.
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 snr_ratio API.
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... | The following function simply calculates the signal to noise ratio between two signals.
INPUTS:
in1 (no default): Array containing values for signal 1.
in2 (no default): Array containing values for signal 2.
OUTPUTS:
out1 The ratio of the signal to noise ... | "The following function simply calculates the signal to noise ratio between two signals.\n\n INPUTS:\n in1 (no default): Array containing values for signal 1.\n in2 (no default): Array containing values for signal 2.\n\n OUTPUTS:\n out1 The ratio of the signal t... | 125 | false | ratt-ru/PyMORESANE | snr_ratio | 17,373 | |
LDU_FT/dls-controls/annotypes/_make_subclasshook | LDU_FT | [
"<BEGIN>\n## `add_metaclass`",
"Class decorator for creating a class with a metaclass.\n<END>",
"<BEGIN>\n## `_gorg`",
"Return the farthest origin of a generic class (internal helper).\n<END>",
"<BEGIN>\n## `_next_in_mro`",
"Helper for Generic.__new__.",
" Returns the class after the last occurrence ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_subclasshook 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 _make_subclasshook 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... | Construct a __subclasshook__ callable that incorporates
the associated __extra__ class in subclass checks performed
against cls. | "Construct a __subclasshook__ callable that incorporates\n the associated __extra__ class in subclass checks performed\n against cls." | 24 | false | dls-controls/annotypes | _make_subclasshook | 17,374 | |
LDU_FT/neighbordog/deviantart/get_deviation_metadata | LDU_FT | [
"<BEGIN>\n## `auth`",
"Authenticates user and retrieves (and refreshes) access token",
" :param code: code provided after redirect (authorization_code only)\n :param refresh_token: the refresh_token to update access_token without authorization\n<END>",
"<BEGIN>\n## `auth_uri`",
"The authorzati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deviation_metadata 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_deviation_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Fetch deviation metadata for a set of deviations
:param deviationid: The deviationid you want to fetch
:param ext_submission: Return extended information - submission information
:param ext_camera: Return extended information - EXIF information (if available)
:param ext_stats: Return ex... | "Fetch deviation metadata for a set of deviations\n\n :param deviationid: The deviationid you want to fetch\n :param ext_submission: Return extended information - submission information\n :param ext_camera: Return extended information - EXIF information (if available)\n :param ext_stats: Ret... | 132 | false | neighbordog/deviantart | get_deviation_metadata | 17,375 | |
LDU_FT/remind101/stacker_blueprints/create_sqs_policy | LDU_FT | [
"<BEGIN>\n## `create_sqs_policy`",
"This method creates the SQS policy needed for an SNS subscription. It\n also takes the ARN of the SQS queue and converts it to the URL needed\n for the subscription, as that takes a URL rather than the ARN.\n<END>",
"<BEGIN>\n## `create_topic`",
"Creates the S... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_sqs_policy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_sqs_policy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | This method creates the SQS policy needed for an SNS subscription. It
also takes the ARN of the SQS queue and converts it to the URL needed
for the subscription, as that takes a URL rather than the ARN. | "This method creates the SQS policy needed for an SNS subscription. It\n also takes the ARN of the SQS queue and converts it to the URL needed\n for the subscription, as that takes a URL rather than the ARN." | 53 | false | remind101/stacker_blueprints | create_sqs_policy | 17,376 | |
LDU_FT/ryanvarley/ExoData/getLimbdarkeningCoeff | LDU_FT | [
"<BEGIN>\n## `load_db_from_url`",
"Loads the database from a gzipped version of the system folder, by default the one located in the oec_gzip repo\n in the OpenExoplanetCatalogue GitHub group.",
" The database is loaded from the url in memory",
" :param url: url to load (must be gzipped version of sy... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getLimbdarkeningCoeff 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 getLimbdarkeningCoeff API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Looks up quadratic limb darkening parameter from the star based on T, logg and metalicity.
:param wavelength: microns
:type wavelength: float
:return: limb darkening coefficients 1 and 2 | "Looks up quadratic limb darkening parameter from the star based on T, logg and metalicity.\n\n :param wavelength: microns\n :type wavelength: float\n\n :return: limb darkening coefficients 1 and 2" | 133 | false | ryanvarley/ExoData | getLimbdarkeningCoeff | 17,377 | |
LDU_FT/sharibarboza/py_zap/sort_func | LDU_FT | [
"<BEGIN>\n## `get_title`",
"Title is either the chart header for a cable ratings page or above\n the opening description for a broadcast ratings page.\n<END>",
"<BEGIN>\n## `get_json`",
"Serialize ratings object as JSON-formatted string\n<END>",
"<BEGIN>\n## `_get_url_params`",
"Returns a list of e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_func API.
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 sort_func API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return the key attribute to determine how data is sorted.
Time will need to be converted to 24 hour time.
In instances when float attributes will have an 'n/a' string, return 0. | "Return the key attribute to determine how data is sorted.\n Time will need to be converted to 24 hour time.\n In instances when float attributes will have an 'n/a' string, return 0." | 59 | false | sharibarboza/py_zap | sort_func | 17,378 | |
LDU_FT/jeremymcrae/denovonear/log_transform | LDU_FT | [
"<BEGIN>\n## `get_cached_data`",
"get cached data for a url if stored in the cache and not outdated",
" Args:\n url: URL for the Ensembl REST service",
" Returns:\n data if data in cache, else None\n<END>",
"<BEGIN>\n## `cache_url_data`",
"cache the data retrieved from ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | log transform a numeric value, unless it is zero, or negative | "log transform a numeric value, unless it is zero, or negative" | 112 | false | jeremymcrae/denovonear | log_transform | 17,379 | |
LDU_FT/conchoecia/gloTK/meraculous_runner | LDU_FT | [
"<BEGIN>\n## `meraculous_runner`",
"Check to make sure that the allAssembliesDir has been created, if not,\n make it. This will only execute for the first time an assembly has been\n run in this directory.",
" Run the directory from allAssembliesDir. The self.callString instance\n at... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the meraculous_runner API.
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 meraculous_runner API.
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 to make sure that the allAssembliesDir has been created, if not,
make it. This will only execute for the first time an assembly has been
run in this directory.
Run the directory from allAssembliesDir. The self.callString instance
attribute tells Meraculous to name the assembly dir... | "Check to make sure that the allAssembliesDir has been created, if not,\n make it. This will only execute for the first time an assembly has been\n run in this directory.\n\n Run the directory from allAssembliesDir. The self.callString instance\n attribute tells Meraculous to name the assemb... | 73 | false | conchoecia/gloTK | meraculous_runner | 17,380 | |
LDU_FT/salesking/salesking_python_sdk/dict_to_instance | LDU_FT | [
"<BEGIN>\n## `get_model_class`",
"Generates the Model Class based on the klass \n loads automatically the corresponding json schema file form schemes folder\n :param klass: json schema filename\n :param use_request_api: if True autoinitializes request class if api is None\n :param api: the transportat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_to_instance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_to_instance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | transforms the content to a new instace of
object self.schema['title']
:param content: valid response
:returns new instance of current class | "transforms the content to a new instace of\n object self.schema['title']\n :param content: valid response\n :returns new instance of current class" | 69 | false | salesking/salesking_python_sdk | dict_to_instance | 17,381 | |
LDU_FT/linuxsoftware/ls.joyous/_getEventsOnDay | LDU_FT | [
"<BEGIN>\n## `getLocalTime`",
"Get the time in the local timezone from date and time\n<END>",
"<BEGIN>\n## `getLocalDateAndTime`",
"Get the date and time in the local timezone from date and optionally time\n<END>",
"<BEGIN>\n## `getLocalDatetime`",
"Get a datetime in the local timezone from date and optio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getEventsOnDay API.
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 _getEventsOnDay API.
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 all the events in this site for a given day. | "Return all the events in this site for a given day." | 192 | false | linuxsoftware/ls.joyous | _getEventsOnDay | 17,382 | |
LDU_FT/AustralianSynchrotron/lightflow/ext | LDU_FT | [
"<BEGIN>\n## `is_connected`",
"Returns the connection status of the data store.",
" Returns:\n bool: ``True`` if the data store is connected to the MongoDB server.\n<END>",
"<BEGIN>\n## `connect`",
"Establishes a connection to the MongoDB server.",
" Use the MongoProxy library in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ext API.
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 ext API.
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... | Run an extension by its name.
\b
EXT_NAME: The name of the extension.
EXT_ARGS: Arguments that are passed to the extension. | "Run an extension by its name.\n\n \\b\n EXT_NAME: The name of the extension.\n EXT_ARGS: Arguments that are passed to the extension." | 404 | false | AustralianSynchrotron/lightflow | ext | 17,383 | |
LDU_FT/Robpol86/sphinxcontrib-versioning/semvers | LDU_FT | [
"<BEGIN>\n## `setup_logging`",
"Configure console logging. Info and below go to stdout, others go to stderr.",
" :param int verbose: Verbosity level. > 0 print debug statements. > 1 passed to sphinx-build.\n :param bool colors: Print color text in non-verbose mode.\n :param str name: Which logger name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the semvers API.
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 semvers API.
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... | Parse versions into integers and convert non-integer meta indicators into integers with ord().
Each return list item has an indicator as the first item. 0 for valid versions and 1 for invalid. Can be used to
sort non-version names (e.g. master, feature_branch, etc) after valid versions. No sorting is done in t... | "Parse versions into integers and convert non-integer meta indicators into integers with ord().\n\n Each return list item has an indicator as the first item. 0 for valid versions and 1 for invalid. Can be used to\n sort non-version names (e.g. master, feature_branch, etc) after valid versions. No sorting is done ... | 172 | false | Robpol86/sphinxcontrib-versioning | semvers | 17,384 | |
LDU_FT/pgxcentre/geneparse/index_bgen | LDU_FT | [
"<BEGIN>\n## `get_variant_genotypes`",
"Get the genotypes from a well formed variant instance.",
" Args:\n marker (Variant): A Variant instance.",
" Returns:\n A list of Genotypes instance containing a pointer to the variant as\n well as a vector of encoded genot... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_bgen API.
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 index_bgen API.
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... | Indexes a BGEN file.
Args:
fn (str): The name of the BGEN file. | "Indexes a BGEN file.\n\n Args:\n fn (str): The name of the BGEN file." | 120 | false | pgxcentre/geneparse | index_bgen | 17,385 | |
LDU_FT/kragniz/python-etcd3/_ops_to_requests | LDU_FT | [
"<BEGIN>\n## `new_event`",
"Wrap a raw gRPC event in a friendlier containing class.",
" This picks the appropriate class from one of PutEvent or DeleteEvent and\n returns a new instance.\n<END>",
"<BEGIN>\n## `acquire`",
"Acquire the lock.",
" :params timeout: Maximum time to wait before retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ops_to_requests API.
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 _ops_to_requests API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return a list of grpc requests.
Returns list from an input list of etcd3.transactions.{Put, Get,
Delete, Txn} objects. | "Return a list of grpc requests.\n\n Returns list from an input list of etcd3.transactions.{Put, Get,\n Delete, Txn} objects." | 113 | false | kragniz/python-etcd3 | _ops_to_requests | 17,386 | |
LDU_FT/Nixiware/viper/_checkIfDatabaseIsEmpty | LDU_FT | [
"<BEGIN>\n## `send`",
"Sends an email using the SMTP connection.",
" :param recipient: <tuple> recipient's email address as the first element and their name as an optional second\n element\n :param subject: <str> mail subject\n :param message: <str> mail content (... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _checkIfDatabaseIsEmpty 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 _checkIfDatabaseIsEmpty API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Check if database contains any tables.
:param successHandler: <function(<bool>)> method called if interrogation was successful where the first argument
is a boolean flag specifying if the database is empty or not
:param failHandler: <function(<str>)> method called if int... | "Check if database contains any tables.\n\n :param successHandler: <function(<bool>)> method called if interrogation was successful where the first argument\n is a boolean flag specifying if the database is empty or not\n :param failHandler: <function(<str>)> method called i... | 72 | false | Nixiware/viper | _checkIfDatabaseIsEmpty | 17,387 | |
LDU_FT/rigetti/pyquil/run | LDU_FT | [
"<BEGIN>\n## `to_latex`",
"Translates a given pyquil Program to a TikZ picture in a Latex document.",
" :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run a quil executable. If the executable contains declared parameters, then a memory
map must be provided, which defines the runtime values of these parameters.
:param executable: The program to run. You are responsible for compiling this first.
:param memory_map: The mapping of declared parame... | "Run a quil executable. If the executable contains declared parameters, then a memory\n map must be provided, which defines the runtime values of these parameters.\n\n :param executable: The program to run. You are responsible for compiling this first.\n :param memory_map: The mapping of declared p... | 1,152 | true | rigetti/pyquil | run | 17,388 | |
LDU_FT/ValvePython/vdf/binary_loads | LDU_FT | [
"<BEGIN>\n## `has_duplicates`",
"Returns ``True`` if the dict contains keys with duplicates.\n Recurses through any all keys with value that is ``VDFDict``.\n<END>",
"<BEGIN>\n## `parse`",
"Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a VDF)\n to a Python object.",
" ``mapper... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binary_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binary_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 extr... | Deserialize ``s`` (``bytes`` containing a VDF in "binary form")
to a Python object.
``mapper`` specifies the Python object used after deserializetion. ``dict` is
used by default. Alternatively, ``collections.OrderedDict`` can be used if you
wish to preserve key order. Or any object that acts like a ``d... | "Deserialize ``s`` (``bytes`` containing a VDF in \"binary form\")\n to a Python object.\n\n ``mapper`` specifies the Python object used after deserializetion. ``dict` is\n used by default. Alternatively, ``collections.OrderedDict`` can be used if you\n wish to preserve key order. Or any object that acts li... | 24 | false | ValvePython/vdf | binary_loads | 17,389 | |
LDU_FT/SUNCAT-Center/CatHub/plot_reaction_scheme | LDU_FT | [
"<BEGIN>\n## `molecules2symbols`",
"Take a list of molecules and return just a list of atomic\n symbols, possibly adding hydrogen\n<END>",
"<BEGIN>\n## `construct_reference_system`",
"Take a list of symbols and construct gas phase\n references system, when possible avoiding O2.\n Candidates can be re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_reaction_scheme 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_reaction_scheme API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns a matplotlib object with the plotted reaction path.
Parameters
----------
df : Pandas DataFrame generated by reaction_network
temperature : numeric
temperature in K
pressure : numeric
pressure in mbar
pH : PH in bulk solution
potential : Electric potential vs. SHE in ... | "Returns a matplotlib object with the plotted reaction path.\n\n Parameters\n ----------\n df : Pandas DataFrame generated by reaction_network\n temperature : numeric\n temperature in K\n pressure : numeric\n pressure in mbar\n pH : PH in bulk solution\n potential : Electric potential ... | 178 | false | SUNCAT-Center/CatHub | plot_reaction_scheme | 17,390 | |
LDU_FT/hapylestat/apputils/progress | LDU_FT | [
"<BEGIN>\n## `start`",
":arg max_val Maximum value\n :type max_val int\n<END>",
"<BEGIN>\n## `progress`",
":type value int\n :type new_status str\n<END>",
"<BEGIN>\n## `stop`",
":arg hide_progress Hide progress bar\n :type hide_progress bool\n :type new_status str\n<END>",
"<BEGIN>\n## `dese... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the progress API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the progress API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | :type value int
:type new_status str | ":type value int\n :type new_status str" | 54 | false | hapylestat/apputils | progress | 17,391 | |
LDU_FT/chrismattmann/tika-python/getRemoteFile | LDU_FT | [
"<BEGIN>\n## `from_file`",
"Parses a file for metadata and content\n :param filename: path to file which needs to be parsed\n :param serverEndpoint: Server endpoint url\n :param xmlContent: Whether or not XML content be requested.\n Default is 'False', which results in text content.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getRemoteFile API.
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 getRemoteFile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Fetches URL to local path or just returns absolute path.
:param urlOrPath: resource locator, generally URL or path
:param destPath: path to store the resource, usually a path on file system
:return: tuple having (path, 'local'/'remote') | "Fetches URL to local path or just returns absolute path.\n :param urlOrPath: resource locator, generally URL or path\n :param destPath: path to store the resource, usually a path on file system\n :return: tuple having (path, 'local'/'remote')" | 54 | false | chrismattmann/tika-python | getRemoteFile | 17,392 | |
LDU_FT/sixty-north/cosmic-ray/create_tag_and_push | LDU_FT | [
"<BEGIN>\n## `handle_new_config`",
"usage: cosmic-ray new-config <config-file>",
" Create a new config file.\n<END>",
"<BEGIN>\n## `handle_init`",
"usage: cosmic-ray init <config-file> <session-file>",
" Initialize a mutation testing session from a configuration. This\n primarily creates a sessio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_tag_and_push 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 create_tag_and_push 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... | Create a git tag for `version` and push it to origin. | "Create a git tag for `version` and push it to origin." | 213 | false | sixty-north/cosmic-ray | create_tag_and_push | 17,393 | |
LDU_FT/lsbardel/python-stdnet/pop_back | LDU_FT | [
"<BEGIN>\n## `load_iterable`",
"Load an ``iterable``.",
" By default it returns a generator of data loaded via the\n :meth:`loads` method.",
" :param iterable: an iterable over data to load.\n :param session: Optional :class:`stdnet.odm.Session`.\n :return: an iterable over ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop_back API.
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 pop_back API.
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... | Remove the last element from the :class:`Sequence`. | "Remove the last element from the :class:`Sequence`." | 387 | false | lsbardel/python-stdnet | pop_back | 17,394 | |
LDU_FT/sernst/cauldron/reload_libraries | LDU_FT | [
"<BEGIN>\n## `set_executing`",
"Toggle whether or not the current thread is executing a step file. This\n will only apply when the current thread is a CauldronThread. This function\n has no effect when run on a Main thread.",
" :param on:\n Whether or not the thread should be annotated as execut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload_libraries API.
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 reload_libraries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Reload the libraries stored in the project's local and shared library
directories | "Reload the libraries stored in the project's local and shared library\n directories" | 534 | false | sernst/cauldron | reload_libraries | 17,395 | |
LDU_FT/ska-sa/purr/makeDataProducts | LDU_FT | [
"<BEGIN>\n## `rotate`",
"Rotate a coordinate around point (0,0).\n - x and y specify the coordinate.\n - degree is a number from 0 to 360.\n Returns a new coordinate.\n<END>",
"<BEGIN>\n## `_compute_bounding_box`",
"Given the list of coordinates (x,y), this procedure computes\n the smallest rectan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeDataProducts API.
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 makeDataProducts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | makes a list of DPs from a list of (filename,quiet) pairs.
If unbanish is False, DPs with a default "banish" policy will be skipped.
Symlinks will be resolved, and non-unique filenames removed from list. | "makes a list of DPs from a list of (filename,quiet) pairs.\n If unbanish is False, DPs with a default \"banish\" policy will be skipped.\n Symlinks will be resolved, and non-unique filenames removed from list." | 265 | false | ska-sa/purr | makeDataProducts | 17,396 | |
LDU_FT/kevinpt/hdlparse/parse_vhdl_file | LDU_FT | [
"<BEGIN>\n## `parse_vhdl_file`",
"Parse a named VHDL file",
" Args:\n fname(str): Name of file to parse\n Returns:\n Parsed objects.\n<END>",
"<BEGIN>\n## `parse_vhdl`",
"Parse a text buffer of VHDL code",
" Args:\n text(str): Source code to parse\n Returns:\n Parsed objects.\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_vhdl_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_vhdl_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Parse a named VHDL file
Args:
fname(str): Name of file to parse
Returns:
Parsed objects. | "Parse a named VHDL file\n \n Args:\n fname(str): Name of file to parse\n Returns:\n Parsed objects." | 46 | false | kevinpt/hdlparse | parse_vhdl_file | 17,397 | |
LDU_FT/googlemaps/google-maps-services-python/timezone | LDU_FT | [
"<BEGIN>\n## `directions`",
"Get directions between an origin point and a destination point.",
" :param origin: The address or latitude/longitude value from which you wish\n to calculate directions.\n :type origin: string, dict, list, or tuple",
" :param destination: The address or latitude/lo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timezone API.
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 timezone API.
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 time zone for a location on the earth, as well as that location's
time offset from UTC.
:param location: The latitude/longitude value representing the location to
look up.
:type location: string, dict, list, or tuple
:param timestamp: Timestamp specifies the desired time as seconds since
... | "Get time zone for a location on the earth, as well as that location's\n time offset from UTC.\n\n :param location: The latitude/longitude value representing the location to\n look up.\n :type location: string, dict, list, or tuple\n\n :param timestamp: Timestamp specifies the desired time as seconds... | 262 | false | googlemaps/google-maps-services-python | timezone | 17,398 | |
LDU_FT/project-rig/rig/write | LDU_FT | [
"<BEGIN>\n## `minimise`",
"Remove from the routing table any entries which could be replaced by\n default routing.",
" Parameters\n ----------\n routing_table : [:py:class:`~rig.routing_table.RoutingTableEntry`, ...]\n Routing table from which to remove entries which could be handled by\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
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 write API.
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... | Write data to the memory.
.. note::
Writes beyond the specified memory range will be truncated and a
:py:exc:`.TruncationWarning` is produced. These warnings can be
converted into exceptions using :py:func:`warnings.simplefilter`::
>>> import warnings
... | "Write data to the memory.\n\n .. note::\n Writes beyond the specified memory range will be truncated and a\n :py:exc:`.TruncationWarning` is produced. These warnings can be\n converted into exceptions using :py:func:`warnings.simplefilter`::\n\n >>> import warning... | 983 | false | project-rig/rig | write | 17,399 | |
LDU_FT/opencobra/memote/run_fba | LDU_FT | [
"<BEGIN>\n## `validate`",
"Use a defined schema to validate the medium table format.\n<END>",
"<BEGIN>\n## `apply`",
"Set the defined medium on the given model.\n<END>",
"<BEGIN>\n## `find_transported_elements`",
"Return a dictionary showing the amount of transported elements of a rxn.",
" Collects t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_fba API.
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 run_fba API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return the solution of an FBA to a set objective function.
Parameters
----------
model : cobra.Model
The metabolic model under investigation.
rxn_id : string
A string containing the reaction ID of the desired FBA objective.
direction: string
A string containing either "max" ... | "Return the solution of an FBA to a set objective function.\n\n Parameters\n ----------\n model : cobra.Model\n The metabolic model under investigation.\n rxn_id : string\n A string containing the reaction ID of the desired FBA objective.\n direction: string\n A string containing eit... | 508 | false | opencobra/memote | run_fba | 17,400 | |
LDU_FT/jaraco/jaraco.postgres/_is_running | LDU_FT | [
"<BEGIN>\n## `create`",
"CREATE this DATABASE.",
" @param sql: (Optional) A string of psql (such as might be generated\n by pg_dump); it will be executed by psql(1) after creating the\n database.\n @type sql: str",
" @rtype: None\n<END>",
"<BEGIN>\n## `psql_string`",
"Ev... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_running API.
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 _is_running API.
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 if the server is running according to pg_ctl. | "Return if the server is running according to pg_ctl." | 45 | false | jaraco/jaraco.postgres | _is_running | 17,401 | |
LDU_FT/genialis/django-rest-framework-reactive/observe_id | LDU_FT | [
"<BEGIN>\n## `observe_id`",
"Unique identifier that identifies the observer.\n<END>",
"<BEGIN>\n## `post`",
"Handle a query observer unsubscription request.\n<END>",
"<BEGIN>\n## `notify_observers`",
"Transmit ORM table change notification.",
" :param table: Name of the table that has changed\n :p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the observe_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the observe_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Unique identifier that identifies the observer. | "Unique identifier that identifies the observer." | 44 | false | genialis/django-rest-framework-reactive | observe_id | 17,402 | |
LDU_FT/svenkreiss/databench/_init_zmq | LDU_FT | [
"<BEGIN>\n## `color`",
"triangles.",
" Colors:\n - http://paletton.com/#uid=70l150klllletuehUpNoMgTsdcs shade 2\n<END>",
"<BEGIN>\n## `on`",
"Decorator for action handlers.",
" The action name is inferred from the function name.",
" This also decorates the method with `tornado.gen.coroutine`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_zmq API.
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 _init_zmq API.
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... | Initialize zmq messaging.
Listen on sub_port. This port might at
some point receive the message to start publishing on a certain
port, but until then, no publishing. | "Initialize zmq messaging.\n\n Listen on sub_port. This port might at\n some point receive the message to start publishing on a certain\n port, but until then, no publishing." | 86 | false | svenkreiss/databench | _init_zmq | 17,403 | |
LDU_FT/hydroshare/hs_restclient/updateReferenceURL | LDU_FT | [
"<BEGIN>\n## `custom`",
":param payload:\r\n a key/value object containing the scimeta you want to store\r\n e.g. {\"weather\": \"sunny\", \"temperature\": \"80C\" }\r\n :return:\r\n empty (200 status code)\n<END>",
"<BEGIN>\n## `get`",
":param payload:\r\n a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updateReferenceURL 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 updateReferenceURL 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... | Update a Referenced Content File (.url)
:param pid: The HydroShare ID of the resource for which the file should be updated
:param name: Filename for the referenced file
:param ref_url: url to be updated in the referenced file
... | "Update a Referenced Content File (.url)\n\n :param pid: The HydroShare ID of the resource for which the file should be updated\n :param name: Filename for the referenced file\n :param ref_url: url to be updated in the referenced file\n ... | 95 | false | hydroshare/hs_restclient | updateReferenceURL | 17,404 | |
LDU_FT/WebarchivCZ/WA-KAT/analyzer_api | LDU_FT | [
"<BEGIN>\n## `_convert_metadata`",
"Convert metadata from WA-KAT to Dublin core dictionary like structure,\n which may be easily converted to xml using :mod:`xmltodict` module.",
" Args:\n data (dict): Nested WA-KAT data. See tests for example.",
" Returns:\n dict: Dict in dublin core f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyzer_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyzer_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 extr... | Analyze given `url` and return output as JSON. | "Analyze given `url` and return output as JSON." | 401 | false | WebarchivCZ/WA-KAT | analyzer_api | 17,405 | |
LDU_FT/twisted/epsilon/asStructTime | LDU_FT | [
"<BEGIN>\n## `main`",
"Create a private key and a certificate and write them to a file.\n<END>",
"<BEGIN>\n## `setTimeout`",
"Change the timeout period",
" @type period: C{int} or C{NoneType}\n @param period: The period, in seconds, to change the timeout to, or\n C{None} to disable the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asStructTime API.
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 asStructTime API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return this time represented as a time.struct_time.
tzinfo is a datetime.tzinfo instance coresponding to the desired
timezone of the output. If is is the default None, UTC is assumed. | "Return this time represented as a time.struct_time.\n\n tzinfo is a datetime.tzinfo instance coresponding to the desired\n timezone of the output. If is is the default None, UTC is assumed." | 217 | false | twisted/epsilon | asStructTime | 17,406 | |
LDU_FT/Anaconda-Platform/anaconda-client/_authenticate | LDU_FT | [
"<BEGIN>\n## `norm_package_version`",
"Normalize a version by removing extra spaces and parentheses.\n<END>",
"<BEGIN>\n## `split_spec`",
"Split a spec by separator and return stripped start and end parts.\n<END>",
"<BEGIN>\n## `parse_specification`",
"Parse a requirement from a python distribution metada... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _authenticate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _authenticate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Use basic authentication to create an authentication token using the interface below.
With this technique, a username and password need not be stored permanently, and the user can
revoke access at any time.
:param username: The users name
:param password: The users password
:par... | "Use basic authentication to create an authentication token using the interface below.\n With this technique, a username and password need not be stored permanently, and the user can\n revoke access at any time.\n\n :param username: The users name\n :param password: The users password\n ... | 111 | false | Anaconda-Platform/anaconda-client | _authenticate | 17,407 | |
LDU_FT/contains-io/rcli/_get_section | LDU_FT | [
"<BEGIN>\n## `setup_keyword`",
"Add autodetected commands as entry points.",
" Args:\n dist: The distutils Distribution object for the project being\n installed.\n _: The keyword used in the setup function. Unused.\n value: The value set to the keyword in the setup function. I... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_section API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_section API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Extract the named section from the source.
Args:
name: The name of the section to extract (e.g. "Usage").
source: The usage string to parse.
Returns:
A string containing only the requested section. If the section appears
multiple times, each instance will be merged into a singl... | "Extract the named section from the source.\n\n Args:\n name: The name of the section to extract (e.g. \"Usage\").\n source: The usage string to parse.\n\n Returns:\n A string containing only the requested section. If the section appears\n multiple times, each instance will be merged i... | 147 | false | contains-io/rcli | _get_section | 17,408 | |
LDU_FT/base4sistemas/satcomum/cep | LDU_FT | [
"<BEGIN>\n## `dados_qrcode`",
"Compila os dados que compõem o QRCode do CF-e-SAT, conforme a\n documentação técnica oficial **Guia para Geração do QRCode pelo Aplicativo\n Comercial**, a partir de uma instância de ``ElementTree`` que represente a\n árvore do XML do CF-e-SAT.",
" :param cfe: Instânci... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cep API.
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 cep API.
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... | Valida um número de CEP. O número deverá ser informado como uma string
contendo 8 dígitos numéricos. Se o número informado for inválido será
lançada a exceção :exc:`NumeroCEPError`.
.. warning::
Qualquer string que contenha 8 dígitos será considerada como um CEP
válido, desde que os dígito... | "Valida um número de CEP. O número deverá ser informado como uma string\n contendo 8 dígitos numéricos. Se o número informado for inválido será\n lançada a exceção :exc:`NumeroCEPError`.\n\n .. warning::\n\n Qualquer string que contenha 8 dígitos será considerada como um CEP\n válido, desde que o... | 61 | false | base4sistemas/satcomum | cep | 17,409 | |
LDU_FT/madzak/python-json-logger/merge_record_extra | LDU_FT | [
"<BEGIN>\n## `merge_record_extra`",
"Merges extra attributes from LogRecord object into target dictionary",
" :param record: logging.LogRecord\n :param target: dict to update\n :param reserved: dict or list with reserved keys to skip\n<END>",
"<BEGIN>\n## `_str_to_fn`",
"If the argument is not a st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_record_extra 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 merge_record_extra 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... | Merges extra attributes from LogRecord object into target dictionary
:param record: logging.LogRecord
:param target: dict to update
:param reserved: dict or list with reserved keys to skip | "Merges extra attributes from LogRecord object into target dictionary\n\n :param record: logging.LogRecord\n :param target: dict to update\n :param reserved: dict or list with reserved keys to skip" | 15 | false | madzak/python-json-logger | merge_record_extra | 17,410 | |
LDU_FT/astroML/gatspy/best_period | LDU_FT | [
"<BEGIN>\n## `mode_in_range`",
"Find the mode of values to within a certain range\n<END>",
"<BEGIN>\n## `scores`",
"Compute the scores under the various models",
" Parameters\n ----------\n periods : array_like\n array of periods at which to compute scores",
" Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the best_period API.
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 best_period API.
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... | Lazy evaluation of the best period given the model | "Lazy evaluation of the best period given the model" | 123 | false | astroML/gatspy | best_period | 17,411 | |
LDU_FT/google/neuroglancer/_get_representative | LDU_FT | [
"<BEGIN>\n## `stop`",
"Stop the server, invalidating any viewer URLs.",
" This allows any previously-referenced data arrays to be garbage collected if there are no other\n references to them.\n<END>",
"<BEGIN>\n## `defer_callback`",
"Register `callback` to run in the server event loop thread.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_representative API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_representative 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... | Finds and returns the root of the set containing `obj`. | "Finds and returns the root of the set containing `obj`." | 46 | false | google/neuroglancer | _get_representative | 17,412 | |
LDU_FT/Skype4Py/Skype4Py/SaveAvatarToFile | LDU_FT | [
"<BEGIN>\n## `AsyncSearchUsers`",
"Asynchronously searches for Skype users.",
" :Parameters:\n Target : unicode\n Search target (name or email address).",
" :return: A search identifier. It will be passed along with the results to the\n `SkypeEvents.AsyncSearc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SaveAvatarToFile API.
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 SaveAvatarToFile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Saves user avatar to a file.
:Parameters:
Filename : str
Destination path.
AvatarId : int
Avatar Id. | "Saves user avatar to a file.\n\n :Parameters:\n Filename : str\n Destination path.\n AvatarId : int\n Avatar Id." | 213 | false | Skype4Py/Skype4Py | SaveAvatarToFile | 17,413 | |
LDU_FT/twidi/py-dataql/visit_filter | LDU_FT | [
"<BEGIN>\n## `EntryPoints`",
"Returns an object to use as entry point when calling ``registry.solve_resource``.",
" When calling ``registry.solve_resource`` on a \"root\" resource, we don't have any value.\n This function will create a object to use as a first value and is used to specify which\n entry... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_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 extr... | A filter, with optional arguments.
Arguments
---------
_ (node) : parsimonious.nodes.Node.
children : list
- 0: string, name of the filter.
- 1: list of instances of ``.resources.NamedArg``
Returns
-------
.resources.Filter
An... | "A filter, with optional arguments.\n\n Arguments\n ---------\n _ (node) : parsimonious.nodes.Node.\n children : list\n - 0: string, name of the filter.\n - 1: list of instances of ``.resources.NamedArg``\n\n Returns\n -------\n .resources.Filter\n ... | 210 | false | twidi/py-dataql | visit_filter | 17,414 | |
LDU_FT/SITools2/pySitools2_1.0/getLogger | LDU_FT | [
"<BEGIN>\n## `__parseResponseServer`",
"Parses the response of the server.\n Exception\n ---------\n A Sitools2Exception is raised when the server does not send back a success.\n<END>",
"<BEGIN>\n## `__parseResponseServer`",
"Parses the server response.\n Input\n -----\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getLogger API.
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 getLogger API.
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 logger
Parameters
----------
name : logger name
level : logging.level (par default logging.INFO)
Return
------
Returns the logger | "Returns the logger\n Parameters\n ----------\n name : logger name\n level : logging.level (par default logging.INFO)\n \n Return\n ------\n Returns the logger" | 41 | false | SITools2/pySitools2_1.0 | getLogger | 17,415 | |
LDU_FT/mozilla-services/python-dockerflow/_version_view | LDU_FT | [
"<BEGIN>\n## `get_version`",
"Load and return the contents of version.json.",
" :param root: The root path that the ``version.json`` file will be opened\n :type root: str\n :returns: Content of ``version.json`` or None\n :rtype: dict or None\n<END>",
"<BEGIN>\n## `version`",
"Returns the content... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _version_view API.
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 _version_view API.
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... | View that returns the contents of version.json or a 404. | "View that returns the contents of version.json or a 404." | 59 | false | mozilla-services/python-dockerflow | _version_view | 17,416 | |
LDU_FT/dddomodossola/remi/do_gui_update | LDU_FT | [
"<BEGIN>\n## `add_coord`",
"Adds a coord to the polyline and creates another circle\n<END>",
"<BEGIN>\n## `set_stroke`",
"Sets the stroke properties.\r",
" Args:\r\n width (int): stroke width\r\n color (str): stroke color\n<END>",
"<BEGIN>\n## `add_arrow_coord`",
"Determine ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_gui_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_gui_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 ext... | This method gets called also by Timer, a new thread, and so needs to lock the update | "This method gets called also by Timer, a new thread, and so needs to lock the update" | 195 | false | dddomodossola/remi | do_gui_update | 17,417 | |
LDU_FT/Phyks/libbmc/to_url | LDU_FT | [
"<BEGIN>\n## `is_valid`",
"Check that a given HAL id is a valid one.",
" :param hal_id: The HAL id to be checked.\n :returns: Boolean indicating whether the HAL id is valid or not.",
" >>> is_valid(\"hal-01258754, version 1\")\n True",
" >>> is_valid(\"hal-01258754\")\n True",
" >>> i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Convert a list of canonical DOIs to a list of DOIs URLs.
:param dois: List of canonical DOIs. Can also be a single canonical DOI.
:returns: A list of DOIs URLs (resp. a single value).
>>> to_url(['10.1209/0295-5075/111/40005'])
['http://dx.doi.org/10.1209/0295-5075/111/40005']
>>> to_url('10.1209... | "Convert a list of canonical DOIs to a list of DOIs URLs.\n\n :param dois: List of canonical DOIs. Can also be a single canonical DOI.\n :returns: A list of DOIs URLs (resp. a single value).\n\n >>> to_url(['10.1209/0295-5075/111/40005'])\n ['http://dx.doi.org/10.1209/0295-5075/111/40005']\n\n >>> to_url... | 271 | false | Phyks/libbmc | to_url | 17,418 | |
LDU_FT/ShadowBlip/Neteria/register | LDU_FT | [
"<BEGIN>\n## `listen`",
"Starts the client listener to listen for server responses.",
" Args:\n None",
" Returns:\n None\n<END>",
"<BEGIN>\n## `retransmit`",
"Processes messages that have been delivered from the transport\n protocol.",
" Args:\n dat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API.
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 register API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | This function will send a register packet to the discovered Neteria
server.
Args:
address (tuple): A tuple of the (address, port) to send the register
request to.
retry (boolean): Whether or not we want to reset the current number
of registration retries to 0... | "This function will send a register packet to the discovered Neteria\n server.\n\n Args:\n address (tuple): A tuple of the (address, port) to send the register\n request to.\n retry (boolean): Whether or not we want to reset the current number\n of registration retr... | 122 | false | ShadowBlip/Neteria | register | 17,419 | |
LDU_FT/Peter-Slump/django-dynamic-fixtures/resolve_node | LDU_FT | [
"<BEGIN>\n## `progress_callback`",
"Callback to report progress",
" :param str action:\n :param list node: app, module\n :param int | None elapsed_time:\n<END>",
"<BEGIN>\n## `init_graph`",
"Initialize graph\n Load all nodes and set dependencies.",
" To avoid errors abou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_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 extr... | Resolve a single node or all when node is omitted. | "Resolve a single node or all when node is omitted." | 22 | false | Peter-Slump/django-dynamic-fixtures | resolve_node | 17,420 | |
LDU_FT/taskcluster/taskcluster-lib-urls/api_reference | LDU_FT | [
"<BEGIN>\n## `api`",
"Generate URL for path in a Taskcluster service.\n<END>",
"<BEGIN>\n## `api_reference`",
"Generate URL for a Taskcluster api reference.\n<END>",
"<BEGIN>\n## `docs`",
"Generate URL for path in the Taskcluster docs.\n<END>",
"<BEGIN>\n## `exchange_reference`",
"Generate URL for a T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the api_reference API.
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 api_reference API.
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... | Generate URL for a Taskcluster api reference. | "Generate URL for a Taskcluster api reference." | 12 | false | taskcluster/taskcluster-lib-urls | api_reference | 17,421 | |
LDU_FT/eyurtsev/FlowCytometryTools/get_measurement_metadata | LDU_FT | [
"<BEGIN>\n## `get_tag_value`",
"Extracts the value of a tag from a string.",
" Parameters\n -----------------",
" pre : str\n regular expression to match before the the tag value",
" post : str | list | tuple\n regular expression to match after the the tag value",
" if lis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_measurement_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_measurement_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Get the metadata fields of specified measurements (all if None given).
Parameters
----------
fields : str | iterable of str
Names of metadata fields to be returned.
ids : hashable| iterable of hashables | None
Keys of measurements for which metadata will be retur... | "Get the metadata fields of specified measurements (all if None given).\n\n Parameters\n ----------\n fields : str | iterable of str\n Names of metadata fields to be returned.\n ids : hashable| iterable of hashables | None\n Keys of measurements for which metadata will ... | 330 | false | eyurtsev/FlowCytometryTools | get_measurement_metadata | 17,422 | |
LDU_FT/DinoTools/python-overpy/get_ways | LDU_FT | [
"<BEGIN>\n## `_handle_remark_msg`",
"Try to parse the message provided with the remark tag or element.",
" :param str msg: The message\n :raises overpy.exception.OverpassRuntimeError: If message starts with 'runtime error:'\n :raises overpy.exception.OverpassRuntimeRemark: If message starts... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ways API.
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_ways API.
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... | Alias for get_elements() but filter the result by Way
:param way_id: The Id of the way
:type way_id: Integer
:return: List of elements | "Alias for get_elements() but filter the result by Way\n\n :param way_id: The Id of the way\n :type way_id: Integer\n :return: List of elements" | 119 | false | DinoTools/python-overpy | get_ways | 17,423 | |
LDU_FT/ToFuProject/tofu/lStruct | LDU_FT | [
"<BEGIN>\n## `Struct_plot`",
"Plot the projections of a list of Struct subclass instances",
" D. VEZINET, Aug. 2014\n Inputs :\n V A Ves instance\n Nstep An int (the number of points for evaluation of theta by np.linspace)\n axP A plt.Axes instance (if given) on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lStruct API.
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 lStruct API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return the list of Struct that was used for creation
As tofu objects or SavePath+SaveNames (according to strip status) | "Return the list of Struct that was used for creation\n\n As tofu objects or SavePath+SaveNames (according to strip status)" | 424 | false | ToFuProject/tofu | lStruct | 17,424 | |
LDU_FT/sqlboy/fileseq/from_iterable | LDU_FT | [
"<BEGIN>\n## `xfrange`",
"Returns a generator that yields the frames from start to stop, inclusive.\n In other words it adds or subtracts a frame, as necessary, to return the\n stop value as well, if the stepped range would touch that value.",
" Args:\n start (int):\n stop (int):\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_iterable API.
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 from_iterable API.
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... | Build a :class:`FrameSet` from an iterable of frames.
Args:
frames (collections.Iterable): an iterable object containing frames as integers
sort (bool): True to sort frames before creation, default is False
Returns:
:class:`FrameSet`: | "Build a :class:`FrameSet` from an iterable of frames.\n\n Args:\n frames (collections.Iterable): an iterable object containing frames as integers\n sort (bool): True to sort frames before creation, default is False\n\n Returns:\n :class:`FrameSet`:" | 146 | false | sqlboy/fileseq | from_iterable | 17,425 | |
LDU_FT/chaoss/grimoirelab-sortinghat/__parse_identities | LDU_FT | [
"<BEGIN>\n## `run`",
"List, add or delete entries from the blacklist.",
" By default, it prints the list of entries available on\n the blacklist.\n<END>",
"<BEGIN>\n## `add`",
"Add entries to the blacklist.",
" This method adds the given 'entry' to the blacklist.",
" :param e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_identities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_identities 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... | Parse identities using GrimoireLab format.
The GrimoireLab identities format is a YAML document following a
schema similar to the example below. More information available
at https://github.com/bitergia/identities
- profile:
name: Vivek K.
is_bot: false
... | "Parse identities using GrimoireLab format.\n\n The GrimoireLab identities format is a YAML document following a\n schema similar to the example below. More information available\n at https://github.com/bitergia/identities\n\n - profile:\n name: Vivek K.\n is_bot: false... | 700 | false | chaoss/grimoirelab-sortinghat | __parse_identities | 17,426 | |
LDU_FT/django-extensions/django-extensions/run_from_argv | LDU_FT | [
"<BEGIN>\n## `_slug_strip`",
"Clean up a slug by removing slug separator characters that occur at\n the beginning or end of a slug.",
" If an alternate separator is used, it will also replace any instances\n of the default '-' separator with the new separator.\n<END>",
"<BEGIN>\n## `to_py... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_from_argv API.
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 run_from_argv API.
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... | Overriden in order to access the command line arguments. | "Overriden in order to access the command line arguments." | 191 | false | django-extensions/django-extensions | run_from_argv | 17,427 | |
LDU_FT/tchellomello/python-amcrest/ntp_config | LDU_FT | [
"<BEGIN>\n## `record_config`",
"rec_opt is the Record options listed as example below:",
" +----------------------+--------+------------------------------------+\n | ParamName | Value | Description |\n +----------------------+--------+---------------------... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ntp_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 ntp_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... | ntp_opt is the NTP options listed as example below:
NTP.Address=clock.isc.org
NTP.Enable=false
NTP.Port=38
NTP.TimeZone=9
NTP.UpdatePeriod=31
ntp_opt format:
<paramName>=<paramValue>[&<paramName>=<paramValue>...] | "ntp_opt is the NTP options listed as example below:\n\n NTP.Address=clock.isc.org\n NTP.Enable=false\n NTP.Port=38\n NTP.TimeZone=9\n NTP.UpdatePeriod=31\n\n ntp_opt format:\n <paramName>=<paramValue>[&<paramName>=<paramValue>...]" | 105 | false | tchellomello/python-amcrest | ntp_config | 17,428 | |
LDU_FT/janpipek/physt/line | LDU_FT | [
"<BEGIN>\n## `register`",
"Decorator to wrap common plotting functionality.",
" Parameters\n ----------\n dim : Dimensionality of histogram for which it is applicable\n use_3d : If True, the figure will be 3D.\n use_polar : If True, the figure will be in polar coordinates.\n collection : Wheth... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the line API.
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 line API.
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... | Line plot of 1D histogram values.
Points are horizontally placed in bin centers.
Parameters
----------
h1 : physt.histogram1d.Histogram1D
Dimensionality of histogram for which it is applicable | "Line plot of 1D histogram values.\n\n Points are horizontally placed in bin centers.\n\n Parameters\n ----------\n h1 : physt.histogram1d.Histogram1D\n Dimensionality of histogram for which it is applicable" | 460 | false | janpipek/physt | line | 17,429 | |
LDU_FT/buzzfeed/caliendo/patch | LDU_FT | [
"<BEGIN>\n## `increment`",
"Static method used to increment the depth of a context belonging to 'method'",
" :param function method: A method with a context",
" :rtype: caliendo.hooks.Context\n :returns: The context instance for the method.\n<END>",
"<BEGIN>\n## `skip_once`",
"Indicat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Deprecated. Patch should now be imported from caliendo.patch.patch | "Deprecated. Patch should now be imported from caliendo.patch.patch" | 177 | false | buzzfeed/caliendo | patch | 17,430 | |
LDU_FT/WZBSocialScienceCenter/tmtoolkit/token_match | LDU_FT | [
"<BEGIN>\n## `compute_models_parallel`",
"Compute several Topic Models in parallel using the \"lda\" package. Use a single or multiple document term matrices\n `data` and optionally a list of varying parameters `varying_parameters`. Pass parameters in `constant_parameters`\n dict to each model calculation. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the token_match API.
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 token_match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return a NumPy array signaling matches between `pattern` and `tokens`. `pattern` is a string that will be
compared with each element in sequence `tokens` either as exact string equality (`match_type` is 'exact') or
regular expression (`match_type` is 'regex') or glob pattern (`match_type` is 'glob'). | "Return a NumPy array signaling matches between `pattern` and `tokens`. `pattern` is a string that will be\n compared with each element in sequence `tokens` either as exact string equality (`match_type` is 'exact') or\n regular expression (`match_type` is 'regex') or glob pattern (`match_type` is 'glob')." | 135 | false | WZBSocialScienceCenter/tmtoolkit | token_match | 17,431 | |
LDU_FT/JosuaKrause/quick_cache/get_file | LDU_FT | [
"<BEGIN>\n## `get_file`",
"Returns the file path for the given cache object.\n<END>",
"<BEGIN>\n## `remove_all_locks`",
"Removes all locks and ensures their content is written to disk.\n<END>",
"<BEGIN>\n## `get_hnd`",
"Gets a handle for the given cache file with exclusive access.\n The handle i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns the file path for the given cache object. | "Returns the file path for the given cache object." | 14 | false | JosuaKrause/quick_cache | get_file | 17,432 | |
LDU_FT/julienr/meshcut/merge_close_vertices | LDU_FT | [
"<BEGIN>\n## `load_ply`",
"Same as load_ply, but takes a file-like object\n<END>",
"<BEGIN>\n## `orthogonal_vector`",
"Return an arbitrary vector that is orthogonal to v\n<END>",
"<BEGIN>\n## `show_plane`",
"Show the plane with the given origin and normal. scale give its size\n<END>",
"<BEGIN>\n## `slic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_close_vertices 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 merge_close_vertices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Will merge vertices that are closer than close_epsilon.
Warning, this has a O(n^2) memory usage because we compute the full
vert-to-vert distance matrix. If you have a large mesh, might want
to use some kind of spatial search structure like an octree or some fancy
hashing scheme
Returns: new_verts... | "Will merge vertices that are closer than close_epsilon.\n\n Warning, this has a O(n^2) memory usage because we compute the full\n vert-to-vert distance matrix. If you have a large mesh, might want\n to use some kind of spatial search structure like an octree or some fancy\n hashing scheme\n\n Returns: n... | 34 | false | julienr/meshcut | merge_close_vertices | 17,433 | |
LDU_FT/ntucllab/libact/_kl_divergence_disagreement | LDU_FT | [
"<BEGIN>\n## `report_entry_label`",
"Return the best label of the asked entry.",
" Parameters\n ----------\n entry_id : int\n The index of the sample to ask.",
" Returns\n -------\n label: object\n The best label of the given sample.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _kl_divergence_disagreement API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _kl_divergence_disagreement API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Calculate the Kullback-Leibler (KL) divergence disaagreement measure.
Parameters
----------
proba : array-like, shape=(n_samples, n_students, n_class)
Returns
-------
disagreement : list of float, shape=(n_samples)
The kl_divergence of the given probability. | "Calculate the Kullback-Leibler (KL) divergence disaagreement measure.\n\n Parameters\n ----------\n proba : array-like, shape=(n_samples, n_students, n_class)\n\n Returns\n -------\n disagreement : list of float, shape=(n_samples)\n The kl_divergence of the given pr... | 128 | false | ntucllab/libact | _kl_divergence_disagreement | 17,434 | |
LDU_FT/fboender/ansible-cmdb/_init_message | LDU_FT | [
"<BEGIN>\n## `tokenize`",
"Parse a string expression into a set of tokens that can be used as a path\n into a Python datastructure.\n<END>",
"<BEGIN>\n## `jsonxs`",
"Get, set, delete values in a JSON structure. `expr` is a JSONpath-like\n expression pointing to the desired value. `action` determines the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_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 _init_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... | Find a unicode representation of self.error | "Find a unicode representation of self.error" | 271 | false | fboender/ansible-cmdb | _init_message | 17,435 | |
LDU_FT/SatelliteQE/nailgun/read | LDU_FT | [
"<BEGIN>\n## `main`",
"Create an identical user account on a pair of satellites.\n<END>",
"<BEGIN>\n## `get_organization_id`",
"Return the ID of the organization with label ``label``.",
" :param server_config: A dict of information about the server being talked\n to. The dict should include the ke... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Provide a default value for ``entity``.
By default, ``nailgun.entity_mixins.EntityReadMixin.read provides a
default value for ``entity`` like so::
entity = type(self)()
However, :class:`OverrideValue` requires that an
``smart_class_parameter`` or ``smart_varaiable`` be pro... | "Provide a default value for ``entity``.\n\n By default, ``nailgun.entity_mixins.EntityReadMixin.read provides a\n default value for ``entity`` like so::\n\n entity = type(self)()\n\n However, :class:`OverrideValue` requires that an\n ``smart_class_parameter`` or ``smart_varaiable... | 695 | false | SatelliteQE/nailgun | read | 17,436 | |
LDU_FT/fchauvel/MAD/p_query_option_list | LDU_FT | [
"<BEGIN>\n## `_execute`",
"This method is ASSIGNED during the evaluation to control how to resume it once it has been paused\n<END>",
"<BEGIN>\n## `of_think`",
"Simulate the worker processing the task for the specified amount of time.\n The worker is not released and the task is not paused.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_query_option_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_query_option_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.
T... | query_option_list : query_option COMMA query_option_list
| query_option | "query_option_list : query_option COMMA query_option_list\n | query_option" | 34 | false | fchauvel/MAD | p_query_option_list | 17,437 | |
LDU_FT/pylp/pylp/transform | LDU_FT | [
"<BEGIN>\n## `transform`",
"Function called when a file need to be transformed.\n<END>",
"<BEGIN>\n## `_make_color_fn`",
"Create a function that set the foreground color.\n<END>",
"<BEGIN>\n## `just_log`",
"Log a text without adding the current time.\n<END>",
"<BEGIN>\n## `bind_end`",
"Bind a 'TaskEnd... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Function called when a file need to be transformed. | "Function called when a file need to be transformed." | 14 | false | pylp/pylp | transform | 17,438 | |
LDU_FT/ehuggett/send-cli/send_file | LDU_FT | [
"<BEGIN>\n## `api_params`",
"Change the download limit for a file hosted on a Send Server\n<END>",
"<BEGIN>\n## `api_download`",
"Given a Send url, download and return the encrypted data and metadata\n<END>",
"<BEGIN>\n## `sign_nonce`",
"sign the server nonce from the WWW-Authenticate header with an authK... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Encrypt & Upload a file to send and return the download URL | "Encrypt & Upload a file to send and return the download URL" | 22 | false | ehuggett/send-cli | send_file | 17,439 | |
LDU_FT/svven/summary/unicode_to_str | LDU_FT | [
"<BEGIN>\n## `load_raw_rules`",
"Load raw rules from url or package file.\n<END>",
"<BEGIN>\n## `get_image`",
"Returned Image instance has response url.\r\n This might be different than the url param because of redirects.\n<END>",
"<BEGIN>\n## `check_color`",
"Just check if raw_image is completely ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unicode_to_str API.
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 unicode_to_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return the str representation of text in the given encoding. Unlike
.encode(encoding) this function can be applied directly to a str
object without the risk of double-decoding problems (which can happen if
you don't use the default 'ascii' encoding)
This function has been copied from here:
https://... | "Return the str representation of text in the given encoding. Unlike\n .encode(encoding) this function can be applied directly to a str\n object without the risk of double-decoding problems (which can happen if\n you don't use the default 'ascii' encoding)\n\n This function has been copied from here:\n h... | 41 | false | svven/summary | unicode_to_str | 17,440 | |
LDU_FT/michael-lazar/rtv/set_stylesheet | LDU_FT | [
"<BEGIN>\n## `refresh_content`",
"Re-download all subscriptions and reset the page index\n<END>",
"<BEGIN>\n## `select_subreddit`",
"Store the selected subreddit and return to the subreddit page\n<END>",
"<BEGIN>\n## `alias_function`",
"Create a RedditContentObject function mapped to a BaseReddit function... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_stylesheet API.
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 set_stylesheet API.
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... | Set stylesheet for the given subreddit.
:returns: The json response from the server. | "Set stylesheet for the given subreddit.\n\n :returns: The json response from the server." | 919 | false | michael-lazar/rtv | set_stylesheet | 17,441 | |
LDU_FT/bschollnick/semantic_url/return_item_count_on_subpage | LDU_FT | [
"<BEGIN>\n## `norm_page_cnt`",
"Normalize a integer (page).",
" * Ensure that it is greater than Zero, and is not None.\n - If less than 1, or None, set it to 1",
" * if max_number is None, then do not check for max_number\n * if greater than max_number, reset it to be max_number\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_item_count_on_subpage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_item_count_on_subpage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Return the number of items on page.
Args:
* page = The Page to test for
* total_items = the total item count
Returns:
* Integer - Which represents the calculated number of items on page. | "Return the number of items on page.\n\n Args:\n * page = The Page to test for\n * total_items = the total item count\n\n Returns:\n * Integer - Which represents the calculated number of items on page." | 61 | false | bschollnick/semantic_url | return_item_count_on_subpage | 17,442 | |
LDU_FT/ldo/dbussy/session_bus | LDU_FT | [
"<BEGIN>\n## `data_key`",
"returns a unique value that allows data to be used as a dict/set key.\n<END>",
"<BEGIN>\n## `get_version`",
"returns the libdbus library version as a tuple of integers (major, minor, micro).\n<END>",
"<BEGIN>\n## `matches_rule`",
"does Message message match against the specified... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the session_bus API.
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 session_bus API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | returns a Connection object for the current D-Bus session bus. | "returns a Connection object for the current D-Bus session bus." | 74 | false | ldo/dbussy | session_bus | 17,443 | |
LDU_FT/aiidateam/aiida-codtools/inspect_filter_calculation | LDU_FT | [
"<BEGIN>\n## `run_filter_calculation`",
"Run the CifFilterCalculation on the CifData input node.\n<END>",
"<BEGIN>\n## `inspect_filter_calculation`",
"Inspect the result of the CifFilterCalculation, verifying that it produced a CifData output node.\n<END>",
"<BEGIN>\n## `run_select_calculation`",
"Run the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inspect_filter_calculation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inspect_filter_calculation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Inspect the result of the CifFilterCalculation, verifying that it produced a CifData output node. | "Inspect the result of the CifFilterCalculation, verifying that it produced a CifData output node." | 73 | false | aiidateam/aiida-codtools | inspect_filter_calculation | 17,444 | |
LDU_FT/jrief/djangocms-cascade/get_image_tags | LDU_FT | [
"<BEGIN>\n## `_enrich_link`",
"Enrich the dict glossary['link'] with an identifier onto the model\n<END>",
"<BEGIN>\n## `get_form`",
"Extend the form for the given plugin with the form SharableCascadeForm\n<END>",
"<BEGIN>\n## `get_picture_elements`",
"Create a context, used to render a <picture> together... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_image_tags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_image_tags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Create a context returning the tags to render an <img ...> element with
``sizes``, ``srcset``, a fallback ``src`` and if required inline styles. | "Create a context returning the tags to render an <img ...> element with\n ``sizes``, ``srcset``, a fallback ``src`` and if required inline styles." | 78 | false | jrief/djangocms-cascade | get_image_tags | 17,445 | |
LDU_FT/MouseLand/rastermap/fit | LDU_FT | [
"<BEGIN>\n## `fit_transform`",
"Fit X into an embedded space and return that transformed\n output.\n Inputs\n ----------\n X : array, shape (n_samples, n_features). X contains a sample per row.",
" Returns\n -------\n embedding : array, shape (n_samples, n_compon... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Fit X into an embedded space.
Inputs
----------
X : array, shape (n_samples, n_features)
u,s,v : svd decomposition of X (optional)
Assigns
----------
embedding : array-like, shape (n_samples, n_components)
Stores the embedding vectors.
u,sv,v ... | "Fit X into an embedded space.\n Inputs\n ----------\n X : array, shape (n_samples, n_features)\n u,s,v : svd decomposition of X (optional)\n\n Assigns\n ----------\n embedding : array-like, shape (n_samples, n_components)\n Stores the embedding vectors.\n ... | 27 | false | MouseLand/rastermap | fit | 17,446 | |
LDU_FT/Asana/python-asana/fetch_token | LDU_FT | [
"<BEGIN>\n## `fetch_token`",
"Exchange a code (and 'state' token) for a bearer token\n<END>",
"<BEGIN>\n## `find_by_id`",
"Returns the complete tag record for a single tag.",
" Parameters\n ----------\n tag : {Id} The tag to get.\n [params] : {Object} Parameters for the request\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_token API.
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... | Exchange a code (and 'state' token) for a bearer token | "Exchange a code (and 'state' token) for a bearer token" | 318 | false | Asana/python-asana | fetch_token | 17,447 | |
LDU_FT/gebn/wood/compare | LDU_FT | [
"<BEGIN>\n## `_normalise_path`",
"Ensures a path is parsed.",
" :param path: A path string or Path object.\n :return: The path as a Path object.\n<END>",
"<BEGIN>\n## `root`",
"Retrieve a root directory object from a path.",
" :param path: The path string or Path object.\n :return: The created... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare API.
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 compare API.
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... | Compare two paths.
:param left: The left side or "before" entity.
:param right: The right side or "after" entity.
:return: A comparison details what has changed from the left side to the
right side. | "Compare two paths.\n\n :param left: The left side or \"before\" entity.\n :param right: The right side or \"after\" entity.\n :return: A comparison details what has changed from the left side to the\n right side." | 70 | false | gebn/wood | compare | 17,448 | |
LDU_FT/python-xlib/python-xlib/free_resource_id | LDU_FT | [
"<BEGIN>\n## `query_int_attribute`",
"Return the value of an integer attribute\n<END>",
"<BEGIN>\n## `create_resource_object`",
"Create a resource object of type for the integer id. type\n should be one of the following strings:",
" resource\n drawable\n window\n pixmap\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the free_resource_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the free_resource_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | d.free_resource_id(rid)
Free resource id RID. Attempts to free a resource id which
isn't allocated by us are ignored. | "d.free_resource_id(rid)\n\n Free resource id RID. Attempts to free a resource id which\n isn't allocated by us are ignored." | 232 | false | python-xlib/python-xlib | free_resource_id | 17,449 | |
LDU_FT/influxdata/influxdb-python/_get_unicode | LDU_FT | [
"<BEGIN>\n## `_get_unicode`",
"Try to return a text aka unicode object from the given data.\n<END>",
"<BEGIN>\n## `make_lines`",
"Extract points from given dict.",
" Extracts the points from the given dict and returns a Unicode string\n matching the line protocol introduced in InfluxDB 0.9.0.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_unicode API.
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_unicode API.
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... | Try to return a text aka unicode object from the given data. | "Try to return a text aka unicode object from the given data." | 205 | false | influxdata/influxdb-python | _get_unicode | 17,450 | |
LDU_FT/lrq3000/pyFileFixity/gf_mult_noLUT_slow | LDU_FT | [
"<BEGIN>\n## `discard`",
"Remove the first occurrence of *val*.",
" If *val* is not a member, does nothing.\n<END>",
"<BEGIN>\n## `remove`",
"Remove first occurrence of *val*.",
" Raises ValueError if *val* is not present.\n<END>",
"<BEGIN>\n## `_delete`",
"Delete the item at the given (... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gf_mult_noLUT_slow 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 gf_mult_noLUT_slow 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... | Multiplication in Galois Fields without using a precomputed look-up table (and thus it's slower) by using the standard carry-less multiplication + modular reduction using an irreducible prime polynomial. | "Multiplication in Galois Fields without using a precomputed look-up table (and thus it's slower) by using the standard carry-less multiplication + modular reduction using an irreducible prime polynomial." | 1,045 | true | lrq3000/pyFileFixity | gf_mult_noLUT_slow | 17,451 | |
LDU_FT/websocket-client/websocket-client/run_forever | LDU_FT | [
"<BEGIN>\n## `parse_url`",
"parse url and the result is tuple of\n (hostname, port, resource path and the flag of secure mode)",
" url: url string.\n<END>",
"<BEGIN>\n## `get_proxy_info`",
"try to retrieve proxy host and port from environment\n if not provided in options.\n result is (proxy_host... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_forever API.
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 run_forever API.
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... | run event loop for WebSocket framework.
This loop is infinite loop and is alive during websocket is available.
sockopt: values for socket.setsockopt.
sockopt must be tuple
and each element is argument of sock.setsockopt.
sslopt: ssl socket optional dict.
ping_inte... | "run event loop for WebSocket framework.\n This loop is infinite loop and is alive during websocket is available.\n sockopt: values for socket.setsockopt.\n sockopt must be tuple\n and each element is argument of sock.setsockopt.\n sslopt: ssl socket optional dict.\n pi... | 81 | false | websocket-client/websocket-client | run_forever | 17,452 | |
LDU_FT/kstateome/django-cas/get_tgt_for | LDU_FT | [
"<BEGIN>\n## `get_tgt_for`",
"Fetch a ticket granting ticket for a given user.",
" :param user: UserObj",
" :return: TGT or Exepction\n<END>",
"<BEGIN>\n## `delete_old_tickets`",
"Delete tickets if they are over 2 days old\n kwargs = ['raw', 'signal', 'instance', 'sender', 'created']\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tgt_for API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tgt_for API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Fetch a ticket granting ticket for a given user.
:param user: UserObj
:return: TGT or Exepction | "Fetch a ticket granting ticket for a given user.\n\n :param user: UserObj\n\n :return: TGT or Exepction" | 55 | false | kstateome/django-cas | get_tgt_for | 17,453 | |
LDU_FT/r0x0r/pywebview/make_unicode | LDU_FT | [
"<BEGIN>\n## `base_uri`",
"Get absolute path to resource, works for dev and for PyInstaller\n<END>",
"<BEGIN>\n## `parse_file_type`",
":param file_type: file type string 'description (*.file_extension1;*.file_extension2)' as required by file filter in create_file_dialog\n :return: (description, file extens... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_unicode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_unicode API.
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... | Python 2 and 3 compatibility function that converts a string to Unicode. In case of Unicode, the string is returned
unchanged
:param string: input string
:return: Unicode string | "Python 2 and 3 compatibility function that converts a string to Unicode. In case of Unicode, the string is returned\n unchanged\n :param string: input string\n :return: Unicode string" | 33 | false | r0x0r/pywebview | make_unicode | 17,454 | |
LDU_FT/log2timeline/plaso/_GetEarliestYearFromFileEntry | LDU_FT | [
"<BEGIN>\n## `_GetStatus`",
"Retrieves status information.",
" Returns:\n dict[str, object]: status attributes, indexed by name.\n<END>",
"<BEGIN>\n## `_ProcessEvent`",
"Processes an event.",
" Args:\n mediator (AnalysisMediator): mediates interactions between\n analysis plugins a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _GetEarliestYearFromFileEntry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _GetEarliestYearFromFileEntry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Retrieves the year from the file entry date and time values.
This function uses the creation time if available otherwise the change
time (metadata last modification time) is used.
Returns:
int: year of the file entry or None. | "Retrieves the year from the file entry date and time values.\n\n This function uses the creation time if available otherwise the change\n time (metadata last modification time) is used.\n\n Returns:\n int: year of the file entry or None." | 5,157 | true | log2timeline/plaso | _GetEarliestYearFromFileEntry | 17,455 | |
LDU_FT/pyqg/pyqg/spec_var | LDU_FT | [
"<BEGIN>\n## `run_with_snapshots`",
"Run the model forward, yielding to user code at specified intervals.",
" Parameters\n ----------",
" tsnapstart : int\n The timestep at which to begin yielding.\n tstapint : int\n The interval at which to yield.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spec_var API.
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 spec_var API.
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... | Compute variance of ``p`` from Fourier coefficients ``ph``.
Parameters
----------
model : pyqg.Model instance
The model object from which `ph` originates
ph : complex array
The field on which to compute the variance
Returns
-------
var_dens : float
The variance of `... | "Compute variance of ``p`` from Fourier coefficients ``ph``.\n\n Parameters\n ----------\n model : pyqg.Model instance\n The model object from which `ph` originates\n ph : complex array\n The field on which to compute the variance\n\n Returns\n -------\n var_dens : float\n The ... | 56 | false | pyqg/pyqg | spec_var | 17,456 | |
LDU_FT/Murali-group/halp/to_networkx_digraph | LDU_FT | [
"<BEGIN>\n## `_combine_attribute_arguments`",
"Combines attr_dict and attr dictionaries, by updating attr_dict\n with attr.",
" :param attr_dict: dictionary of attributes of the node.\n :param attr: keyword arguments of attributes of the node;\n attr's values will ove... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_networkx_digraph 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 to_networkx_digraph 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... | Returns a NetworkX DiGraph object that is the graph decomposition of
the given hypergraph.
See "to_graph_decomposition()" for more details.
:param H: the hypergraph to decompose into a graph.
:returns: nx.DiGraph -- NetworkX DiGraph object representing the
decomposed hypergraph.
:raises... | "Returns a NetworkX DiGraph object that is the graph decomposition of\n the given hypergraph.\n See \"to_graph_decomposition()\" for more details.\n\n :param H: the hypergraph to decompose into a graph.\n :returns: nx.DiGraph -- NetworkX DiGraph object representing the\n decomposed hypergraph.\n ... | 278 | false | Murali-group/halp | to_networkx_digraph | 17,457 | |
LDU_FT/ngmarchant/oasis/sample | LDU_FT | [
"<BEGIN>\n## `update`",
"Update the posterior and estimates after a label is sampled",
" Parameters\n ----------\n ell : int\n sampled label: 0 or 1",
" k : int\n index of stratum where label was sampled\n<END>",
"<BEGIN>\n## `_sample_item`",
"Sample an it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Sample a sequence of items from the pool
Parameters
----------
n_to_sample : int
number of items to sample | "Sample a sequence of items from the pool\n\n Parameters\n ----------\n n_to_sample : int\n number of items to sample" | 115 | false | ngmarchant/oasis | sample | 17,458 | |
LDU_FT/materialsproject/pymatgen-db/finalize | LDU_FT | [
"<BEGIN>\n## `contains_vasp_input`",
"Checks if a directory contains valid VASP input.",
" Args:\n dir_name:\n Directory name to check.",
" Returns:\n True if directory contains all four VASP input files (INCAR, POSCAR,\n KPOINTS and POTCAR).\n<END>",
"<BEGIN>\n## `get_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finalize API.
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 finalize API.
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... | Update target collection with calculated maximum values. | "Update target collection with calculated maximum values." | 262 | false | materialsproject/pymatgen-db | finalize | 17,459 | |
LDU_FT/helium/helium-python/delete | 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 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 ... | Delete the resource.
Returns:
True if the delete is successful. Will throw an error if
other errors occur | "Delete the resource.\n\n Returns:\n\n True if the delete is successful. Will throw an error if\n other errors occur" | 223 | false | helium/helium-python | delete | 17,460 | |
LDU_FT/Azure/azure-uamqp-python/send_message_async | LDU_FT | [
"<BEGIN>\n## `_close_received`",
"Callback called when a connection CLOSE frame is received.\n This callback will process the received CLOSE error to determine if\n the connection is recoverable or whether it should be shutdown.\n :param error: The error information from the close\n f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message_async 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_message_async 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 a single message or batched message asynchronously.
:param messages: A message to send. This can either be a single instance
of ~uamqp.message.Message, or multiple messages wrapped in an instance
of ~uamqp.message.BatchMessage.
:type message: ~uamqp.message.Message
:param... | "Send a single message or batched message asynchronously.\n\n :param messages: A message to send. This can either be a single instance\n of ~uamqp.message.Message, or multiple messages wrapped in an instance\n of ~uamqp.message.BatchMessage.\n :type message: ~uamqp.message.Message\n ... | 299 | false | Azure/azure-uamqp-python | send_message_async | 17,461 | |
LDU_FT/pasztorpisti/json-cfg/_parse_and_return_unquoted_string | LDU_FT | [
"<BEGIN>\n## `default_number_converter`",
"Converts the string representation of a json number into its python object equivalent, an\n int, long, float or whatever type suits.\n<END>",
"<BEGIN>\n## `load_utf_text_file`",
"Loads the specified text file and tries to decode it using one of the UTF encodings.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_and_return_unquoted_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_and_return_unquoted_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | Parses a string that has no quotation marks so it doesn't
contain any special characters and we don't have to interpret
any escape sequences.
:return: (string, quoted=False, end_of_string_pos) | "Parses a string that has no quotation marks so it doesn't\n contain any special characters and we don't have to interpret\n any escape sequences.\n :return: (string, quoted=False, end_of_string_pos)" | 39 | false | pasztorpisti/json-cfg | _parse_and_return_unquoted_string | 17,462 | |
LDU_FT/LonamiWebs/Telethon/ensure_parent_dir_exists | LDU_FT | [
"<BEGIN>\n## `collect`",
"Create a `self` iterator and collect it into a `TotalList`\n (a normal list with a `.total` attribute).\n<END>",
"<BEGIN>\n## `handler`",
"#full: Advises to read \"Accessing the full API\" in the docs.\n<END>",
"<BEGIN>\n## `handler`",
"#search query: Searches for \"query\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_parent_dir_exists 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 ensure_parent_dir_exists API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Ensures that the parent directory exists | "Ensures that the parent directory exists" | 1,037 | true | LonamiWebs/Telethon | ensure_parent_dir_exists | 17,463 | |
LDU_FT/mattjj/pyhsmm/sample_discrete | LDU_FT | [
"<BEGIN>\n## `sample_discrete`",
"samples from a one-dimensional finite pmf\n<END>",
"<BEGIN>\n## `sample_discrete_from_log`",
"samples log probability array along specified axis\n<END>",
"<BEGIN>\n## `sample_niw`",
"Returns a sample from the normal/inverse-wishart distribution, conjugate\n prior for (... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample_discrete API.
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 sample_discrete API.
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... | samples from a one-dimensional finite pmf | "samples from a one-dimensional finite pmf" | 22 | false | mattjj/pyhsmm | sample_discrete | 17,464 | |
LDU_FT/aguinane/nem-reader/parse_reading | LDU_FT | [
"<BEGIN>\n## `flatten_list`",
"takes a list of lists, l and returns a flat list\n<END>",
"<BEGIN>\n## `read_nem_file`",
"Read in NEM file and return meter readings named tuple",
" :param file_path: The NEM file to process\n :returns: The file that was created\n<END>",
"<BEGIN>\n## `parse_nem_file`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_reading API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_reading API.
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... | Convert reading value to float (if possible) | "Convert reading value to float (if possible)" | 24 | false | aguinane/nem-reader | parse_reading | 17,465 | |
LDU_FT/jkenlooper/chill/_short_circuit | LDU_FT | [
"<BEGIN>\n## `multiple_directory_files_loader`",
"Loads all the files in each directory as values in a dict with the key\n being the relative file path of the directory. Updates the value if\n subsequent file paths are the same.\n<END>",
"<BEGIN>\n## `send_root_file`",
"Function used to send static fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _short_circuit API.
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 _short_circuit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Add the `value` to the `collection` by modifying the collection to be
either a dict or list depending on what is already in the collection and
value.
Returns the collection with the value added to it.
Clean up by removing single item array and single key dict.
['abc'] -> 'abc'
[['abc']] -> 'abc... | "Add the `value` to the `collection` by modifying the collection to be\n either a dict or list depending on what is already in the collection and\n value.\n Returns the collection with the value added to it.\n\n Clean up by removing single item array and single key dict.\n ['abc'] -> 'abc'\n [['abc']]... | 63 | false | jkenlooper/chill | _short_circuit | 17,466 | |
LDU_FT/mikicz/arca/ensure_vm_running | LDU_FT | [
"<BEGIN>\n## `get_or_create_environment`",
"Returns the path to the current Python executable.\n<END>",
"<BEGIN>\n## `validate_configuration`",
"Validates the provided settings.",
" * Checks ``inherit_image`` format.\n * Checks ``use_registry_name`` format.\n * Checks that ``apt_depende... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_vm_running API.
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 ensure_vm_running API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Gets or creates a Vagrantfile in ``vm_location`` and calls ``vagrant up`` if the VM is not running. | "Gets or creates a Vagrantfile in ``vm_location`` and calls ``vagrant up`` if the VM is not running." | 196 | false | mikicz/arca | ensure_vm_running | 17,467 | |
LDU_FT/OpenHydrology/floodestimation/_growth_curve_single_site | LDU_FT | [
"<BEGIN>\n## `valid_flows_array`",
"Return array of valid flows (i.e. excluding rejected years etc)",
" :param catchment: gauged catchment with amax_records set\n :type catchment: :class:`floodestimation.entities.Catchment`\n :return: 1D array of flow values\n :rtype: :class:`numpy.ndarray`\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _growth_curve_single_site API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _growth_curve_single_site API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Return flood growth curve function based on `amax_records` from the subject catchment only.
:return: Inverse cumulative distribution function with one parameter `aep` (annual exceedance probability)
:type: :class:`.GrowthCurve` | "Return flood growth curve function based on `amax_records` from the subject catchment only.\n\n :return: Inverse cumulative distribution function with one parameter `aep` (annual exceedance probability)\n :type: :class:`.GrowthCurve`" | 194 | false | OpenHydrology/floodestimation | _growth_curve_single_site | 17,468 | |
LDU_FT/itamarst/crochet/start_ssh_server | LDU_FT | [
"<BEGIN>\n## `register`",
"Register an EventualResult.",
" May be called in any thread.\n<END>",
"<BEGIN>\n## `stop`",
"Indicate no more results will get pushed into EventualResults, since\n the reactor has stopped.",
" This should be called in the reactor thread.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_ssh_server API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_ssh_server API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Start an SSH server on the given port, exposing a Python prompt with the
given namespace. | "Start an SSH server on the given port, exposing a Python prompt with the\n given namespace." | 61 | false | itamarst/crochet | start_ssh_server | 17,469 | |
LDU_FT/matham/pyflycap2/format_function | LDU_FT | [
"<BEGIN>\n## `strip_comments`",
"Returns the headers with comments removed.\n<END>",
"<BEGIN>\n## `parse_prototype`",
"Returns a :attr:`FunctionSpec` instance from the input.\n<END>",
"<BEGIN>\n## `parse_struct`",
"Returns a :attr:`StructSpec` instance from the input.\n<END>",
"<BEGIN>\n## `parse_enum`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_function API.
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 format_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns a cython function from a :attr:`FunctionSpec` instance. | "Returns a cython function from a :attr:`FunctionSpec` instance." | 18 | false | matham/pyflycap2 | format_function | 17,470 | |
LDU_FT/vimalkvn/riboplot/set_axis_color | LDU_FT | [
"<BEGIN>\n## `lengths_offsets`",
"Split the given comma separated value to multiple integer values.\n<END>",
"<BEGIN>\n## `open_pysam_file`",
"Open a BAM or FASTA file with pysam (for use with \"with\" statement)\n<END>",
"<BEGIN>\n## `is_bam_valid`",
"Check if bam file is valid. Raises a ValueError if py... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_axis_color API.
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 set_axis_color API.
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... | Sets the spine color of all sides of an axis (top, right, bottom, left). | "Sets the spine color of all sides of an axis (top, right, bottom, left)." | 53 | false | vimalkvn/riboplot | set_axis_color | 17,471 | |
LDU_FT/letuananh/chirptext/pop | LDU_FT | [
"<BEGIN>\n## `download`",
"Download a file at $url and save it to $path\n<END>",
"<BEGIN>\n## `parse`",
"Use mecab-python3 by default to parse JP text. Fall back to mecab binary app if needed\n<END>",
"<BEGIN>\n## `flex_update_obj`",
"Pull data from source to target.\n Target's __dict__ (object data) w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API.
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 pop API.
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... | If sent_id exists, remove and return the associated sentence object else return default.
If no default is provided, KeyError will be raised. | "If sent_id exists, remove and return the associated sentence object else return default.\n If no default is provided, KeyError will be raised." | 80 | false | letuananh/chirptext | pop | 17,472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.