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
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.densitymapbox.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.densitymapbox.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.densitymapbox.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor S...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1046, 4 ]
[ 1076, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use densitymapbox.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: ...
Deprecated: Please use densitymapbox.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: ...
def titlefont(self): """ Deprecated: Please use densitymapbox.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...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1085, 4 ]
[ 1125, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use densitymapbox.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 tha...
Deprecated: Please use densitymapbox.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 tha...
def titleside(self): """ Deprecated: Please use densitymapbox.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\"", "]" ]
[ 1134, 4 ]
[ 1149, 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\"", "]" ]
[ 1158, 4 ]
[ 1169, 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\"", "]" ]
[ 1178, 4 ]
[ 1192, 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\"", "]" ]
[ 1201, 4 ]
[ 1212, 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\"", "]" ]
[ 1221, 4 ]
[ 1232, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.yanchor
(self)
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
def yanchor(self): """ Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration value...
[ "def", "yanchor", "(", "self", ")", ":", "return", "self", "[", "\"yanchor\"", "]" ]
[ 1241, 4 ]
[ 1255, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.ypad
(self)
Sets the amount of padding (in px) along the y direction. The 'ypad' 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 y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ypad(self): """ Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ypad"]
[ "def", "ypad", "(", "self", ")", ":", "return", "self", "[", "\"ypad\"", "]" ]
[ 1264, 4 ]
[ 1275, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.__init__
( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, showexpo...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.densitymapbox.ColorBar` bgcolor Sets the color of padded area. ...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.densitymapbox.ColorBar` bgcolor Sets the color of padded area. ...
def __init__( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "bgcolor", "=", "None", ",", "bordercolor", "=", "None", ",", "borderwidth", "=", "None", ",", "dtick", "=", "None", ",", "exponentformat", "=", "None", ",", "len", "=", "None", ",", "lenm...
[ 1482, 4 ]
[ 1941, 34 ]
python
en
['en', 'error', 'th']
False
get_kitti_image_info
(path, training=True, label_info=True, velodyne=False, calib=False, image_ids=7481, extend_matrix=True, num_worker=8, re...
KITTI annotation format version 2: { [optional]points: [N, 3+] point cloud [optional, for kitti]image: { image_idx: ... image_path: ... image_shape: ... } point_cloud: { num_features: 4 velodyne_path: ... } ...
KITTI annotation format version 2: { [optional]points: [N, 3+] point cloud [optional, for kitti]image: { image_idx: ... image_path: ... image_shape: ... } point_cloud: { num_features: 4 velodyne_path: ... } ...
def get_kitti_image_info(path, training=True, label_info=True, velodyne=False, calib=False, image_ids=7481, extend_matrix=True, num_worker=8, ...
[ "def", "get_kitti_image_info", "(", "path", ",", "training", "=", "True", ",", "label_info", "=", "True", ",", "velodyne", "=", "False", ",", "calib", "=", "False", ",", "image_ids", "=", "7481", ",", "extend_matrix", "=", "True", ",", "num_worker", "=", ...
[ 139, 0 ]
[ 260, 28 ]
python
en
['en', 'error', 'th']
False
get_waymo_image_info
(path, training=True, label_info=True, velodyne=False, calib=False, pose=False, image_ids=7481, extend_matrix=True, num_...
Waymo annotation format version like KITTI: { [optional]points: [N, 3+] point cloud [optional, for kitti]image: { image_idx: ... image_path: ... image_shape: ... } point_cloud: { num_features: 6 velodyne_path: ... ...
Waymo annotation format version like KITTI: { [optional]points: [N, 3+] point cloud [optional, for kitti]image: { image_idx: ... image_path: ... image_shape: ... } point_cloud: { num_features: 6 velodyne_path: ... ...
def get_waymo_image_info(path, training=True, label_info=True, velodyne=False, calib=False, pose=False, image_ids=7481, extend_matrix=True, ...
[ "def", "get_waymo_image_info", "(", "path", ",", "training", "=", "True", ",", "label_info", "=", "True", ",", "velodyne", "=", "False", ",", "calib", "=", "False", ",", "pose", "=", "False", ",", "image_ids", "=", "7481", ",", "extend_matrix", "=", "Tru...
[ 263, 0 ]
[ 439, 28 ]
python
en
['en', 'error', 'th']
False
RouteUpdate.__init__
(self, *, recipient_key: str = None, action: str = None, **kwargs)
Initialize a RouteUpdate instance. Args: recipient_key: The recipient verkey of the route action: The action to perform
Initialize a RouteUpdate instance.
def __init__(self, *, recipient_key: str = None, action: str = None, **kwargs): """ Initialize a RouteUpdate instance. Args: recipient_key: The recipient verkey of the route action: The action to perform """ super(RouteUpdate, self).__init__(**kwargs) ...
[ "def", "__init__", "(", "self", ",", "*", ",", "recipient_key", ":", "str", "=", "None", ",", "action", ":", "str", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "RouteUpdate", ",", "self", ")", ".", "__init__", "(", "*", "*", "kw...
[ 18, 4 ]
[ 29, 28 ]
python
en
['en', 'error', 'th']
False
list_node
(option_generator, select=None, pagesize=10)
Decorator for making an EvMenu node into a multi-page list node. Will add new options, prepending those options added in the node. Args: option_generator (callable or list): A list of strings indicating the options, or a callable that is called as option_generator(caller) to produce su...
Decorator for making an EvMenu node into a multi-page list node. Will add new options, prepending those options added in the node.
def list_node(option_generator, select=None, pagesize=10): """ Decorator for making an EvMenu node into a multi-page list node. Will add new options, prepending those options added in the node. Args: option_generator (callable or list): A list of strings indicating the options, or a callable ...
[ "def", "list_node", "(", "option_generator", ",", "select", "=", "None", ",", "pagesize", "=", "10", ")", ":", "def", "decorator", "(", "func", ")", ":", "def", "_select_parser", "(", "caller", ",", "raw_string", ",", "*", "*", "kwargs", ")", ":", "\"\...
[ 1068, 0 ]
[ 1226, 20 ]
python
en
['en', 'error', 'th']
False
get_input
(caller, prompt, callback, session=None, *args, **kwargs)
This is a helper function for easily request input from the caller. Args: caller (Account or Object): The entity being asked the question. This should usually be an object controlled by a user. prompt (str): This text will be shown to the user, in order ...
This is a helper function for easily request input from the caller.
def get_input(caller, prompt, callback, session=None, *args, **kwargs): """ This is a helper function for easily request input from the caller. Args: caller (Account or Object): The entity being asked the question. This should usually be an object controlled by a user. ...
[ "def", "get_input", "(", "caller", ",", "prompt", ",", "callback", ",", "session", "=", "None", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "callable", "(", "callback", ")", ":", "raise", "RuntimeError", "(", "\"get_input: input cal...
[ 1292, 0 ]
[ 1359, 39 ]
python
en
['en', 'error', 'th']
False
CmdEvMenuNode.func
(self)
Implement all menu commands.
Implement all menu commands.
def func(self): """ Implement all menu commands. """ def _restore(caller): # check if there is a saved menu available. # this will re-start a completely new evmenu call. saved_options = caller.attributes.get("_menutree_saved") if saved_opti...
[ "def", "func", "(", "self", ")", ":", "def", "_restore", "(", "caller", ")", ":", "# check if there is a saved menu available.", "# this will re-start a completely new evmenu call.", "saved_options", "=", "caller", ".", "attributes", ".", "get", "(", "\"_menutree_saved\""...
[ 237, 4 ]
[ 284, 41 ]
python
en
['en', 'error', 'th']
False
EvMenuCmdSet.at_cmdset_creation
(self)
Called when creating the set.
Called when creating the set.
def at_cmdset_creation(self): """ Called when creating the set. """ self.add(CmdEvMenuNode())
[ "def", "at_cmdset_creation", "(", "self", ")", ":", "self", ".", "add", "(", "CmdEvMenuNode", "(", ")", ")" ]
[ 299, 4 ]
[ 303, 33 ]
python
en
['en', 'error', 'th']
False
EvMenu.__init__
(self, caller, menudata, startnode="start", cmdset_mergetype="Replace", cmdset_priority=1, auto_quit=True, auto_look=True, auto_help=True, cmd_on_exit="look", persistent=False, startnode_input="", session=None, debug=False, **kwargs)
Initialize the menu tree and start the caller onto the first node. Args: caller (Object, Account or Session): The user of the menu. menudata (str, module or dict): The full or relative path to the module holding the menu tree data. All global functions in this m...
Initialize the menu tree and start the caller onto the first node.
def __init__(self, caller, menudata, startnode="start", cmdset_mergetype="Replace", cmdset_priority=1, auto_quit=True, auto_look=True, auto_help=True, cmd_on_exit="look", persistent=False, startnode_input="", session=None, debug=False,...
[ "def", "__init__", "(", "self", ",", "caller", ",", "menudata", ",", "startnode", "=", "\"start\"", ",", "cmdset_mergetype", "=", "\"Replace\"", ",", "cmdset_priority", "=", "1", ",", "auto_quit", "=", "True", ",", "auto_look", "=", "True", ",", "auto_help",...
[ 320, 4 ]
[ 503, 71 ]
python
en
['en', 'error', 'th']
False
EvMenu._parse_menudata
(self, menudata)
Parse a menufile for node functions and store in dictionary map. Alternatively, accept a pre-made mapping dictionary of node functions. Args: menudata (str, module or dict): The python.path to the menufile, or the python module itself. If a dict, this should...
Parse a menufile for node functions and store in dictionary map. Alternatively, accept a pre-made mapping dictionary of node functions.
def _parse_menudata(self, menudata): """ Parse a menufile for node functions and store in dictionary map. Alternatively, accept a pre-made mapping dictionary of node functions. Args: menudata (str, module or dict): The python.path to the menufile, or ...
[ "def", "_parse_menudata", "(", "self", ",", "menudata", ")", ":", "if", "isinstance", "(", "menudata", ",", "dict", ")", ":", "# This is assumed to be a pre-loaded menu tree.", "return", "menudata", "else", ":", "# a python path of a module", "module", "=", "mod_impor...
[ 505, 4 ]
[ 528, 72 ]
python
en
['en', 'error', 'th']
False
EvMenu._format_node
(self, nodetext, optionlist)
Format the node text + option section Args: nodetext (str): The node text optionlist (list): List of (key, desc) pairs. Returns: string (str): The options section, including all needed spaces. Notes: This will adjust the...
Format the node text + option section
def _format_node(self, nodetext, optionlist): """ Format the node text + option section Args: nodetext (str): The node text optionlist (list): List of (key, desc) pairs. Returns: string (str): The options section, including all needed...
[ "def", "_format_node", "(", "self", ",", "nodetext", ",", "optionlist", ")", ":", "# handle the node text", "nodetext", "=", "self", ".", "nodetext_formatter", "(", "nodetext", ")", "# handle the options", "optionstext", "=", "self", ".", "options_formatter", "(", ...
[ 530, 4 ]
[ 556, 57 ]
python
en
['en', 'error', 'th']
False
EvMenu._safe_call
(self, callback, raw_string, **kwargs)
Call a node-like callable, with a variable number of raw_string, *args, **kwargs, all of which should work also if not present (only `caller` is always required). Return its result.
Call a node-like callable, with a variable number of raw_string, *args, **kwargs, all of which should work also if not present (only `caller` is always required). Return its result.
def _safe_call(self, callback, raw_string, **kwargs): """ Call a node-like callable, with a variable number of raw_string, *args, **kwargs, all of which should work also if not present (only `caller` is always required). Return its result. """ try: try: ...
[ "def", "_safe_call", "(", "self", ",", "callback", ",", "raw_string", ",", "*", "*", "kwargs", ")", ":", "try", ":", "try", ":", "nargs", "=", "len", "(", "getargspec", "(", "callback", ")", ".", "args", ")", "except", "TypeError", ":", "raise", "EvM...
[ 558, 4 ]
[ 592, 18 ]
python
en
['en', 'error', 'th']
False
EvMenu._execute_node
(self, nodename, raw_string, **kwargs)
Execute a node. Args: nodename (str): Name of node. raw_string (str): The raw default string entered on the previous node (only used if the node accepts it as an argument) kwargs (any, optional): Optional kwargs for the node. ...
Execute a node.
def _execute_node(self, nodename, raw_string, **kwargs): """ Execute a node. Args: nodename (str): Name of node. raw_string (str): The raw default string entered on the previous node (only used if the node accepts it as an argument) ...
[ "def", "_execute_node", "(", "self", ",", "nodename", ",", "raw_string", ",", "*", "*", "kwargs", ")", ":", "try", ":", "node", "=", "self", ".", "_menutree", "[", "nodename", "]", "except", "KeyError", ":", "self", ".", "caller", ".", "msg", "(", "_...
[ 594, 4 ]
[ 634, 32 ]
python
en
['en', 'error', 'th']
False
EvMenu.run_exec
(self, nodename, raw_string, **kwargs)
Run a function or node as a callback (with the 'exec' option key). Args: nodename (callable or str): A callable to run as `callable(caller, raw_string)`, or the Name of an existing node to run as a callable. This may or may not return a strin...
Run a function or node as a callback (with the 'exec' option key).
def run_exec(self, nodename, raw_string, **kwargs): """ Run a function or node as a callback (with the 'exec' option key). Args: nodename (callable or str): A callable to run as `callable(caller, raw_string)`, or the Name of an existing node to run as...
[ "def", "run_exec", "(", "self", ",", "nodename", ",", "raw_string", ",", "*", "*", "kwargs", ")", ":", "try", ":", "if", "callable", "(", "nodename", ")", ":", "# this is a direct callable - execute it directly", "ret", "=", "self", ".", "_safe_call", "(", "...
[ 636, 4 ]
[ 688, 19 ]
python
en
['en', 'error', 'th']
False
EvMenu.extract_goto_exec
(self, nodename, option_dict)
Helper: Get callables and their eventual kwargs. Args: nodename (str): The current node name (used for error reporting). option_dict (dict): The seleted option's dict. Returns: goto (str, callable or None): The goto directive in the option. goto...
Helper: Get callables and their eventual kwargs.
def extract_goto_exec(self, nodename, option_dict): """ Helper: Get callables and their eventual kwargs. Args: nodename (str): The current node name (used for error reporting). option_dict (dict): The seleted option's dict. Returns: goto (str, callab...
[ "def", "extract_goto_exec", "(", "self", ",", "nodename", ",", "option_dict", ")", ":", "goto_kwargs", ",", "exec_kwargs", "=", "{", "}", ",", "{", "}", "goto", ",", "execute", "=", "option_dict", ".", "get", "(", "\"goto\"", ",", "None", ")", ",", "op...
[ 690, 4 ]
[ 725, 54 ]
python
en
['en', 'error', 'th']
False
EvMenu.goto
(self, nodename, raw_string, **kwargs)
Run a node by name, optionally dynamically generating that name first. Args: nodename (str or callable): Name of node or a callable to be called as `function(caller, raw_string, **kwargs)` or `function(caller, **kwargs)` to return the actual goto string or ...
Run a node by name, optionally dynamically generating that name first.
def goto(self, nodename, raw_string, **kwargs): """ Run a node by name, optionally dynamically generating that name first. Args: nodename (str or callable): Name of node or a callable to be called as `function(caller, raw_string, **kwargs)` or `functi...
[ "def", "goto", "(", "self", ",", "nodename", ",", "raw_string", ",", "*", "*", "kwargs", ")", ":", "if", "callable", "(", "nodename", ")", ":", "# run the \"goto\" callable, if possible", "inp_nodename", "=", "nodename", "nodename", "=", "self", ".", "_safe_ca...
[ 727, 4 ]
[ 815, 29 ]
python
en
['en', 'error', 'th']
False
EvMenu.run_exec_then_goto
(self, runexec, goto, raw_string, runexec_kwargs=None, goto_kwargs=None)
Call 'exec' callback and goto (which may also be a callable) in sequence. Args: runexec (callable or str): Callback to run before goto. If the callback returns a string, this is used to replace the `goto` string/callable before being passed into the goto han...
Call 'exec' callback and goto (which may also be a callable) in sequence.
def run_exec_then_goto(self, runexec, goto, raw_string, runexec_kwargs=None, goto_kwargs=None): """ Call 'exec' callback and goto (which may also be a callable) in sequence. Args: runexec (callable or str): Callback to run before goto. If the callback returns a strin...
[ "def", "run_exec_then_goto", "(", "self", ",", "runexec", ",", "goto", ",", "raw_string", ",", "runexec_kwargs", "=", "None", ",", "goto_kwargs", "=", "None", ")", ":", "if", "runexec", ":", "# replace goto only if callback returns", "goto", ",", "goto_kwargs", ...
[ 817, 4 ]
[ 839, 79 ]
python
en
['en', 'error', 'th']
False
EvMenu.close_menu
(self)
Shutdown menu; occurs when reaching the end node or using the quit command.
Shutdown menu; occurs when reaching the end node or using the quit command.
def close_menu(self): """ Shutdown menu; occurs when reaching the end node or using the quit command. """ if not self._quitting: # avoid multiple calls from different sources self._quitting = True self.caller.cmdset.remove(EvMenuCmdSet) del...
[ "def", "close_menu", "(", "self", ")", ":", "if", "not", "self", ".", "_quitting", ":", "# avoid multiple calls from different sources", "self", ".", "_quitting", "=", "True", "self", ".", "caller", ".", "cmdset", ".", "remove", "(", "EvMenuCmdSet", ")", "del"...
[ 841, 4 ]
[ 854, 51 ]
python
en
['en', 'error', 'th']
False
EvMenu.print_debug_info
(self, arg)
Messages the caller with the current menu state, for debug purposes. Args: arg (str): Arg to debug instruction, either nothing, 'full' or the name of a property to inspect.
Messages the caller with the current menu state, for debug purposes.
def print_debug_info(self, arg): """ Messages the caller with the current menu state, for debug purposes. Args: arg (str): Arg to debug instruction, either nothing, 'full' or the name of a property to inspect. """ all_props = inspect.getmembers(self)...
[ "def", "print_debug_info", "(", "self", ",", "arg", ")", ":", "all_props", "=", "inspect", ".", "getmembers", "(", "self", ")", "all_methods", "=", "[", "name", "for", "name", ",", "_", "in", "inspect", ".", "getmembers", "(", "self", ",", "predicate", ...
[ 856, 4 ]
[ 899, 33 ]
python
en
['en', 'error', 'th']
False
EvMenu.parse_input
(self, raw_string)
Parses the incoming string from the menu user. Args: raw_string (str): The incoming, unmodified string from the user. Notes: This method is expected to parse input and use the result to relay execution to the relevant methods of the menu. It ...
Parses the incoming string from the menu user.
def parse_input(self, raw_string): """ Parses the incoming string from the menu user. Args: raw_string (str): The incoming, unmodified string from the user. Notes: This method is expected to parse input and use the result to relay exec...
[ "def", "parse_input", "(", "self", ",", "raw_string", ")", ":", "cmd", "=", "strip_ansi", "(", "raw_string", ".", "strip", "(", ")", ".", "lower", "(", ")", ")", "if", "cmd", "in", "self", ".", "options", ":", "# this will take precedence over the default co...
[ 901, 4 ]
[ 933, 73 ]
python
en
['en', 'error', 'th']
False
EvMenu.nodetext_formatter
(self, nodetext)
Format the node text itself. Args: nodetext (str): The full node text (the text describing the node). Returns: nodetext (str): The formatted node text.
Format the node text itself.
def nodetext_formatter(self, nodetext): """ Format the node text itself. Args: nodetext (str): The full node text (the text describing the node). Returns: nodetext (str): The formatted node text. """ return dedent(nodetext.strip('\n'), baseline_...
[ "def", "nodetext_formatter", "(", "self", ",", "nodetext", ")", ":", "return", "dedent", "(", "nodetext", ".", "strip", "(", "'\\n'", ")", ",", "baseline_index", "=", "0", ")", ".", "rstrip", "(", ")" ]
[ 943, 4 ]
[ 954, 70 ]
python
en
['en', 'error', 'th']
False
EvMenu.helptext_formatter
(self, helptext)
Format the node's help text Args: helptext (str): The unformatted help text for the node. Returns: helptext (str): The formatted help text.
Format the node's help text
def helptext_formatter(self, helptext): """ Format the node's help text Args: helptext (str): The unformatted help text for the node. Returns: helptext (str): The formatted help text. """ return dedent(helptext.strip('\n'), baseline_index=0).rst...
[ "def", "helptext_formatter", "(", "self", ",", "helptext", ")", ":", "return", "dedent", "(", "helptext", ".", "strip", "(", "'\\n'", ")", ",", "baseline_index", "=", "0", ")", ".", "rstrip", "(", ")" ]
[ 956, 4 ]
[ 967, 70 ]
python
en
['en', 'error', 'th']
False
EvMenu.options_formatter
(self, optionlist)
Formats the option block. Args: optionlist (list): List of (key, description) tuples for every option related to this node. caller (Object, Account or None, optional): The caller of the node. Returns: options (str): The formatted option disp...
Formats the option block.
def options_formatter(self, optionlist): """ Formats the option block. Args: optionlist (list): List of (key, description) tuples for every option related to this node. caller (Object, Account or None, optional): The caller of the node. Returns: ...
[ "def", "options_formatter", "(", "self", ",", "optionlist", ")", ":", "if", "not", "optionlist", ":", "return", "\"\"", "# column separation distance", "colsep", "=", "4", "nlist", "=", "len", "(", "optionlist", ")", "# get the widest option line in the table.", "ta...
[ 969, 4 ]
[ 1032, 59 ]
python
en
['en', 'error', 'th']
False
EvMenu.node_formatter
(self, nodetext, optionstext)
Formats the entirety of the node. Args: nodetext (str): The node text as returned by `self.nodetext_formatter`. optionstext (str): The options display as returned by `self.options_formatter`. caller (Object, Account or None, optional): The caller of the node. ...
Formats the entirety of the node.
def node_formatter(self, nodetext, optionstext): """ Formats the entirety of the node. Args: nodetext (str): The node text as returned by `self.nodetext_formatter`. optionstext (str): The options display as returned by `self.options_formatter`. caller (Object...
[ "def", "node_formatter", "(", "self", ",", "nodetext", ",", "optionstext", ")", ":", "if", "self", ".", "_session", ":", "screen_width", "=", "self", ".", "_session", ".", "protocol_flags", ".", "get", "(", "\"SCREENWIDTH\"", ",", "{", "0", ":", "_MAX_TEXT...
[ 1034, 4 ]
[ 1058, 84 ]
python
en
['en', 'error', 'th']
False
CmdGetInput.func
(self)
This is called when user enters anything.
This is called when user enters anything.
def func(self): """This is called when user enters anything.""" caller = self.caller try: getinput = caller.ndb._getinput if not getinput and hasattr(caller, "account"): getinput = caller.account.ndb._getinput caller = caller.account ...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "try", ":", "getinput", "=", "caller", ".", "ndb", ".", "_getinput", "if", "not", "getinput", "and", "hasattr", "(", "caller", ",", "\"account\"", ")", ":", "getinput", "=", ...
[ 1242, 4 ]
[ 1268, 45 ]
python
en
['en', 'en', 'en']
True
InputCmdSet.at_cmdset_creation
(self)
called once at creation
called once at creation
def at_cmdset_creation(self): """called once at creation""" self.add(CmdGetInput())
[ "def", "at_cmdset_creation", "(", "self", ")", ":", "self", ".", "add", "(", "CmdGetInput", "(", ")", ")" ]
[ 1282, 4 ]
[ 1284, 31 ]
python
en
['en', 'en', 'en']
True
setup
(bot)
Mandatory function to add the Cog to the bot.
Mandatory function to add the Cog to the bot.
def setup(bot): """ Mandatory function to add the Cog to the bot. """ bot.add_cog(SaveSuggestionCog(bot))
[ "def", "setup", "(", "bot", ")", ":", "bot", ".", "add_cog", "(", "SaveSuggestionCog", "(", "bot", ")", ")" ]
[ 595, 0 ]
[ 599, 39 ]
python
en
['en', 'error', 'th']
False
InstanceProvider.__init__
(self, instance)
Initialize the instance provider.
Initialize the instance provider.
def __init__(self, instance): """Initialize the instance provider.""" if not instance: raise ValueError("Class instance binding must be non-empty") self._instance = instance
[ "def", "__init__", "(", "self", ",", "instance", ")", ":", "if", "not", "instance", ":", "raise", "ValueError", "(", "\"Class instance binding must be non-empty\"", ")", "self", ".", "_instance", "=", "instance" ]
[ 12, 4 ]
[ 16, 33 ]
python
en
['en', 'en', 'en']
True
InstanceProvider.provide
(self, config: BaseSettings, injector: BaseInjector)
Provide the object instance given a config and injector.
Provide the object instance given a config and injector.
async def provide(self, config: BaseSettings, injector: BaseInjector): """Provide the object instance given a config and injector.""" return self._instance
[ "async", "def", "provide", "(", "self", ",", "config", ":", "BaseSettings", ",", "injector", ":", "BaseInjector", ")", ":", "return", "self", ".", "_instance" ]
[ 18, 4 ]
[ 20, 29 ]
python
en
['en', 'en', 'en']
True
ClassProvider.__init__
( self, instance_cls: Union[str, type], *ctor_args, async_init: str = None, **ctor_kwargs )
Initialize the class provider.
Initialize the class provider.
def __init__( self, instance_cls: Union[str, type], *ctor_args, async_init: str = None, **ctor_kwargs ): """Initialize the class provider.""" self._async_init = async_init self._ctor_args = ctor_args self._ctor_kwargs = ctor_kwargs self...
[ "def", "__init__", "(", "self", ",", "instance_cls", ":", "Union", "[", "str", ",", "type", "]", ",", "*", "ctor_args", ",", "async_init", ":", "str", "=", "None", ",", "*", "*", "ctor_kwargs", ")", ":", "self", ".", "_async_init", "=", "async_init", ...
[ 33, 4 ]
[ 44, 41 ]
python
en
['en', 'en', 'en']
True
ClassProvider.provide
(self, config: BaseSettings, injector: BaseInjector)
Provide the object instance given a config and injector.
Provide the object instance given a config and injector.
async def provide(self, config: BaseSettings, injector: BaseInjector): """Provide the object instance given a config and injector.""" instance_cls = self._instance_cls if isinstance(instance_cls, str): instance_cls = ClassLoader.load_class(instance_cls) self._instance_cls...
[ "async", "def", "provide", "(", "self", ",", "config", ":", "BaseSettings", ",", "injector", ":", "BaseInjector", ")", ":", "instance_cls", "=", "self", ".", "_instance_cls", "if", "isinstance", "(", "instance_cls", ",", "str", ")", ":", "instance_cls", "=",...
[ 46, 4 ]
[ 65, 23 ]
python
en
['en', 'en', 'en']
True
CachedProvider.__init__
(self, provider: BaseProvider)
Initialize the cached provider instance.
Initialize the cached provider instance.
def __init__(self, provider: BaseProvider): """Initialize the cached provider instance.""" if not provider: raise ValueError("Cache provider input must not be empty.") self._instance = None self._provider = provider
[ "def", "__init__", "(", "self", ",", "provider", ":", "BaseProvider", ")", ":", "if", "not", "provider", ":", "raise", "ValueError", "(", "\"Cache provider input must not be empty.\"", ")", "self", ".", "_instance", "=", "None", "self", ".", "_provider", "=", ...
[ 71, 4 ]
[ 76, 33 ]
python
en
['en', 'en', 'en']
True
CachedProvider.provide
(self, config: BaseSettings, injector: BaseInjector)
Provide the object instance given a config and injector.
Provide the object instance given a config and injector.
async def provide(self, config: BaseSettings, injector: BaseInjector): """Provide the object instance given a config and injector.""" if not self._instance: self._instance = await self._provider.provide(config, injector) return self._instance
[ "async", "def", "provide", "(", "self", ",", "config", ":", "BaseSettings", ",", "injector", ":", "BaseInjector", ")", ":", "if", "not", "self", ".", "_instance", ":", "self", ".", "_instance", "=", "await", "self", ".", "_provider", ".", "provide", "(",...
[ 78, 4 ]
[ 82, 29 ]
python
en
['en', 'en', 'en']
True
StatsProvider.__init__
( self, provider: BaseProvider, methods: Sequence[str], *, ignore_missing: bool = True )
Initialize the statistics provider instance.
Initialize the statistics provider instance.
def __init__( self, provider: BaseProvider, methods: Sequence[str], *, ignore_missing: bool = True ): """Initialize the statistics provider instance.""" if not provider: raise ValueError("Stats provider input must not be empty.") self._prov...
[ "def", "__init__", "(", "self", ",", "provider", ":", "BaseProvider", ",", "methods", ":", "Sequence", "[", "str", "]", ",", "*", ",", "ignore_missing", ":", "bool", "=", "True", ")", ":", "if", "not", "provider", ":", "raise", "ValueError", "(", "\"St...
[ 88, 4 ]
[ 100, 45 ]
python
en
['en', 'en', 'en']
True
StatsProvider.provide
(self, config: BaseSettings, injector: BaseInjector)
Provide the object instance given a config and injector.
Provide the object instance given a config and injector.
async def provide(self, config: BaseSettings, injector: BaseInjector): """Provide the object instance given a config and injector.""" instance = await self._provider.provide(config, injector) collector: Collector = await injector.inject(Collector, required=False) if collector: ...
[ "async", "def", "provide", "(", "self", ",", "config", ":", "BaseSettings", ",", "injector", ":", "BaseInjector", ")", ":", "instance", "=", "await", "self", ".", "_provider", ".", "provide", "(", "config", ",", "injector", ")", "collector", ":", "Collecto...
[ 102, 4 ]
[ 108, 23 ]
python
en
['en', 'en', 'en']
True
test_state_regenerated_from_ledger
(looper, nodeSet, tconf, tdir, sdk_pool_handle, sdk_wallet_trustee, allPluginsPath)
Node loses its state database but recreates it from ledger after start. Checking ATTRIB txns too since they store some data off ledger too
Node loses its state database but recreates it from ledger after start. Checking ATTRIB txns too since they store some data off ledger too
def test_state_regenerated_from_ledger(looper, nodeSet, tconf, tdir, sdk_pool_handle, sdk_wallet_trustee, allPluginsPath): """ Node loses its state database...
[ "def", "test_state_regenerated_from_ledger", "(", "looper", ",", "nodeSet", ",", "tconf", ",", "tdir", ",", "sdk_pool_handle", ",", "sdk_wallet_trustee", ",", "allPluginsPath", ")", ":", "endorsers", "=", "[", "]", "for", "i", "in", "range", "(", "5", ")", "...
[ 15, 0 ]
[ 74, 52 ]
python
en
['en', 'error', 'th']
False
pm_only
()
A :func:`.check` that indicates this command must only be used in a guild context only. Basically, no private messages are allowed when using the command. This check raises a special exception, :exc:`.NoPrivateMessage` that is derived from :exc:`.CheckFailure`.
A :func:`.check` that indicates this command must only be used in a guild context only. Basically, no private messages are allowed when using the command. This check raises a special exception, :exc:`.NoPrivateMessage` that is derived from :exc:`.CheckFailure`.
def pm_only(): """A :func:`.check` that indicates this command must only be used in a guild context only. Basically, no private messages are allowed when using the command. This check raises a special exception, :exc:`.NoPrivateMessage` that is derived from :exc:`.CheckFailure`. """ def pre...
[ "def", "pm_only", "(", ")", ":", "def", "predicate", "(", "ctx", ")", ":", "return", "ctx", ".", "guild", "is", "not", "None", "return", "commands", ".", "check", "(", "predicate", ")" ]
[ 35, 0 ]
[ 46, 36 ]
python
en
['en', 'en', 'en']
True
create_nuscenes_infos
(root_path, info_prefix, version='v1.0-trainval', max_sweeps=10)
Create info file of nuscene dataset. Given the raw data, generate its related info file in pkl format. Args: root_path (str): Path of the data root. info_prefix (str): Prefix of the info file to be generated. version (str): Version of the data. Default: 'v1.0-trainval' ...
Create info file of nuscene dataset.
def create_nuscenes_infos(root_path, info_prefix, version='v1.0-trainval', max_sweeps=10): """Create info file of nuscene dataset. Given the raw data, generate its related info file in pkl format. Args: root_path (str): ...
[ "def", "create_nuscenes_infos", "(", "root_path", ",", "info_prefix", ",", "version", "=", "'v1.0-trainval'", ",", "max_sweeps", "=", "10", ")", ":", "from", "nuscenes", ".", "nuscenes", "import", "NuScenes", "nusc", "=", "NuScenes", "(", "version", "=", "vers...
[ 18, 0 ]
[ 92, 38 ]
python
en
['en', 'et', 'en']
True
get_available_scenes
(nusc)
Get available scenes from the input nuscenes class. Given the raw data, get the information of available scenes for further info generation. Args: nusc (class): Dataset class in the nuScenes dataset. Returns: available_scenes (list[dict]): List of basic information for the ...
Get available scenes from the input nuscenes class.
def get_available_scenes(nusc): """Get available scenes from the input nuscenes class. Given the raw data, get the information of available scenes for further info generation. Args: nusc (class): Dataset class in the nuScenes dataset. Returns: available_scenes (list[dict]): List o...
[ "def", "get_available_scenes", "(", "nusc", ")", ":", "available_scenes", "=", "[", "]", "print", "(", "'total scene num: {}'", ".", "format", "(", "len", "(", "nusc", ".", "scene", ")", ")", ")", "for", "scene", "in", "nusc", ".", "scene", ":", "scene_t...
[ 95, 0 ]
[ 133, 27 ]
python
en
['en', 'en', 'en']
True
_fill_trainval_infos
(nusc, train_scenes, val_scenes, test=False, max_sweeps=10)
Generate the train/val infos from the raw data. Args: nusc (:obj:`NuScenes`): Dataset class in the nuScenes dataset. train_scenes (list[str]): Basic information of training scenes. val_scenes (list[str]): Basic information of validation scenes. test (bool): Whether use the test mode...
Generate the train/val infos from the raw data.
def _fill_trainval_infos(nusc, train_scenes, val_scenes, test=False, max_sweeps=10): """Generate the train/val infos from the raw data. Args: nusc (:obj:`NuScenes`): Dataset class in the nuScenes dataset...
[ "def", "_fill_trainval_infos", "(", "nusc", ",", "train_scenes", ",", "val_scenes", ",", "test", "=", "False", ",", "max_sweeps", "=", "10", ")", ":", "train_nusc_infos", "=", "[", "]", "val_nusc_infos", "=", "[", "]", "for", "sample", "in", "mmcv", ".", ...
[ 136, 0 ]
[ 262, 43 ]
python
en
['en', 'en', 'en']
True
obtain_sensor2top
(nusc, sensor_token, l2e_t, l2e_r_mat, e2g_t, e2g_r_mat, sensor_type='lidar')
Obtain the info with RT matric from general sensor to Top LiDAR. Args: nusc (class): Dataset class in the nuScenes dataset. sensor_token (str): Sample data token corresponding to the specific sensor type. l2e_t (np.ndarray): Translation from lidar to ego in shape (1, 3). ...
Obtain the info with RT matric from general sensor to Top LiDAR.
def obtain_sensor2top(nusc, sensor_token, l2e_t, l2e_r_mat, e2g_t, e2g_r_mat, sensor_type='lidar'): """Obtain the info with RT matric from general sensor to Top LiDAR. Args: ...
[ "def", "obtain_sensor2top", "(", "nusc", ",", "sensor_token", ",", "l2e_t", ",", "l2e_r_mat", ",", "e2g_t", ",", "e2g_r_mat", ",", "sensor_type", "=", "'lidar'", ")", ":", "sd_rec", "=", "nusc", ".", "get", "(", "'sample_data'", ",", "sensor_token", ")", "...
[ 265, 0 ]
[ 323, 16 ]
python
en
['en', 'en', 'en']
True
export_2d_annotation
(root_path, info_path, version)
Export 2d annotation from the info file and raw data. Args: root_path (str): Root path of the raw data. info_path (str): Path of the info file. version (str): Dataset version.
Export 2d annotation from the info file and raw data.
def export_2d_annotation(root_path, info_path, version): """Export 2d annotation from the info file and raw data. Args: root_path (str): Root path of the raw data. info_path (str): Path of the info file. version (str): Dataset version. """ # get bbox annotations for camera c...
[ "def", "export_2d_annotation", "(", "root_path", ",", "info_path", ",", "version", ")", ":", "# get bbox annotations for camera", "camera_types", "=", "[", "'CAM_FRONT'", ",", "'CAM_FRONT_RIGHT'", ",", "'CAM_FRONT_LEFT'", ",", "'CAM_BACK'", ",", "'CAM_BACK_LEFT'", ",", ...
[ 326, 0 ]
[ 374, 58 ]
python
en
['en', 'en', 'en']
True
get_2d_boxes
(nusc, sample_data_token: str, visibilities: List[str])
Get the 2D annotation records for a given `sample_data_token`. Args: sample_data_token: Sample data token belonging to a camera keyframe. visibilities: Visibility filter. Return: list[dict]: List of 2D annotation record that belongs to the input `sample_data_token`.
Get the 2D annotation records for a given `sample_data_token`.
def get_2d_boxes(nusc, sample_data_token: str, visibilities: List[str]) -> List[OrderedDict]: """Get the 2D annotation records for a given `sample_data_token`. Args: sample_data_token: Sample data token belonging to a camera keyframe. visibilities: Visibility filter. Retur...
[ "def", "get_2d_boxes", "(", "nusc", ",", "sample_data_token", ":", "str", ",", "visibilities", ":", "List", "[", "str", "]", ")", "->", "List", "[", "OrderedDict", "]", ":", "# Get the sample data and the sample corresponding to that sample data.", "sd_rec", "=", "n...
[ 377, 0 ]
[ 460, 21 ]
python
en
['en', 'en', 'en']
True
post_process_coords
( corner_coords: List, imsize: Tuple[int, int] = (1600, 900) )
Get the intersection of the convex hull of the reprojected bbox corners and the image canvas, return None if no intersection. Args: corner_coords (list[int]): Corner coordinates of reprojected bounding box. imsize (tuple[int]): Size of the image canvas. Return: tuple [f...
Get the intersection of the convex hull of the reprojected bbox corners and the image canvas, return None if no intersection.
def post_process_coords( corner_coords: List, imsize: Tuple[int, int] = (1600, 900) ) -> Union[Tuple[float, float, float, float], None]: """Get the intersection of the convex hull of the reprojected bbox corners and the image canvas, return None if no intersection. Args: corner_coords (list[int...
[ "def", "post_process_coords", "(", "corner_coords", ":", "List", ",", "imsize", ":", "Tuple", "[", "int", ",", "int", "]", "=", "(", "1600", ",", "900", ")", ")", "->", "Union", "[", "Tuple", "[", "float", ",", "float", ",", "float", ",", "float", ...
[ 463, 0 ]
[ 493, 19 ]
python
en
['en', 'en', 'en']
True
generate_record
(ann_rec: dict, x1: float, y1: float, x2: float, y2: float, sample_data_token: str, filename: str)
Generate one 2D annotation record given various informations on top of the 2D bounding box coordinates. Args: ann_rec (dict): Original 3d annotation record. x1 (float): Minimum value of the x coordinate. y1 (float): Minimum value of the y coordinate. x2 (float): Maximum value of...
Generate one 2D annotation record given various informations on top of the 2D bounding box coordinates.
def generate_record(ann_rec: dict, x1: float, y1: float, x2: float, y2: float, sample_data_token: str, filename: str) -> OrderedDict: """Generate one 2D annotation record given various informations on top of the 2D bounding box coordinates. Args: ann_rec (dict): Original 3d anno...
[ "def", "generate_record", "(", "ann_rec", ":", "dict", ",", "x1", ":", "float", ",", "y1", ":", "float", ",", "x2", ":", "float", ",", "y2", ":", "float", ",", "sample_data_token", ":", "str", ",", "filename", ":", "str", ")", "->", "OrderedDict", ":...
[ 496, 0 ]
[ 557, 19 ]
python
en
['en', 'en', 'en']
True
_Voxelization.forward
(ctx, points, voxel_size, coors_range, max_points=35, max_voxels=20000)
convert kitti points(N, >=3) to voxels. Args: points: [N, ndim] float tensor. points[:, :3] contain xyz points and points[:, 3:] contain other information like reflectivity voxel_size: [3] list/tuple or array, float. xyz, indicate voxel size c...
convert kitti points(N, >=3) to voxels.
def forward(ctx, points, voxel_size, coors_range, max_points=35, max_voxels=20000): """convert kitti points(N, >=3) to voxels. Args: points: [N, ndim] float tensor. points[:, :3] contain xyz points ...
[ "def", "forward", "(", "ctx", ",", "points", ",", "voxel_size", ",", "coors_range", ",", "max_points", "=", "35", ",", "max_voxels", "=", "20000", ")", ":", "if", "max_points", "==", "-", "1", "or", "max_voxels", "==", "-", "1", ":", "coors", "=", "p...
[ 12, 4 ]
[ 57, 66 ]
python
en
['it', 'en', 'hi']
False
Voxelization.__init__
(self, voxel_size, point_cloud_range, max_num_points, max_voxels=20000)
Args: voxel_size (list): list [x, y, z] size of three dimension point_cloud_range (list): [x_min, y_min, z_min, x_max, y_max, z_max] max_num_points (int): max number of points per voxel max_voxels (tuple or int): max number of voxels in ...
Args: voxel_size (list): list [x, y, z] size of three dimension point_cloud_range (list): [x_min, y_min, z_min, x_max, y_max, z_max] max_num_points (int): max number of points per voxel max_voxels (tuple or int): max number of voxels in ...
def __init__(self, voxel_size, point_cloud_range, max_num_points, max_voxels=20000): super(Voxelization, self).__init__() """ Args: voxel_size (list): list [x, y, z] size of three dimension point_cloud_ra...
[ "def", "__init__", "(", "self", ",", "voxel_size", ",", "point_cloud_range", ",", "max_num_points", ",", "max_voxels", "=", "20000", ")", ":", "super", "(", "Voxelization", ",", "self", ")", ".", "__init__", "(", ")", "self", ".", "voxel_size", "=", "voxel...
[ 65, 4 ]
[ 99, 53 ]
python
en
['en', 'error', 'th']
False
Voxelization.forward
(self, input)
Args: input: NC points
Args: input: NC points
def forward(self, input): """ Args: input: NC points """ if self.training: max_voxels = self.max_voxels[0] else: max_voxels = self.max_voxels[1] return voxelization(input, self.voxel_size, self.point_cloud_range, ...
[ "def", "forward", "(", "self", ",", "input", ")", ":", "if", "self", ".", "training", ":", "max_voxels", "=", "self", ".", "max_voxels", "[", "0", "]", "else", ":", "max_voxels", "=", "self", ".", "max_voxels", "[", "1", "]", "return", "voxelization", ...
[ 101, 4 ]
[ 112, 60 ]
python
en
['en', 'error', 'th']
False
TestZooAndTasks.test_zoolist_fields
(self)
Ensure zoo entries conform to style standards.
Ensure zoo entries conform to style standards.
def test_zoolist_fields(self): """ Ensure zoo entries conform to style standards. """ for animal in model_list: self._assertZooString('title', animal) name = animal['title'] # every task must at least contain these for key in ['id', 'task'...
[ "def", "test_zoolist_fields", "(", "self", ")", ":", "for", "animal", "in", "model_list", ":", "self", ".", "_assertZooString", "(", "'title'", ",", "animal", ")", "name", "=", "animal", "[", "'title'", "]", "# every task must at least contain these", "for", "ke...
[ 34, 4 ]
[ 54, 13 ]
python
en
['en', 'error', 'th']
False
TestZooAndTasks.test_zoolist_types
(self)
Ensure no type errors in the model zoo.
Ensure no type errors in the model zoo.
def test_zoolist_types(self): """ Ensure no type errors in the model zoo. """ self._check_types(model_list, 'Zoo')
[ "def", "test_zoolist_types", "(", "self", ")", ":", "self", ".", "_check_types", "(", "model_list", ",", "'Zoo'", ")" ]
[ 56, 4 ]
[ 60, 44 ]
python
en
['en', 'error', 'th']
False
TestZooAndTasks.test_tasklist_types
(self)
Ensure no type errors in the task list.
Ensure no type errors in the task list.
def test_tasklist_types(self): """ Ensure no type errors in the task list. """ self._check_types(task_list, 'Task')
[ "def", "test_tasklist_types", "(", "self", ")", ":", "self", ".", "_check_types", "(", "task_list", ",", "'Task'", ")" ]
[ 62, 4 ]
[ 66, 44 ]
python
en
['en', 'error', 'th']
False
TestZooAndTasks.test_tasklist
(self)
Check the task list for issues.
Check the task list for issues.
def test_tasklist(self): """ Check the task list for issues. """ self._check_directory( "task_list", task_list, "parlai/tasks", "task", ignore=['fromfile', 'interactive', 'jsonfile', 'wrapper'], )
[ "def", "test_tasklist", "(", "self", ")", ":", "self", ".", "_check_directory", "(", "\"task_list\"", ",", "task_list", ",", "\"parlai/tasks\"", ",", "\"task\"", ",", "ignore", "=", "[", "'fromfile'", ",", "'interactive'", ",", "'jsonfile'", ",", "'wrapper'", ...
[ 69, 4 ]
[ 79, 9 ]
python
en
['en', 'error', 'th']
False
TestZooAndTasks.test_zoolist
(self)
Check the zoo list for issues.
Check the zoo list for issues.
def test_zoolist(self): """ Check the zoo list for issues. """ self._check_directory( "model_list", model_list, "parlai/zoo", "id", ignore=ZOO_EXCEPTIONS )
[ "def", "test_zoolist", "(", "self", ")", ":", "self", ".", "_check_directory", "(", "\"model_list\"", ",", "model_list", ",", "\"parlai/zoo\"", ",", "\"id\"", ",", "ignore", "=", "ZOO_EXCEPTIONS", ")" ]
[ 82, 4 ]
[ 88, 9 ]
python
en
['en', 'error', 'th']
False
TestEvalModel.test_noevalmode
(self)
Ensure you get an error trying to use eval_model with -dt train.
Ensure you get an error trying to use eval_model with -dt train.
def test_noevalmode(self): """ Ensure you get an error trying to use eval_model with -dt train. """ with self.assertRaises(ValueError): testing_utils.eval_model( {'task': 'integration_tests', 'model': 'repeat_label'}, valid_datatype='train', ...
[ "def", "test_noevalmode", "(", "self", ")", ":", "with", "self", ".", "assertRaises", "(", "ValueError", ")", ":", "testing_utils", ".", "eval_model", "(", "{", "'task'", ":", "'integration_tests'", ",", "'model'", ":", "'repeat_label'", "}", ",", "valid_datat...
[ 16, 4 ]
[ 24, 13 ]
python
en
['en', 'error', 'th']
False
TestEvalModel.test_evalmode
(self)
Eval_model with -dt train:evalmode should be okay.
Eval_model with -dt train:evalmode should be okay.
def test_evalmode(self): """ Eval_model with -dt train:evalmode should be okay. """ testing_utils.eval_model( {'task': 'integration_tests', 'model': 'repeat_label'}, valid_datatype='train:evalmode', )
[ "def", "test_evalmode", "(", "self", ")", ":", "testing_utils", ".", "eval_model", "(", "{", "'task'", ":", "'integration_tests'", ",", "'model'", ":", "'repeat_label'", "}", ",", "valid_datatype", "=", "'train:evalmode'", ",", ")" ]
[ 26, 4 ]
[ 33, 9 ]
python
en
['en', 'error', 'th']
False
TestEvalModel.test_output
(self)
Test output of running eval_model.
Test output of running eval_model.
def test_output(self): """ Test output of running eval_model. """ opt = dict( task='integration_tests', model='repeat_label', datatype='valid', num_examples=5, display_examples=False, ) valid, test = testing_uti...
[ "def", "test_output", "(", "self", ")", ":", "opt", "=", "dict", "(", "task", "=", "'integration_tests'", ",", "model", "=", "'repeat_label'", ",", "datatype", "=", "'valid'", ",", "num_examples", "=", "5", ",", "display_examples", "=", "False", ",", ")", ...
[ 35, 4 ]
[ 52, 41 ]
python
en
['en', 'error', 'th']
False
TestEvalModel.test_metrics_all
(self)
Test output of running eval_model.
Test output of running eval_model.
def test_metrics_all(self): """ Test output of running eval_model. """ opt = dict( task='integration_tests', model='repeat_label', datatype='valid', num_examples=5, display_examples=False, metrics='all', ) ...
[ "def", "test_metrics_all", "(", "self", ")", ":", "opt", "=", "dict", "(", "task", "=", "'integration_tests'", ",", "model", "=", "'repeat_label'", ",", "datatype", "=", "'valid'", ",", "num_examples", "=", "5", ",", "display_examples", "=", "False", ",", ...
[ 56, 4 ]
[ 78, 44 ]
python
en
['en', 'error', 'th']
False
TestEvalModel.test_metrics_select
(self)
Test output of running eval_model.
Test output of running eval_model.
def test_metrics_select(self): """ Test output of running eval_model. """ opt = dict( task='integration_tests', model='repeat_label', datatype='valid', num_examples=5, display_examples=False, metrics='accuracy,rouge'...
[ "def", "test_metrics_select", "(", "self", ")", ":", "opt", "=", "dict", "(", "task", "=", "'integration_tests'", ",", "model", "=", "'repeat_label'", ",", "datatype", "=", "'valid'", ",", "num_examples", "=", "5", ",", "display_examples", "=", "False", ",",...
[ 82, 4 ]
[ 107, 40 ]
python
en
['en', 'error', 'th']
False
TestEvalModel.test_train_evalmode
(self)
Test that evaluating a model with train:evalmode completes an epoch.
Test that evaluating a model with train:evalmode completes an epoch.
def test_train_evalmode(self): """ Test that evaluating a model with train:evalmode completes an epoch. """ base_dict = {'model': 'repeat_label', 'datatype': 'train:evalmode'} teachers = ['integration_tests:fixed_dialog_candidate', 'integration_tests'] batchsize = [1, 64...
[ "def", "test_train_evalmode", "(", "self", ")", ":", "base_dict", "=", "{", "'model'", ":", "'repeat_label'", ",", "'datatype'", ":", "'train:evalmode'", "}", "teachers", "=", "[", "'integration_tests:fixed_dialog_candidate'", ",", "'integration_tests'", "]", "batchsi...
[ 183, 4 ]
[ 204, 17 ]
python
en
['en', 'error', 'th']
False
TestEvalModel.test_save_report
(self)
Test that we can save report from eval model.
Test that we can save report from eval model.
def test_save_report(self): """ Test that we can save report from eval model. """ with testing_utils.tempdir() as tmpdir: save_report = os.path.join(tmpdir, 'report') opt = dict( task='integration_tests', model='repeat_label', ...
[ "def", "test_save_report", "(", "self", ")", ":", "with", "testing_utils", ".", "tempdir", "(", ")", "as", "tmpdir", ":", "save_report", "=", "os", ".", "path", ".", "join", "(", "tmpdir", ",", "'report'", ")", "opt", "=", "dict", "(", "task", "=", "...
[ 206, 4 ]
[ 221, 55 ]
python
en
['en', 'error', 'th']
False
Threshold.line
(self)
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.gauge.threshold.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict properties: ...
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.gauge.threshold.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict properties: ...
def line(self): """ The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.gauge.threshold.Line` - A dict of string/value properties that will be passed to the Line constructor Sup...
[ "def", "line", "(", "self", ")", ":", "return", "self", "[", "\"line\"", "]" ]
[ 15, 4 ]
[ 34, 27 ]
python
en
['en', 'error', 'th']
False
Threshold.thickness
(self)
Sets the thickness of the threshold line as a fraction of the thickness of the gauge. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the thickness of the threshold line as a fraction of the thickness of the gauge. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, 1]
def thickness(self): """ Sets the thickness of the threshold line as a fraction of the thickness of the gauge. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float ...
[ "def", "thickness", "(", "self", ")", ":", "return", "self", "[", "\"thickness\"", "]" ]
[ 43, 4 ]
[ 55, 32 ]
python
en
['en', 'error', 'th']
False
Threshold.value
(self)
Sets a treshold value drawn as a line. The 'value' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets a treshold value drawn as a line. The 'value' property is a number and may be specified as: - An int or float
def value(self): """ Sets a treshold value drawn as a line. The 'value' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["value"]
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 64, 4 ]
[ 75, 28 ]
python
en
['en', 'error', 'th']
False
Threshold.__init__
(self, arg=None, line=None, thickness=None, value=None, **kwargs)
Construct a new Threshold object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.indicator.gauge.Threshold` line :class:`plotly.graph_objects.indica...
Construct a new Threshold object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.indicator.gauge.Threshold` line :class:`plotly.graph_objects.indica...
def __init__(self, arg=None, line=None, thickness=None, value=None, **kwargs): """ Construct a new Threshold object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_ob...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "line", "=", "None", ",", "thickness", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Threshold", ",", "self", ")", ".", "__init__", "(", "\"...
[ 96, 4 ]
[ 167, 34 ]
python
en
['en', 'error', 'th']
False
Dimension.categoryarray
(self)
Sets the order in which categories in this dimension appear. Only has an effect if `categoryorder` is set to "array". Used with `categoryorder`. The 'categoryarray' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
Sets the order in which categories in this dimension appear. Only has an effect if `categoryorder` is set to "array". Used with `categoryorder`. The 'categoryarray' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def categoryarray(self): """ Sets the order in which categories in this dimension appear. Only has an effect if `categoryorder` is set to "array". Used with `categoryorder`. The 'categoryarray' property is an array that may be specified as a tuple, list, numpy array,...
[ "def", "categoryarray", "(", "self", ")", ":", "return", "self", "[", "\"categoryarray\"", "]" ]
[ 26, 4 ]
[ 39, 36 ]
python
en
['en', 'error', 'th']
False
Dimension.categoryarraysrc
(self)
Sets the source reference on Chart Studio Cloud for categoryarray . The 'categoryarraysrc' 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 categoryarray . The 'categoryarraysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def categoryarraysrc(self): """ Sets the source reference on Chart Studio Cloud for categoryarray . The 'categoryarraysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return se...
[ "def", "categoryarraysrc", "(", "self", ")", ":", "return", "self", "[", "\"categoryarraysrc\"", "]" ]
[ 48, 4 ]
[ 60, 39 ]
python
en
['en', 'error', 'th']
False
Dimension.categoryorder
(self)
Specifies the ordering logic for the categories in the dimension. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumer...
Specifies the ordering logic for the categories in the dimension. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumer...
def categoryorder(self): """ Specifies the ordering logic for the categories in the dimension. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order sh...
[ "def", "categoryorder", "(", "self", ")", ":", "return", "self", "[", "\"categoryorder\"", "]" ]
[ 69, 4 ]
[ 92, 36 ]
python
en
['en', 'error', 'th']
False
Dimension.displayindex
(self)
The display index of dimension, from left to right, zero indexed, defaults to dimension index. The 'displayindex' property is a integer and may be specified as: - An int (or float that will be cast to an int) Returns ------- int
The display index of dimension, from left to right, zero indexed, defaults to dimension index. The 'displayindex' property is a integer and may be specified as: - An int (or float that will be cast to an int)
def displayindex(self): """ The display index of dimension, from left to right, zero indexed, defaults to dimension index. The 'displayindex' property is a integer and may be specified as: - An int (or float that will be cast to an int) Returns ------- ...
[ "def", "displayindex", "(", "self", ")", ":", "return", "self", "[", "\"displayindex\"", "]" ]
[ 101, 4 ]
[ 113, 35 ]
python
en
['en', 'error', 'th']
False
Dimension.label
(self)
The shown name of the dimension. The 'label' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
The shown name of the dimension. The 'label' property is a string and must be specified as: - A string - A number that will be converted to a string
def label(self): """ The shown name of the dimension. The 'label' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["label"]
[ "def", "label", "(", "self", ")", ":", "return", "self", "[", "\"label\"", "]" ]
[ 122, 4 ]
[ 134, 28 ]
python
en
['en', 'error', 'th']
False
Dimension.ticktext
(self)
Sets alternative tick labels for the categories in this dimension. Only has an effect if `categoryorder` is set to "array". Should be an array the same length as `categoryarray` Used with `categoryorder`. The 'ticktext' property is an array that may be specified as a tuple,...
Sets alternative tick labels for the categories in this dimension. Only has an effect if `categoryorder` is set to "array". Should be an array the same length as `categoryarray` Used with `categoryorder`. The 'ticktext' property is an array that may be specified as a tuple,...
def ticktext(self): """ Sets alternative tick labels for the categories in this dimension. Only has an effect if `categoryorder` is set to "array". Should be an array the same length as `categoryarray` Used with `categoryorder`. The 'ticktext' property is an array th...
[ "def", "ticktext", "(", "self", ")", ":", "return", "self", "[", "\"ticktext\"", "]" ]
[ 143, 4 ]
[ 157, 31 ]
python
en
['en', 'error', 'th']
False
Dimension.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\"", "]" ]
[ 166, 4 ]
[ 177, 34 ]
python
en
['en', 'error', 'th']
False
Dimension.values
(self)
Dimension values. `values[n]` represents the category value of the `n`th point in the dataset, therefore the `values` vector for all dimensions must be the same (longer vectors will be truncated). The 'values' property is an array that may be specified as a tuple, l...
Dimension values. `values[n]` represents the category value of the `n`th point in the dataset, therefore the `values` vector for all dimensions must be the same (longer vectors will be truncated). The 'values' property is an array that may be specified as a tuple, l...
def values(self): """ Dimension values. `values[n]` represents the category value of the `n`th point in the dataset, therefore the `values` vector for all dimensions must be the same (longer vectors will be truncated). The 'values' property is an array that may be sp...
[ "def", "values", "(", "self", ")", ":", "return", "self", "[", "\"values\"", "]" ]
[ 186, 4 ]
[ 200, 29 ]
python
en
['en', 'error', 'th']
False
Dimension.valuessrc
(self)
Sets the source reference on Chart Studio Cloud for values . The 'valuessrc' 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 values . The 'valuessrc' property must be specified as a string or as a plotly.grid_objs.Column object
def valuessrc(self): """ Sets the source reference on Chart Studio Cloud for values . The 'valuessrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["valuessrc"]
[ "def", "valuessrc", "(", "self", ")", ":", "return", "self", "[", "\"valuessrc\"", "]" ]
[ 209, 4 ]
[ 220, 32 ]
python
en
['en', 'error', 'th']
False
Dimension.visible
(self)
Shows the dimension when set to `true` (the default). Hides the dimension for `false`. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool
Shows the dimension when set to `true` (the default). Hides the dimension for `false`. The 'visible' property must be specified as a bool (either True, or False)
def visible(self): """ Shows the dimension when set to `true` (the default). Hides the dimension for `false`. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["visible"]
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 229, 4 ]
[ 241, 30 ]
python
en
['en', 'error', 'th']
False
Dimension.__init__
( self, arg=None, categoryarray=None, categoryarraysrc=None, categoryorder=None, displayindex=None, label=None, ticktext=None, ticktextsrc=None, values=None, valuessrc=None, visible=None, **kwargs )
Construct a new Dimension object The dimensions (variables) of the parallel categories diagram. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.parcats.Dimensi...
Construct a new Dimension object The dimensions (variables) of the parallel categories diagram.
def __init__( self, arg=None, categoryarray=None, categoryarraysrc=None, categoryorder=None, displayindex=None, label=None, ticktext=None, ticktextsrc=None, values=None, valuessrc=None, visible=None, **kwargs ): ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "categoryarray", "=", "None", ",", "categoryarraysrc", "=", "None", ",", "categoryorder", "=", "None", ",", "displayindex", "=", "None", ",", "label", "=", "None", ",", "ticktext", "=", "None"...
[ 298, 4 ]
[ 449, 34 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.choropleth.col orbar.Tickformatstop` dtickrange range [*min*, ...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.choropleth.col orbar.Tickformatstop` dtickrange range [*min*, ...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
Updatemenu.active
(self)
Determines which button (by index starting from 0) is considered active. The 'active' property is a integer and may be specified as: - An int (or float that will be cast to an int) in the interval [-1, 9223372036854775807] Returns ------- int ...
Determines which button (by index starting from 0) is considered active. The 'active' property is a integer and may be specified as: - An int (or float that will be cast to an int) in the interval [-1, 9223372036854775807]
def active(self): """ Determines which button (by index starting from 0) is considered active. The 'active' property is a integer and may be specified as: - An int (or float that will be cast to an int) in the interval [-1, 9223372036854775807] Returns...
[ "def", "active", "(", "self", ")", ":", "return", "self", "[", "\"active\"", "]" ]
[ 34, 4 ]
[ 47, 29 ]
python
en
['en', 'error', 'th']
False
Updatemenu.bgcolor
(self)
Sets the background color of the update menu buttons. 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....
Sets the background color of the update menu buttons. 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....
def bgcolor(self): """ Sets the background color of the update menu buttons. 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%)') ...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 56, 4 ]
[ 106, 30 ]
python
en
['en', 'error', 'th']
False