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
Insidetextfont.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray """ return self["size"...
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 145, 4 ]
[ 155, 27 ]
python
en
['en', 'error', 'th']
False
Insidetextfont.sizesrc
(self)
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def sizesrc(self): """ Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["sizesrc"]
[ "def", "sizesrc", "(", "self", ")", ":", "return", "self", "[", "\"sizesrc\"", "]" ]
[ 164, 4 ]
[ 175, 30 ]
python
en
['en', 'error', 'th']
False
Insidetextfont.__init__
( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs )
Construct a new Insidetextfont object Sets the font used for `text` lying inside the bar. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.Insidetextf...
Construct a new Insidetextfont object Sets the font used for `text` lying inside the bar.
def __init__( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs ): """ Construct a new Insidetextfont object Sets the font used for `text` lying inside the...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "family", "=", "None", ",", "familysrc", "=", "None", ",", "size", "=", "None", ",", "sizesrc", "=", "None", ",", "*", "*", "kw...
[ 215, 4 ]
[ 329, 34 ]
python
en
['en', 'error', 'th']
False
TestMakeSubplots.test_large_columns_no_errors
(self)
Test that creating subplots with a large number of columns, and zero vertical spacing doesn't result in domain values that are out of range. Here is the error that was reported in GH1031 ValueError: Invalid value of type 'builtins.float' received for the ...
Test that creating subplots with a large number of columns, and zero vertical spacing doesn't result in domain values that are out of range.
def test_large_columns_no_errors(self): """ Test that creating subplots with a large number of columns, and zero vertical spacing doesn't result in domain values that are out of range. Here is the error that was reported in GH1031 ValueError: Invalid value o...
[ "def", "test_large_columns_no_errors", "(", "self", ")", ":", "v_space", "=", "0.0", "# 2D", "fig", "=", "tls", ".", "make_subplots", "(", "100", ",", "1", ",", "vertical_spacing", "=", "v_space", ")", "# 3D", "fig", "=", "tls", ".", "make_subplots", "(", ...
[ 1562, 4 ]
[ 1590, 9 ]
python
en
['en', 'error', 'th']
False
setTTL
(qstate, ttl)
Sets return_msg TTL and all the RRs TTL
Sets return_msg TTL and all the RRs TTL
def setTTL(qstate, ttl): """Sets return_msg TTL and all the RRs TTL""" if qstate.return_msg: qstate.return_msg.rep.ttl = ttl if (qstate.return_msg.rep): for i in range(0,qstate.return_msg.rep.rrset_count): d = qstate.return_msg.rep.rrsets[i].entry.data ...
[ "def", "setTTL", "(", "qstate", ",", "ttl", ")", ":", "if", "qstate", ".", "return_msg", ":", "qstate", ".", "return_msg", ".", "rep", ".", "ttl", "=", "ttl", "if", "(", "qstate", ".", "return_msg", ".", "rep", ")", ":", "for", "i", "in", "range", ...
[ 45, 0 ]
[ 53, 37 ]
python
en
['en', 'en', 'en']
True
CredAttrSpec.__init__
(self, *, name: str, value: str, mime_type: str = None, **kwargs)
Initialize attribute preview object. Args: name: attribute name value: attribute value; caller must base64-encode for attributes with non-empty MIME type mime_type: MIME type (default null)
Initialize attribute preview object.
def __init__(self, *, name: str, value: str, mime_type: str = None, **kwargs): """ Initialize attribute preview object. Args: name: attribute name value: attribute value; caller must base64-encode for attributes with non-empty MIME type mime_t...
[ "def", "__init__", "(", "self", ",", "*", ",", "name", ":", "str", ",", "value", ":", "str", ",", "mime_type", ":", "str", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", ")", ".", "__init__", "(", "*", "*", "kwargs", ")", "self",...
[ 22, 4 ]
[ 37, 65 ]
python
en
['en', 'error', 'th']
False
CredAttrSpec.list_plain
(plain: dict)
Return a list of `CredAttrSpec` without MIME types from names/values. Args: plain: dict mapping names to values Returns: List of CredAttrSpecs with no MIME types
Return a list of `CredAttrSpec` without MIME types from names/values.
def list_plain(plain: dict): """ Return a list of `CredAttrSpec` without MIME types from names/values. Args: plain: dict mapping names to values Returns: List of CredAttrSpecs with no MIME types """ return [CredAttrSpec(name=k, value=plain[k]) f...
[ "def", "list_plain", "(", "plain", ":", "dict", ")", ":", "return", "[", "CredAttrSpec", "(", "name", "=", "k", ",", "value", "=", "plain", "[", "k", "]", ")", "for", "k", "in", "plain", "]" ]
[ 40, 4 ]
[ 51, 68 ]
python
en
['en', 'error', 'th']
False
CredAttrSpec.b64_decoded_value
(self)
Value, base64-decoded if applicable.
Value, base64-decoded if applicable.
def b64_decoded_value(self) -> str: """Value, base64-decoded if applicable.""" return b64_to_str(self.value) if self.value and self.mime_type else self.value
[ "def", "b64_decoded_value", "(", "self", ")", "->", "str", ":", "return", "b64_to_str", "(", "self", ".", "value", ")", "if", "self", ".", "value", "and", "self", ".", "mime_type", "else", "self", ".", "value" ]
[ 53, 4 ]
[ 56, 86 ]
python
en
['en', 'en', 'en']
True
CredAttrSpec.__eq__
(self, other)
Equality comparator.
Equality comparator.
def __eq__(self, other): """Equality comparator.""" if self.name != other.name: return False # distinct attribute names if self.mime_type != other.mime_type: return False # distinct MIME types return self.b64_decoded_value() == other.b64_decoded_value()
[ "def", "__eq__", "(", "self", ",", "other", ")", ":", "if", "self", ".", "name", "!=", "other", ".", "name", ":", "return", "False", "# distinct attribute names", "if", "self", ".", "mime_type", "!=", "other", ".", "mime_type", ":", "return", "False", "#...
[ 58, 4 ]
[ 67, 68 ]
python
en
['en', 'en', 'it']
False
CredentialPreview.__init__
( self, *, _type: str = None, attributes: Sequence[CredAttrSpec] = None, **kwargs )
Initialize credential preview object. Args: _type: formalism for Marshmallow model creation: ignored attributes (list): list of attribute preview dicts; e.g., [ { "name": "attribute_name", "value": "value" ...
Initialize credential preview object.
def __init__( self, *, _type: str = None, attributes: Sequence[CredAttrSpec] = None, **kwargs ): """ Initialize credential preview object. Args: _type: formalism for Marshmallow model creation: ignored attributes (list): list of attribute preview dicts; e.g.,...
[ "def", "__init__", "(", "self", ",", "*", ",", "_type", ":", "str", "=", "None", ",", "attributes", ":", "Sequence", "[", "CredAttrSpec", "]", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", ")", ".", "__init__", "(", "*", "*", "kwa...
[ 103, 4 ]
[ 125, 64 ]
python
en
['en', 'error', 'th']
False
CredentialPreview._type
(self)
Accessor for message type.
Accessor for message type.
def _type(self): """Accessor for message type.""" return CredentialPreview.Meta.message_type
[ "def", "_type", "(", "self", ")", ":", "return", "CredentialPreview", ".", "Meta", ".", "message_type" ]
[ 128, 4 ]
[ 130, 50 ]
python
en
['da', 'en', 'en']
True
CredentialPreview.attr_dict
(self, decode: bool = False)
Return name:value pair per attribute. Args: decode: whether first to decode attributes with MIME type
Return name:value pair per attribute.
def attr_dict(self, decode: bool = False): """ Return name:value pair per attribute. Args: decode: whether first to decode attributes with MIME type """ return { attr.name: b64_to_str(attr.value) if attr.mime_type and decode else...
[ "def", "attr_dict", "(", "self", ",", "decode", ":", "bool", "=", "False", ")", ":", "return", "{", "attr", ".", "name", ":", "b64_to_str", "(", "attr", ".", "value", ")", "if", "attr", ".", "mime_type", "and", "decode", "else", "attr", ".", "value",...
[ 132, 4 ]
[ 146, 9 ]
python
en
['en', 'error', 'th']
False
CredentialPreview.mime_types
(self)
Return per-attribute mapping from name to MIME type. Return empty dict if no attribute has MIME type.
Return per-attribute mapping from name to MIME type.
def mime_types(self): """ Return per-attribute mapping from name to MIME type. Return empty dict if no attribute has MIME type. """ return {attr.name: attr.mime_type for attr in self.attributes if attr.mime_type}
[ "def", "mime_types", "(", "self", ")", ":", "return", "{", "attr", ".", "name", ":", "attr", ".", "mime_type", "for", "attr", "in", "self", ".", "attributes", "if", "attr", ".", "mime_type", "}" ]
[ 148, 4 ]
[ 155, 88 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.a
(self)
Sets the a-axis coordinates. The 'a' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the a-axis coordinates. The 'a' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def a(self): """ Sets the a-axis coordinates. The 'a' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["a"]
[ "def", "a", "(", "self", ")", ":", "return", "self", "[", "\"a\"", "]" ]
[ 62, 4 ]
[ 73, 24 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.asrc
(self)
Sets the source reference on Chart Studio Cloud for a . The 'asrc' 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 a . The 'asrc' property must be specified as a string or as a plotly.grid_objs.Column object
def asrc(self): """ Sets the source reference on Chart Studio Cloud for a . The 'asrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["asrc"]
[ "def", "asrc", "(", "self", ")", ":", "return", "self", "[", "\"asrc\"", "]" ]
[ 82, 4 ]
[ 93, 27 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.b
(self)
Sets the b-axis coordinates. The 'b' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the b-axis coordinates. The 'b' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def b(self): """ Sets the b-axis coordinates. The 'b' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["b"]
[ "def", "b", "(", "self", ")", ":", "return", "self", "[", "\"b\"", "]" ]
[ 102, 4 ]
[ 113, 24 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.bsrc
(self)
Sets the source reference on Chart Studio Cloud for b . The 'bsrc' 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 b . The 'bsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bsrc(self): """ Sets the source reference on Chart Studio Cloud for b . The 'bsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bsrc"]
[ "def", "bsrc", "(", "self", ")", ":", "return", "self", "[", "\"bsrc\"", "]" ]
[ 122, 4 ]
[ 133, 27 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.carpet
(self)
An identifier for this carpet, so that `scattercarpet` and `contourcarpet` traces can specify a carpet plot on which they lie The 'carpet' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ...
An identifier for this carpet, so that `scattercarpet` and `contourcarpet` traces can specify a carpet plot on which they lie The 'carpet' property is a string and must be specified as: - A string - A number that will be converted to a string
def carpet(self): """ An identifier for this carpet, so that `scattercarpet` and `contourcarpet` traces can specify a carpet plot on which they lie The 'carpet' property is a string and must be specified as: - A string - A number that will be converted to...
[ "def", "carpet", "(", "self", ")", ":", "return", "self", "[", "\"carpet\"", "]" ]
[ 142, 4 ]
[ 156, 29 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.connectgaps
(self)
Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected. The 'connectgaps' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected. The 'connectgaps' property must be specified as a bool (either True, or False)
def connectgaps(self): """ Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are connected. The 'connectgaps' property must be specified as a bool (either True, or False) Returns ------- bool """ ...
[ "def", "connectgaps", "(", "self", ")", ":", "return", "self", "[", "\"connectgaps\"", "]" ]
[ 165, 4 ]
[ 177, 34 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.customdata
(self)
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
def customdata(self): """ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be sp...
[ "def", "customdata", "(", "self", ")", ":", "return", "self", "[", "\"customdata\"", "]" ]
[ 186, 4 ]
[ 200, 33 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.customdatasrc
(self)
Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def customdatasrc(self): """ Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["cust...
[ "def", "customdatasrc", "(", "self", ")", ":", "return", "self", "[", "\"customdatasrc\"", "]" ]
[ 209, 4 ]
[ 221, 36 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.fill
(self)
Sets the area to fill with a solid color. Use with `fillcolor` if not "none". scatterternary has a subset of the options available to scatter. "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. "tonext" fills the space...
Sets the area to fill with a solid color. Use with `fillcolor` if not "none". scatterternary has a subset of the options available to scatter. "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. "tonext" fills the space...
def fill(self): """ Sets the area to fill with a solid color. Use with `fillcolor` if not "none". scatterternary has a subset of the options available to scatter. "toself" connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shap...
[ "def", "fill", "(", "self", ")", ":", "return", "self", "[", "\"fill\"", "]" ]
[ 230, 4 ]
[ 250, 27 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.fillcolor
(self)
Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. The 'fillcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rg...
Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. The 'fillcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rg...
def fillcolor(self): """ Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. The 'fillcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') ...
[ "def", "fillcolor", "(", "self", ")", ":", "return", "self", "[", "\"fillcolor\"", "]" ]
[ 259, 4 ]
[ 311, 32 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.hoverinfo
(self)
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified as a string containing: ...
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified as a string containing: ...
def hoverinfo(self): """ Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. The 'hoverinfo' property is a flaglist and may be specified ...
[ "def", "hoverinfo", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfo\"", "]" ]
[ 320, 4 ]
[ 337, 32 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.hoverinfosrc
(self)
Sets the source reference on Chart Studio Cloud for hoverinfo . The 'hoverinfosrc' 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 hoverinfo . The 'hoverinfosrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hoverinfosrc(self): """ Sets the source reference on Chart Studio Cloud for hoverinfo . The 'hoverinfosrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["hoverin...
[ "def", "hoverinfosrc", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfosrc\"", "]" ]
[ 346, 4 ]
[ 358, 35 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.hoverlabel
(self)
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict pro...
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict pro...
def hoverlabel(self): """ The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor ...
[ "def", "hoverlabel", "(", "self", ")", ":", "return", "self", "[", "\"hoverlabel\"", "]" ]
[ 367, 4 ]
[ 417, 33 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.hoveron
(self)
Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is "toself" or "tonext" and there are no markers or text, then the default is "fills", otherwise it is "points". The 'hoveron' property is a flaglist a...
Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is "toself" or "tonext" and there are no markers or text, then the default is "fills", otherwise it is "points". The 'hoveron' property is a flaglist a...
def hoveron(self): """ Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is "toself" or "tonext" and there are no markers or text, then the default is "fills", otherwise it is "points". The 'hov...
[ "def", "hoveron", "(", "self", ")", ":", "return", "self", "[", "\"hoveron\"", "]" ]
[ 426, 4 ]
[ 442, 30 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.hovertemplate
(self)
Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$...
Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$...
def hovertemplate(self): """ Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d...
[ "def", "hovertemplate", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplate\"", "]" ]
[ 451, 4 ]
[ 483, 36 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.hovertemplatesrc
(self)
Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' 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 hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hovertemplatesrc(self): """ Sets the source reference on Chart Studio Cloud for hovertemplate . The 'hovertemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return se...
[ "def", "hovertemplatesrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertemplatesrc\"", "]" ]
[ 492, 4 ]
[ 504, 39 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.hovertext
(self)
Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a "text" flag. ...
Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a "text" flag. ...
def hovertext(self): """ Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` m...
[ "def", "hovertext", "(", "self", ")", ":", "return", "self", "[", "\"hovertext\"", "]" ]
[ 513, 4 ]
[ 530, 32 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.hovertextsrc
(self)
Sets the source reference on Chart Studio Cloud for hovertext . The 'hovertextsrc' 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 hovertext . The 'hovertextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def hovertextsrc(self): """ Sets the source reference on Chart Studio Cloud for hovertext . The 'hovertextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["hoverte...
[ "def", "hovertextsrc", "(", "self", ")", ":", "return", "self", "[", "\"hovertextsrc\"", "]" ]
[ 539, 4 ]
[ 551, 35 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.ids
(self)
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Retur...
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ids(self): """ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pa...
[ "def", "ids", "(", "self", ")", ":", "return", "self", "[", "\"ids\"", "]" ]
[ 560, 4 ]
[ 573, 26 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.idssrc
(self)
Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def idssrc(self): """ Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["idssrc"]
[ "def", "idssrc", "(", "self", ")", ":", "return", "self", "[", "\"idssrc\"", "]" ]
[ 582, 4 ]
[ 593, 29 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.legendgroup
(self)
Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will be converted to a string R...
Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will be converted to a string
def legendgroup(self): """ Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. The 'legendgroup' property is a string and must be specified as: - A string - A number that will b...
[ "def", "legendgroup", "(", "self", ")", ":", "return", "self", "[", "\"legendgroup\"", "]" ]
[ 602, 4 ]
[ 616, 34 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.line
(self)
The 'line' property is an instance of Line that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.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.scattercarpet.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.scattercarpet.Line` - A dict of string/value properties that will be passed to the Line constructor Supported dict ...
[ "def", "line", "(", "self", ")", ":", "return", "self", "[", "\"line\"", "]" ]
[ 625, 4 ]
[ 659, 27 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: ...
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: ...
def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Marker` - A dict of string/value properties that will be passed to the Marker constructor Suppo...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 668, 4 ]
[ 814, 29 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.meta
(self)
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
def meta(self): """ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text ...
[ "def", "meta", "(", "self", ")", ":", "return", "self", "[", "\"meta\"", "]" ]
[ 823, 4 ]
[ 842, 27 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.metasrc
(self)
Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def metasrc(self): """ Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["metasrc"]
[ "def", "metasrc", "(", "self", ")", ":", "return", "self", "[", "\"metasrc\"", "]" ]
[ 851, 4 ]
[ 862, 30 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.mode
(self)
Determines the drawing mode for this scatter trace. If the provided `mode` includes "text" then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is "lines...
Determines the drawing mode for this scatter trace. If the provided `mode` includes "text" then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is "lines...
def mode(self): """ Determines the drawing mode for this scatter trace. If the provided `mode` includes "text" then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked...
[ "def", "mode", "(", "self", ")", ":", "return", "self", "[", "\"mode\"", "]" ]
[ 871, 4 ]
[ 890, 27 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.name
(self)
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string
def name(self): """ Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str ...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 899, 4 ]
[ 912, 27 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.opacity
(self)
Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the opacity of the trace. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1]
def opacity(self): """ Sets the opacity of the trace. 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\"", "]" ]
[ 921, 4 ]
[ 932, 30 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.selected
(self)
The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Selected` - A dict of string/value properties that will be passed to the Selected constructor Supported dict properties:...
The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Selected` - A dict of string/value properties that will be passed to the Selected constructor Supported dict properties:...
def selected(self): """ The 'selected' property is an instance of Selected that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Selected` - A dict of string/value properties that will be passed to the Selected constructor ...
[ "def", "selected", "(", "self", ")", ":", "return", "self", "[", "\"selected\"", "]" ]
[ 941, 4 ]
[ 964, 31 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.selectedpoints
(self)
Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the...
Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the...
def selectedpoints(self): """ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values ...
[ "def", "selectedpoints", "(", "self", ")", ":", "return", "self", "[", "\"selectedpoints\"", "]" ]
[ 973, 4 ]
[ 988, 37 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.showlegend
(self)
Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False)
def showlegend(self): """ Determines whether or not an item corresponding to this trace is shown in the legend. The 'showlegend' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showle...
[ "def", "showlegend", "(", "self", ")", ":", "return", "self", "[", "\"showlegend\"", "]" ]
[ 997, 4 ]
[ 1009, 33 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
def stream(self): """ The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Stream` - A dict of string/value properties that will be passed to the Stream constructor Suppo...
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 1018, 4 ]
[ 1042, 29 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.text
(self)
Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a "text" flag and "hovertext" is not se...
Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a "text" flag and "hovertext" is not se...
def text(self): """ Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a "text" fla...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 1051, 4 ]
[ 1069, 27 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.textfont
(self)
Sets the text font. The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor ...
Sets the text font. The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor ...
def textfont(self): """ Sets the text font. The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Textfont` - A dict of string/value properties that will be passed to the ...
[ "def", "textfont", "(", "self", ")", ":", "return", "self", "[", "\"textfont\"", "]" ]
[ 1078, 4 ]
[ 1125, 31 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.textposition
(self)
Sets the positions of the `text` elements with respects to the (x,y) coordinates. The 'textposition' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left', 'top center', 'top right', 'middle left', ...
Sets the positions of the `text` elements with respects to the (x,y) coordinates. The 'textposition' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left', 'top center', 'top right', 'middle left', ...
def textposition(self): """ Sets the positions of the `text` elements with respects to the (x,y) coordinates. The 'textposition' property is an enumeration that may be specified as: - One of the following enumeration values: ['top left', 'top center', 'top ...
[ "def", "textposition", "(", "self", ")", ":", "return", "self", "[", "\"textposition\"", "]" ]
[ 1134, 4 ]
[ 1150, 35 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.textpositionsrc
(self)
Sets the source reference on Chart Studio Cloud for textposition . The 'textpositionsrc' 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 textposition . The 'textpositionsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def textpositionsrc(self): """ Sets the source reference on Chart Studio Cloud for textposition . The 'textpositionsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self[...
[ "def", "textpositionsrc", "(", "self", ")", ":", "return", "self", "[", "\"textpositionsrc\"", "]" ]
[ 1159, 4 ]
[ 1171, 38 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.textsrc
(self)
Sets the source reference on Chart Studio Cloud for text . The 'textsrc' 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 text . The 'textsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def textsrc(self): """ Sets the source reference on Chart Studio Cloud for text . The 'textsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["textsrc"]
[ "def", "textsrc", "(", "self", ")", ":", "return", "self", "[", "\"textsrc\"", "]" ]
[ 1180, 4 ]
[ 1191, 30 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.texttemplate
(self)
Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:...
Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:...
def texttemplate(self): """ Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d...
[ "def", "texttemplate", "(", "self", ")", ":", "return", "self", "[", "\"texttemplate\"", "]" ]
[ 1200, 4 ]
[ 1226, 35 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.texttemplatesrc
(self)
Sets the source reference on Chart Studio Cloud for texttemplate . The 'texttemplatesrc' 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 texttemplate . The 'texttemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def texttemplatesrc(self): """ Sets the source reference on Chart Studio Cloud for texttemplate . The 'texttemplatesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self[...
[ "def", "texttemplatesrc", "(", "self", ")", ":", "return", "self", "[", "\"texttemplatesrc\"", "]" ]
[ 1235, 4 ]
[ 1247, 38 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.uid
(self)
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- ...
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string
def uid(self): """ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. The 'uid' property is a string and must be specified as: - A string - A number that will be converted to a string Return...
[ "def", "uid", "(", "self", ")", ":", "return", "self", "[", "\"uid\"", "]" ]
[ 1256, 4 ]
[ 1269, 26 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.uirevision
(self)
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are co...
def uirevision(self): """ Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driv...
[ "def", "uirevision", "(", "self", ")", ":", "return", "self", "[", "\"uirevision\"", "]" ]
[ 1278, 4 ]
[ 1302, 33 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.unselected
(self)
The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor Supported dict pro...
The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor Supported dict pro...
def unselected(self): """ The 'unselected' property is an instance of Unselected that may be specified as: - An instance of :class:`plotly.graph_objs.scattercarpet.Unselected` - A dict of string/value properties that will be passed to the Unselected constructor ...
[ "def", "unselected", "(", "self", ")", ":", "return", "self", "[", "\"unselected\"", "]" ]
[ 1311, 4 ]
[ 1334, 33 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.visible
(self)
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One of the following enumeration va...
def visible(self): """ Determines whether or not this trace is visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). The 'visible' property is an enumeration that may be specified as: - One o...
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 1343, 4 ]
[ 1357, 30 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.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\"", "]" ]
[ 1366, 4 ]
[ 1382, 28 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.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\"", "]" ]
[ 1391, 4 ]
[ 1407, 28 ]
python
en
['en', 'error', 'th']
False
Scattercarpet.__init__
( self, arg=None, a=None, asrc=None, b=None, bsrc=None, carpet=None, connectgaps=None, customdata=None, customdatasrc=None, fill=None, fillcolor=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=Non...
Construct a new Scattercarpet object Plots a scatter trace on either the first carpet axis or the carpet axis with a matching `carpet` attribute. Parameters ---------- arg dict of properties compatible with this constructor or an instanc...
Construct a new Scattercarpet object Plots a scatter trace on either the first carpet axis or the carpet axis with a matching `carpet` attribute.
def __init__( self, arg=None, a=None, asrc=None, b=None, bsrc=None, carpet=None, connectgaps=None, customdata=None, customdatasrc=None, fill=None, fillcolor=None, hoverinfo=None, hoverinfosrc=None, ho...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "a", "=", "None", ",", "asrc", "=", "None", ",", "b", "=", "None", ",", "bsrc", "=", "None", ",", "carpet", "=", "None", ",", "connectgaps", "=", "None", ",", "customdata", "=", "None"...
[ 1658, 4 ]
[ 2178, 34 ]
python
en
['en', 'error', 'th']
False
AntiPetrosBaseGroup.copy
(self)
Creates a copy of this :class:`Group`. Returns -------- :class:`Group` A new instance of this group.
Creates a copy of this :class:`Group`.
def copy(self): """Creates a copy of this :class:`Group`. Returns -------- :class:`Group` A new instance of this group. """ ret = super().copy() for cmd in self.commands: ret.add_command(cmd.copy()) return ret
[ "def", "copy", "(", "self", ")", ":", "ret", "=", "super", "(", ")", ".", "copy", "(", ")", "for", "cmd", "in", "self", ".", "commands", ":", "ret", ".", "add_command", "(", "cmd", ".", "copy", "(", ")", ")", "return", "ret" ]
[ 81, 4 ]
[ 92, 18 ]
python
en
['en', 'en', 'en']
True
AntiPetrosBaseGroup.command
(self, *args, **kwargs)
A shortcut decorator that invokes :func:`.command` and adds it to the internal command list via :meth:`~.GroupMixin.add_command`. Returns -------- Callable[..., :class:`Command`] A decorator that converts the provided method into a Command, adds it to the bot, then returns i...
A shortcut decorator that invokes :func:`.command` and adds it to the internal command list via :meth:`~.GroupMixin.add_command`.
def command(self, *args, **kwargs): """A shortcut decorator that invokes :func:`.command` and adds it to the internal command list via :meth:`~.GroupMixin.add_command`. Returns -------- Callable[..., :class:`Command`] A decorator that converts the provided method int...
[ "def", "command", "(", "self", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "def", "decorator", "(", "func", ")", ":", "kwargs", ".", "setdefault", "(", "'parent'", ",", "self", ")", "kwargs", ".", "setdefault", "(", "'cls'", ",", "AntiPetros...
[ 165, 4 ]
[ 181, 24 ]
python
en
['en', 'en', 'en']
True
Font.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Font.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Font.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf]
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 103, 4 ]
[ 112, 27 ]
python
en
['en', 'error', 'th']
False
Font.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Font object Sets the title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. Parameters ---------- arg dict of properties compatible with this constructor or an instance o...
Construct a new Font object Sets the title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute.
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Font object Sets the title font. Note that the title's font used to be customized 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
match_post_filter
(record: dict, post_filter: dict)
Determine if a record value matches the post-filter.
Determine if a record value matches the post-filter.
def match_post_filter(record: dict, post_filter: dict) -> bool: """Determine if a record value matches the post-filter.""" for k, v in post_filter.items(): if record.get(k) != v: return False return True
[ "def", "match_post_filter", "(", "record", ":", "dict", ",", "post_filter", ":", "dict", ")", "->", "bool", ":", "for", "k", ",", "v", "in", "post_filter", ".", "items", "(", ")", ":", "if", "record", ".", "get", "(", "k", ")", "!=", "v", ":", "r...
[ 22, 0 ]
[ 27, 15 ]
python
en
['en', 'en', 'en']
True
BaseRecord.__init__
( self, id: str = None, state: str = None, *, created_at: Union[str, datetime] = None, updated_at: Union[str, datetime] = None, )
Initialize a new BaseRecord.
Initialize a new BaseRecord.
def __init__( self, id: str = None, state: str = None, *, created_at: Union[str, datetime] = None, updated_at: Union[str, datetime] = None, ): """Initialize a new BaseRecord.""" if not self.RECORD_TYPE: raise TypeError( "Can...
[ "def", "__init__", "(", "self", ",", "id", ":", "str", "=", "None", ",", "state", ":", "str", "=", "None", ",", "*", ",", "created_at", ":", "Union", "[", "str", ",", "datetime", "]", "=", "None", ",", "updated_at", ":", "Union", "[", "str", ",",...
[ 44, 4 ]
[ 63, 53 ]
python
en
['en', 'en', 'en']
True
BaseRecord.from_storage
(cls, record_id: str, record: Mapping[str, Any])
Initialize a record from its stored representation. Args: record_id: The unique record identifier record: The stored representation
Initialize a record from its stored representation.
def from_storage(cls, record_id: str, record: Mapping[str, Any]): """Initialize a record from its stored representation. Args: record_id: The unique record identifier record: The stored representation """ record_id_name = cls.RECORD_ID_NAME if record_id_n...
[ "def", "from_storage", "(", "cls", ",", "record_id", ":", "str", ",", "record", ":", "Mapping", "[", "str", ",", "Any", "]", ")", ":", "record_id_name", "=", "cls", ".", "RECORD_ID_NAME", "if", "record_id_name", "in", "record", ":", "raise", "ValueError", ...
[ 66, 4 ]
[ 78, 28 ]
python
en
['en', 'en', 'en']
True
BaseRecord.get_tag_map
(cls)
Accessor for the set of defined tags.
Accessor for the set of defined tags.
def get_tag_map(cls) -> Mapping[str, str]: """Accessor for the set of defined tags.""" return {tag.lstrip("~"): tag for tag in cls.TAG_NAMES or ()}
[ "def", "get_tag_map", "(", "cls", ")", "->", "Mapping", "[", "str", ",", "str", "]", ":", "return", "{", "tag", ".", "lstrip", "(", "\"~\"", ")", ":", "tag", "for", "tag", "in", "cls", ".", "TAG_NAMES", "or", "(", ")", "}" ]
[ 81, 4 ]
[ 83, 68 ]
python
en
['en', 'en', 'en']
True
BaseRecord.storage_record
(self)
Accessor for a `StorageRecord` representing this record.
Accessor for a `StorageRecord` representing this record.
def storage_record(self) -> StorageRecord: """Accessor for a `StorageRecord` representing this record.""" return StorageRecord( self.RECORD_TYPE, json.dumps(self.value), self.tags, self._id )
[ "def", "storage_record", "(", "self", ")", "->", "StorageRecord", ":", "return", "StorageRecord", "(", "self", ".", "RECORD_TYPE", ",", "json", ".", "dumps", "(", "self", ".", "value", ")", ",", "self", ".", "tags", ",", "self", ".", "_id", ")" ]
[ 86, 4 ]
[ 90, 9 ]
python
en
['en', 'en', 'en']
True
BaseRecord.record_value
(self)
Accessor to define custom properties for the JSON record value.
Accessor to define custom properties for the JSON record value.
def record_value(self) -> dict: """Accessor to define custom properties for the JSON record value.""" return {}
[ "def", "record_value", "(", "self", ")", "->", "dict", ":", "return", "{", "}" ]
[ 93, 4 ]
[ 95, 17 ]
python
en
['en', 'en', 'en']
True
BaseRecord.value
(self)
Accessor for the JSON record value generated for this record.
Accessor for the JSON record value generated for this record.
def value(self) -> dict: """Accessor for the JSON record value generated for this record.""" ret = self.strip_tag_prefix(self.tags) ret.update({"created_at": self.created_at, "updated_at": self.updated_at}) ret.update(self.record_value) return ret
[ "def", "value", "(", "self", ")", "->", "dict", ":", "ret", "=", "self", ".", "strip_tag_prefix", "(", "self", ".", "tags", ")", "ret", ".", "update", "(", "{", "\"created_at\"", ":", "self", ".", "created_at", ",", "\"updated_at\"", ":", "self", ".", ...
[ 98, 4 ]
[ 103, 18 ]
python
en
['en', 'en', 'en']
True
BaseRecord.record_tags
(self)
Accessor to define implementation-specific tags.
Accessor to define implementation-specific tags.
def record_tags(self) -> dict: """Accessor to define implementation-specific tags.""" return { tag: getattr(self, prop) for (prop, tag) in self.get_tag_map().items() if getattr(self, prop) if not None }
[ "def", "record_tags", "(", "self", ")", "->", "dict", ":", "return", "{", "tag", ":", "getattr", "(", "self", ",", "prop", ")", "for", "(", "prop", ",", "tag", ")", "in", "self", ".", "get_tag_map", "(", ")", ".", "items", "(", ")", "if", "getatt...
[ 106, 4 ]
[ 113, 9 ]
python
en
['en', 'en', 'en']
True
BaseRecord.tags
(self)
Accessor for the record tags generated for this record.
Accessor for the record tags generated for this record.
def tags(self) -> dict: """Accessor for the record tags generated for this record.""" tags = self.record_tags return tags
[ "def", "tags", "(", "self", ")", "->", "dict", ":", "tags", "=", "self", ".", "record_tags", "return", "tags" ]
[ 116, 4 ]
[ 119, 19 ]
python
en
['en', 'en', 'en']
True
BaseRecord.cache_key
(cls, record_id: str, record_type: str = None)
Assemble a cache key. Args: record_id: The record identifier record_type The cache type identifier, defaulting to RECORD_TYPE
Assemble a cache key.
def cache_key(cls, record_id: str, record_type: str = None): """Assemble a cache key. Args: record_id: The record identifier record_type The cache type identifier, defaulting to RECORD_TYPE """ if not record_type: record_type = cls.RECORD_TYPE ...
[ "def", "cache_key", "(", "cls", ",", "record_id", ":", "str", ",", "record_type", ":", "str", "=", "None", ")", ":", "if", "not", "record_type", ":", "record_type", "=", "cls", ".", "RECORD_TYPE", "if", "record_id", ":", "return", "f\"{record_type}::{record_...
[ 122, 4 ]
[ 132, 48 ]
python
en
['it', 'fr', 'en']
False
BaseRecord.get_cached_key
(cls, context: InjectionContext, cache_key: str)
Shortcut method to fetch a cached key value. Args: context: The injection context to use cache_key: The unique cache identifier
Shortcut method to fetch a cached key value.
async def get_cached_key(cls, context: InjectionContext, cache_key: str): """Shortcut method to fetch a cached key value. Args: context: The injection context to use cache_key: The unique cache identifier """ if not cache_key: return cache: Ba...
[ "async", "def", "get_cached_key", "(", "cls", ",", "context", ":", "InjectionContext", ",", "cache_key", ":", "str", ")", ":", "if", "not", "cache_key", ":", "return", "cache", ":", "BaseCache", "=", "await", "context", ".", "inject", "(", "BaseCache", ","...
[ 135, 4 ]
[ 146, 45 ]
python
en
['en', 'en', 'en']
True
BaseRecord.set_cached_key
( cls, context: InjectionContext, cache_key: str, value: Any, ttl=None )
Shortcut method to set a cached key value. Args: context: The injection context to use cache_key: The unique cache identifier value: The value to cache ttl: The cache ttl
Shortcut method to set a cached key value.
async def set_cached_key( cls, context: InjectionContext, cache_key: str, value: Any, ttl=None ): """Shortcut method to set a cached key value. Args: context: The injection context to use cache_key: The unique cache identifier value: The value to cache ...
[ "async", "def", "set_cached_key", "(", "cls", ",", "context", ":", "InjectionContext", ",", "cache_key", ":", "str", ",", "value", ":", "Any", ",", "ttl", "=", "None", ")", ":", "if", "not", "cache_key", ":", "return", "cache", ":", "BaseCache", "=", "...
[ 149, 4 ]
[ 164, 67 ]
python
en
['en', 'en', 'en']
True
BaseRecord.clear_cached_key
(cls, context: InjectionContext, cache_key: str)
Shortcut method to clear a cached key value, if any. Args: context: The injection context to use cache_key: The unique cache identifier
Shortcut method to clear a cached key value, if any.
async def clear_cached_key(cls, context: InjectionContext, cache_key: str): """Shortcut method to clear a cached key value, if any. Args: context: The injection context to use cache_key: The unique cache identifier """ if not cache_key: return ...
[ "async", "def", "clear_cached_key", "(", "cls", ",", "context", ":", "InjectionContext", ",", "cache_key", ":", "str", ")", ":", "if", "not", "cache_key", ":", "return", "cache", ":", "BaseCache", "=", "await", "context", ".", "inject", "(", "BaseCache", "...
[ 167, 4 ]
[ 178, 40 ]
python
en
['en', 'en', 'en']
True
BaseRecord.clear_cached
(self, context: InjectionContext)
Clear the cached value of this record, if any.
Clear the cached value of this record, if any.
async def clear_cached(self, context: InjectionContext): """Clear the cached value of this record, if any.""" await self.clear_cached_key(context, self.cache_key(self._id))
[ "async", "def", "clear_cached", "(", "self", ",", "context", ":", "InjectionContext", ")", ":", "await", "self", ".", "clear_cached_key", "(", "context", ",", "self", ".", "cache_key", "(", "self", ".", "_id", ")", ")" ]
[ 180, 4 ]
[ 182, 70 ]
python
en
['en', 'en', 'en']
True
BaseRecord.retrieve_by_id
( cls, context: InjectionContext, record_id: str, cached: bool = True )
Retrieve a stored record by ID. Args: context: The injection context to use record_id: The ID of the record to find cached: Whether to check the cache for this record
Retrieve a stored record by ID.
async def retrieve_by_id( cls, context: InjectionContext, record_id: str, cached: bool = True ) -> "BaseRecord": """Retrieve a stored record by ID. Args: context: The injection context to use record_id: The ID of the record to find cached: Whether to chec...
[ "async", "def", "retrieve_by_id", "(", "cls", ",", "context", ":", "InjectionContext", ",", "record_id", ":", "str", ",", "cached", ":", "bool", "=", "True", ")", "->", "\"BaseRecord\"", ":", "cache_key", "=", "cls", ".", "cache_key", "(", "record_id", ")"...
[ 185, 4 ]
[ 210, 48 ]
python
en
['en', 'en', 'en']
True
BaseRecord.retrieve_by_tag_filter
( cls, context: InjectionContext, tag_filter: dict, post_filter: dict = None )
Retrieve a record by tag filter. Args: context: The injection context to use tag_filter: The filter dictionary to apply post_filter: Additional value filters to apply after retrieval
Retrieve a record by tag filter.
async def retrieve_by_tag_filter( cls, context: InjectionContext, tag_filter: dict, post_filter: dict = None ) -> "BaseRecord": """Retrieve a record by tag filter. Args: context: The injection context to use tag_filter: The filter dictionary to apply post...
[ "async", "def", "retrieve_by_tag_filter", "(", "cls", ",", "context", ":", "InjectionContext", ",", "tag_filter", ":", "dict", ",", "post_filter", ":", "dict", "=", "None", ")", "->", "\"BaseRecord\"", ":", "storage", ":", "BaseStorage", "=", "await", "context...
[ 213, 4 ]
[ 239, 20 ]
python
en
['en', 'sk', 'en']
True
BaseRecord.query
( cls, context: InjectionContext, tag_filter: dict = None, post_filter: dict = None, )
Query stored records. Args: context: The injection context to use tag_filter: An optional dictionary of tag filter clauses post_filter: Additional value filters to apply
Query stored records.
async def query( cls, context: InjectionContext, tag_filter: dict = None, post_filter: dict = None, ) -> Sequence["BaseRecord"]: """Query stored records. Args: context: The injection context to use tag_filter: An optional dictionary of tag fil...
[ "async", "def", "query", "(", "cls", ",", "context", ":", "InjectionContext", ",", "tag_filter", ":", "dict", "=", "None", ",", "post_filter", ":", "dict", "=", "None", ",", ")", "->", "Sequence", "[", "\"BaseRecord\"", "]", ":", "storage", ":", "BaseSto...
[ 242, 4 ]
[ 267, 21 ]
python
en
['en', 'en', 'en']
True
BaseRecord.save
( self, context: InjectionContext, *, reason: str = None, log_params: Mapping[str, Any] = None, log_override: bool = False, webhook: bool = None, )
Persist the record to storage. Args: context: The injection context to use reason: A reason to add to the log log_params: Additional parameters to log webhook: Flag to override whether the webhook is sent
Persist the record to storage.
async def save( self, context: InjectionContext, *, reason: str = None, log_params: Mapping[str, Any] = None, log_override: bool = False, webhook: bool = None, ) -> str: """Persist the record to storage. Args: context: The injectio...
[ "async", "def", "save", "(", "self", ",", "context", ":", "InjectionContext", ",", "*", ",", "reason", ":", "str", "=", "None", ",", "log_params", ":", "Mapping", "[", "str", ",", "Any", "]", "=", "None", ",", "log_override", ":", "bool", "=", "False...
[ 269, 4 ]
[ 312, 23 ]
python
en
['en', 'en', 'en']
True
BaseRecord.post_save
( self, context: InjectionContext, new_record: bool, last_state: str, webhook: bool = None, )
Perform post-save actions. Args: context: The injection context to use new_record: Flag indicating if the record was just created last_state: The previous state value webhook: Adjust whether the webhook is called
Perform post-save actions.
async def post_save( self, context: InjectionContext, new_record: bool, last_state: str, webhook: bool = None, ): """Perform post-save actions. Args: context: The injection context to use new_record: Flag indicating if the record was j...
[ "async", "def", "post_save", "(", "self", ",", "context", ":", "InjectionContext", ",", "new_record", ":", "bool", ",", "last_state", ":", "str", ",", "webhook", ":", "bool", "=", "None", ",", ")", ":", "await", "self", ".", "clear_cached", "(", "context...
[ 314, 4 ]
[ 337, 13 ]
python
en
['en', 'en', 'en']
True
BaseRecord.delete_record
(self, context: InjectionContext)
Remove the stored record. Args: context: The injection context to use
Remove the stored record.
async def delete_record(self, context: InjectionContext): """Remove the stored record. Args: context: The injection context to use """ if self._id: storage: BaseStorage = await context.inject(BaseStorage) await storage.delete_record(self.storage_recor...
[ "async", "def", "delete_record", "(", "self", ",", "context", ":", "InjectionContext", ")", ":", "if", "self", ".", "_id", ":", "storage", ":", "BaseStorage", "=", "await", "context", ".", "inject", "(", "BaseStorage", ")", "await", "storage", ".", "delete...
[ 339, 4 ]
[ 347, 60 ]
python
en
['en', 'it', 'en']
True
BaseRecord.webhook_payload
(self)
Return a JSON-serialized version of the record for the webhook.
Return a JSON-serialized version of the record for the webhook.
def webhook_payload(self): """Return a JSON-serialized version of the record for the webhook.""" return self.serialize()
[ "def", "webhook_payload", "(", "self", ")", ":", "return", "self", ".", "serialize", "(", ")" ]
[ 351, 4 ]
[ 353, 31 ]
python
en
['en', 'en', 'en']
True
BaseRecord.webhook_topic
(self)
Return the webhook topic value.
Return the webhook topic value.
def webhook_topic(self): """Return the webhook topic value.""" return self.WEBHOOK_TOPIC
[ "def", "webhook_topic", "(", "self", ")", ":", "return", "self", ".", "WEBHOOK_TOPIC" ]
[ 356, 4 ]
[ 358, 33 ]
python
en
['en', 'en', 'en']
True
BaseRecord.send_webhook
( self, context: InjectionContext, payload: Any, topic: str = None )
Send a standard webhook. Args: context: The injection context to use payload: The webhook payload topic: The webhook topic, defaulting to WEBHOOK_TOPIC
Send a standard webhook.
async def send_webhook( self, context: InjectionContext, payload: Any, topic: str = None ): """Send a standard webhook. Args: context: The injection context to use payload: The webhook payload topic: The webhook topic, defaulting to WEBHOOK_TOPIC ...
[ "async", "def", "send_webhook", "(", "self", ",", "context", ":", "InjectionContext", ",", "payload", ":", "Any", ",", "topic", ":", "str", "=", "None", ")", ":", "if", "not", "payload", ":", "return", "if", "not", "topic", ":", "topic", "=", "self", ...
[ 360, 4 ]
[ 378, 56 ]
python
en
['en', 'lb', 'en']
True
BaseRecord.log_state
( cls, context: InjectionContext, msg: str, params: dict = None, override: bool = False, )
Print a message with increased visibility (for testing).
Print a message with increased visibility (for testing).
def log_state( cls, context: InjectionContext, msg: str, params: dict = None, override: bool = False, ): """Print a message with increased visibility (for testing).""" if override or ( cls.LOG_STATE_FLAG and context.settings.get(cls.LOG_STATE_FLAG)...
[ "def", "log_state", "(", "cls", ",", "context", ":", "InjectionContext", ",", "msg", ":", "str", ",", "params", ":", "dict", "=", "None", ",", "override", ":", "bool", "=", "False", ",", ")", ":", "if", "override", "or", "(", "cls", ".", "LOG_STATE_F...
[ 381, 4 ]
[ 396, 39 ]
python
en
['en', 'en', 'en']
True
BaseRecord.strip_tag_prefix
(cls, tags: dict)
Strip tilde from unencrypted tag names.
Strip tilde from unencrypted tag names.
def strip_tag_prefix(cls, tags: dict): """Strip tilde from unencrypted tag names.""" return ( {(k[1:] if "~" in k else k): v for (k, v) in tags.items()} if tags else {} )
[ "def", "strip_tag_prefix", "(", "cls", ",", "tags", ":", "dict", ")", ":", "return", "(", "{", "(", "k", "[", "1", ":", "]", "if", "\"~\"", "in", "k", "else", "k", ")", ":", "v", "for", "(", "k", ",", "v", ")", "in", "tags", ".", "items", "...
[ 399, 4 ]
[ 403, 9 ]
python
en
['en', 'en', 'en']
True
BaseRecord.prefix_tag_filter
(cls, tag_filter: dict)
Prefix unencrypted tags used in the tag filter.
Prefix unencrypted tags used in the tag filter.
def prefix_tag_filter(cls, tag_filter: dict): """Prefix unencrypted tags used in the tag filter.""" ret = None if tag_filter: tag_map = cls.get_tag_map() ret = {} for k, v in tag_filter.items(): if k in ("$or", "$and") and isinstance(v, list): ...
[ "def", "prefix_tag_filter", "(", "cls", ",", "tag_filter", ":", "dict", ")", ":", "ret", "=", "None", "if", "tag_filter", ":", "tag_map", "=", "cls", ".", "get_tag_map", "(", ")", "ret", "=", "{", "}", "for", "k", ",", "v", "in", "tag_filter", ".", ...
[ 406, 4 ]
[ 419, 18 ]
python
en
['en', 'en', 'en']
True
BaseRecord.__eq__
(self, other: Any)
Comparison between records.
Comparison between records.
def __eq__(self, other: Any) -> bool: """Comparison between records.""" if type(other) is type(self): return self.value == other.value and self.tags == other.tags return False
[ "def", "__eq__", "(", "self", ",", "other", ":", "Any", ")", "->", "bool", ":", "if", "type", "(", "other", ")", "is", "type", "(", "self", ")", ":", "return", "self", ".", "value", "==", "other", ".", "value", "and", "self", ".", "tags", "==", ...
[ 421, 4 ]
[ 425, 20 ]
python
en
['nl', 'en', 'en']
True
ThreeNN.forward
(ctx, target: torch.Tensor, source: torch.Tensor)
Find the top-3 nearest neighbors of the target set from the source set. Args: target (Tensor): shape (B, N, 3), points set that needs to find the nearest neighbors. source (Tensor): shape (B, M, 3), points set that is used to find the nearest neig...
Find the top-3 nearest neighbors of the target set from the source set.
def forward(ctx, target: torch.Tensor, source: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]: """Find the top-3 nearest neighbors of the target set from the source set. Args: target (Tensor): shape (B, N, 3), points set that needs to find the nea...
[ "def", "forward", "(", "ctx", ",", "target", ":", "torch", ".", "Tensor", ",", "source", ":", "torch", ".", "Tensor", ")", "->", "Tuple", "[", "torch", ".", "Tensor", ",", "torch", ".", "Tensor", "]", ":", "assert", "target", ".", "is_contiguous", "(...
[ 10, 4 ]
[ 34, 37 ]
python
en
['en', 'en', 'en']
True
TestInvitation.test_init
(self)
Test initialization.
Test initialization.
def test_init(self): """Test initialization.""" assert self.invitation.invitation == self.connection_invitation assert self.invitation.message == self.test_message
[ "def", "test_init", "(", "self", ")", ":", "assert", "self", ".", "invitation", ".", "invitation", "==", "self", ".", "connection_invitation", "assert", "self", ".", "invitation", ".", "message", "==", "self", ".", "test_message" ]
[ 27, 4 ]
[ 30, 59 ]
python
co
['es', 'co', 'en']
False
TestInvitation.test_deserialize
(self, mock_invitation_schema_load)
Test deserialization.
Test deserialization.
def test_deserialize(self, mock_invitation_schema_load): """ Test deserialization. """ obj = {"obj": "obj"} invitation = Invitation.deserialize(obj) mock_invitation_schema_load.assert_called_once_with(obj) assert invitation is mock_invitation_schema_load.return_...
[ "def", "test_deserialize", "(", "self", ",", "mock_invitation_schema_load", ")", ":", "obj", "=", "{", "\"obj\"", ":", "\"obj\"", "}", "invitation", "=", "Invitation", ".", "deserialize", "(", "obj", ")", "mock_invitation_schema_load", ".", "assert_called_once_with"...
[ 37, 4 ]
[ 46, 69 ]
python
en
['en', 'error', 'th']
False
TestInvitation.test_serialize
(self, mock_invitation_schema_dump)
Test serialization.
Test serialization.
def test_serialize(self, mock_invitation_schema_dump): """ Test serialization. """ invitation_dict = self.invitation.serialize() mock_invitation_schema_dump.assert_called_once_with(self.invitation) assert invitation_dict is mock_invitation_schema_dump.return_value
[ "def", "test_serialize", "(", "self", ",", "mock_invitation_schema_dump", ")", ":", "invitation_dict", "=", "self", ".", "invitation", ".", "serialize", "(", ")", "mock_invitation_schema_dump", ".", "assert_called_once_with", "(", "self", ".", "invitation", ")", "as...
[ 49, 4 ]
[ 56, 74 ]
python
en
['en', 'error', 'th']
False
ErrorX.array
(self)
Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data. The 'array' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data. The 'array' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def array(self): """ Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data. The 'array' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- ...
[ "def", "array", "(", "self", ")", ":", "return", "self", "[", "\"array\"", "]" ]
[ 31, 4 ]
[ 43, 28 ]
python
en
['en', 'error', 'th']
False
ErrorX.arrayminus
(self)
Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data. The 'arrayminus' property is an array that may be specified as a tuple, list, numpy array, or pandas Se...
Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data. The 'arrayminus' property is an array that may be specified as a tuple, list, numpy array, or pandas Se...
def arrayminus(self): """ Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data. The 'arrayminus' property is an array that may be specified as a tuple, ...
[ "def", "arrayminus", "(", "self", ")", ":", "return", "self", "[", "\"arrayminus\"", "]" ]
[ 52, 4 ]
[ 65, 33 ]
python
en
['en', 'error', 'th']
False
ErrorX.arrayminussrc
(self)
Sets the source reference on Chart Studio Cloud for arrayminus . The 'arrayminussrc' 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 arrayminus . The 'arrayminussrc' property must be specified as a string or as a plotly.grid_objs.Column object
def arrayminussrc(self): """ Sets the source reference on Chart Studio Cloud for arrayminus . The 'arrayminussrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["arra...
[ "def", "arrayminussrc", "(", "self", ")", ":", "return", "self", "[", "\"arrayminussrc\"", "]" ]
[ 74, 4 ]
[ 86, 36 ]
python
en
['en', 'error', 'th']
False
ErrorX.arraysrc
(self)
Sets the source reference on Chart Studio Cloud for array . The 'arraysrc' 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 array . The 'arraysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def arraysrc(self): """ Sets the source reference on Chart Studio Cloud for array . The 'arraysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["arraysrc"]
[ "def", "arraysrc", "(", "self", ")", ":", "return", "self", "[", "\"arraysrc\"", "]" ]
[ 95, 4 ]
[ 106, 31 ]
python
en
['en', 'error', 'th']
False