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
ConnectionRecord.retrieve_request
(self, context: InjectionContext)
Retrieve the related connection invitation. Args: context: The injection context to use
Retrieve the related connection invitation.
async def retrieve_request(self, context: InjectionContext) -> ConnectionRequest: """Retrieve the related connection invitation. Args: context: The injection context to use """ assert self.connection_id storage: BaseStorage = await context.inject(BaseStorage) ...
[ "async", "def", "retrieve_request", "(", "self", ",", "context", ":", "InjectionContext", ")", "->", "ConnectionRequest", ":", "assert", "self", ".", "connection_id", "storage", ":", "BaseStorage", "=", "await", "context", ".", "inject", "(", "BaseStorage", ")",...
[ 231, 4 ]
[ 242, 56 ]
python
en
['en', 'en', 'en']
True
ConnectionRecord.is_ready
(self)
Accessor for connection readiness.
Accessor for connection readiness.
def is_ready(self) -> str: """Accessor for connection readiness.""" return self.state == self.STATE_ACTIVE or self.state == self.STATE_RESPONSE
[ "def", "is_ready", "(", "self", ")", "->", "str", ":", "return", "self", ".", "state", "==", "self", ".", "STATE_ACTIVE", "or", "self", ".", "state", "==", "self", ".", "STATE_RESPONSE" ]
[ 245, 4 ]
[ 247, 83 ]
python
en
['da', 'en', 'en']
True
ConnectionRecord.is_multiuse_invitation
(self)
Accessor for multi use invitation mode.
Accessor for multi use invitation mode.
def is_multiuse_invitation(self) -> bool: """Accessor for multi use invitation mode.""" return self.invitation_mode == self.INVITATION_MODE_MULTI
[ "def", "is_multiuse_invitation", "(", "self", ")", "->", "bool", ":", "return", "self", ".", "invitation_mode", "==", "self", ".", "INVITATION_MODE_MULTI" ]
[ 250, 4 ]
[ 252, 65 ]
python
da
['da', 'it', 'en']
False
ConnectionRecord.post_save
(self, context: InjectionContext, *args, **kwargs)
Perform post-save actions. Args: context: The injection context to use
Perform post-save actions.
async def post_save(self, context: InjectionContext, *args, **kwargs): """Perform post-save actions. Args: context: The injection context to use """ await super().post_save(context, *args, **kwargs) # clear cache key set by connection manager cache_key = sel...
[ "async", "def", "post_save", "(", "self", ",", "context", ":", "InjectionContext", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "await", "super", "(", ")", ".", "post_save", "(", "context", ",", "*", "args", ",", "*", "*", "kwargs", ")", "#...
[ 254, 4 ]
[ 264, 55 ]
python
en
['en', 'en', 'en']
True
get_shape
(tensor)
Returns static shape if available and dynamic shape otherwise.
Returns static shape if available and dynamic shape otherwise.
def get_shape(tensor): """Returns static shape if available and dynamic shape otherwise.""" static_shape = tensor.shape.as_list() dynamic_shape = tf.unstack(tf.shape(tensor)) dims = [s[1] if s[0] is None else s[0] for s in zip(static_shape, dynamic_shape)] return dims
[ "def", "get_shape", "(", "tensor", ")", ":", "static_shape", "=", "tensor", ".", "shape", ".", "as_list", "(", ")", "dynamic_shape", "=", "tf", ".", "unstack", "(", "tf", ".", "shape", "(", "tensor", ")", ")", "dims", "=", "[", "s", "[", "1", "]", ...
[ 31, 0 ]
[ 37, 15 ]
python
en
['en', 'en', 'en']
True
batch_gather
(tensor, indices)
Gather in batch from a tensor of arbitrary size. In pseduocode this module will produce the following: output[i] = tf.gather(tensor[i], indices[i]) Args: tensor: Tensor of arbitrary size. indices: Vector of indices. Returns: output: A tensor of gathered values.
Gather in batch from a tensor of arbitrary size.
def batch_gather(tensor, indices): """Gather in batch from a tensor of arbitrary size. In pseduocode this module will produce the following: output[i] = tf.gather(tensor[i], indices[i]) Args: tensor: Tensor of arbitrary size. indices: Vector of indices. Returns: output: A tensor ...
[ "def", "batch_gather", "(", "tensor", ",", "indices", ")", ":", "shape", "=", "get_shape", "(", "tensor", ")", "flat_first", "=", "tf", ".", "reshape", "(", "tensor", ",", "[", "shape", "[", "0", "]", "*", "shape", "[", "1", "]", "]", "+", "shape",...
[ 40, 0 ]
[ 58, 17 ]
python
en
['en', 'en', 'en']
True
rnn_beam_search
(update_funs, initial_states, sequence_length, beam_size, len_normalization=None, temperature=None, parallel_iterations=16, swap_memory=True)
:param update_funs: function to compute the next state and logits given the current state and previous ids :param initial_states: recurrent model states :param sequence_length: maximum output length :param beam_size: beam size :param len_normalization: length normalization coefficient (0 or None fo...
:param update_funs: function to compute the next state and logits given the current state and previous ids :param initial_states: recurrent model states :param sequence_length: maximum output length :param beam_size: beam size :param len_normalization: length normalization coefficient (0 or None fo...
def rnn_beam_search(update_funs, initial_states, sequence_length, beam_size, len_normalization=None, temperature=None, parallel_iterations=16, swap_memory=True): """ :param update_funs: function to compute the next state and logits given the current state and previous ids :param initial_...
[ "def", "rnn_beam_search", "(", "update_funs", ",", "initial_states", ",", "sequence_length", ",", "beam_size", ",", "len_normalization", "=", "None", ",", "temperature", "=", "None", ",", "parallel_iterations", "=", "16", ",", "swap_memory", "=", "True", ")", ":...
[ 145, 0 ]
[ 247, 29 ]
python
en
['en', 'error', 'th']
False
to_tensor
(data)
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`Sequence`, :class:`int` and :class:`float`. Args: data (torch.Tensor | numpy.ndarray | Sequence | int | float): Data to be converted.
Convert objects of various python types to :obj:`torch.Tensor`.
def to_tensor(data): """Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`Sequence`, :class:`int` and :class:`float`. Args: data (torch.Tensor | numpy.ndarray | Sequence | int | float): Data to ...
[ "def", "to_tensor", "(", "data", ")", ":", "if", "isinstance", "(", "data", ",", "torch", ".", "Tensor", ")", ":", "return", "data", "elif", "isinstance", "(", "data", ",", "np", ".", "ndarray", ")", ":", "return", "torch", ".", "from_numpy", "(", "d...
[ 10, 0 ]
[ 32, 76 ]
python
en
['en', 'en', 'en']
True
ContentsHandler.__init__
(self, obj)
Sets up the contents handler. Args: obj (Object): The object on which the handler is defined
Sets up the contents handler.
def __init__(self, obj): """ Sets up the contents handler. Args: obj (Object): The object on which the handler is defined """ self.obj = obj self._pkcache = {} self._idcache = obj.__class__.__instance_cache__ self.init()
[ "def", "__init__", "(", "self", ",", "obj", ")", ":", "self", ".", "obj", "=", "obj", "self", ".", "_pkcache", "=", "{", "}", "self", ".", "_idcache", "=", "obj", ".", "__class__", ".", "__instance_cache__", "self", ".", "init", "(", ")" ]
[ 36, 4 ]
[ 48, 19 ]
python
en
['en', 'error', 'th']
False
ContentsHandler.init
(self)
Re-initialize the content cache
Re-initialize the content cache
def init(self): """ Re-initialize the content cache """ self._pkcache.update(dict((obj.pk, None) for obj in ObjectDB.objects.filter(db_location=self.obj) if obj.pk))
[ "def", "init", "(", "self", ")", ":", "self", ".", "_pkcache", ".", "update", "(", "dict", "(", "(", "obj", ".", "pk", ",", "None", ")", "for", "obj", "in", "ObjectDB", ".", "objects", ".", "filter", "(", "db_location", "=", "self", ".", "obj", "...
[ 50, 4 ]
[ 55, 117 ]
python
en
['en', 'error', 'th']
False
ContentsHandler.get
(self, exclude=None)
Return the contents of the cache. Args: exclude (Object or list of Object): object(s) to ignore Returns: objects (list): the Objects inside this location
Return the contents of the cache.
def get(self, exclude=None): """ Return the contents of the cache. Args: exclude (Object or list of Object): object(s) to ignore Returns: objects (list): the Objects inside this location """ if exclude: pks = [pk for pk in self._pkca...
[ "def", "get", "(", "self", ",", "exclude", "=", "None", ")", ":", "if", "exclude", ":", "pks", "=", "[", "pk", "for", "pk", "in", "self", ".", "_pkcache", "if", "pk", "not", "in", "[", "excl", ".", "pk", "for", "excl", "in", "make_iter", "(", "...
[ 57, 4 ]
[ 83, 74 ]
python
en
['en', 'error', 'th']
False
ContentsHandler.add
(self, obj)
Add a new object to this location Args: obj (Object): object to add
Add a new object to this location
def add(self, obj): """ Add a new object to this location Args: obj (Object): object to add """ self._pkcache[obj.pk] = None
[ "def", "add", "(", "self", ",", "obj", ")", ":", "self", ".", "_pkcache", "[", "obj", ".", "pk", "]", "=", "None" ]
[ 85, 4 ]
[ 93, 36 ]
python
en
['en', 'error', 'th']
False
ContentsHandler.remove
(self, obj)
Remove object from this location Args: obj (Object): object to remove
Remove object from this location
def remove(self, obj): """ Remove object from this location Args: obj (Object): object to remove """ self._pkcache.pop(obj.pk, None)
[ "def", "remove", "(", "self", ",", "obj", ")", ":", "self", ".", "_pkcache", ".", "pop", "(", "obj", ".", "pk", ",", "None", ")" ]
[ 95, 4 ]
[ 103, 39 ]
python
en
['en', 'error', 'th']
False
ContentsHandler.clear
(self)
Clear the contents cache and re-initialize
Clear the contents cache and re-initialize
def clear(self): """ Clear the contents cache and re-initialize """ self._pkcache = {} self.init()
[ "def", "clear", "(", "self", ")", ":", "self", ".", "_pkcache", "=", "{", "}", "self", ".", "init", "(", ")" ]
[ 105, 4 ]
[ 111, 19 ]
python
en
['en', 'error', 'th']
False
ObjectDB.__location_get
(self)
Get location
Get location
def __location_get(self): """Get location""" return self.db_location
[ "def", "__location_get", "(", "self", ")", ":", "return", "self", ".", "db_location" ]
[ 227, 4 ]
[ 229, 31 ]
python
en
['fr', 'ja', 'en']
False
ObjectDB.__location_set
(self, location)
Set location, checking for loops and allowing dbref
Set location, checking for loops and allowing dbref
def __location_set(self, location): """Set location, checking for loops and allowing dbref""" if isinstance(location, (basestring, int)): # allow setting of #dbref dbid = dbref(location, reqhash=False) if dbid: try: location = Objec...
[ "def", "__location_set", "(", "self", ",", "location", ")", ":", "if", "isinstance", "(", "location", ",", "(", "basestring", ",", "int", ")", ")", ":", "# allow setting of #dbref", "dbid", "=", "dbref", "(", "location", ",", "reqhash", "=", "False", ")", ...
[ 231, 4 ]
[ 285, 14 ]
python
en
['en', 'en', 'en']
True
ObjectDB.__location_del
(self)
Cleanly delete the location reference
Cleanly delete the location reference
def __location_del(self): """Cleanly delete the location reference""" self.db_location = None self.save(update_fields=["db_location"])
[ "def", "__location_del", "(", "self", ")", ":", "self", ".", "db_location", "=", "None", "self", ".", "save", "(", "update_fields", "=", "[", "\"db_location\"", "]", ")" ]
[ 287, 4 ]
[ 290, 48 ]
python
en
['en', 'en', 'en']
True
ObjectDB.at_db_location_postsave
(self, new)
This is called automatically after the location field was saved, no matter how. It checks for a variable _safe_contents_update to know if the save was triggered via the location handler (which updates the contents cache) or not. Args: new (bool): Set if this...
This is called automatically after the location field was saved, no matter how. It checks for a variable _safe_contents_update to know if the save was triggered via the location handler (which updates the contents cache) or not.
def at_db_location_postsave(self, new): """ This is called automatically after the location field was saved, no matter how. It checks for a variable _safe_contents_update to know if the save was triggered via the location handler (which updates the contents cache) or not....
[ "def", "at_db_location_postsave", "(", "self", ",", "new", ")", ":", "if", "not", "hasattr", "(", "self", ",", "\"_safe_contents_update\"", ")", ":", "# changed/set outside of the location handler", "if", "new", ":", "# if new, there is no previous location to worry about",...
[ 293, 4 ]
[ 315, 94 ]
python
en
['en', 'error', 'th']
False
Z.opacity
(self)
Sets the projection color. 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 projection color. 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 projection color. 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\"", "]" ]
[ 15, 4 ]
[ 26, 30 ]
python
en
['en', 'error', 'th']
False
Z.scale
(self)
Sets the scale factor determining the size of the projection marker points. The 'scale' property is a number and may be specified as: - An int or float in the interval [0, 10] Returns ------- int|float
Sets the scale factor determining the size of the projection marker points. The 'scale' property is a number and may be specified as: - An int or float in the interval [0, 10]
def scale(self): """ Sets the scale factor determining the size of the projection marker points. The 'scale' property is a number and may be specified as: - An int or float in the interval [0, 10] Returns ------- int|float """ retur...
[ "def", "scale", "(", "self", ")", ":", "return", "self", "[", "\"scale\"", "]" ]
[ 35, 4 ]
[ 47, 28 ]
python
en
['en', 'error', 'th']
False
Z.show
(self)
Sets whether or not projections are shown along the z axis. The 'show' property must be specified as a bool (either True, or False) Returns ------- bool
Sets whether or not projections are shown along the z axis. The 'show' property must be specified as a bool (either True, or False)
def show(self): """ Sets whether or not projections are shown along the z axis. The 'show' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["show"]
[ "def", "show", "(", "self", ")", ":", "return", "self", "[", "\"show\"", "]" ]
[ 56, 4 ]
[ 67, 27 ]
python
en
['en', 'error', 'th']
False
Z.__init__
(self, arg=None, opacity=None, scale=None, show=None, **kwargs)
Construct a new Z object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.projection.Z` opacity Sets the projection color. scale ...
Construct a new Z object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.projection.Z` opacity Sets the projection color. scale ...
def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): """ Construct a new Z object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "opacity", "=", "None", ",", "scale", "=", "None", ",", "show", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Z", ",", "self", ")", ".", "__init__", "(", "\"z\"", ")...
[ 88, 4 ]
[ 159, 34 ]
python
en
['en', 'error', 'th']
False
InvitationHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Message handler implementation.
Message handler implementation.
async def handle(self, context: RequestContext, responder: BaseResponder): """Message handler implementation.""" self._logger.debug("InvitationHandler called with context %s", context) assert isinstance(context.message, Invitation) if not context.connection_ready: raise Hand...
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "\"InvitationHandler called with context %s\"", ",", "context", ")", "assert", "isinstance", ...
[ 16, 4 ]
[ 34, 13 ]
python
da
['da', 'da', 'en']
True
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.densitymapbox. colorbar.Tickformatstop` dtickrange range [*min...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.densitymapbox. colorbar.Tickformatstop` dtickrange range [*min...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
Tickfont.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
Tickfont.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
Tickfont.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
Tickfont.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox. marker.colorbar.Tickfont` ...
Construct a new Tickfont object Sets the color bar's tick label font
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an insta...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Tickfont", ",", "self", ")", ".", "__init__", "(", "\"tick...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
StorageRecord.__new__
(cls, type, value, tags: dict = None, id: str = None)
Initialize some defaults on record.
Initialize some defaults on record.
def __new__(cls, type, value, tags: dict = None, id: str = None): """Initialize some defaults on record.""" if not id: id = uuid4().hex if not tags: tags = {} return super(cls, StorageRecord).__new__(cls, type, value, tags, id)
[ "def", "__new__", "(", "cls", ",", "type", ",", "value", ",", "tags", ":", "dict", "=", "None", ",", "id", ":", "str", "=", "None", ")", ":", "if", "not", "id", ":", "id", "=", "uuid4", "(", ")", ".", "hex", "if", "not", "tags", ":", "tags", ...
[ 11, 4 ]
[ 17, 76 ]
python
en
['en', 'en', 'en']
True
TestArgParse.test_groups
(self)
Test optional argument parsing.
Test optional argument parsing.
async def test_groups(self): """Test optional argument parsing.""" parser = ArgumentParser() groups = ( g for g in argparse.group.get_registered() if g is not argparse.TransportGroup ) argparse.load_argument_groups(parser, *groups) pa...
[ "async", "def", "test_groups", "(", "self", ")", ":", "parser", "=", "ArgumentParser", "(", ")", "groups", "=", "(", "g", "for", "g", "in", "argparse", ".", "group", ".", "get_registered", "(", ")", "if", "g", "is", "not", "argparse", ".", "TransportGr...
[ 10, 4 ]
[ 21, 29 ]
python
en
['en', 'fr', 'en']
True
TestArgParse.test_transport_settings
(self)
Test required argument parsing.
Test required argument parsing.
async def test_transport_settings(self): """Test required argument parsing.""" parser = ArgumentParser() group = argparse.TransportGroup() group.add_arguments(parser) with async_mock.patch.object(parser, "exit") as exit_parser: parser.parse_args([]) exit...
[ "async", "def", "test_transport_settings", "(", "self", ")", ":", "parser", "=", "ArgumentParser", "(", ")", "group", "=", "argparse", ".", "TransportGroup", "(", ")", "group", ".", "add_arguments", "(", "parser", ")", "with", "async_mock", ".", "patch", "."...
[ 23, 4 ]
[ 60, 83 ]
python
en
['en', 'en', 'en']
True
create_object
(typeclass=None, key=None, location=None, home=None, permissions=None, locks=None, aliases=None, tags=None, destination=None, report_to=None, nohome=False, attributes=None, nattributes=None)
Create a new in-game object. Kwargs: typeclass (class or str): Class or python path to a typeclass. key (str): Name of the new object. If not set, a name of #dbref will be set. home (Object or str): Obj or #dbref to use as the object's home location. pe...
def create_object(typeclass=None, key=None, location=None, home=None, permissions=None, locks=None, aliases=None, tags=None, destination=None, report_to=None, nohome=False, attributes=None, nattributes=None): """ Create a new in-game object. Kwargs: ...
[ "def", "create_object", "(", "typeclass", "=", "None", ",", "key", "=", "None", ",", "location", "=", "None", ",", "home", "=", "None", ",", "permissions", "=", "None", ",", "locks", "=", "None", ",", "aliases", "=", "None", ",", "tags", "=", "None",...
[ 54, 0 ]
[ 137, 21 ]
python
en
['en', 'error', 'th']
False
create_script
(typeclass=None, key=None, obj=None, account=None, locks=None, interval=None, start_delay=None, repeats=None, persistent=None, autostart=True, report_to=None, desc=None, tags=None, attributes=None)
Create a new script. All scripts are a combination of a database object that communicates with the database, and an typeclass that 'decorates' the database object into being different types of scripts. It's behaviour is similar to the game objects except scripts has a time component and are more l...
Create a new script. All scripts are a combination of a database object that communicates with the database, and an typeclass that 'decorates' the database object into being different types of scripts. It's behaviour is similar to the game objects except scripts has a time component and are more l...
def create_script(typeclass=None, key=None, obj=None, account=None, locks=None, interval=None, start_delay=None, repeats=None, persistent=None, autostart=True, report_to=None, desc=None, tags=None, attributes=None): """ Create a new script. All scripts are a...
[ "def", "create_script", "(", "typeclass", "=", "None", ",", "key", "=", "None", ",", "obj", "=", "None", ",", "account", "=", "None", ",", "locks", "=", "None", ",", "interval", "=", "None", ",", "start_delay", "=", "None", ",", "repeats", "=", "None...
[ 147, 0 ]
[ 237, 21 ]
python
en
['en', 'error', 'th']
False
create_help_entry
(key, entrytext, category="General", locks=None, aliases=None)
Create a static help entry in the help database. Note that Command help entries are dynamic and directly taken from the __doc__ entries of the command. The database-stored help entries are intended for more general help on the game, more extensive info, in-game setting information and so on. A...
Create a static help entry in the help database. Note that Command help entries are dynamic and directly taken from the __doc__ entries of the command. The database-stored help entries are intended for more general help on the game, more extensive info, in-game setting information and so on.
def create_help_entry(key, entrytext, category="General", locks=None, aliases=None): """ Create a static help entry in the help database. Note that Command help entries are dynamic and directly taken from the __doc__ entries of the command. The database-stored help entries are intended for more gene...
[ "def", "create_help_entry", "(", "key", ",", "entrytext", ",", "category", "=", "\"General\"", ",", "locks", "=", "None", ",", "aliases", "=", "None", ")", ":", "global", "_HelpEntry", "if", "not", "_HelpEntry", ":", "from", "evennia", ".", "help", ".", ...
[ 248, 0 ]
[ 288, 19 ]
python
en
['en', 'error', 'th']
False
create_message
(senderobj, message, channels=None, receivers=None, locks=None, header=None)
Create a new communication Msg. Msgs represent a unit of database-persistent communication between entites. Args: senderobj (Object or Account): The entity sending the Msg. message (str): Text with the message. Eventual headers, titles etc should all be included in this text st...
Create a new communication Msg. Msgs represent a unit of database-persistent communication between entites.
def create_message(senderobj, message, channels=None, receivers=None, locks=None, header=None): """ Create a new communication Msg. Msgs represent a unit of database-persistent communication between entites. Args: senderobj (Object or Account): The entity sending the Msg. message (str):...
[ "def", "create_message", "(", "senderobj", ",", "message", ",", "channels", "=", "None", ",", "receivers", "=", "None", ",", "locks", "=", "None", ",", "header", "=", "None", ")", ":", "global", "_Msg", "if", "not", "_Msg", ":", "from", "evennia", ".",...
[ 298, 0 ]
[ 341, 22 ]
python
en
['en', 'error', 'th']
False
create_channel
(key, aliases=None, desc=None, locks=None, keep_log=True, typeclass=None)
Create A communication Channel. A Channel serves as a central hub for distributing Msgs to groups of people without specifying the receivers explicitly. Instead accounts may 'connect' to the channel and follow the flow of messages. By default the channel allows access to all old messages, but this ...
Create A communication Channel. A Channel serves as a central hub for distributing Msgs to groups of people without specifying the receivers explicitly. Instead accounts may 'connect' to the channel and follow the flow of messages. By default the channel allows access to all old messages, but this ...
def create_channel(key, aliases=None, desc=None, locks=None, keep_log=True, typeclass=None): """ Create A communication Channel. A Channel serves as a central hub for distributing Msgs to groups of people without specifying the receivers explicitly. Instead accounts...
[ "def", "create_channel", "(", "key", ",", "aliases", "=", "None", ",", "desc", "=", "None", ",", "locks", "=", "None", ",", "keep_log", "=", "True", ",", "typeclass", "=", "None", ")", ":", "typeclass", "=", "typeclass", "if", "typeclass", "else", "set...
[ 347, 0 ]
[ 389, 22 ]
python
en
['en', 'error', 'th']
False
create_account
(key, email, password, typeclass=None, is_superuser=False, locks=None, permissions=None, report_to=None)
This creates a new account. Args: key (str): The account's name. This should be unique. email (str): Email on valid addr@addr.domain form. This is technically required but if set to `None`, an email of `dummy@example.com` will be used as a placeholder. password ...
This creates a new account.
def create_account(key, email, password, typeclass=None, is_superuser=False, locks=None, permissions=None, report_to=None): """ This creates a new account. Args: key (str): The account's name. This should be unique. ...
[ "def", "create_account", "(", "key", ",", "email", ",", "password", ",", "typeclass", "=", "None", ",", "is_superuser", "=", "False", ",", "locks", "=", "None", ",", "permissions", "=", "None", ",", "report_to", "=", "None", ")", ":", "global", "_Account...
[ 400, 0 ]
[ 469, 22 ]
python
en
['en', 'error', 'th']
False
get_nq_tokens
(simplified_nq_example)
Returns list of blank separated tokens.
Returns list of blank separated tokens.
def get_nq_tokens(simplified_nq_example): """ Returns list of blank separated tokens. """ if "document_text" not in simplified_nq_example: raise ValueError( "`get_nq_tokens` should be called on a simplified NQ" "example that contains the `document_text` field." )...
[ "def", "get_nq_tokens", "(", "simplified_nq_example", ")", ":", "if", "\"document_text\"", "not", "in", "simplified_nq_example", ":", "raise", "ValueError", "(", "\"`get_nq_tokens` should be called on a simplified NQ\"", "\"example that contains the `document_text` field.\"", ")", ...
[ 78, 0 ]
[ 89, 60 ]
python
en
['en', 'error', 'th']
False
simplify_nq_example
(nq_example)
r"""Returns dictionary with blank separated tokens in `document_text` field. Removes byte offsets from annotations, and removes `document_html` and `document_tokens` fields. All annotations in the ouput are represented as [start_token, end_token) offsets into the blank separated tokens in the `document...
r"""Returns dictionary with blank separated tokens in `document_text` field.
def simplify_nq_example(nq_example): r"""Returns dictionary with blank separated tokens in `document_text` field. Removes byte offsets from annotations, and removes `document_html` and `document_tokens` fields. All annotations in the ouput are represented as [start_token, end_token) offsets into the bl...
[ "def", "simplify_nq_example", "(", "nq_example", ")", ":", "def", "_clean_token", "(", "token", ")", ":", "\"\"\"\n Returns token in which blanks are replaced with underscores.\n\n HTML table cell openers may contain blanks if they span multiple columns.\n There are also...
[ 92, 0 ]
[ 160, 32 ]
python
en
['en', 'en', 'en']
True
ColorBar.bgcolor
(self)
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bgcolor(self): """ Sets the color of padded area. 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", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 59, 4 ]
[ 109, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.bordercolor
(self)
Sets the axis line color. 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 string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. 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 string (e.g. 'hsv(0,100%,100%)') ...
def bordercolor(self): """ Sets the axis line color. 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 ...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 118, 4 ]
[ 168, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.borderwidth
(self)
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def borderwidth(self): """ Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["...
[ "def", "borderwidth", "(", "self", ")", ":", "return", "self", "[", "\"borderwidth\"", "]" ]
[ 177, 4 ]
[ 188, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.dtick
(self)
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
def dtick(self): """ Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example...
[ "def", "dtick", "(", "self", ")", ":", "return", "self", "[", "\"dtick\"", "]" ]
[ 197, 4 ]
[ 226, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.exponentformat
(self)
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
def exponentformat(self): """ Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. ...
[ "def", "exponentformat", "(", "self", ")", ":", "return", "self", "[", "\"exponentformat\"", "]" ]
[ 235, 4 ]
[ 251, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.len
(self)
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf] Return...
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf]
def len(self): """ Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interva...
[ "def", "len", "(", "self", ")", ":", "return", "self", "[", "\"len\"", "]" ]
[ 260, 4 ]
[ 273, 26 ]
python
en
['en', 'error', 'th']
False
ColorBar.lenmode
(self)
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
def lenmode(self): """ Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - ...
[ "def", "lenmode", "(", "self", ")", ":", "return", "self", "[", "\"lenmode\"", "]" ]
[ 282, 4 ]
[ 296, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.nticks
(self)
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
def nticks(self): """ Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer an...
[ "def", "nticks", "(", "self", ")", ":", "return", "self", "[", "\"nticks\"", "]" ]
[ 305, 4 ]
[ 320, 29 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinecolor
(self)
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def outlinecolor(self): """ Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsv...
[ "def", "outlinecolor", "(", "self", ")", ":", "return", "self", "[", "\"outlinecolor\"", "]" ]
[ 329, 4 ]
[ 379, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinewidth
(self)
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def outlinewidth(self): """ Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["outlinewidth"]
[ "def", "outlinewidth", "(", "self", ")", ":", "return", "self", "[", "\"outlinewidth\"", "]" ]
[ 388, 4 ]
[ 399, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.separatethousands
(self)
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False)
def separatethousands(self): """ If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["separatethousands"]
[ "def", "separatethousands", "(", "self", ")", ":", "return", "self", "[", "\"separatethousands\"", "]" ]
[ 408, 4 ]
[ 419, 40 ]
python
en
['en', 'error', 'th']
False
ColorBar.showexponent
(self)
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
def showexponent(self): """ If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is ...
[ "def", "showexponent", "(", "self", ")", ":", "return", "self", "[", "\"showexponent\"", "]" ]
[ 428, 4 ]
[ 443, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticklabels
(self)
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False)
def showticklabels(self): """ Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showticklabels"]
[ "def", "showticklabels", "(", "self", ")", ":", "return", "self", "[", "\"showticklabels\"", "]" ]
[ 452, 4 ]
[ 463, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showtickprefix
(self)
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
def showtickprefix(self): """ If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' proper...
[ "def", "showtickprefix", "(", "self", ")", ":", "return", "self", "[", "\"showtickprefix\"", "]" ]
[ 472, 4 ]
[ 487, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticksuffix
(self)
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- Any
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none']
def showticksuffix(self): """ Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- ...
[ "def", "showticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"showticksuffix\"", "]" ]
[ 496, 4 ]
[ 508, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.thickness
(self)
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf]
def thickness(self): """ Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- i...
[ "def", "thickness", "(", "self", ")", ":", "return", "self", "[", "\"thickness\"", "]" ]
[ 517, 4 ]
[ 529, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.thicknessmode
(self)
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
def thicknessmode(self): """ Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be speci...
[ "def", "thicknessmode", "(", "self", ")", ":", "return", "self", "[", "\"thicknessmode\"", "]" ]
[ 538, 4 ]
[ 552, 36 ]
python
en
['en', 'error', 'th']
False
ColorBar.tick0
(self)
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
def tick0(self): """ Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for...
[ "def", "tick0", "(", "self", ")", ":", "return", "self", "[", "\"tick0\"", "]" ]
[ 561, 4 ]
[ 579, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickangle
(self)
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
def tickangle(self): """ Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Num...
[ "def", "tickangle", "(", "self", ")", ":", "return", "self", "[", "\"tickangle\"", "]" ]
[ 588, 4 ]
[ 603, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickcolor
(self)
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def tickcolor(self): """ Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e...
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 612, 4 ]
[ 662, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickfont
(self)
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.volume.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Tickfont con...
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.volume.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Tickfont con...
def tickfont(self): """ Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.volume.colorbar.Tickfont` - A dict of string/value properties that will be passed ...
[ "def", "tickfont", "(", "self", ")", ":", "return", "self", "[", "\"tickfont\"", "]" ]
[ 671, 4 ]
[ 708, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformat
(self)
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def tickformat(self): """ Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github...
[ "def", "tickformat", "(", "self", ")", ":", "return", "self", "[", "\"tickformat\"", "]" ]
[ 717, 4 ]
[ 737, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstops
(self)
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.volume.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Tickform...
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.volume.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the Tickform...
def tickformatstops(self): """ The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.volume.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that ...
[ "def", "tickformatstops", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstops\"", "]" ]
[ 746, 4 ]
[ 794, 38 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstopdefaults
(self)
When used in a template (as layout.template.data.volume.colorbar.tickformatstopdefaults), sets the default property values to use for elements of volume.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that may be speci...
When used in a template (as layout.template.data.volume.colorbar.tickformatstopdefaults), sets the default property values to use for elements of volume.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop that may be speci...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.data.volume.colorbar.tickformatstopdefaults), sets the default property values to use for elements of volume.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instanc...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 803, 4 ]
[ 822, 45 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticklen
(self)
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ticklen(self): """ Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ticklen"]
[ "def", "ticklen", "(", "self", ")", ":", "return", "self", "[", "\"ticklen\"", "]" ]
[ 831, 4 ]
[ 842, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickmode
(self)
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
def tickmode(self): """ Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick`...
[ "def", "tickmode", "(", "self", ")", ":", "return", "self", "[", "\"tickmode\"", "]" ]
[ 851, 4 ]
[ 869, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickprefix
(self)
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string
def tickprefix(self): """ Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["tickprefix"]
[ "def", "tickprefix", "(", "self", ")", ":", "return", "self", "[", "\"tickprefix\"", "]" ]
[ 878, 4 ]
[ 890, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticks
(self)
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
def ticks(self): """ Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the follo...
[ "def", "ticks", "(", "self", ")", ":", "return", "self", "[", "\"ticks\"", "]" ]
[ 899, 4 ]
[ 913, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticksuffix
(self)
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string
def ticksuffix(self): """ Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["ticksuffix"]
[ "def", "ticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"ticksuffix\"", "]" ]
[ 922, 4 ]
[ 934, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktext
(self)
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns -------...
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ticktext(self): """ Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series ...
[ "def", "ticktext", "(", "self", ")", ":", "return", "self", "[", "\"ticktext\"", "]" ]
[ 943, 4 ]
[ 956, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktextsrc
(self)
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def ticktextsrc(self): """ Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["ticktextsrc"]
[ "def", "ticktextsrc", "(", "self", ")", ":", "return", "self", "[", "\"ticktextsrc\"", "]" ]
[ 965, 4 ]
[ 976, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvals
(self)
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.nda...
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def tickvals(self): """ Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
[ "def", "tickvals", "(", "self", ")", ":", "return", "self", "[", "\"tickvals\"", "]" ]
[ 985, 4 ]
[ 997, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvalssrc
(self)
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def tickvalssrc(self): """ Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["tickvalssrc"]
[ "def", "tickvalssrc", "(", "self", ")", ":", "return", "self", "[", "\"tickvalssrc\"", "]" ]
[ 1006, 4 ]
[ 1017, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickwidth
(self)
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def tickwidth(self): """ Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["tickwidth"]
[ "def", "tickwidth", "(", "self", ")", ":", "return", "self", "[", "\"tickwidth\"", "]" ]
[ 1026, 4 ]
[ 1037, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.volume.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.volume.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
def title(self): """ The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.volume.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supporte...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1046, 4 ]
[ 1076, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use volume.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance o...
Deprecated: Please use volume.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance o...
def titlefont(self): """ Deprecated: Please use volume.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specifi...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1085, 4 ]
[ 1124, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use volume.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may b...
Deprecated: Please use volume.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may b...
def titleside(self): """ Deprecated: Please use volume.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' prope...
[ "def", "titleside", "(", "self", ")", ":", "return", "self", "[", "\"titleside\"", "]" ]
[ 1133, 4 ]
[ 1148, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.x
(self)
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def x(self): """ Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 1157, 4 ]
[ 1168, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.xanchor
(self)
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
def xanchor(self): """ Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration va...
[ "def", "xanchor", "(", "self", ")", ":", "return", "self", "[", "\"xanchor\"", "]" ]
[ 1177, 4 ]
[ 1191, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.xpad
(self)
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def xpad(self): """ Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["xpad"]
[ "def", "xpad", "(", "self", ")", ":", "return", "self", "[", "\"xpad\"", "]" ]
[ 1200, 4 ]
[ 1211, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.y
(self)
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def y(self): """ Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1220, 4 ]
[ 1231, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.yanchor
(self)
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
def yanchor(self): """ Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration value...
[ "def", "yanchor", "(", "self", ")", ":", "return", "self", "[", "\"yanchor\"", "]" ]
[ 1240, 4 ]
[ 1254, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.ypad
(self)
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ypad(self): """ Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ypad"]
[ "def", "ypad", "(", "self", ")", ":", "return", "self", "[", "\"ypad\"", "]" ]
[ 1263, 4 ]
[ 1274, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.__init__
( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, showexpo...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.volume.ColorBar` bgcolor Sets the color of padded area. bord...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.volume.ColorBar` bgcolor Sets the color of padded area. bord...
def __init__( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "bgcolor", "=", "None", ",", "bordercolor", "=", "None", ",", "borderwidth", "=", "None", ",", "dtick", "=", "None", ",", "exponentformat", "=", "None", ",", "len", "=", "None", ",", "lenm...
[ 1481, 4 ]
[ 1940, 34 ]
python
en
['en', 'error', 'th']
False
test_fcos_head_loss
()
Tests fcos head loss when truth is empty and non-empty.
Tests fcos head loss when truth is empty and non-empty.
def test_fcos_head_loss(): """Tests fcos head loss when truth is empty and non-empty.""" s = 256 img_metas = [{ 'img_shape': (s, s, 3), 'scale_factor': 1, 'pad_shape': (s, s, 3) }] train_cfg = mmcv.Config( dict( assigner=dict( type='MaxIoUA...
[ "def", "test_fcos_head_loss", "(", ")", ":", "s", "=", "256", "img_metas", "=", "[", "{", "'img_shape'", ":", "(", "s", ",", "s", ",", "3", ")", ",", "'scale_factor'", ":", "1", ",", "'pad_shape'", ":", "(", "s", ",", "s", ",", "3", ")", "}", "...
[ 10, 0 ]
[ 66, 67 ]
python
en
['en', 'en', 'en']
True
test_anchor_head_loss
()
Tests anchor head loss when truth is empty and non-empty.
Tests anchor head loss when truth is empty and non-empty.
def test_anchor_head_loss(): """Tests anchor head loss when truth is empty and non-empty.""" s = 256 img_metas = [{ 'img_shape': (s, s, 3), 'scale_factor': 1, 'pad_shape': (s, s, 3) }] cfg = mmcv.Config( dict( assigner=dict( type='MaxIoUAs...
[ "def", "test_anchor_head_loss", "(", ")", ":", "s", "=", "256", "img_metas", "=", "[", "{", "'img_shape'", ":", "(", "s", ",", "s", ",", "3", ")", ",", "'scale_factor'", ":", "1", ",", "'pad_shape'", ":", "(", "s", ",", "s", ",", "3", ")", "}", ...
[ 69, 0 ]
[ 131, 67 ]
python
en
['en', 'en', 'en']
True
test_fsaf_head_loss
()
Tests anchor head loss when truth is empty and non-empty.
Tests anchor head loss when truth is empty and non-empty.
def test_fsaf_head_loss(): """Tests anchor head loss when truth is empty and non-empty.""" s = 256 img_metas = [{ 'img_shape': (s, s, 3), 'scale_factor': 1, 'pad_shape': (s, s, 3) }] cfg = dict( reg_decoded_bbox=True, anchor_generator=dict( type='...
[ "def", "test_fsaf_head_loss", "(", ")", ":", "s", "=", "256", "img_metas", "=", "[", "{", "'img_shape'", ":", "(", "s", ",", "s", ",", "3", ")", ",", "'scale_factor'", ":", "1", ",", "'pad_shape'", ":", "(", "s", ",", "s", ",", "3", ")", "}", "...
[ 134, 0 ]
[ 208, 71 ]
python
en
['en', 'en', 'en']
True
test_ga_anchor_head_loss
()
Tests anchor head loss when truth is empty and non-empty.
Tests anchor head loss when truth is empty and non-empty.
def test_ga_anchor_head_loss(): """Tests anchor head loss when truth is empty and non-empty.""" s = 256 img_metas = [{ 'img_shape': (s, s, 3), 'scale_factor': 1, 'pad_shape': (s, s, 3) }] cfg = mmcv.Config( dict( assigner=dict( type='MaxIo...
[ "def", "test_ga_anchor_head_loss", "(", ")", ":", "s", "=", "256", "img_metas", "=", "[", "{", "'img_shape'", ":", "(", "s", ",", "s", ",", "3", ")", ",", "'scale_factor'", ":", "1", ",", "'pad_shape'", ":", "(", "s", ",", "s", ",", "3", ")", "}"...
[ 211, 0 ]
[ 294, 71 ]
python
en
['en', 'en', 'en']
True
test_bbox_head_loss
()
Tests bbox head loss when truth is empty and non-empty.
Tests bbox head loss when truth is empty and non-empty.
def test_bbox_head_loss(): """Tests bbox head loss when truth is empty and non-empty.""" self = BBoxHead(in_channels=8, roi_feat_size=3) # Dummy proposals proposal_list = [ torch.Tensor([[23.6667, 23.8757, 228.6326, 153.8874]]), ] target_cfg = mmcv.Config(dict(pos_weight=1)) # Tes...
[ "def", "test_bbox_head_loss", "(", ")", ":", "self", "=", "BBoxHead", "(", "in_channels", "=", "8", ",", "roi_feat_size", "=", "3", ")", "# Dummy proposals", "proposal_list", "=", "[", "torch", ".", "Tensor", "(", "[", "[", "23.6667", ",", "23.8757", ",", ...
[ 297, 0 ]
[ 352, 72 ]
python
en
['en', 'en', 'en']
True
test_refine_boxes
()
Mirrors the doctest in ``mmdet.models.bbox_heads.bbox_head.BBoxHead.refine_boxes`` but checks for multiple values of n_roi / n_img.
Mirrors the doctest in ``mmdet.models.bbox_heads.bbox_head.BBoxHead.refine_boxes`` but checks for multiple values of n_roi / n_img.
def test_refine_boxes(): """Mirrors the doctest in ``mmdet.models.bbox_heads.bbox_head.BBoxHead.refine_boxes`` but checks for multiple values of n_roi / n_img.""" self = BBoxHead(reg_class_agnostic=True) test_settings = [ # Corner case: less rois than images { 'n_roi': ...
[ "def", "test_refine_boxes", "(", ")", ":", "self", "=", "BBoxHead", "(", "reg_class_agnostic", "=", "True", ")", "test_settings", "=", "[", "# Corner case: less rois than images", "{", "'n_roi'", ":", "2", ",", "'n_img'", ":", "4", ",", "'rng'", ":", "34285940...
[ 355, 0 ]
[ 475, 17 ]
python
en
['en', 'en', 'en']
True
_demodata_refine_boxes
(n_roi, n_img, rng=0)
Create random test data for the ``mmdet.models.bbox_heads.bbox_head.BBoxHead.refine_boxes`` method.
Create random test data for the ``mmdet.models.bbox_heads.bbox_head.BBoxHead.refine_boxes`` method.
def _demodata_refine_boxes(n_roi, n_img, rng=0): """Create random test data for the ``mmdet.models.bbox_heads.bbox_head.BBoxHead.refine_boxes`` method.""" import numpy as np from mmdet.core.bbox.demodata import random_boxes from mmdet.core.bbox.demodata import ensure_rng try: import kwar...
[ "def", "_demodata_refine_boxes", "(", "n_roi", ",", "n_img", ",", "rng", "=", "0", ")", ":", "import", "numpy", "as", "np", "from", "mmdet", ".", "core", ".", "bbox", ".", "demodata", "import", "random_boxes", "from", "mmdet", ".", "core", ".", "bbox", ...
[ 478, 0 ]
[ 517, 58 ]
python
en
['en', 'ga', 'en']
True
test_mask_head_loss
()
Test mask head loss when mask target is empty.
Test mask head loss when mask target is empty.
def test_mask_head_loss(): """Test mask head loss when mask target is empty.""" self = FCNMaskHead( num_convs=1, roi_feat_size=6, in_channels=8, conv_out_channels=8, num_classes=8) # Dummy proposals proposal_list = [ torch.Tensor([[23.6667, 23.8757, 228.6...
[ "def", "test_mask_head_loss", "(", ")", ":", "self", "=", "FCNMaskHead", "(", "num_convs", "=", "1", ",", "roi_feat_size", "=", "6", ",", "in_channels", "=", "8", ",", "conv_out_channels", "=", "8", ",", "num_classes", "=", "8", ")", "# Dummy proposals", "...
[ 520, 0 ]
[ 581, 42 ]
python
en
['en', 'en', 'en']
True
_dummy_bbox_sampling
(proposal_list, gt_bboxes, gt_labels)
Create sample results that can be passed to BBoxHead.get_targets.
Create sample results that can be passed to BBoxHead.get_targets.
def _dummy_bbox_sampling(proposal_list, gt_bboxes, gt_labels): """Create sample results that can be passed to BBoxHead.get_targets.""" num_imgs = 1 feat = torch.rand(1, 1, 3, 3) assign_config = dict( type='MaxIoUAssigner', pos_iou_thr=0.5, neg_iou_thr=0.5, min_pos_iou=0.5...
[ "def", "_dummy_bbox_sampling", "(", "proposal_list", ",", "gt_bboxes", ",", "gt_labels", ")", ":", "num_imgs", "=", "1", "feat", "=", "torch", ".", "rand", "(", "1", ",", "1", ",", "3", ",", "3", ")", "assign_config", "=", "dict", "(", "type", "=", "...
[ 584, 0 ]
[ 615, 27 ]
python
en
['en', 'en', 'en']
True
setup
(bot)
Mandatory function to add the Cog to the bot.
Mandatory function to add the Cog to the bot.
def setup(bot): """ Mandatory function to add the Cog to the bot. """ bot.add_cog(FaqCog(bot))
[ "def", "setup", "(", "bot", ")", ":", "bot", ".", "add_cog", "(", "FaqCog", "(", "bot", ")", ")" ]
[ 366, 0 ]
[ 370, 28 ]
python
en
['en', 'error', 'th']
False
FaqCog.post_faq_by_number
(self, ctx: commands.Context, faq_numbers: commands.Greedy[Union[int, str]])
Posts an FAQ as an embed on request. Either as an normal message or as an reply, if the invoking message was also an reply. Args: faq_numbers (commands.Greedy[int]): minimum one faq number, no maximum,each seperated by one space (ie 14 12 3) Example: @AntiPetr...
Posts an FAQ as an embed on request.
async def post_faq_by_number(self, ctx: commands.Context, faq_numbers: commands.Greedy[Union[int, str]]): """ Posts an FAQ as an embed on request. Either as an normal message or as an reply, if the invoking message was also an reply. Args: faq_numbers (commands.Greedy[int])...
[ "async", "def", "post_faq_by_number", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ",", "faq_numbers", ":", "commands", ".", "Greedy", "[", "Union", "[", "int", ",", "str", "]", "]", ")", ":", "for", "faq_number", "in", "faq_numbers", ":", ...
[ 201, 4 ]
[ 239, 34 ]
python
en
['en', 'error', 'th']
False
FaqCog.add_faq_name
(self, ctx: commands.Context, faq_number: int, *, name: str)
Associates a name with an faq-number, so you can call the faq by name and not only by number. Args: faq_number (int): The faq-number you want to associate with the name. name (str): The name to give the faq-number, numbers can have multiple names.!NO SPACES ALLOWED!. Some names...
Associates a name with an faq-number, so you can call the faq by name and not only by number.
async def add_faq_name(self, ctx: commands.Context, faq_number: int, *, name: str): """ Associates a name with an faq-number, so you can call the faq by name and not only by number. Args: faq_number (int): The faq-number you want to associate with the name. name (str): T...
[ "async", "def", "add_faq_name", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ",", "faq_number", ":", "int", ",", "*", ",", "name", ":", "str", ")", ":", "parent_command", "=", "self", ".", "bot", ".", "get_command", "(", "\"post_faq_by_numbe...
[ 243, 4 ]
[ 272, 94 ]
python
en
['en', 'error', 'th']
False