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
Marker.sizeref
(self)
Has an effect only if `marker.size` is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use with `sizemin` and `sizemode`. The 'sizeref' property is a number and may be specified as: - An int or float Returns ...
Has an effect only if `marker.size` is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use with `sizemin` and `sizemode`. The 'sizeref' property is a number and may be specified as: - An int or float
def sizeref(self): """ Has an effect only if `marker.size` is set to a numerical array. Sets the scale factor used to determine the rendered size of marker points. Use with `sizemin` and `sizemode`. The 'sizeref' property is a number and may be specified as: - An i...
[ "def", "sizeref", "(", "self", ")", ":", "return", "self", "[", "\"sizeref\"", "]" ]
[ 778, 4 ]
[ 791, 30 ]
python
en
['en', 'error', 'th']
False
Marker.sizesrc
(self)
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' 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 size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def sizesrc(self): """ Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["sizesrc"]
[ "def", "sizesrc", "(", "self", ")", ":", "return", "self", "[", "\"sizesrc\"", "]" ]
[ 800, 4 ]
[ 811, 30 ]
python
en
['en', 'error', 'th']
False
Marker.symbol
(self)
Sets the marker symbol. Full list: https://www.mapbox.com/maki- icons/ Note that the array `marker.color` and `marker.size` are only available for "circle" symbols. The 'symbol' property is a string and must be specified as: - A string - A number that will be co...
Sets the marker symbol. Full list: https://www.mapbox.com/maki- icons/ Note that the array `marker.color` and `marker.size` are only available for "circle" symbols. The 'symbol' property is a string and must be specified as: - A string - A number that will be co...
def symbol(self): """ Sets the marker symbol. Full list: https://www.mapbox.com/maki- icons/ Note that the array `marker.color` and `marker.size` are only available for "circle" symbols. The 'symbol' property is a string and must be specified as: - A string ...
[ "def", "symbol", "(", "self", ")", ":", "return", "self", "[", "\"symbol\"", "]" ]
[ 820, 4 ]
[ 835, 29 ]
python
en
['en', 'error', 'th']
False
Marker.symbolsrc
(self)
Sets the source reference on Chart Studio Cloud for symbol . The 'symbolsrc' 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 symbol . The 'symbolsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def symbolsrc(self): """ Sets the source reference on Chart Studio Cloud for symbol . The 'symbolsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["symbolsrc"]
[ "def", "symbolsrc", "(", "self", ")", ":", "return", "self", "[", "\"symbolsrc\"", "]" ]
[ 844, 4 ]
[ 855, 32 ]
python
en
['en', 'error', 'th']
False
Marker.__init__
( self, arg=None, allowoverlap=None, angle=None, anglesrc=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, colorsrc=N...
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox.Marker` allowoverlap Flag to draw all symbols, even if t...
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox.Marker` allowoverlap Flag to draw all symbols, even if t...
def __init__( self, arg=None, allowoverlap=None, angle=None, anglesrc=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "allowoverlap", "=", "None", ",", "angle", "=", "None", ",", "anglesrc", "=", "None", ",", "autocolorscale", "=", "None", ",", "cauto", "=", "None", ",", "cmax", "=", "None", ",", "cmid", ...
[ 985, 4 ]
[ 1277, 34 ]
python
en
['en', 'error', 'th']
False
InputDeviceState.alt
(self)
Whether alt key pressed Returns ------- bool
Whether alt key pressed
def alt(self): """ Whether alt key pressed Returns ------- bool """ return self._alt
[ "def", "alt", "(", "self", ")", ":", "return", "self", ".", "_alt" ]
[ 34, 4 ]
[ 42, 24 ]
python
en
['en', 'error', 'th']
False
InputDeviceState.ctrl
(self)
Whether ctrl key pressed Returns ------- bool
Whether ctrl key pressed
def ctrl(self): """ Whether ctrl key pressed Returns ------- bool """ return self._ctrl
[ "def", "ctrl", "(", "self", ")", ":", "return", "self", ".", "_ctrl" ]
[ 45, 4 ]
[ 53, 25 ]
python
en
['en', 'error', 'th']
False
InputDeviceState.shift
(self)
Whether shift key pressed Returns ------- bool
Whether shift key pressed
def shift(self): """ Whether shift key pressed Returns ------- bool """ return self._shift
[ "def", "shift", "(", "self", ")", ":", "return", "self", ".", "_shift" ]
[ 56, 4 ]
[ 64, 26 ]
python
en
['en', 'error', 'th']
False
InputDeviceState.meta
(self)
Whether meta key pressed Returns ------- bool
Whether meta key pressed
def meta(self): """ Whether meta key pressed Returns ------- bool """ return self._meta
[ "def", "meta", "(", "self", ")", ":", "return", "self", ".", "_meta" ]
[ 67, 4 ]
[ 75, 25 ]
python
en
['en', 'error', 'th']
False
InputDeviceState.button
(self)
Integer code for the button that was pressed on the mouse to trigger the event - 0: Main button pressed, usually the left button or the un-initialized state - 1: Auxiliary button pressed, usually the wheel button or the middle button (if present) - 2: ...
Integer code for the button that was pressed on the mouse to trigger the event
def button(self): """ Integer code for the button that was pressed on the mouse to trigger the event - 0: Main button pressed, usually the left button or the un-initialized state - 1: Auxiliary button pressed, usually the wheel button or the middle butt...
[ "def", "button", "(", "self", ")", ":", "return", "self", ".", "_button" ]
[ 78, 4 ]
[ 95, 27 ]
python
en
['en', 'error', 'th']
False
InputDeviceState.buttons
(self)
Integer code for which combination of buttons are pressed on the mouse when the event is triggered. - 0: No button or un-initialized - 1: Primary button (usually left) - 2: Secondary button (usually right) - 4: Auxilary button (usually middle or mouse wheel button) ...
Integer code for which combination of buttons are pressed on the mouse when the event is triggered.
def buttons(self): """ Integer code for which combination of buttons are pressed on the mouse when the event is triggered. - 0: No button or un-initialized - 1: Primary button (usually left) - 2: Secondary button (usually right) - 4: Auxilary button (usually ...
[ "def", "buttons", "(", "self", ")", ":", "return", "self", ".", "_buttons" ]
[ 98, 4 ]
[ 120, 28 ]
python
en
['en', 'error', 'th']
False
Points.point_inds
(self)
List of selected indexes into the trace's points Returns ------- list[int]
List of selected indexes into the trace's points
def point_inds(self): """ List of selected indexes into the trace's points Returns ------- list[int] """ return self._point_inds
[ "def", "point_inds", "(", "self", ")", ":", "return", "self", ".", "_point_inds" ]
[ 149, 4 ]
[ 157, 31 ]
python
en
['en', 'error', 'th']
False
Points.xs
(self)
List of x-coordinates of selected points Returns ------- list[float]
List of x-coordinates of selected points
def xs(self): """ List of x-coordinates of selected points Returns ------- list[float] """ return self._xs
[ "def", "xs", "(", "self", ")", ":", "return", "self", ".", "_xs" ]
[ 160, 4 ]
[ 168, 23 ]
python
en
['en', 'error', 'th']
False
Points.ys
(self)
List of y-coordinates of selected points Returns ------- list[float]
List of y-coordinates of selected points
def ys(self): """ List of y-coordinates of selected points Returns ------- list[float] """ return self._ys
[ "def", "ys", "(", "self", ")", ":", "return", "self", ".", "_ys" ]
[ 171, 4 ]
[ 179, 23 ]
python
en
['en', 'error', 'th']
False
Points.trace_name
(self)
Name of the trace Returns ------- str
Name of the trace
def trace_name(self): """ Name of the trace Returns ------- str """ return self._trace_name
[ "def", "trace_name", "(", "self", ")", ":", "return", "self", ".", "_trace_name" ]
[ 182, 4 ]
[ 190, 31 ]
python
en
['en', 'error', 'th']
False
Points.trace_index
(self)
Index of the trace in the figure Returns ------- int
Index of the trace in the figure
def trace_index(self): """ Index of the trace in the figure Returns ------- int """ return self._trace_index
[ "def", "trace_index", "(", "self", ")", ":", "return", "self", ".", "_trace_index" ]
[ 193, 4 ]
[ 201, 32 ]
python
en
['en', 'error', 'th']
False
BoxSelector.type
(self)
The selector's type Returns ------- str
The selector's type
def type(self): """ The selector's type Returns ------- str """ return self._type
[ "def", "type", "(", "self", ")", ":", "return", "self", ".", "_type" ]
[ 218, 4 ]
[ 226, 25 ]
python
en
['en', 'error', 'th']
False
BoxSelector.xrange
(self)
x-axis range extents of the box selection Returns ------- (float, float)
x-axis range extents of the box selection
def xrange(self): """ x-axis range extents of the box selection Returns ------- (float, float) """ return self._xrange
[ "def", "xrange", "(", "self", ")", ":", "return", "self", ".", "_xrange" ]
[ 229, 4 ]
[ 237, 27 ]
python
en
['en', 'error', 'th']
False
BoxSelector.yrange
(self)
y-axis range extents of the box selection Returns ------- (float, float)
y-axis range extents of the box selection
def yrange(self): """ y-axis range extents of the box selection Returns ------- (float, float) """ return self._yrange
[ "def", "yrange", "(", "self", ")", ":", "return", "self", ".", "_yrange" ]
[ 240, 4 ]
[ 248, 27 ]
python
en
['en', 'error', 'th']
False
LassoSelector.type
(self)
The selector's type Returns ------- str
The selector's type
def type(self): """ The selector's type Returns ------- str """ return self._type
[ "def", "type", "(", "self", ")", ":", "return", "self", ".", "_type" ]
[ 266, 4 ]
[ 274, 25 ]
python
en
['en', 'error', 'th']
False
LassoSelector.xs
(self)
list of x-axis coordinates of each point in the lasso selection boundary Returns ------- list[float]
list of x-axis coordinates of each point in the lasso selection boundary
def xs(self): """ list of x-axis coordinates of each point in the lasso selection boundary Returns ------- list[float] """ return self._xs
[ "def", "xs", "(", "self", ")", ":", "return", "self", ".", "_xs" ]
[ 277, 4 ]
[ 286, 23 ]
python
en
['en', 'error', 'th']
False
LassoSelector.ys
(self)
list of y-axis coordinates of each point in the lasso selection boundary Returns ------- list[float]
list of y-axis coordinates of each point in the lasso selection boundary
def ys(self): """ list of y-axis coordinates of each point in the lasso selection boundary Returns ------- list[float] """ return self._ys
[ "def", "ys", "(", "self", ")", ":", "return", "self", ".", "_ys" ]
[ 289, 4 ]
[ 298, 23 ]
python
en
['en', 'error', 'th']
False
DemoIntroductionService.start_introduction
( self, init_connection_id: str, target_connection_id: str, message: str, outbound_handler, )
Start the introduction process between two connections. Args: init_connection_id: The connection initiating the request target_connection_id: The connection which is asked for an invitation outbound_handler: The outbound handler coroutine for sending a message ...
Start the introduction process between two connections.
async def start_introduction( self, init_connection_id: str, target_connection_id: str, message: str, outbound_handler, ): """ Start the introduction process between two connections. Args: init_connection_id: The connection initiating the ...
[ "async", "def", "start_introduction", "(", "self", ",", "init_connection_id", ":", "str", ",", "target_connection_id", ":", "str", ",", "message", ":", "str", ",", "outbound_handler", ",", ")", ":", "try", ":", "init_connection", "=", "await", "ConnectionRecord"...
[ 21, 4 ]
[ 71, 71 ]
python
en
['en', 'error', 'th']
False
DemoIntroductionService.return_invitation
( self, target_connection_id: str, invitation: Invitation, outbound_handler )
Handle the forwarding of an invitation to the responder. Args: target_connection_id: The ID of the connection sending the Invitation invitation: The received Invitation message outbound_handler: The outbound handler coroutine for sending a message
Handle the forwarding of an invitation to the responder.
async def return_invitation( self, target_connection_id: str, invitation: Invitation, outbound_handler ): """ Handle the forwarding of an invitation to the responder. Args: target_connection_id: The ID of the connection sending the Invitation invitation: The ...
[ "async", "def", "return_invitation", "(", "self", ",", "target_connection_id", ":", "str", ",", "invitation", ":", "Invitation", ",", "outbound_handler", ")", ":", "thread_id", "=", "invitation", ".", "_thread_id", "tag_filter", "=", "{", "\"target_connection_id\"",...
[ 73, 4 ]
[ 110, 87 ]
python
en
['en', 'error', 'th']
False
Indicator.align
(self)
Sets the horizontal alignment of the `text` within the box. Note that this attribute has no effect if an angular gauge is displayed: in this case, it is always centered The 'align' property is an enumeration that may be specified as: - One of the following enumeration val...
Sets the horizontal alignment of the `text` within the box. Note that this attribute has no effect if an angular gauge is displayed: in this case, it is always centered The 'align' property is an enumeration that may be specified as: - One of the following enumeration val...
def align(self): """ Sets the horizontal alignment of the `text` within the box. Note that this attribute has no effect if an angular gauge is displayed: in this case, it is always centered The 'align' property is an enumeration that may be specified as: - One of t...
[ "def", "align", "(", "self", ")", ":", "return", "self", "[", "\"align\"", "]" ]
[ 36, 4 ]
[ 50, 28 ]
python
en
['en', 'error', 'th']
False
Indicator.customdata
(self)
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
def customdata(self): """ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be sp...
[ "def", "customdata", "(", "self", ")", ":", "return", "self", "[", "\"customdata\"", "]" ]
[ 59, 4 ]
[ 73, 33 ]
python
en
['en', 'error', 'th']
False
Indicator.customdatasrc
(self)
Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' 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 customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def customdatasrc(self): """ Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["cust...
[ "def", "customdatasrc", "(", "self", ")", ":", "return", "self", "[", "\"customdatasrc\"", "]" ]
[ 82, 4 ]
[ 94, 36 ]
python
en
['en', 'error', 'th']
False
Indicator.delta
(self)
The 'delta' property is an instance of Delta that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Delta` - A dict of string/value properties that will be passed to the Delta constructor Supported dict properties: ...
The 'delta' property is an instance of Delta that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Delta` - A dict of string/value properties that will be passed to the Delta constructor Supported dict properties: ...
def delta(self): """ The 'delta' property is an instance of Delta that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Delta` - A dict of string/value properties that will be passed to the Delta constructor Supported dict...
[ "def", "delta", "(", "self", ")", ":", "return", "self", "[", "\"delta\"", "]" ]
[ 103, 4 ]
[ 142, 28 ]
python
en
['en', 'error', 'th']
False
Indicator.domain
(self)
The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Domain` - A dict of string/value properties that will be passed to the Domain constructor Supported dict properties: ...
The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Domain` - A dict of string/value properties that will be passed to the Domain constructor Supported dict properties: ...
def domain(self): """ The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Domain` - A dict of string/value properties that will be passed to the Domain constructor Supported...
[ "def", "domain", "(", "self", ")", ":", "return", "self", "[", "\"domain\"", "]" ]
[ 151, 4 ]
[ 179, 29 ]
python
en
['en', 'error', 'th']
False
Indicator.gauge
(self)
The gauge of the Indicator plot. The 'gauge' property is an instance of Gauge that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Gauge` - A dict of string/value properties that will be passed to the Gauge constructor ...
The gauge of the Indicator plot. The 'gauge' property is an instance of Gauge that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Gauge` - A dict of string/value properties that will be passed to the Gauge constructor ...
def gauge(self): """ The gauge of the Indicator plot. The 'gauge' property is an instance of Gauge that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Gauge` - A dict of string/value properties that will be passed to the Gau...
[ "def", "gauge", "(", "self", ")", ":", "return", "self", "[", "\"gauge\"", "]" ]
[ 188, 4 ]
[ 233, 28 ]
python
en
['en', 'error', 'th']
False
Indicator.ids
(self)
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Retur...
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ids(self): """ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pa...
[ "def", "ids", "(", "self", ")", ":", "return", "self", "[", "\"ids\"", "]" ]
[ 242, 4 ]
[ 255, 26 ]
python
en
['en', 'error', 'th']
False
Indicator.idssrc
(self)
Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' 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 ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def idssrc(self): """ Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["idssrc"]
[ "def", "idssrc", "(", "self", ")", ":", "return", "self", "[", "\"idssrc\"", "]" ]
[ 264, 4 ]
[ 275, 29 ]
python
en
['en', 'error', 'th']
False
Indicator.meta
(self)
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
def meta(self): """ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text ...
[ "def", "meta", "(", "self", ")", ":", "return", "self", "[", "\"meta\"", "]" ]
[ 284, 4 ]
[ 303, 27 ]
python
en
['en', 'error', 'th']
False
Indicator.metasrc
(self)
Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' 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 meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def metasrc(self): """ Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["metasrc"]
[ "def", "metasrc", "(", "self", ")", ":", "return", "self", "[", "\"metasrc\"", "]" ]
[ 312, 4 ]
[ 323, 30 ]
python
en
['en', 'error', 'th']
False
Indicator.mode
(self)
Determines how the value is displayed on the graph. `number` displays the value numerically in text. `delta` displays the difference to a reference value in text. Finally, `gauge` displays the value graphically on an axis. The 'mode' property is a flaglist and may be specif...
Determines how the value is displayed on the graph. `number` displays the value numerically in text. `delta` displays the difference to a reference value in text. Finally, `gauge` displays the value graphically on an axis. The 'mode' property is a flaglist and may be specif...
def mode(self): """ Determines how the value is displayed on the graph. `number` displays the value numerically in text. `delta` displays the difference to a reference value in text. Finally, `gauge` displays the value graphically on an axis. The 'mode' property is a...
[ "def", "mode", "(", "self", ")", ":", "return", "self", "[", "\"mode\"", "]" ]
[ 332, 4 ]
[ 348, 27 ]
python
en
['en', 'error', 'th']
False
Indicator.name
(self)
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string
def name(self): """ Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str ...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 357, 4 ]
[ 370, 27 ]
python
en
['en', 'error', 'th']
False
Indicator.number
(self)
The 'number' property is an instance of Number that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Number` - A dict of string/value properties that will be passed to the Number constructor Supported dict properties: ...
The 'number' property is an instance of Number that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Number` - A dict of string/value properties that will be passed to the Number constructor Supported dict properties: ...
def number(self): """ The 'number' property is an instance of Number that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Number` - A dict of string/value properties that will be passed to the Number constructor Supported...
[ "def", "number", "(", "self", ")", ":", "return", "self", "[", "\"number\"", "]" ]
[ 379, 4 ]
[ 406, 29 ]
python
en
['en', 'error', 'th']
False
Indicator.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
def stream(self): """ The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported...
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 415, 4 ]
[ 439, 29 ]
python
en
['en', 'error', 'th']
False
Indicator.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.indicator.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.indicator.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.indicator.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 448, 4 ]
[ 471, 28 ]
python
en
['en', 'error', 'th']
False
Indicator.uid
(self)
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- ...
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string
def uid(self): """ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Return...
[ "def", "uid", "(", "self", ")", ":", "return", "self", "[", "\"uid\"", "]" ]
[ 480, 4 ]
[ 493, 26 ]
python
en
['en', 'error', 'th']
False
Indicator.uirevision
(self)
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
def uirevision(self): """ Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driv...
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 502, 4 ]
[ 526, 33 ]
python
en
['en', 'error', 'th']
False
Indicator.value
(self)
Sets the number to be displayed. The 'value' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the number to be displayed. The 'value' property is a number and may be specified as: - An int or float
def value(self): """ Sets the number to be displayed. The 'value' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["value"]
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 535, 4 ]
[ 546, 28 ]
python
en
['en', 'error', 'th']
False
Indicator.visible
(self)
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
def visible(self): """ Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One o...
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 555, 4 ]
[ 569, 30 ]
python
en
['en', 'error', 'th']
False
Indicator.__init__
( self, arg=None, align=None, customdata=None, customdatasrc=None, delta=None, domain=None, gauge=None, ids=None, idssrc=None, meta=None, metasrc=None, mode=None, name=None, number=None, strea...
Construct a new Indicator object An indicator is used to visualize a single `value` along with some contextual information such as `steps` or a `threshold`, using a combination of three visual elements: a number, a delta, and/or a gauge. Deltas are taken with respect to...
Construct a new Indicator object An indicator is used to visualize a single `value` along with some contextual information such as `steps` or a `threshold`, using a combination of three visual elements: a number, a delta, and/or a gauge. Deltas are taken with respect to...
def __init__( self, arg=None, align=None, customdata=None, customdatasrc=None, delta=None, domain=None, gauge=None, ids=None, idssrc=None, meta=None, metasrc=None, mode=None, name=None, number=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "align", "=", "None", ",", "customdata", "=", "None", ",", "customdatasrc", "=", "None", ",", "delta", "=", "None", ",", "domain", "=", "None", ",", "gauge", "=", "None", ",", "ids", "="...
[ 679, 4 ]
[ 932, 34 ]
python
en
['en', 'error', 'th']
False
Textfont.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
Textfont.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
Textfont.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
Textfont.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Textfont object Sets the font for node labels Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.sankey.Textfont` color family ...
Construct a new Textfont object Sets the font for node labels
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Textfont object Sets the font for node labels Parameters ---------- arg dict of properties compatible with this constructor or an instance of ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Textfont", ",", "self", ")", ".", "__init__", "(", "\"text...
[ 143, 4 ]
[ 226, 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 the annotation text font. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.annotation.Font` color famil...
Construct a new Font object Sets the annotation text font.
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Font object Sets the annotation text font. Parameters ---------- arg dict of properties compatible with this constructor or an instance of ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Font", ",", "self", ")", ".", "__init__", "(", "\"font\"",...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
CmdNudge.func
(self)
nudge the lid. Random chance of success to open it.
nudge the lid. Random chance of success to open it.
def func(self): """ nudge the lid. Random chance of success to open it. """ rand = random.random() if rand < 0.5: self.caller.msg("You nudge at the lid. It seems stuck.") elif rand < 0.7: self.caller.msg("You move the lid back and forth. It won't b...
[ "def", "func", "(", "self", ")", ":", "rand", "=", "random", ".", "random", "(", ")", "if", "rand", "<", "0.5", ":", "self", ".", "caller", ".", "msg", "(", "\"You nudge at the lid. It seems stuck.\"", ")", "elif", "rand", "<", "0.7", ":", "self", ".",...
[ 34, 4 ]
[ 45, 47 ]
python
en
['en', 'error', 'th']
False
CmdPush.func
(self)
Note that we choose to implement this with checking for if the lid is open/closed. This is because this command is likely to be tried regardless of the state of the lid. An alternative would be to make two versions of this command and tuck them into the cmdset linked to the Ope...
Note that we choose to implement this with checking for if the lid is open/closed. This is because this command is likely to be tried regardless of the state of the lid.
def func(self): """ Note that we choose to implement this with checking for if the lid is open/closed. This is because this command is likely to be tried regardless of the state of the lid. An alternative would be to make two versions of this command and tuck them into t...
[ "def", "func", "(", "self", ")", ":", "if", "self", ".", "obj", ".", "db", ".", "lid_open", ":", "string", "=", "\"You reach out to press the big red button ...\"", "string", "+=", "\"\\n\\nA BOOM! A bright light blinds you!\"", "string", "+=", "\"\\nThe world goes dark...
[ 60, 4 ]
[ 83, 35 ]
python
en
['en', 'error', 'th']
False
CmdSmashGlass.func
(self)
The lid won't open, but there is a small chance of causing the lamp to break.
The lid won't open, but there is a small chance of causing the lamp to break.
def func(self): """ The lid won't open, but there is a small chance of causing the lamp to break. """ rand = random.random() if rand < 0.2: string = "You smash your hand against the glass" string += " with all your might. The lid won't budge" ...
[ "def", "func", "(", "self", ")", ":", "rand", "=", "random", ".", "random", "(", ")", "if", "rand", "<", "0.2", ":", "string", "=", "\"You smash your hand against the glass\"", "string", "+=", "\" with all your might. The lid won't budge\"", "string", "+=", "\" bu...
[ 100, 4 ]
[ 121, 82 ]
python
en
['en', 'error', 'th']
False
CmdOpenLid.func
(self)
simply call the right function.
simply call the right function.
def func(self): "simply call the right function." if self.obj.db.lid_locked: self.caller.msg("This lid seems locked in place for the moment.") return string = "\nA ticking sound is heard, like a winding mechanism. Seems " string += "the lid will soon close again...
[ "def", "func", "(", "self", ")", ":", "if", "self", ".", "obj", ".", "db", ".", "lid_locked", ":", "self", ".", "caller", ".", "msg", "(", "\"This lid seems locked in place for the moment.\"", ")", "return", "string", "=", "\"\\nA ticking sound is heard, like a wi...
[ 137, 4 ]
[ 152, 27 ]
python
en
['en', 'en', 'en']
True
CmdCloseLid.func
(self)
Close the lid
Close the lid
def func(self): "Close the lid" self.obj.close_lid() # this will clean out scripts dependent on lid being open. self.caller.msg("You close the button's lid. It clicks back into place.") self.caller.location.msg_contents("%s closes the button's lid." % ...
[ "def", "func", "(", "self", ")", ":", "self", ".", "obj", ".", "close_lid", "(", ")", "# this will clean out scripts dependent on lid being open.", "self", ".", "caller", ".", "msg", "(", "\"You close the button's lid. It clicks back into place.\"", ")", "self", ".", ...
[ 169, 4 ]
[ 177, 82 ]
python
en
['en', 'en', 'en']
True
CmdBlindLook.func
(self)
This replaces all the senses when blinded.
This replaces all the senses when blinded.
def func(self): "This replaces all the senses when blinded." # we decide what to reply based on which command was # actually tried if self.cmdstring == "get": string = "You fumble around blindly without finding anything." elif self.cmdstring == "examine": ...
[ "def", "func", "(", "self", ")", ":", "# we decide what to reply based on which command was", "# actually tried", "if", "self", ".", "cmdstring", "==", "\"get\"", ":", "string", "=", "\"You fumble around blindly without finding anything.\"", "elif", "self", ".", "cmdstring"...
[ 195, 4 ]
[ 215, 82 ]
python
en
['en', 'en', 'en']
True
CmdBlindHelp.func
(self)
Give a message.
Give a message.
def func(self): "Give a message." self.caller.msg("You are beyond help ... until you can see again.")
[ "def", "func", "(", "self", ")", ":", "self", ".", "caller", ".", "msg", "(", "\"You are beyond help ... until you can see again.\"", ")" ]
[ 230, 4 ]
[ 232, 75 ]
python
en
['en', 'en', 'en']
True
DefaultCmdSet.at_cmdset_creation
(self)
Init the cmdset
Init the cmdset
def at_cmdset_creation(self): "Init the cmdset" self.add(CmdPush())
[ "def", "at_cmdset_creation", "(", "self", ")", ":", "self", ".", "add", "(", "CmdPush", "(", ")", ")" ]
[ 255, 4 ]
[ 257, 27 ]
python
en
['en', 'la', 'en']
True
LidClosedCmdSet.at_cmdset_creation
(self)
Populates the cmdset when it is instantiated.
Populates the cmdset when it is instantiated.
def at_cmdset_creation(self): "Populates the cmdset when it is instantiated." self.add(CmdNudge()) self.add(CmdSmashGlass()) self.add(CmdOpenLid())
[ "def", "at_cmdset_creation", "(", "self", ")", ":", "self", ".", "add", "(", "CmdNudge", "(", ")", ")", "self", ".", "add", "(", "CmdSmashGlass", "(", ")", ")", "self", ".", "add", "(", "CmdOpenLid", "(", ")", ")" ]
[ 275, 4 ]
[ 279, 30 ]
python
en
['en', 'en', 'en']
True
LidOpenCmdSet.at_cmdset_creation
(self)
setup the cmdset (just one command)
setup the cmdset (just one command)
def at_cmdset_creation(self): "setup the cmdset (just one command)" self.add(CmdCloseLid())
[ "def", "at_cmdset_creation", "(", "self", ")", ":", "self", ".", "add", "(", "CmdCloseLid", "(", ")", ")" ]
[ 292, 4 ]
[ 294, 31 ]
python
en
['en', 'en', 'en']
True
BlindCmdSet.at_cmdset_creation
(self)
Setup the blind cmdset
Setup the blind cmdset
def at_cmdset_creation(self): "Setup the blind cmdset" from evennia.commands.default.general import CmdSay from evennia.commands.default.general import CmdPose self.add(CmdSay()) self.add(CmdPose()) self.add(CmdBlindLook()) self.add(CmdBlindHelp())
[ "def", "at_cmdset_creation", "(", "self", ")", ":", "from", "evennia", ".", "commands", ".", "default", ".", "general", "import", "CmdSay", "from", "evennia", ".", "commands", ".", "default", ".", "general", "import", "CmdPose", "self", ".", "add", "(", "C...
[ 312, 4 ]
[ 319, 32 ]
python
en
['en', 'is', 'en']
True
Title.font
(self)
Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.coloraxis.colorbar.title.Font` ...
Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.coloraxis.colorbar.title.Font` ...
def font(self): """ Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.color...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 15, 4 ]
[ 53, 27 ]
python
en
['en', 'error', 'th']
False
Title.side
(self)
Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values...
Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values...
def side(self): """ Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the f...
[ "def", "side", "(", "self", ")", ":", "return", "self", "[", "\"side\"", "]" ]
[ 62, 4 ]
[ 76, 27 ]
python
en
['en', 'error', 'th']
False
Title.text
(self)
Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - A string - A ...
Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - A string - A ...
def text(self): """ Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: ...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 85, 4 ]
[ 99, 27 ]
python
en
['en', 'error', 'th']
False
Title.__init__
(self, arg=None, font=None, side=None, text=None, **kwargs)
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.colorax is.colorbar.Title` font Sets this color bar's title font...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.colorax is.colorbar.Title` font Sets this color bar's title font...
def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): """ Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.colorax ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "side", "=", "None", ",", "text", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Title", ",", "self", ")", ".", "__init__", "(", "\"title\"", ...
[ 126, 4 ]
[ 203, 34 ]
python
en
['en', 'error', 'th']
False
_migrate_ledger
(data_directory, old_ledger_file, new_ledger_file, serializer: MappingSerializer = None)
Test for the directory, open old and new ledger, migrate data, rename directories
Test for the directory, open old and new ledger, migrate data, rename directories
def _migrate_ledger(data_directory, old_ledger_file, new_ledger_file, serializer: MappingSerializer = None): """ Test for the directory, open old and new ledger, migrate data, rename directories """ # we should have ChunkedFileStorage implementation of the Ledger...
[ "def", "_migrate_ledger", "(", "data_directory", ",", "old_ledger_file", ",", "new_ledger_file", ",", "serializer", ":", "MappingSerializer", "=", "None", ")", ":", "# we should have ChunkedFileStorage implementation of the Ledger", "if", "not", "os", ".", "path", ".", ...
[ 24, 0 ]
[ 86, 55 ]
python
en
['en', 'error', 'th']
False
test_max_iou_assigner_with_empty_gt
()
Test corner case where an image might have no true detections.
Test corner case where an image might have no true detections.
def test_max_iou_assigner_with_empty_gt(): """Test corner case where an image might have no true detections.""" self = MaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ) bboxes = torch.FloatTensor([ [0, 0, 10, 10], [10, 10, 20, 20], [5, 5, 15, 15], [32, 3...
[ "def", "test_max_iou_assigner_with_empty_gt", "(", ")", ":", "self", "=", "MaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "FloatTensor", "(", "[", "[", "0", ",", "0", ",", "10", ","...
[ 64, 0 ]
[ 80, 63 ]
python
en
['en', 'en', 'en']
True
test_max_iou_assigner_with_empty_boxes
()
Test corner case where a network might predict no boxes.
Test corner case where a network might predict no boxes.
def test_max_iou_assigner_with_empty_boxes(): """Test corner case where a network might predict no boxes.""" self = MaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ) bboxes = torch.empty((0, 4)) gt_bboxes = torch.FloatTensor([ [0, 0, 10, 9], [0, 10, 10, 19], ]) ...
[ "def", "test_max_iou_assigner_with_empty_boxes", "(", ")", ":", "self", "=", "MaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "empty", "(", "(", "0", ",", "4", ")", ")", "gt_bboxes", ...
[ 83, 0 ]
[ 104, 39 ]
python
en
['en', 'it', 'en']
True
test_max_iou_assigner_with_empty_boxes_and_ignore
()
Test corner case where a network might predict no boxes and ignore_iof_thr is on.
Test corner case where a network might predict no boxes and ignore_iof_thr is on.
def test_max_iou_assigner_with_empty_boxes_and_ignore(): """Test corner case where a network might predict no boxes and ignore_iof_thr is on.""" self = MaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ignore_iof_thr=0.5, ) bboxes = torch.empty((0, 4)) gt_bboxes = torch.F...
[ "def", "test_max_iou_assigner_with_empty_boxes_and_ignore", "(", ")", ":", "self", "=", "MaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", "ignore_iof_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "empty", "(", "(...
[ 107, 0 ]
[ 138, 39 ]
python
en
['en', 'en', 'en']
True
test_max_iou_assigner_with_empty_boxes_and_gt
()
Test corner case where a network might predict no boxes and no gt.
Test corner case where a network might predict no boxes and no gt.
def test_max_iou_assigner_with_empty_boxes_and_gt(): """Test corner case where a network might predict no boxes and no gt.""" self = MaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ) bboxes = torch.empty((0, 4)) gt_bboxes = torch.empty((0, 4)) assign_result = self.assign(bboxes...
[ "def", "test_max_iou_assigner_with_empty_boxes_and_gt", "(", ")", ":", "self", "=", "MaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "empty", "(", "(", "0", ",", "4", ")", ")", "gt_bbo...
[ 141, 0 ]
[ 150, 42 ]
python
en
['en', 'en', 'en']
True
test_point_assigner_with_empty_gt
()
Test corner case where an image might have no true detections.
Test corner case where an image might have no true detections.
def test_point_assigner_with_empty_gt(): """Test corner case where an image might have no true detections.""" self = PointAssigner() points = torch.FloatTensor([ # [x, y, stride] [0, 0, 1], [10, 10, 1], [5, 5, 1], [32, 32, 1], ]) gt_bboxes = torch.FloatTensor([]) ...
[ "def", "test_point_assigner_with_empty_gt", "(", ")", ":", "self", "=", "PointAssigner", "(", ")", "points", "=", "torch", ".", "FloatTensor", "(", "[", "# [x, y, stride]", "[", "0", ",", "0", ",", "1", "]", ",", "[", "10", ",", "10", ",", "1", "]", ...
[ 170, 0 ]
[ 183, 63 ]
python
en
['en', 'en', 'en']
True
test_point_assigner_with_empty_boxes_and_gt
()
Test corner case where an image might predict no points and no gt.
Test corner case where an image might predict no points and no gt.
def test_point_assigner_with_empty_boxes_and_gt(): """Test corner case where an image might predict no points and no gt.""" self = PointAssigner() points = torch.FloatTensor([]) gt_bboxes = torch.FloatTensor([]) assign_result = self.assign(points, gt_bboxes) assert len(assign_result.gt_inds) == ...
[ "def", "test_point_assigner_with_empty_boxes_and_gt", "(", ")", ":", "self", "=", "PointAssigner", "(", ")", "points", "=", "torch", ".", "FloatTensor", "(", "[", "]", ")", "gt_bboxes", "=", "torch", ".", "FloatTensor", "(", "[", "]", ")", "assign_result", "...
[ 186, 0 ]
[ 192, 42 ]
python
en
['en', 'en', 'en']
True
test_approx_iou_assigner_with_empty_gt
()
Test corner case where an image might have no true detections.
Test corner case where an image might have no true detections.
def test_approx_iou_assigner_with_empty_gt(): """Test corner case where an image might have no true detections.""" self = ApproxMaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ) bboxes = torch.FloatTensor([ [0, 0, 10, 10], [10, 10, 20, 20], [5, 5, 15, 15], ...
[ "def", "test_approx_iou_assigner_with_empty_gt", "(", ")", ":", "self", "=", "ApproxMaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "FloatTensor", "(", "[", "[", "0", ",", "0", ",", "1...
[ 220, 0 ]
[ 240, 63 ]
python
en
['en', 'en', 'en']
True
test_approx_iou_assigner_with_empty_boxes
()
Test corner case where an network might predict no boxes.
Test corner case where an network might predict no boxes.
def test_approx_iou_assigner_with_empty_boxes(): """Test corner case where an network might predict no boxes.""" self = ApproxMaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ) bboxes = torch.empty((0, 4)) gt_bboxes = torch.FloatTensor([ [0, 0, 10, 9], [0, 10, 10, 19...
[ "def", "test_approx_iou_assigner_with_empty_boxes", "(", ")", ":", "self", "=", "ApproxMaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "empty", "(", "(", "0", ",", "4", ")", ")", "gt_b...
[ 243, 0 ]
[ 259, 42 ]
python
en
['en', 'en', 'en']
True
test_approx_iou_assigner_with_empty_boxes_and_gt
()
Test corner case where an network might predict no boxes and no gt.
Test corner case where an network might predict no boxes and no gt.
def test_approx_iou_assigner_with_empty_boxes_and_gt(): """Test corner case where an network might predict no boxes and no gt.""" self = ApproxMaxIoUAssigner( pos_iou_thr=0.5, neg_iou_thr=0.5, ) bboxes = torch.empty((0, 4)) gt_bboxes = torch.empty((0, 4)) approxs_per_octave = 1 ...
[ "def", "test_approx_iou_assigner_with_empty_boxes_and_gt", "(", ")", ":", "self", "=", "ApproxMaxIoUAssigner", "(", "pos_iou_thr", "=", "0.5", ",", "neg_iou_thr", "=", "0.5", ",", ")", "bboxes", "=", "torch", ".", "empty", "(", "(", "0", ",", "4", ")", ")", ...
[ 262, 0 ]
[ 275, 42 ]
python
en
['en', 'en', 'en']
True
test_random_assign_result
()
Test random instantiation of assign result to catch corner cases.
Test random instantiation of assign result to catch corner cases.
def test_random_assign_result(): """Test random instantiation of assign result to catch corner cases.""" from mmdet.core.bbox.assigners.assign_result import AssignResult AssignResult.random() AssignResult.random(num_gts=0, num_preds=0) AssignResult.random(num_gts=0, num_preds=3) AssignResult.ra...
[ "def", "test_random_assign_result", "(", ")", ":", "from", "mmdet", ".", "core", ".", "bbox", ".", "assigners", ".", "assign_result", "import", "AssignResult", "AssignResult", ".", "random", "(", ")", "AssignResult", ".", "random", "(", "num_gts", "=", "0", ...
[ 278, 0 ]
[ 289, 48 ]
python
en
['en', 'da', 'en']
True
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
setup_interactive
()
Set up the interactive script.
Set up the interactive script.
def setup_interactive(): """ Set up the interactive script. """ parser = setup_args() opt = parser.parse_args() if not opt.get('model_file'): raise RuntimeError('Please specify a model file') if opt.get('fixed_cands_path') is None: opt['fixed_cands_path'] = os.path.join( ...
[ "def", "setup_interactive", "(", ")", ":", "parser", "=", "setup_args", "(", ")", "opt", "=", "parser", ".", "parse_args", "(", ")", "if", "not", "opt", ".", "get", "(", "'model_file'", ")", ":", "raise", "RuntimeError", "(", "'Please specify a model file'",...
[ 263, 0 ]
[ 282, 55 ]
python
en
['en', 'error', 'th']
False
MyHandler.interactive_running
(self, data)
Generate a model response. :param data: data to send to model :return: model act dictionary
Generate a model response.
def interactive_running(self, data): """ Generate a model response. :param data: data to send to model :return: model act dictionary """ reply = {} reply['text'] = data['personality'][0].decode() img_data = str(data['image'][0]) ...
[ "def", "interactive_running", "(", "self", ",", "data", ")", ":", "reply", "=", "{", "}", "reply", "[", "'text'", "]", "=", "data", "[", "'personality'", "]", "[", "0", "]", ".", "decode", "(", ")", "img_data", "=", "str", "(", "data", "[", "'image...
[ 187, 4 ]
[ 205, 24 ]
python
en
['en', 'error', 'th']
False
MyHandler.do_HEAD
(self)
Handle headers.
Handle headers.
def do_HEAD(self): """ Handle headers. """ self.send_response(200) self.send_header('Content-type', 'text/html') self.end_headers()
[ "def", "do_HEAD", "(", "self", ")", ":", "self", ".", "send_response", "(", "200", ")", "self", ".", "send_header", "(", "'Content-type'", ",", "'text/html'", ")", "self", ".", "end_headers", "(", ")" ]
[ 207, 4 ]
[ 213, 26 ]
python
en
['en', 'error', 'th']
False
MyHandler.do_POST
(self)
Handle POST.
Handle POST.
def do_POST(self): """ Handle POST. """ if self.path != '/interact': return self.respond({'status': 500}) ctype, pdict = cgi.parse_header(self.headers['content-type']) pdict['boundary'] = bytes(pdict['boundary'], "utf-8") postvars = cgi.parse_multipart...
[ "def", "do_POST", "(", "self", ")", ":", "if", "self", ".", "path", "!=", "'/interact'", ":", "return", "self", ".", "respond", "(", "{", "'status'", ":", "500", "}", ")", "ctype", ",", "pdict", "=", "cgi", ".", "parse_header", "(", "self", ".", "h...
[ 215, 4 ]
[ 230, 50 ]
python
en
['en', 'error', 'th']
False
MyHandler.do_GET
(self)
Handle GET.
Handle GET.
def do_GET(self): """ Handle GET. """ paths = { '/': {'status': 200}, '/favicon.ico': {'status': 202}, # Need for chrome } if self.path in paths: self.respond(paths[self.path]) else: self.respond({'status': 500})
[ "def", "do_GET", "(", "self", ")", ":", "paths", "=", "{", "'/'", ":", "{", "'status'", ":", "200", "}", ",", "'/favicon.ico'", ":", "{", "'status'", ":", "202", "}", ",", "# Need for chrome", "}", "if", "self", ".", "path", "in", "paths", ":", "se...
[ 232, 4 ]
[ 243, 41 ]
python
en
['en', 'error', 'th']
False
MyHandler.handle_http
(self, status_code, path, text=None)
Generate HTTP.
Generate HTTP.
def handle_http(self, status_code, path, text=None): """ Generate HTTP. """ self.send_response(status_code) self.send_header('Content-type', 'text/html') self.end_headers() content = WEB_HTML.format(STYLE_SHEET, FONT_AWESOME) return bytes(content, 'UTF-8')
[ "def", "handle_http", "(", "self", ",", "status_code", ",", "path", ",", "text", "=", "None", ")", ":", "self", ".", "send_response", "(", "status_code", ")", "self", ".", "send_header", "(", "'Content-type'", ",", "'text/html'", ")", "self", ".", "end_hea...
[ 245, 4 ]
[ 253, 38 ]
python
en
['en', 'error', 'th']
False
MyHandler.respond
(self, opts)
Respond.
Respond.
def respond(self, opts): """ Respond. """ response = self.handle_http(opts['status'], self.path) self.wfile.write(response)
[ "def", "respond", "(", "self", ",", "opts", ")", ":", "response", "=", "self", ".", "handle_http", "(", "opts", "[", "'status'", "]", ",", "self", ".", "path", ")", "self", ".", "wfile", ".", "write", "(", "response", ")" ]
[ 255, 4 ]
[ 260, 34 ]
python
en
['en', 'error', 'th']
False
get_word_counts
(opt, count_inputs)
Goes through the dataset specified in opt and gets word counts. Inputs: count_inputs: If True, include both input and reply when counting words and utterances. Otherwise, only include reply text. Returns: word_counter_per_sent: a Counter mapping each word to the number of utte...
Goes through the dataset specified in opt and gets word counts.
def get_word_counts(opt, count_inputs): """ Goes through the dataset specified in opt and gets word counts. Inputs: count_inputs: If True, include both input and reply when counting words and utterances. Otherwise, only include reply text. Returns: word_counter_per_sent: a Counter ...
[ "def", "get_word_counts", "(", "opt", ",", "count_inputs", ")", ":", "# Create repeat label agent and assign it to the specified task", "agent", "=", "RepeatLabelAgent", "(", "opt", ")", "world", "=", "create_task", "(", "opt", ",", "agent", ")", "# Count word frequency...
[ 25, 0 ]
[ 75, 43 ]
python
en
['en', 'error', 'th']
False
learn_nidf
(opt)
Go through ConvAI2 and Twitter data, and count word frequences. Save word2count.pkl, which contains word2count, and total num_sents. These are both needed to calculate NIDF later.
Go through ConvAI2 and Twitter data, and count word frequences.
def learn_nidf(opt): """ Go through ConvAI2 and Twitter data, and count word frequences. Save word2count.pkl, which contains word2count, and total num_sents. These are both needed to calculate NIDF later. """ opt['log_every_n_secs'] = 2 print('Counting words in Twitter train set...') ...
[ "def", "learn_nidf", "(", "opt", ")", ":", "opt", "[", "'log_every_n_secs'", "]", "=", "2", "print", "(", "'Counting words in Twitter train set...'", ")", "opt", "[", "'datatype'", "]", "=", "'train:ordered'", "opt", "[", "'task'", "]", "=", "'twitter'", "wc1"...
[ 78, 0 ]
[ 127, 28 ]
python
en
['en', 'error', 'th']
False
load_word2nidf
(opt)
Loads word count stats from word2count.pkl file in data/controllable_dialogue, computes NIDF for all words, and returns the word2nidf dictionary. Returns: word2nidf: dict mapping words to their NIDF score (float between 0 and 1)
Loads word count stats from word2count.pkl file in data/controllable_dialogue, computes NIDF for all words, and returns the word2nidf dictionary.
def load_word2nidf(opt): """ Loads word count stats from word2count.pkl file in data/controllable_dialogue, computes NIDF for all words, and returns the word2nidf dictionary. Returns: word2nidf: dict mapping words to their NIDF score (float between 0 and 1) """ word2count_fp = os.path.joi...
[ "def", "load_word2nidf", "(", "opt", ")", ":", "word2count_fp", "=", "os", ".", "path", ".", "join", "(", "opt", "[", "'datapath'", "]", ",", "CONTROLLABLE_DIR", ",", "'word2count.pkl'", ")", "print", "(", "\"Loading word count stats from %s...\"", "%", "word2co...
[ 130, 0 ]
[ 152, 20 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram2dcon tour.colorbar.Tickformatstop` dtickrange range ...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram2dcon tour.colorbar.Tickformatstop` dtickrange range ...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
TransresnetMultimodalModel.add_cmdline_args
( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None )
Override to include model-specific args.
Override to include model-specific args.
def add_cmdline_args( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None ) -> ParlaiParser: """ Override to include model-specific args. """ super().add_cmdline_args(parser, partial_opt=partial_opt) agent = parser.add_argument_group("TransresnetMultimodal ta...
[ "def", "add_cmdline_args", "(", "cls", ",", "parser", ":", "ParlaiParser", ",", "partial_opt", ":", "Optional", "[", "Opt", "]", "=", "None", ")", "->", "ParlaiParser", ":", "super", "(", ")", ".", "add_cmdline_args", "(", "parser", ",", "partial_opt", "="...
[ 32, 4 ]
[ 97, 21 ]
python
en
['en', 'error', 'th']
False
TransresnetMultimodalModel._build_multimodal_encoder
(self, n_layers_mm)
Build the multimodal encoder. :param n_layers_mm: number of layers for the transformer
Build the multimodal encoder.
def _build_multimodal_encoder(self, n_layers_mm): """ Build the multimodal encoder. :param n_layers_mm: number of layers for the transformer """ self.multimodal = self.opt.get("multimodal") if self.multimodal: self.multimodal_combo = self.opt.get(...
[ "def", "_build_multimodal_encoder", "(", "self", ",", "n_layers_mm", ")", ":", "self", ".", "multimodal", "=", "self", ".", "opt", ".", "get", "(", "\"multimodal\"", ")", "if", "self", ".", "multimodal", ":", "self", ".", "multimodal_combo", "=", "self", "...
[ 131, 4 ]
[ 157, 13 ]
python
en
['en', 'error', 'th']
False