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
ZAxis.showtickprefix
(self)
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
def showtickprefix(self): """ If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' proper...
[ "def", "showtickprefix", "(", "self", ")", ":", "return", "self", "[", "\"showtickprefix\"", "]" ]
[ 846, 4 ]
[ 861, 37 ]
python
en
['en', 'error', 'th']
False
ZAxis.showticksuffix
(self)
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- Any
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none']
def showticksuffix(self): """ Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- ...
[ "def", "showticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"showticksuffix\"", "]" ]
[ 870, 4 ]
[ 882, 37 ]
python
en
['en', 'error', 'th']
False
ZAxis.spikecolor
(self)
Sets the color of the spikes. The 'spikecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)'...
Sets the color of the spikes. The 'spikecolor' 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 spikecolor(self): """ Sets the color of the spikes. The 'spikecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsv...
[ "def", "spikecolor", "(", "self", ")", ":", "return", "self", "[", "\"spikecolor\"", "]" ]
[ 891, 4 ]
[ 941, 33 ]
python
en
['en', 'error', 'th']
False
ZAxis.spikesides
(self)
Sets whether or not spikes extending from the projection data points to this axis' wall boundaries are shown on hover. The 'spikesides' property must be specified as a bool (either True, or False) Returns ------- bool
Sets whether or not spikes extending from the projection data points to this axis' wall boundaries are shown on hover. The 'spikesides' property must be specified as a bool (either True, or False)
def spikesides(self): """ Sets whether or not spikes extending from the projection data points to this axis' wall boundaries are shown on hover. The 'spikesides' property must be specified as a bool (either True, or False) Returns ------- bool ...
[ "def", "spikesides", "(", "self", ")", ":", "return", "self", "[", "\"spikesides\"", "]" ]
[ 950, 4 ]
[ 962, 33 ]
python
en
['en', 'error', 'th']
False
ZAxis.spikethickness
(self)
Sets the thickness (in px) of the spikes. The 'spikethickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the thickness (in px) of the spikes. The 'spikethickness' property is a number and may be specified as: - An int or float in the interval [0, inf]
def spikethickness(self): """ Sets the thickness (in px) of the spikes. The 'spikethickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["spikethickness"...
[ "def", "spikethickness", "(", "self", ")", ":", "return", "self", "[", "\"spikethickness\"", "]" ]
[ 971, 4 ]
[ 982, 37 ]
python
en
['en', 'error', 'th']
False
ZAxis.tick0
(self)
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
def tick0(self): """ Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for...
[ "def", "tick0", "(", "self", ")", ":", "return", "self", "[", "\"tick0\"", "]" ]
[ 991, 4 ]
[ 1009, 28 ]
python
en
['en', 'error', 'th']
False
ZAxis.tickangle
(self)
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
def tickangle(self): """ Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Num...
[ "def", "tickangle", "(", "self", ")", ":", "return", "self", "[", "\"tickangle\"", "]" ]
[ 1018, 4 ]
[ 1033, 32 ]
python
en
['en', 'error', 'th']
False
ZAxis.tickcolor
(self)
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def tickcolor(self): """ Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e...
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 1042, 4 ]
[ 1092, 32 ]
python
en
['en', 'error', 'th']
False
ZAxis.tickfont
(self)
Sets the tick font. The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.layout.scene.zaxis.Tickfont` - A dict of string/value properties that will be passed to the Tickfont constructor ...
Sets the tick font. The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.layout.scene.zaxis.Tickfont` - A dict of string/value properties that will be passed to the Tickfont constructor ...
def tickfont(self): """ Sets the tick font. The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.layout.scene.zaxis.Tickfont` - A dict of string/value properties that will be passed to...
[ "def", "tickfont", "(", "self", ")", ":", "return", "self", "[", "\"tickfont\"", "]" ]
[ 1101, 4 ]
[ 1138, 31 ]
python
en
['en', 'error', 'th']
False
ZAxis.tickformat
(self)
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def tickformat(self): """ Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github...
[ "def", "tickformat", "(", "self", ")", ":", "return", "self", "[", "\"tickformat\"", "]" ]
[ 1147, 4 ]
[ 1167, 33 ]
python
en
['en', 'error', 'th']
False
ZAxis.tickformatstops
(self)
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.layout.scene.zaxis.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Tickf...
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.layout.scene.zaxis.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Tickf...
def tickformatstops(self): """ The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.layout.scene.zaxis.Tickformatstop - A list or tuple of dicts of string/value properties that ...
[ "def", "tickformatstops", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstops\"", "]" ]
[ 1176, 4 ]
[ 1224, 38 ]
python
en
['en', 'error', 'th']
False
ZAxis.tickformatstopdefaults
(self)
When used in a template (as layout.template.layout.scene.zaxis.tickformatstopdefaults), sets the default property values to use for elements of layout.scene.zaxis.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that may be spec...
When used in a template (as layout.template.layout.scene.zaxis.tickformatstopdefaults), sets the default property values to use for elements of layout.scene.zaxis.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that may be spec...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.layout.scene.zaxis.tickformatstopdefaults), sets the default property values to use for elements of layout.scene.zaxis.tickformatstops The 'tickformatstopdefaults' property is an instan...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 1233, 4 ]
[ 1252, 45 ]
python
en
['en', 'error', 'th']
False
ZAxis.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\"", "]" ]
[ 1261, 4 ]
[ 1272, 30 ]
python
en
['en', 'error', 'th']
False
ZAxis.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\"", "]" ]
[ 1281, 4 ]
[ 1299, 31 ]
python
en
['en', 'error', 'th']
False
ZAxis.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\"", "]" ]
[ 1308, 4 ]
[ 1320, 33 ]
python
en
['en', 'error', 'th']
False
ZAxis.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\"", "]" ]
[ 1329, 4 ]
[ 1343, 28 ]
python
en
['en', 'error', 'th']
False
ZAxis.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\"", "]" ]
[ 1352, 4 ]
[ 1364, 33 ]
python
en
['en', 'error', 'th']
False
ZAxis.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\"", "]" ]
[ 1373, 4 ]
[ 1386, 31 ]
python
en
['en', 'error', 'th']
False
ZAxis.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\"", "]" ]
[ 1395, 4 ]
[ 1406, 34 ]
python
en
['en', 'error', 'th']
False
ZAxis.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\"", "]" ]
[ 1415, 4 ]
[ 1427, 31 ]
python
en
['en', 'error', 'th']
False
ZAxis.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\"", "]" ]
[ 1436, 4 ]
[ 1447, 34 ]
python
en
['en', 'error', 'th']
False
ZAxis.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\"", "]" ]
[ 1456, 4 ]
[ 1467, 32 ]
python
en
['en', 'error', 'th']
False
ZAxis.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.layout.scene.zaxis.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.scene.zaxis.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.scene.zaxis.Title` - A dict of string/value properties that will be passed to the Title constructor Suppo...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1476, 4 ]
[ 1501, 28 ]
python
en
['en', 'error', 'th']
False
ZAxis.titlefont
(self)
Deprecated: Please use layout.scene.zaxis.title.font instead. Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instan...
Deprecated: Please use layout.scene.zaxis.title.font instead. Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instan...
def titlefont(self): """ Deprecated: Please use layout.scene.zaxis.title.font instead. Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be spe...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1510, 4 ]
[ 1549, 32 ]
python
en
['en', 'error', 'th']
False
ZAxis.type
(self)
Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ...
Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ...
def type(self): """ Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. The 'type' property is an enumeration that may be specified as: - One of the following enume...
[ "def", "type", "(", "self", ")", ":", "return", "self", "[", "\"type\"", "]" ]
[ 1558, 4 ]
[ 1572, 27 ]
python
en
['en', 'error', 'th']
False
ZAxis.visible
(self)
A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool ...
A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false The 'visible' property must be specified as a bool (either True, or False)
def visible(self): """ A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false The 'visible' property must be specified as a bool (either True, or False) Returns...
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 1581, 4 ]
[ 1594, 30 ]
python
en
['en', 'error', 'th']
False
ZAxis.zeroline
(self)
Determines whether or not a line is drawn at along the 0 value of this axis. If True, the zero line is drawn on top of the grid lines. The 'zeroline' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not a line is drawn at along the 0 value of this axis. If True, the zero line is drawn on top of the grid lines. The 'zeroline' property must be specified as a bool (either True, or False)
def zeroline(self): """ Determines whether or not a line is drawn at along the 0 value of this axis. If True, the zero line is drawn on top of the grid lines. The 'zeroline' property must be specified as a bool (either True, or False) Returns -------...
[ "def", "zeroline", "(", "self", ")", ":", "return", "self", "[", "\"zeroline\"", "]" ]
[ 1603, 4 ]
[ 1616, 31 ]
python
en
['en', 'error', 'th']
False
ZAxis.zerolinecolor
(self)
Sets the line color of the zero line. The 'zerolinecolor' 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,...
Sets the line color of the zero line. The 'zerolinecolor' 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,...
def zerolinecolor(self): """ Sets the line color of the zero line. The 'zerolinecolor' 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", "zerolinecolor", "(", "self", ")", ":", "return", "self", "[", "\"zerolinecolor\"", "]" ]
[ 1625, 4 ]
[ 1675, 36 ]
python
en
['en', 'error', 'th']
False
ZAxis.zerolinewidth
(self)
Sets the width (in px) of the zero line. The 'zerolinewidth' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the width (in px) of the zero line. The 'zerolinewidth' property is a number and may be specified as: - An int or float
def zerolinewidth(self): """ Sets the width (in px) of the zero line. The 'zerolinewidth' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["zerolinewidth"]
[ "def", "zerolinewidth", "(", "self", ")", ":", "return", "self", "[", "\"zerolinewidth\"", "]" ]
[ 1684, 4 ]
[ 1695, 36 ]
python
en
['en', 'error', 'th']
False
ZAxis.__init__
( self, arg=None, autorange=None, backgroundcolor=None, calendar=None, categoryarray=None, categoryarraysrc=None, categoryorder=None, color=None, dtick=None, exponentformat=None, gridcolor=None, gridwidth=None, ...
Construct a new ZAxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.scene.ZAxis` autorange Determines whether or not the range of th...
Construct a new ZAxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.scene.ZAxis` autorange Determines whether or not the range of th...
def __init__( self, arg=None, autorange=None, backgroundcolor=None, calendar=None, categoryarray=None, categoryarraysrc=None, categoryorder=None, color=None, dtick=None, exponentformat=None, gridcolor=None, gridwidth...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "autorange", "=", "None", ",", "backgroundcolor", "=", "None", ",", "calendar", "=", "None", ",", "categoryarray", "=", "None", ",", "categoryarraysrc", "=", "None", ",", "categoryorder", "=", ...
[ 1969, 4 ]
[ 2558, 34 ]
python
en
['en', 'error', 'th']
False
ImageInformation.__init__
( self, image_id: str, image_location_id: str, image: Union["PIL.Image", str] )
When image is str, it is a serialized; need to deserialize.
When image is str, it is a serialized; need to deserialize.
def __init__( self, image_id: str, image_location_id: str, image: Union["PIL.Image", str] ): """ When image is str, it is a serialized; need to deserialize. """ self._image_id = image_id self._image_location_id = image_location_id self._image = image i...
[ "def", "__init__", "(", "self", ",", "image_id", ":", "str", ",", "image_location_id", ":", "str", ",", "image", ":", "Union", "[", "\"PIL.Image\"", ",", "str", "]", ")", ":", "self", ".", "_image_id", "=", "image_id", "self", ".", "_image_location_id", ...
[ 58, 4 ]
[ 68, 83 ]
python
en
['en', 'error', 'th']
False
ImageInformation.offload_state
(self)
Return serialized state. :return state_dict: serialized state that can be used in json.dumps
Return serialized state.
def offload_state(self) -> Dict[str, str]: """ Return serialized state. :return state_dict: serialized state that can be used in json.dumps """ byte_arr = io.BytesIO() image = self.get_image() image.save(byte_arr, format="JPEG") serialized = b...
[ "def", "offload_state", "(", "self", ")", "->", "Dict", "[", "str", ",", "str", "]", ":", "byte_arr", "=", "io", ".", "BytesIO", "(", ")", "image", "=", "self", ".", "get_image", "(", ")", "image", ".", "save", "(", "byte_arr", ",", "format", "=", ...
[ 79, 4 ]
[ 94, 9 ]
python
en
['en', 'error', 'th']
False
ImageFeaturesGenerator.get_image_features
(self, image_id: str, image: "PIL.Image")
Get image features for given image id and Image. :param image_id: id for image :param image: PIL Image object :return image_features: Image Features Tensor
Get image features for given image id and Image.
def get_image_features(self, image_id: str, image: "PIL.Image") -> torch.Tensor: """ Get image features for given image id and Image. :param image_id: id for image :param image: PIL Image object :return image_features: Image Features Tensor ...
[ "def", "get_image_features", "(", "self", ",", "image_id", ":", "str", ",", "image", ":", "\"PIL.Image\"", ")", "->", "torch", ".", "Tensor", ":", "image", "=", "image", ".", "convert", "(", "\"RGB\"", ")", "return", "self", ".", "image_loader", ".", "ex...
[ 118, 4 ]
[ 131, 47 ]
python
en
['en', 'error', 'th']
False
Number.font
(self)
Set the font used to display main number The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.number.Font` - A dict of string/value properties that will be passed to the Font constructor ...
Set the font used to display main number The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.number.Font` - A dict of string/value properties that will be passed to the Font constructor ...
def font(self): """ Set the font used to display main number The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.number.Font` - A dict of string/value properties that will be passed ...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 15, 4 ]
[ 52, 27 ]
python
en
['en', 'error', 'th']
False
Number.prefix
(self)
Sets a prefix appearing before the number. The 'prefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a prefix appearing before the number. The 'prefix' property is a string and must be specified as: - A string - A number that will be converted to a string
def prefix(self): """ Sets a prefix appearing before the number. The 'prefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["prefix"]
[ "def", "prefix", "(", "self", ")", ":", "return", "self", "[", "\"prefix\"", "]" ]
[ 61, 4 ]
[ 73, 29 ]
python
en
['en', 'error', 'th']
False
Number.suffix
(self)
Sets a suffix appearing next to the number. The 'suffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a suffix appearing next to the number. The 'suffix' property is a string and must be specified as: - A string - A number that will be converted to a string
def suffix(self): """ Sets a suffix appearing next to the number. The 'suffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["suffix"]
[ "def", "suffix", "(", "self", ")", ":", "return", "self", "[", "\"suffix\"", "]" ]
[ 82, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Number.valueformat
(self)
Sets the value formatting rule using d3 formatting mini- language which is similar to those of Python. See https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format The 'valueformat' property is a string and must be specified as: - A string ...
Sets the value formatting rule using d3 formatting mini- language which is similar to those of Python. See https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format The 'valueformat' property is a string and must be specified as: - A string ...
def valueformat(self): """ Sets the value formatting rule using d3 formatting mini- language which is similar to those of Python. See https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format The 'valueformat' property is a string and must be sp...
[ "def", "valueformat", "(", "self", ")", ":", "return", "self", "[", "\"valueformat\"", "]" ]
[ 103, 4 ]
[ 118, 34 ]
python
en
['en', 'error', 'th']
False
Number.__init__
( self, arg=None, font=None, prefix=None, suffix=None, valueformat=None, **kwargs )
Construct a new Number object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.indicator.Number` font Set the font used to display main number ...
Construct a new Number object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.indicator.Number` font Set the font used to display main number ...
def __init__( self, arg=None, font=None, prefix=None, suffix=None, valueformat=None, **kwargs ): """ Construct a new Number object Parameters ---------- arg dict of properties compatible with this constructor or an instance of ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "prefix", "=", "None", ",", "suffix", "=", "None", ",", "valueformat", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Number", ",", "self", ")...
[ 142, 4 ]
[ 222, 34 ]
python
en
['en', 'error', 'th']
False
cli
()
Compare data from trezor.io/coins with current coins_details.json Shows a nicely formatted diff between the live version and the trezor-common version. Useful for catching auto-generation problems, etc.
Compare data from trezor.io/coins with current coins_details.json
def cli(): """Compare data from trezor.io/coins with current coins_details.json Shows a nicely formatted diff between the live version and the trezor-common version. Useful for catching auto-generation problems, etc. """ live_json = requests.get(LIVE_URL).json() with open(COINS_DETAILS) as f: ...
[ "def", "cli", "(", ")", ":", "live_json", "=", "requests", ".", "get", "(", "LIVE_URL", ")", ".", "json", "(", ")", "with", "open", "(", "COINS_DETAILS", ")", "as", "f", ":", "coins_details", "=", "json", ".", "load", "(", "f", ")", "Tmp", "=", "...
[ 40, 0 ]
[ 54, 77 ]
python
en
['en', 'en', 'en']
True
CredentialIssueHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Message handler logic for credential offers. Args: context: request context responder: responder callback
Message handler logic for credential offers.
async def handle(self, context: RequestContext, responder: BaseResponder): """ Message handler logic for credential offers. Args: context: request context responder: responder callback """ self._logger.debug(f"CredentialHandler called with context {contex...
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "f\"CredentialHandler called with context {context}\"", ")", "assert", "isinstance", "(", "co...
[ 16, 4 ]
[ 45, 65 ]
python
en
['en', 'error', 'th']
False
Caxis.color
(self)
Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may be specified as: - ...
Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may be specified as: - ...
def color(self): """ Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may b...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 54, 4 ]
[ 107, 28 ]
python
en
['en', 'error', 'th']
False
Caxis.dtick
(self)
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
def dtick(self): """ Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example...
[ "def", "dtick", "(", "self", ")", ":", "return", "self", "[", "\"dtick\"", "]" ]
[ 116, 4 ]
[ 145, 28 ]
python
en
['en', 'error', 'th']
False
Caxis.exponentformat
(self)
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
def exponentformat(self): """ Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. ...
[ "def", "exponentformat", "(", "self", ")", ":", "return", "self", "[", "\"exponentformat\"", "]" ]
[ 154, 4 ]
[ 170, 37 ]
python
en
['en', 'error', 'th']
False
Caxis.gridcolor
(self)
Sets the color of the grid lines. The 'gridcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100...
Sets the color of the grid lines. The 'gridcolor' 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 gridcolor(self): """ Sets the color of the grid lines. The 'gridcolor' 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/h...
[ "def", "gridcolor", "(", "self", ")", ":", "return", "self", "[", "\"gridcolor\"", "]" ]
[ 179, 4 ]
[ 229, 32 ]
python
en
['en', 'error', 'th']
False
Caxis.gridwidth
(self)
Sets the width (in px) of the grid lines. The 'gridwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the grid lines. The 'gridwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def gridwidth(self): """ Sets the width (in px) of the grid lines. The 'gridwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["gridwidth"]
[ "def", "gridwidth", "(", "self", ")", ":", "return", "self", "[", "\"gridwidth\"", "]" ]
[ 238, 4 ]
[ 249, 32 ]
python
en
['en', 'error', 'th']
False
Caxis.hoverformat
(self)
Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def hoverformat(self): """ Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://githu...
[ "def", "hoverformat", "(", "self", ")", ":", "return", "self", "[", "\"hoverformat\"", "]" ]
[ 258, 4 ]
[ 278, 34 ]
python
en
['en', 'error', 'th']
False
Caxis.layer
(self)
Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `c...
Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `c...
def layer(self): """ Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with...
[ "def", "layer", "(", "self", ")", ":", "return", "self", "[", "\"layer\"", "]" ]
[ 287, 4 ]
[ 304, 28 ]
python
en
['en', 'error', 'th']
False
Caxis.linecolor
(self)
Sets the axis line color. The 'linecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'linecolor' 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 linecolor(self): """ Sets the axis line color. The 'linecolor' 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 stri...
[ "def", "linecolor", "(", "self", ")", ":", "return", "self", "[", "\"linecolor\"", "]" ]
[ 313, 4 ]
[ 363, 32 ]
python
en
['en', 'error', 'th']
False
Caxis.linewidth
(self)
Sets the width (in px) of the axis line. The 'linewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the axis line. The 'linewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def linewidth(self): """ Sets the width (in px) of the axis line. The 'linewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["linewidth"]
[ "def", "linewidth", "(", "self", ")", ":", "return", "self", "[", "\"linewidth\"", "]" ]
[ 372, 4 ]
[ 383, 32 ]
python
en
['en', 'error', 'th']
False
Caxis.min
(self)
The minimum value visible on this axis. The maximum is determined by the sum minus the minimum values of the other two axes. The full view corresponds to all the minima set to zero. The 'min' property is a number and may be specified as: - An int or float in the interval ...
The minimum value visible on this axis. The maximum is determined by the sum minus the minimum values of the other two axes. The full view corresponds to all the minima set to zero. The 'min' property is a number and may be specified as: - An int or float in the interval ...
def min(self): """ The minimum value visible on this axis. The maximum is determined by the sum minus the minimum values of the other two axes. The full view corresponds to all the minima set to zero. The 'min' property is a number and may be specified as: - An int...
[ "def", "min", "(", "self", ")", ":", "return", "self", "[", "\"min\"", "]" ]
[ 392, 4 ]
[ 405, 26 ]
python
en
['en', 'error', 'th']
False
Caxis.nticks
(self)
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
def nticks(self): """ Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer an...
[ "def", "nticks", "(", "self", ")", ":", "return", "self", "[", "\"nticks\"", "]" ]
[ 414, 4 ]
[ 429, 29 ]
python
en
['en', 'error', 'th']
False
Caxis.separatethousands
(self)
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False)
def separatethousands(self): """ If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["separatethousands"]
[ "def", "separatethousands", "(", "self", ")", ":", "return", "self", "[", "\"separatethousands\"", "]" ]
[ 438, 4 ]
[ 449, 40 ]
python
en
['en', 'error', 'th']
False
Caxis.showexponent
(self)
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
def showexponent(self): """ If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is ...
[ "def", "showexponent", "(", "self", ")", ":", "return", "self", "[", "\"showexponent\"", "]" ]
[ 458, 4 ]
[ 473, 35 ]
python
en
['en', 'error', 'th']
False
Caxis.showgrid
(self)
Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False)
def showgrid(self): """ Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False) Returns ------- bool """ return ...
[ "def", "showgrid", "(", "self", ")", ":", "return", "self", "[", "\"showgrid\"", "]" ]
[ 482, 4 ]
[ 494, 31 ]
python
en
['en', 'error', 'th']
False
Caxis.showline
(self)
Determines whether or not a line bounding this axis is drawn. The 'showline' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not a line bounding this axis is drawn. The 'showline' property must be specified as a bool (either True, or False)
def showline(self): """ Determines whether or not a line bounding this axis is drawn. The 'showline' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showline"]
[ "def", "showline", "(", "self", ")", ":", "return", "self", "[", "\"showline\"", "]" ]
[ 503, 4 ]
[ 514, 31 ]
python
en
['en', 'error', 'th']
False
Caxis.showticklabels
(self)
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False)
def showticklabels(self): """ Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showticklabels"]
[ "def", "showticklabels", "(", "self", ")", ":", "return", "self", "[", "\"showticklabels\"", "]" ]
[ 523, 4 ]
[ 534, 37 ]
python
en
['en', 'error', 'th']
False
Caxis.showtickprefix
(self)
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
def showtickprefix(self): """ If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' proper...
[ "def", "showtickprefix", "(", "self", ")", ":", "return", "self", "[", "\"showtickprefix\"", "]" ]
[ 543, 4 ]
[ 558, 37 ]
python
en
['en', 'error', 'th']
False
Caxis.showticksuffix
(self)
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- Any
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none']
def showticksuffix(self): """ Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- ...
[ "def", "showticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"showticksuffix\"", "]" ]
[ 567, 4 ]
[ 579, 37 ]
python
en
['en', 'error', 'th']
False
Caxis.tick0
(self)
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
def tick0(self): """ Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for...
[ "def", "tick0", "(", "self", ")", ":", "return", "self", "[", "\"tick0\"", "]" ]
[ 588, 4 ]
[ 606, 28 ]
python
en
['en', 'error', 'th']
False
Caxis.tickangle
(self)
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
def tickangle(self): """ Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Num...
[ "def", "tickangle", "(", "self", ")", ":", "return", "self", "[", "\"tickangle\"", "]" ]
[ 615, 4 ]
[ 630, 32 ]
python
en
['en', 'error', 'th']
False
Caxis.tickcolor
(self)
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def tickcolor(self): """ Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e...
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 639, 4 ]
[ 689, 32 ]
python
en
['en', 'error', 'th']
False
Caxis.tickfont
(self)
Sets the tick font. The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.caxis.Tickfont` - A dict of string/value properties that will be passed to the Tickfont constructor ...
Sets the tick font. The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.caxis.Tickfont` - A dict of string/value properties that will be passed to the Tickfont constructor ...
def tickfont(self): """ Sets the tick font. The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.caxis.Tickfont` - A dict of string/value properties that will be passed ...
[ "def", "tickfont", "(", "self", ")", ":", "return", "self", "[", "\"tickfont\"", "]" ]
[ 698, 4 ]
[ 735, 31 ]
python
en
['en', 'error', 'th']
False
Caxis.tickformat
(self)
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def tickformat(self): """ Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github...
[ "def", "tickformat", "(", "self", ")", ":", "return", "self", "[", "\"tickformat\"", "]" ]
[ 744, 4 ]
[ 764, 33 ]
python
en
['en', 'error', 'th']
False
Caxis.tickformatstops
(self)
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.layout.ternary.caxis.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Tic...
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.layout.ternary.caxis.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Tic...
def tickformatstops(self): """ The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.layout.ternary.caxis.Tickformatstop - A list or tuple of dicts of string/value properties that...
[ "def", "tickformatstops", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstops\"", "]" ]
[ 773, 4 ]
[ 821, 38 ]
python
en
['en', 'error', 'th']
False
Caxis.tickformatstopdefaults
(self)
When used in a template (as layout.template.layout.ternary.caxis.tickformatstopdefaults), sets the default property values to use for elements of layout.ternary.caxis.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that may be ...
When used in a template (as layout.template.layout.ternary.caxis.tickformatstopdefaults), sets the default property values to use for elements of layout.ternary.caxis.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that may be ...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.layout.ternary.caxis.tickformatstopdefaults), sets the default property values to use for elements of layout.ternary.caxis.tickformatstops The 'tickformatstopdefaults' property is an in...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 830, 4 ]
[ 849, 45 ]
python
en
['en', 'error', 'th']
False
Caxis.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\"", "]" ]
[ 858, 4 ]
[ 869, 30 ]
python
en
['en', 'error', 'th']
False
Caxis.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\"", "]" ]
[ 878, 4 ]
[ 896, 31 ]
python
en
['en', 'error', 'th']
False
Caxis.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\"", "]" ]
[ 905, 4 ]
[ 917, 33 ]
python
en
['en', 'error', 'th']
False
Caxis.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\"", "]" ]
[ 926, 4 ]
[ 940, 28 ]
python
en
['en', 'error', 'th']
False
Caxis.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\"", "]" ]
[ 949, 4 ]
[ 961, 33 ]
python
en
['en', 'error', 'th']
False
Caxis.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\"", "]" ]
[ 970, 4 ]
[ 983, 31 ]
python
en
['en', 'error', 'th']
False
Caxis.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\"", "]" ]
[ 992, 4 ]
[ 1003, 34 ]
python
en
['en', 'error', 'th']
False
Caxis.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\"", "]" ]
[ 1012, 4 ]
[ 1024, 31 ]
python
en
['en', 'error', 'th']
False
Caxis.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\"", "]" ]
[ 1033, 4 ]
[ 1044, 34 ]
python
en
['en', 'error', 'th']
False
Caxis.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\"", "]" ]
[ 1053, 4 ]
[ 1064, 32 ]
python
en
['en', 'error', 'th']
False
Caxis.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.layout.ternary.caxis.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.ternary.caxis.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.ternary.caxis.Title` - A dict of string/value properties that will be passed to the Title constructor Sup...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1073, 4 ]
[ 1098, 28 ]
python
en
['en', 'error', 'th']
False
Caxis.titlefont
(self)
Deprecated: Please use layout.ternary.caxis.title.font instead. Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An inst...
Deprecated: Please use layout.ternary.caxis.title.font instead. Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An inst...
def titlefont(self): """ Deprecated: Please use layout.ternary.caxis.title.font instead. Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be s...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1107, 4 ]
[ 1146, 32 ]
python
en
['en', 'error', 'th']
False
Caxis.uirevision
(self)
Controls persistence of user-driven changes in axis `min`, and `title` if in `editable: true` configuration. Defaults to `ternary<N>.uirevision`. The 'uirevision' property accepts values of any type Returns ------- Any
Controls persistence of user-driven changes in axis `min`, and `title` if in `editable: true` configuration. Defaults to `ternary<N>.uirevision`. The 'uirevision' property accepts values of any type
def uirevision(self): """ Controls persistence of user-driven changes in axis `min`, and `title` if in `editable: true` configuration. Defaults to `ternary<N>.uirevision`. The 'uirevision' property accepts values of any type Returns ------- Any ...
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 1155, 4 ]
[ 1167, 33 ]
python
en
['en', 'error', 'th']
False
Caxis.__init__
( self, arg=None, color=None, dtick=None, exponentformat=None, gridcolor=None, gridwidth=None, hoverformat=None, layer=None, linecolor=None, linewidth=None, min=None, nticks=None, separatethousands=None, ...
Construct a new Caxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.ternary.Caxis` color Sets default for all colors associated with...
Construct a new Caxis object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.ternary.Caxis` color Sets default for all colors associated with...
def __init__( self, arg=None, color=None, dtick=None, exponentformat=None, gridcolor=None, gridwidth=None, hoverformat=None, layer=None, linecolor=None, linewidth=None, min=None, nticks=None, separatethousand...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "dtick", "=", "None", ",", "exponentformat", "=", "None", ",", "gridcolor", "=", "None", ",", "gridwidth", "=", "None", ",", "hoverformat", "=", "None", ",", "la...
[ 1365, 4 ]
[ 1793, 34 ]
python
en
['en', 'error', 'th']
False
universal_sentence_embedding
(sentences, mask, sqrt=True)
Perform Universal Sentence Encoder averaging (https://arxiv.org/abs/1803.11175). This is really just sum / sqrt(len). :param Tensor sentences: an N x T x D of Transformer outputs. Note this is the exact output of TransformerEncoder, but has the time axis first :param ByteTensor: an N x T bina...
Perform Universal Sentence Encoder averaging (https://arxiv.org/abs/1803.11175).
def universal_sentence_embedding(sentences, mask, sqrt=True): """ Perform Universal Sentence Encoder averaging (https://arxiv.org/abs/1803.11175). This is really just sum / sqrt(len). :param Tensor sentences: an N x T x D of Transformer outputs. Note this is the exact output of TransformerEnco...
[ "def", "universal_sentence_embedding", "(", "sentences", ",", "mask", ",", "sqrt", "=", "True", ")", ":", "# need to mask out the padded chars", "sentence_sums", "=", "th", ".", "bmm", "(", "sentences", ".", "permute", "(", "0", ",", "2", ",", "1", ")", ",",...
[ 16, 0 ]
[ 37, 24 ]
python
en
['en', 'error', 'th']
False
EndToEndModel.reorder_decoder_incremental_state
( self, incremental_state: Dict[int, dict], inds: th.Tensor )
Reorder the decoder incremental state. See ``TorchGeneratorModel.reorder_decoder_incremental_state`` for a description. Here, incremental_state is a dict whose keys are layer indices and whose values are dicts containing the incremental state for that layer.
Reorder the decoder incremental state.
def reorder_decoder_incremental_state( self, incremental_state: Dict[int, dict], inds: th.Tensor ) -> Dict[int, dict]: """ Reorder the decoder incremental state. See ``TorchGeneratorModel.reorder_decoder_incremental_state`` for a description. Here, incremental_state is a di...
[ "def", "reorder_decoder_incremental_state", "(", "self", ",", "incremental_state", ":", "Dict", "[", "int", ",", "dict", "]", ",", "inds", ":", "th", ".", "Tensor", ")", "->", "Dict", "[", "int", ",", "dict", "]", ":", "return", "{", "idx", ":", "layer...
[ 55, 4 ]
[ 69, 9 ]
python
en
['en', 'error', 'th']
False
example1_build_forest
(x, y, **kwargs)
A basic example of build instructions. Make sure to include **kwargs in the arguments and return an instance of the room for exit generation.
A basic example of build instructions. Make sure to include **kwargs in the arguments and return an instance of the room for exit generation.
def example1_build_forest(x, y, **kwargs): """A basic example of build instructions. Make sure to include **kwargs in the arguments and return an instance of the room for exit generation.""" # Create a room and provide a basic description. room = create_object(rooms.Room, key="forest" + str(x) + str(y)...
[ "def", "example1_build_forest", "(", "x", ",", "y", ",", "*", "*", "kwargs", ")", ":", "# Create a room and provide a basic description.", "room", "=", "create_object", "(", "rooms", ".", "Room", ",", "key", "=", "\"forest\"", "+", "str", "(", "x", ")", "+",...
[ 113, 0 ]
[ 125, 15 ]
python
en
['en', 'en', 'en']
True
example1_build_mountains
(x, y, **kwargs)
A room that is a little more advanced
A room that is a little more advanced
def example1_build_mountains(x, y, **kwargs): """A room that is a little more advanced""" # Create the room. room = create_object(rooms.Room, key="mountains" + str(x) + str(y)) # Generate a description by randomly selecting an entry from a list. room_desc = ["Mountains as far as the eye can see", ...
[ "def", "example1_build_mountains", "(", "x", ",", "y", ",", "*", "*", "kwargs", ")", ":", "# Create the room.", "room", "=", "create_object", "(", "rooms", ".", "Room", ",", "key", "=", "\"mountains\"", "+", "str", "(", "x", ")", "+", "str", "(", "y", ...
[ 128, 0 ]
[ 149, 15 ]
python
en
['en', 'en', 'en']
True
example1_build_temple
(x, y, **kwargs)
A unique room that does not need to be as general
A unique room that does not need to be as general
def example1_build_temple(x, y, **kwargs): """A unique room that does not need to be as general""" # Create the room. room = create_object(rooms.Room, key="temple" + str(x) + str(y)) # Set the description. room.db.desc = ("In what, from the outside, appeared to be a grand and " ...
[ "def", "example1_build_temple", "(", "x", ",", "y", ",", "*", "*", "kwargs", ")", ":", "# Create the room.", "room", "=", "create_object", "(", "rooms", ".", "Room", ",", "key", "=", "\"temple\"", "+", "str", "(", "x", ")", "+", "str", "(", "y", ")",...
[ 152, 0 ]
[ 173, 15 ]
python
en
['en', 'en', 'en']
True
example2_build_forest
(x, y, **kwargs)
A basic room
A basic room
def example2_build_forest(x, y, **kwargs): """A basic room""" # If on anything other than the first iteration - Do nothing. if kwargs["iteration"] > 0: return None room = create_object(rooms.Room, key="forest" + str(x) + str(y)) room.db.desc = "Basic forest room." kwargs["caller"].msg(...
[ "def", "example2_build_forest", "(", "x", ",", "y", ",", "*", "*", "kwargs", ")", ":", "# If on anything other than the first iteration - Do nothing.", "if", "kwargs", "[", "\"iteration\"", "]", ">", "0", ":", "return", "None", "room", "=", "create_object", "(", ...
[ 208, 0 ]
[ 219, 15 ]
python
en
['en', 'ga', 'en']
True
example2_build_verticle_exit
(x, y, **kwargs)
Creates two exits to and from the two rooms north and south.
Creates two exits to and from the two rooms north and south.
def example2_build_verticle_exit(x, y, **kwargs): """Creates two exits to and from the two rooms north and south.""" # If on the first iteration - Do nothing. if kwargs["iteration"] == 0: return north_room = kwargs["room_dict"][(x, y - 1)] south_room = kwargs["room_dict"][(x, y + 1)] #...
[ "def", "example2_build_verticle_exit", "(", "x", ",", "y", ",", "*", "*", "kwargs", ")", ":", "# If on the first iteration - Do nothing.", "if", "kwargs", "[", "\"iteration\"", "]", "==", "0", ":", "return", "north_room", "=", "kwargs", "[", "\"room_dict\"", "]"...
[ 222, 0 ]
[ 241, 48 ]
python
en
['en', 'en', 'en']
True
example2_build_horizontal_exit
(x, y, **kwargs)
Creates two exits to and from the two rooms east and west.
Creates two exits to and from the two rooms east and west.
def example2_build_horizontal_exit(x, y, **kwargs): """Creates two exits to and from the two rooms east and west.""" # If on the first iteration - Do nothing. if kwargs["iteration"] == 0: return west_room = kwargs["room_dict"][(x - 1, y)] east_room = kwargs["room_dict"][(x + 1, y)] cre...
[ "def", "example2_build_horizontal_exit", "(", "x", ",", "y", ",", "*", "*", "kwargs", ")", ":", "# If on the first iteration - Do nothing.", "if", "kwargs", "[", "\"iteration\"", "]", "==", "0", ":", "return", "west_room", "=", "kwargs", "[", "\"room_dict\"", "]...
[ 244, 0 ]
[ 262, 47 ]
python
en
['en', 'en', 'en']
True
_map_to_list
(game_map)
Splits multi line map string into list of rows, treats for UTF-8 encoding. Args: game_map (str): An ASCII map Returns: list (list): The map split into rows
Splits multi line map string into list of rows, treats for UTF-8 encoding.
def _map_to_list(game_map): """ Splits multi line map string into list of rows, treats for UTF-8 encoding. Args: game_map (str): An ASCII map Returns: list (list): The map split into rows """ list_map = game_map.split('\n') return [character.decode('UTF-8') if isinstance(c...
[ "def", "_map_to_list", "(", "game_map", ")", ":", "list_map", "=", "game_map", ".", "split", "(", "'\\n'", ")", "return", "[", "character", ".", "decode", "(", "'UTF-8'", ")", "if", "isinstance", "(", "character", ",", "basestring", ")", "else", "character...
[ 276, 0 ]
[ 289, 53 ]
python
en
['en', 'error', 'th']
False
build_map
(caller, game_map, legend, iterations=1, build_exits=True)
Receives the fetched map and legend vars provided by the player. Args: caller (Object): The creator of the map. game_map (str): An ASCII map string. legend (dict): Mapping of map symbols to object types. iterations (int): The number of iteration passes. build_exits (boo...
Receives the fetched map and legend vars provided by the player.
def build_map(caller, game_map, legend, iterations=1, build_exits=True): """ Receives the fetched map and legend vars provided by the player. Args: caller (Object): The creator of the map. game_map (str): An ASCII map string. legend (dict): Mapping of map symbols to object types. ...
[ "def", "build_map", "(", "caller", ",", "game_map", ",", "legend", ",", "iterations", "=", "1", ",", "build_exits", "=", "True", ")", ":", "# Split map string to list of rows and create reference list.", "caller", ".", "msg", "(", "\"Creating Map...\"", ")", "caller...
[ 292, 0 ]
[ 370, 30 ]
python
en
['en', 'error', 'th']
False
CmdMapBuilder.func
(self)
Starts the processor.
Starts the processor.
def func(self): """Starts the processor.""" caller = self.caller args = self.args.split() # Check if arguments passed. if not self.args or (len(args) != 2): caller.msg("Usage: @mapbuilder <path.to.module.VARNAME> " "<path.to.module.MAP_LEGEND>...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "args", "=", "self", ".", "args", ".", "split", "(", ")", "# Check if arguments passed.", "if", "not", "self", ".", "args", "or", "(", "len", "(", "args", ")", "!=", "2", "...
[ 408, 4 ]
[ 482, 68 ]
python
en
['en', 'hr', 'en']
True
BaseIssuer.__repr__
(self)
Return a human readable representation of this class. Returns: A human readable string for this class
Return a human readable representation of this class.
def __repr__(self) -> str: """ Return a human readable representation of this class. Returns: A human readable string for this class """ return "<{}>".format(self.__class__.__name__)
[ "def", "__repr__", "(", "self", ")", "->", "str", ":", "return", "\"<{}>\"", ".", "format", "(", "self", ".", "__class__", ".", "__name__", ")" ]
[ 8, 4 ]
[ 16, 53 ]
python
en
['en', 'error', 'th']
False
prepare_attr_for_state
(txn, path_only=False)
Make key(path)-value pair for state from ATTRIB or GET_ATTR :return: state path, state value, value for attribute store
Make key(path)-value pair for state from ATTRIB or GET_ATTR :return: state path, state value, value for attribute store
def prepare_attr_for_state(txn, path_only=False): """ Make key(path)-value pair for state from ATTRIB or GET_ATTR :return: state path, state value, value for attribute store """ assert get_type(txn) == ATTRIB txn_data = get_payload_data(txn) nym = txn_data[TARGET_NYM] attr_type, attr_key...
[ "def", "prepare_attr_for_state", "(", "txn", ",", "path_only", "=", "False", ")", ":", "assert", "get_type", "(", "txn", ")", "==", "ATTRIB", "txn_data", "=", "get_payload_data", "(", "txn", ")", "nym", "=", "txn_data", "[", "TARGET_NYM", "]", "attr_type", ...
[ 103, 0 ]
[ 119, 60 ]
python
en
['en', 'error', 'th']
False
_extract_attr_typed_value
(txn_data)
ATTR and GET_ATTR can have one of 'raw', 'enc' and 'hash' fields. This method checks which of them presents and return it's name and value in it.
ATTR and GET_ATTR can have one of 'raw', 'enc' and 'hash' fields. This method checks which of them presents and return it's name and value in it.
def _extract_attr_typed_value(txn_data): """ ATTR and GET_ATTR can have one of 'raw', 'enc' and 'hash' fields. This method checks which of them presents and return it's name and value in it. """ existing_keys = [key for key in ALL_ATR_KEYS if key in txn_data] if len(existing_keys) == 0: ...
[ "def", "_extract_attr_typed_value", "(", "txn_data", ")", ":", "existing_keys", "=", "[", "key", "for", "key", "in", "ALL_ATR_KEYS", "if", "key", "in", "txn_data", "]", "if", "len", "(", "existing_keys", ")", "==", "0", ":", "raise", "ValueError", "(", "\"...
[ 379, 0 ]
[ 393, 47 ]
python
en
['en', 'error', 'th']
False
get_root
()
Get the project root directory. We require that all commands are run from the project root, i.e. the directory that contains setup.py, setup.cfg, and versioneer.py .
Get the project root directory.
def get_root(): """Get the project root directory. We require that all commands are run from the project root, i.e. the directory that contains setup.py, setup.cfg, and versioneer.py . """ root = os.path.realpath(os.path.abspath(os.getcwd())) setup_py = os.path.join(root, "setup.py") versio...
[ "def", "get_root", "(", ")", ":", "root", "=", "os", ".", "path", ".", "realpath", "(", "os", ".", "path", ".", "abspath", "(", "os", ".", "getcwd", "(", ")", ")", ")", "setup_py", "=", "os", ".", "path", ".", "join", "(", "root", ",", "\"setup...
[ 295, 0 ]
[ 335, 15 ]
python
en
['en', 'en', 'en']
True
get_config_from_root
(root)
Read the project setup.cfg file to determine Versioneer config.
Read the project setup.cfg file to determine Versioneer config.
def get_config_from_root(root): """Read the project setup.cfg file to determine Versioneer config.""" # This might raise EnvironmentError (if setup.cfg is missing), or # configparser.NoSectionError (if it lacks a [versioneer] section), or # configparser.NoOptionError (if it lacks "VCS="). See the docstr...
[ "def", "get_config_from_root", "(", "root", ")", ":", "# This might raise EnvironmentError (if setup.cfg is missing), or", "# configparser.NoSectionError (if it lacks a [versioneer] section), or", "# configparser.NoOptionError (if it lacks \"VCS=\"). See the docstring at", "# the top of versioneer...
[ 338, 0 ]
[ 365, 14 ]
python
en
['en', 'en', 'en']
True
register_vcs_handler
(vcs, method)
Decorator to mark a method as the handler for a particular VCS.
Decorator to mark a method as the handler for a particular VCS.
def register_vcs_handler(vcs, method): # decorator """Decorator to mark a method as the handler for a particular VCS.""" def decorate(f): """Store f in HANDLERS[vcs][method].""" if vcs not in HANDLERS: HANDLERS[vcs] = {} HANDLERS[vcs][method] = f return f retur...
[ "def", "register_vcs_handler", "(", "vcs", ",", "method", ")", ":", "# decorator", "def", "decorate", "(", "f", ")", ":", "\"\"\"Store f in HANDLERS[vcs][method].\"\"\"", "if", "vcs", "not", "in", "HANDLERS", ":", "HANDLERS", "[", "vcs", "]", "=", "{", "}", ...
[ 377, 0 ]
[ 387, 19 ]
python
en
['en', 'en', 'en']
True
run_command
(commands, args, cwd=None, verbose=False, hide_stderr=False, env=None)
Call the given command(s).
Call the given command(s).
def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=None): """Call the given command(s).""" assert isinstance(commands, list) p = None for c in commands: try: dispcmd = str([c] + args) # remember shell=False, so use git.cmd on windows, not just...
[ "def", "run_command", "(", "commands", ",", "args", ",", "cwd", "=", "None", ",", "verbose", "=", "False", ",", "hide_stderr", "=", "False", ",", "env", "=", "None", ")", ":", "assert", "isinstance", "(", "commands", ",", "list", ")", "p", "=", "None...
[ 390, 0 ]
[ 426, 31 ]
python
en
['en', 'en', 'en']
True
git_get_keywords
(versionfile_abs)
Extract version information from the given file.
Extract version information from the given file.
def git_get_keywords(versionfile_abs): """Extract version information from the given file.""" # the code embedded in _version.py can just fetch the value of these # keywords. When used from setup.py, we don't want to import _version.py, # so we do it with a regexp instead. This function is not used from...
[ "def", "git_get_keywords", "(", "versionfile_abs", ")", ":", "# the code embedded in _version.py can just fetch the value of these", "# keywords. When used from setup.py, we don't want to import _version.py,", "# so we do it with a regexp instead. This function is not used from", "# _version.py.",...
[ 955, 0 ]
[ 980, 19 ]
python
en
['en', 'en', 'en']
True
git_versions_from_keywords
(keywords, tag_prefix, verbose)
Get version information from git keywords.
Get version information from git keywords.
def git_versions_from_keywords(keywords, tag_prefix, verbose): """Get version information from git keywords.""" if not keywords: raise NotThisMethod("no keywords at all, weird") date = keywords.get("date") if date is not None: # git-2.2.0 added "%cI", which expands to an ISO-8601 -compli...
[ "def", "git_versions_from_keywords", "(", "keywords", ",", "tag_prefix", ",", "verbose", ")", ":", "if", "not", "keywords", ":", "raise", "NotThisMethod", "(", "\"no keywords at all, weird\"", ")", "date", "=", "keywords", ".", "get", "(", "\"date\"", ")", "if",...
[ 984, 0 ]
[ 1042, 5 ]
python
en
['en', 'da', 'en']
True
git_pieces_from_vcs
(tag_prefix, root, verbose, run_command=run_command)
Get version from 'git describe' in the root of the source tree. This only gets called if the git-archive 'subst' keywords were *not* expanded, and _version.py hasn't already been rewritten with a short version string, meaning we're inside a checked out source tree.
Get version from 'git describe' in the root of the source tree.
def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): """Get version from 'git describe' in the root of the source tree. This only gets called if the git-archive 'subst' keywords were *not* expanded, and _version.py hasn't already been rewritten with a short version string, meani...
[ "def", "git_pieces_from_vcs", "(", "tag_prefix", ",", "root", ",", "verbose", ",", "run_command", "=", "run_command", ")", ":", "GITS", "=", "[", "\"git\"", "]", "if", "sys", ".", "platform", "==", "\"win32\"", ":", "GITS", "=", "[", "\"git.cmd\"", ",", ...
[ 1046, 0 ]
[ 1143, 17 ]
python
en
['en', 'en', 'en']
True