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.tickformatstopdefaults
(self)
When used in a template (as layout.template.layout.coloraxis.co lorbar.tickformatstopdefaults), sets the default property values to use for elements of layout.coloraxis.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop t...
When used in a template (as layout.template.layout.coloraxis.co lorbar.tickformatstopdefaults), sets the default property values to use for elements of layout.coloraxis.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop t...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.layout.coloraxis.co lorbar.tickformatstopdefaults), sets the default property values to use for elements of layout.coloraxis.colorbar.tickformatstops The 'tickformatstopdefaults' proper...
[ "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.layout.coloraxis.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.layout.coloraxis.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.layout.coloraxis.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor ...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1046, 4 ]
[ 1076, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use layout.coloraxis.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 layout.coloraxis.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 layout.coloraxis.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 t...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1085, 4 ]
[ 1125, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use layout.coloraxis.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 ...
Deprecated: Please use layout.coloraxis.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 ...
def titleside(self): """ Deprecated: Please use layout.coloraxis.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 's...
[ "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.layout.coloraxis.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.layout.coloraxis.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...
[ 1483, 4 ]
[ 1943, 34 ]
python
en
['en', 'error', 'th']
False
EmpatheticDialoguesTeacher._select_dialogues_to_add
( self, experiencer_text_dialogue: List[List[Any]], responder_text_dialogue: List[List[Any]], )
Return conversation halves to add to self.data. Given lists corresponding to the conversation turns from both sides of the conversation, return only the list(s) that will be added to self.data. Optionally filter by side of the conversation or by whether the conversation contain...
Return conversation halves to add to self.data.
def _select_dialogues_to_add( self, experiencer_text_dialogue: List[List[Any]], responder_text_dialogue: List[List[Any]], ) -> List[List[List[Any]]]: """ Return conversation halves to add to self.data. Given lists corresponding to the conversation turns from both sid...
[ "def", "_select_dialogues_to_add", "(", "self", ",", "experiencer_text_dialogue", ":", "List", "[", "List", "[", "Any", "]", "]", ",", "responder_text_dialogue", ":", "List", "[", "List", "[", "Any", "]", "]", ",", ")", "->", "List", "[", "List", "[", "L...
[ 192, 4 ]
[ 215, 37 ]
python
en
['en', 'error', 'th']
False
MuxCommand.has_perm
(self, srcobj)
This is called by the cmdhandler to determine if srcobj is allowed to execute this command. We just show it here for completeness - we are satisfied using the default check in Command.
This is called by the cmdhandler to determine if srcobj is allowed to execute this command. We just show it here for completeness - we are satisfied using the default check in Command.
def has_perm(self, srcobj): """ This is called by the cmdhandler to determine if srcobj is allowed to execute this command. We just show it here for completeness - we are satisfied using the default check in Command. """ return super(MuxCommand, self).has_perm(src...
[ "def", "has_perm", "(", "self", ",", "srcobj", ")", ":", "return", "super", "(", "MuxCommand", ",", "self", ")", ".", "has_perm", "(", "srcobj", ")" ]
[ 25, 4 ]
[ 32, 55 ]
python
en
['en', 'error', 'th']
False
MuxCommand.at_pre_cmd
(self)
This hook is called before self.parse() on all commands
This hook is called before self.parse() on all commands
def at_pre_cmd(self): """ This hook is called before self.parse() on all commands """ pass
[ "def", "at_pre_cmd", "(", "self", ")", ":", "pass" ]
[ 34, 4 ]
[ 38, 12 ]
python
en
['en', 'error', 'th']
False
MuxCommand.at_post_cmd
(self)
This hook is called after the command has finished executing (after self.func()).
This hook is called after the command has finished executing (after self.func()).
def at_post_cmd(self): """ This hook is called after the command has finished executing (after self.func()). """ pass
[ "def", "at_post_cmd", "(", "self", ")", ":", "pass" ]
[ 40, 4 ]
[ 45, 12 ]
python
en
['en', 'error', 'th']
False
MuxCommand.parse
(self)
This method is called by the cmdhandler once the command name has been identified. It creates a new set of member variables that can be later accessed from self.func() (see below) The following variables are available for our use when entering this method (from the command defi...
This method is called by the cmdhandler once the command name has been identified. It creates a new set of member variables that can be later accessed from self.func() (see below)
def parse(self): """ This method is called by the cmdhandler once the command name has been identified. It creates a new set of member variables that can be later accessed from self.func() (see below) The following variables are available for our use when entering this m...
[ "def", "parse", "(", "self", ")", ":", "raw", "=", "self", ".", "args", "args", "=", "raw", ".", "strip", "(", ")", "# Without explicitly setting these attributes, they assume default values:", "if", "not", "hasattr", "(", "self", ",", "\"switch_options\"", ")", ...
[ 47, 4 ]
[ 194, 37 ]
python
en
['en', 'error', 'th']
False
MuxCommand.func
(self)
This is the hook function that actually does all the work. It is called by the cmdhandler right after self.parser() finishes, and so has access to all the variables defined therein.
This is the hook function that actually does all the work. It is called by the cmdhandler right after self.parser() finishes, and so has access to all the variables defined therein.
def func(self): """ This is the hook function that actually does all the work. It is called by the cmdhandler right after self.parser() finishes, and so has access to all the variables defined therein. """ # a simple test command to show the available properties ...
[ "def", "func", "(", "self", ")", ":", "# a simple test command to show the available properties", "string", "=", "\"-\"", "*", "50", "string", "+=", "\"\\n|w%s|n - Command variables from evennia:\\n\"", "%", "self", ".", "key", "string", "+=", "\"-\"", "*", "50", "str...
[ 196, 4 ]
[ 229, 31 ]
python
en
['en', 'error', 'th']
False
Shape.editable
(self)
Determines whether the shape could be activated for edit or not. Has no effect when the older editable shapes mode is enabled via `config.editable` or `config.edits.shapePosition`. The 'editable' property must be specified as a bool (either True, or False) Returns ...
Determines whether the shape could be activated for edit or not. Has no effect when the older editable shapes mode is enabled via `config.editable` or `config.edits.shapePosition`. The 'editable' property must be specified as a bool (either True, or False)
def editable(self): """ Determines whether the shape could be activated for edit or not. Has no effect when the older editable shapes mode is enabled via `config.editable` or `config.edits.shapePosition`. The 'editable' property must be specified as a bool (either Tr...
[ "def", "editable", "(", "self", ")", ":", "return", "self", "[", "\"editable\"", "]" ]
[ 37, 4 ]
[ 50, 31 ]
python
en
['en', 'error', 'th']
False
Shape.fillcolor
(self)
Sets the color filling the shape's interior. Only applies to closed shapes. The 'fillcolor' 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%)') ...
Sets the color filling the shape's interior. Only applies to closed shapes. The 'fillcolor' 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 fillcolor(self): """ Sets the color filling the shape's interior. Only applies to closed shapes. The 'fillcolor' 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 st...
[ "def", "fillcolor", "(", "self", ")", ":", "return", "self", "[", "\"fillcolor\"", "]" ]
[ 59, 4 ]
[ 110, 32 ]
python
en
['en', 'error', 'th']
False
Shape.fillrule
(self)
Determines which regions of complex paths constitute the interior. For more info please visit https://developer.mozilla.org/en- US/docs/Web/SVG/Attribute/fill-rule The 'fillrule' property is an enumeration that may be specified as: - One of the following enumerati...
Determines which regions of complex paths constitute the interior. For more info please visit https://developer.mozilla.org/en- US/docs/Web/SVG/Attribute/fill-rule The 'fillrule' property is an enumeration that may be specified as: - One of the following enumerati...
def fillrule(self): """ Determines which regions of complex paths constitute the interior. For more info please visit https://developer.mozilla.org/en- US/docs/Web/SVG/Attribute/fill-rule The 'fillrule' property is an enumeration that may be specified as: -...
[ "def", "fillrule", "(", "self", ")", ":", "return", "self", "[", "\"fillrule\"", "]" ]
[ 119, 4 ]
[ 134, 31 ]
python
en
['en', 'error', 'th']
False
Shape.layer
(self)
Specifies whether shapes are drawn below or above traces. The 'layer' property is an enumeration that may be specified as: - One of the following enumeration values: ['below', 'above'] Returns ------- Any
Specifies whether shapes are drawn below or above traces. The 'layer' property is an enumeration that may be specified as: - One of the following enumeration values: ['below', 'above']
def layer(self): """ Specifies whether shapes are drawn below or above traces. The 'layer' property is an enumeration that may be specified as: - One of the following enumeration values: ['below', 'above'] Returns ------- Any """ ...
[ "def", "layer", "(", "self", ")", ":", "return", "self", "[", "\"layer\"", "]" ]
[ 143, 4 ]
[ 155, 28 ]
python
en
['en', 'error', 'th']
False
Shape.line
(self)
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.layout.shape.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.layout.shape.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.layout.shape.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict p...
[ "def", "line", "(", "self", ")", ":", "return", "self", "[", "\"line\"", "]" ]
[ 164, 4 ]
[ 188, 27 ]
python
en
['en', 'error', 'th']
False
Shape.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\"", "]" ]
[ 197, 4 ]
[ 215, 27 ]
python
en
['en', 'error', 'th']
False
Shape.opacity
(self)
Sets the opacity of the shape. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the opacity of the shape. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1]
def opacity(self): """ Sets the opacity of the shape. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ return self["opacity"]
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 224, 4 ]
[ 235, 30 ]
python
en
['en', 'error', 'th']
False
Shape.path
(self)
For `type` "path" - a valid SVG path with the pixel values replaced by data values in `xsizemode`/`ysizemode` being "scaled" and taken unmodified as pixels relative to `xanchor` and `yanchor` in case of "pixel" size mode. There are a few restrictions / quirks only absolute instr...
For `type` "path" - a valid SVG path with the pixel values replaced by data values in `xsizemode`/`ysizemode` being "scaled" and taken unmodified as pixels relative to `xanchor` and `yanchor` in case of "pixel" size mode. There are a few restrictions / quirks only absolute instr...
def path(self): """ For `type` "path" - a valid SVG path with the pixel values replaced by data values in `xsizemode`/`ysizemode` being "scaled" and taken unmodified as pixels relative to `xanchor` and `yanchor` in case of "pixel" size mode. There are a few restrictions /...
[ "def", "path", "(", "self", ")", ":", "return", "self", "[", "\"path\"", "]" ]
[ 244, 4 ]
[ 274, 27 ]
python
en
['en', 'error', 'th']
False
Shape.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\"", "]" ]
[ 283, 4 ]
[ 302, 39 ]
python
en
['en', 'error', 'th']
False
Shape.type
(self)
Specifies the shape type to be drawn. If "line", a line is drawn from (`x0`,`y0`) to (`x1`,`y1`) with respect to the axes' sizing mode. If "circle", a circle is drawn from ((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|) with respect t...
Specifies the shape type to be drawn. If "line", a line is drawn from (`x0`,`y0`) to (`x1`,`y1`) with respect to the axes' sizing mode. If "circle", a circle is drawn from ((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|) with respect t...
def type(self): """ Specifies the shape type to be drawn. If "line", a line is drawn from (`x0`,`y0`) to (`x1`,`y1`) with respect to the axes' sizing mode. If "circle", a circle is drawn from ((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`...
[ "def", "type", "(", "self", ")", ":", "return", "self", "[", "\"type\"", "]" ]
[ 311, 4 ]
[ 331, 27 ]
python
en
['en', 'error', 'th']
False
Shape.visible
(self)
Determines whether or not this shape is visible. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this shape is visible. The 'visible' property must be specified as a bool (either True, or False)
def visible(self): """ Determines whether or not this shape is visible. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["visible"]
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 340, 4 ]
[ 351, 30 ]
python
en
['en', 'error', 'th']
False
Shape.x0
(self)
Sets the shape's starting x position. See `type` and `xsizemode` for more info. The 'x0' property accepts values of any type Returns ------- Any
Sets the shape's starting x position. See `type` and `xsizemode` for more info. The 'x0' property accepts values of any type
def x0(self): """ Sets the shape's starting x position. See `type` and `xsizemode` for more info. The 'x0' property accepts values of any type Returns ------- Any """ return self["x0"]
[ "def", "x0", "(", "self", ")", ":", "return", "self", "[", "\"x0\"", "]" ]
[ 360, 4 ]
[ 371, 25 ]
python
en
['en', 'error', 'th']
False
Shape.x1
(self)
Sets the shape's end x position. See `type` and `xsizemode` for more info. The 'x1' property accepts values of any type Returns ------- Any
Sets the shape's end x position. See `type` and `xsizemode` for more info. The 'x1' property accepts values of any type
def x1(self): """ Sets the shape's end x position. See `type` and `xsizemode` for more info. The 'x1' property accepts values of any type Returns ------- Any """ return self["x1"]
[ "def", "x1", "(", "self", ")", ":", "return", "self", "[", "\"x1\"", "]" ]
[ 380, 4 ]
[ 391, 25 ]
python
en
['en', 'error', 'th']
False
Shape.xanchor
(self)
Only relevant in conjunction with `xsizemode` set to "pixel". Specifies the anchor point on the x axis to which `x0`, `x1` and x coordinates within `path` are relative to. E.g. useful to attach a pixel sized shape to a certain data value. No effect when `xsizemode` not set to "p...
Only relevant in conjunction with `xsizemode` set to "pixel". Specifies the anchor point on the x axis to which `x0`, `x1` and x coordinates within `path` are relative to. E.g. useful to attach a pixel sized shape to a certain data value. No effect when `xsizemode` not set to "p...
def xanchor(self): """ Only relevant in conjunction with `xsizemode` set to "pixel". Specifies the anchor point on the x axis to which `x0`, `x1` and x coordinates within `path` are relative to. E.g. useful to attach a pixel sized shape to a certain data value. No effect ...
[ "def", "xanchor", "(", "self", ")", ":", "return", "self", "[", "\"xanchor\"", "]" ]
[ 400, 4 ]
[ 414, 30 ]
python
en
['en', 'error', 'th']
False
Shape.xref
(self)
Sets the shape's x coordinate axis. If set to an x axis id (e.g. "x" or "x2"), the `x` position refers to an x coordinate. If set to "paper", the `x` position refers to the distance from the left side of the plotting area in normalized coordinates where 0 (1) corresponds to the ...
Sets the shape's x coordinate axis. If set to an x axis id (e.g. "x" or "x2"), the `x` position refers to an x coordinate. If set to "paper", the `x` position refers to the distance from the left side of the plotting area in normalized coordinates where 0 (1) corresponds to the ...
def xref(self): """ Sets the shape's x coordinate axis. If set to an x axis id (e.g. "x" or "x2"), the `x` position refers to an x coordinate. If set to "paper", the `x` position refers to the distance from the left side of the plotting area in normalized coordinates wher...
[ "def", "xref", "(", "self", ")", ":", "return", "self", "[", "\"xref\"", "]" ]
[ 423, 4 ]
[ 444, 27 ]
python
en
['en', 'error', 'th']
False
Shape.xsizemode
(self)
Sets the shapes's sizing mode along the x axis. If set to "scaled", `x0`, `x1` and x coordinates within `path` refer to data values on the x axis or a fraction of the plot area's width (`xref` set to "paper"). If set to "pixel", `xanchor` specifies the x position in terms of dat...
Sets the shapes's sizing mode along the x axis. If set to "scaled", `x0`, `x1` and x coordinates within `path` refer to data values on the x axis or a fraction of the plot area's width (`xref` set to "paper"). If set to "pixel", `xanchor` specifies the x position in terms of dat...
def xsizemode(self): """ Sets the shapes's sizing mode along the x axis. If set to "scaled", `x0`, `x1` and x coordinates within `path` refer to data values on the x axis or a fraction of the plot area's width (`xref` set to "paper"). If set to "pixel", `xanchor` specifie...
[ "def", "xsizemode", "(", "self", ")", ":", "return", "self", "[", "\"xsizemode\"", "]" ]
[ 453, 4 ]
[ 472, 32 ]
python
en
['en', 'error', 'th']
False
Shape.y0
(self)
Sets the shape's starting y position. See `type` and `ysizemode` for more info. The 'y0' property accepts values of any type Returns ------- Any
Sets the shape's starting y position. See `type` and `ysizemode` for more info. The 'y0' property accepts values of any type
def y0(self): """ Sets the shape's starting y position. See `type` and `ysizemode` for more info. The 'y0' property accepts values of any type Returns ------- Any """ return self["y0"]
[ "def", "y0", "(", "self", ")", ":", "return", "self", "[", "\"y0\"", "]" ]
[ 481, 4 ]
[ 492, 25 ]
python
en
['en', 'error', 'th']
False
Shape.y1
(self)
Sets the shape's end y position. See `type` and `ysizemode` for more info. The 'y1' property accepts values of any type Returns ------- Any
Sets the shape's end y position. See `type` and `ysizemode` for more info. The 'y1' property accepts values of any type
def y1(self): """ Sets the shape's end y position. See `type` and `ysizemode` for more info. The 'y1' property accepts values of any type Returns ------- Any """ return self["y1"]
[ "def", "y1", "(", "self", ")", ":", "return", "self", "[", "\"y1\"", "]" ]
[ 501, 4 ]
[ 512, 25 ]
python
en
['en', 'error', 'th']
False
Shape.yanchor
(self)
Only relevant in conjunction with `ysizemode` set to "pixel". Specifies the anchor point on the y axis to which `y0`, `y1` and y coordinates within `path` are relative to. E.g. useful to attach a pixel sized shape to a certain data value. No effect when `ysizemode` not set to "p...
Only relevant in conjunction with `ysizemode` set to "pixel". Specifies the anchor point on the y axis to which `y0`, `y1` and y coordinates within `path` are relative to. E.g. useful to attach a pixel sized shape to a certain data value. No effect when `ysizemode` not set to "p...
def yanchor(self): """ Only relevant in conjunction with `ysizemode` set to "pixel". Specifies the anchor point on the y axis to which `y0`, `y1` and y coordinates within `path` are relative to. E.g. useful to attach a pixel sized shape to a certain data value. No effect ...
[ "def", "yanchor", "(", "self", ")", ":", "return", "self", "[", "\"yanchor\"", "]" ]
[ 521, 4 ]
[ 535, 30 ]
python
en
['en', 'error', 'th']
False
Shape.yref
(self)
Sets the annotation's y coordinate axis. If set to an y axis id (e.g. "y" or "y2"), the `y` position refers to an y coordinate If set to "paper", the `y` position refers to the distance from the bottom of the plotting area in normalized coordinates where 0 (1) corresponds to the...
Sets the annotation's y coordinate axis. If set to an y axis id (e.g. "y" or "y2"), the `y` position refers to an y coordinate If set to "paper", the `y` position refers to the distance from the bottom of the plotting area in normalized coordinates where 0 (1) corresponds to the...
def yref(self): """ Sets the annotation's y coordinate axis. If set to an y axis id (e.g. "y" or "y2"), the `y` position refers to an y coordinate If set to "paper", the `y` position refers to the distance from the bottom of the plotting area in normalized coordinates where ...
[ "def", "yref", "(", "self", ")", ":", "return", "self", "[", "\"yref\"", "]" ]
[ 544, 4 ]
[ 562, 27 ]
python
en
['en', 'error', 'th']
False
Shape.ysizemode
(self)
Sets the shapes's sizing mode along the y axis. If set to "scaled", `y0`, `y1` and y coordinates within `path` refer to data values on the y axis or a fraction of the plot area's height (`yref` set to "paper"). If set to "pixel", `yanchor` specifies the y position in terms of da...
Sets the shapes's sizing mode along the y axis. If set to "scaled", `y0`, `y1` and y coordinates within `path` refer to data values on the y axis or a fraction of the plot area's height (`yref` set to "paper"). If set to "pixel", `yanchor` specifies the y position in terms of da...
def ysizemode(self): """ Sets the shapes's sizing mode along the y axis. If set to "scaled", `y0`, `y1` and y coordinates within `path` refer to data values on the y axis or a fraction of the plot area's height (`yref` set to "paper"). If set to "pixel", `yanchor` specifi...
[ "def", "ysizemode", "(", "self", ")", ":", "return", "self", "[", "\"ysizemode\"", "]" ]
[ 571, 4 ]
[ 590, 32 ]
python
en
['en', 'error', 'th']
False
Shape.__init__
( self, arg=None, editable=None, fillcolor=None, fillrule=None, layer=None, line=None, name=None, opacity=None, path=None, templateitemname=None, type=None, visible=None, x0=None, x1=None, xan...
Construct a new Shape object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.Shape` editable Determines whether the shape could be activated for ...
Construct a new Shape object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.Shape` editable Determines whether the shape could be activated for ...
def __init__( self, arg=None, editable=None, fillcolor=None, fillrule=None, layer=None, line=None, name=None, opacity=None, path=None, templateitemname=None, type=None, visible=None, x0=None, x1=None,...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "editable", "=", "None", ",", "fillcolor", "=", "None", ",", "fillrule", "=", "None", ",", "layer", "=", "None", ",", "line", "=", "None", ",", "name", "=", "None", ",", "opacity", "=", ...
[ 744, 4 ]
[ 1044, 34 ]
python
en
['en', 'error', 'th']
False
limit_period
(val, offset=0.5, period=np.pi)
Limit the value into a period for periodic function. Args: val (torch.Tensor): The value to be converted. offset (float, optional): Offset to set the value range. \ Defaults to 0.5. period ([type], optional): Period of the value. Defaults to np.pi. Returns: torch.Te...
Limit the value into a period for periodic function.
def limit_period(val, offset=0.5, period=np.pi): """Limit the value into a period for periodic function. Args: val (torch.Tensor): The value to be converted. offset (float, optional): Offset to set the value range. \ Defaults to 0.5. period ([type], optional): Period of the ...
[ "def", "limit_period", "(", "val", ",", "offset", "=", "0.5", ",", "period", "=", "np", ".", "pi", ")", ":", "return", "val", "-", "torch", ".", "floor", "(", "val", "/", "period", "+", "offset", ")", "*", "period" ]
[ 4, 0 ]
[ 17, 60 ]
python
en
['en', 'en', 'en']
True
rotation_3d_in_axis
(points, angles, axis=0)
Rotate points by angles according to axis. Args: points (torch.Tensor): Points of shape (N, M, 3). angles (torch.Tensor): Vector of angles in shape (N,) axis (int, optional): The axis to be rotated. Defaults to 0. Raises: ValueError: when the axis is not in range [0, 1, 2], it ...
Rotate points by angles according to axis.
def rotation_3d_in_axis(points, angles, axis=0): """Rotate points by angles according to axis. Args: points (torch.Tensor): Points of shape (N, M, 3). angles (torch.Tensor): Vector of angles in shape (N,) axis (int, optional): The axis to be rotated. Defaults to 0. Raises: ...
[ "def", "rotation_3d_in_axis", "(", "points", ",", "angles", ",", "axis", "=", "0", ")", ":", "rot_sin", "=", "torch", ".", "sin", "(", "angles", ")", "rot_cos", "=", "torch", ".", "cos", "(", "angles", ")", "ones", "=", "torch", ".", "ones_like", "("...
[ 20, 0 ]
[ 60, 60 ]
python
en
['en', 'en', 'en']
True
xywhr2xyxyr
(boxes_xywhr)
Convert a rotated boxes in XYWHR format to XYXYR format. Args: boxes_xywhr (torch.Tensor): Rotated boxes in XYWHR format. Returns: torch.Tensor: Converted boxes in XYXYR format.
Convert a rotated boxes in XYWHR format to XYXYR format.
def xywhr2xyxyr(boxes_xywhr): """Convert a rotated boxes in XYWHR format to XYXYR format. Args: boxes_xywhr (torch.Tensor): Rotated boxes in XYWHR format. Returns: torch.Tensor: Converted boxes in XYXYR format. """ boxes = torch.zeros_like(boxes_xywhr) half_w = boxes_xywhr[:, 2...
[ "def", "xywhr2xyxyr", "(", "boxes_xywhr", ")", ":", "boxes", "=", "torch", ".", "zeros_like", "(", "boxes_xywhr", ")", "half_w", "=", "boxes_xywhr", "[", ":", ",", "2", "]", "/", "2", "half_h", "=", "boxes_xywhr", "[", ":", ",", "3", "]", "/", "2", ...
[ 63, 0 ]
[ 81, 16 ]
python
en
['en', 'en', 'en']
True
get_box_type
(box_type)
Get the type and mode of box structure. Args: box_type (str): The type of box structure. The valid value are "LiDAR", "Camera", or "Depth". Returns: tuple: Box type and box mode.
Get the type and mode of box structure.
def get_box_type(box_type): """Get the type and mode of box structure. Args: box_type (str): The type of box structure. The valid value are "LiDAR", "Camera", or "Depth". Returns: tuple: Box type and box mode. """ from .box_3d_mode import (Box3DMode, CameraInstance3DBox...
[ "def", "get_box_type", "(", "box_type", ")", ":", "from", ".", "box_3d_mode", "import", "(", "Box3DMode", ",", "CameraInstance3DBoxes", ",", "DepthInstance3DBoxes", ",", "LiDARInstance3DBoxes", ")", "box_type_lower", "=", "box_type", ".", "lower", "(", ")", "if", ...
[ 84, 0 ]
[ 110, 35 ]
python
en
['en', 'en', 'en']
True
points_cam2img
(points_3d, proj_mat)
Project points from camera coordicates to image coordinates. Args: points_3d (torch.Tensor): Points in shape (N, 3) proj_mat (torch.Tensor): Transformation matrix between coordinates. Returns: torch.Tensor: Points in image coordinates with shape [N, 2].
Project points from camera coordicates to image coordinates.
def points_cam2img(points_3d, proj_mat): """Project points from camera coordicates to image coordinates. Args: points_3d (torch.Tensor): Points in shape (N, 3) proj_mat (torch.Tensor): Transformation matrix between coordinates. Returns: torch.Tensor: Points in image coordinates wit...
[ "def", "points_cam2img", "(", "points_3d", ",", "proj_mat", ")", ":", "points_num", "=", "list", "(", "points_3d", ".", "shape", ")", "[", ":", "-", "1", "]", "points_shape", "=", "np", ".", "concatenate", "(", "[", "points_num", ",", "[", "1", "]", ...
[ 113, 0 ]
[ 130, 23 ]
python
en
['en', 'en', 'en']
True
Textfont.color
(self)
Sets the text font color of selected points. 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 text font color of selected points. 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 text font color of selected points. 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
Textfont.__init__
(self, arg=None, color=None, **kwargs)
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.selected.Textfont` color Sets the text font color of selec...
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.selected.Textfont` color Sets the text font color of selec...
def __init__(self, arg=None, color=None, **kwargs): """ Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.selected.Textfo...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Textfont", ",", "self", ")", ".", "__init__", "(", "\"textfont\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", ...
[ 80, 4 ]
[ 137, 34 ]
python
en
['en', 'error', 'th']
False
Font.color
(self)
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,100%,100%)') - A named CSS 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,100%,100%)') - A named CSS color: ...
def color(self): """ 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,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Font.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Font.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf]
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 103, 4 ]
[ 112, 27 ]
python
en
['en', 'error', 'th']
False
Font.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Font object Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. Parameters ---------- arg dict of properties compatible with this constructor or an inst...
Construct a new Font object Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute.
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Font object Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. Parameters ---------- arg...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Font", ",", "self", ")", ".", "__init__", "(", "\"font\"",...
[ 143, 4 ]
[ 227, 34 ]
python
en
['en', 'error', 'th']
False
split_combined_polys
(polys, poly_lens, polys_per_mask)
Split the combined 1-D polys into masks. A mask is represented as a list of polys, and a poly is represented as a 1-D array. In dataset, all masks are concatenated into a single 1-D tensor. Here we need to split the tensor into original representations. Args: polys (list): a list (length = ima...
Split the combined 1-D polys into masks.
def split_combined_polys(polys, poly_lens, polys_per_mask): """Split the combined 1-D polys into masks. A mask is represented as a list of polys, and a poly is represented as a 1-D array. In dataset, all masks are concatenated into a single 1-D tensor. Here we need to split the tensor into original rep...
[ "def", "split_combined_polys", "(", "polys", ",", "poly_lens", ",", "polys_per_mask", ")", ":", "mask_polys_list", "=", "[", "]", "for", "img_id", "in", "range", "(", "len", "(", "polys", ")", ")", ":", "polys_single", "=", "polys", "[", "img_id", "]", "...
[ 5, 0 ]
[ 31, 26 ]
python
en
['en', 'en', 'en']
True
encode_mask_results
(mask_results)
Encode bitmap mask to RLE code. Args: mask_results (list | tuple[list]): bitmap mask results. In mask scoring rcnn, mask_results is a tuple of (segm_results, segm_cls_score). Returns: list | tuple: RLE encoded mask.
Encode bitmap mask to RLE code.
def encode_mask_results(mask_results): """Encode bitmap mask to RLE code. Args: mask_results (list | tuple[list]): bitmap mask results. In mask scoring rcnn, mask_results is a tuple of (segm_results, segm_cls_score). Returns: list | tuple: RLE encoded mask. """ ...
[ "def", "encode_mask_results", "(", "mask_results", ")", ":", "if", "isinstance", "(", "mask_results", ",", "tuple", ")", ":", "# mask scoring", "cls_segms", ",", "cls_mask_scores", "=", "mask_results", "else", ":", "cls_segms", "=", "mask_results", "num_classes", ...
[ 35, 0 ]
[ 62, 35 ]
python
en
['en', 'fil', 'en']
True
Line.color
(self)
Sets the 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,100%,100%)') - ...
Sets the 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,100%,100%)') - ...
def color(self): """ Sets the 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...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Line.dash
(self)
Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). The 'dash' property is a string and must be specified as: - One of the following strings:...
Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). The 'dash' property is a string and must be specified as: - One of the following strings:...
def dash(self): """ Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). The 'dash' property is a string and must be specified as: - On...
[ "def", "dash", "(", "self", ")", ":", "return", "self", "[", "\"dash\"", "]" ]
[ 74, 4 ]
[ 91, 27 ]
python
en
['en', 'error', 'th']
False
Line.width
(self)
Sets the line width (in px). 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 line width (in px). 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 line width (in px). 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\"", "]" ]
[ 100, 4 ]
[ 111, 28 ]
python
en
['en', 'error', 'th']
False
Line.__init__
(self, arg=None, color=None, dash=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.funnel.connector.Line` color Sets the line color. dash ...
Construct a new Line object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.funnel.connector.Line` color Sets the line color. dash ...
def __init__(self, arg=None, color=None, dash=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.funnel...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "dash", "=", "None", ",", "width", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Line", ",", "self", ")", ".", "__init__", "(", "\"line\"", ...
[ 133, 4 ]
[ 205, 34 ]
python
en
['en', 'error', 'th']
False
Unselected.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolar.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict propertie...
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolar.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict propertie...
def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolar.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor ...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 15, 4 ]
[ 39, 29 ]
python
en
['en', 'error', 'th']
False
Unselected.textfont
(self)
The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolar.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor Supported dict p...
The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolar.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor Supported dict p...
def textfont(self): """ The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scatterpolar.unselected.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor ...
[ "def", "textfont", "(", "self", ")", ":", "return", "self", "[", "\"textfont\"", "]" ]
[ 48, 4 ]
[ 66, 31 ]
python
en
['en', 'error', 'th']
False
Unselected.__init__
(self, arg=None, marker=None, textfont=None, **kwargs)
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterpolar.Unselected` marker :class:`plotly.graph_objects.scatt...
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterpolar.Unselected` marker :class:`plotly.graph_objects.scatt...
def __init__(self, arg=None, marker=None, textfont=None, **kwargs): """ Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "marker", "=", "None", ",", "textfont", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Unselected", ",", "self", ")", ".", "__init__", "(", "\"unselected\"", ")", "if", "...
[ 85, 4 ]
[ 150, 34 ]
python
en
['en', 'error', 'th']
False
test_boxes_conversion
()
Test the conversion of boxes between different modes. ComandLine: xdoctest tests/test_box3d.py::test_boxes_conversion zero
Test the conversion of boxes between different modes.
def test_boxes_conversion(): """Test the conversion of boxes between different modes. ComandLine: xdoctest tests/test_box3d.py::test_boxes_conversion zero """ lidar_boxes = LiDARInstance3DBoxes( [[1.7802081, 2.516249, -1.7501148, 1.75, 3.39, 1.65, 1.48], [8.959413, 2.4567227, -...
[ "def", "test_boxes_conversion", "(", ")", ":", "lidar_boxes", "=", "LiDARInstance3DBoxes", "(", "[", "[", "1.7802081", ",", "2.516249", ",", "-", "1.7501148", ",", "1.75", ",", "3.39", ",", "1.65", ",", "1.48", "]", ",", "[", "8.959413", ",", "2.4567227", ...
[ 470, 0 ]
[ 612, 58 ]
python
en
['en', 'en', 'en']
True
test_boxes3d_overlaps
()
Test the iou calculation of boxes in different modes. ComandLine: xdoctest tests/test_box3d.py::test_boxes3d_overlaps zero
Test the iou calculation of boxes in different modes.
def test_boxes3d_overlaps(): """Test the iou calculation of boxes in different modes. ComandLine: xdoctest tests/test_box3d.py::test_boxes3d_overlaps zero """ if not torch.cuda.is_available(): pytest.skip('test requires GPU and torch+cuda') # Test LiDAR boxes 3D overlaps boxes1...
[ "def", "test_boxes3d_overlaps", "(", ")", ":", "if", "not", "torch", ".", "cuda", ".", "is_available", "(", ")", ":", "pytest", ".", "skip", "(", "'test requires GPU and torch+cuda'", ")", "# Test LiDAR boxes 3D overlaps", "boxes1_tensor", "=", "torch", ".", "tens...
[ 896, 0 ]
[ 960, 43 ]
python
en
['en', 'en', 'en']
True
Hoverlabel.align
(self)
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
def align(self): """ Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeratio...
[ "def", "align", "(", "self", ")", ":", "return", "self", "[", "\"align\"", "]" ]
[ 25, 4 ]
[ 40, 28 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.alignsrc
(self)
Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' 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 align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def alignsrc(self): """ Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["alignsrc"]
[ "def", "alignsrc", "(", "self", ")", ":", "return", "self", "[", "\"alignsrc\"", "]" ]
[ 49, 4 ]
[ 60, 31 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolor
(self)
Sets the background color of the hover labels for this trace 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...
Sets the background color of the hover labels for this trace 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): """ Sets the background color of the hover labels for this trace 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\"", "]" ]
[ 69, 4 ]
[ 120, 30 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' 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 bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bgcolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bgcolorsrc"]
[ "def", "bgcolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bgcolorsrc\"", "]" ]
[ 129, 4 ]
[ 140, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolor
(self)
Sets the border color of the hover labels for this trace. 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 st...
Sets the border color of the hover labels for this trace. 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 st...
def bordercolor(self): """ Sets the border color of the hover labels for this trace. 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%...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 149, 4 ]
[ 200, 34 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' 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 bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bordercolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bo...
[ "def", "bordercolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bordercolorsrc\"", "]" ]
[ 209, 4 ]
[ 221, 37 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.font
(self)
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.table.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.table.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
def font(self): """ Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.table.hoverlabel.Font` - A dict of string/value properties that will be passed to t...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 230, 4 ]
[ 277, 27 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelength
(self)
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
def namelength(self): """ Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than ...
[ "def", "namelength", "(", "self", ")", ":", "return", "self", "[", "\"namelength\"", "]" ]
[ 286, 4 ]
[ 304, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelengthsrc
(self)
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' 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 namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def namelengthsrc(self): """ Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["name...
[ "def", "namelengthsrc", "(", "self", ")", ":", "return", "self", "[", "\"namelengthsrc\"", "]" ]
[ 313, 4 ]
[ 325, 36 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.__init__
( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs )
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.table.Hoverlabel` align Sets the horizontal alignment of the text ...
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.table.Hoverlabel` align Sets the horizontal alignment of the text ...
def __init__( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs ): """ Construct a n...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "align", "=", "None", ",", "alignsrc", "=", "None", ",", "bgcolor", "=", "None", ",", "bgcolorsrc", "=", "None", ",", "bordercolor", "=", "None", ",", "bordercolorsrc", "=", "None", ",", "...
[ 370, 4 ]
[ 502, 34 ]
python
en
['en', 'error', 'th']
False
GetTokens
(source)
Returns a sequence of Tokens. Args: source: string of C++ source code. Yields: Token that represents the next token in the source.
Returns a sequence of Tokens.
def GetTokens(source): """Returns a sequence of Tokens. Args: source: string of C++ source code. Yields: Token that represents the next token in the source. """ # Cache various valid character sets for speed. valid_identifier_chars = VALID_IDENTIFIER_CHARS hex_digits = HEX_DIGI...
[ "def", "GetTokens", "(", "source", ")", ":", "# Cache various valid character sets for speed.", "valid_identifier_chars", "=", "VALID_IDENTIFIER_CHARS", "hex_digits", "=", "HEX_DIGITS", "int_or_float_digits", "=", "INT_OR_FLOAT_DIGITS", "int_or_float_digits2", "=", "int_or_float_...
[ 118, 0 ]
[ 269, 58 ]
python
en
['en', 'en', 'en']
True
_desc_save
(caller, buf)
Save line buffer to the desc prop. This should return True if successful and also report its status to the user.
Save line buffer to the desc prop. This should return True if successful and also report its status to the user.
def _desc_save(caller, buf): """ Save line buffer to the desc prop. This should return True if successful and also report its status to the user. """ caller.db.evmenu_target.db.desc = buf caller.msg("Saved.") return True
[ "def", "_desc_save", "(", "caller", ",", "buf", ")", ":", "caller", ".", "db", ".", "evmenu_target", ".", "db", ".", "desc", "=", "buf", "caller", ".", "msg", "(", "\"Saved.\"", ")", "return", "True" ]
[ 547, 0 ]
[ 554, 15 ]
python
en
['en', 'error', 'th']
False
_convert_from_string
(cmd, strobj)
Converts a single object in *string form* to its equivalent python type. Python earlier than 2.6: Handles floats, ints, and limited nested lists and dicts (can't handle lists in a dict, for example, this is mainly due to the complexity of parsing this rather than any technical difficulty - ...
Converts a single object in *string form* to its equivalent python type.
def _convert_from_string(cmd, strobj): """ Converts a single object in *string form* to its equivalent python type. Python earlier than 2.6: Handles floats, ints, and limited nested lists and dicts (can't handle lists in a dict, for example, this is mainly due to the complexity of parsing ...
[ "def", "_convert_from_string", "(", "cmd", ",", "strobj", ")", ":", "def", "rec_convert", "(", "obj", ")", ":", "\"\"\"\n Helper function of recursive conversion calls. This is only\n used for Python <=2.5. After that literal_eval is available.\n \"\"\"", "# simple...
[ 1402, 0 ]
[ 1470, 42 ]
python
en
['en', 'error', 'th']
False
ObjManipCommand.parse
(self)
We need to expand the default parsing to get all the cases, see the module doc.
We need to expand the default parsing to get all the cases, see the module doc.
def parse(self): """ We need to expand the default parsing to get all the cases, see the module doc. """ # get all the normal parsing done (switches etc) super(ObjManipCommand, self).parse() obj_defs = ([], []) # stores left- and right-hand side of '=' ...
[ "def", "parse", "(", "self", ")", ":", "# get all the normal parsing done (switches etc)", "super", "(", "ObjManipCommand", ",", "self", ")", ".", "parse", "(", ")", "obj_defs", "=", "(", "[", "]", ",", "[", "]", ")", "# stores left- and right-hand side of '='", ...
[ 64, 4 ]
[ 95, 39 ]
python
en
['en', 'error', 'th']
False
CmdSetObjAlias.func
(self)
Set the aliases.
Set the aliases.
def func(self): """Set the aliases.""" caller = self.caller if not self.lhs: string = "Usage: @alias <obj> [= [alias[,alias ...]]]" self.caller.msg(string) return objname = self.lhs # Find the object to receive aliases obj = caller.s...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "if", "not", "self", ".", "lhs", ":", "string", "=", "\"Usage: @alias <obj> [= [alias[,alias ...]]]\"", "self", ".", "caller", ".", "msg", "(", "string", ")", "return", "objname", ...
[ 127, 4 ]
[ 197, 89 ]
python
en
['en', 'el-Latn', 'en']
True
CmdCopy.func
(self)
Uses ObjManipCommand.parse()
Uses ObjManipCommand.parse()
def func(self): """Uses ObjManipCommand.parse()""" caller = self.caller args = self.args if not args: caller.msg("Usage: @copy <obj> [=<new_name>[;alias;alias..]]" "[:<new_location>] [, <new_name2>...]") return if not self.rhs: ...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "args", "=", "self", ".", "args", "if", "not", "args", ":", "caller", ".", "msg", "(", "\"Usage: @copy <obj> [=<new_name>[;alias;alias..]]\"", "\"[:<new_location>] [, <new_name2>...]\"", "...
[ 222, 4 ]
[ 274, 26 ]
python
en
['en', 'zu', 'en']
False
CmdCpAttr.check_from_attr
(self, obj, attr, clear=False)
Hook for overriding on subclassed commands. Checks to make sure a caller can copy the attr from the object in question. If not, return a false value and the command will abort. An error message should be provided by this function. If clear is True, user is attempting to move th...
Hook for overriding on subclassed commands. Checks to make sure a caller can copy the attr from the object in question. If not, return a false value and the command will abort. An error message should be provided by this function.
def check_from_attr(self, obj, attr, clear=False): """ Hook for overriding on subclassed commands. Checks to make sure a caller can copy the attr from the object in question. If not, return a false value and the command will abort. An error message should be provided by this func...
[ "def", "check_from_attr", "(", "self", ",", "obj", ",", "attr", ",", "clear", "=", "False", ")", ":", "return", "True" ]
[ 304, 4 ]
[ 313, 19 ]
python
en
['en', 'error', 'th']
False
CmdCpAttr.check_to_attr
(self, obj, attr)
Hook for overriding on subclassed commands. Checks to make sure a caller can write to the specified attribute on the specified object. If not, return a false value and the attribute will be skipped. An error message should be provided by this function.
Hook for overriding on subclassed commands. Checks to make sure a caller can write to the specified attribute on the specified object. If not, return a false value and the attribute will be skipped. An error message should be provided by this function.
def check_to_attr(self, obj, attr): """ Hook for overriding on subclassed commands. Checks to make sure a caller can write to the specified attribute on the specified object. If not, return a false value and the attribute will be skipped. An error message should be provided by th...
[ "def", "check_to_attr", "(", "self", ",", "obj", ",", "attr", ")", ":", "return", "True" ]
[ 315, 4 ]
[ 322, 19 ]
python
en
['en', 'error', 'th']
False
CmdCpAttr.check_has_attr
(self, obj, attr)
Hook for overriding on subclassed commands. Do any preprocessing required and verify an object has an attribute.
Hook for overriding on subclassed commands. Do any preprocessing required and verify an object has an attribute.
def check_has_attr(self, obj, attr): """ Hook for overriding on subclassed commands. Do any preprocessing required and verify an object has an attribute. """ if not obj.attributes.has(attr): self.caller.msg( "%s doesn't have an attribute %s." % (obj.na...
[ "def", "check_has_attr", "(", "self", ",", "obj", ",", "attr", ")", ":", "if", "not", "obj", ".", "attributes", ".", "has", "(", "attr", ")", ":", "self", ".", "caller", ".", "msg", "(", "\"%s doesn't have an attribute %s.\"", "%", "(", "obj", ".", "na...
[ 324, 4 ]
[ 333, 19 ]
python
en
['en', 'error', 'th']
False
CmdCpAttr.get_attr
(self, obj, attr)
Hook for overriding on subclassed commands. Do any preprocessing required and get the attribute from the object.
Hook for overriding on subclassed commands. Do any preprocessing required and get the attribute from the object.
def get_attr(self, obj, attr): """ Hook for overriding on subclassed commands. Do any preprocessing required and get the attribute from the object. """ return obj.attributes.get(attr)
[ "def", "get_attr", "(", "self", ",", "obj", ",", "attr", ")", ":", "return", "obj", ".", "attributes", ".", "get", "(", "attr", ")" ]
[ 335, 4 ]
[ 340, 39 ]
python
en
['en', 'error', 'th']
False
CmdCpAttr.func
(self)
Do the copying.
Do the copying.
def func(self): """ Do the copying. """ caller = self.caller if not self.rhs: string = """Usage: @cpattr[/switch] <obj>/<attr> = <obj1>/<attr1> [,<obj2>/<attr2>,<obj3>/<attr3>,...] @cpattr[/switch] <obj>/<attr> = <obj1> [,<obj2>,<obj3>,...] ...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "if", "not", "self", ".", "rhs", ":", "string", "=", "\"\"\"Usage:\n @cpattr[/switch] <obj>/<attr> = <obj1>/<attr1> [,<obj2>/<attr2>,<obj3>/<attr3>,...]\n @cpattr[/switch] <obj>/<a...
[ 342, 4 ]
[ 422, 35 ]
python
en
['en', 'error', 'th']
False
CmdMvAttr.func
(self)
Do the moving
Do the moving
def func(self): """ Do the moving """ if not self.rhs: string = """Usage: @mvattr[/switch] <obj>/<attr> = <obj1>/<attr1> [,<obj2>/<attr2>,<obj3>/<attr3>,...] @mvattr[/switch] <obj>/<attr> = <obj1> [,<obj2>,<obj3>,...] @mvattr[/switch] <attr> = <obj1>/<attr1>...
[ "def", "func", "(", "self", ")", ":", "if", "not", "self", ".", "rhs", ":", "string", "=", "\"\"\"Usage:\n @mvattr[/switch] <obj>/<attr> = <obj1>/<attr1> [,<obj2>/<attr2>,<obj3>/<attr3>,...]\n @mvattr[/switch] <obj>/<attr> = <obj1> [,<obj2>,<obj3>,...]\n @mvattr[/switch] <...
[ 446, 4 ]
[ 463, 59 ]
python
en
['en', 'error', 'th']
False
CmdCreate.func
(self)
Creates the object.
Creates the object.
def func(self): """ Creates the object. """ caller = self.caller if not self.args: string = "Usage: @create[/drop] <newname>[;alias;alias...] [:typeclass.path]" caller.msg(string) return # create the objects for objdef in sel...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "if", "not", "self", ".", "args", ":", "string", "=", "\"Usage: @create[/drop] <newname>[;alias;alias...] [:typeclass.path]\"", "caller", ".", "msg", "(", "string", ")", "return", "# cre...
[ 499, 4 ]
[ 540, 30 ]
python
en
['en', 'error', 'th']
False
CmdDesc.func
(self)
Define command
Define command
def func(self): """Define command""" caller = self.caller if not self.args and 'edit' not in self.switches: caller.msg("Usage: @desc [<obj> =] <description>") return if 'edit' in self.switches: self.edit_handler() return if '=' i...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "if", "not", "self", ".", "args", "and", "'edit'", "not", "in", "self", ".", "switches", ":", "caller", ".", "msg", "(", "\"Usage: @desc [<obj> =] <description>\"", ")", "return", ...
[ 602, 4 ]
[ 629, 92 ]
python
it
['it', 'it', 'en']
False
CmdDestroy.func
(self)
Implements the command.
Implements the command.
def func(self): """Implements the command.""" caller = self.caller delete = True if not self.args or not self.lhslist: caller.msg("Usage: @destroy[/switches] [obj, obj2, obj3, [dbref-dbref],...]") delete = False def delobj(obj): # helper fun...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "delete", "=", "True", "if", "not", "self", ".", "args", "or", "not", "self", ".", "lhslist", ":", "caller", ".", "msg", "(", "\"Usage: @destroy[/switches] [obj, obj2, obj3, [dbref-d...
[ 663, 4 ]
[ 753, 52 ]
python
en
['en', 'en', 'en']
True
CmdDig.func
(self)
Do the digging. Inherits variables from ObjManipCommand.parse()
Do the digging. Inherits variables from ObjManipCommand.parse()
def func(self): """Do the digging. Inherits variables from ObjManipCommand.parse()""" caller = self.caller if not self.lhs: string = "Usage: @dig[/teleport] <roomname>[;alias;alias...]" \ "[:parent] [= <exit_there>" string += "[;alias;alias..][:pare...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "if", "not", "self", ".", "lhs", ":", "string", "=", "\"Usage: @dig[/teleport] <roomname>[;alias;alias...]\"", "\"[:parent] [= <exit_there>\"", "string", "+=", "\"[;alias;alias..][:parent]] \"",...
[ 790, 4 ]
[ 891, 36 ]
python
en
['en', 'en', 'en']
True
CmdTunnel.func
(self)
Implements the tunnel command
Implements the tunnel command
def func(self): """Implements the tunnel command""" if not self.args or not self.lhs: string = "Usage: @tunnel[/switch] <direction>[:typeclass] [= <roomname>" \ "[;alias;alias;...][:typeclass]]" self.caller.msg(string) return # If we get...
[ "def", "func", "(", "self", ")", ":", "if", "not", "self", ".", "args", "or", "not", "self", ".", "lhs", ":", "string", "=", "\"Usage: @tunnel[/switch] <direction>[:typeclass] [= <roomname>\"", "\"[;alias;alias;...][:typeclass]]\"", "self", ".", "caller", ".", "msg"...
[ 941, 4 ]
[ 987, 35 ]
python
en
['en', 'en', 'en']
True
CmdLink.func
(self)
Perform the link
Perform the link
def func(self): """Perform the link""" caller = self.caller if not self.args: caller.msg("Usage: @link[/twoway] <object> = <target>") return object_name = self.lhs # get object obj = caller.search(object_name, global_search=True) if not ...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "if", "not", "self", ".", "args", ":", "caller", ".", "msg", "(", "\"Usage: @link[/twoway] <object> = <target>\"", ")", "return", "object_name", "=", "self", ".", "lhs", "# get objec...
[ 1015, 4 ]
[ 1075, 34 ]
python
en
['en', 'en', 'en']
True
CmdUnLink.func
(self)
All we need to do here is to set the right command and call func in CmdLink
All we need to do here is to set the right command and call func in CmdLink
def func(self): """ All we need to do here is to set the right command and call func in CmdLink """ caller = self.caller if not self.args: caller.msg("Usage: @unlink <object>") return # This mimics '@link <obj> = ' which is the same as @...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "if", "not", "self", ".", "args", ":", "caller", ".", "msg", "(", "\"Usage: @unlink <object>\"", ")", "return", "# This mimics '@link <obj> = ' which is the same as @unlink", "self", ".", ...
[ 1094, 4 ]
[ 1110, 37 ]
python
en
['en', 'error', 'th']
False