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
Contour.xaxis
(self)
Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an identifier of a particular ...
Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an identifier of a particular ...
def xaxis(self): """ Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an ident...
[ "def", "xaxis", "(", "self", ")", ":", "return", "self", "[", "\"xaxis\"", "]" ]
[ 1419, 4 ]
[ 1435, 28 ]
python
en
['en', 'error', 'th']
False
Contour.xcalendar
(self)
Sets the calendar system to use with `x` date data. The 'xcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
Sets the calendar system to use with `x` date data. The 'xcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
def xcalendar(self): """ Sets the calendar system to use with `x` date data. The 'xcalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian',...
[ "def", "xcalendar", "(", "self", ")", ":", "return", "self", "[", "\"xcalendar\"", "]" ]
[ 1444, 4 ]
[ 1459, 32 ]
python
en
['en', 'error', 'th']
False
Contour.xsrc
(self)
Sets the source reference on Chart Studio Cloud for x . The 'xsrc' 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 x . The 'xsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def xsrc(self): """ Sets the source reference on Chart Studio Cloud for x . The 'xsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["xsrc"]
[ "def", "xsrc", "(", "self", ")", ":", "return", "self", "[", "\"xsrc\"", "]" ]
[ 1468, 4 ]
[ 1479, 27 ]
python
en
['en', 'error', 'th']
False
Contour.xtype
(self)
If "array", the heatmap's x coordinates are given by "x" (the default behavior when `x` is provided). If "scaled", the heatmap's x coordinates are given by "x0" and "dx" (the default behavior when `x` is not provided). The 'xtype' property is an enumeration that may be spec...
If "array", the heatmap's x coordinates are given by "x" (the default behavior when `x` is provided). If "scaled", the heatmap's x coordinates are given by "x0" and "dx" (the default behavior when `x` is not provided). The 'xtype' property is an enumeration that may be spec...
def xtype(self): """ If "array", the heatmap's x coordinates are given by "x" (the default behavior when `x` is provided). If "scaled", the heatmap's x coordinates are given by "x0" and "dx" (the default behavior when `x` is not provided). The 'xtype' property is an ...
[ "def", "xtype", "(", "self", ")", ":", "return", "self", "[", "\"xtype\"", "]" ]
[ 1488, 4 ]
[ 1503, 28 ]
python
en
['en', 'error', 'th']
False
Contour.y
(self)
Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def y(self): """ Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1512, 4 ]
[ 1523, 24 ]
python
en
['en', 'error', 'th']
False
Contour.y0
(self)
Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step. The 'y0' property accepts values of any type Returns ------- Any
Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step. The 'y0' property accepts values of any type
def y0(self): """ Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step. The 'y0' property accepts values of any type Returns ------- Any """ return self["y0"]
[ "def", "y0", "(", "self", ")", ":", "return", "self", "[", "\"y0\"", "]" ]
[ 1532, 4 ]
[ 1544, 25 ]
python
en
['en', 'error', 'th']
False
Contour.yaxis
(self)
Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an identifier of a particular ...
Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an identifier of a particular ...
def yaxis(self): """ Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an ident...
[ "def", "yaxis", "(", "self", ")", ":", "return", "self", "[", "\"yaxis\"", "]" ]
[ 1553, 4 ]
[ 1569, 28 ]
python
en
['en', 'error', 'th']
False
Contour.ycalendar
(self)
Sets the calendar system to use with `y` date data. The 'ycalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
Sets the calendar system to use with `y` date data. The 'ycalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', 'hebrew', 'islamic', 'julian', ...
def ycalendar(self): """ Sets the calendar system to use with `y` date data. The 'ycalendar' property is an enumeration that may be specified as: - One of the following enumeration values: ['gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian',...
[ "def", "ycalendar", "(", "self", ")", ":", "return", "self", "[", "\"ycalendar\"", "]" ]
[ 1578, 4 ]
[ 1593, 32 ]
python
en
['en', 'error', 'th']
False
Contour.ysrc
(self)
Sets the source reference on Chart Studio Cloud for y . The 'ysrc' 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 y . The 'ysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def ysrc(self): """ Sets the source reference on Chart Studio Cloud for y . The 'ysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["ysrc"]
[ "def", "ysrc", "(", "self", ")", ":", "return", "self", "[", "\"ysrc\"", "]" ]
[ 1602, 4 ]
[ 1613, 27 ]
python
en
['en', 'error', 'th']
False
Contour.ytype
(self)
If "array", the heatmap's y coordinates are given by "y" (the default behavior when `y` is provided) If "scaled", the heatmap's y coordinates are given by "y0" and "dy" (the default behavior when `y` is not provided) The 'ytype' property is an enumeration that may be specif...
If "array", the heatmap's y coordinates are given by "y" (the default behavior when `y` is provided) If "scaled", the heatmap's y coordinates are given by "y0" and "dy" (the default behavior when `y` is not provided) The 'ytype' property is an enumeration that may be specif...
def ytype(self): """ If "array", the heatmap's y coordinates are given by "y" (the default behavior when `y` is provided) If "scaled", the heatmap's y coordinates are given by "y0" and "dy" (the default behavior when `y` is not provided) The 'ytype' property is an en...
[ "def", "ytype", "(", "self", ")", ":", "return", "self", "[", "\"ytype\"", "]" ]
[ 1622, 4 ]
[ 1637, 28 ]
python
en
['en', 'error', 'th']
False
Contour.z
(self)
Sets the z data. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the z data. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def z(self): """ Sets the z data. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["z"]
[ "def", "z", "(", "self", ")", ":", "return", "self", "[", "\"z\"", "]" ]
[ 1646, 4 ]
[ 1657, 24 ]
python
en
['en', 'error', 'th']
False
Contour.zauto
(self)
Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user. The 'zauto' property must be specified as a bool (either True,...
Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user. The 'zauto' property must be specified as a bool (either True,...
def zauto(self): """ Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user. The 'zauto' property must be specified as ...
[ "def", "zauto", "(", "self", ")", ":", "return", "self", "[", "\"zauto\"", "]" ]
[ 1666, 4 ]
[ 1680, 28 ]
python
en
['en', 'error', 'th']
False
Contour.zhoverformat
(self)
Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. See: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format The 'zhoverformat' property is a string and must be specified as: ...
Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. See: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format The 'zhoverformat' property is a string and must be specified as: ...
def zhoverformat(self): """ Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. See: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format The 'zhoverformat' property is a string...
[ "def", "zhoverformat", "(", "self", ")", ":", "return", "self", "[", "\"zhoverformat\"", "]" ]
[ 1689, 4 ]
[ 1704, 35 ]
python
en
['en', 'error', 'th']
False
Contour.zmax
(self)
Sets the upper bound of the color domain. Value should have the same units as in `z` and if set, `zmin` must be set as well. The 'zmax' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the upper bound of the color domain. Value should have the same units as in `z` and if set, `zmin` must be set as well. The 'zmax' property is a number and may be specified as: - An int or float
def zmax(self): """ Sets the upper bound of the color domain. Value should have the same units as in `z` and if set, `zmin` must be set as well. The 'zmax' property is a number and may be specified as: - An int or float Returns ------- int|float ...
[ "def", "zmax", "(", "self", ")", ":", "return", "self", "[", "\"zmax\"", "]" ]
[ 1713, 4 ]
[ 1725, 27 ]
python
en
['en', 'error', 'th']
False
Contour.zmid
(self)
Sets the mid-point of the color domain by scaling `zmin` and/or `zmax` to be equidistant to this point. Value should have the same units as in `z`. Has no effect when `zauto` is `false`. The 'zmid' property is a number and may be specified as: - An int or float R...
Sets the mid-point of the color domain by scaling `zmin` and/or `zmax` to be equidistant to this point. Value should have the same units as in `z`. Has no effect when `zauto` is `false`. The 'zmid' property is a number and may be specified as: - An int or float
def zmid(self): """ Sets the mid-point of the color domain by scaling `zmin` and/or `zmax` to be equidistant to this point. Value should have the same units as in `z`. Has no effect when `zauto` is `false`. The 'zmid' property is a number and may be specified as: -...
[ "def", "zmid", "(", "self", ")", ":", "return", "self", "[", "\"zmid\"", "]" ]
[ 1734, 4 ]
[ 1747, 27 ]
python
en
['en', 'error', 'th']
False
Contour.zmin
(self)
Sets the lower bound of the color domain. Value should have the same units as in `z` and if set, `zmax` must be set as well. The 'zmin' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the lower bound of the color domain. Value should have the same units as in `z` and if set, `zmax` must be set as well. The 'zmin' property is a number and may be specified as: - An int or float
def zmin(self): """ Sets the lower bound of the color domain. Value should have the same units as in `z` and if set, `zmax` must be set as well. The 'zmin' property is a number and may be specified as: - An int or float Returns ------- int|float ...
[ "def", "zmin", "(", "self", ")", ":", "return", "self", "[", "\"zmin\"", "]" ]
[ 1756, 4 ]
[ 1768, 27 ]
python
en
['en', 'error', 'th']
False
Contour.zsrc
(self)
Sets the source reference on Chart Studio Cloud for z . The 'zsrc' 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 z . The 'zsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def zsrc(self): """ Sets the source reference on Chart Studio Cloud for z . The 'zsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["zsrc"]
[ "def", "zsrc", "(", "self", ")", ":", "return", "self", "[", "\"zsrc\"", "]" ]
[ 1777, 4 ]
[ 1788, 27 ]
python
en
['en', 'error', 'th']
False
Contour.__init__
( self, arg=None, autocolorscale=None, autocontour=None, coloraxis=None, colorbar=None, colorscale=None, connectgaps=None, contours=None, customdata=None, customdatasrc=None, dx=None, dy=None, fillcolor=None,...
Construct a new Contour object The data from which contour lines are computed is set in `z`. Data in `z` must be a 2D list of numbers. Say that `z` has N rows and M columns, then by default, these N rows correspond to N y coordinates (set in `y` or auto-generated) and t...
Construct a new Contour object The data from which contour lines are computed is set in `z`. Data in `z` must be a 2D list of numbers. Say that `z` has N rows and M columns, then by default, these N rows correspond to N y coordinates (set in `y` or auto-generated) and t...
def __init__( self, arg=None, autocolorscale=None, autocontour=None, coloraxis=None, colorbar=None, colorscale=None, connectgaps=None, contours=None, customdata=None, customdatasrc=None, dx=None, dy=None, fil...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "autocolorscale", "=", "None", ",", "autocontour", "=", "None", ",", "coloraxis", "=", "None", ",", "colorbar", "=", "None", ",", "colorscale", "=", "None", ",", "connectgaps", "=", "None", ...
[ 2072, 4 ]
[ 2695, 34 ]
python
en
['en', 'error', 'th']
False
Marker.color
(self)
Sets the marker color of all decreasing values. 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(...
Sets the marker color of all decreasing values. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(...
def color(self): """ Sets the marker color of all decreasing values. 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...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Marker.line
(self)
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.waterfall.decreasing.marker.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict properties: ...
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.waterfall.decreasing.marker.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict properties: ...
def line(self): """ The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.waterfall.decreasing.marker.Line` - A dict of string/value properties that will be passed to the Line constructor S...
[ "def", "line", "(", "self", ")", ":", "return", "self", "[", "\"line\"", "]" ]
[ 74, 4 ]
[ 93, 27 ]
python
en
['en', 'error', 'th']
False
Marker.__init__
(self, arg=None, color=None, line=None, **kwargs)
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.decreasing.Marker` color Sets the marker color of all decrea...
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.decreasing.Marker` color Sets the marker color of all decrea...
def __init__(self, arg=None, color=None, line=None, **kwargs): """ Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.decrea...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "line", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Marker", ",", "self", ")", ".", "__init__", "(", "\"marker\"", ")", "if", "\"_parent\"",...
[ 111, 4 ]
[ 175, 34 ]
python
en
['en', 'error', 'th']
False
BaseAdminServer.start
(self)
Start the webserver. Raises: AdminSetupError: If there was an error starting the webserver
Start the webserver.
async def start(self) -> None: """ Start the webserver. Raises: AdminSetupError: If there was an error starting the webserver """
[ "async", "def", "start", "(", "self", ")", "->", "None", ":" ]
[ 11, 4 ]
[ 18, 11 ]
python
en
['en', 'error', 'th']
False
BaseAdminServer.stop
(self)
Stop the webserver.
Stop the webserver.
async def stop(self) -> None: """Stop the webserver."""
[ "async", "def", "stop", "(", "self", ")", "->", "None", ":" ]
[ 21, 4 ]
[ 22, 33 ]
python
en
['en', 'nl', 'en']
True
BaseAdminServer.add_webhook_target
( self, target_url: str, topic_filter: Sequence[str] = None, retries: int = None )
Add a webhook target.
Add a webhook target.
def add_webhook_target( self, target_url: str, topic_filter: Sequence[str] = None, retries: int = None ): """Add a webhook target."""
[ "def", "add_webhook_target", "(", "self", ",", "target_url", ":", "str", ",", "topic_filter", ":", "Sequence", "[", "str", "]", "=", "None", ",", "retries", ":", "int", "=", "None", ")", ":" ]
[ 25, 4 ]
[ 28, 35 ]
python
en
['en', 'lb', 'en']
True
BaseAdminServer.remove_webhook_target
(self, target_url: str)
Remove a webhook target.
Remove a webhook target.
def remove_webhook_target(self, target_url: str): """Remove a webhook target."""
[ "def", "remove_webhook_target", "(", "self", ",", "target_url", ":", "str", ")", ":" ]
[ 31, 4 ]
[ 32, 38 ]
python
en
['en', 'lb', 'en']
True
BaseAdminServer.send_webhook
(self, topic: str, payload: dict)
Add a webhook to the queue, to send to all registered targets.
Add a webhook to the queue, to send to all registered targets.
async def send_webhook(self, topic: str, payload: dict): """Add a webhook to the queue, to send to all registered targets."""
[ "async", "def", "send_webhook", "(", "self", ",", "topic", ":", "str", ",", "payload", ":", "dict", ")", ":" ]
[ 35, 4 ]
[ 36, 76 ]
python
en
['en', 'en', 'en']
True
Waymo2KITTI.convert
(self)
Convert action.
Convert action.
def convert(self): """Convert action.""" print('Start converting ...') mmcv.track_parallel_progress(self.convert_one, range(len(self)), self.workers) print('\nFinished ...')
[ "def", "convert", "(", "self", ")", ":", "print", "(", "'Start converting ...'", ")", "mmcv", ".", "track_parallel_progress", "(", "self", ".", "convert_one", ",", "range", "(", "len", "(", "self", ")", ")", ",", "self", ".", "workers", ")", "print", "("...
[ 90, 4 ]
[ 95, 31 ]
python
en
['en', 'lb', 'en']
False
Waymo2KITTI.convert_one
(self, file_idx)
Convert action for single file. Args: file_idx (int): Index of the file to be converted.
Convert action for single file.
def convert_one(self, file_idx): """Convert action for single file. Args: file_idx (int): Index of the file to be converted. """ pathname = self.tfrecord_pathnames[file_idx] dataset = tf.data.TFRecordDataset(pathname, compression_type='') for frame_idx, data...
[ "def", "convert_one", "(", "self", ",", "file_idx", ")", ":", "pathname", "=", "self", ".", "tfrecord_pathnames", "[", "file_idx", "]", "dataset", "=", "tf", ".", "data", ".", "TFRecordDataset", "(", "pathname", ",", "compression_type", "=", "''", ")", "fo...
[ 97, 4 ]
[ 121, 59 ]
python
en
['en', 'en', 'en']
True
Waymo2KITTI.__len__
(self)
Length of the filename list.
Length of the filename list.
def __len__(self): """Length of the filename list.""" return len(self.tfrecord_pathnames)
[ "def", "__len__", "(", "self", ")", ":", "return", "len", "(", "self", ".", "tfrecord_pathnames", ")" ]
[ 123, 4 ]
[ 125, 43 ]
python
en
['en', 'en', 'en']
True
Waymo2KITTI.save_image
(self, frame, file_idx, frame_idx)
Parse and save the images in png format. Args: frame (:obj:`Frame`): Open dataset frame proto. file_idx (int): Current file index. frame_idx (int): Current frame index.
Parse and save the images in png format.
def save_image(self, frame, file_idx, frame_idx): """Parse and save the images in png format. Args: frame (:obj:`Frame`): Open dataset frame proto. file_idx (int): Current file index. frame_idx (int): Current frame index. """ for img in frame.images: ...
[ "def", "save_image", "(", "self", ",", "frame", ",", "file_idx", ",", "frame_idx", ")", ":", "for", "img", "in", "frame", ".", "images", ":", "img_path", "=", "f'{self.image_save_dir}{str(img.name - 1)}/'", "+", "f'{self.prefix}{str(file_idx).zfill(3)}'", "+", "f'{s...
[ 127, 4 ]
[ 140, 39 ]
python
en
['en', 'en', 'en']
True
Waymo2KITTI.save_calib
(self, frame, file_idx, frame_idx)
Parse and save the calibration data. Args: frame (:obj:`Frame`): Open dataset frame proto. file_idx (int): Current file index. frame_idx (int): Current frame index.
Parse and save the calibration data.
def save_calib(self, frame, file_idx, frame_idx): """Parse and save the calibration data. Args: frame (:obj:`Frame`): Open dataset frame proto. file_idx (int): Current file index. frame_idx (int): Current frame index. """ # waymo front camera to kitti...
[ "def", "save_calib", "(", "self", ",", "frame", ",", "file_idx", ",", "frame_idx", ")", ":", "# waymo front camera to kitti reference camera", "T_front_cam_to_ref", "=", "np", ".", "array", "(", "[", "[", "0.0", ",", "-", "1.0", ",", "0.0", "]", ",", "[", ...
[ 142, 4 ]
[ 196, 28 ]
python
en
['en', 'en', 'en']
True
Waymo2KITTI.save_lidar
(self, frame, file_idx, frame_idx)
Parse and save the lidar data in psd format. Args: frame (:obj:`Frame`): Open dataset frame proto. file_idx (int): Current file index. frame_idx (int): Current frame index.
Parse and save the lidar data in psd format.
def save_lidar(self, frame, file_idx, frame_idx): """Parse and save the lidar data in psd format. Args: frame (:obj:`Frame`): Open dataset frame proto. file_idx (int): Current file index. frame_idx (int): Current frame index. """ range_images, camera_...
[ "def", "save_lidar", "(", "self", ",", "frame", ",", "file_idx", ",", "frame_idx", ")", ":", "range_images", ",", "camera_projections", ",", "range_image_top_pose", "=", "parse_range_image_and_camera_projection", "(", "frame", ")", "# First return", "points_0", ",", ...
[ 198, 4 ]
[ 246, 54 ]
python
en
['en', 'en', 'en']
True
Waymo2KITTI.save_label
(self, frame, file_idx, frame_idx)
Parse and save the label data in txt format. The relation between waymo and kitti coordinates is noteworthy: 1. x, y, z correspond to l, w, h (waymo) -> l, h, w (kitti) 2. x-y-z: front-left-up (waymo) -> right-down-front(kitti) 3. bbox origin at volumetric center (waymo) -> bottom center...
Parse and save the label data in txt format. The relation between waymo and kitti coordinates is noteworthy: 1. x, y, z correspond to l, w, h (waymo) -> l, h, w (kitti) 2. x-y-z: front-left-up (waymo) -> right-down-front(kitti) 3. bbox origin at volumetric center (waymo) -> bottom center...
def save_label(self, frame, file_idx, frame_idx): """Parse and save the label data in txt format. The relation between waymo and kitti coordinates is noteworthy: 1. x, y, z correspond to l, w, h (waymo) -> l, h, w (kitti) 2. x-y-z: front-left-up (waymo) -> right-down-front(kitti) ...
[ "def", "save_label", "(", "self", ",", "frame", ",", "file_idx", ",", "frame_idx", ")", ":", "fp_label_all", "=", "open", "(", "f'{self.label_all_save_dir}/{self.prefix}'", "+", "f'{str(file_idx).zfill(3)}{str(frame_idx).zfill(3)}.txt'", ",", "'w+'", ")", "id_to_bbox", ...
[ 248, 4 ]
[ 346, 28 ]
python
en
['en', 'en', 'en']
True
Waymo2KITTI.save_pose
(self, frame, file_idx, frame_idx)
Parse and save the pose data. Note that SDC's own pose is not included in the regular training of KITTI dataset. KITTI raw dataset contains ego motion files but are not often used. Pose is important for algorithms that take advantage of the temporal information. Args: ...
Parse and save the pose data.
def save_pose(self, frame, file_idx, frame_idx): """Parse and save the pose data. Note that SDC's own pose is not included in the regular training of KITTI dataset. KITTI raw dataset contains ego motion files but are not often used. Pose is important for algorithms that take adv...
[ "def", "save_pose", "(", "self", ",", "frame", ",", "file_idx", ",", "frame_idx", ")", ":", "pose", "=", "np", ".", "array", "(", "frame", ".", "pose", ".", "transform", ")", ".", "reshape", "(", "4", ",", "4", ")", "np", ".", "savetxt", "(", "jo...
[ 348, 4 ]
[ 365, 17 ]
python
en
['en', 'en', 'en']
True
Waymo2KITTI.create_folder
(self)
Create folder for data preprocessing.
Create folder for data preprocessing.
def create_folder(self): """Create folder for data preprocessing.""" if not self.test_mode: dir_list1 = [ self.label_all_save_dir, self.calib_save_dir, self.point_cloud_save_dir, self.pose_save_dir ] dir_list2 = [self.label_save_dir, se...
[ "def", "create_folder", "(", "self", ")", ":", "if", "not", "self", ".", "test_mode", ":", "dir_list1", "=", "[", "self", ".", "label_all_save_dir", ",", "self", ".", "calib_save_dir", ",", "self", ".", "point_cloud_save_dir", ",", "self", ".", "pose_save_di...
[ 367, 4 ]
[ 385, 51 ]
python
da
['da', 'no', 'en']
False
Waymo2KITTI.convert_range_image_to_point_cloud
(self, frame, range_images, camera_projections, range_image_top_pose, ri_index=0)
Convert range images to point cloud. Args: frame (:obj:`Frame`): Open dataset frame. range_images (dict): Mapping from laser_name to list of two range images corresponding with two returns. camera_projections (dict): Mapping from laser_name to list of two ...
Convert range images to point cloud.
def convert_range_image_to_point_cloud(self, frame, range_images, camera_projections, range_image_top_pose, ...
[ "def", "convert_range_image_to_point_cloud", "(", "self", ",", "frame", ",", "range_images", ",", "camera_projections", ",", "range_image_top_pose", ",", "ri_index", "=", "0", ")", ":", "calibrations", "=", "sorted", "(", "frame", ".", "context", ".", "laser_calib...
[ 387, 4 ]
[ 493, 55 ]
python
en
['en', 'en', 'en']
True
Waymo2KITTI.cart_to_homo
(self, mat)
Convert transformation matrix in Cartesian coordinates to homogeneous format. Args: mat (np.ndarray): Transformation matrix in Cartesian. The input matrix shape is 3x3 or 3x4. Returns: np.ndarray: Transformation matrix in homogeneous format. ...
Convert transformation matrix in Cartesian coordinates to homogeneous format.
def cart_to_homo(self, mat): """Convert transformation matrix in Cartesian coordinates to homogeneous format. Args: mat (np.ndarray): Transformation matrix in Cartesian. The input matrix shape is 3x3 or 3x4. Returns: np.ndarray: Transformation ma...
[ "def", "cart_to_homo", "(", "self", ",", "mat", ")", ":", "ret", "=", "np", ".", "eye", "(", "4", ")", "if", "mat", ".", "shape", "==", "(", "3", ",", "3", ")", ":", "ret", "[", ":", "3", ",", ":", "3", "]", "=", "mat", "elif", "mat", "."...
[ 495, 4 ]
[ 514, 18 ]
python
en
['en', 'su', 'en']
True
BaseHandler.__init__
(self)
Initialize a BaseHandler instance.
Initialize a BaseHandler instance.
def __init__(self) -> None: """Initialize a BaseHandler instance.""" self._logger = logging.getLogger(__name__)
[ "def", "__init__", "(", "self", ")", "->", "None", ":", "self", ".", "_logger", "=", "logging", ".", "getLogger", "(", "__name__", ")" ]
[ 17, 4 ]
[ 19, 50 ]
python
en
['en', 'en', 'en']
True
BaseHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Abstract method for handler logic. Args: context: Request context object responder: A responder object
Abstract method for handler logic.
async def handle(self, context: RequestContext, responder: BaseResponder): """ Abstract method for handler logic. Args: context: Request context object responder: A responder object """
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":" ]
[ 22, 4 ]
[ 30, 11 ]
python
en
['en', 'error', 'th']
False
CmdTalk.func
(self)
Implements the command.
Implements the command.
def func(self): "Implements the command." # self.obj is the NPC this is defined on self.caller.msg("(You walk up and talk to %s.)" % self.obj.key) # Initiate the menu. Change this if you are putting this on # some other custom NPC class. EvMenu(self.caller, "evennia.con...
[ "def", "func", "(", "self", ")", ":", "# self.obj is the NPC this is defined on", "self", ".", "caller", ".", "msg", "(", "\"(You walk up and talk to %s.)\"", "%", "self", ".", "obj", ".", "key", ")", "# Initiate the menu. Change this if you are putting this on", "# some ...
[ 100, 4 ]
[ 109, 43 ]
python
en
['en', 'en', 'en']
True
TalkingCmdSet.at_cmdset_creation
(self)
populates the cmdset
populates the cmdset
def at_cmdset_creation(self): "populates the cmdset" self.add(CmdTalk())
[ "def", "at_cmdset_creation", "(", "self", ")", ":", "self", ".", "add", "(", "CmdTalk", "(", ")", ")" ]
[ 116, 4 ]
[ 118, 27 ]
python
en
['en', 'sr', 'en']
True
TalkingNPC.at_object_creation
(self)
This is called when object is first created.
This is called when object is first created.
def at_object_creation(self): "This is called when object is first created." self.db.desc = "This is a talkative NPC." # assign the talk command to npc self.cmdset.add_default(TalkingCmdSet, permanent=True)
[ "def", "at_object_creation", "(", "self", ")", ":", "self", ".", "db", ".", "desc", "=", "\"This is a talkative NPC.\"", "# assign the talk command to npc", "self", ".", "cmdset", ".", "add_default", "(", "TalkingCmdSet", ",", "permanent", "=", "True", ")" ]
[ 127, 4 ]
[ 131, 62 ]
python
en
['en', 'en', 'en']
True
Mapbox.accesstoken
(self)
Sets the mapbox access token to be used for this mapbox map. Alternatively, the mapbox access token can be set in the configuration options under `mapboxAccessToken`. Note that accessToken are only required when `style` (e.g with values : basic, streets, outdoors, light, dark, s...
Sets the mapbox access token to be used for this mapbox map. Alternatively, the mapbox access token can be set in the configuration options under `mapboxAccessToken`. Note that accessToken are only required when `style` (e.g with values : basic, streets, outdoors, light, dark, s...
def accesstoken(self): """ Sets the mapbox access token to be used for this mapbox map. Alternatively, the mapbox access token can be set in the configuration options under `mapboxAccessToken`. Note that accessToken are only required when `style` (e.g with values : basic,...
[ "def", "accesstoken", "(", "self", ")", ":", "return", "self", "[", "\"accesstoken\"", "]" ]
[ 26, 4 ]
[ 42, 34 ]
python
en
['en', 'error', 'th']
False
Mapbox.bearing
(self)
Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing). The 'bearing' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing). The 'bearing' property is a number and may be specified as: - An int or float
def bearing(self): """ Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing). The 'bearing' property is a number and may be specified as: - An int or float Returns ------- int|float """ return se...
[ "def", "bearing", "(", "self", ")", ":", "return", "self", "[", "\"bearing\"", "]" ]
[ 51, 4 ]
[ 63, 30 ]
python
en
['en', 'error', 'th']
False
Mapbox.center
(self)
The 'center' property is an instance of Center that may be specified as: - An instance of :class:`plotly.graph_objs.layout.mapbox.Center` - A dict of string/value properties that will be passed to the Center constructor Supported dict properties: ...
The 'center' property is an instance of Center that may be specified as: - An instance of :class:`plotly.graph_objs.layout.mapbox.Center` - A dict of string/value properties that will be passed to the Center constructor Supported dict properties: ...
def center(self): """ The 'center' property is an instance of Center that may be specified as: - An instance of :class:`plotly.graph_objs.layout.mapbox.Center` - A dict of string/value properties that will be passed to the Center constructor Suppo...
[ "def", "center", "(", "self", ")", ":", "return", "self", "[", "\"center\"", "]" ]
[ 72, 4 ]
[ 93, 29 ]
python
en
['en', 'error', 'th']
False
Mapbox.domain
(self)
The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.layout.mapbox.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.layout.mapbox.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.layout.mapbox.Domain` - A dict of string/value properties that will be passed to the Domain constructor Suppo...
[ "def", "domain", "(", "self", ")", ":", "return", "self", "[", "\"domain\"", "]" ]
[ 102, 4 ]
[ 130, 29 ]
python
en
['en', 'error', 'th']
False
Mapbox.layers
(self)
The 'layers' property is a tuple of instances of Layer that may be specified as: - A list or tuple of instances of plotly.graph_objs.layout.mapbox.Layer - A list or tuple of dicts of string/value properties that will be passed to the Layer constructor Su...
The 'layers' property is a tuple of instances of Layer that may be specified as: - A list or tuple of instances of plotly.graph_objs.layout.mapbox.Layer - A list or tuple of dicts of string/value properties that will be passed to the Layer constructor Su...
def layers(self): """ The 'layers' property is a tuple of instances of Layer that may be specified as: - A list or tuple of instances of plotly.graph_objs.layout.mapbox.Layer - A list or tuple of dicts of string/value properties that will be passed to the Layer co...
[ "def", "layers", "(", "self", ")", ":", "return", "self", "[", "\"layers\"", "]" ]
[ 139, 4 ]
[ 265, 29 ]
python
en
['en', 'error', 'th']
False
Mapbox.layerdefaults
(self)
When used in a template (as layout.template.layout.mapbox.layerdefaults), sets the default property values to use for elements of layout.mapbox.layers The 'layerdefaults' property is an instance of Layer that may be specified as: - An instance of :class:`plotly.gr...
When used in a template (as layout.template.layout.mapbox.layerdefaults), sets the default property values to use for elements of layout.mapbox.layers The 'layerdefaults' property is an instance of Layer that may be specified as: - An instance of :class:`plotly.gr...
def layerdefaults(self): """ When used in a template (as layout.template.layout.mapbox.layerdefaults), sets the default property values to use for elements of layout.mapbox.layers The 'layerdefaults' property is an instance of Layer that may be specified as: ...
[ "def", "layerdefaults", "(", "self", ")", ":", "return", "self", "[", "\"layerdefaults\"", "]" ]
[ 274, 4 ]
[ 292, 36 ]
python
en
['en', 'error', 'th']
False
Mapbox.pitch
(self)
Sets the pitch angle of the map (in degrees, where 0 means perpendicular to the surface of the map) (mapbox.pitch). The 'pitch' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the pitch angle of the map (in degrees, where 0 means perpendicular to the surface of the map) (mapbox.pitch). The 'pitch' property is a number and may be specified as: - An int or float
def pitch(self): """ Sets the pitch angle of the map (in degrees, where 0 means perpendicular to the surface of the map) (mapbox.pitch). The 'pitch' property is a number and may be specified as: - An int or float Returns ------- int|float "...
[ "def", "pitch", "(", "self", ")", ":", "return", "self", "[", "\"pitch\"", "]" ]
[ 301, 4 ]
[ 313, 28 ]
python
en
['en', 'error', 'th']
False
Mapbox.style
(self)
Defines the map layers that are rendered by default below the trace layers defined in `data`, which are themselves by default rendered below the layers defined in `layout.mapbox.layers`. These layers can be defined either explicitly as a Mapbox Style object which can contain mul...
Defines the map layers that are rendered by default below the trace layers defined in `data`, which are themselves by default rendered below the layers defined in `layout.mapbox.layers`. These layers can be defined either explicitly as a Mapbox Style object which can contain mul...
def style(self): """ Defines the map layers that are rendered by default below the trace layers defined in `data`, which are themselves by default rendered below the layers defined in `layout.mapbox.layers`. These layers can be defined either explicitly as a Mapbox Style ...
[ "def", "style", "(", "self", ")", ":", "return", "self", "[", "\"style\"", "]" ]
[ 322, 4 ]
[ 351, 28 ]
python
en
['en', 'error', 'th']
False
Mapbox.uirevision
(self)
Controls persistence of user-driven changes in the view: `center`, `zoom`, `bearing`, `pitch`. Defaults to `layout.uirevision`. The 'uirevision' property accepts values of any type Returns ------- Any
Controls persistence of user-driven changes in the view: `center`, `zoom`, `bearing`, `pitch`. Defaults to `layout.uirevision`. The 'uirevision' property accepts values of any type
def uirevision(self): """ Controls persistence of user-driven changes in the view: `center`, `zoom`, `bearing`, `pitch`. Defaults to `layout.uirevision`. The 'uirevision' property accepts values of any type Returns ------- Any """ ret...
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 360, 4 ]
[ 372, 33 ]
python
en
['en', 'error', 'th']
False
Mapbox.zoom
(self)
Sets the zoom level of the map (mapbox.zoom). The 'zoom' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the zoom level of the map (mapbox.zoom). The 'zoom' property is a number and may be specified as: - An int or float
def zoom(self): """ Sets the zoom level of the map (mapbox.zoom). The 'zoom' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["zoom"]
[ "def", "zoom", "(", "self", ")", ":", "return", "self", "[", "\"zoom\"", "]" ]
[ 381, 4 ]
[ 392, 27 ]
python
en
['en', 'error', 'th']
False
Mapbox.__init__
( self, arg=None, accesstoken=None, bearing=None, center=None, domain=None, layers=None, layerdefaults=None, pitch=None, style=None, uirevision=None, zoom=None, **kwargs )
Construct a new Mapbox object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.Mapbox` accesstoken Sets the mapbox access token to be used for this mapbox...
Construct a new Mapbox object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.Mapbox` accesstoken Sets the mapbox access token to be used for this mapbox...
def __init__( self, arg=None, accesstoken=None, bearing=None, center=None, domain=None, layers=None, layerdefaults=None, pitch=None, style=None, uirevision=None, zoom=None, **kwargs ): """ Constru...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "accesstoken", "=", "None", ",", "bearing", "=", "None", ",", "center", "=", "None", ",", "domain", "=", "None", ",", "layers", "=", "None", ",", "layerdefaults", "=", "None", ",", "pitch"...
[ 466, 4 ]
[ 631, 34 ]
python
en
['en', 'error', 'th']
False
Font.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Font.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Font.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf]
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 103, 4 ]
[ 112, 27 ]
python
en
['en', 'error', 'th']
False
Font.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Font object Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. Parameters ---------- arg dict of properties compatible with this constructor or an inst...
Construct a new Font object Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute.
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Font object Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. Parameters ---------- arg...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Font", ",", "self", ")", ".", "__init__", "(", "\"font\"",...
[ 143, 4 ]
[ 227, 34 ]
python
en
['en', 'error', 'th']
False
Title.font
(self)
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 instance of :class:`plotly.graph_objs.layout.yaxis.title.Font` - A...
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 instance of :class:`plotly.graph_objs.layout.yaxis.title.Font` - A...
def font(self): """ 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 instance of :class:`plotly.graph_objs.layout.yaxi...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 15, 4 ]
[ 53, 27 ]
python
en
['en', 'error', 'th']
False
Title.standoff
(self)
Sets the standoff distance (in px) between the axis labels and the title text The default value is a function of the axis tick labels, the title `font.size` and the axis `linewidth`. Note that the axis title position is always constrained within the margins, so the actual stando...
Sets the standoff distance (in px) between the axis labels and the title text The default value is a function of the axis tick labels, the title `font.size` and the axis `linewidth`. Note that the axis title position is always constrained within the margins, so the actual stando...
def standoff(self): """ Sets the standoff distance (in px) between the axis labels and the title text The default value is a function of the axis tick labels, the title `font.size` and the axis `linewidth`. Note that the axis title position is always constrained within the ...
[ "def", "standoff", "(", "self", ")", ":", "return", "self", "[", "\"standoff\"", "]" ]
[ 62, 4 ]
[ 80, 31 ]
python
en
['en', 'error', 'th']
False
Title.text
(self)
Sets the title of this axis. 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 numb...
Sets the title of this axis. 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 numb...
def text(self): """ Sets the title of this axis. 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\"", "]" ]
[ 89, 4 ]
[ 103, 27 ]
python
en
['en', 'error', 'th']
False
Title.__init__
(self, arg=None, font=None, standoff=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.yaxis.Title` font Sets this axis' title font. Note that the titl...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.yaxis.Title` font Sets this axis' title font. Note that the titl...
def __init__(self, arg=None, font=None, standoff=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.lay...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "standoff", "=", "None", ",", "text", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Title", ",", "self", ")", ".", "__init__", "(", "\"title\...
[ 135, 4 ]
[ 217, 34 ]
python
en
['en', 'error', 'th']
False
namespace_file
(fpath, package)
Adds / replaces package name. Simple regex parsing, may use https://github.com/ph4r05/plyprotobuf later
Adds / replaces package name. Simple regex parsing, may use https://github.com/ph4r05/plyprotobuf later
def namespace_file(fpath, package): """Adds / replaces package name. Simple regex parsing, may use https://github.com/ph4r05/plyprotobuf later""" with open(fpath) as fh: fdata = fh.read() re_syntax = re.compile(r"^syntax\s*=") re_package = re.compile(r"^package\s+([^;]+?)\s*;\s*$") lines = ...
[ "def", "namespace_file", "(", "fpath", ",", "package", ")", ":", "with", "open", "(", "fpath", ")", "as", "fh", ":", "fdata", "=", "fh", ".", "read", "(", ")", "re_syntax", "=", "re", ".", "compile", "(", "r\"^syntax\\s*=\"", ")", "re_package", "=", ...
[ 51, 0 ]
[ 84, 19 ]
python
en
['en', 'en', 'en']
True
protoc
(files, out_dir, additional_includes=(), package=None, force=False)
Compile code with protoc and return the data.
Compile code with protoc and return the data.
def protoc(files, out_dir, additional_includes=(), package=None, force=False): """Compile code with protoc and return the data.""" include_dirs = set() include_dirs.add(PROTOC_INCLUDE) if additional_includes: include_dirs.update(additional_includes) with TemporaryDirectory() as tmpdir_prot...
[ "def", "protoc", "(", "files", ",", "out_dir", ",", "additional_includes", "=", "(", ")", ",", "package", "=", "None", ",", "force", "=", "False", ")", ":", "include_dirs", "=", "set", "(", ")", "include_dirs", ".", "add", "(", "PROTOC_INCLUDE", ")", "...
[ 87, 0 ]
[ 126, 56 ]
python
en
['en', 'en', 'en']
True
strip_leader
(s, prefix)
Remove given prefix from underscored name.
Remove given prefix from underscored name.
def strip_leader(s, prefix): """Remove given prefix from underscored name.""" leader = prefix + "_" if s.startswith(leader): return s[len(leader) :] else: return s
[ "def", "strip_leader", "(", "s", ",", "prefix", ")", ":", "leader", "=", "prefix", "+", "\"_\"", "if", "s", ".", "startswith", "(", "leader", ")", ":", "return", "s", "[", "len", "(", "leader", ")", ":", "]", "else", ":", "return", "s" ]
[ 165, 0 ]
[ 171, 16 ]
python
en
['en', 'en', 'en']
True
Marker.color
(self)
Sets the marker color of selected points. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%...
Sets the marker color of selected points. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%...
def color(self): """ Sets the marker color of selected points. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/h...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Marker.opacity
(self)
Sets the marker opacity of selected points. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the marker opacity of selected points. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1]
def opacity(self): """ Sets the marker opacity of selected points. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ return self["opacity"]
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 74, 4 ]
[ 85, 30 ]
python
en
['en', 'error', 'th']
False
Marker.size
(self)
Sets the marker size of selected points. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the marker size of selected points. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf]
def size(self): """ Sets the marker size of selected points. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 94, 4 ]
[ 105, 27 ]
python
en
['en', 'error', 'th']
False
Marker.__init__
(self, arg=None, color=None, opacity=None, size=None, **kwargs)
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox. selected.Marker` color Sets the marker color of selecte...
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox. selected.Marker` color Sets the marker color of selecte...
def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox....
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "opacity", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Marker", ",", "self", ")", ".", "__init__", "(", "\"marke...
[ 124, 4 ]
[ 193, 34 ]
python
en
['en', 'error', 'th']
False
TestUtils.test_report_render
(self)
Test rendering of nice reports.
Test rendering of nice reports.
def test_report_render(self): """ Test rendering of nice reports. """ report_s = nice_report({'foo': 3}) assert "foo" in report_s assert "3" in report_s assert nice_report({}) == ""
[ "def", "test_report_render", "(", "self", ")", ":", "report_s", "=", "nice_report", "(", "{", "'foo'", ":", "3", "}", ")", "assert", "\"foo\"", "in", "report_s", "assert", "\"3\"", "in", "report_s", "assert", "nice_report", "(", "{", "}", ")", "==", "\"\...
[ 16, 4 ]
[ 23, 36 ]
python
en
['en', 'error', 'th']
False
SetEnvVar
(env_var, value)
Sets an environment variable to a given value; unsets it when the given value is None.
Sets an environment variable to a given value; unsets it when the given value is None.
def SetEnvVar(env_var, value): """Sets an environment variable to a given value; unsets it when the given value is None. """ env_var = env_var.upper() if value is not None: os.environ[env_var] = value elif env_var in os.environ: del os.environ[env_var]
[ "def", "SetEnvVar", "(", "env_var", ",", "value", ")", ":", "env_var", "=", "env_var", ".", "upper", "(", ")", "if", "value", "is", "not", "None", ":", "os", ".", "environ", "[", "env_var", "]", "=", "value", "elif", "env_var", "in", "os", ".", "en...
[ 57, 0 ]
[ 66, 27 ]
python
en
['en', 'en', 'en']
True
Run
(command)
Runs a command; returns True/False if its exit code is/isn't 0.
Runs a command; returns True/False if its exit code is/isn't 0.
def Run(command): """Runs a command; returns True/False if its exit code is/isn't 0.""" print('Running "%s". . .' % ' '.join(command)) p = gtest_test_utils.Subprocess(command) return p.exited and p.exit_code == 0
[ "def", "Run", "(", "command", ")", ":", "print", "(", "'Running \"%s\". . .'", "%", "' '", ".", "join", "(", "command", ")", ")", "p", "=", "gtest_test_utils", ".", "Subprocess", "(", "command", ")", "return", "p", ".", "exited", "and", "p", ".", "exit...
[ 69, 0 ]
[ 74, 38 ]
python
en
['en', 'ca', 'en']
True
ThrowOnFailureTest.RunAndVerify
(self, env_var_value, flag_value, should_fail)
Runs gtest_throw_on_failure_test_ and verifies that it does (or does not) exit with a non-zero code. Args: env_var_value: value of the GTEST_BREAK_ON_FAILURE environment variable; None if the variable should be unset. flag_value: value of the --gtest_break_on_failur...
Runs gtest_throw_on_failure_test_ and verifies that it does (or does not) exit with a non-zero code.
def RunAndVerify(self, env_var_value, flag_value, should_fail): """Runs gtest_throw_on_failure_test_ and verifies that it does (or does not) exit with a non-zero code. Args: env_var_value: value of the GTEST_BREAK_ON_FAILURE environment variable; None if the variable should...
[ "def", "RunAndVerify", "(", "self", ",", "env_var_value", ",", "flag_value", ",", "should_fail", ")", ":", "SetEnvVar", "(", "THROW_ON_FAILURE", ",", "env_var_value", ")", "if", "env_var_value", "is", "None", ":", "env_var_value_msg", "=", "' is not set'", "else",...
[ 82, 2 ]
[ 125, 44 ]
python
en
['en', 'en', 'en']
True
ThrowOnFailureTest.testDefaultBehavior
(self)
Tests the behavior of the default mode.
Tests the behavior of the default mode.
def testDefaultBehavior(self): """Tests the behavior of the default mode.""" self.RunAndVerify(env_var_value=None, flag_value=None, should_fail=False)
[ "def", "testDefaultBehavior", "(", "self", ")", ":", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "None", ",", "flag_value", "=", "None", ",", "should_fail", "=", "False", ")" ]
[ 127, 2 ]
[ 130, 77 ]
python
en
['en', 'en', 'en']
True
ThrowOnFailureTest.testThrowOnFailureEnvVar
(self)
Tests using the GTEST_THROW_ON_FAILURE environment variable.
Tests using the GTEST_THROW_ON_FAILURE environment variable.
def testThrowOnFailureEnvVar(self): """Tests using the GTEST_THROW_ON_FAILURE environment variable.""" self.RunAndVerify(env_var_value='0', flag_value=None, should_fail=False) self.RunAndVerify(env_var_value='1', flag_value=None, ...
[ "def", "testThrowOnFailureEnvVar", "(", "self", ")", ":", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "'0'", ",", "flag_value", "=", "None", ",", "should_fail", "=", "False", ")", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "'1'", ","...
[ 132, 2 ]
[ 140, 39 ]
python
en
['en', 'en', 'en']
True
ThrowOnFailureTest.testThrowOnFailureFlag
(self)
Tests using the --gtest_throw_on_failure flag.
Tests using the --gtest_throw_on_failure flag.
def testThrowOnFailureFlag(self): """Tests using the --gtest_throw_on_failure flag.""" self.RunAndVerify(env_var_value=None, flag_value='0', should_fail=False) self.RunAndVerify(env_var_value=None, flag_value='1', shoul...
[ "def", "testThrowOnFailureFlag", "(", "self", ")", ":", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "None", ",", "flag_value", "=", "'0'", ",", "should_fail", "=", "False", ")", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "None", ",",...
[ 142, 2 ]
[ 150, 39 ]
python
en
['en', 'en', 'en']
True
ThrowOnFailureTest.testThrowOnFailureFlagOverridesEnvVar
(self)
Tests that --gtest_throw_on_failure overrides GTEST_THROW_ON_FAILURE.
Tests that --gtest_throw_on_failure overrides GTEST_THROW_ON_FAILURE.
def testThrowOnFailureFlagOverridesEnvVar(self): """Tests that --gtest_throw_on_failure overrides GTEST_THROW_ON_FAILURE.""" self.RunAndVerify(env_var_value='0', flag_value='0', should_fail=False) self.RunAndVerify(env_var_value='0', flag_va...
[ "def", "testThrowOnFailureFlagOverridesEnvVar", "(", "self", ")", ":", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "'0'", ",", "flag_value", "=", "'0'", ",", "should_fail", "=", "False", ")", "self", ".", "RunAndVerify", "(", "env_var_value", "=", ...
[ 152, 2 ]
[ 166, 39 ]
python
en
['en', 'en', 'en']
True
HeaderPreamble
(n)
Returns the preamble for the header file. Args: n: the maximum arity of the predicate macros to be generated.
Returns the preamble for the header file.
def HeaderPreamble(n): """Returns the preamble for the header file. Args: n: the maximum arity of the predicate macros to be generated. """ # A map that defines the values used in the preamble template. DEFS = { 'today' : time.strftime('%m/%d/%Y'), 'year' : time.strftime('%Y'), 'command' : ...
[ "def", "HeaderPreamble", "(", "n", ")", ":", "# A map that defines the values used in the preamble template.", "DEFS", "=", "{", "'today'", ":", "time", ".", "strftime", "(", "'%m/%d/%Y'", ")", ",", "'year'", ":", "time", ".", "strftime", "(", "'%Y'", ")", ",", ...
[ 64, 0 ]
[ 160, 11 ]
python
en
['en', 'en', 'en']
True
Arity
(n)
Returns the English name of the given arity.
Returns the English name of the given arity.
def Arity(n): """Returns the English name of the given arity.""" if n < 0: return None elif n <= 3: return ['nullary', 'unary', 'binary', 'ternary'][n] else: return '%s-ary' % n
[ "def", "Arity", "(", "n", ")", ":", "if", "n", "<", "0", ":", "return", "None", "elif", "n", "<=", "3", ":", "return", "[", "'nullary'", ",", "'unary'", ",", "'binary'", ",", "'ternary'", "]", "[", "n", "]", "else", ":", "return", "'%s-ary'", "%"...
[ 163, 0 ]
[ 171, 23 ]
python
en
['en', 'en', 'en']
True
Title
(word)
Returns the given word in title case. The difference between this and string's title() method is that Title('4-ary') is '4-ary' while '4-ary'.title() is '4-Ary'.
Returns the given word in title case. The difference between this and string's title() method is that Title('4-ary') is '4-ary' while '4-ary'.title() is '4-Ary'.
def Title(word): """Returns the given word in title case. The difference between this and string's title() method is that Title('4-ary') is '4-ary' while '4-ary'.title() is '4-Ary'.""" return word[0].upper() + word[1:]
[ "def", "Title", "(", "word", ")", ":", "return", "word", "[", "0", "]", ".", "upper", "(", ")", "+", "word", "[", "1", ":", "]" ]
[ 174, 0 ]
[ 179, 35 ]
python
en
['en', 'en', 'en']
True
OneTo
(n)
Returns the list [1, 2, 3, ..., n].
Returns the list [1, 2, 3, ..., n].
def OneTo(n): """Returns the list [1, 2, 3, ..., n].""" return range(1, n + 1)
[ "def", "OneTo", "(", "n", ")", ":", "return", "range", "(", "1", ",", "n", "+", "1", ")" ]
[ 182, 0 ]
[ 185, 24 ]
python
en
['en', 'be', 'en']
True
Iter
(n, format, sep='')
Given a positive integer n, a format string that contains 0 or more '%s' format specs, and optionally a separator string, returns the join of n strings, each formatted with the format string on an iterator ranged from 1 to n. Example: Iter(3, 'v%s', sep=', ') returns 'v1, v2, v3'.
Given a positive integer n, a format string that contains 0 or more '%s' format specs, and optionally a separator string, returns the join of n strings, each formatted with the format string on an iterator ranged from 1 to n.
def Iter(n, format, sep=''): """Given a positive integer n, a format string that contains 0 or more '%s' format specs, and optionally a separator string, returns the join of n strings, each formatted with the format string on an iterator ranged from 1 to n. Example: Iter(3, 'v%s', sep=', ') returns 'v1, v...
[ "def", "Iter", "(", "n", ",", "format", ",", "sep", "=", "''", ")", ":", "# How many '%s' specs are in format?", "spec_count", "=", "len", "(", "format", ".", "split", "(", "'%s'", ")", ")", "-", "1", "return", "sep", ".", "join", "(", "[", "format", ...
[ 188, 0 ]
[ 201, 67 ]
python
en
['en', 'en', 'en']
True
ImplementationForArity
(n)
Returns the implementation of n-ary predicate assertions.
Returns the implementation of n-ary predicate assertions.
def ImplementationForArity(n): """Returns the implementation of n-ary predicate assertions.""" # A map the defines the values used in the implementation template. DEFS = { 'n' : str(n), 'vs' : Iter(n, 'v%s', sep=', '), 'vts' : Iter(n, '#v%s', sep=', '), 'arity' : Arity(n), 'Arity' : Title(Ari...
[ "def", "ImplementationForArity", "(", "n", ")", ":", "# A map the defines the values used in the implementation template.", "DEFS", "=", "{", "'n'", ":", "str", "(", "n", ")", ",", "'vs'", ":", "Iter", "(", "n", ",", "'v%s'", ",", "sep", "=", "', '", ")", ",...
[ 204, 0 ]
[ 289, 13 ]
python
en
['en', 'en', 'en']
True
HeaderPostamble
()
Returns the postamble for the header file.
Returns the postamble for the header file.
def HeaderPostamble(): """Returns the postamble for the header file.""" return """ #endif // GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_ """
[ "def", "HeaderPostamble", "(", ")", ":", "return", "\"\"\"\n\n#endif // GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_\n\"\"\"" ]
[ 292, 0 ]
[ 298, 3 ]
python
en
['en', 'en', 'en']
True
GenerateFile
(path, content)
Given a file path and a content string, overwrites it with the given content.
Given a file path and a content string, overwrites it with the given content.
def GenerateFile(path, content): """Given a file path and a content string, overwrites it with the given content.""" print 'Updating file %s . . .' % path f = file(path, 'w+') print >>f, content, f.close() print 'File %s has been updated.' % path
[ "def", "GenerateFile", "(", "path", ",", "content", ")", ":", "print", "'Updating file %s . . .'", "%", "path", "f", "=", "file", "(", "path", ",", "'w+'", ")", "print", ">>", "f", ",", "content", ",", "f", ".", "close", "(", ")", "print", "'File %s ha...
[ 301, 0 ]
[ 311, 42 ]
python
en
['en', 'en', 'en']
True
GenerateHeader
(n)
Given the maximum arity n, updates the header file that implements the predicate assertions.
Given the maximum arity n, updates the header file that implements the predicate assertions.
def GenerateHeader(n): """Given the maximum arity n, updates the header file that implements the predicate assertions.""" GenerateFile(HEADER, HeaderPreamble(n) + ''.join([ImplementationForArity(i) for i in OneTo(n)]) + HeaderPostamble())
[ "def", "GenerateHeader", "(", "n", ")", ":", "GenerateFile", "(", "HEADER", ",", "HeaderPreamble", "(", "n", ")", "+", "''", ".", "join", "(", "[", "ImplementationForArity", "(", "i", ")", "for", "i", "in", "OneTo", "(", "n", ")", "]", ")", "+", "H...
[ 314, 0 ]
[ 321, 35 ]
python
en
['en', 'en', 'en']
True
UnitTestPreamble
()
Returns the preamble for the unit test file.
Returns the preamble for the unit test file.
def UnitTestPreamble(): """Returns the preamble for the unit test file.""" # A map that defines the values used in the preamble template. DEFS = { 'today' : time.strftime('%m/%d/%Y'), 'year' : time.strftime('%Y'), 'command' : '%s %s' % (os.path.basename(sys.argv[0]), sys.argv[1]), } return ( "...
[ "def", "UnitTestPreamble", "(", ")", ":", "# A map that defines the values used in the preamble template.", "DEFS", "=", "{", "'today'", ":", "time", ".", "strftime", "(", "'%m/%d/%Y'", ")", ",", "'year'", ":", "time", ".", "strftime", "(", "'%Y'", ")", ",", "'c...
[ 324, 0 ]
[ 407, 11 ]
python
en
['en', 'en', 'en']
True
TestsForArity
(n)
Returns the tests for n-ary predicate assertions.
Returns the tests for n-ary predicate assertions.
def TestsForArity(n): """Returns the tests for n-ary predicate assertions.""" # A map that defines the values used in the template for the tests. DEFS = { 'n' : n, 'es' : Iter(n, 'e%s', sep=', '), 'vs' : Iter(n, 'v%s', sep=', '), 'vts' : Iter(n, '#v%s', sep=', '), 'tvs' : Iter(n, 'T%s v%s', s...
[ "def", "TestsForArity", "(", "n", ")", ":", "# A map that defines the values used in the template for the tests.", "DEFS", "=", "{", "'n'", ":", "n", ",", "'es'", ":", "Iter", "(", "n", ",", "'e%s'", ",", "sep", "=", "', '", ")", ",", "'vs'", ":", "Iter", ...
[ 410, 0 ]
[ 696, 14 ]
python
en
['en', 'en', 'en']
True
UnitTestPostamble
()
Returns the postamble for the tests.
Returns the postamble for the tests.
def UnitTestPostamble(): """Returns the postamble for the tests.""" return ''
[ "def", "UnitTestPostamble", "(", ")", ":", "return", "''" ]
[ 699, 0 ]
[ 702, 11 ]
python
en
['en', 'en', 'en']
True
GenerateUnitTest
(n)
Returns the tests for up-to n-ary predicate assertions.
Returns the tests for up-to n-ary predicate assertions.
def GenerateUnitTest(n): """Returns the tests for up-to n-ary predicate assertions.""" GenerateFile(UNIT_TEST, UnitTestPreamble() + ''.join([TestsForArity(i) for i in OneTo(n)]) + UnitTestPostamble())
[ "def", "GenerateUnitTest", "(", "n", ")", ":", "GenerateFile", "(", "UNIT_TEST", ",", "UnitTestPreamble", "(", ")", "+", "''", ".", "join", "(", "[", "TestsForArity", "(", "i", ")", "for", "i", "in", "OneTo", "(", "n", ")", "]", ")", "+", "UnitTestPo...
[ 705, 0 ]
[ 711, 37 ]
python
en
['en', 'en', 'en']
True
_Main
()
The entry point of the script. Generates the header file and its unit test.
The entry point of the script. Generates the header file and its unit test.
def _Main(): """The entry point of the script. Generates the header file and its unit test.""" if len(sys.argv) != 2: print __doc__ print 'Author: ' + __author__ sys.exit(1) n = int(sys.argv[1]) GenerateHeader(n) GenerateUnitTest(n)
[ "def", "_Main", "(", ")", ":", "if", "len", "(", "sys", ".", "argv", ")", "!=", "2", ":", "print", "__doc__", "print", "'Author: '", "+", "__author__", "sys", ".", "exit", "(", "1", ")", "n", "=", "int", "(", "sys", ".", "argv", "[", "1", "]", ...
[ 714, 0 ]
[ 725, 21 ]
python
en
['en', 'en', 'en']
True
Hoverlabel.align
(self)
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
def align(self): """ Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeratio...
[ "def", "align", "(", "self", ")", ":", "return", "self", "[", "\"align\"", "]" ]
[ 25, 4 ]
[ 40, 28 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.alignsrc
(self)
Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def alignsrc(self): """ Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["alignsrc"]
[ "def", "alignsrc", "(", "self", ")", ":", "return", "self", "[", "\"alignsrc\"", "]" ]
[ 49, 4 ]
[ 60, 31 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolor
(self)
Sets the background color of the hover labels for this trace The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
Sets the background color of the hover labels for this trace The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
def bgcolor(self): """ Sets the background color of the hover labels for this trace The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 69, 4 ]
[ 120, 30 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bgcolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bgcolorsrc"]
[ "def", "bgcolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bgcolorsrc\"", "]" ]
[ 129, 4 ]
[ 140, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolor
(self)
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva st...
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva st...
def bordercolor(self): """ Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 149, 4 ]
[ 200, 34 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bordercolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bo...
[ "def", "bordercolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bordercolorsrc\"", "]" ]
[ 209, 4 ]
[ 221, 37 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.font
(self)
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.streamtube.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.streamtube.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
def font(self): """ Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.streamtube.hoverlabel.Font` - A dict of string/value properties that will be passed ...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 230, 4 ]
[ 277, 27 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelength
(self)
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
def namelength(self): """ Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than ...
[ "def", "namelength", "(", "self", ")", ":", "return", "self", "[", "\"namelength\"", "]" ]
[ 286, 4 ]
[ 304, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelengthsrc
(self)
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def namelengthsrc(self): """ Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["name...
[ "def", "namelengthsrc", "(", "self", ")", ":", "return", "self", "[", "\"namelengthsrc\"", "]" ]
[ 313, 4 ]
[ 325, 36 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.__init__
( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs )
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.streamtube.Hoverlabel` align Sets the horizontal alignment of the ...
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.streamtube.Hoverlabel` align Sets the horizontal alignment of the ...
def __init__( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs ): """ Construct a n...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "align", "=", "None", ",", "alignsrc", "=", "None", ",", "bgcolor", "=", "None", ",", "bgcolorsrc", "=", "None", ",", "bordercolor", "=", "None", ",", "bordercolorsrc", "=", "None", ",", "...
[ 370, 4 ]
[ 502, 34 ]
python
en
['en', 'error', 'th']
False