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/lipoja/URLExtract/remove_enclosure
LDU_FT
[ "<BEGIN>\n## `_get_default_cache_dir`", "Returns default cache directory (data directory)", " :raises: CacheFileError when default cached file does not is exist\n :return: path to default cache directory\n :rtype: str\n<END>", "<BEGIN>\n## `_get_default_cache_file_path`", "Returns defau...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_enclosure API. 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 remove_enclosure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Remove enclosure pair from set of enclosures. :param str left_char: left character of enclosure pair - e.g. "(" :param str right_char: right character of enclosure pair - e.g. ")"
"Remove enclosure pair from set of enclosures.\n\n :param str left_char: left character of enclosure pair - e.g. \"(\"\n :param str right_char: right character of enclosure pair - e.g. \")\""
71
false
lipoja/URLExtract
remove_enclosure
31,173
LDU_FT/Miserlou/Zappa/schedule
LDU_FT
[ "<BEGIN>\n## `route_sns_task`", "Gets SNS Message, deserialises the message,\n imports the function, calls the function with args\n<END>", "<BEGIN>\n## `run_message`", "Runs a function defined by a message object with keys:\n 'task_path', 'args', and 'kwargs' used by lambda routing\n and a 'command' ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule API. 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 schedule API. 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...
Given a a list of functions and a schedule to execute them, setup up regular execution.
"Given a a list of functions and a schedule to execute them,\n setup up regular execution."
312
false
Miserlou/Zappa
schedule
31,174
LDU_FT/maartenbreddels/ipyvolume/spherical_galaxy_orbit
LDU_FT
[ "<BEGIN>\n## `volshow`", "Deprecated: please use ipyvolume.quickvolshow or use the ipyvolume.pylab interface.\n<END>", "<BEGIN>\n## `quickvolshow`", "Visualize a 3d array using volume rendering.", " :param data: 3d numpy array\n :param lighting: boolean, to use lighting or not, if set to false, lighti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spherical_galaxy_orbit 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 spherical_galaxy_orbit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Create a fake galaxy around the points orbit_x/y/z with N_stars around it.
"Create a fake galaxy around the points orbit_x/y/z with N_stars around it."
141
false
maartenbreddels/ipyvolume
spherical_galaxy_orbit
31,175
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...
Calculate the comparison of two entities. | left | right | Return Type | |===========|===========|=========================| | file | file | FileComparison | | file | directory | FileDirectoryComparison | | file | None | Fil...
"Calculate the comparison of two entities.\n\n | left | right | Return Type |\n |===========|===========|=========================|\n | file | file | FileComparison |\n | file | directory | FileDirectoryComparison |\n | file | None ...
70
false
gebn/wood
compare
31,176
LDU_FT/bapakode/OmMongo/ne_
LDU_FT
[ "<BEGIN>\n## `setdefault`", "if the ``name`` is set, return its value. Otherwse set ``name`` to\n ``value`` and return ``value``\n<END>", "<BEGIN>\n## `ascending`", "Add a descending index for ``name`` to this index.", " :param name: Name to be used in the index\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ne_ API. 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 ne_ API. 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...
Creates a query expression where ``this field != value`` .. note:: The prefered usage is via an operator: ``User.name != value``
"Creates a query expression where ``this field != value``\n\n .. note:: The prefered usage is via an operator: ``User.name != value``"
248
false
bapakode/OmMongo
ne_
31,177
LDU_FT/inveniosoftware/invenio-search/_get_user_hash
LDU_FT
[ "<BEGIN>\n## `index`", "Query Elasticsearch using Invenio query syntax.\n<END>", "<BEGIN>\n## `templates`", "Generate a dictionary with template names and file paths.\n<END>", "<BEGIN>\n## `register_mappings`", "Register mappings from a package under given alias.", " :param alias: The alias.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_user_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_user_hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Calculate a digest based on request's User-Agent and IP address.
"Calculate a digest based on request's User-Agent and IP address."
52
false
inveniosoftware/invenio-search
_get_user_hash
31,178
LDU_FT/BlackEarth/bl/report
LDU_FT
[ "<BEGIN>\n## `random_id`", "Creates a random id with the given length and charset.\r\n ## Parameters\r\n * length the number of characters in the id\r\n * charset what character set to use (a list of characters)\r\n * first_charset what character set for the first character\r\n *...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the report API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
report the total progress for the current stack, optionally given the local fraction completed. fraction=None: if given, used as the fraction of the local method so far completed. runtimes=None: if given, used as the expected runtimes for the current stack.
"report the total progress for the current stack, optionally given the local fraction completed.\n\t\tfraction=None: if given, used as the fraction of the local method so far completed.\n\t\truntimes=None: if given, used as the expected runtimes for the current stack."
54
false
BlackEarth/bl
report
31,179
LDU_FT/developmentseed/landsat-util/process_image
LDU_FT
[ "<BEGIN>\n## `_read_cmap`", "reads the colormap from a text file given in settings.py.\n See colormap_cubehelix.txt. File must contain 256 RGB values\n<END>", "<BEGIN>\n## `data_collector`", "Buffers n bytes of data.", " :param iterable:\n Could be a list, generator or string\n :type ite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Handles constructing and image process. :param path: The path to the image that has to be processed :type path: String :param bands: List of bands that has to be processed. (optional) :type bands: List :param verbose: Sets the level of verbosity. Default is F...
"Handles constructing and image process.\n\n :param path:\n The path to the image that has to be processed\n :type path:\n String\n :param bands:\n List of bands that has to be processed. (optional)\n :type bands:\n List\n :param verbose:\n Sets the level of verbosity. ...
152
false
developmentseed/landsat-util
process_image
31,180
LDU_FT/rsalmaso/django-fluo/ajax_required
LDU_FT
[ "<BEGIN>\n## `dumps`", "Serialize ``obj`` to a JSON formatted ``str``.", " If ``skipkeys`` is false then ``dict`` keys that are not basic types\n (``str``, ``unicode``, ``int``, ``long``, ``float``, ``bool``, ``None``)\n will be skipped instead of raising a ``TypeError``.", " If ``ensure_ascii`` i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ajax_required API. 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 ajax_required API. 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...
AJAX request required decorator use it in your views: @ajax_required def my_view(request): ....
"AJAX request required decorator\n use it in your views:\n\n @ajax_required\n def my_view(request):\n ...."
36
false
rsalmaso/django-fluo
ajax_required
31,181
LDU_FT/openwisp/netdiff/_get_primary_address
LDU_FT
[ "<BEGIN>\n## `parse`", "Converts a NetJSON 'NetworkGraph' object\n to a NetworkX Graph object,which is then returned.\n Additionally checks for protocol version, revision and metric.\n<END>", "<BEGIN>\n## `parse`", "Converts a OpenVPN JSON to a NetworkX Graph object\n which is then return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_primary_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_primary_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Uses the _get_aggregated_node_list structure to find the primary mac address associated to a secondary one, if none is found returns itself.
"Uses the _get_aggregated_node_list structure to find\n the primary mac address associated to a secondary one,\n if none is found returns itself."
30
false
openwisp/netdiff
_get_primary_address
31,182
LDU_FT/zabertech/python-swampyer/send_message
LDU_FT
[ "<BEGIN>\n## `connect`", "This just creates the websocket connection\n<END>", "<BEGIN>\n## `hello`", "Say hello to the server and wait for the welcome\n message before proceeding\n<END>", "<BEGIN>\n## `send_message`", "Send awamp message to the server. We don't wait\n for a response ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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 extr...
Send awamp message to the server. We don't wait for a response here. Just fire out a message
"Send awamp message to the server. We don't wait\n for a response here. Just fire out a message"
24
false
zabertech/python-swampyer
send_message
31,183
LDU_FT/zeroSteiner/AdvancedHTTPServer/cache_call_refresh
LDU_FT
[ "<BEGIN>\n## `resolve_ssl_protocol_version`", "Look up an SSL protocol version by name. If *version* is not specified, then\n\tthe strongest protocol available will be returned.", "\t:param str version: The name of the version to look up.\n\t:return: A protocol constant from the :py:mod:`ssl` module.\n\t:rtype:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_call_refresh 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 cache_call_refresh 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...
Call a remote method and update the local cache with the result if it already existed. :param str method: The name of the remote procedure to execute. :return: The return value from the remote function.
"Call a remote method and update the local cache with the result\n\t\tif it already existed.\n\n\t\t:param str method: The name of the remote procedure to execute.\n\t\t:return: The return value from the remote function."
102
false
zeroSteiner/AdvancedHTTPServer
cache_call_refresh
31,184
LDU_FT/pyBookshelf/bookshelf/get_ec2_info
LDU_FT
[ "<BEGIN>\n## `apt_install_from_url`", "installs a pkg from a url\n p pkg_name: the name of the package to install\n p url: the full URL for the rpm package\n<END>", "<BEGIN>\n## `apt_add_key`", "trust a new PGP key related to a apt-repository\n<END>", "<BEGIN>\n## `is_package_installed`", "c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ec2_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ec2_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
queries EC2 for details about a particular instance_id
"queries EC2 for details about a particular instance_id"
88
false
pyBookshelf/bookshelf
get_ec2_info
31,185
LDU_FT/bioidiap/bob.bio.spear/probes_used_generate_vector
LDU_FT
[ "<BEGIN>\n## `ensure_dir`", "Creates the directory dirname if it does not already exist,\n taking into account concurrent 'creation' on the grid.\n An exception is thrown if a file (rather than a directory) already\n exists.\n<END>", "<BEGIN>\n## `probes_used_generate_vector`", "Generates boole...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the probes_used_generate_vector 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 probes_used_generate_vector API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Generates boolean matrices indicating which are the probes for each model
"Generates boolean matrices indicating which are the probes for each model"
22
false
bioidiap/bob.bio.spear
probes_used_generate_vector
31,186
LDU_FT/christophercrouzet/nani/_define_structure_view
LDU_FT
[ "<BEGIN>\n## `resolve`", "Retrieve the properties for a given data type.", " This is the main routine where most of the work is done. It converts\n Nani's data types into properties that can be used to define a new NumPy\n array and to wrap it into a view object.", " Use :func:`validate` to check ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _define_structure_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _define_structure_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....
Define a new view object for a `Structure` type.
"Define a new view object for a `Structure` type."
38
false
christophercrouzet/nani
_define_structure_view
31,187
LDU_FT/inonit/drf-haystack/tokenize
LDU_FT
[ "<BEGIN>\n## `download_setuptools`", "Download distribute from a specified location and return its filename", " `version` should be a valid distribute version number that is available\n as an egg for download under the `download_base` URL (which should end\n with a '/'). `to_dir` is the directory where...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API. 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 tokenize API. 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...
Tokenize and yield query parameter values. :param stream: Input value :param separator: Character to use to separate the tokens. :return:
"Tokenize and yield query parameter values.\n\n :param stream: Input value\n :param separator: Character to use to separate the tokens.\n :return:"
77
false
inonit/drf-haystack
tokenize
31,188
LDU_FT/kkroening/ffmpeg-python/_base_resize
LDU_FT
[ "<BEGIN>\n## `get_args`", "Build command-line arguments to be passed to ffmpeg.\n<END>", "<BEGIN>\n## `compile`", "Build command-line for invoking ffmpeg.", " The :meth:`run` function uses this to build the commnad line\n arguments and should work in most cases, but calling this function\n directly...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _base_resize API. 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 _base_resize API. 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...
Helper function that uses TF to resize an image
"Helper function that uses TF to resize an image"
149
false
kkroening/ffmpeg-python
_base_resize
31,189
LDU_FT/Robin8Put/pmes/insert
LDU_FT
[ "<BEGIN>\n## `create_table`", "RPC method for creating table with custom name and fields\n :return event id\n<END>", "<BEGIN>\n## `insert`", "RPC method for inserting data to the table\n :return: None\n<END>", "<BEGIN>\n## `select`", "RPC method for selecting data from the database\n :return sele...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
RPC method for inserting data to the table :return: None
"RPC method for inserting data to the table\n :return: None"
170
false
Robin8Put/pmes
insert
31,190
LDU_FT/adamziel/python_translate/get_catalogue
LDU_FT
[ "<BEGIN>\n## `load_messages`", "Loads translation found in a directory.", " @type directory: string\n @param directory: The directory to search", " @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump", " @raises: ValueError\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_catalogue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_catalogue API. 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...
Reloads messages catalogue if requested after more than one second since last reload
"Reloads messages catalogue if requested after more than one second\n since last reload"
136
false
adamziel/python_translate
get_catalogue
31,191
LDU_FT/barrust/mediawiki/section
LDU_FT
[ "<BEGIN>\n## `timeout`", "Set request timeout in seconds (or fractions of a second)\n<END>", "<BEGIN>\n## `language`", "Set the language to use; attempts to change the API URL\n<END>", "<BEGIN>\n## `login`", "Login as specified user", " Args:\n username (str): The username to l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the section API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the section API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Plain text section content Args: section_title (str): Name of the section to pull Returns: str: The content of the section Note: Returns **None** if section title is not found; only text \ between title and next section...
"Plain text section content\n\n Args:\n section_title (str): Name of the section to pull\n Returns:\n str: The content of the section\n Note:\n Returns **None** if section title is not found; only text \\\n between title and ne...
107
false
barrust/mediawiki
section
31,192
LDU_FT/adsabs/adsutils/__parse_results
LDU_FT
[ "<BEGIN>\n## `__parse_results`", "The resolve server responds with some basic HTML formatting, where the actual\n results are listed as an HTML list. The regular expression RE_RESULT captures\n each entry\n<END>", "<BEGIN>\n## `get_pub_abbreviation`", "Get ADS journal abbreviation (\"bibstem\") ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
The resolve server responds with some basic HTML formatting, where the actual results are listed as an HTML list. The regular expression RE_RESULT captures each entry
"The resolve server responds with some basic HTML formatting, where the actual\n results are listed as an HTML list. The regular expression RE_RESULT captures\n each entry"
13
false
adsabs/adsutils
__parse_results
31,193
LDU_FT/dossier/dossier.models/probabilities
LDU_FT
[ "<BEGIN>\n## `run`", "Generate the report to the given output.", " :param output: writable file-like object or file path\n<END>", "<BEGIN>\n## `_generate_report_all`", "Generate report for all subfolders contained by self.folder_id.\n<END>", "<BEGIN>\n## `_generate_report_single`", "Generate repo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the probabilities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the probabilities API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Trains a model and predicts recommendations. If the query feature collection could not be found or if there is insufficient training data, an empty list is returned. Otherwise, a list of content objects (tuples of content id and feature collection) and probabilities is returned. ...
"Trains a model and predicts recommendations.\n\n If the query feature collection could not be found or if there\n is insufficient training data, an empty list is returned.\n\n Otherwise, a list of content objects (tuples of content\n id and feature collection) and probabilities is returned....
217
false
dossier/dossier.models
probabilities
31,194
LDU_FT/Kozea/cairocffi/set_line_cap
LDU_FT
[ "<BEGIN>\n## `set_size`", "Informs cairo of the new size of the X Drawable underlying the surface.\n For a surface created for a Window (rather than a Pixmap), this\n function must be called each time the size of the window changes (for\n a subwindow, you are normally resizing the window your...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_line_cap API. 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 set_line_cap API. 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...
Set the current :ref:`LINE_CAP` within the cairo context. As with the other stroke parameters, the current line cap style is examined by :meth:`stroke`, :meth:`stroke_extents`, and :meth:`stroke_to_path`, but does not have any effect during path construction. The default line ca...
"Set the current :ref:`LINE_CAP` within the cairo context.\n As with the other stroke parameters,\n the current line cap style is examined by\n :meth:`stroke`, :meth:`stroke_extents`, and :meth:`stroke_to_path`,\n but does not have any effect during path construction.\n\n The default ...
669
false
Kozea/cairocffi
set_line_cap
31,195
LDU_FT/awslabs/aws-serverlessrepo-python/get_app_metadata
LDU_FT
[ "<BEGIN>\n## `validate`", "Check if the formats of principals and actions are valid.", " :return: True, if the policy is valid\n :raises: InvalidApplicationPolicyError\n<END>", "<BEGIN>\n## `publish_application`", "Create a new application or new application version in SAR.", " :param tem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app_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. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_app_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. The ...
Get the application metadata from a SAM template. :param template_dict: SAM template as a dictionary :type template_dict: dict :return: Application metadata as defined in the template :rtype: ApplicationMetadata :raises ApplicationMetadataNotFoundError
"Get the application metadata from a SAM template.\n\n :param template_dict: SAM template as a dictionary\n :type template_dict: dict\n :return: Application metadata as defined in the template\n :rtype: ApplicationMetadata\n :raises ApplicationMetadataNotFoundError"
51
false
awslabs/aws-serverlessrepo-python
get_app_metadata
31,196
LDU_FT/davidmiller/letter/main
LDU_FT
[ "<BEGIN>\n## `main`", "Do the things!", " Return: 0\n Exceptions:\n<END>", "<BEGIN>\n## `send`", "Send BODY as an @message from FROM to TO", " If we don't have the access tokens for FROM, raise AccountNotFoundError.\n If the tweet resulting from '@{0} {1}'.format(TO, BODY) is > 140 cha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. 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 main API. 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...
Do the things! Return: 0 Exceptions:
"Do the things!\n\n\n Return: 0\n Exceptions:"
74
false
davidmiller/letter
main
31,197
LDU_FT/Adarnof/adarnauth-esi/create_from_request
LDU_FT
[ "<BEGIN>\n## `sso_redirect`", "Generates a :model:`esi.CallbackRedirect` for the specified request.\n Redirects to EVE for login.\n Accepts a view or URL name as a redirect after SSO.\n<END>", "<BEGIN>\n## `receive_callback`", "Parses SSO callback, validates, retrieves :model:`esi.Token`, and internally...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Generate a token from the OAuth callback request. Must contain 'code' in GET. :param request: OAuth callback request. :return: :class:`esi.models.Token`
"Generate a token from the OAuth callback request. Must contain 'code' in GET.\n :param request: OAuth callback request.\n :return: :class:`esi.models.Token`"
45
false
Adarnof/adarnauth-esi
create_from_request
31,198
LDU_FT/zeroSteiner/AdvancedHTTPServer/dumps
LDU_FT
[ "<BEGIN>\n## `resolve_ssl_protocol_version`", "Look up an SSL protocol version by name. If *version* is not specified, then\n\tthe strongest protocol available will be returned.", "\t:param str version: The name of the version to look up.\n\t:return: A protocol constant from the :py:mod:`ssl` module.\n\t:rtype:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API. 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 dumps API. 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...
Serialize a python data type for transmission or storage. :param data: The python object to serialize. :return: The serialized representation of the object. :rtype: bytes
"Serialize a python data type for transmission or storage.\n\n\t\t:param data: The python object to serialize.\n\t\t:return: The serialized representation of the object.\n\t\t:rtype: bytes"
102
false
zeroSteiner/AdvancedHTTPServer
dumps
31,199
LDU_FT/hhromic/python-oslom-runner/store_mapping
LDU_FT
[ "<BEGIN>\n## `run_in_memory`", "Run OSLOM with an in-memory list of edges, return in-memory results.\n<END>", "<BEGIN>\n## `main`", "Main interface function for the command line.\n<END>", "<BEGIN>\n## `get_int_id`", "Get a unique 32 bits signed integer for the given string Id.\n<END>", "<BEGIN>\n## `sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_mapping API. 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 store_mapping API. 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...
Store the current Id mappings into a TSV file.
"Store the current Id mappings into a TSV file."
16
false
hhromic/python-oslom-runner
store_mapping
31,200
LDU_FT/googleapis/protoc-java-resource-names-plugin/render
LDU_FT
[ "<BEGIN>\n## `render`", "Renders a string from a path template using the provided bindings.", " Args:\n bindings (dict): A dictionary of var names to binding strings.", " Returns:\n str: The rendered instantiation of this path template.", " Raises:\n Val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Renders a string from a path template using the provided bindings. Args: bindings (dict): A dictionary of var names to binding strings. Returns: str: The rendered instantiation of this path template. Raises: ValidationError: If a key isn't provided or if a ...
"Renders a string from a path template using the provided bindings.\n\n Args:\n bindings (dict): A dictionary of var names to binding strings.\n\n Returns:\n str: The rendered instantiation of this path template.\n\n Raises:\n ValidationError: If a key isn't provide...
19
false
googleapis/protoc-java-resource-names-plugin
render
31,201
LDU_FT/websauna/pyramid_notebook/include_sqlalchemy_models
LDU_FT
[ "<BEGIN>\n## `handshake_headers`", "List of headers appropriate for the upgrade\n handshake.\n<END>", "<BEGIN>\n## `run`", "Combine async uwsgi message loop with ws4py message loop.", " TODO: This could do some serious optimizations and behave asynchronously correct instead of just sleep().\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the include_sqlalchemy_models 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 include_sqlalchemy_models API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Include all SQLAlchemy models in the script context. :param nc: notebook_context dictionary :param Base: SQLAlchemy model Base class from where the all models inherit.
"Include all SQLAlchemy models in the script context.\n\n :param nc: notebook_context dictionary\n :param Base: SQLAlchemy model Base class from where the all models inherit."
78
false
websauna/pyramid_notebook
include_sqlalchemy_models
31,202
LDU_FT/azraq27/gini/set_action
LDU_FT
[ "<BEGIN>\n## `matches_from_list`", "Returns the members of ``options`` that best matches ``item``. Will prioritize\n exact matches, then filename-style matching, then fuzzy matching. Returns a tuple of item,\n index, match type, and fuzziness (if applicable)", " :item: string to match\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_action API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_action API. 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...
helper function to set the ``action`` attr of any :class:`Concept`s in ``self.vocab`` that match ``concept_name`` to ``action_meth``
"helper function to set the ``action`` attr of any :class:`Concept`s in ``self.vocab`` that match ``concept_name`` to ``action_meth``"
23
false
azraq27/gini
set_action
31,203
LDU_FT/cs50/lib50/files
LDU_FT
[ "<BEGIN>\n## `push`", "Push to github.com/org/repo=username/slug if tool exists.\n Returns username, commit hash\n<END>", "<BEGIN>\n## `local`", "Create/update local copy of github.com/org/repo/branch.\n Returns path to local copy\n<END>", "<BEGIN>\n## `working_area`", "Copy all files to a temporary...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the files API. 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 files API. 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...
Takes a list of lib50._config.TaggedValue returns which files should be included and excluded from `root`. Any pattern tagged with a tag from include_tags will be included from require_tags can only be a file, that will then be included. MissingFilesError is raised if missing from exclude_ta...
"Takes a list of lib50._config.TaggedValue returns which files should be included and excluded from `root`.\n Any pattern tagged with a tag\n from include_tags will be included\n from require_tags can only be a file, that will then be included. MissingFilesError is raised if missing\n from exclu...
38
false
cs50/lib50
files
31,204
LDU_FT/stbraun/fuzzing/step_impl07
LDU_FT
[ "<BEGIN>\n## `step_impl03`", "Check assertions.", " :param context: test context.\n<END>", "<BEGIN>\n## `step_impl`", "Check assertions.", " :param max_modified: maximum expected number of modifications.\n :param context: test context.\n<END>", "<BEGIN>\n## `step_impl06`", "Execute fuzzer.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_impl07 API. 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 step_impl07 API. 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...
Test for singleton property. :param context: test context.
"Test for singleton property.\n\n :param context: test context."
79
false
stbraun/fuzzing
step_impl07
31,205
LDU_FT/phodge/homely/forget
LDU_FT
[ "<BEGIN>\n## `clonetopath`", "Clone the repo at <self.pushablepath> into <dest>\n Note that if self.pushablepath is None, then self.path will be used\n instead.\n<END>", "<BEGIN>\n## `_removecleaner`", "Remove the cleaner from the list if it already exists. Returns True if\n the cleaner w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forget API. 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 forget API. 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 ...
Tells homely to forget about a dotfiles repository that was previously added. You can then run `homely update` to have homely perform automatic cleanup of anything that was installed by that dotfiles repo. REPO This should be the path to a local dotfiles repository that has already been reg...
"Tells homely to forget about a dotfiles repository that was previously\n added. You can then run `homely update` to have homely perform automatic\n cleanup of anything that was installed by that dotfiles repo.\n\n REPO\n This should be the path to a local dotfiles repository that has already\n b...
49
false
phodge/homely
forget
31,206
LDU_FT/GiulioRossetti/dynetx/nodes_iter
LDU_FT
[ "<BEGIN>\n## `node_link_data`", "Return data in node-link format that is suitable for JSON serialization\n and use in Javascript documents.", " Parameters\n ----------\n G : DyNetx graph", " attrs : dict\n A dictionary that contains three keys 'id', 'source' and 'target'.\n The c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nodes_iter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nodes_iter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return an iterator over the nodes with respect to a given temporal snapshot. Parameters ---------- t : snapshot id (default=None). If None the iterator returns all the nodes of the flattened graph. data : boolean, optional (default=False) If False the iterator...
"Return an iterator over the nodes with respect to a given temporal snapshot.\n\n Parameters\n ----------\n t : snapshot id (default=None).\n If None the iterator returns all the nodes of the flattened graph.\n data : boolean, optional (default=False)\n If False the ...
349
false
GiulioRossetti/dynetx
nodes_iter
31,207
LDU_FT/kibitzr/kibitzr/reread
LDU_FT
[ "<BEGIN>\n## `is_applicable`", "Return whether this promoter is applicable for given conf\n<END>", "<BEGIN>\n## `xpath_selector`", "Returns Xpath match for `selector` within `html`.", " :param selector: XPath string\n :param html: Unicode content\n :param select_all: True to get all matches\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reread API. 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 reread API. 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 ...
Read and parse credentials file. If something goes wrong, log exception and continue.
"Read and parse credentials file.\n If something goes wrong, log exception and continue."
53
false
kibitzr/kibitzr
reread
31,208
LDU_FT/pecan/pecan/abort
LDU_FT
[ "<BEGIN>\n## `route`", "This function is used to define an explicit route for a path segment.", " You generally only want to use this in situations where your desired path\n segment is not a valid Python variable/function name.", " For example, if you wanted to be able to route to:", " /path/wit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abort API. 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 abort API. 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...
Raise an HTTP status code, as specified. Useful for returning status codes like 401 Unauthorized or 403 Forbidden. :param status_code: The HTTP status code as an integer. :param detail: The message to send along, as a string. :param headers: A dictionary of headers to send along with the response. ...
"Raise an HTTP status code, as specified. Useful for returning status\n codes like 401 Unauthorized or 403 Forbidden.\n\n :param status_code: The HTTP status code as an integer.\n :param detail: The message to send along, as a string.\n :param headers: A dictionary of headers to send along with the response...
157
false
pecan/pecan
abort
31,209
LDU_FT/ga4gh/ga4gh-common/captureOutput
LDU_FT
[ "<BEGIN>\n## `getPathOfExecutable`", "Returns the full path of the executable, or None if the executable\n can not be found.\n<END>", "<BEGIN>\n## `requireExecutables`", "Check that all of the given executables are on the path.\n If at least one of them is not, exit the script and inform\n the user o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the captureOutput API. 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 captureOutput API. 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...
Runs the specified function and arguments, and returns the tuple (stdout, stderr) as strings.
"Runs the specified function and arguments, and returns the\n tuple (stdout, stderr) as strings."
20
false
ga4gh/ga4gh-common
captureOutput
31,210
LDU_FT/openstack/networking-hyperv/_get_vswitch_name
LDU_FT
[ "<BEGIN>\n## `handle_trunks`", "Trunk data model change from the server.\n<END>", "<BEGIN>\n## `handle_subports`", "Subport data model change from the server.\n<END>", "<BEGIN>\n## `_setup_trunk`", "Sets up VLAN trunk and updates the trunk status.\n<END>", "<BEGIN>\n## `main`", "The entry point for ne...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_vswitch_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_vswitch_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get the vswitch name for the received network information.
"Get the vswitch name for the received network information."
45
false
openstack/networking-hyperv
_get_vswitch_name
31,211
LDU_FT/gmichaeljaison/cv-utils/to_int
LDU_FT
[ "<BEGIN>\n## `match_one`", "Match template and find exactly one match in the Image using specified features.", " :param template: Template Image\n :param image: Search Image\n :param options: Options include\n - features: List of options for each feature\n :return: (Box, Score) Bounding box o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_int API. 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_int API. 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 ...
Rounds off and converts (x,y,w,h) to int :return: a Box object with all integer values
"Rounds off and converts (x,y,w,h) to int\n :return: a Box object with all integer values"
91
false
gmichaeljaison/cv-utils
to_int
31,212
LDU_FT/cloudera/cm_api/apply_host_template
LDU_FT
[ "<BEGIN>\n## `set_basic_auth`", "Set up basic auth for the client\n @param username: Login name.\n @param password: Login password.\n @param realm: The authentication realm.\n @return: The current object\n<END>", "<BEGIN>\n## `execute`", "Submit an HTTP request.\n @param http_method: GET, POST,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_host_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_host_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Apply a host template identified by name on the specified hosts and optionally start them. @param resource_root: The root Resource object. @param name: Host template name. @param cluster_name: Cluster name. @param host_ids: List of host ids. @param start_roles: Whether to start the created roles or not. @...
"Apply a host template identified by name on the specified hosts and\n optionally start them.\n @param resource_root: The root Resource object.\n @param name: Host template name.\n @param cluster_name: Cluster name.\n @param host_ids: List of host ids.\n @param start_roles: Whether to start the created roles or n...
561
false
cloudera/cm_api
apply_host_template
31,213
LDU_FT/tjwalch/django-livereload-server/ignore_file_extension
LDU_FT
[ "<BEGIN>\n## `ignore_file_extension`", "Configure a file extension to be ignored.", " :param extension: file extension to be ignored\n (ex. .less, .scss, etc)\n<END>", "<BEGIN>\n## `watch`", "Add the given filepath for watcher list.", " Once you have intialized a ser...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ignore_file_extension 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 ignore_file_extension API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Configure a file extension to be ignored. :param extension: file extension to be ignored (ex. .less, .scss, etc)
"Configure a file extension to be ignored.\n\n :param extension: file extension to be ignored\n (ex. .less, .scss, etc)"
15
false
tjwalch/django-livereload-server
ignore_file_extension
31,214
LDU_FT/davidmogar/cucco/files_generator
LDU_FT
[ "<BEGIN>\n## `_load_from_file`", "Load a config file from the given path.", " Load all normalizations from the config file received as\n argument. It expects to find a YAML file with a list of\n normalizations and arguments under the key 'normalizations'.", " Args:\n pat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the files_generator API. 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 files_generator API. 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...
Yield files found in a given path. Walk over a given path finding and yielding all files found on it. This can be done only on the root directory or recursively. Args: path: Path to the directory. recursive: Whether to find files recursively or not. Yields: A tuple for eac...
"Yield files found in a given path.\n\n Walk over a given path finding and yielding all\n files found on it. This can be done only on the root\n directory or recursively.\n\n Args:\n path: Path to the directory.\n recursive: Whether to find files recursively or not.\n\n Yields:\n A t...
103
false
davidmogar/cucco
files_generator
31,215
LDU_FT/Tivix/django-cron/humanize_duration
LDU_FT
[ "<BEGIN>\n## `humanize_duration`", "Returns a humanized string representing time difference", " For example: 2 days 1 hour 25 minutes 10 seconds\n<END>", "<BEGIN>\n## `run_cron_with_cache_check`", "Checks the cache and runs the cron or not.", " @cron_class - cron class to run.\n @force - run...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the humanize_duration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the humanize_duration API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns a humanized string representing time difference For example: 2 days 1 hour 25 minutes 10 seconds
"Returns a humanized string representing time difference\n\n For example: 2 days 1 hour 25 minutes 10 seconds"
16
false
Tivix/django-cron
humanize_duration
31,216
LDU_FT/project-ncl/pnc-cli/build
LDU_FT
[ "<BEGIN>\n## `get_environment`", "Get a specific Environment by name or ID\n<END>", "<BEGIN>\n## `create_new`", "Creates a new License", " This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please define a `callback` function\n to be invoked...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API. 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 build API. 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...
Triggers the build execution for a given configuration. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> ...
"Triggers the build execution for a given configuration.\n \n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please define a `callback` function\n to be invoked when receiving the response.\n >>> def callback_function(response):\n ...
527
false
project-ncl/pnc-cli
build
31,217
LDU_FT/getsentry/raven-python/fetch_git_sha
LDU_FT
[ "<BEGIN>\n## `async_send`", "Spawn an async request to a remote webserver.\n<END>", "<BEGIN>\n## `send`", "Sends a request to a remote webserver using HTTP POST.\n<END>", "<BEGIN>\n## `extract_auth_vars`", "raven-js will pass both Authorization and X-Sentry-Auth depending on the browser\n and server co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_git_sha API. 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 fetch_git_sha API. 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...
>>> fetch_git_sha(os.path.dirname(__file__))
">>> fetch_git_sha(os.path.dirname(__file__))"
126
false
getsentry/raven-python
fetch_git_sha
31,218
LDU_FT/lanius/tinyik/optimize
LDU_FT
[ "<BEGIN>\n## `prepare`", "Accept an objective function for optimization.\n<END>", "<BEGIN>\n## `optimize`", "Calculate an optimum argument of an objective function.\n<END>", "<BEGIN>\n## `optimize`", "Calculate an optimum argument of an objective function.\n<END>", "<BEGIN>\n## `optimize`", "Calculate...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the optimize API. 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 optimize API. 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...
Calculate an optimum argument of an objective function.
"Calculate an optimum argument of an objective function."
16
false
lanius/tinyik
optimize
31,219
LDU_FT/ianclegg/ntlmlib/initialize_security_context
LDU_FT
[ "<BEGIN>\n## `wrap`", "NTM GSSwrap()\n :param message: The message to be encrypted\n :return: The signed and encrypted message\n<END>", "<BEGIN>\n## `unwrap`", "NTLM GSSUnwrap()\n :param message: The message to be encrypted\n :return: The signed and encrypted message\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_security_context 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 initialize_security_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Idiomatic Python implementation of initialize_security_context, implemented as a generator function using yield to both accept incoming and return outgoing authentication tokens :return: The response to be returned to the server
"Idiomatic Python implementation of initialize_security_context, implemented as a generator function using\n yield to both accept incoming and return outgoing authentication tokens\n :return: The response to be returned to the server"
43
false
ianclegg/ntlmlib
initialize_security_context
31,220
LDU_FT/tapilab/brandelion/fetch_list_members
LDU_FT
[ "<BEGIN>\n## `parse_json`", "Yield screen_name, text tuples from a json file.\n<END>", "<BEGIN>\n## `extract_tweets`", "Yield screen_name, string tuples, where the string is the\n concatenation of all tweets of this user.\n<END>", "<BEGIN>\n## `preprocess`", ">>> preprocess('#hi there http://www.foo.co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_list_members 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 fetch_list_members API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get all members of the list specified by the given url. E.g., https://twitter.com/lore77/lists/libri-cultura-education
"Get all members of the list specified by the given url. E.g., https://twitter.com/lore77/lists/libri-cultura-education"
47
false
tapilab/brandelion
fetch_list_members
31,221
LDU_FT/seibert-media/Highton/people
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode the object to the object", " :param root_element: the parsed xml Element\n :type root_element: xml.etree.ElementTree.Element\n :return: the decoded Element as object\n :rtype: object\n<END>", "<BEGIN>\n## `add_note`", "Create a Note to current obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the people API. 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 people API. 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 ...
Retrieve all people of the company :return: list of people objects :rtype: list
"Retrieve all people of the company\n\n :return: list of people objects\n :rtype: list"
80
false
seibert-media/Highton
people
31,222
LDU_FT/danbradham/scrim/raw
LDU_FT
[ "<BEGIN>\n## `get_scrim`", "Get a :class:`Scrim` instance. Each instance is cached so if you call\n get_scrim again with the same arguments you get the same instance.", " See also:\n :class:`Scrim`\n<END>", "<BEGIN>\n## `_add`", "Appends a command to the scrims list of commands. You should not\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw API. 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 raw API. 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...
Append a raw command to the scrim. This text will be appeneded to the output of :meth:`scrim.to_string` verbatim. Use required_shell to specify the shell which this raw command is applicable to. Examples: >>> scrim = Scrim() >>> scrim.raw('cat text.txt', 'bash') ...
"Append a raw command to the scrim. This text will be appeneded to\n the output of :meth:`scrim.to_string` verbatim. Use required_shell to\n specify the shell which this raw command is applicable to.\n\n Examples:\n >>> scrim = Scrim()\n >>> scrim.raw('cat text.txt', 'bash')\n...
21
false
danbradham/scrim
raw
31,223
LDU_FT/siemens/django-dingos/tuple2dict
LDU_FT
[ "<BEGIN>\n## `set_dict`", "set_dict takes a dictionary, the value to\n enter into the dictionary, a command of what\n to do with the value, and a sequence of keys.", " d = {}", " set_dict(d,1,'append','level 1','level 2')", " -> d['level 1']['level 2'] = [1]", " set_dict(d,2,'append','le...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tuple2dict API. 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 tuple2dict API. 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...
Turn a tuple as returned by dict2tuple back into a dictionary structure. The optional parameter "constructor" governs, what class is used to create the dictionary: by default, the standard dict class is used, but in DINGO we mostly use the DingoObjDict class.
"Turn a tuple as returned by dict2tuple back\n into a dictionary structure. The optional\n parameter \"constructor\" governs, what class\n is used to create the dictionary: by default,\n the standard dict class is used, but in DINGO\n we mostly use the DingoObjDict class."
139
false
siemens/django-dingos
tuple2dict
31,224
LDU_FT/user-cont/colin/_print_results
LDU_FT
[ "<BEGIN>\n## `run`", "Runs the sanity checks for the target.", " :param timeout: timeout per-check (in seconds)\n :param skips: name of checks to skip\n :param target: str (image name, ostree or dockertar)\n or ImageTarget\n or path/file-like object for dockerfile\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _print_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _print_results API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Prints the results to the stdout :type verbose: bool :param results: generator of results :param stat: if True print stat instead of full output
"Prints the results to the stdout\n\n :type verbose: bool\n :param results: generator of results\n :param stat: if True print stat instead of full output"
114
false
user-cont/colin
_print_results
31,225
LDU_FT/skggm/skggm/score
LDU_FT
[ "<BEGIN>\n## `log_likelihood`", "Computes the log-likelihood between the covariance and precision\n estimate.", " Parameters\n ----------\n covariance : 2D ndarray (n_features, n_features)\n Maximum Likelihood Estimator of covariance", " precision : 2D ndarray (n_features, n_features)\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score API. 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 score API. 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...
Computes the score between cov/prec of sample covariance of X_test and X via 'score_metric'. Note: We want to maximize score so we return the negative error. Parameters ---------- X_test : array-like, shape = [n_samples, n_features] Test data of which we compute the...
"Computes the score between cov/prec of sample covariance of X_test\n and X via 'score_metric'.\n\n Note: We want to maximize score so we return the negative error.\n\n Parameters\n ----------\n X_test : array-like, shape = [n_samples, n_features]\n Test data of which we co...
239
false
skggm/skggm
score
31,226
LDU_FT/ceph/ceph-deploy/validate_host_ip
LDU_FT
[ "<BEGIN>\n## `ceph_is_installed`", "A helper callback to be executed after the connection is made to ensure\n that Ceph is installed.\n<END>", "<BEGIN>\n## `_get_version_output`", "Ignoring errors, call `ceph --version` and return only the version\n portion of the output. For example, output like::"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_host_ip API. 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 validate_host_ip API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Make sure that a given host all subnets specified will have at least one IP in that range.
"Make sure that a given host all subnets specified will have at least one IP\n in that range."
236
false
ceph/ceph-deploy
validate_host_ip
31,227
LDU_FT/rosenbrockc/fortpy/_docstring_parse
LDU_FT
[ "<BEGIN>\n## `setup_regex`", "Sets up the patterns and compiled regex objects for parsing types.\n<END>", "<BEGIN>\n## `parse_signature`", "Parses the specified line as a new version of the signature for 'element'.", " :arg statement: the string that has the new signature.\n :arg element: the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _docstring_parse API. 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 _docstring_parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parses the XML from the specified blocks of docstrings.
"Parses the XML from the specified blocks of docstrings."
929
false
rosenbrockc/fortpy
_docstring_parse
31,228
LDU_FT/Pylons/paginate/default_link_tag
LDU_FT
[ "<BEGIN>\n## `make_html_tag`", "Create an HTML tag string.", " tag\n The HTML tag to use (e.g. 'a', 'span' or 'div')", " text\n The text to enclose between opening and closing tag. If no text is specified then only\n the opening tag is returned.", " Example::\n make_html...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default_link_tag API. 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 default_link_tag API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create an A-HREF tag that points to another page.
"Create an A-HREF tag that points to another page."
66
false
Pylons/paginate
default_link_tag
31,229
LDU_FT/ereOn/azmq/_expect_command
LDU_FT
[ "<BEGIN>\n## `metadata_to_buffers`", "Transform a dict of metadata into a sequence of buffers.", " :param metadata: The metadata, as a dict.\n :returns: A list of buffers.\n<END>", "<BEGIN>\n## `buffer_to_metadata`", "Transform a buffer to a metadata dictionary.", " :param buffer: The buffer, as ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expect_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expect_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Expect a command. :param reader: The reader to use. :returns: The command data.
"Expect a command.\n\n :param reader: The reader to use.\n :returns: The command data."
111
false
ereOn/azmq
_expect_command
31,230
LDU_FT/tuomas2/automate/get_actuators
LDU_FT
[ "<BEGIN>\n## `call_eval`", "Value might be either name registered in System namespace, or object, either\n StatusObject or Callable. If Callable, evaluate :meth:`.call` method. If StatusObject,\n return status.\n<END>", "<BEGIN>\n## `setup_callable_system`", "This function basically sets...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_actuators API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_actuators API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Get actuators as a dictionary of format ``{name: status}``
"Get actuators as a dictionary of format ``{name: status}``"
91
false
tuomas2/automate
get_actuators
31,231
LDU_FT/jpscaletti/moar/get_thumbpath
LDU_FT
[ "<BEGIN>\n## `get_key`", "Generates the thumbnail's key from it's arguments.\n If the arguments doesn't change the key will not change\n<END>", "<BEGIN>\n## `get_source`", "Returns the source image file descriptor.", " path_or_url:\n Path to the source image as an absolute path, a p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_thumbpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_thumbpath API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return the relative path of the thumbnail. path: path of the source image key: key of the thumbnail format: thumbnail file extension
"Return the relative path of the thumbnail.\n\n path:\n path of the source image\n key:\n key of the thumbnail\n format:\n thumbnail file extension"
27
false
jpscaletti/moar
get_thumbpath
31,232
LDU_FT/minorg/pastpy/read
LDU_FT
[ "<BEGIN>\n## `read`", "Read a new object from the given input protocol and return the object.", " :type iprot: thryft.protocol._input_protocol._InputProtocol\n :rtype: pastpy.gen.database.impl.dbf.objects_dbf_record.ObjectsDbfRecord\n<END>", "<BEGIN>\n## `write`", "Write this object to the giv...
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...
Read a new object from the given input protocol and return the object. :type iprot: thryft.protocol._input_protocol._InputProtocol :rtype: pastpy.gen.database.impl.online.online_database_objects_list_item.OnlineDatabaseObjectsListItem
"Read a new object from the given input protocol and return the object.\n\n :type iprot: thryft.protocol._input_protocol._InputProtocol\n :rtype: pastpy.gen.database.impl.online.online_database_objects_list_item.OnlineDatabaseObjectsListItem"
42
false
minorg/pastpy
read
31,233
LDU_FT/aloetesting/aloe_webdriver/find_field
LDU_FT
[ "<BEGIN>\n## `string_literal`", "Choose a string literal that can wrap our string.", " If your string contains a ``\\'`` the result will be wrapped in ``\\\"``.\n If your string contains a ``\\\"`` the result will be wrapped in ``\\'``.", " Cannot currently handle strings which contain both ``\\\"`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_field API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Locate an input field. :param browser: ``world.browser`` :param string field_type: a field type (i.e. `button`) :param string value: an id, name or label This first looks for `value` as the id of the element, else the name of the element, else as a label for the element. Returns: an :class:`E...
"Locate an input field.\n\n :param browser: ``world.browser``\n :param string field_type: a field type (i.e. `button`)\n :param string value: an id, name or label\n\n This first looks for `value` as the id of the element, else\n the name of the element, else as a label for the element.\n\n Returns: an...
158
false
aloetesting/aloe_webdriver
find_field
31,234
LDU_FT/jaraco/jaraco.mongodb/save
LDU_FT
[ "<BEGIN>\n## `extract_param`", "From a list of args, extract the one param if supplied,\n returning the value and unused args.", " >>> extract_param('port', ['foo', '--port=999', 'bar'], type=int)\n (999, ['foo', 'bar'])\n >>> extract_param('port', ['foo', '--port', '999', 'bar'], type=int)\n (99...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Pymongo has deprecated the save logic, even though MongoDB still advertizes that logic in the core API: https://docs.mongodb.com/manual/reference/method/db.collection.save/ This function provides a compatible interface.
"Pymongo has deprecated the save logic, even though\n\tMongoDB still advertizes that logic in the core API:\n\thttps://docs.mongodb.com/manual/reference/method/db.collection.save/\n\n\tThis function provides a compatible interface."
82
false
jaraco/jaraco.mongodb
save
31,235
LDU_FT/twosigma/beakerx/recursive_mtime
LDU_FT
[ "<BEGIN>\n## `create_cmdclass`", "Create a command class with the given optional wrappers.\n Parameters\n ----------\n develop_wrapper: list(str), optional\n The cmdclass names to run before running other commands\n distribute_wrappers: list(str), optional\n The cmdclass names to run bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recursive_mtime API. 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 recursive_mtime API. 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...
Gets the newest/oldest mtime for all files in a directory.
"Gets the newest/oldest mtime for all files in a directory."
20
false
twosigma/beakerx
recursive_mtime
31,236
LDU_FT/Robin8Put/pmes/update_contents
LDU_FT
[ "<BEGIN>\n## `create_table`", "RPC method for creating table with custom name and fields\n :return event id\n<END>", "<BEGIN>\n## `insert`", "RPC method for inserting data to the table\n :return: None\n<END>", "<BEGIN>\n## `select`", "RPC method for selecting data from the database\n :return sele...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_contents API. 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 update_contents API. 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...
Updates users content row Accepts: - txid - cid - description - write_price - read_price - confirmed - coinid
"Updates users content row\n\t\tAccepts:\n\t\t- txid\n\t\t- cid\n\t\t- description\n\t\t- write_price\n\t\t- read_price\n\t\t- confirmed\n\t\t- coinid"
170
false
Robin8Put/pmes
update_contents
31,237
LDU_FT/xlorepdarkhelm/config/_loadable_get_
LDU_FT
[ "<BEGIN>\n## `_attr_data_`", "Special property containing the memoized data.\n<END>", "<BEGIN>\n## `_attr_data_`", "Does not work as expected, makes an empty object with a new __slots__\n definition.\n<END>", "<BEGIN>\n## `_attr_func_`", "Special property containing functions to be lazily-evaluated...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _loadable_get_ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _loadable_get_ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Used to lazily-evaluate & memoize an attribute.
"Used to lazily-evaluate & memoize an attribute."
16
false
xlorepdarkhelm/config
_loadable_get_
31,238
LDU_FT/MagicStack/asyncpg/set_connect_args
LDU_FT
[ "<BEGIN>\n## `fetch`", "r\"\"\"Return the next *n* rows as a list of :class:`Record` objects.", " :param float timeout: Optional timeout value in seconds.", " :return: A list of :class:`Record` instances.\n<END>", "<BEGIN>\n## `fetchrow`", "r\"\"\"Return the next row.", " :param flo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_connect_args API. 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 set_connect_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
r"""Set the new connection arguments for this pool. The new connection arguments will be used for all subsequent new connection attempts. Existing connections will remain until they expire. Use :meth:`Pool.expire_connections() <asyncpg.pool.Pool.expire_connections>` to expedite the con...
"r\"\"\"Set the new connection arguments for this pool.\n\n The new connection arguments will be used for all subsequent\n new connection attempts. Existing connections will remain until\n they expire. Use :meth:`Pool.expire_connections()\n <asyncpg.pool.Pool.expire_connections>` to expedit...
284
false
MagicStack/asyncpg
set_connect_args
31,239
LDU_FT/mistio/mist.client/add_bare_metal_cloud
LDU_FT
[ "<BEGIN>\n## `request`", "The main purpose of this is to be a wrapper-like function to pass the api_token and all the other params to the\n requests that are being made", " :returns: An instance of RequestsHandler\n<END>", "<BEGIN>\n## `delete`", "Delete the cloud from the list of added clouds...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_bare_metal_cloud 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 add_bare_metal_cloud API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Black magic is happening here. All of this wil change when we sanitize our API, however, this works until then
"Black magic is happening here. All of this wil change when we sanitize our API, however, this works until then"
106
false
mistio/mist.client
add_bare_metal_cloud
31,240
LDU_FT/nimbusproject/dashi/named_any
LDU_FT
[ "<BEGIN>\n## `raise_error`", "Intakes a dict of remote error information and raises a DashiError\n<END>", "<BEGIN>\n## `fire`", "Send a message without waiting for a reply", " @param name: name of destination service queue\n @param operation: name of service operation to invoke\n @param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the named_any API. 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 named_any API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Retrieve a Python object by its fully qualified name from the global Python module namespace. The first part of the name, that describes a module, will be discovered and imported. Each subsequent part of the name is treated as the name of an attribute of the object specified by all of the name which c...
"Retrieve a Python object by its fully qualified name from the global Python\n module namespace. The first part of the name, that describes a module,\n will be discovered and imported. Each subsequent part of the name is\n treated as the name of an attribute of the object specified by all of the\n name wh...
39
false
nimbusproject/dashi
named_any
31,241
LDU_FT/adamrehn/ue4cli/capture
LDU_FT
[ "<BEGIN>\n## `findArgs`", "Extracts the list of arguments that start with any of the specified prefix values\n<END>", "<BEGIN>\n## `stripArgs`", "Removes any arguments in the supplied list that are contained in the specified blacklist\n<END>", "<BEGIN>\n## `capture`", "Executes a child process and capture...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the capture API. 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 capture API. 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...
Executes a child process and captures its output
"Executes a child process and captures its output"
120
false
adamrehn/ue4cli
capture
31,242
LDU_FT/anrosent/cli/add_cli
LDU_FT
[ "<BEGIN>\n## `add_func`", "Adds a command to the CLI - specify args as you would to\n argparse.ArgumentParser.add_argument()\n<END>", "<BEGIN>\n## `add_cli`", "Adds the functionality of the other CLI to this one, where all\n commands to the other CLI are prefixed by the given prefix plus a hyphe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_cli API. 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 add_cli API. 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...
Adds the functionality of the other CLI to this one, where all commands to the other CLI are prefixed by the given prefix plus a hyphen. e.g. To execute command `greet anson 5` on other cli given prefix cli2, you can execute the following with this CLI: cli2 greet anson 5
"Adds the functionality of the other CLI to this one, where all\n commands to the other CLI are prefixed by the given prefix plus a hyphen.\n\n e.g. To execute command `greet anson 5` on other cli given prefix cli2, you\n can execute the following with this CLI:\n cli2 greet anson 5"
13
false
anrosent/cli
add_cli
31,243
LDU_FT/CivicSpleen/ambry/label
LDU_FT
[ "<BEGIN>\n## `_or_join`", "Joins terms using OR operator.", " Args:\n terms (list): terms to join", " Examples:\n self._or_join(['term1', 'term2']) -> 'term1 | term2'", " Returns:\n str\n<END>", "<BEGIN>\n## `search`", "Finds datasets by search phras...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the label API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return first child of the column that is marked as a label. Returns self if the column is a label
"Return first child of the column that is marked as a label. Returns self if the column is a label"
1,165
true
CivicSpleen/ambry
label
31,244
LDU_FT/f3at/feat/actually_start_agent
LDU_FT
[ "<BEGIN>\n## `parse_incoming_query`", "Effect factory parsing the query value from params and merging in\n the static_conditions specified.", " @param factory: IQueryView\n @param static_conditions: effect to be called to build up static\n conditions of the query\n @par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the actually_start_agent 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 actually_start_agent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
This method will be run only on the master agency.
"This method will be run only on the master agency."
658
false
f3at/feat
actually_start_agent
31,245
LDU_FT/seibert-media/Highton/list_notes
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode the object to the object", " :param root_element: the parsed xml Element\n :type root_element: xml.etree.ElementTree.Element\n :return: the decoded Element as object\n :rtype: object\n<END>", "<BEGIN>\n## `add_note`", "Create a Note to current obje...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_notes API. 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 list_notes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Get the notes of current object :param page: the page starting at 0 :type since: int :param since: get all notes since a datetime :type since: datetime.datetime :return: the notes :rtype: list
"Get the notes of current object\n\n :param page: the page starting at 0\n :type since: int\n :param since: get all notes since a datetime\n :type since: datetime.datetime\n :return: the notes\n :rtype: list"
80
false
seibert-media/Highton
list_notes
31,246
LDU_FT/StorjOld/pyp2p/parse_buf
LDU_FT
[ "<BEGIN>\n## `set_keep_alive`", "This function instructs the TCP socket to send a heart beat every n\n seconds to detect dead connections. It's the TCP equivalent of the\n IRC ping-pong protocol and allows for better cleanup / detection\n of dead TCP connections.", " It activates aft...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_buf API. 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 parse_buf API. 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...
Since TCP is a stream-orientated protocol, responses aren't guaranteed to be complete when they arrive. The buffer stores all the data and this function splits the data into replies based on the new line delimiter.
"Since TCP is a stream-orientated protocol, responses aren't guaranteed\n to be complete when they arrive. The buffer stores all the data and\n this function splits the data into replies based on the new line\n delimiter."
88
false
StorjOld/pyp2p
parse_buf
31,247
LDU_FT/IntegralDefense/cbinterface/events_to_json
LDU_FT
[ "<BEGIN>\n## `events_to_json`", "Attempt to build a comprehensive json document for this process.\n Note: This can be problematic for excessivly large processes. ", " :param int segment_limit: Stop building the document after this many process segments.\n :return: A dictionary of process ev...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the events_to_json API. 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 events_to_json API. 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...
Attempt to build a comprehensive json document for this process. Note: This can be problematic for excessivly large processes. :param int segment_limit: Stop building the document after this many process segments. :return: A dictionary of process events and details.
"Attempt to build a comprehensive json document for this process.\n Note: This can be problematic for excessivly large processes. \n\n :param int segment_limit: Stop building the document after this many process segments.\n :return: A dictionary of process events and details."
15
false
IntegralDefense/cbinterface
events_to_json
31,248
LDU_FT/ossobv/dutree/get_leaves
LDU_FT
[ "<BEGIN>\n## `get_content_size`", "Return size of files/dirs contents excluding parent node.\n<END>", "<BEGIN>\n## `formatwarning`", "Override default Warning layout, from:", " /PATH/TO/dutree.py:326: UserWarning:\n [Errno 2] No such file or directory: '/0.d/05.d'\n warnings.warn(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_leaves API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_leaves API. 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...
Return a sorted leaves: only nodes with fixed file size.
"Return a sorted leaves: only nodes with fixed file size."
32
false
ossobv/dutree
get_leaves
31,249
LDU_FT/pysathq/pysat/get_model
LDU_FT
[ "<BEGIN>\n## `open`", "Open a file pointer. Note that a file is *always* opened in text\n mode. The method inherits its input parameters from the constructor\n of :class:`FileObject`.\n<END>", "<BEGIN>\n## `get_compression_type`", "Determine compression type for a given file using its ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get a model if the formula was previously satisfied.
"Get a model if the formula was previously satisfied."
578
false
pysathq/pysat
get_model
31,250
LDU_FT/hickeroar/simplebayes/get_cache_location
LDU_FT
[ "<BEGIN>\n## `train_token`", "Trains a particular token (increases the weight/count of it)", " :param word: the token we're going to train\n :type word: str\n :param count: the number of occurances in the sample\n :type count: int\n<END>", "<BEGIN>\n## `untrain_token`", "Untrains...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_location API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cache_location API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Gets the location of the cache file :return: the location of the cache file :rtype: string
"Gets the location of the cache file\n\n :return: the location of the cache file\n :rtype: string"
40
false
hickeroar/simplebayes
get_cache_location
31,251
LDU_FT/jjjake/internetarchive/get_tasks
LDU_FT
[ "<BEGIN>\n## `prepare_metadata`", "Prepare a metadata dict for an\n :class:`S3PreparedRequest <S3PreparedRequest>` or\n :class:`MetadataPreparedRequest <MetadataPreparedRequest>` object.", " :type metadata: dict\n :param metadata: The metadata dict to be prepared.", " :type source_metadata: dic...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tasks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tasks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get tasks from the Archive.org catalog. ``internetarchive`` must be configured with your logged-in-* cookies to use this function. If no arguments are provided, all queued tasks for the user will be returned. :type identifier: str :param identifier: (optional) The Archive.org identifier for which to re...
"Get tasks from the Archive.org catalog. ``internetarchive`` must be configured\n with your logged-in-* cookies to use this function. If no arguments are provided,\n all queued tasks for the user will be returned.\n\n :type identifier: str\n :param identifier: (optional) The Archive.org identifier for which...
281
false
jjjake/internetarchive
get_tasks
31,252
LDU_FT/DBuildService/dockerfile-parse/lines
LDU_FT
[ "<BEGIN>\n## `image_from`", ":param from_value: string like \"image:tag\" or \"image:tag AS name\"\n :return: tuple of the image and stage name, e.g. (\"image:tag\", None)\n<END>", "<BEGIN>\n## `lines`", ":return: list containing lines (unicode) from Dockerfile\n<END>", "<BEGIN>\n## `lines`", "Fill Doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lines API. 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 lines API. 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...
Fill Dockerfile content with specified lines :param lines: list of lines to be written to Dockerfile
"Fill Dockerfile content with specified lines\n :param lines: list of lines to be written to Dockerfile"
58
false
DBuildService/dockerfile-parse
lines
31,253
LDU_FT/astropy/astropy-healpix/neighbours
LDU_FT
[ "<BEGIN>\n## `healpix_to_lonlat`", "Convert HEALPix indices (optionally with offsets) to longitudes/latitudes", " Parameters\n ----------\n healpix_index : `~numpy.ndarray`\n 1-D array of HEALPix indices\n dx, dy : `~numpy.ndarray`, optional\n 1-D arrays of offs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the neighbours API. 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 neighbours API. 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...
Find all the HEALPix pixels that are the neighbours of a HEALPix pixel Parameters ---------- healpix_index : `~numpy.ndarray` Array of HEALPix pixels Returns ------- neigh : `~numpy.ndarray` Array giving the neighbours starting SW and rotating cl...
"Find all the HEALPix pixels that are the neighbours of a HEALPix pixel\n\n Parameters\n ----------\n healpix_index : `~numpy.ndarray`\n Array of HEALPix pixels\n\n Returns\n -------\n neigh : `~numpy.ndarray`\n Array giving the neighbours starting SW and ...
177
false
astropy/astropy-healpix
neighbours
31,254
LDU_FT/python-astrodynamics/spacetrack/_iter_lines_generator
LDU_FT
[ "<BEGIN>\n## `check_git_unchanged`", "Check git to avoid overwriting user changes.\n<END>", "<BEGIN>\n## `check_staged`", "Check if there are 'changes to be committed' in the index.\n<END>", "<BEGIN>\n## `_raise_for_status`", "Raise an appropriate error for a given response.", " Arguments:\n res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _iter_lines_generator 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 _iter_lines_generator API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Iterates over the response data, one line at a time. When stream=True is set on the request, this avoids reading the content at once into memory for large responses. The function is taken from :meth:`requests.models.Response.iter_lines`, but modified to use our :func:`~spacetrack.base._iter_content_ge...
"Iterates over the response data, one line at a time. When\n stream=True is set on the request, this avoids reading the\n content at once into memory for large responses.\n\n The function is taken from :meth:`requests.models.Response.iter_lines`, but\n modified to use our :func:`~spacetrack.base._iter_cont...
71
false
python-astrodynamics/spacetrack
_iter_lines_generator
31,255
LDU_FT/hasgeek/coaster/get
LDU_FT
[ "<BEGIN>\n## `init_app`", "Enables logging for an app using :class:`LocalVarFormatter`. Requires the\n app to be configured and checks for the following configuration parameters.\n All are optional:", " * ``LOGFILE``: Name of the file to log to (default ``error.log``)\n * ``ADMINS``: List of email a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get an instance matching the parent and url_id
"Get an instance matching the parent and url_id"
344
false
hasgeek/coaster
get
31,256
LDU_FT/Damgaard/PyImgur/get_gallery_favorites
LDU_FT
[ "<BEGIN>\n## `convert_general`", "Take a python object and convert it to the format Imgur expects.\n<END>", "<BEGIN>\n## `to_imgur_format`", "Convert the parameters to the format Imgur expects.\n<END>", "<BEGIN>\n## `_get_album_or_image`", "Return a gallery image/album depending on what the json represent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_gallery_favorites 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_gallery_favorites API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Get a list of the images in the gallery this user has favorited.
"Get a list of the images in the gallery this user has favorited."
139
false
Damgaard/PyImgur
get_gallery_favorites
31,257
LDU_FT/pytroll/trollimage/gamma
LDU_FT
[ "<BEGIN>\n## `colorize`", "Colorize a monochromatic array *arr*, based *colors* given for\n *values*. Interpolation is used. *values* must be in ascending order.\n<END>", "<BEGIN>\n## `palettize`", "From start *values* apply *colors* to *data*.\n<END>", "<BEGIN>\n## `set_range`", "Set the range of the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gamma API. 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 gamma API. 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...
Apply gamma correction to the channels of the image. If *gamma* is a tuple, then it should have as many elements as the channels of the image, and the gamma correction is applied elementwise. If *gamma* is a number, the same gamma correction is applied on every channel, if there are seve...
"Apply gamma correction to the channels of the image. If *gamma* is a\n tuple, then it should have as many elements as the channels of the\n image, and the gamma correction is applied elementwise. If *gamma* is a\n number, the same gamma correction is applied on every channel, if there\n are...
150
false
pytroll/trollimage
gamma
31,258
LDU_FT/PyFilesystem/pyfilesystem2/mirror
LDU_FT
[ "<BEGIN>\n## `install`", "Install an opener.", " Arguments:\n opener (`Opener`): an `Opener` instance, or a callable that\n returns an opener instance.", " Note:\n May be used as a class decorator. For example::\n registry = Registry()\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mirror API. 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 mirror API. 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 ...
Mirror files / directories from one filesystem to another. Mirroring a filesystem will create an exact copy of ``src_fs`` on ``dst_fs``, by removing any files / directories on the destination that aren't on the source, and copying files that aren't. Arguments: src_fs (FS or str): Source filesy...
"Mirror files / directories from one filesystem to another.\n\n Mirroring a filesystem will create an exact copy of ``src_fs`` on\n ``dst_fs``, by removing any files / directories on the destination\n that aren't on the source, and copying files that aren't.\n\n Arguments:\n src_fs (FS or str): Sourc...
320
false
PyFilesystem/pyfilesystem2
mirror
31,259
LDU_FT/emlazzarin/acrylic/sample
LDU_FT
[ "<BEGIN>\n## `change_sheet`", "Calling this method changes the sheet in anticipation for the\n next time you create an iterator.", " If you change the active sheet while iterating on a UnicodeReader\n instance, it will continue to iterate correctly until completion.\n The next time y...
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 ...
Returns a new table with rows randomly sampled. We create a mask with `num` True bools, and fill it with False bools until it is the length of the table. We shuffle it, and apply that mask to the table.
"Returns a new table with rows randomly sampled.\n\n We create a mask with `num` True bools, and fill it with False bools\n until it is the length of the table. We shuffle it, and apply that\n mask to the table."
94
false
emlazzarin/acrylic
sample
31,260
LDU_FT/romanz/trezor-agent/num2bytes
LDU_FT
[ "<BEGIN>\n## `create_default_options_getter`", "Return current TTY and DISPLAY settings for GnuPG pinentry.\n<END>", "<BEGIN>\n## `write`", "Send and flush a single line to the subprocess' stdin.\n<END>", "<BEGIN>\n## `expect`", "Read a line and return it without required prefix.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the num2bytes API. 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 num2bytes API. 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...
Convert an unsigned integer to MSB-first bytes with specified size.
"Convert an unsigned integer to MSB-first bytes with specified size."
235
false
romanz/trezor-agent
num2bytes
31,261
LDU_FT/dask/dask-kubernetes/from_yaml
LDU_FT
[ "<BEGIN>\n## `_set_k8s_attribute`", "Set a specific value on a kubernetes object's attribute", " obj\n an object from Kubernetes Python API client\n attribute\n Should be a Kubernetes API style attribute (with camelCase)\n value\n Can be anything (string, list, dict, k8s objects) t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_yaml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_yaml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Create cluster with worker pod spec defined by a YAML file We can start a cluster with pods defined in an accompanying YAML file like the following: .. code-block:: yaml kind: Pod metadata: labels: foo: bar baz: quux ...
"Create cluster with worker pod spec defined by a YAML file\n\n We can start a cluster with pods defined in an accompanying YAML file\n like the following:\n\n .. code-block:: yaml\n\n kind: Pod\n metadata:\n labels:\n foo: bar\n baz:...
55
false
dask/dask-kubernetes
from_yaml
31,262
LDU_FT/facebook/watchman/_inner_read_config
LDU_FT
[ "<BEGIN>\n## `_int_size`", "Return the smallest size int that can store the value\n<END>", "<BEGIN>\n## `loads`", "Deserialize a BSER-encoded blob.", " @param buf: The buffer to deserialize.\n @type buf: bytes", " @param mutable: Whether to return mutable results.\n @type mutable: bool", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _inner_read_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _inner_read_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. Th...
Helper to read a named config file. The grossness with the global is a workaround for this python bug: https://bugs.python.org/issue21591 The bug prevents us from defining either a local function or a lambda in the scope of read_fbcode_builder_config below.
"Helper to read a named config file.\n The grossness with the global is a workaround for this python bug:\n https://bugs.python.org/issue21591\n The bug prevents us from defining either a local function or a lambda\n in the scope of read_fbcode_builder_config below."
93
false
facebook/watchman
_inner_read_config
31,263
LDU_FT/nocarryr/python-dispatch/emit
LDU_FT
[ "<BEGIN>\n## `register_event`", "Registers new events after instance creation", " Args:\n *names (str): Name or names of the events to register\n<END>", "<BEGIN>\n## `bind`", "Subscribes to events or to :class:`~pydispatch.properties.Property` updates", " Keyword arguments are use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the emit API. 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 emit API. 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...
Dispatches an event to any subscribed listeners Note: If a listener returns :obj:`False`, the event will stop dispatching to other listeners. Any other return value is ignored. Args: name (str): The name of the :class:`Event` to dispatch *args (Optional)...
"Dispatches an event to any subscribed listeners\n\n Note:\n If a listener returns :obj:`False`, the event will stop dispatching to\n other listeners. Any other return value is ignored.\n\n Args:\n name (str): The name of the :class:`Event` to dispatch\n *args (...
89
false
nocarryr/python-dispatch
emit
31,264
LDU_FT/TankerHQ/python-cli-ui/message
LDU_FT
[ "<BEGIN>\n## `setup`", "Configure behavior of message functions.", " :param verbose: Whether :func:`debug` messages should get printed\n :param quiet: Hide every message except :func:`warning`, :func:`error`, and\n :func:`fatal`\n :param color: Choices: 'auto', 'always', or 'never'. Wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
Helper method for error, warning, info, debug
"Helper method for error, warning, info, debug"
35
false
TankerHQ/python-cli-ui
message
31,265
LDU_FT/adrn/gala/_angle_prepare
LDU_FT
[ "<BEGIN>\n## `w`", "This returns a single array containing the phase-space positions.", " Parameters\n ----------\n units : `~gala.units.UnitSystem` (optional)\n The unit system to represent the position and velocity in\n before combining into the full array.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _angle_prepare API. 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 _angle_prepare API. 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...
Given toy actions and angles, `aa`, compute the matrix `A` and vector `b` to solve for the vector of "true" angles, frequencies, and generating function derivatives, `x` (see Appendix of Sanders & Binney (2014)). .. todo:: Wrong shape for aa -- should be (6,n) as usual... Parameters -...
"Given toy actions and angles, `aa`, compute the matrix `A` and\n vector `b` to solve for the vector of \"true\" angles, frequencies, and\n generating function derivatives, `x` (see Appendix of\n Sanders & Binney (2014)).\n\n .. todo::\n\n Wrong shape for aa -- should be (6,n) as usual...\n\n Para...
465
false
adrn/gala
_angle_prepare
31,266
LDU_FT/GPflow/GPflow/_build_predict
LDU_FT
[ "<BEGIN>\n## `multivariate_normal`", "Computes the log-density of a multivariate normal.\n :param x : Dx1 or DxN sample(s) for which we want the density\n :param mu : Dx1 or DxN mean(s) of the normal distribution\n :param L : DxD Cholesky decomposition of the covariance matrix\n :return p : (1,) or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_predict API. 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 _build_predict API. 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...
Compute the mean and variance of the latent function at some new points Xnew. For a derivation of the terms in here, see the associated SGPR notebook.
"Compute the mean and variance of the latent function at some new points\n Xnew. For a derivation of the terms in here, see the associated SGPR\n notebook."
589
false
GPflow/GPflow
_build_predict
31,267
LDU_FT/dixudx/rtcclient/getCommentByID
LDU_FT
[ "<BEGIN>\n## `getRoles`", "Get all :class:`rtcclient.models.Role` objects in this project\n area", " If no :class:`Roles` are retrieved, `None` is returned.", " :return: a :class:`list` that contains all\n :class:`rtcclient.models.Role` objects\n :rtype: list\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCommentByID API. 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 getCommentByID API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get the :class:`rtcclient.models.Comment` object by its id Note: the comment id starts from 0 :param comment_id: the comment id (integer or equivalent string) :return: the :class:`rtcclient.models.Comment` object :rtype: rtcclient.models.Comment
"Get the :class:`rtcclient.models.Comment` object by its id\n\n Note: the comment id starts from 0\n\n :param comment_id: the comment id (integer or equivalent string)\n :return: the :class:`rtcclient.models.Comment` object\n :rtype: rtcclient.models.Comment"
285
false
dixudx/rtcclient
getCommentByID
31,268
LDU_FT/dslackw/slpkg/update_lists
LDU_FT
[ "<BEGIN>\n## `repos`", "View or enabled or disabled repositories\n<END>", "<BEGIN>\n## `reset`", "Reset slpkg.conf file with default values\n<END>", "<BEGIN>\n## `case_sensitive`", "Create dictionary from list with key in lower case\n and value with default\n<END>", "<BEGIN>\n## `package_name`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_lists API. 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 update_lists API. 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...
Update packages list and ChangeLog.txt file after upgrade distribution
"Update packages list and ChangeLog.txt file after\n upgrade distribution"
168
false
dslackw/slpkg
update_lists
31,269
LDU_FT/jkenlooper/chill/_template
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 _template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Check if a template is assigned to it and render that with the value
"Check if a template is assigned to it and render that with the value"
63
false
jkenlooper/chill
_template
31,270
LDU_FT/clld/clldutils/readlines
LDU_FT
[ "<BEGIN>\n## `parse`", "Convert iso formatted timestamps found as values in the dict d to datetime objects.", " :return: A shallow copy of d with converted timestamps.\n<END>", "<BEGIN>\n## `dump`", "Python 2 + 3 compatible version of json.dump.", " :param obj: The object to be dumped.\n :param p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readlines API. 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 readlines API. 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...
Read a `list` of lines from a text file. :param p: File path (or `list` or `tuple` of text) :param encoding: Registered codec. :param strip: If `True`, strip leading and trailing whitespace. :param comment: String used as syntax to mark comment lines. When not `None`, \ commented lines will be stri...
"Read a `list` of lines from a text file.\n\n :param p: File path (or `list` or `tuple` of text)\n :param encoding: Registered codec.\n :param strip: If `True`, strip leading and trailing whitespace.\n :param comment: String used as syntax to mark comment lines. When not `None`, \\\n commented lines will...
70
false
clld/clldutils
readlines
31,271
LDU_FT/pletzer/pnumpy/getNeighborProc
LDU_FT
[ "<BEGIN>\n## `getStringPartition`", "Get the string representation of the current partition\n @return string like \":-1,0:2\"\n<END>", "<BEGIN>\n## `getPrimeFactors`", "Get all the prime factor of given integer\n @param n integer\n @return list [1, ..., n]\n<END>", "<BEGIN>\n## `getNeighborProc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getNeighborProc API. 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 getNeighborProc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Get the neighbor to a processor @param proc the reference processor rank @param offset displacement, e.g. (1, 0) for north, (0, -1) for west,... @param periodic boolean list of True/False values, True if axis is periodic, False otherwise @note will return None if ...
"Get the neighbor to a processor\n @param proc the reference processor rank\n @param offset displacement, e.g. (1, 0) for north, (0, -1) for west,...\n @param periodic boolean list of True/False values, True if axis is\n periodic, False otherwise\n @note will return No...
54
false
pletzer/pnumpy
getNeighborProc
31,272