Search is not available for this dataset
identifier
stringlengths
1
155
parameters
stringlengths
2
6.09k
docstring
stringlengths
11
63.4k
docstring_summary
stringlengths
0
63.4k
function
stringlengths
29
99.8k
function_tokens
list
start_point
list
end_point
list
language
stringclasses
1 value
docstring_language
stringlengths
2
7
docstring_language_predictions
stringlengths
18
23
is_langid_reliable
stringclasses
2 values
Delta.reference
(self)
Sets the reference value to compute the delta. By default, it is set to the current value. The 'reference' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the reference value to compute the delta. By default, it is set to the current value. The 'reference' property is a number and may be specified as: - An int or float
def reference(self): """ Sets the reference value to compute the delta. By default, it is set to the current value. The 'reference' property is a number and may be specified as: - An int or float Returns ------- int|float """ return...
[ "def", "reference", "(", "self", ")", ":", "return", "self", "[", "\"reference\"", "]" ]
[ 146, 4 ]
[ 158, 32 ]
python
en
['en', 'error', 'th']
False
Delta.relative
(self)
Show relative change The 'relative' property must be specified as a bool (either True, or False) Returns ------- bool
Show relative change The 'relative' property must be specified as a bool (either True, or False)
def relative(self): """ Show relative change The 'relative' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["relative"]
[ "def", "relative", "(", "self", ")", ":", "return", "self", "[", "\"relative\"", "]" ]
[ 167, 4 ]
[ 178, 31 ]
python
en
['en', 'error', 'th']
False
Delta.valueformat
(self)
Sets the value formatting rule using d3 formatting mini- language which is similar to those of Python. See https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format The 'valueformat' property is a string and must be specified as: - A string ...
Sets the value formatting rule using d3 formatting mini- language which is similar to those of Python. See https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format The 'valueformat' property is a string and must be specified as: - A string ...
def valueformat(self): """ Sets the value formatting rule using d3 formatting mini- language which is similar to those of Python. See https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format The 'valueformat' property is a string and must be sp...
[ "def", "valueformat", "(", "self", ")", ":", "return", "self", "[", "\"valueformat\"", "]" ]
[ 187, 4 ]
[ 202, 34 ]
python
en
['en', 'error', 'th']
False
Delta.__init__
( self, arg=None, decreasing=None, font=None, increasing=None, position=None, reference=None, relative=None, valueformat=None, **kwargs )
Construct a new Delta object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.indicator.Delta` decreasing :class:`plotly.graph_objects.indicator.delt...
Construct a new Delta object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.indicator.Delta` decreasing :class:`plotly.graph_objects.indicator.delt...
def __init__( self, arg=None, decreasing=None, font=None, increasing=None, position=None, reference=None, relative=None, valueformat=None, **kwargs ): """ Construct a new Delta object Parameters ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "decreasing", "=", "None", ",", "font", "=", "None", ",", "increasing", "=", "None", ",", "position", "=", "None", ",", "reference", "=", "None", ",", "relative", "=", "None", ",", "valuef...
[ 235, 4 ]
[ 345, 34 ]
python
en
['en', 'error', 'th']
False
get_config_defaults
()
Convenience function to check current settings against defaults. Example: if plotly_domain != get_config_defaults()['plotly_domain']: # do something
Convenience function to check current settings against defaults.
def get_config_defaults(): """ Convenience function to check current settings against defaults. Example: if plotly_domain != get_config_defaults()['plotly_domain']: # do something """ return dict(FILE_CONTENT[CONFIG_FILE])
[ "def", "get_config_defaults", "(", ")", ":", "return", "dict", "(", "FILE_CONTENT", "[", "CONFIG_FILE", "]", ")" ]
[ 29, 0 ]
[ 39, 42 ]
python
en
['en', 'error', 'th']
False
ensure_local_plotly_files
()
Ensure that filesystem is setup/filled out in a valid way. If the config or credential files aren't filled out, then write them to the disk.
Ensure that filesystem is setup/filled out in a valid way. If the config or credential files aren't filled out, then write them to the disk.
def ensure_local_plotly_files(): """Ensure that filesystem is setup/filled out in a valid way. If the config or credential files aren't filled out, then write them to the disk. """ if ensure_writable_plotly_dir(): for fn in [CREDENTIALS_FILE, CONFIG_FILE]: utils.ensure_file_exist...
[ "def", "ensure_local_plotly_files", "(", ")", ":", "if", "ensure_writable_plotly_dir", "(", ")", ":", "for", "fn", "in", "[", "CREDENTIALS_FILE", ",", "CONFIG_FILE", "]", ":", "utils", ".", "ensure_file_exists", "(", "fn", ")", "contents", "=", "utils", ".", ...
[ 42, 0 ]
[ 76, 9 ]
python
en
['en', 'en', 'en']
True
set_credentials_file
( username=None, api_key=None, stream_ids=None, proxy_username=None, proxy_password=None, )
Set the keyword-value pairs in `~/.plotly_credentials`. :param (str) username: The username you'd use to sign in to Plotly :param (str) api_key: The api key associated with above username :param (list) stream_ids: Stream tokens for above credentials :param (str) proxy_username: The un associated with w...
Set the keyword-value pairs in `~/.plotly_credentials`.
def set_credentials_file( username=None, api_key=None, stream_ids=None, proxy_username=None, proxy_password=None, ): """Set the keyword-value pairs in `~/.plotly_credentials`. :param (str) username: The username you'd use to sign in to Plotly :param (str) api_key: The api key associated...
[ "def", "set_credentials_file", "(", "username", "=", "None", ",", "api_key", "=", "None", ",", "stream_ids", "=", "None", ",", "proxy_username", "=", "None", ",", "proxy_password", "=", "None", ",", ")", ":", "if", "not", "ensure_writable_plotly_dir", "(", "...
[ 82, 0 ]
[ 115, 31 ]
python
en
['en', 'en', 'en']
True
get_credentials_file
(*args)
Return specified args from `~/.plotly_credentials`. as dict. Returns all if no arguments are specified. Example: get_credentials_file('username')
Return specified args from `~/.plotly_credentials`. as dict.
def get_credentials_file(*args): """Return specified args from `~/.plotly_credentials`. as dict. Returns all if no arguments are specified. Example: get_credentials_file('username') """ # Read credentials from file if possible credentials = utils.load_json_dict(CREDENTIALS_FILE, *args...
[ "def", "get_credentials_file", "(", "*", "args", ")", ":", "# Read credentials from file if possible", "credentials", "=", "utils", ".", "load_json_dict", "(", "CREDENTIALS_FILE", ",", "*", "args", ")", "if", "not", "credentials", ":", "# Credentials could not be read, ...
[ 118, 0 ]
[ 133, 22 ]
python
en
['en', 'en', 'en']
True
set_config_file
( plotly_domain=None, plotly_streaming_domain=None, plotly_api_domain=None, plotly_ssl_verification=None, plotly_proxy_authorization=None, world_readable=None, sharing=None, auto_open=None, )
Set the keyword-value pairs in `~/.plotly/.config`. :param (str) plotly_domain: ex - https://plotly.com :param (str) plotly_streaming_domain: ex - stream.plotly.com :param (str) plotly_api_domain: ex - https://api.plotly.com :param (bool) plotly_ssl_verification: True = verify, False = don't verify ...
Set the keyword-value pairs in `~/.plotly/.config`.
def set_config_file( plotly_domain=None, plotly_streaming_domain=None, plotly_api_domain=None, plotly_ssl_verification=None, plotly_proxy_authorization=None, world_readable=None, sharing=None, auto_open=None, ): """Set the keyword-value pairs in `~/.plotly/.config`. :param (str)...
[ "def", "set_config_file", "(", "plotly_domain", "=", "None", ",", "plotly_streaming_domain", "=", "None", ",", "plotly_api_domain", "=", "None", ",", "plotly_ssl_verification", "=", "None", ",", "plotly_proxy_authorization", "=", "None", ",", "world_readable", "=", ...
[ 145, 0 ]
[ 217, 31 ]
python
en
['en', 'en', 'en']
True
get_config_file
(*args)
Return specified args from `~/.plotly/.config`. as tuple. Returns all if no arguments are specified. Example: get_config_file('plotly_domain')
Return specified args from `~/.plotly/.config`. as tuple.
def get_config_file(*args): """Return specified args from `~/.plotly/.config`. as tuple. Returns all if no arguments are specified. Example: get_config_file('plotly_domain') """ # Read config from file if possible config = utils.load_json_dict(CONFIG_FILE, *args) if not config: ...
[ "def", "get_config_file", "(", "*", "args", ")", ":", "# Read config from file if possible", "config", "=", "utils", ".", "load_json_dict", "(", "CONFIG_FILE", ",", "*", "args", ")", "if", "not", "config", ":", "# Config could not be read, use defaults", "config", "...
[ 220, 0 ]
[ 235, 17 ]
python
en
['en', 'en', 'en']
True
get_embed
(file_owner_or_url, file_id=None, width="100%", height=525)
Returns HTML code to embed figure on a webpage as an <iframe> Plotly uniquely identifies figures with a 'file_owner'/'file_id' pair. Since each file is given a corresponding unique url, you may also simply pass a valid plotly url as the first argument. Note, if you're using a file_owner string as the ...
Returns HTML code to embed figure on a webpage as an <iframe>
def get_embed(file_owner_or_url, file_id=None, width="100%", height=525): """Returns HTML code to embed figure on a webpage as an <iframe> Plotly uniquely identifies figures with a 'file_owner'/'file_id' pair. Since each file is given a corresponding unique url, you may also simply pass a valid plotly ...
[ "def", "get_embed", "(", "file_owner_or_url", ",", "file_id", "=", "None", ",", "width", "=", "\"100%\"", ",", "height", "=", "525", ")", ":", "embed_url", "=", "_get_embed_url", "(", "file_owner_or_url", ",", "file_id", ")", "return", "(", "'<iframe id=\"igra...
[ 304, 0 ]
[ 335, 75 ]
python
en
['en', 'en', 'pt']
True
embed
(file_owner_or_url, file_id=None, width="100%", height=525)
Embeds existing Plotly figure in IPython Notebook Plotly uniquely identifies figures with a 'file_owner'/'file_id' pair. Since each file is given a corresponding unique url, you may also simply pass a valid plotly url as the first argument. Note, if you're using a file_owner string as the first argume...
Embeds existing Plotly figure in IPython Notebook
def embed(file_owner_or_url, file_id=None, width="100%", height=525): """Embeds existing Plotly figure in IPython Notebook Plotly uniquely identifies figures with a 'file_owner'/'file_id' pair. Since each file is given a corresponding unique url, you may also simply pass a valid plotly url as the first...
[ "def", "embed", "(", "file_owner_or_url", ",", "file_id", "=", "None", ",", "width", "=", "\"100%\"", ",", "height", "=", "525", ")", ":", "try", ":", "s", "=", "get_embed", "(", "file_owner_or_url", ",", "file_id", "=", "file_id", ",", "width", "=", "...
[ 338, 0 ]
[ 399, 9 ]
python
en
['en', 'en', 'en']
True
kitti_data_prep
(root_path, info_prefix, version, out_dir)
Prepare data related to Kitti dataset. Related data consists of '.pkl' files recording basic infos, 2D annotations and groundtruth database. Args: root_path (str): Path of dataset root. info_prefix (str): The prefix of info filenames. version (str): Dataset version. out_dir...
Prepare data related to Kitti dataset.
def kitti_data_prep(root_path, info_prefix, version, out_dir): """Prepare data related to Kitti dataset. Related data consists of '.pkl' files recording basic infos, 2D annotations and groundtruth database. Args: root_path (str): Path of dataset root. info_prefix (str): The prefix of i...
[ "def", "kitti_data_prep", "(", "root_path", ",", "info_prefix", ",", "version", ",", "out_dir", ")", ":", "kitti", ".", "create_kitti_info_file", "(", "root_path", ",", "info_prefix", ")", "kitti", ".", "create_reduced_point_cloud", "(", "root_path", ",", "info_pr...
[ 10, 0 ]
[ 31, 38 ]
python
en
['it', 'sn', 'en']
False
nuscenes_data_prep
(root_path, info_prefix, version, dataset_name, out_dir, max_sweeps=10)
Prepare data related to nuScenes dataset. Related data consists of '.pkl' files recording basic infos, 2D annotations and groundtruth database. Args: root_path (str): Path of dataset root. info_prefix (str): The prefix of info filenames. version (str): Dataset version. data...
Prepare data related to nuScenes dataset.
def nuscenes_data_prep(root_path, info_prefix, version, dataset_name, out_dir, max_sweeps=10): """Prepare data related to nuScenes dataset. Related data consists of '.pkl' files recording basic in...
[ "def", "nuscenes_data_prep", "(", "root_path", ",", "info_prefix", ",", "version", ",", "dataset_name", ",", "out_dir", ",", "max_sweeps", "=", "10", ")", ":", "nuscenes_converter", ".", "create_nuscenes_infos", "(", "root_path", ",", "info_prefix", ",", "version"...
[ 34, 0 ]
[ 66, 75 ]
python
en
['en', 'la', 'en']
True
lyft_data_prep
(root_path, info_prefix, version, dataset_name, out_dir, max_sweeps=10)
Prepare data related to Lyft dataset. Related data consists of '.pkl' files recording basic infos, and 2D annotations. Although the ground truth database is not used in Lyft, it can also be generated like nuScenes. Args: root_path (str): Path of dataset root. info_prefix (str): The...
Prepare data related to Lyft dataset.
def lyft_data_prep(root_path, info_prefix, version, dataset_name, out_dir, max_sweeps=10): """Prepare data related to Lyft dataset. Related data consists of '.pkl' files recording basic infos, and 2D annotations....
[ "def", "lyft_data_prep", "(", "root_path", ",", "info_prefix", ",", "version", ",", "dataset_name", ",", "out_dir", ",", "max_sweeps", "=", "10", ")", ":", "lyft_converter", ".", "create_lyft_infos", "(", "root_path", ",", "info_prefix", ",", "version", "=", "...
[ 69, 0 ]
[ 106, 50 ]
python
en
['en', 'sn', 'en']
True
scannet_data_prep
(root_path, info_prefix, out_dir, workers)
Prepare the info file for scannet dataset. Args: root_path (str): Path of dataset root. info_prefix (str): The prefix of info filenames. out_dir (str): Output directory of the generated info file. workers (int): Number of threads to be used.
Prepare the info file for scannet dataset.
def scannet_data_prep(root_path, info_prefix, out_dir, workers): """Prepare the info file for scannet dataset. Args: root_path (str): Path of dataset root. info_prefix (str): The prefix of info filenames. out_dir (str): Output directory of the generated info file. workers (int):...
[ "def", "scannet_data_prep", "(", "root_path", ",", "info_prefix", ",", "out_dir", ",", "workers", ")", ":", "indoor", ".", "create_indoor_info_file", "(", "root_path", ",", "info_prefix", ",", "out_dir", ",", "workers", "=", "workers", ")" ]
[ 109, 0 ]
[ 119, 57 ]
python
en
['en', 'no', 'en']
True
sunrgbd_data_prep
(root_path, info_prefix, out_dir, workers)
Prepare the info file for sunrgbd dataset. Args: root_path (str): Path of dataset root. info_prefix (str): The prefix of info filenames. out_dir (str): Output directory of the generated info file. workers (int): Number of threads to be used.
Prepare the info file for sunrgbd dataset.
def sunrgbd_data_prep(root_path, info_prefix, out_dir, workers): """Prepare the info file for sunrgbd dataset. Args: root_path (str): Path of dataset root. info_prefix (str): The prefix of info filenames. out_dir (str): Output directory of the generated info file. workers (int):...
[ "def", "sunrgbd_data_prep", "(", "root_path", ",", "info_prefix", ",", "out_dir", ",", "workers", ")", ":", "indoor", ".", "create_indoor_info_file", "(", "root_path", ",", "info_prefix", ",", "out_dir", ",", "workers", "=", "workers", ")" ]
[ 122, 0 ]
[ 132, 57 ]
python
en
['en', 'no', 'en']
True
waymo_data_prep
(root_path, info_prefix, version, out_dir, workers, max_sweeps=5)
Prepare the info file for waymo dataset. Args: root_path (str): Path of dataset root. info_prefix (str): The prefix of info filenames. out_dir (str): Output directory of the generated info file. workers (int): Number of threads to be used. max_sweeps (int): Number of input c...
Prepare the info file for waymo dataset.
def waymo_data_prep(root_path, info_prefix, version, out_dir, workers, max_sweeps=5): """Prepare the info file for waymo dataset. Args: root_path (str): Path of dataset root. info_prefix (str): T...
[ "def", "waymo_data_prep", "(", "root_path", ",", "info_prefix", ",", "version", ",", "out_dir", ",", "workers", ",", "max_sweeps", "=", "5", ")", ":", "from", "tools", ".", "data_converter", "import", "waymo_converter", "as", "waymo", "splits", "=", "[", "'t...
[ 135, 0 ]
[ 176, 24 ]
python
en
['en', 'en', 'en']
True
AdminResponder.__init__
( self, context: InjectionContext, send: Coroutine, webhook: Coroutine, **kwargs )
Initialize an instance of `AdminResponder`. Args: send: Function to send outbound message
Initialize an instance of `AdminResponder`.
def __init__( self, context: InjectionContext, send: Coroutine, webhook: Coroutine, **kwargs ): """ Initialize an instance of `AdminResponder`. Args: send: Function to send outbound message """ super().__init__(**kwargs) self._context = context ...
[ "def", "__init__", "(", "self", ",", "context", ":", "InjectionContext", ",", "send", ":", "Coroutine", ",", "webhook", ":", "Coroutine", ",", "*", "*", "kwargs", ")", ":", "super", "(", ")", ".", "__init__", "(", "*", "*", "kwargs", ")", "self", "."...
[ 44, 4 ]
[ 57, 31 ]
python
en
['en', 'error', 'th']
False
AdminResponder.send_outbound
(self, message: OutboundMessage)
Send outbound message. Args: message: The `OutboundMessage` to be sent
Send outbound message.
async def send_outbound(self, message: OutboundMessage): """ Send outbound message. Args: message: The `OutboundMessage` to be sent """ await self._send(self._context, message)
[ "async", "def", "send_outbound", "(", "self", ",", "message", ":", "OutboundMessage", ")", ":", "await", "self", ".", "_send", "(", "self", ".", "_context", ",", "message", ")" ]
[ 59, 4 ]
[ 66, 48 ]
python
en
['en', 'error', 'th']
False
AdminResponder.send_webhook
(self, topic: str, payload: dict)
Dispatch a webhook. Args: topic: the webhook topic identifier payload: the webhook payload value
Dispatch a webhook.
async def send_webhook(self, topic: str, payload: dict): """ Dispatch a webhook. Args: topic: the webhook topic identifier payload: the webhook payload value """ await self._webhook(topic, payload)
[ "async", "def", "send_webhook", "(", "self", ",", "topic", ":", "str", ",", "payload", ":", "dict", ")", ":", "await", "self", ".", "_webhook", "(", "topic", ",", "payload", ")" ]
[ 68, 4 ]
[ 76, 43 ]
python
en
['en', 'error', 'th']
False
WebhookTarget.__init__
( self, endpoint: str, topic_filter: Sequence[str] = None, retries: int = None )
Initialize the webhook target.
Initialize the webhook target.
def __init__( self, endpoint: str, topic_filter: Sequence[str] = None, retries: int = None ): """Initialize the webhook target.""" self.endpoint = endpoint self._topic_filter = None self.retries = retries # call setter self.topic_filter = topic_filter
[ "def", "__init__", "(", "self", ",", "endpoint", ":", "str", ",", "topic_filter", ":", "Sequence", "[", "str", "]", "=", "None", ",", "retries", ":", "int", "=", "None", ")", ":", "self", ".", "endpoint", "=", "endpoint", "self", ".", "_topic_filter", ...
[ 82, 4 ]
[ 90, 40 ]
python
en
['en', 'en', 'en']
True
WebhookTarget.topic_filter
(self)
Accessor for the target's topic filter.
Accessor for the target's topic filter.
def topic_filter(self) -> Set[str]: """Accessor for the target's topic filter.""" return self._topic_filter
[ "def", "topic_filter", "(", "self", ")", "->", "Set", "[", "str", "]", ":", "return", "self", ".", "_topic_filter" ]
[ 93, 4 ]
[ 95, 33 ]
python
en
['en', 'en', 'en']
True
WebhookTarget.topic_filter
(self, val: Sequence[str])
Setter for the target's topic filter.
Setter for the target's topic filter.
def topic_filter(self, val: Sequence[str]): """Setter for the target's topic filter.""" filter = set(val) if val else None if filter and "*" in filter: filter = None self._topic_filter = filter
[ "def", "topic_filter", "(", "self", ",", "val", ":", "Sequence", "[", "str", "]", ")", ":", "filter", "=", "set", "(", "val", ")", "if", "val", "else", "None", "if", "filter", "and", "\"*\"", "in", "filter", ":", "filter", "=", "None", "self", ".",...
[ 98, 4 ]
[ 103, 35 ]
python
en
['en', 'en', 'en']
True
AdminServer.__init__
( self, host: str, port: int, context: InjectionContext, outbound_message_router: Coroutine, webhook_router: Callable, task_queue: TaskQueue = None, conductor_stats: Coroutine = None, )
Initialize an AdminServer instance. Args: host: Host to listen on port: Port to listen on context: The application context instance outbound_message_router: Coroutine for delivering outbound messages webhook_router: Callable for delivering we...
Initialize an AdminServer instance.
def __init__( self, host: str, port: int, context: InjectionContext, outbound_message_router: Coroutine, webhook_router: Callable, task_queue: TaskQueue = None, conductor_stats: Coroutine = None, ): """ Initialize an AdminServer instanc...
[ "def", "__init__", "(", "self", ",", "host", ":", "str", ",", "port", ":", "int", ",", "context", ":", "InjectionContext", ",", "outbound_message_router", ":", "Coroutine", ",", "webhook_router", ":", "Callable", ",", "task_queue", ":", "TaskQueue", "=", "No...
[ 109, 4 ]
[ 145, 74 ]
python
en
['en', 'error', 'th']
False
AdminServer.make_application
(self)
Get the aiohttp application instance.
Get the aiohttp application instance.
async def make_application(self) -> web.Application: """Get the aiohttp application instance.""" middlewares = [] admin_api_key = self.context.settings.get("admin.admin_api_key") admin_insecure_mode = self.context.settings.get("admin.admin_insecure_mode") # admin-token and adm...
[ "async", "def", "make_application", "(", "self", ")", "->", "web", ".", "Application", ":", "middlewares", "=", "[", "]", "admin_api_key", "=", "self", ".", "context", ".", "settings", ".", "get", "(", "\"admin.admin_api_key\"", ")", "admin_insecure_mode", "="...
[ 147, 4 ]
[ 240, 18 ]
python
en
['en', 'en', 'en']
True
AdminServer.start
(self)
Start the webserver. Raises: AdminSetupError: If there was an error starting the webserver
Start the webserver.
async def start(self) -> None: """ Start the webserver. Raises: AdminSetupError: If there was an error starting the webserver """ self.app = await self.make_application() runner = web.AppRunner(self.app) await runner.setup() self.site = web.T...
[ "async", "def", "start", "(", "self", ")", "->", "None", ":", "self", ".", "app", "=", "await", "self", ".", "make_application", "(", ")", "runner", "=", "web", ".", "AppRunner", "(", "self", ".", "app", ")", "await", "runner", ".", "setup", "(", "...
[ 242, 4 ]
[ 261, 13 ]
python
en
['en', 'error', 'th']
False
AdminServer.stop
(self)
Stop the webserver.
Stop the webserver.
async def stop(self) -> None: """Stop the webserver.""" for queue in self.websocket_queues.values(): queue.stop() if self.site: await self.site.stop() self.site = None
[ "async", "def", "stop", "(", "self", ")", "->", "None", ":", "for", "queue", "in", "self", ".", "websocket_queues", ".", "values", "(", ")", ":", "queue", ".", "stop", "(", ")", "if", "self", ".", "site", ":", "await", "self", ".", "site", ".", "...
[ 263, 4 ]
[ 269, 28 ]
python
en
['en', 'nl', 'en']
True
AdminServer.on_startup
(self, app: web.Application)
Perform webserver startup actions.
Perform webserver startup actions.
async def on_startup(self, app: web.Application): """Perform webserver startup actions."""
[ "async", "def", "on_startup", "(", "self", ",", "app", ":", "web", ".", "Application", ")", ":" ]
[ 271, 4 ]
[ 272, 48 ]
python
en
['en', 'en', 'en']
True
AdminServer.plugins_handler
(self, request: web.BaseRequest)
Request handler for the loaded plugins list. Args: request: aiohttp request object Returns: The module list response
Request handler for the loaded plugins list.
async def plugins_handler(self, request: web.BaseRequest): """ Request handler for the loaded plugins list. Args: request: aiohttp request object Returns: The module list response """ registry: PluginRegistry = await self.context.inject( ...
[ "async", "def", "plugins_handler", "(", "self", ",", "request", ":", "web", ".", "BaseRequest", ")", ":", "registry", ":", "PluginRegistry", "=", "await", "self", ".", "context", ".", "inject", "(", "PluginRegistry", ",", "required", "=", "False", ")", "pr...
[ 276, 4 ]
[ 292, 53 ]
python
en
['en', 'error', 'th']
False
AdminServer.status_handler
(self, request: web.BaseRequest)
Request handler for the server status information. Args: request: aiohttp request object Returns: The web response
Request handler for the server status information.
async def status_handler(self, request: web.BaseRequest): """ Request handler for the server status information. Args: request: aiohttp request object Returns: The web response """ status = {"version": __version__} collector: Collector =...
[ "async", "def", "status_handler", "(", "self", ",", "request", ":", "web", ".", "BaseRequest", ")", ":", "status", "=", "{", "\"version\"", ":", "__version__", "}", "collector", ":", "Collector", "=", "await", "self", ".", "context", ".", "inject", "(", ...
[ 296, 4 ]
[ 313, 40 ]
python
en
['en', 'error', 'th']
False
AdminServer.status_reset_handler
(self, request: web.BaseRequest)
Request handler for resetting the timing statistics. Args: request: aiohttp request object Returns: The web response
Request handler for resetting the timing statistics.
async def status_reset_handler(self, request: web.BaseRequest): """ Request handler for resetting the timing statistics. Args: request: aiohttp request object Returns: The web response """ collector: Collector = await self.context.inject(Collect...
[ "async", "def", "status_reset_handler", "(", "self", ",", "request", ":", "web", ".", "BaseRequest", ")", ":", "collector", ":", "Collector", "=", "await", "self", ".", "context", ".", "inject", "(", "Collector", ",", "required", "=", "False", ")", "if", ...
[ 317, 4 ]
[ 331, 36 ]
python
en
['en', 'error', 'th']
False
AdminServer.redirect_handler
(self, request: web.BaseRequest)
Perform redirect to documentation.
Perform redirect to documentation.
async def redirect_handler(self, request: web.BaseRequest): """Perform redirect to documentation.""" raise web.HTTPFound("/api/doc")
[ "async", "def", "redirect_handler", "(", "self", ",", "request", ":", "web", ".", "BaseRequest", ")", ":", "raise", "web", ".", "HTTPFound", "(", "\"/api/doc\"", ")" ]
[ 333, 4 ]
[ 335, 39 ]
python
en
['en', 'en', 'en']
True
AdminServer.websocket_handler
(self, request)
Send notifications to admin client over websocket.
Send notifications to admin client over websocket.
async def websocket_handler(self, request): """Send notifications to admin client over websocket.""" ws = web.WebSocketResponse() await ws.prepare(request) socket_id = str(uuid.uuid4()) queue = BasicMessageQueue() loop = asyncio.get_event_loop() try: ...
[ "async", "def", "websocket_handler", "(", "self", ",", "request", ")", ":", "ws", "=", "web", ".", "WebSocketResponse", "(", ")", "await", "ws", ".", "prepare", "(", "request", ")", "socket_id", "=", "str", "(", "uuid", ".", "uuid4", "(", ")", ")", "...
[ 337, 4 ]
[ 400, 17 ]
python
en
['en', 'en', 'en']
True
AdminServer.add_webhook_target
( self, target_url: str, topic_filter: Sequence[str] = None, retries: int = None )
Add a webhook target.
Add a webhook target.
def add_webhook_target( self, target_url: str, topic_filter: Sequence[str] = None, retries: int = None ): """Add a webhook target.""" self.webhook_targets[target_url] = WebhookTarget( target_url, topic_filter, retries )
[ "def", "add_webhook_target", "(", "self", ",", "target_url", ":", "str", ",", "topic_filter", ":", "Sequence", "[", "str", "]", "=", "None", ",", "retries", ":", "int", "=", "None", ")", ":", "self", ".", "webhook_targets", "[", "target_url", "]", "=", ...
[ 402, 4 ]
[ 408, 9 ]
python
en
['en', 'lb', 'en']
True
AdminServer.remove_webhook_target
(self, target_url: str)
Remove a webhook target.
Remove a webhook target.
def remove_webhook_target(self, target_url: str): """Remove a webhook target.""" if target_url in self.webhook_targets: del self.webhook_targets[target_url]
[ "def", "remove_webhook_target", "(", "self", ",", "target_url", ":", "str", ")", ":", "if", "target_url", "in", "self", ".", "webhook_targets", ":", "del", "self", ".", "webhook_targets", "[", "target_url", "]" ]
[ 410, 4 ]
[ 413, 48 ]
python
en
['en', 'lb', 'en']
True
AdminServer.send_webhook
(self, topic: str, payload: dict)
Add a webhook to the queue, to send to all registered targets.
Add a webhook to the queue, to send to all registered targets.
async def send_webhook(self, topic: str, payload: dict): """Add a webhook to the queue, to send to all registered targets.""" if self.webhook_router: for idx, target in self.webhook_targets.items(): if not target.topic_filter or topic in target.topic_filter: ...
[ "async", "def", "send_webhook", "(", "self", ",", "topic", ":", "str", ",", "payload", ":", "dict", ")", ":", "if", "self", ".", "webhook_router", ":", "for", "idx", ",", "target", "in", "self", ".", "webhook_targets", ".", "items", "(", ")", ":", "i...
[ 415, 4 ]
[ 423, 69 ]
python
en
['en', 'en', 'en']
True
carbohydrates_saturation_photosynthesis_rate_inhibition
(carbohydrate_amount_Buf)
Equation 9.11 Returns: photosynthesis inhibition by carbohydrates saturation rate[-]
Equation 9.11 Returns: photosynthesis inhibition by carbohydrates saturation rate[-]
def carbohydrates_saturation_photosynthesis_rate_inhibition(carbohydrate_amount_Buf): """ Equation 9.11 Returns: photosynthesis inhibition by carbohydrates saturation rate[-] """ return smoothed_conditional_function(carbohydrate_amount_Buf, 5e-4, 20e3)
[ "def", "carbohydrates_saturation_photosynthesis_rate_inhibition", "(", "carbohydrate_amount_Buf", ")", ":", "return", "smoothed_conditional_function", "(", "carbohydrate_amount_Buf", ",", "5e-4", ",", "20e3", ")" ]
[ 6, 0 ]
[ 11, 77 ]
python
en
['en', 'error', 'th']
False
non_optimal_instantaneous_temperature_inhibition
(canopy_t)
Equation B.2 Returns: growth inhibition by non-optimal instantaneous temperature [-]
Equation B.2 Returns: growth inhibition by non-optimal instantaneous temperature [-]
def non_optimal_instantaneous_temperature_inhibition(canopy_t): """ Equation B.2 Returns: growth inhibition by non-optimal instantaneous temperature [-] """ return smoothed_conditional_function(canopy_t, -0.8690, 10) * smoothed_conditional_function(canopy_t, 0.5793, 34)
[ "def", "non_optimal_instantaneous_temperature_inhibition", "(", "canopy_t", ")", ":", "return", "smoothed_conditional_function", "(", "canopy_t", ",", "-", "0.8690", ",", "10", ")", "*", "smoothed_conditional_function", "(", "canopy_t", ",", "0.5793", ",", "34", ")" ]
[ 14, 0 ]
[ 19, 117 ]
python
en
['en', 'error', 'th']
False
non_optimal_24_hour_canopy_temperatures_inhibition
(last_24_canopy_t)
Equation B.3 Returns: growth inhibition by non-optimal 24-hour mean temperature [-]
Equation B.3 Returns: growth inhibition by non-optimal 24-hour mean temperature [-]
def non_optimal_24_hour_canopy_temperatures_inhibition(last_24_canopy_t): """ Equation B.3 Returns: growth inhibition by non-optimal 24-hour mean temperature [-] """ return smoothed_conditional_function(last_24_canopy_t, -1.1587, 15) \ * smoothed_conditional_function(last_24_canopy_t, 1.3...
[ "def", "non_optimal_24_hour_canopy_temperatures_inhibition", "(", "last_24_canopy_t", ")", ":", "return", "smoothed_conditional_function", "(", "last_24_canopy_t", ",", "-", "1.1587", ",", "15", ")", "*", "smoothed_conditional_function", "(", "last_24_canopy_t", ",", "1.390...
[ 22, 0 ]
[ 28, 74 ]
python
en
['en', 'error', 'th']
False
crop_development_stage_inhibition
(sum_canopy_t)
Equation 9.27, B.6 Returns: The gradual increase in fruit growth rate depending on tomato development stage [-]
Equation 9.27, B.6 Returns: The gradual increase in fruit growth rate depending on tomato development stage [-]
def crop_development_stage_inhibition(sum_canopy_t): """ Equation 9.27, B.6 Returns: The gradual increase in fruit growth rate depending on tomato development stage [-] """ return 0.5 * ((sum_canopy_t / SUM_END_T) + math.sqrt((sum_canopy_t / SUM_END_T) ** 2 + 1e-4)) \ - 0.5 * ((sum_canopy...
[ "def", "crop_development_stage_inhibition", "(", "sum_canopy_t", ")", ":", "return", "0.5", "*", "(", "(", "sum_canopy_t", "/", "SUM_END_T", ")", "+", "math", ".", "sqrt", "(", "(", "sum_canopy_t", "/", "SUM_END_T", ")", "**", "2", "+", "1e-4", ")", ")", ...
[ 31, 0 ]
[ 38, 84 ]
python
en
['en', 'error', 'th']
False
fruit_flow_inhibition
(sum_canopy_t)
Equation 9.33 To assure that fruits stay in the first development stage at vegetative stage Returns: fruit flow inhibition [-]
Equation 9.33 To assure that fruits stay in the first development stage at vegetative stage Returns: fruit flow inhibition [-]
def fruit_flow_inhibition(sum_canopy_t): """ Equation 9.33 To assure that fruits stay in the first development stage at vegetative stage Returns: fruit flow inhibition [-] """ return smoothed_conditional_function(sum_canopy_t, -5e-2, 0)
[ "def", "fruit_flow_inhibition", "(", "sum_canopy_t", ")", ":", "return", "smoothed_conditional_function", "(", "sum_canopy_t", ",", "-", "5e-2", ",", "0", ")" ]
[ 41, 0 ]
[ 47, 64 ]
python
en
['en', 'error', 'th']
False
ImageSeq2seqAgent.build_model
(self)
Override to build appropriate model.
Override to build appropriate model.
def build_model(self) -> ImageSeq2seqModel: # type: ignore """ Override to build appropriate model. """ self.model = ImageSeq2seqModel(self.opt, self.dict) if self.opt['embedding_type'] != 'random': self._copy_embeddings( self.model.embeddings.weight,...
[ "def", "build_model", "(", "self", ")", "->", "ImageSeq2seqModel", ":", "# type: ignore", "self", ".", "model", "=", "ImageSeq2seqModel", "(", "self", ".", "opt", ",", "self", ".", "dict", ")", "if", "self", ".", "opt", "[", "'embedding_type'", "]", "!=", ...
[ 34, 4 ]
[ 43, 25 ]
python
en
['en', 'error', 'th']
False
ImageSeq2seqAgent.add_cmdline_args
( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None )
Override to add one arg.
Override to add one arg.
def add_cmdline_args( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None ) -> ParlaiParser: """ Override to add one arg. """ TransformerGeneratorAgent.add_cmdline_args(parser, partial_opt=partial_opt) TorchImageAgent.add_cmdline_args(parser, partial_opt=part...
[ "def", "add_cmdline_args", "(", "cls", ",", "parser", ":", "ParlaiParser", ",", "partial_opt", ":", "Optional", "[", "Opt", "]", "=", "None", ")", "->", "ParlaiParser", ":", "TransformerGeneratorAgent", ".", "add_cmdline_args", "(", "parser", ",", "partial_opt",...
[ 46, 4 ]
[ 69, 20 ]
python
en
['en', 'error', 'th']
False
ImageSeq2seqAgent.build_dictionary
(self)
Override to include image tokens.
Override to include image tokens.
def build_dictionary(self) -> DictionaryAgent: """ Override to include image tokens. """ self.dict = super().build_dictionary() if self.opt.get('include_image_token') and TOKEN_IMAGE not in self.dict: self.dict[TOKEN_IMAGE] = 1 self.dict[TOKEN_NO_IMAGE] = ...
[ "def", "build_dictionary", "(", "self", ")", "->", "DictionaryAgent", ":", "self", ".", "dict", "=", "super", "(", ")", ".", "build_dictionary", "(", ")", "if", "self", ".", "opt", ".", "get", "(", "'include_image_token'", ")", "and", "TOKEN_IMAGE", "not",...
[ 71, 4 ]
[ 80, 24 ]
python
en
['en', 'error', 'th']
False
ImageSeq2seqAgent._set_text_vec
(self, *args, **kwargs)
Override to include image token.
Override to include image token.
def _set_text_vec(self, *args, **kwargs) -> dict: """ Override to include image token. """ obs = super()._set_text_vec(*args, **kwargs) if 'text' not in obs or 'text_vec' not in obs: return obs if self.opt.get('include_image_token', False): # `trun...
[ "def", "_set_text_vec", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", "->", "dict", ":", "obs", "=", "super", "(", ")", ".", "_set_text_vec", "(", "*", "args", ",", "*", "*", "kwargs", ")", "if", "'text'", "not", "in", "obs", "or",...
[ 82, 4 ]
[ 102, 18 ]
python
en
['en', 'error', 'th']
False
ImageSeq2seqAgent._dummy_batch
(self, batchsize: int, maxlen: int)
Override to include image feats.
Override to include image feats.
def _dummy_batch(self, batchsize: int, maxlen: int) -> Batch: """ Override to include image feats. """ b = super()._dummy_batch(batchsize, maxlen) image = torch.ones(batchsize, self.image_features_dim).cuda() if self.n_image_channels > 1: image = image.unsquee...
[ "def", "_dummy_batch", "(", "self", ",", "batchsize", ":", "int", ",", "maxlen", ":", "int", ")", "->", "Batch", ":", "b", "=", "super", "(", ")", ".", "_dummy_batch", "(", "batchsize", ",", "maxlen", ")", "image", "=", "torch", ".", "ones", "(", "...
[ 104, 4 ]
[ 119, 9 ]
python
en
['en', 'error', 'th']
False
ImageSeq2seqAgent.batchify_image_features
(self, batch: Batch)
Format and return the batched image features. Image features represented by tensors will set to the right type.
Format and return the batched image features.
def batchify_image_features(self, batch: Batch) -> Batch: """ Format and return the batched image features. Image features represented by tensors will set to the right type. """ if type(batch.image) == list and any(b is not None for b in batch.image): images = [] ...
[ "def", "batchify_image_features", "(", "self", ",", "batch", ":", "Batch", ")", "->", "Batch", ":", "if", "type", "(", "batch", ".", "image", ")", "==", "list", "and", "any", "(", "b", "is", "not", "None", "for", "b", "in", "batch", ".", "image", "...
[ 121, 4 ]
[ 137, 20 ]
python
en
['en', 'error', 'th']
False
ImageSeq2seqAgent._process_image_features
(self, features: torch.Tensor)
Format shape and type of input image-feature tensor. Override TorchImageAgent._process_image_features to handle multi-dimensional images.
Format shape and type of input image-feature tensor.
def _process_image_features(self, features: torch.Tensor) -> torch.Tensor: """ Format shape and type of input image-feature tensor. Override TorchImageAgent._process_image_features to handle multi-dimensional images. """ features = features.view(-1, self.image_features_d...
[ "def", "_process_image_features", "(", "self", ",", "features", ":", "torch", ".", "Tensor", ")", "->", "torch", ".", "Tensor", ":", "features", "=", "features", ".", "view", "(", "-", "1", ",", "self", ".", "image_features_dim", ")", "return", "torch", ...
[ 139, 4 ]
[ 152, 9 ]
python
en
['en', 'error', 'th']
False
ImageSeq2seqAgent.load_state_dict
(self, state_dict: Dict[str, torch.Tensor])
Override for custom loading. Reasons: 1. When using an init model without an image encoder 2. We decide to add segment embeddings after the fact. 3. When using an init model with only an encoder provided In this case, we may need to add the START tok...
Override for custom loading.
def load_state_dict(self, state_dict: Dict[str, torch.Tensor]): """ Override for custom loading. Reasons: 1. When using an init model without an image encoder 2. We decide to add segment embeddings after the fact. 3. When using an init model with only an enco...
[ "def", "load_state_dict", "(", "self", ",", "state_dict", ":", "Dict", "[", "str", ",", "torch", ".", "Tensor", "]", ")", ":", "state_dict", "[", "'encoder.dummy_image_enc'", "]", "=", "self", ".", "model", ".", "encoder", ".", "dummy_image_enc", "state_dict...
[ 157, 4 ]
[ 236, 46 ]
python
en
['en', 'error', 'th']
False
Line.color
(self)
Sets the inner box plot bounding line color. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,1...
Sets the inner box plot bounding line color. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,1...
def color(self): """ Sets the inner box plot bounding line color. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hs...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Line.width
(self)
Sets the inner box plot bounding line width. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the inner box plot bounding line width. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf]
def width(self): """ Sets the inner box plot bounding line width. The 'width' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["width"]
[ "def", "width", "(", "self", ")", ":", "return", "self", "[", "\"width\"", "]" ]
[ 74, 4 ]
[ 85, 28 ]
python
en
['en', 'error', 'th']
False
Line.__init__
(self, arg=None, color=None, width=None, **kwargs)
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.violin.box.Line` color Sets the inner box plot bounding line color. ...
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.violin.box.Line` color Sets the inner box plot bounding line color. ...
def __init__(self, arg=None, color=None, width=None, **kwargs): """ Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.violin.box.Line` ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "width", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Line", ",", "self", ")", ".", "__init__", "(", "\"line\"", ")", "if", "\"_parent\"", ...
[ 102, 4 ]
[ 165, 34 ]
python
en
['en', 'error', 'th']
False
display_meter
(cur_value, max_value, length=30, fill_color=["R", "Y", "G"], empty_color="B", text_color="w", align="left", pre_text="", post_text="", show_values=True)
Represents a current and maximum value given as a "bar" rendered with ANSI or xterm256 background colors. Args: cur_value (int): Current value to display max_value (int): Maximum value to display Options: length (int): Length of meter returned, in characters fi...
Represents a current and maximum value given as a "bar" rendered with ANSI or xterm256 background colors. Args: cur_value (int): Current value to display max_value (int): Maximum value to display Options: length (int): Length of meter returned, in characters fi...
def display_meter(cur_value, max_value, length=30, fill_color=["R", "Y", "G"], empty_color="B", text_color="w", align="left", pre_text="", post_text="", show_values=True): """ Represents a current and maximum value given as a "bar" rendere...
[ "def", "display_meter", "(", "cur_value", ",", "max_value", ",", "length", "=", "30", ",", "fill_color", "=", "[", "\"R\"", ",", "\"Y\"", ",", "\"G\"", "]", ",", "empty_color", "=", "\"B\"", ",", "text_color", "=", "\"w\"", ",", "align", "=", "\"left\"",...
[ 24, 0 ]
[ 102, 20 ]
python
en
['en', 'error', 'th']
False
Paginated.__init__
( self, *, start: int = None, end: int = None, limit: int = None, total: int = None, **kwargs )
Initialize a Paginated instance. Args: start: The first record offset end: The last record offset limit: Enforced limit on the number of records total: Total number of records available
Initialize a Paginated instance.
def __init__( self, *, start: int = None, end: int = None, limit: int = None, total: int = None, **kwargs ): """ Initialize a Paginated instance. Args: start: The first record offset end: The last record offset ...
[ "def", "__init__", "(", "self", ",", "*", ",", "start", ":", "int", "=", "None", ",", "end", ":", "int", "=", "None", ",", "limit", ":", "int", "=", "None", ",", "total", ":", "int", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(...
[ 15, 4 ]
[ 38, 26 ]
python
en
['en', 'error', 'th']
False
TestPropertyValidation.test_validators_work_attr
(self)
Note: all of the individual validators are tested in `_plotly_utils/tests/validators`. Here we're just making sure that datatypes make use of validators
Note: all of the individual validators are tested in `_plotly_utils/tests/validators`. Here we're just making sure that datatypes make use of validators
def test_validators_work_attr(self): """ Note: all of the individual validators are tested in `_plotly_utils/tests/validators`. Here we're just making sure that datatypes make use of validators """ with pytest.raises(ValueError): self.scatter.name = [1, 2, 3]
[ "def", "test_validators_work_attr", "(", "self", ")", ":", "with", "pytest", ".", "raises", "(", "ValueError", ")", ":", "self", ".", "scatter", ".", "name", "=", "[", "1", ",", "2", ",", "3", "]" ]
[ 11, 4 ]
[ 18, 41 ]
python
en
['en', 'error', 'th']
False
TestPropertyValidation.test_validators_work_item
(self)
Note: all of the individual validators are tested in `_plotly_utils/tests/validators`. Here we're just making sure that datatypes make use of validators
Note: all of the individual validators are tested in `_plotly_utils/tests/validators`. Here we're just making sure that datatypes make use of validators
def test_validators_work_item(self): """ Note: all of the individual validators are tested in `_plotly_utils/tests/validators`. Here we're just making sure that datatypes make use of validators """ with pytest.raises(ValueError): self.scatter["name"] = [1, 2, ...
[ "def", "test_validators_work_item", "(", "self", ")", ":", "with", "pytest", ".", "raises", "(", "ValueError", ")", ":", "self", ".", "scatter", "[", "\"name\"", "]", "=", "[", "1", ",", "2", ",", "3", "]" ]
[ 20, 4 ]
[ 27, 44 ]
python
en
['en', 'error', 'th']
False
setup_data
(path, dialog_format=False, binary_classes=False)
Set up data in DialogData format from path. :param path: path to the data file that stores the MNLI dataset :param dialog_format: if set True, omit the special tokens 'Hypothesis' and 'Premise' in the text. :param binary_classes: if set True, bucketize neutral and entailment in one (not_contradiction...
Set up data in DialogData format from path.
def setup_data(path, dialog_format=False, binary_classes=False): """ Set up data in DialogData format from path. :param path: path to the data file that stores the MNLI dataset :param dialog_format: if set True, omit the special tokens 'Hypothesis' and 'Premise' in the text. :param binary_classes: ...
[ "def", "setup_data", "(", "path", ",", "dialog_format", "=", "False", ",", "binary_classes", "=", "False", ")", ":", "print", "(", "'loading: '", "+", "path", ")", "with", "PathManager", ".", "open", "(", "path", ",", "'r'", ")", "as", "data_file", ":", ...
[ 60, 0 ]
[ 87, 55 ]
python
en
['en', 'error', 'th']
False
convert_to_dialogData
( premise_raw, hypo_raw, answer_raw, dialog_format=False, binary_classes=False )
Convert from NLI context to dialog text. :param premise_raw: raw premise extracted from jsonl file. :param hypo_raw: raw hypothesis extracted from jsonl file. :param answer_raw: raw answer extracted from jsonl file. :param dialog_format: if set True, omit the special tokens 'Hypothesis' and 'Premi...
Convert from NLI context to dialog text.
def convert_to_dialogData( premise_raw, hypo_raw, answer_raw, dialog_format=False, binary_classes=False ): """ Convert from NLI context to dialog text. :param premise_raw: raw premise extracted from jsonl file. :param hypo_raw: raw hypothesis extracted from jsonl file. :param answer_raw: raw an...
[ "def", "convert_to_dialogData", "(", "premise_raw", ",", "hypo_raw", ",", "answer_raw", ",", "dialog_format", "=", "False", ",", "binary_classes", "=", "False", ")", ":", "premise_raw", "=", "premise_raw", ".", "strip", "(", "'\\n'", ")", ".", "strip", "(", ...
[ 90, 0 ]
[ 120, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.bgcolor
(self)
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bgcolor(self): """ Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 59, 4 ]
[ 109, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.bordercolor
(self)
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bordercolor(self): """ Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva ...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 118, 4 ]
[ 168, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.borderwidth
(self)
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def borderwidth(self): """ Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["...
[ "def", "borderwidth", "(", "self", ")", ":", "return", "self", "[", "\"borderwidth\"", "]" ]
[ 177, 4 ]
[ 188, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.dtick
(self)
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
def dtick(self): """ Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example...
[ "def", "dtick", "(", "self", ")", ":", "return", "self", "[", "\"dtick\"", "]" ]
[ 197, 4 ]
[ 226, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.exponentformat
(self)
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
def exponentformat(self): """ Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. ...
[ "def", "exponentformat", "(", "self", ")", ":", "return", "self", "[", "\"exponentformat\"", "]" ]
[ 235, 4 ]
[ 251, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.len
(self)
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf] Return...
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf]
def len(self): """ Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interva...
[ "def", "len", "(", "self", ")", ":", "return", "self", "[", "\"len\"", "]" ]
[ 260, 4 ]
[ 273, 26 ]
python
en
['en', 'error', 'th']
False
ColorBar.lenmode
(self)
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
def lenmode(self): """ Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - ...
[ "def", "lenmode", "(", "self", ")", ":", "return", "self", "[", "\"lenmode\"", "]" ]
[ 282, 4 ]
[ 296, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.nticks
(self)
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
def nticks(self): """ Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer an...
[ "def", "nticks", "(", "self", ")", ":", "return", "self", "[", "\"nticks\"", "]" ]
[ 305, 4 ]
[ 320, 29 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinecolor
(self)
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def outlinecolor(self): """ Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsv...
[ "def", "outlinecolor", "(", "self", ")", ":", "return", "self", "[", "\"outlinecolor\"", "]" ]
[ 329, 4 ]
[ 379, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinewidth
(self)
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def outlinewidth(self): """ Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["outlinewidth"]
[ "def", "outlinewidth", "(", "self", ")", ":", "return", "self", "[", "\"outlinewidth\"", "]" ]
[ 388, 4 ]
[ 399, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.separatethousands
(self)
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False)
def separatethousands(self): """ If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["separatethousands"]
[ "def", "separatethousands", "(", "self", ")", ":", "return", "self", "[", "\"separatethousands\"", "]" ]
[ 408, 4 ]
[ 419, 40 ]
python
en
['en', 'error', 'th']
False
ColorBar.showexponent
(self)
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
def showexponent(self): """ If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is ...
[ "def", "showexponent", "(", "self", ")", ":", "return", "self", "[", "\"showexponent\"", "]" ]
[ 428, 4 ]
[ 443, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticklabels
(self)
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False)
def showticklabels(self): """ Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showticklabels"]
[ "def", "showticklabels", "(", "self", ")", ":", "return", "self", "[", "\"showticklabels\"", "]" ]
[ 452, 4 ]
[ 463, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showtickprefix
(self)
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
def showtickprefix(self): """ If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' proper...
[ "def", "showtickprefix", "(", "self", ")", ":", "return", "self", "[", "\"showtickprefix\"", "]" ]
[ 472, 4 ]
[ 487, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticksuffix
(self)
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- Any
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none']
def showticksuffix(self): """ Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- ...
[ "def", "showticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"showticksuffix\"", "]" ]
[ 496, 4 ]
[ 508, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.thickness
(self)
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf]
def thickness(self): """ Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- i...
[ "def", "thickness", "(", "self", ")", ":", "return", "self", "[", "\"thickness\"", "]" ]
[ 517, 4 ]
[ 529, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.thicknessmode
(self)
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
def thicknessmode(self): """ Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be speci...
[ "def", "thicknessmode", "(", "self", ")", ":", "return", "self", "[", "\"thicknessmode\"", "]" ]
[ 538, 4 ]
[ 552, 36 ]
python
en
['en', 'error', 'th']
False
ColorBar.tick0
(self)
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
def tick0(self): """ Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for...
[ "def", "tick0", "(", "self", ")", ":", "return", "self", "[", "\"tick0\"", "]" ]
[ 561, 4 ]
[ 579, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickangle
(self)
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
def tickangle(self): """ Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Num...
[ "def", "tickangle", "(", "self", ")", ":", "return", "self", "[", "\"tickangle\"", "]" ]
[ 588, 4 ]
[ 603, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickcolor
(self)
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def tickcolor(self): """ Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e...
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 612, 4 ]
[ 662, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickfont
(self)
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.histogram2d.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Tickfon...
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.histogram2d.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Tickfon...
def tickfont(self): """ Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.histogram2d.colorbar.Tickfont` - A dict of string/value properties that will be pa...
[ "def", "tickfont", "(", "self", ")", ":", "return", "self", "[", "\"tickfont\"", "]" ]
[ 671, 4 ]
[ 708, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformat
(self)
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def tickformat(self): """ Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github...
[ "def", "tickformat", "(", "self", ")", ":", "return", "self", "[", "\"tickformat\"", "]" ]
[ 717, 4 ]
[ 737, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstops
(self)
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.histogram2d.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Tic...
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.histogram2d.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Tic...
def tickformatstops(self): """ The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.histogram2d.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that...
[ "def", "tickformatstops", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstops\"", "]" ]
[ 746, 4 ]
[ 794, 38 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstopdefaults
(self)
When used in a template (as layout.template.data.histogram2d.co lorbar.tickformatstopdefaults), sets the default property values to use for elements of histogram2d.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that m...
When used in a template (as layout.template.data.histogram2d.co lorbar.tickformatstopdefaults), sets the default property values to use for elements of histogram2d.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that m...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.data.histogram2d.co lorbar.tickformatstopdefaults), sets the default property values to use for elements of histogram2d.colorbar.tickformatstops The 'tickformatstopdefaults' property is...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 803, 4 ]
[ 822, 45 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticklen
(self)
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ticklen(self): """ Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ticklen"]
[ "def", "ticklen", "(", "self", ")", ":", "return", "self", "[", "\"ticklen\"", "]" ]
[ 831, 4 ]
[ 842, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickmode
(self)
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
def tickmode(self): """ Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick`...
[ "def", "tickmode", "(", "self", ")", ":", "return", "self", "[", "\"tickmode\"", "]" ]
[ 851, 4 ]
[ 869, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickprefix
(self)
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string
def tickprefix(self): """ Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["tickprefix"]
[ "def", "tickprefix", "(", "self", ")", ":", "return", "self", "[", "\"tickprefix\"", "]" ]
[ 878, 4 ]
[ 890, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticks
(self)
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
def ticks(self): """ Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the follo...
[ "def", "ticks", "(", "self", ")", ":", "return", "self", "[", "\"ticks\"", "]" ]
[ 899, 4 ]
[ 913, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticksuffix
(self)
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string
def ticksuffix(self): """ Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["ticksuffix"]
[ "def", "ticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"ticksuffix\"", "]" ]
[ 922, 4 ]
[ 934, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktext
(self)
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns -------...
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ticktext(self): """ Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series ...
[ "def", "ticktext", "(", "self", ")", ":", "return", "self", "[", "\"ticktext\"", "]" ]
[ 943, 4 ]
[ 956, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktextsrc
(self)
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def ticktextsrc(self): """ Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["ticktextsrc"]
[ "def", "ticktextsrc", "(", "self", ")", ":", "return", "self", "[", "\"ticktextsrc\"", "]" ]
[ 965, 4 ]
[ 976, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvals
(self)
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.nda...
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def tickvals(self): """ Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
[ "def", "tickvals", "(", "self", ")", ":", "return", "self", "[", "\"tickvals\"", "]" ]
[ 985, 4 ]
[ 997, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvalssrc
(self)
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def tickvalssrc(self): """ Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["tickvalssrc"]
[ "def", "tickvalssrc", "(", "self", ")", ":", "return", "self", "[", "\"tickvalssrc\"", "]" ]
[ 1006, 4 ]
[ 1017, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickwidth
(self)
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def tickwidth(self): """ Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["tickwidth"]
[ "def", "tickwidth", "(", "self", ")", ":", "return", "self", "[", "\"tickwidth\"", "]" ]
[ 1026, 4 ]
[ 1037, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.histogram2d.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.histogram2d.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
def title(self): """ The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.histogram2d.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Sup...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1046, 4 ]
[ 1076, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use histogram2d.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An insta...
Deprecated: Please use histogram2d.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An insta...
def titlefont(self): """ Deprecated: Please use histogram2d.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be sp...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1085, 4 ]
[ 1124, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use histogram2d.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that ...
Deprecated: Please use histogram2d.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that ...
def titleside(self): """ Deprecated: Please use histogram2d.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' ...
[ "def", "titleside", "(", "self", ")", ":", "return", "self", "[", "\"titleside\"", "]" ]
[ 1133, 4 ]
[ 1148, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.x
(self)
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def x(self): """ Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 1157, 4 ]
[ 1168, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.xanchor
(self)
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
def xanchor(self): """ Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration va...
[ "def", "xanchor", "(", "self", ")", ":", "return", "self", "[", "\"xanchor\"", "]" ]
[ 1177, 4 ]
[ 1191, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.xpad
(self)
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def xpad(self): """ Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["xpad"]
[ "def", "xpad", "(", "self", ")", ":", "return", "self", "[", "\"xpad\"", "]" ]
[ 1200, 4 ]
[ 1211, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.y
(self)
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def y(self): """ Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1220, 4 ]
[ 1231, 24 ]
python
en
['en', 'error', 'th']
False