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/maxcountryman/atomos/add_and_get
LDU_FT
[ "<BEGIN>\n## `synchronized`", "A decorator which acquires a lock before attempting to execute its wrapped\n function. Releases the lock in a finally clause.", " :param fn: The function to wrap.\n<END>", "<BEGIN>\n## `set`", "Atomically sets the value to `value`.", " :param value: The value to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_and_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_and_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 extra...
Atomically adds `delta` to the current value. :param delta: The delta to add.
"Atomically adds `delta` to the current value.\n\n :param delta: The delta to add."
57
false
maxcountryman/atomos
add_and_get
8,173
LDU_FT/RaRe-Technologies/smart_open/read
LDU_FT
[ "<BEGIN>\n## `extract_kwargs`", "Extract keyword argument documentation from a function's docstring.", " Parameters\n ----------\n docstring: str\n The docstring to extract keyword arguments from.", " Returns\n -------\n list of (str, str, list str)", " str\n The name of t...
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 bytes from the buffer and advance the read position. Returns the bytes in a bytestring. Parameters ---------- size: int, optional Maximum number of bytes to read. If negative or not supplied, read all unread bytes in the buffer. Returns ----...
"Read bytes from the buffer and advance the read position. Returns\n the bytes in a bytestring.\n\n Parameters\n ----------\n size: int, optional\n Maximum number of bytes to read. If negative or not supplied, read\n all unread bytes in the buffer.\n\n Returns\n ...
150
false
RaRe-Technologies/smart_open
read
8,174
LDU_FT/Azure/msrest-for-python/serialize_data
LDU_FT
[ "<BEGIN>\n## `async_poller`", "Async Poller for long running operations.", " :param client: A msrest service client. Can be a SDK client and it will be casted to a ServiceClient.\n :type client: msrest.service_client.ServiceClient\n :param initial_response: The initial call response\n :type initial_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Serialize generic data according to supplied data type. :param data: The data to be serialized. :param str data_type: The type to be serialized from. :param bool required: Whether it's essential that the data not be empty or None :raises: AttributeError if required data is None...
"Serialize generic data according to supplied data type.\n\n :param data: The data to be serialized.\n :param str data_type: The type to be serialized from.\n :param bool required: Whether it's essential that the data not be\n empty or None\n :raises: AttributeError if required data ...
324
false
Azure/msrest-for-python
serialize_data
8,175
LDU_FT/SwoopSearch/pyaddress/load_cities
LDU_FT
[ "<BEGIN>\n## `post_multipart`", "Post fields and files to an http host as multipart/form-data.\n fields is a sequence of (name, value) elements for regular form fields.\n files is a sequence of (name, filename, value) elements for data to be uploaded as files\n Return the server's response page.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_cities API. 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 load_cities API. 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...
Load up all cities in lowercase for easier matching. The file should have one city per line, with no extra characters. This isn't strictly required, but will vastly increase the accuracy.
"Load up all cities in lowercase for easier matching. The file should have one city per line, with no extra\n characters. This isn't strictly required, but will vastly increase the accuracy."
45
false
SwoopSearch/pyaddress
load_cities
8,176
LDU_FT/moluwole/Bast/only
LDU_FT
[ "<BEGIN>\n## `get_config`", "Gets the config from the os.environ. This is used to create the config dict for use by the ORM\n :return: str, dict\n<END>", "<BEGIN>\n## `check_packages`", "Check if the driver for the user defined host is available. If it is not available, download it using PIP\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the only API. 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 only API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
returns the key, value pair of the arguments passed as a dict object Sample Usage ++++++++++++++ .. code:: python from bast import Controller class MyController(Controller): def index(self): data = self.only(['username']) Re...
"returns the key, value pair of the arguments passed as a dict object\n\n Sample Usage\n ++++++++++++++\n .. code:: python\n\n from bast import Controller\n\n class MyController(Controller):\n def index(self):\n data = self.only(['username'])\...
59
false
moluwole/Bast
only
8,177
LDU_FT/twisted/txmongo/get_last_version
LDU_FT
[ "<BEGIN>\n## `configure`", "Configures the protocol using the information gathered from the\n remote Mongo instance. Such information may contain the max\n BSON document size, replica set configuration, and the master\n status of the instance.\n<END>", "<BEGIN>\n## `notifyReady`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_version API. 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_last_version API. 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 a file from GridFS by ``"filename"``. Returns the most recently uploaded file in GridFS with the name `filename` as an instance of :class:`~gridfs.grid_file.GridOut`. Raises :class:`~gridfs.errors.NoFile` if no such file exists. An index on ``{filename: 1, uploadDate: -1}``...
"Get a file from GridFS by ``\"filename\"``.\n\n Returns the most recently uploaded file in GridFS with the\n name `filename` as an instance of\n :class:`~gridfs.grid_file.GridOut`. Raises\n :class:`~gridfs.errors.NoFile` if no such file exists.\n\n An index on ``{filename: 1, uploadD...
64
false
twisted/txmongo
get_last_version
8,178
LDU_FT/wistful/pympris/register_properties_handler
LDU_FT
[ "<BEGIN>\n## `register_signal_handler`", "register `handler_function` to receive `signal_name`.", " Uses class's dbus interface self.IFACE, objects name self.name\n and objects path self.OBJ_PATH to match signal.", " :param str signal_name: The signal name;\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_properties_handler 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 register_properties_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
register `handler_function` to receive `signal_name`. Uses dbus interface IPROPERTIES and objects path self.OBJ_PATH to match 'PropertiesChanged' signal. :param function handler_function: The function to be called.
"register `handler_function` to receive `signal_name`.\n\n Uses dbus interface IPROPERTIES and objects path self.OBJ_PATH\n to match 'PropertiesChanged' signal.\n\n :param function handler_function: The function to be called."
36
false
wistful/pympris
register_properties_handler
8,179
LDU_FT/scidash/sciunit/run_nb
LDU_FT
[ "<BEGIN>\n## `mean`", "Compute a total score for each model over all the tests.", " Uses the `norm_score` attribute, since otherwise direct comparison\n across different kinds of scores would not be possible.\n<END>", "<BEGIN>\n## `to_html`", "Extend Pandas built in `to_html` method for render...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_nb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_nb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Run a notebook file. Runs the one specified by the config file, or the one at the location specificed by 'path'.
"Run a notebook file.\n\n Runs the one specified by the config file, or the one at\n the location specificed by 'path'."
128
false
scidash/sciunit
run_nb
8,180
LDU_FT/heroku/sf-suds/parse
LDU_FT
[ "<BEGIN>\n## `splitPrefix`", "Split the name into a tuple (I{prefix}, I{name}). The first element in\n the tuple is I{None} when the name does't have a prefix.\n @param name: A node name containing an optional prefix.\n @type name: basestring\n @return: A tuple containing the (2) parts of I{name}\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
SAX parse XML text. @param file: Parse a python I{file-like} object. @type file: I{file-like} object. @param string: Parse string XML. @type string: str
"SAX parse XML text.\n @param file: Parse a python I{file-like} object.\n @type file: I{file-like} object.\n @param string: Parse string XML.\n @type string: str"
38
false
heroku/sf-suds
parse
8,181
LDU_FT/Jaymon/pout/c
LDU_FT
[ "<BEGIN>\n## `inject`", "inject code into sitecustomize.py that will inject pout into the builtins\n so it will be available globally\n<END>", "<BEGIN>\n## `is_complete`", "Return True if this call string is complete, meaning it has a function\n name and balanced parens\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the c API. 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 docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the c API. 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 docum...
kind of like od -c on the command line, basically it dumps each character and info about that char since -- 2013-5-9 *args -- tuple -- one or more strings to dump
"kind of like od -c on the command line, basically it dumps each character and info\n about that char\n\n since -- 2013-5-9\n\n *args -- tuple -- one or more strings to dump"
153
false
Jaymon/pout
c
8,182
LDU_FT/tBaxter/activity-monitor/register_app_activity
LDU_FT
[ "<BEGIN>\n## `register_app_activity`", "Create watchers for models defined in settings.py.\n Once created, they will be passed over\n Activity.objects.follow_model(), which lives in managers.py\n<END>", "<BEGIN>\n## `save`", "Store a string representation of content_object as target\n and actor n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_app_activity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_app_activity 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 watchers for models defined in settings.py. Once created, they will be passed over Activity.objects.follow_model(), which lives in managers.py
"Create watchers for models defined in settings.py.\n Once created, they will be passed over\n Activity.objects.follow_model(), which lives in managers.py"
55
false
tBaxter/activity-monitor
register_app_activity
8,183
LDU_FT/thiezn/iperf3-python/protocol
LDU_FT
[ "<BEGIN>\n## `more_data`", "Check if there is more data left on the pipe", " :param pipe_out: The os pipe_out\n :rtype: bool\n<END>", "<BEGIN>\n## `read_pipe`", "Read data on a pipe", " Used to capture stdout data produced by libiperf", " :param pipe_out: The os pipe_out\n :rtype: unicode...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the protocol API. 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 protocol API. 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...
The iperf3 instance protocol valid protocols are 'tcp' and 'udp' :rtype: str
"The iperf3 instance protocol\n\n valid protocols are 'tcp' and 'udp'\n\n :rtype: str"
48
false
thiezn/iperf3-python
protocol
8,184
LDU_FT/CZ-NIC/python-rt/new_correspondence
LDU_FT
[ "<BEGIN>\n## `__request`", "General request for :term:`API`.", " :keyword selector: End part of URL which completes self.url parameter\n set during class initialization.\n E.g.: ``ticket/123456/show``\n :keyword post_data: Dictionary with POST me...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_correspondence 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 new_correspondence 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...
Obtains tickets changed by other users than the system one. :keyword queue: Queue where to search :returns: List of tickets which were last updated by other user than the system one ordered in decreasing order by LastUpdated. Each ticket is dictionary, the same as i...
"Obtains tickets changed by other users than the system one.\n\n :keyword queue: Queue where to search\n\n :returns: List of tickets which were last updated by other user than\n the system one ordered in decreasing order by LastUpdated.\n Each ticket is dictionary, the sa...
143
false
CZ-NIC/python-rt
new_correspondence
8,185
LDU_FT/ninuxorg/nodeshot/init_celery
LDU_FT
[ "<BEGIN>\n## `get_formset`", "Load Synchronizer schema to display specific fields in admin\n<END>", "<BEGIN>\n## `public_broadcaster`", "Thread which runs in parallel and constantly checks for new messages\n in the public pipe and broadcasts them publicly to all connected clients.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_celery API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_celery API. 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...
init celery app without the need of redundant code
"init celery app without the need of redundant code"
261
false
ninuxorg/nodeshot
init_celery
8,186
LDU_FT/Frojd/Fabrik/sync_remote_to_local
LDU_FT
[ "<BEGIN>\n## `backup_db`", "Backup database and associate it with current release\n<END>", "<BEGIN>\n## `restore_db`", "Restores backup back to version, uses current version by default.\n<END>", "<BEGIN>\n## `init_tasks`", "Performs basic setup before any of the tasks are run. All tasks needs to\n run ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_remote_to_local API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_remote_to_local API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sync your remote postgres database with local Example: fabrik prod sync_remote_to_local
"Sync your remote postgres database with local\n\n Example:\n fabrik prod sync_remote_to_local"
23
false
Frojd/Fabrik
sync_remote_to_local
8,187
LDU_FT/quantopian/alphalens/get_clean_factor
LDU_FT
[ "<BEGIN>\n## `factor_information_coefficient`", "Computes the Spearman Rank Correlation based Information Coefficient (IC)\n between factor values and N period forward returns for each period in\n the factor index.", " Parameters\n ----------\n factor_data : pd.DataFrame - MultiIndex\n A M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_clean_factor API. 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_clean_factor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Formats the factor data, forward return data, and group mappings into a DataFrame that contains aligned MultiIndex indices of timestamp and asset. The returned data will be formatted to be suitable for Alphalens functions. It is safe to skip a call to this function and still make use of Alphalens funct...
"Formats the factor data, forward return data, and group mappings into a\n DataFrame that contains aligned MultiIndex indices of timestamp and asset.\n The returned data will be formatted to be suitable for Alphalens functions.\n\n It is safe to skip a call to this function and still make use of Alphalens\n ...
243
false
quantopian/alphalens
get_clean_factor
8,188
LDU_FT/mardix/Yass/_get_page_content
LDU_FT
[ "<BEGIN>\n## `setup_dns`", "Setup site domain to route to static site\n<END>", "<BEGIN>\n## `create_site`", "Create a new site directory and init Yass\n<END>", "<BEGIN>\n## `init`", "Initialize Yass in the current directory\n<END>", "<BEGIN>\n## `create_page`", "Create a new page Omit the extension, i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_page_content API. 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_page_content API. 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 page content without the frontmatter
"Get the page content without the frontmatter"
36
false
mardix/Yass
_get_page_content
8,189
LDU_FT/jantman/awslimitchecker/_find_usage_subnets
LDU_FT
[ "<BEGIN>\n## `_last_step`", "If ``self._savepath`` doesn't exist, can't be read as JSON, or doesn't\n match ``VERSION``, return 0. Otherwise, return the step which that file\n lists as the last-run step for this release.", " :return: last-run step from the release or 0\n :rtype: int\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_usage_subnets 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 _find_usage_subnets 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...
find usage for Subnets; return dict of SubnetId to AZ
"find usage for Subnets; return dict of SubnetId to AZ"
372
false
jantman/awslimitchecker
_find_usage_subnets
8,190
LDU_FT/Parisson/TimeSide/write_metadata
LDU_FT
[ "<BEGIN>\n## `JSON_NumpyArrayEncoder`", "Define Specialize JSON encoder for numpy array\n<END>", "<BEGIN>\n## `to_hdf5`", "Save a dictionnary-like object inside a h5 file group\n<END>", "<BEGIN>\n## `render`", "Render a matplotlib figure from the analyzer result", " Return the figure, use fig....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 ex...
Write all ID3v2.4 tags to file from self.metadata
"Write all ID3v2.4 tags to file from self.metadata"
88
false
Parisson/TimeSide
write_metadata
8,191
LDU_FT/pipermerriam/flex/generate_value_processor
LDU_FT
[ "<BEGIN>\n## `main`", "For a given command line supplied argument, negotiate the content, parse\n the schema and then return any issues to stdout or if no schema issues,\n return success exit code.\n<END>", "<BEGIN>\n## `host_validator`", "From: http://stackoverflow.com/questions/2532053/validate-a-host...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_value_processor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_value_processor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Create a callable that will take the string value of a header and cast it to the appropriate type. This can involve: - splitting a header of type 'array' by its delimeters. - type casting the internal elements of the array.
"Create a callable that will take the string value of a header and cast it\n to the appropriate type. This can involve:\n\n - splitting a header of type 'array' by its delimeters.\n - type casting the internal elements of the array."
112
false
pipermerriam/flex
generate_value_processor
8,192
LDU_FT/django-import-export/django-import-export/delete_instance
LDU_FT
[ "<BEGIN>\n## `has_import_permission`", "Returns whether a request has import permission.\n<END>", "<BEGIN>\n## `get_import_resource_kwargs`", "Prepares/returns kwargs used when initializing Resource\n<END>", "<BEGIN>\n## `process_import`", "Perform the actual import action (after the user has confirmed th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_instance API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Calls :meth:`instance.delete` as long as ``dry_run`` is not set.
"Calls :meth:`instance.delete` as long as ``dry_run`` is not set."
84
false
django-import-export/django-import-export
delete_instance
8,193
LDU_FT/miLibris/flask-rest-jsonapi/filters
LDU_FT
[ "<BEGIN>\n## `_get_key_values`", "Return a dict containing key / values items for a given key, used for items like filters, page, etc.", " :param str name: name of the querystring parameter\n :return dict: a dict of key / values items\n<END>", "<BEGIN>\n## `querystring`", "Return original quer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filters API. 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 filters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return filters from query string. :return list: filter information
"Return filters from query string.\n\n :return list: filter information"
149
false
miLibris/flask-rest-jsonapi
filters
8,194
LDU_FT/AmesCornish/buttersink/skipDryRun
LDU_FT
[ "<BEGIN>\n## `update`", "Update self and parent with intermediate progress.\n<END>", "<BEGIN>\n## `close`", "Stop overwriting display, or update parent.\n<END>", "<BEGIN>\n## `transfer`", "Transfer (large) data from sender to receiver.\n<END>", "<BEGIN>\n## `display`", "Friendly string for volume, usi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the skipDryRun API. 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 skipDryRun API. 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 logging function. When logging function called, will return True if action should be skipped. Log will indicate if skipped because of dry run.
"Return logging function.\n\n When logging function called, will return True if action should be skipped.\n Log will indicate if skipped because of dry run."
148
false
AmesCornish/buttersink
skipDryRun
8,195
LDU_FT/zeroSteiner/smoke-zephyr/format_bytes_size
LDU_FT
[ "<BEGIN>\n## `normalize_job_id`", "Convert a value to a job id.", "\t:param job_id: Value to convert.\n\t:type job_id: int, str\n\t:return: The job id.\n\t:rtype: :py:class:`uuid.UUID`\n<END>", "<BEGIN>\n## `now`", "Return a :py:class:`datetime.datetime` instance representing the current time.", "\t\t:rty...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_bytes_size API. 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 format_bytes_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Take a number of bytes and convert it to a human readable number. :param int val: The number of bytes to format. :return: The size in a human readable format. :rtype: str
"Take a number of bytes and convert it to a human readable number.\n\n\t:param int val: The number of bytes to format.\n\t:return: The size in a human readable format.\n\t:rtype: str"
116
false
zeroSteiner/smoke-zephyr
format_bytes_size
8,196
LDU_FT/noxdafox/pebble/_function_lookup
LDU_FT
[ "<BEGIN>\n## `waitforqueues`", "Waits for one or more *Queue* to be ready or until *timeout* expires.", " *queues* is a list containing one or more *Queue.Queue* objects.\n If *timeout* is not None the function will block\n for the specified amount of seconds.", " The function returns a list conta...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _function_lookup API. 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 _function_lookup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Searches the function between the registered ones. If not found, it imports the module forcing its registration.
"Searches the function between the registered ones.\n If not found, it imports the module forcing its registration."
83
false
noxdafox/pebble
_function_lookup
8,197
LDU_FT/peopledoc/workalendar/get_shifted_holidays
LDU_FT
[ "<BEGIN>\n## `get_variable_days`", "Add Late Summer holiday (First Monday of September)\n<END>", "<BEGIN>\n## `iso_register`", "Registers Calendar class as country or region in IsoRegistry.", " Registered country must set class variables ``iso`` using this decorator.", " >>> from workalendar.core im...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_shifted_holidays 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_shifted_holidays API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Taking a list of existing holidays, yield a list of 'shifted' days if the holiday falls on SUN.
"Taking a list of existing holidays, yield a list of 'shifted' days if\n the holiday falls on SUN."
106
false
peopledoc/workalendar
get_shifted_holidays
8,198
LDU_FT/Autodesk/pyccc/getclosurevars
LDU_FT
[ "<BEGIN>\n## `persistent_id`", "Tags objects with a persistent ID, but do NOT emit it\n<END>", "<BEGIN>\n## `open`", "Return file-like object (actually opens the file for this class)\n<END>", "<BEGIN>\n## `_open_tmpfile`", "Open a temporary, unique file in CACHEDIR (/tmp/cyborgcache) by default.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getclosurevars API. 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 getclosurevars API. 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 mapping of free variables to their current values. Returns a named tuple of dicts mapping the current nonlocal, global and builtin references as seen by the body of the function. A final set of unbound names that could not be resolved is also provided. Note: Modified function from the ...
"Get the mapping of free variables to their current values.\n\n Returns a named tuple of dicts mapping the current nonlocal, global\n and builtin references as seen by the body of the function. A final\n set of unbound names that could not be resolved is also provided.\n\n Note:\n Modified function f...
114
false
Autodesk/pyccc
getclosurevars
8,199
LDU_FT/gitenberg-dev/gitberg/download_rdf
LDU_FT
[ "<BEGIN>\n## `remote_path`", "turns an ebook_id into a path on PG's server(s)\n 4443 -> 4/4/4/4443/\n<END>", "<BEGIN>\n## `make`", "turn fetched files into a local repo, make auxiliary files\n<END>", "<BEGIN>\n## `push`", "create a github repo and push the local repo into it\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_rdf API. 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 download_rdf API. 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...
Ensures a fresh-enough RDF file is downloaded and extracted. Returns True on error.
"Ensures a fresh-enough RDF file is downloaded and extracted.\n\n Returns True on error."
51
false
gitenberg-dev/gitberg
download_rdf
8,200
LDU_FT/jeffrimko/Auxly/move
LDU_FT
[ "<BEGIN>\n## `silent`", "Calls the given shell command. Output will not be displayed. Returns the\n status code.", " **Examples**:\n ::\n auxly.shell.silent(\"ls\")\n<END>", "<BEGIN>\n## `has`", "Returns true if the give shell command is available.", " **Examples**:\n ::\n aux...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move API. 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 move API. 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...
Moves the file or directory at `srcpath` to `dstpath`. Returns True if successful, False otherwise.
"Moves the file or directory at `srcpath` to `dstpath`. Returns True if\n successful, False otherwise."
65
false
jeffrimko/Auxly
move
8,201
LDU_FT/JoelBender/bacpypes/indication
LDU_FT
[ "<BEGIN>\n## `decode_packet`", "decode the data, return some kind of PDU.\n<END>", "<BEGIN>\n## `decode_file`", "Given the name of a pcap file, open it, decode the contents and yield each packet.\n<END>", "<BEGIN>\n## `stop`", "Call to stop running, may be called with a signum and frame\n parameter if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indication API. 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 indication API. 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...
Direct this PDU to the appropriate server.
"Direct this PDU to the appropriate server."
376
false
JoelBender/bacpypes
indication
8,202
LDU_FT/ShadowBlip/Neteria/legal_check
LDU_FT
[ "<BEGIN>\n## `listen`", "Starts the client listener to listen for server responses.", " Args:\n None", " Returns:\n None\n<END>", "<BEGIN>\n## `retransmit`", "Processes messages that have been delivered from the transport\n protocol.", " Args:\n dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the legal_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the legal_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
This method handles event legality check messages from the server. Args: message (dict): The unserialized legality dictionary received from the server. Returns: None Examples: >>> message
"This method handles event legality check messages from the server.\n\n Args:\n message (dict): The unserialized legality dictionary received from\n the server.\n\n Returns:\n None\n\n Examples:\n >>> message"
122
false
ShadowBlip/Neteria
legal_check
8,203
LDU_FT/wrobstory/vincent/marks
LDU_FT
[ "<BEGIN>\n## `fill_opacity`", "ValueRef : int or float, opacity of the fill (0 to 1)\n<END>", "<BEGIN>\n## `stroke_width`", "ValueRef : int, width of the stroke in pixels\n<END>", "<BEGIN>\n## `stroke_opacity`", "ValueRef : number, opacity of the stroke (0 to 1)\n<END>", "<BEGIN>\n## `size`", "ValueRe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marks API. 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 marks API. 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...
list or KeyedList of ``Mark`` : Mark definitions Marks are the visual objects (such as lines, bars, etc.) that represent the data in the visualization space. See the :class:`Mark` class for details.
"list or KeyedList of ``Mark`` : Mark definitions\n\n Marks are the visual objects (such as lines, bars, etc.) that\n represent the data in the visualization space. See the :class:`Mark`\n class for details."
139
false
wrobstory/vincent
marks
8,204
LDU_FT/portfoliome/foil/_
LDU_FT
[ "<BEGIN>\n## `_`", "ISO 8601 format. Interprets naive datetime as UTC with zulu suffix.\n<END>", "<BEGIN>\n## `create_key_filter`", "Generate combinations of key, value pairs for each key in properties.", " Examples\n --------\n properties = {'ent': ['geo_rev', 'supply_chain'], 'own', 'fi'}\n >>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ API. 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 docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ API. 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 docum...
ISO 8601 format. Interprets naive datetime as UTC with zulu suffix.
"ISO 8601 format. Interprets naive datetime as UTC with zulu suffix."
89
false
portfoliome/foil
_
8,205
LDU_FT/KrishnaswamyLab/graphtools/build_landmark_op
LDU_FT
[ "<BEGIN>\n## `set_params`", "Set parameters on this object", " Safe setter method - attributes should not be modified directly as some\n changes are not valid.\n Valid parameters:\n - n_jobs\n - random_state\n - verbose\n Invalid parameters: (these would require ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_landmark_op API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_landmark_op API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Build the landmark operator Calculates spectral clusters on the kernel, and calculates transition probabilities between cluster centers by using transition probabilities between samples assigned to each cluster.
"Build the landmark operator\n\n Calculates spectral clusters on the kernel, and calculates transition\n probabilities between cluster centers by using transition probabilities\n between samples assigned to each cluster."
207
false
KrishnaswamyLab/graphtools
build_landmark_op
8,206
LDU_FT/lmjohns3/downhill/log_param
LDU_FT
[ "<BEGIN>\n## `build`", "Build and return an optimizer for the rosenbrock function.", " In downhill, an optimizer can be constructed using the build() top-level\n function. This function requires several Theano quantities such as the loss\n being optimized and the parameters to update during optimizatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_param API. 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 log_param API. 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...
Log a parameter value to the console. Parameters ---------- name : str Name of the parameter being logged. value : any Value of the parameter being logged.
"Log a parameter value to the console.\n\n Parameters\n ----------\n name : str\n Name of the parameter being logged.\n value : any\n Value of the parameter being logged."
79
false
lmjohns3/downhill
log_param
8,207
LDU_FT/elastic/elasticsearch-py/update_model_snapshot
LDU_FT
[ "<BEGIN>\n## `clear_cursor`", "`<Clear SQL cursor>`_", " :arg body: Specify the cursor value in the `cursor` element to clean the\n cursor.\n<END>", "<BEGIN>\n## `query`", "`<Execute SQL>`_", " :arg body: Use the `query` element to start a query. Use the `cursor`\n elem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_model_snapshot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_model_snapshot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
`<http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html>`_ :arg job_id: The ID of the job to fetch :arg snapshot_id: The ID of the snapshot to update :arg body: The model snapshot properties to update
"`<http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html>`_\n\n :arg job_id: The ID of the job to fetch\n :arg snapshot_id: The ID of the snapshot to update\n :arg body: The model snapshot properties to update"
528
false
elastic/elasticsearch-py
update_model_snapshot
8,208
LDU_FT/frawau/aiolifx/resp_set_label
LDU_FT
[ "<BEGIN>\n## `mac_to_ipv6_linklocal`", "Translate a MAC address into an IPv6 address in the prefixed network.", " This function calculates the EUI (Extended Unique Identifier) from the given\n MAC address and prepend the needed prefix to come up with a valid IPv6 address.\n The default prefix is the li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resp_set_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resp_set_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 ex...
Default callback for get_label/set_label
"Default callback for get_label/set_label"
134
false
frawau/aiolifx
resp_set_label
8,209
LDU_FT/fhcrc/seqmagick/seq_include
LDU_FT
[ "<BEGIN>\n## `action`", "Run mogrify. Most of the action is in convert, this just creates a temp\n file for the output.\n<END>", "<BEGIN>\n## `all_unambiguous`", "All unambiguous versions of sequence_str\n<END>", "<BEGIN>\n## `moving_average`", "From Python collections module documentation", " mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seq_include API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seq_include API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Filter any sequences who's seq does not match the filter. Ignore case.
"Filter any sequences who's seq does not match the filter. Ignore case."
150
false
fhcrc/seqmagick
seq_include
8,210
LDU_FT/thanethomson/statik/copy_file_if_modified
LDU_FT
[ "<BEGIN>\n## `list_files`", "Lists all of the files in the given base directory, optionally only\n including whose extension(s) match the ext string/list of strings.\n This is non-recursive.", " Args:\n base_path: The directory in which to search.\n ext: The extension(s) to match in the g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_file_if_modified 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 copy_file_if_modified API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Only copies the file from the source path to the destination path if it doesn't exist yet or it has been modified. Intended to provide something of an optimisation when a project has large trees of assets.
"Only copies the file from the source path to the destination path if it doesn't exist yet or it has\n been modified. Intended to provide something of an optimisation when a project has large trees of assets."
117
false
thanethomson/statik
copy_file_if_modified
8,211
LDU_FT/jim-easterbrook/pywws/monitor
LDU_FT
[ "<BEGIN>\n## `read_data`", "Receive data from the device.", " If the read fails for any reason, an :obj:`IOError` exception\n is raised.", " :param size: the number of bytes to read.", " :type size: int", " :return: the data received.", " :rtype: list(int)\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the monitor API. 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 monitor API. 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...
Given an iterator, yields data from it but prints progress every 10,000 records
"Given an iterator, yields data from it\n but prints progress every 10,000 records"
210
false
jim-easterbrook/pywws
monitor
8,212
LDU_FT/spyder-ide/spyder-notebook/create_new_client
LDU_FT
[ "<BEGIN>\n## `evaluate`", "Evaluate script in page frame.", " :param script: The script to evaluate.\n<END>", "<BEGIN>\n## `click`", "Click the targeted element.", " :param selector: A CSS3 selector to targeted element.\n :param btn: The number of mouse button.\n 0 - left b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_new_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_new_client API. 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 a new notebook or load a pre-existing one.
"Create a new notebook or load a pre-existing one."
45
false
spyder-ide/spyder-notebook
create_new_client
8,213
LDU_FT/PMEAL/OpenPNM/ball_and_stick
LDU_FT
[ "<BEGIN>\n## `ordinary_diffusion`", "r\"\"\"\n Calculate the diffusive conductance of conduits in network, where a\n conduit is ( 1/2 pore - full throat - 1/2 pore ). See the notes section.", " Parameters\n ----------\n target : OpenPNM Object\n The object which this model is associated wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ball_and_stick API. 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 ball_and_stick API. 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...
r""" Calculate conduit shape factors for hydraulic conductance, assuming pores and throats are spheres (balls) and constant cross-section cylinders (sticks). Parameters ---------- target : OpenPNM Object The object which this model is associated with. This controls the length of...
"r\"\"\"\n Calculate conduit shape factors for hydraulic conductance, assuming\n pores and throats are spheres (balls) and constant cross-section\n cylinders (sticks).\n\n Parameters\n ----------\n target : OpenPNM Object\n The object which this model is associated with. This controls the\n ...
1,872
true
PMEAL/OpenPNM
ball_and_stick
8,214
LDU_FT/getsentry/rb/_release_command_buffer
LDU_FT
[ "<BEGIN>\n## `add_host`", "Adds a new host to the cluster. This is only really useful for\n unittests as normally hosts are added through the constructor and\n changes after the cluster has been used for the first time are\n unlikely to make sense.\n<END>", "<BEGIN>\n## `remove_host`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _release_command_buffer 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 _release_command_buffer 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 is called by the command buffer when it closes.
"This is called by the command buffer when it closes."
87
false
getsentry/rb
_release_command_buffer
8,215
LDU_FT/BlueHack-Core/blueforge/delete_files
LDU_FT
[ "<BEGIN>\n## `check_and_create_directories`", "Check and create directories.", " If the directory is exist, It will remove it and create new folder.", " :type paths: Array of string or string\n :param paths: the location of directory\n<END>", "<BEGIN>\n## `delete_directories`", "Delet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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 extr...
Delete files. If the file is exist, It will delete it. :type paths: Array of string or string :param paths: the location of file
"Delete files.\n\n If the file is exist, It will delete it.\n\n :type paths: Array of string or string\n :param paths: the location of file"
22
false
BlueHack-Core/blueforge
delete_files
8,216
LDU_FT/pecan/pecan/make_ns
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 make_ns API. 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 make_ns API. 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 the `lazily` created template namespace.
"Returns the `lazily` created template namespace."
157
false
pecan/pecan
make_ns
8,217
LDU_FT/ionelmc/python-cogen/process
LDU_FT
[ "<BEGIN>\n## `run_op`", "Handle the operation:", " * if coro is in STATE_RUNNING, send or throw the given op\r", " * if coro is in STATE_NEED_INIT, call the init function and if it\r\n doesn't return a generator, set STATE_COMPLETED and set the result\r\n to whatever the functi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
If there aren't enough coroutines waiting for the signal as the recipicient param add the calling coro in another queue to be activated later, otherwise activate the waiting coroutines.
"If there aren't enough coroutines waiting for the signal as the\r\n recipicient param add the calling coro in another queue to be activated\r\n later, otherwise activate the waiting coroutines."
175
false
ionelmc/python-cogen
process
8,218
LDU_FT/kontron/python-aardvark/i2c_master_read
LDU_FT
[ "<BEGIN>\n## `find_devices`", "Return a list of dictionaries. Each dictionary represents one device.", " The dictionary contains the following keys: port, unique_id and in_use.\n `port` can be used with :func:`open`. `serial_number` is the serial number\n of the device (and can also be used with :func:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the i2c_master_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the i2c_master_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 e...
Make an I2C read access. The given I2C device is addressed and clock cycles for `length` bytes are generated. A short read will occur if the device generates an early NAK. The transaction is finished with an I2C stop condition unless the I2C_NO_STOP flag is set.
"Make an I2C read access.\n\n The given I2C device is addressed and clock cycles for `length` bytes\n are generated. A short read will occur if the device generates an early\n NAK.\n\n The transaction is finished with an I2C stop condition unless the\n I2C_NO_STOP flag is set."
72
false
kontron/python-aardvark
i2c_master_read
8,219
LDU_FT/django-crispy-forms/django-crispy-forms/map
LDU_FT
[ "<BEGIN>\n## `do_uni_form`", "You need to pass in at least the form/formset object, and can also pass in the\n optional `crispy_forms.helpers.FormHelper` object.", " helper (optional): A `crispy_forms.helper.FormHelper` object.", " Usage::", " {% load crispy_tags %}\n {% crispy form f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Iterates over layout objects pointed in `self.slice` executing `function` on them It passes `function` last layout object
"Iterates over layout objects pointed in `self.slice` executing `function` on them\n It passes `function` last layout object"
89
false
django-crispy-forms/django-crispy-forms
map
8,220
LDU_FT/thecynic/pylutron/register_id
LDU_FT
[ "<BEGIN>\n## `_send_locked`", "Sends the specified command to the lutron controller.", " Assumes self._lock is held.\n<END>", "<BEGIN>\n## `_do_login_locked`", "Executes the login procedure (telnet) as well as setting up some\n connection defaults like turning off the prompt, etc.\n<END>", "<BEGIN>\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Registers an object (through its integration id) to receive update notifications. This is the core mechanism how Output and Keypad objects get notified when the controller sends status updates.
"Registers an object (through its integration id) to receive update\n notifications. This is the core mechanism how Output and Keypad objects get\n notified when the controller sends status updates."
73
false
thecynic/pylutron
register_id
8,221
LDU_FT/BYU-Hydroinformatics/HydroErr/h1_mhe
LDU_FT
[ "<BEGIN>\n## `me`", "Compute the mean error of the simulated and observed data.", " .. image:: /pictures/ME.png", " **Range:** -inf < MAE < inf, data units, closer to zero is better, indicates bias.", " **Notes:** The mean error (ME) measures the difference between the simulated data and the\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the h1_mhe API. 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 h1_mhe API. 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 ...
Compute the H1 mean error. .. image:: /pictures/H1.png .. image:: /pictures/MHE.png **Range:** **Notes:** Parameters ---------- simulated_array: one dimensional ndarray An array of simulated data from the time series. observed_array: one dimensional ndarray An array ...
"Compute the H1 mean error.\n\n .. image:: /pictures/H1.png\n .. image:: /pictures/MHE.png\n\n **Range:**\n\n **Notes:**\n\n Parameters\n ----------\n simulated_array: one dimensional ndarray\n An array of simulated data from the time series.\n\n observed_array: one dimensional ndarray\n ...
343
false
BYU-Hydroinformatics/HydroErr
h1_mhe
8,222
LDU_FT/materialsproject/pymatgen/dft_task
LDU_FT
[ "<BEGIN>\n## `ion_or_solid_comp_object`", "Returns either an ion object or composition object given\n a formula.", " Args:\n formula: String formula. Eg. of ion: NaOH(aq), Na[+];\n Eg. of solid: Fe2O3(s), Fe(s), Na2O", " Returns:\n Composition/Ion object\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dft_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dft_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
A class method for quickly creating DFT tasks with optional cosmo parameter . Args: mol: Input molecule xc: Exchange correlation to use. \\*\\*kwargs: Any of the other kwargs supported by NwTask. Note the theory is always "dft" for a dft task.
"A class method for quickly creating DFT tasks with optional\n cosmo parameter .\n\n Args:\n mol: Input molecule\n xc: Exchange correlation to use.\n \\\\*\\\\*kwargs: Any of the other kwargs supported by NwTask. Note the\n theory is always \"dft\" for a dft...
6,523
true
materialsproject/pymatgen
dft_task
8,223
LDU_FT/PyCQA/pydocstyle/_create_run_config
LDU_FT
[ "<BEGIN>\n## `error_lineno`", "Get the line number with which to report violations.\n<END>", "<BEGIN>\n## `source`", "Return the source code for the definition.\n<END>", "<BEGIN>\n## `is_public`", "Return True iff this function should be considered public.\n<END>", "<BEGIN>\n## `is_magic`", "Return Tr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_run_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 _create_run_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...
Create a `RunConfiguration` object from `options`.
"Create a `RunConfiguration` object from `options`."
183
false
PyCQA/pydocstyle
_create_run_config
8,224
LDU_FT/lra/mackup/can_file_be_synced_on_current_platform
LDU_FT
[ "<BEGIN>\n## `getFilepaths`", "Get home and mackup filepaths for given file", " Args:\n filename (str)", " Returns:\n home_filepath, mackup_filepath (str, str)\n<END>", "<BEGIN>\n## `backup`", "Backup the application config files.", " Algorithm:\n if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_file_be_synced_on_current_platform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_file_be_synced_on_current_platform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
Check if the given path can be synced locally. Check if it makes sense to sync the file at the given path on the current platform. For now we don't sync any file in the ~/Library folder on GNU/Linux. There might be other exceptions in the future. Args: (str): Path to the file or folder to ...
"Check if the given path can be synced locally.\n\n Check if it makes sense to sync the file at the given path on the current\n platform.\n For now we don't sync any file in the ~/Library folder on GNU/Linux.\n There might be other exceptions in the future.\n\n Args:\n (str): Path to the file or f...
116
false
lra/mackup
can_file_be_synced_on_current_platform
8,225
LDU_FT/Parsely/schemato/parse_ontology
LDU_FT
[ "<BEGIN>\n## `validate`", "Iterate over all triples in the graph and validate each one\n appropriately\n<END>", "<BEGIN>\n## `_check_triple`", "compare triple to ontology, return error or None\n<END>", "<BEGIN>\n## `_validate_class`", "return error if class `cl` is not found in the ontology\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_ontology API. 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 parse_ontology API. 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...
place the ontology graph into a set of custom data structures for use by the validator
"place the ontology graph into a set of custom data structures\n for use by the validator"
32
false
Parsely/schemato
parse_ontology
8,226
LDU_FT/TankerHQ/python-cli-ui/info_progress
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 info_progress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info_progress API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Display info progress in percent. :param value: the current value :param max_value: the max value :param prefix: the prefix message to print
"Display info progress in percent.\n\n :param value: the current value\n :param max_value: the max value\n :param prefix: the prefix message to print"
35
false
TankerHQ/python-cli-ui
info_progress
8,227
LDU_FT/Jaza/flask-restplus-patched/perform_patch
LDU_FT
[ "<BEGIN>\n## `resolve_object`", "A helper decorator to resolve object instance from arguments (e.g. identity).", " Example:\n >>> @namespace.route('/<int:user_id>')\n ... class MyResource(Resource):\n ... @namespace.resolve_object(\n ... object_arg_name='user',\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perform_patch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the perform_patch API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Performs all necessary operations by calling class methods with corresponding names.
"Performs all necessary operations by calling class methods with\n corresponding names."
30
false
Jaza/flask-restplus-patched
perform_patch
8,228
LDU_FT/mojaie/chorus/formula_html
LDU_FT
[ "<BEGIN>\n## `draw`", "Draw molecule structure image.", " Args:\n canvas: draw.drawable.Drawable\n mol: model.graphmol.Compound\n<END>", "<BEGIN>\n## `smiles_to_compound`", "Convert SMILES text to compound object", " Raises:\n ValueError: SMILES with unsupported format\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formula_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formula_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Chemical formula HTML Args: reversed (bool): reversed text for leftmost atom groups
"Chemical formula HTML\n\n Args:\n reversed (bool): reversed text for leftmost atom groups"
158
false
mojaie/chorus
formula_html
8,229
LDU_FT/SUNCAT-Center/CatHub/db_to_df
LDU_FT
[ "<BEGIN>\n## `molecules2symbols`", "Take a list of molecules and return just a list of atomic\n symbols, possibly adding hydrogen\n<END>", "<BEGIN>\n## `construct_reference_system`", "Take a list of symbols and construct gas phase\n references system, when possible avoiding O2.\n Candidates can be re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db_to_df API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the db_to_df API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Transforms database to data frame. Parameters ---------- db_file : Path to database slabs : Which metals (slabs) to select. facet : Which facets to select. Returns ------- df : Data frame.
"Transforms database to data frame.\n\n Parameters\n ----------\n db_file : Path to database\n slabs : Which metals (slabs) to select.\n facet : Which facets to select.\n\n Returns\n -------\n df : Data frame."
178
false
SUNCAT-Center/CatHub
db_to_df
8,230
LDU_FT/codelv/enaml-native/multi_future
LDU_FT
[ "<BEGIN>\n## `init_layout`", "Initialize the layout of the toolkit widget.", " This method is called during the bottom-up pass. This method\n should initialize the layout of the widget. The child widgets\n will be fully initialized and layed out when this is called.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_future API. 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 multi_future API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Wait for multiple asynchronous futures in parallel. This function is similar to `multi`, but does not support `YieldPoints <YieldPoint>`. .. versionadded:: 4.0 .. versionchanged:: 4.2 If multiple ``Futures`` fail, any exceptions after the first (which is raised) will be logged. Added th...
"Wait for multiple asynchronous futures in parallel.\n\n This function is similar to `multi`, but does not support\n `YieldPoints <YieldPoint>`.\n\n .. versionadded:: 4.0\n\n .. versionchanged:: 4.2\n If multiple ``Futures`` fail, any exceptions after the first (which is\n raised) will be logged...
573
false
codelv/enaml-native
multi_future
8,231
LDU_FT/bloomberg/bqplot/register_mark
LDU_FT
[ "<BEGIN>\n## `register_mark`", "Returns a decorator registering a mark class in the mark type registry.", " If no key is provided, the class name is used as a key. A key is provided\n for each core bqplot mark so that the frontend can use\n this key regardless of the kernel language.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_mark API. 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 register_mark API. 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...
Returns a decorator registering a mark class in the mark type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot mark so that the frontend can use this key regardless of the kernel language.
"Returns a decorator registering a mark class in the mark type registry.\n\n If no key is provided, the class name is used as a key. A key is provided\n for each core bqplot mark so that the frontend can use\n this key regardless of the kernel language."
142
false
bloomberg/bqplot
register_mark
8,232
LDU_FT/MoseleyBioinformaticsLab/ctfile/_to_ctfile
LDU_FT
[ "<BEGIN>\n## `tokenizer`", "A lexical analyzer for the `CTfile` formatted files.", " :param str text: `CTfile` formatted text.\n :return: Tuples of data.\n :rtype: py:class:`~collections.namedtuple`\n<END>", "<BEGIN>\n## `_molfile`", "Process ``Molfile``.", " :param stream: Queue containing li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_ctfile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_ctfile API. 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...
Convert :class:`~ctfile.ctfile.CTfile` into `CTfile` formatted string. :return: ``CTfile`` formatted string. :rtype: :py:class:`str`.
"Convert :class:`~ctfile.ctfile.CTfile` into `CTfile` formatted string.\n\n :return: ``CTfile`` formatted string.\n :rtype: :py:class:`str`."
93
false
MoseleyBioinformaticsLab/ctfile
_to_ctfile
8,233
LDU_FT/kennethreitz/requests-html/raw_html
LDU_FT
[ "<BEGIN>\n## `user_agent`", "Returns an apparently legit user-agent, if not requested one of a specific\n style. Defaults to a Chrome-style User-Agent.\n<END>", "<BEGIN>\n## `raw_html`", "Bytes representation of the HTML content.\n (`learn more <http://www.diveintopython3.net/strings.html>`_).\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Bytes representation of the HTML content. (`learn more <http://www.diveintopython3.net/strings.html>`_).
"Bytes representation of the HTML content.\n (`learn more <http://www.diveintopython3.net/strings.html>`_)."
58
false
kennethreitz/requests-html
raw_html
8,234
LDU_FT/seryl/Python-Cotendo/doFlush
LDU_FT
[ "<BEGIN>\n## `show`", "This could use some love, it's currently here as reference\n<END>", "<BEGIN>\n## `CreateRecord`", "Create a record of type (record_type) and fill it with the given\n dict of results\n<END>", "<BEGIN>\n## `cdn_get_conf`", "Returns the existing origin configuration and token fr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doFlush API. 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 doFlush API. 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...
doFlush method enables specific content to be "flushed" from the cache servers. * Note: The flush API is limited to 1,000 flush invocations per hour (each flush invocation may include several objects). *
"doFlush method enables specific content to be \"flushed\" from the\n cache servers.\n\n * Note: The flush API is limited to 1,000 flush invocations per hour\n (each flush invocation may include several objects). *"
22
false
seryl/Python-Cotendo
doFlush
8,235
LDU_FT/dicaso/leopard/outputZip
LDU_FT
[ "<BEGIN>\n## `makeFigFromFile`", "Renders an image in a matplotlib figure, so it can be added to reports \n args and kwargs are passed to plt.subplots\n<END>", "<BEGIN>\n## `append`", "Append a new section\n If toSection is None, section is appended to the main section/subs list.\n Else if to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the outputZip API. 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 outputZip API. 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...
Outputs the report in a zip container. Figs and tabs as pngs and excells. Args: figtype (str): Figure type of images in the zip folder.
"Outputs the report in a zip container.\n Figs and tabs as pngs and excells.\n\n Args:\n figtype (str): Figure type of images in the zip folder."
26
false
dicaso/leopard
outputZip
8,236
LDU_FT/RusticiSoftware/TinCanPython/retrieve_agent_profile
LDU_FT
[ "<BEGIN>\n## `_make_cls`", "If value is not instance of self._cls, converts and returns\n it. Otherwise, returns value.", " :param value: the thing to make a self._cls from\n :rtype self._cls\n<END>", "<BEGIN>\n## `_send_request`", "Establishes connection and returns http response based...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_agent_profile 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 retrieve_agent_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Retrieve agent profile with the specified parameters :param agent: Agent object of the desired agent profile :type agent: :class:`tincan.agent.Agent` :param profile_id: UUID of the desired agent profile :type profile_id: str | unicode :return: LRS Response object with an agent p...
"Retrieve agent profile with the specified parameters\n\n :param agent: Agent object of the desired agent profile\n :type agent: :class:`tincan.agent.Agent`\n :param profile_id: UUID of the desired agent profile\n :type profile_id: str | unicode\n :return: LRS Response object with an ...
121
false
RusticiSoftware/TinCanPython
retrieve_agent_profile
8,237
LDU_FT/ikegami-yukino/madoka-python/shrink
LDU_FT
[ "<BEGIN>\n## `create`", "Create new sketch\n Params:\n <int> width\n <str> path\n <int> flags\n <int> seed\n<END>", "<BEGIN>\n## `get`", "Add key-value\n Params:\n <str> key\n <int> key_length\n Return:\n <int> k...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shrink API. 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 shrink API. 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 ...
Shrink sketch Params: <Sketch> src_sketch <int> width <str> path <int> flags
"Shrink sketch\n Params:\n <Sketch> src_sketch\n <int> width\n <str> path\n <int> flags"
26
false
ikegami-yukino/madoka-python
shrink
8,238
LDU_FT/tamasgal/km3pipe/_parse_summary_frames
LDU_FT
[ "<BEGIN>\n## `count_multiplicities`", "Calculate an array of multiplicities and corresponding coincidence IDs", " Note that this algorithm does not take care about DOM IDs, so it has to\n be fed with DOM hits.", " Parameters\n ----------\n times: array[float], shape=(n,)\n Hit times for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_summary_frames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_summary_frames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Iterate through the byte data and fill the summary_frames
"Iterate through the byte data and fill the summary_frames"
418
false
tamasgal/km3pipe
_parse_summary_frames
8,239
LDU_FT/TheGhouls/oct/from_oct
LDU_FT
[ "<BEGIN>\n## `copy_config`", "Copy current config file to output directory\n<END>", "<BEGIN>\n## `run`", "Start an oct project", " :param Namespace args: the commande-line arguments\n<END>", "<BEGIN>\n## `from_template`", "Create a new oct project from existing template", " :param Namespace args...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_oct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_oct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Create a new oct project :param Namespace args: the command line arguments
"Create a new oct project\n\n :param Namespace args: the command line arguments"
101
false
TheGhouls/oct
from_oct
8,240
LDU_FT/bitprophet/releases/issues_role
LDU_FT
[ "<BEGIN>\n## `add_family`", "Expand to a new release line with given ``major_number``.", " This will flesh out mandatory buckets like ``unreleased_bugfix`` and do\n other necessary bookkeeping.\n<END>", "<BEGIN>\n## `has_stable_releases`", "Returns whether stable (post-0.x) releases seem to ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the issues_role API. 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 issues_role API. 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...
Use: :issue|bug|feature|support:`ticket_number` When invoked as :issue:, turns into just a "#NN" hyperlink to `releases_issue_uri`. When invoked otherwise, turns into "[Type] <#NN hyperlink>: ". Spaces present in the "ticket number" are used as fields for keywords (major, backported) and/or specs...
"Use: :issue|bug|feature|support:`ticket_number`\n\n When invoked as :issue:, turns into just a \"#NN\" hyperlink to\n `releases_issue_uri`.\n\n When invoked otherwise, turns into \"[Type] <#NN hyperlink>: \".\n\n Spaces present in the \"ticket number\" are used as fields for keywords\n (major, backporte...
76
false
bitprophet/releases
issues_role
8,241
LDU_FT/PyAr/fades/create_venv
LDU_FT
[ "<BEGIN>\n## `consolidate_dependencies`", "Parse files, get deps and merge them. Deps read later overwrite those read earlier.\n<END>", "<BEGIN>\n## `decide_child_program`", "Decide which the child program really is (if any).\n<END>", "<BEGIN>\n## `detect_inside_virtualenv`", "Tell if fades is running ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_venv API. 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 create_venv API. 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...
Create a new virtualvenv with the requirements of this script.
"Create a new virtualvenv with the requirements of this script."
85
false
PyAr/fades
create_venv
8,242
LDU_FT/feliphebueno/Rinzler/set_end_point_uri
LDU_FT
[ "<BEGIN>\n## `authenticate`", "Your AuhtService should override this method for request authentication, otherwise means no authentication.\n :param request: HttpRequest Django's HttpRequest object\n :param auth_route: str User's resqueted route\n :param actual_params: User's url parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_end_point_uri API. 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_end_point_uri API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Extracts the route from the accessed URL and sets it to __end_point_uri :rtype: bool
"Extracts the route from the accessed URL and sets it to __end_point_uri\n :rtype: bool"
50
false
feliphebueno/Rinzler
set_end_point_uri
8,243
LDU_FT/cidles/pressagio/create_ngram_table
LDU_FT
[ "<BEGIN>\n## `create_ngram_table`", "Creates a table for n-gram of a give cardinality. The table name is\n constructed from this parameter, for example for cardinality `2` there\n will be a table `_2_gram` created.", " Parameters\n ----------\n cardinality : int\n T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_ngram_table 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 create_ngram_table 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...
Creates a table for n-gram of a give cardinality. The table name is constructed from this parameter, for example for cardinality `2` there will be a table `_2_gram` created. Parameters ---------- cardinality : int The cardinality to create a table for.
"Creates a table for n-gram of a give cardinality. The table name is\n constructed from this parameter, for example for cardinality `2` there\n will be a table `_2_gram` created.\n\n Parameters\n ----------\n cardinality : int\n The cardinality to create a table for."
43
false
cidles/pressagio
create_ngram_table
8,244
LDU_FT/xolox/python-vcs-repo-mgr/find_revision_number
LDU_FT
[ "<BEGIN>\n## `get_install_requires`", "Add conditional dependencies (when creating source distributions).\n<END>", "<BEGIN>\n## `main`", "The command line interface of the ``vcs-tool`` program.\n<END>", "<BEGIN>\n## `contains_repository`", "Check whether the given directory contains a local repository.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_revision_number 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 find_revision_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Find the local revision number of the given revision.
"Find the local revision number of the given revision."
261
false
xolox/python-vcs-repo-mgr
find_revision_number
8,245
LDU_FT/PatrikValkovic/grammpy/_validate_rule
LDU_FT
[ "<BEGIN>\n## `reverse_cyk_transforms`", "Reverse transformation made to grammar before CYK.\n Performs following steps:\n - transform from chomsky normal form\n - restore unit rules\n - restore epsilon rules\n :param root: Root node of the parsed tree.\n :return: Restored...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_rule API. 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 _validate_rule API. 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...
Validate rule. Valid rule must inherit from Rule and have valid syntax. :param rule: Rule to validate. :raise NotRuleException: If the parameter doesn't inherit from Rule.
"Validate rule. Valid rule must inherit from Rule and have valid syntax.\n :param rule: Rule to validate.\n :raise NotRuleException: If the parameter doesn't inherit from Rule."
126
false
PatrikValkovic/grammpy
_validate_rule
8,246
LDU_FT/wummel/linkchecker/start_output
LDU_FT
[ "<BEGIN>\n## `start_output`", "Write start of checking info as gml comment.\n<END>", "<BEGIN>\n## `getaddresses`", "Return list of email addresses from given field value.\n<END>", "<BEGIN>\n## `build_url`", "Call super.build_url(), extract list of mail addresses from URL,\n and check their syntax.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Write start of checking info as xml comment.
"Write start of checking info as xml comment."
1,377
true
wummel/linkchecker
start_output
8,247
LDU_FT/ababic/django-cogwheels/get_model
LDU_FT
[ "<BEGIN>\n## `_set_prefix`", "Called by ``__init()__`` to set the object's ``_prefix`` attribute,\n which determines the prefix app users must use when overriding\n settings associated with this helper. For example:", " If the ``_prefix`` attribute were to be set to \"YOURAPP\", and there\n...
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...
Returns a Django model referenced by an app setting where the value is expected to be a valid 'model string' in the format: "app_label.model_name". :param setting_name: The name of the app setting for which a value is required. :type setting_name: str (e.g. "SETTING_NAME") ...
"Returns a Django model referenced by an app setting where the value is\n expected to be a valid 'model string' in the format:\n \"app_label.model_name\".\n\n :param setting_name:\n The name of the app setting for which a value is required.\n :type setting_name: str (e.g. \"SETTIN...
55
false
ababic/django-cogwheels
get_model
8,248
LDU_FT/darothen/xbpch/get_lonlat
LDU_FT
[ "<BEGIN>\n## `from_model`", "Define a grid using the specifications of a given model.", " Parameters\n ----------\n model_name : string\n Name the model (see :func:`get_supported_models` for available\n model names).\n Supports multiple formats (e.g., 'GEOS5...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lonlat API. 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_lonlat API. 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...
Calculate longitude-latitude grid for a specified resolution and configuration / ordering. Parameters ---------- rlon, rlat : float Resolution (in degrees) of longitude and latitude grids. halfpolar : bool (default=True) Polar grid boxes span half of rlat...
"Calculate longitude-latitude grid for a specified resolution and\n configuration / ordering.\n\n Parameters\n ----------\n rlon, rlat : float\n Resolution (in degrees) of longitude and latitude grids.\n halfpolar : bool (default=True)\n Polar grid boxes span hal...
122
false
darothen/xbpch
get_lonlat
8,249
LDU_FT/xenon-middleware/pyxenon/check_socket
LDU_FT
[ "<BEGIN>\n## `make_exception`", "Creates an exception for a given method, and RpcError.\n<END>", "<BEGIN>\n## `get_field_type`", "Obtain the type name of a GRPC Message field.\n<END>", "<BEGIN>\n## `get_field_description`", "Get the type description of a GRPC Message field.\n<END>", "<BEGIN>\n## `make_s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_socket API. 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 check_socket API. 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...
Checks if port is open on host. This is used to check if the Xenon-GRPC server is running.
"Checks if port is open on host. This is used to check if the\n Xenon-GRPC server is running."
35
false
xenon-middleware/pyxenon
check_socket
8,250
LDU_FT/fusionapp/fusion-util/extra
LDU_FT
[ "<BEGIN>\n## `chainCerts`", "Matches and returns any certificates found except the first match.", " Regex code copied from L{twisted.internet.endpoints._parseSSL}.\n Related ticket: https://twistedmatrix.com/trac/ticket/7732", " @type path: L{bytes}\n @param data: PEM-encoded data containing the c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extra API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extra API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Get the additional enumeration value for ``extra_name``. :param unicode value: Enumeration value. :param str extra_name: Extra name. :param default: Default value in the case ``extra_name`` doesn't exist.
"Get the additional enumeration value for ``extra_name``.\n\n :param unicode value: Enumeration value.\n :param str extra_name: Extra name.\n :param default: Default value in the case ``extra_name`` doesn't exist."
24
false
fusionapp/fusion-util
extra
8,251
LDU_FT/JarryShaw/DictDumper/_append_bytes
LDU_FT
[ "<BEGIN>\n## `_append_value`", "Call this function to write contents.", " Keyword arguments:\n * value - dict, content to be dumped\n * _file - FileIO, output file\n * _name - str, name of current content dict\n<END>", "<BEGIN>\n## `_append_array`", "Call this functio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _append_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _append_bytes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Call this function to write bytes contents. Keyword arguments: * value - dict, content to be dumped * _file - FileIO, output file
"Call this function to write bytes contents.\n\n Keyword arguments:\n * value - dict, content to be dumped\n * _file - FileIO, output file"
51
false
JarryShaw/DictDumper
_append_bytes
8,252
LDU_FT/wesleybeckner/salty/load_data
LDU_FT
[ "<BEGIN>\n## `assign_category`", "Identifies IL type based on name/str", " Parameters\n ----------\n salts: pandas DataFrame\n dataframe containing column with cation name", " Returns\n ----------\n salts: pandas DataFrame\n returns the same dataframe with categories\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Loads data from module_path/data/data_file_name. Parameters ---------- data_file_name : String. Name of csv or dill file to be loaded from module_path/data/data_file_name. For example 'salt_info.csv'. Returns ------- data : Pandas DataFrame A data frame. For example with each row rep...
"Loads data from module_path/data/data_file_name.\n Parameters\n ----------\n data_file_name : String. Name of csv or dill file to be loaded from\n module_path/data/data_file_name. For example 'salt_info.csv'.\n Returns\n -------\n data : Pandas DataFrame\n A data frame. For example with eac...
27
false
wesleybeckner/salty
load_data
8,253
LDU_FT/TorkamaniLab/metapipe/update_dependent_files
LDU_FT
[ "<BEGIN>\n## `consume`", "Converts the lexer tokens into valid statements. This process\n also checks command syntax.\n<END>", "<BEGIN>\n## `_get`", "Given a type and a dict of parser results, return\n the items as a list.\n<END>", "<BEGIN>\n## `_parse`", "Given a type and a list, parse it u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_dependent_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....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_dependent_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....
Update the command's dependencies based on the evaluated input and output of previous commands.
"Update the command's dependencies based on the evaluated input and\n output of previous commands."
84
false
TorkamaniLab/metapipe
update_dependent_files
8,254
LDU_FT/anjianshi/flask-restful-extend/quick_marshal
LDU_FT
[ "<BEGIN>\n## `enhance_json_encode`", "use `JSONEncodeManager` replace default `output_json` function of Flask-RESTful\n for the advantage of use `JSONEncodeManager`, please see https://github.com/anjianshi/json_encode_manager\n<END>", "<BEGIN>\n## `support_jsonp`", "Let API instance can respond jsonp reque...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quick_marshal API. 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 quick_marshal API. 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...
In some case, one view functions may return different model in different situation. Use `marshal_with_model` to handle this situation was tedious. This function can simplify this process. Usage: quick_marshal(args_to_marshal_with_model)(db_instance_or_query)
"In some case, one view functions may return different model in different situation.\n Use `marshal_with_model` to handle this situation was tedious.\n This function can simplify this process.\n\n Usage:\n quick_marshal(args_to_marshal_with_model)(db_instance_or_query)"
69
false
anjianshi/flask-restful-extend
quick_marshal
8,255
LDU_FT/awslabs/aws-shell/load_completions
LDU_FT
[ "<BEGIN>\n## `_create_key_manager`", "Create and initialize the keybinding manager.", " :type get_fuzzy_match: callable\n :param get_fuzzy_match: Gets the fuzzy matching config.", " :type set_fuzzy_match: callable\n :param set_fuzzy_match: Sets the fuzzy matching config.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_completions API. 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 load_completions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Load completions from the completion index. Updates the following attributes: * commands * subcommands * global_opts * args_opts
"Load completions from the completion index.\n\n Updates the following attributes:\n * commands\n * subcommands\n * global_opts\n * args_opts"
109
false
awslabs/aws-shell
load_completions
8,256
LDU_FT/cenkalti/github-flask/get
LDU_FT
[ "<BEGIN>\n## `authorize`", "Redirect to GitHub and request access to a user's data.", " :param scope: List of `Scopes`_ for which to request access, formatted\n as a string or comma delimited list of scopes as a\n string. Defaults to ``None``, resulting in granti...
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...
Shortcut for ``request('GET', resource)``.
"Shortcut for ``request('GET', resource)``."
24
false
cenkalti/github-flask
get
8,257
LDU_FT/daler/gffutils/_finalize
LDU_FT
[ "<BEGIN>\n## `to_bedtool`", "Convert any iterator into a pybedtools.BedTool object.", " Note that the supplied iterator is not consumed by this function. To save\n to a temp file or to a known location, use the `.saveas()` method of the\n returned BedTool object.\n<END>", "<BEGIN>\n## `tsses`", "Cr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _finalize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _finalize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Various last-minute stuff to perform after file has been parsed and imported. In general, if you'll be adding stuff to the meta table, do it here.
"Various last-minute stuff to perform after file has been parsed and\n imported.\n\n In general, if you'll be adding stuff to the meta table, do it here."
366
false
daler/gffutils
_finalize
8,258
LDU_FT/IRC-SPHERE/HyperStream/update_computed_intervals
LDU_FT
[ "<BEGIN>\n## `func_load`", "Reload a function\n :param code: The code object\n :param defaults: Default values\n :param closure: The closure\n :param globs: globals\n :return:\n<END>", "<BEGIN>\n## `func_reconstruct_closure`", "Deserialization helper that reconstructs a closure\n :param valu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_computed_intervals 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 update_computed_intervals API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Update computed intervals :param sinks: The streams to update :param time_interval: The time interval
"Update computed intervals\n\n :param sinks: The streams to update\n :param time_interval: The time interval"
292
false
IRC-SPHERE/HyperStream
update_computed_intervals
8,259
LDU_FT/pycontribs/pyrax/get_device
LDU_FT
[ "<BEGIN>\n## `resize`", "Resize the volume to the specified size (in GB).\n<END>", "<BEGIN>\n## `get`", "This additional code is necessary to properly return the 'volume'\n attribute of the instance as a CloudDatabaseVolume object instead of\n a raw dict.\n<END>", "<BEGIN>\n## `_create_body`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_device API. 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_device API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a reference to the device that is represented by this node. Returns None if no such device can be determined.
"Returns a reference to the device that is represented by this node.\n Returns None if no such device can be determined."
1,326
true
pycontribs/pyrax
get_device
8,260
LDU_FT/ContextLab/hypertools/load
LDU_FT
[ "<BEGIN>\n## `default_params`", "Loads and updates default model parameters", " Parameters\n ----------", " model : str\n The name of a model", " update_dict : dict\n A dict to update default parameters", " Returns\n ----------", " params : dict\n A dictionary o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. 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 load API. 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...
Load a .geo file or example data Parameters ---------- dataset : string The name of the example dataset. Can be a `.geo` file, or one of a number of example datasets listed below. `weights` is list of 2 numpy arrays, each containing average brain activity (fMRI) from 18 su...
"Load a .geo file or example data\n\n Parameters\n ----------\n dataset : string\n The name of the example dataset. Can be a `.geo` file, or one of a\n number of example datasets listed below.\n\n `weights` is list of 2 numpy arrays, each containing average brain\n activity (fMRI) ...
239
false
ContextLab/hypertools
load
8,261
LDU_FT/adamzap/landslide/add_toc_entry
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses and renders a text as HTML regarding current format.\n<END>", "<BEGIN>\n## `descape`", "Decodes html entities from a given string\n<END>", "<BEGIN>\n## `get_path_url`", "Returns an absolute or relative path url given a path\n<END>", "<BEGIN>\n## `html_parts`", "Given an ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_toc_entry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_toc_entry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Adds a new entry to current presentation Table of Contents.
"Adds a new entry to current presentation Table of Contents."
49
false
adamzap/landslide
add_toc_entry
8,262
LDU_FT/materialsproject/custodian/modify
LDU_FT
[ "<BEGIN>\n## `from_spec`", "Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.", " Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify API. 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 modify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Note that modify makes actual in-place modifications. It does not return a copy. Args: modification (dict): Modification must be {action_keyword : settings}. E.g., {'_set': {'Hello':'Universe', 'Bye': 'World'}} obj (dict/str/object): Object to modify depending on...
"Note that modify makes actual in-place modifications. It does not\n return a copy.\n\n Args:\n modification (dict): Modification must be {action_keyword :\n settings}. E.g., {'_set': {'Hello':'Universe', 'Bye': 'World'}}\n obj (dict/str/object): Object to modify depen...
90
false
materialsproject/custodian
modify
8,263
LDU_FT/ranaroussi/pywallet/verify
LDU_FT
[ "<BEGIN>\n## `create_new_address_for_user`", "Create a new bitcoin address to accept payments for a User.", " This is a convenience wrapper around `get_child` that helps you do\n the right thing. This method always creates a public, non-prime\n address that can be generated from a BIP32 pub...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify API. 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 verify API. 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 ...
Verifies that message was appropriately signed. Args: message (bytes): The message to be verified. signature (Signature): A signature object. do_hash (bool): True if the message should be hashed prior to signing, False if not. This should always be left as ...
"Verifies that message was appropriately signed.\n\n Args:\n message (bytes): The message to be verified.\n signature (Signature): A signature object.\n do_hash (bool): True if the message should be hashed prior\n to signing, False if not. This should always be left ...
186
false
ranaroussi/pywallet
verify
8,264
LDU_FT/minhhoit/yacms/unique_slug
LDU_FT
[ "<BEGIN>\n## `formfield`", "Apply the widget class defined by the\n ``RICHTEXT_WIDGET_CLASS`` setting.\n<END>", "<BEGIN>\n## `as_tag`", "Creates a tag expecting the format:\n ``{% tag_name as var_name %}``\n The decorated func returns the value that is given to\n ``var_name`` in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unique_slug API. 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 unique_slug API. 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...
Ensures a slug is unique for the given queryset, appending an integer to its end until the slug is unique.
"Ensures a slug is unique for the given queryset, appending\n an integer to its end until the slug is unique."
502
false
minhhoit/yacms
unique_slug
8,265
LDU_FT/aio-libs/aiomysql/fetchmany
LDU_FT
[ "<BEGIN>\n## `terminate`", "Terminate pool.", " Close pool with instantly closing all acquired connections also.\n<END>", "<BEGIN>\n## `release`", "Release free connection back to the connection pool.", " This is **NOT** a coroutine.\n<END>", "<BEGIN>\n## `close`", "Closing a cursor just...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetchmany API. 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 fetchmany API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns the next set of rows of a query result, returning a list of tuples. When no more rows are available, it returns an empty list. The number of rows returned can be specified using the size argument, which defaults to one :param size: ``int`` number of rows to return ...
"Returns the next set of rows of a query result, returning a\n list of tuples. When no more rows are available, it returns an\n empty list.\n\n The number of rows returned can be specified using the size argument,\n which defaults to one\n\n :param size: ``int`` number of rows to retu...
114
false
aio-libs/aiomysql
fetchmany
8,266
LDU_FT/estnltk/estnltk/word_ends
LDU_FT
[ "<BEGIN>\n## `templatesCollector`", "leaves related articles and wikitables in place\n<END>", "<BEGIN>\n## `assert_legal_arguments`", "Assert that PrettyPrinter arguments are correct.", " Raises\n ------\n ValueError\n In case there are unknown arguments or a single layer is mapped to more t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the word_ends API. 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 word_ends API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
The list of end positions representing ``words`` layer elements.
"The list of end positions representing ``words`` layer elements."
1,003
false
estnltk/estnltk
word_ends
8,267
LDU_FT/Cito/DBUtils/cache
LDU_FT
[ "<BEGIN>\n## `connection`", "Get a steady, cached DB-API 2 connection from the pool.", " If shareable is set and the underlying DB-API 2 allows it,\n then the connection may be shared with other threads.\n<END>", "<BEGIN>\n## `unshare`", "Decrease the share of a connection in the shared cache....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Put a dedicated connection back into the idle cache.
"Put a dedicated connection back into the idle cache."
80
false
Cito/DBUtils
cache
8,268
LDU_FT/robotpy/pyfrc/increment_time_by
LDU_FT
[ "<BEGIN>\n## `compute`", "Call this when vision processing should be enabled", " :param now: The value passed to ``update_sim``\n :param x: Returned from physics_controller.get_position\n :param y: Returned from physics_controller.get_position\n :param angle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the increment_time_by API. 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 increment_time_by API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This is called when wpilib.Timer.delay() occurs
"This is called when wpilib.Timer.delay() occurs"
109
false
robotpy/pyfrc
increment_time_by
8,269
LDU_FT/ga4gh/ga4gh-client/addGenotypePhenotypeSearchOptions
LDU_FT
[ "<BEGIN>\n## `_run_search_request`", "Runs the specified request at the specified object_name and\n instantiates an object of the specified class. We yield each object in\n listAttr. If pages of results are present, repeat this process\n until the pageToken is null.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addGenotypePhenotypeSearchOptions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addGenotypePhenotypeSearchOptions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Adds options to a g2p searches command line parser.
"Adds options to a g2p searches command line parser."
104
false
ga4gh/ga4gh-client
addGenotypePhenotypeSearchOptions
8,270
LDU_FT/nocarryr/python-dispatch/add_method
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 add_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_method API. 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...
Add a coroutine function Args: loop: The :class:`event loop <asyncio.BaseEventLoop>` instance on which to schedule callbacks callback: The :term:`coroutine function` to add
"Add a coroutine function\n\n Args:\n loop: The :class:`event loop <asyncio.BaseEventLoop>` instance\n on which to schedule callbacks\n callback: The :term:`coroutine function` to add"
89
false
nocarryr/python-dispatch
add_method
8,271
LDU_FT/idlesign/django-siteflags/set_flag
LDU_FT
[ "<BEGIN>\n## `update_filter_dict`", "Helper. Updates filter dict for a queryset.", " :param dict d:\n :param User|None user:\n :param int|None status:\n :return:\n<END>", "<BEGIN>\n## `get_flags_for_types`", "Returns a dictionary with flag objects associated with the given model classes (types)....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_flag API. 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 set_flag API. 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...
Flags the object. :param User user: :param str note: User-defined note for this flag. :param int status: Optional status integer (the meaning is defined by a developer). :return:
"Flags the object.\n\n :param User user:\n :param str note: User-defined note for this flag.\n :param int status: Optional status integer (the meaning is defined by a developer).\n :return:"
21
false
idlesign/django-siteflags
set_flag
8,272