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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Link.sourcesrc | (self) |
Sets the source reference on Chart Studio Cloud for source .
The 'sourcesrc' 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 source .
The 'sourcesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def sourcesrc(self):
"""
Sets the source reference on Chart Studio Cloud for source .
The 'sourcesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["sourcesrc"] | [
"def",
"sourcesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sourcesrc\"",
"]"
] | [
494,
4
] | [
505,
32
] | python | en | ['en', 'error', 'th'] | False |
Link.target | (self) |
An integer number `[0..nodes.length - 1]` that represents the
target node.
The 'target' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
An integer number `[0..nodes.length - 1]` that represents the
target node.
The 'target' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def target(self):
"""
An integer number `[0..nodes.length - 1]` that represents the
target node.
The 'target' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
... | [
"def",
"target",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"target\"",
"]"
] | [
514,
4
] | [
526,
29
] | python | en | ['en', 'error', 'th'] | False |
Link.targetsrc | (self) |
Sets the source reference on Chart Studio Cloud for target .
The 'targetsrc' 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 target .
The 'targetsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def targetsrc(self):
"""
Sets the source reference on Chart Studio Cloud for target .
The 'targetsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["targetsrc"] | [
"def",
"targetsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"targetsrc\"",
"]"
] | [
535,
4
] | [
546,
32
] | python | en | ['en', 'error', 'th'] | False |
Link.value | (self) |
A numeric value representing the flow volume value.
The 'value' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
A numeric value representing the flow volume value.
The 'value' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def value(self):
"""
A numeric value representing the flow volume value.
The 'value' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["value"] | [
"def",
"value",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"value\"",
"]"
] | [
555,
4
] | [
566,
28
] | python | en | ['en', 'error', 'th'] | False |
Link.valuesrc | (self) |
Sets the source reference on Chart Studio Cloud for value .
The 'valuesrc' 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 value .
The 'valuesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def valuesrc(self):
"""
Sets the source reference on Chart Studio Cloud for value .
The 'valuesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["valuesrc"] | [
"def",
"valuesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"valuesrc\"",
"]"
] | [
575,
4
] | [
586,
31
] | python | en | ['en', 'error', 'th'] | False |
Link.__init__ | (
self,
arg=None,
color=None,
colorscales=None,
colorscaledefaults=None,
colorsrc=None,
customdata=None,
customdatasrc=None,
hoverinfo=None,
hoverlabel=None,
hovertemplate=None,
hovertemplatesrc=None,
label=None,
... |
Construct a new Link object
The links of the Sankey plot.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.sankey.Link`
color
Sets the `link` color. It ... |
Construct a new Link object
The links of the Sankey plot. | def __init__(
self,
arg=None,
color=None,
colorscales=None,
colorscaledefaults=None,
colorsrc=None,
customdata=None,
customdatasrc=None,
hoverinfo=None,
hoverlabel=None,
hovertemplate=None,
hovertemplatesrc=None,
lab... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"colorscales",
"=",
"None",
",",
"colorscaledefaults",
"=",
"None",
",",
"colorsrc",
"=",
"None",
",",
"customdata",
"=",
"None",
",",
"customdatasrc",
"=",
"None",
... | [
681,
4
] | [
914,
34
] | python | en | ['en', 'error', 'th'] | False |
Legend.bgcolor | (self) |
Sets the legend background color. Defaults to
`layout.paper_bgcolor`.
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%)')
... |
Sets the legend background color. Defaults to
`layout.paper_bgcolor`.
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
... | def bgcolor(self):
"""
Sets the legend background color. Defaults to
`layout.paper_bgcolor`.
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.... | [
"def",
"bgcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolor\"",
"]"
] | [
33,
4
] | [
84,
30
] | python | en | ['en', 'error', 'th'] | False |
Legend.bordercolor | (self) |
Sets the color of the border enclosing the legend.
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... |
Sets the color of the border enclosing the legend.
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... | def bordercolor(self):
"""
Sets the color of the border enclosing the legend.
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%)')... | [
"def",
"bordercolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bordercolor\"",
"]"
] | [
93,
4
] | [
143,
34
] | python | en | ['en', 'error', 'th'] | False |
Legend.borderwidth | (self) |
Sets the width (in px) of the border enclosing the legend.
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) of the border enclosing the legend.
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) of the border enclosing the legend.
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["bord... | [
"def",
"borderwidth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"borderwidth\"",
"]"
] | [
152,
4
] | [
163,
34
] | python | en | ['en', 'error', 'th'] | False |
Legend.font | (self) |
Sets the font used to text the legend items.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.legend.Font`
- A dict of string/value properties that will be passed
to the Font constructor
... |
Sets the font used to text the legend items.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.legend.Font`
- A dict of string/value properties that will be passed
to the Font constructor
... | def font(self):
"""
Sets the font used to text the legend items.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.legend.Font`
- A dict of string/value properties that will be passed
... | [
"def",
"font",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"font\"",
"]"
] | [
172,
4
] | [
209,
27
] | python | en | ['en', 'error', 'th'] | False |
Legend.itemclick | (self) |
Determines the behavior on legend item click. "toggle" toggles
the visibility of the item clicked on the graph. "toggleothers"
makes the clicked item the sole visible item on the graph.
False disable legend item click interactions.
The 'itemclick' property is an enumeration... |
Determines the behavior on legend item click. "toggle" toggles
the visibility of the item clicked on the graph. "toggleothers"
makes the clicked item the sole visible item on the graph.
False disable legend item click interactions.
The 'itemclick' property is an enumeration... | def itemclick(self):
"""
Determines the behavior on legend item click. "toggle" toggles
the visibility of the item clicked on the graph. "toggleothers"
makes the clicked item the sole visible item on the graph.
False disable legend item click interactions.
The 'itemc... | [
"def",
"itemclick",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"itemclick\"",
"]"
] | [
218,
4
] | [
233,
32
] | python | en | ['en', 'error', 'th'] | False |
Legend.itemdoubleclick | (self) |
Determines the behavior on legend item double-click. "toggle"
toggles the visibility of the item clicked on the graph.
"toggleothers" makes the clicked item the sole visible item on
the graph. False disable legend item double-click interactions.
The 'itemdoubleclick' proper... |
Determines the behavior on legend item double-click. "toggle"
toggles the visibility of the item clicked on the graph.
"toggleothers" makes the clicked item the sole visible item on
the graph. False disable legend item double-click interactions.
The 'itemdoubleclick' proper... | def itemdoubleclick(self):
"""
Determines the behavior on legend item double-click. "toggle"
toggles the visibility of the item clicked on the graph.
"toggleothers" makes the clicked item the sole visible item on
the graph. False disable legend item double-click interactions.
... | [
"def",
"itemdoubleclick",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"itemdoubleclick\"",
"]"
] | [
242,
4
] | [
257,
38
] | python | en | ['en', 'error', 'th'] | False |
Legend.itemsizing | (self) |
Determines if the legend items symbols scale with their
corresponding "trace" attributes or remain "constant"
independent of the symbol size on the graph.
The 'itemsizing' property is an enumeration that may be specified as:
- One of the following enumeration values:
... |
Determines if the legend items symbols scale with their
corresponding "trace" attributes or remain "constant"
independent of the symbol size on the graph.
The 'itemsizing' property is an enumeration that may be specified as:
- One of the following enumeration values:
... | def itemsizing(self):
"""
Determines if the legend items symbols scale with their
corresponding "trace" attributes or remain "constant"
independent of the symbol size on the graph.
The 'itemsizing' property is an enumeration that may be specified as:
- One of the f... | [
"def",
"itemsizing",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"itemsizing\"",
"]"
] | [
266,
4
] | [
280,
33
] | python | en | ['en', 'error', 'th'] | False |
Legend.orientation | (self) |
Sets the orientation of the legend.
The 'orientation' property is an enumeration that may be specified as:
- One of the following enumeration values:
['v', 'h']
Returns
-------
Any
|
Sets the orientation of the legend.
The 'orientation' property is an enumeration that may be specified as:
- One of the following enumeration values:
['v', 'h'] | def orientation(self):
"""
Sets the orientation of the legend.
The 'orientation' property is an enumeration that may be specified as:
- One of the following enumeration values:
['v', 'h']
Returns
-------
Any
"""
return self[... | [
"def",
"orientation",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"orientation\"",
"]"
] | [
289,
4
] | [
301,
34
] | python | en | ['en', 'error', 'th'] | False |
Legend.title | (self) |
The 'title' property is an instance of Title
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.legend.Title`
- A dict of string/value properties that will be passed
to the Title constructor
Supported dict properties:
... |
The 'title' property is an instance of Title
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.legend.Title`
- A dict of string/value properties that will be passed
to the Title constructor
Supported dict properties:
... | def title(self):
"""
The 'title' property is an instance of Title
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.legend.Title`
- A dict of string/value properties that will be passed
to the Title constructor
Supported ... | [
"def",
"title",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"title\"",
"]"
] | [
310,
4
] | [
336,
28
] | python | en | ['en', 'error', 'th'] | False |
Legend.tracegroupgap | (self) |
Sets the amount of vertical space (in px) between legend
groups.
The 'tracegroupgap' 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 vertical space (in px) between legend
groups.
The 'tracegroupgap' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def tracegroupgap(self):
"""
Sets the amount of vertical space (in px) between legend
groups.
The 'tracegroupgap' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
... | [
"def",
"tracegroupgap",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tracegroupgap\"",
"]"
] | [
345,
4
] | [
357,
36
] | python | en | ['en', 'error', 'th'] | False |
Legend.traceorder | (self) |
Determines the order at which the legend items are displayed.
If "normal", the items are displayed top-to-bottom in the same
order as the input data. If "reversed", the items are displayed
in the opposite order as "normal". If "grouped", the items are
displayed in groups (when a... |
Determines the order at which the legend items are displayed.
If "normal", the items are displayed top-to-bottom in the same
order as the input data. If "reversed", the items are displayed
in the opposite order as "normal". If "grouped", the items are
displayed in groups (when a... | def traceorder(self):
"""
Determines the order at which the legend items are displayed.
If "normal", the items are displayed top-to-bottom in the same
order as the input data. If "reversed", the items are displayed
in the opposite order as "normal". If "grouped", the items are
... | [
"def",
"traceorder",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"traceorder\"",
"]"
] | [
366,
4
] | [
386,
33
] | python | en | ['en', 'error', 'th'] | False |
Legend.uirevision | (self) |
Controls persistence of legend-driven changes in trace and pie
label visibility. Defaults to `layout.uirevision`.
The 'uirevision' property accepts values of any type
Returns
-------
Any
|
Controls persistence of legend-driven changes in trace and pie
label visibility. Defaults to `layout.uirevision`.
The 'uirevision' property accepts values of any type | def uirevision(self):
"""
Controls persistence of legend-driven changes in trace and pie
label visibility. Defaults to `layout.uirevision`.
The 'uirevision' property accepts values of any type
Returns
-------
Any
"""
return self["uirevision"] | [
"def",
"uirevision",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uirevision\"",
"]"
] | [
395,
4
] | [
406,
33
] | python | en | ['en', 'error', 'th'] | False |
Legend.valign | (self) |
Sets the vertical alignment of the symbols with respect to
their associated text.
The 'valign' property is an enumeration that may be specified as:
- One of the following enumeration values:
['top', 'middle', 'bottom']
Returns
-------
Any
... |
Sets the vertical alignment of the symbols with respect to
their associated text.
The 'valign' property is an enumeration that may be specified as:
- One of the following enumeration values:
['top', 'middle', 'bottom'] | def valign(self):
"""
Sets the vertical alignment of the symbols with respect to
their associated text.
The 'valign' property is an enumeration that may be specified as:
- One of the following enumeration values:
['top', 'middle', 'bottom']
Returns... | [
"def",
"valign",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"valign\"",
"]"
] | [
415,
4
] | [
428,
29
] | python | en | ['en', 'error', 'th'] | False |
Legend.x | (self) |
Sets the x position (in normalized coordinates) of the legend.
Defaults to 1.02 for vertical legends and defaults to 0 for
horizontal legends.
The 'x' property is a number and may be specified as:
- An int or float in the interval [-2, 3]
Returns
-------
... |
Sets the x position (in normalized coordinates) of the legend.
Defaults to 1.02 for vertical legends and defaults to 0 for
horizontal legends.
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 (in normalized coordinates) of the legend.
Defaults to 1.02 for vertical legends and defaults to 0 for
horizontal legends.
The 'x' property is a number and may be specified as:
- An int or float in the interval [-2, 3]
... | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
437,
4
] | [
450,
24
] | python | en | ['en', 'error', 'th'] | False |
Legend.xanchor | (self) |
Sets the legend's horizontal position anchor. This anchor binds
the `x` position to the "left", "center" or "right" of the
legend. Value "auto" anchors legends to the right for `x`
values greater than or equal to 2/3, anchors legends to the
left for `x` values less than or equal... |
Sets the legend's horizontal position anchor. This anchor binds
the `x` position to the "left", "center" or "right" of the
legend. Value "auto" anchors legends to the right for `x`
values greater than or equal to 2/3, anchors legends to the
left for `x` values less than or equal... | def xanchor(self):
"""
Sets the legend's horizontal position anchor. This anchor binds
the `x` position to the "left", "center" or "right" of the
legend. Value "auto" anchors legends to the right for `x`
values greater than or equal to 2/3, anchors legends to the
left for... | [
"def",
"xanchor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xanchor\"",
"]"
] | [
459,
4
] | [
476,
30
] | python | en | ['en', 'error', 'th'] | False |
Legend.y | (self) |
Sets the y position (in normalized coordinates) of the legend.
Defaults to 1 for vertical legends, defaults to "-0.1" for
horizontal legends on graphs w/o range sliders and defaults to
1.1 for horizontal legends on graph with one or multiple range
sliders.
The 'y' p... |
Sets the y position (in normalized coordinates) of the legend.
Defaults to 1 for vertical legends, defaults to "-0.1" for
horizontal legends on graphs w/o range sliders and defaults to
1.1 for horizontal legends on graph with one or multiple range
sliders.
The 'y' p... | def y(self):
"""
Sets the y position (in normalized coordinates) of the legend.
Defaults to 1 for vertical legends, defaults to "-0.1" for
horizontal legends on graphs w/o range sliders and defaults to
1.1 for horizontal legends on graph with one or multiple range
sliders... | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
485,
4
] | [
500,
24
] | python | en | ['en', 'error', 'th'] | False |
Legend.yanchor | (self) |
Sets the legend's vertical position anchor This anchor binds
the `y` position to the "top", "middle" or "bottom" of the
legend. Value "auto" anchors legends at their bottom for `y`
values less than or equal to 1/3, anchors legends to at their
top for `y` values greater than or e... |
Sets the legend's vertical position anchor This anchor binds
the `y` position to the "top", "middle" or "bottom" of the
legend. Value "auto" anchors legends at their bottom for `y`
values less than or equal to 1/3, anchors legends to at their
top for `y` values greater than or e... | def yanchor(self):
"""
Sets the legend's vertical position anchor This anchor binds
the `y` position to the "top", "middle" or "bottom" of the
legend. Value "auto" anchors legends at their bottom for `y`
values less than or equal to 1/3, anchors legends to at their
top fo... | [
"def",
"yanchor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"yanchor\"",
"]"
] | [
509,
4
] | [
526,
30
] | python | en | ['en', 'error', 'th'] | False |
Legend.__init__ | (
self,
arg=None,
bgcolor=None,
bordercolor=None,
borderwidth=None,
font=None,
itemclick=None,
itemdoubleclick=None,
itemsizing=None,
orientation=None,
title=None,
tracegroupgap=None,
traceorder=None,
uirevis... |
Construct a new Legend object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.layout.Legend`
bgcolor
Sets the legend background color. Defaults to
`... |
Construct a new Legend object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.layout.Legend`
bgcolor
Sets the legend background color. Defaults to
`... | def __init__(
self,
arg=None,
bgcolor=None,
bordercolor=None,
borderwidth=None,
font=None,
itemclick=None,
itemdoubleclick=None,
itemsizing=None,
orientation=None,
title=None,
tracegroupgap=None,
traceorder=None,
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"bgcolor",
"=",
"None",
",",
"bordercolor",
"=",
"None",
",",
"borderwidth",
"=",
"None",
",",
"font",
"=",
"None",
",",
"itemclick",
"=",
"None",
",",
"itemdoubleclick",
"=",
"None",
",",
... | [
615,
4
] | [
830,
34
] | python | en | ['en', 'error', 'th'] | False |
TempRole.temprole_list | (self, ctx, member: discord.Member=None) | Lists temporary roles. | Lists temporary roles. | async def temprole_list(self, ctx, member: discord.Member=None):
"""Lists temporary roles."""
if member is None:
query = 'SELECT * FROM temproles INNER JOIN timers ON temproles.timer_id = timers.id ORDER BY timers.expires;'
records = await self.bot.pool.fetch(query)
else... | [
"async",
"def",
"temprole_list",
"(",
"self",
",",
"ctx",
",",
"member",
":",
"discord",
".",
"Member",
"=",
"None",
")",
":",
"if",
"member",
"is",
"None",
":",
"query",
"=",
"'SELECT * FROM temproles INNER JOIN timers ON temproles.timer_id = timers.id ORDER BY timer... | [
56,
4
] | [
84,
26
] | python | en | ['en', 'en', 'en'] | True |
TempRole.temprole_add | (self, ctx, member: discord.Member, duration: time.ShortTime, *, role: discord.Role) | Add a temporary role to a member. | Add a temporary role to a member. | async def temprole_add(self, ctx, member: discord.Member, duration: time.ShortTime, *, role: discord.Role):
"""Add a temporary role to a member."""
timers = self.bot.get_cog('Timers')
if timers is None:
return await ctx.send('Timers module is not loaded.')
query = 'SELECT *... | [
"async",
"def",
"temprole_add",
"(",
"self",
",",
"ctx",
",",
"member",
":",
"discord",
".",
"Member",
",",
"duration",
":",
"time",
".",
"ShortTime",
",",
"*",
",",
"role",
":",
"discord",
".",
"Role",
")",
":",
"timers",
"=",
"self",
".",
"bot",
... | [
92,
4
] | [
126,
117
] | python | en | ['en', 'en', 'en'] | True |
TempRole.temprole_remove | (self, ctx, member: discord.Member, *, role: discord.Role) | Remove a temporary role from a member. | Remove a temporary role from a member. | async def temprole_remove(self, ctx, member: discord.Member, *, role: discord.Role):
"""Remove a temporary role from a member."""
query = 'SELECT timer_id FROM temproles WHERE user_id = $1 AND role_id = $2;'
record = await self.bot.pool.fetchrow(query, member.id, role.id)
timer_id = re... | [
"async",
"def",
"temprole_remove",
"(",
"self",
",",
"ctx",
",",
"member",
":",
"discord",
".",
"Member",
",",
"*",
",",
"role",
":",
"discord",
".",
"Role",
")",
":",
"query",
"=",
"'SELECT timer_id FROM temproles WHERE user_id = $1 AND role_id = $2;'",
"record",... | [
132,
4
] | [
148,
74
] | python | en | ['en', 'en', 'en'] | True |
TempRole.temprole_whitelist | (self, ctx) | List roles in the temporary role whitelist. | List roles in the temporary role whitelist. | async def temprole_whitelist(self, ctx):
"""List roles in the temporary role whitelist."""
query = 'SELECT * FROM temprole_whitelist;'
records = await self.bot.pool.fetch(query)
if len(records) == 0:
return await ctx.send('Whitelist Empty')
else:
embed =... | [
"async",
"def",
"temprole_whitelist",
"(",
"self",
",",
"ctx",
")",
":",
"query",
"=",
"'SELECT * FROM temprole_whitelist;'",
"records",
"=",
"await",
"self",
".",
"bot",
".",
"pool",
".",
"fetch",
"(",
"query",
")",
"if",
"len",
"(",
"records",
")",
"==",... | [
153,
4
] | [
173,
39
] | python | en | ['en', 'en', 'en'] | True |
TempRole.temprole_whitelist_add | (self, ctx, *, role: discord.Role) | Add a role to the temporary role whitelist. | Add a role to the temporary role whitelist. | async def temprole_whitelist_add(self, ctx, *, role: discord.Role):
"""Add a role to the temporary role whitelist."""
query = 'INSERT INTO temprole_whitelist (role_id) VALUES ($1);'
await self.bot.pool.execute(query, role.id)
await ctx.send(f'Added role {role.name} to whitelist.') | [
"async",
"def",
"temprole_whitelist_add",
"(",
"self",
",",
"ctx",
",",
"*",
",",
"role",
":",
"discord",
".",
"Role",
")",
":",
"query",
"=",
"'INSERT INTO temprole_whitelist (role_id) VALUES ($1);'",
"await",
"self",
".",
"bot",
".",
"pool",
".",
"execute",
... | [
178,
4
] | [
184,
63
] | python | en | ['en', 'en', 'en'] | True |
TempRole.temprole_whitelist_remove | (self, ctx, *, role: discord.Role) | Remove a role from the temporary role whitelist. | Remove a role from the temporary role whitelist. | async def temprole_whitelist_remove(self, ctx, *, role: discord.Role):
"""Remove a role from the temporary role whitelist."""
query = 'DELETE FROM temprole_whitelist WHERE role_id = $1;'
await self.bot.pool.execute(query, role.id)
await ctx.send(f'Removed role {role.name} from whitelis... | [
"async",
"def",
"temprole_whitelist_remove",
"(",
"self",
",",
"ctx",
",",
"*",
",",
"role",
":",
"discord",
".",
"Role",
")",
":",
"query",
"=",
"'DELETE FROM temprole_whitelist WHERE role_id = $1;'",
"await",
"self",
".",
"bot",
".",
"pool",
".",
"execute",
... | [
189,
4
] | [
195,
67
] | python | en | ['en', 'en', 'en'] | True |
Contours.coloring | (self) |
Determines the coloring method showing the contour values. If
"fill", coloring is done evenly between each contour level If
"heatmap", a heatmap gradient coloring is applied between each
contour level. If "lines", coloring is done on the contour
lines. If "none", no coloring is ... |
Determines the coloring method showing the contour values. If
"fill", coloring is done evenly between each contour level If
"heatmap", a heatmap gradient coloring is applied between each
contour level. If "lines", coloring is done on the contour
lines. If "none", no coloring is ... | def coloring(self):
"""
Determines the coloring method showing the contour values. If
"fill", coloring is done evenly between each contour level If
"heatmap", a heatmap gradient coloring is applied between each
contour level. If "lines", coloring is done on the contour
li... | [
"def",
"coloring",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"coloring\"",
"]"
] | [
27,
4
] | [
43,
31
] | python | en | ['en', 'error', 'th'] | False |
Contours.end | (self) |
Sets the end contour level value. Must be more than
`contours.start`
The 'end' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the end contour level value. Must be more than
`contours.start`
The 'end' property is a number and may be specified as:
- An int or float | def end(self):
"""
Sets the end contour level value. Must be more than
`contours.start`
The 'end' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["end"] | [
"def",
"end",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"end\"",
"]"
] | [
52,
4
] | [
64,
26
] | python | en | ['en', 'error', 'th'] | False |
Contours.labelfont | (self) |
Sets the font used for labeling the contour levels. The default
color comes from the lines, if shown. The default family and
size come from `layout.font`.
The 'labelfont' property is an instance of Labelfont
that may be specified as:
- An instance of :class:`plotl... |
Sets the font used for labeling the contour levels. The default
color comes from the lines, if shown. The default family and
size come from `layout.font`.
The 'labelfont' property is an instance of Labelfont
that may be specified as:
- An instance of :class:`plotl... | def labelfont(self):
"""
Sets the font used for labeling the contour levels. The default
color comes from the lines, if shown. The default family and
size come from `layout.font`.
The 'labelfont' property is an instance of Labelfont
that may be specified as:
... | [
"def",
"labelfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"labelfont\"",
"]"
] | [
73,
4
] | [
112,
32
] | python | en | ['en', 'error', 'th'] | False |
Contours.labelformat | (self) |
Sets the contour label formatting rule using d3 formatting
mini-language which is very similar to Python, see:
https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format
The 'labelformat' property is a string and must be specified as:
- A stri... |
Sets the contour label formatting rule using d3 formatting
mini-language which is very similar to Python, see:
https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format
The 'labelformat' property is a string and must be specified as:
- A stri... | def labelformat(self):
"""
Sets the contour label formatting rule using d3 formatting
mini-language which is very similar to Python, see:
https://github.com/d3/d3-3.x-api-
reference/blob/master/Formatting.md#d3_format
The 'labelformat' property is a string and must b... | [
"def",
"labelformat",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"labelformat\"",
"]"
] | [
121,
4
] | [
136,
34
] | python | en | ['en', 'error', 'th'] | False |
Contours.operation | (self) |
Sets the constraint operation. "=" keeps regions equal to
`value` "<" and "<=" keep regions less than `value` ">" and
">=" keep regions greater than `value` "[]", "()", "[)", and
"(]" keep regions inside `value[0]` to `value[1]` "][", ")(",
"](", ")[" keep regions outside `value... |
Sets the constraint operation. "=" keeps regions equal to
`value` "<" and "<=" keep regions less than `value` ">" and
">=" keep regions greater than `value` "[]", "()", "[)", and
"(]" keep regions inside `value[0]` to `value[1]` "][", ")(",
"](", ")[" keep regions outside `value... | def operation(self):
"""
Sets the constraint operation. "=" keeps regions equal to
`value` "<" and "<=" keep regions less than `value` ">" and
">=" keep regions greater than `value` "[]", "()", "[)", and
"(]" keep regions inside `value[0]` to `value[1]` "][", ")(",
"](", ... | [
"def",
"operation",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"operation\"",
"]"
] | [
145,
4
] | [
165,
32
] | python | en | ['en', 'error', 'th'] | False |
Contours.showlabels | (self) |
Determines whether to label the contour lines with their
values.
The 'showlabels' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether to label the contour lines with their
values.
The 'showlabels' property must be specified as a bool
(either True, or False) | def showlabels(self):
"""
Determines whether to label the contour lines with their
values.
The 'showlabels' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showlabels"] | [
"def",
"showlabels",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showlabels\"",
"]"
] | [
174,
4
] | [
186,
33
] | python | en | ['en', 'error', 'th'] | False |
Contours.showlines | (self) |
Determines whether or not the contour lines are drawn. Has an
effect only if `contours.coloring` is set to "fill".
The 'showlines' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not the contour lines are drawn. Has an
effect only if `contours.coloring` is set to "fill".
The 'showlines' property must be specified as a bool
(either True, or False) | def showlines(self):
"""
Determines whether or not the contour lines are drawn. Has an
effect only if `contours.coloring` is set to "fill".
The 'showlines' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
... | [
"def",
"showlines",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showlines\"",
"]"
] | [
195,
4
] | [
207,
32
] | python | en | ['en', 'error', 'th'] | False |
Contours.size | (self) |
Sets the step between each contour level. Must be positive.
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the step between each contour level. Must be positive.
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def size(self):
"""
Sets the step between each contour level. Must be positive.
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["size"] | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
216,
4
] | [
227,
27
] | python | en | ['en', 'error', 'th'] | False |
Contours.start | (self) |
Sets the starting contour level value. Must be less than
`contours.end`
The 'start' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the starting contour level value. Must be less than
`contours.end`
The 'start' property is a number and may be specified as:
- An int or float | def start(self):
"""
Sets the starting contour level value. Must be less than
`contours.end`
The 'start' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["start"] | [
"def",
"start",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"start\"",
"]"
] | [
236,
4
] | [
248,
28
] | python | en | ['en', 'error', 'th'] | False |
Contours.type | (self) |
If `levels`, the data is represented as a contour plot with
multiple levels displayed. If `constraint`, the data is
represented as constraints with the invalid region shaded as
specified by the `operation` and `value` parameters.
The 'type' property is an enumeration that m... |
If `levels`, the data is represented as a contour plot with
multiple levels displayed. If `constraint`, the data is
represented as constraints with the invalid region shaded as
specified by the `operation` and `value` parameters.
The 'type' property is an enumeration that m... | def type(self):
"""
If `levels`, the data is represented as a contour plot with
multiple levels displayed. If `constraint`, the data is
represented as constraints with the invalid region shaded as
specified by the `operation` and `value` parameters.
The 'type' proper... | [
"def",
"type",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"type\"",
"]"
] | [
257,
4
] | [
272,
27
] | python | en | ['en', 'error', 'th'] | False |
Contours.value | (self) |
Sets the value or values of the constraint boundary. When
`operation` is set to one of the comparison values
(=,<,>=,>,<=) "value" is expected to be a number. When
`operation` is set to one of the interval values
([],(),[),(],][,)(,](,)[) "value" is expected to be an array of
... |
Sets the value or values of the constraint boundary. When
`operation` is set to one of the comparison values
(=,<,>=,>,<=) "value" is expected to be a number. When
`operation` is set to one of the interval values
([],(),[),(],][,)(,](,)[) "value" is expected to be an array of
... | def value(self):
"""
Sets the value or values of the constraint boundary. When
`operation` is set to one of the comparison values
(=,<,>=,>,<=) "value" is expected to be a number. When
`operation` is set to one of the interval values
([],(),[),(],][,)(,](,)[) "value" is e... | [
"def",
"value",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"value\"",
"]"
] | [
281,
4
] | [
297,
28
] | python | en | ['en', 'error', 'th'] | False |
Contours.__init__ | (
self,
arg=None,
coloring=None,
end=None,
labelfont=None,
labelformat=None,
operation=None,
showlabels=None,
showlines=None,
size=None,
start=None,
type=None,
value=None,
**kwargs
) |
Construct a new Contours object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.contour.Contours`
coloring
Determines the coloring method showing th... |
Construct a new Contours object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.contour.Contours`
coloring
Determines the coloring method showing th... | def __init__(
self,
arg=None,
coloring=None,
end=None,
labelfont=None,
labelformat=None,
operation=None,
showlabels=None,
showlines=None,
size=None,
start=None,
type=None,
value=None,
**kwargs
):
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"coloring",
"=",
"None",
",",
"end",
"=",
"None",
",",
"labelfont",
"=",
"None",
",",
"labelformat",
"=",
"None",
",",
"operation",
"=",
"None",
",",
"showlabels",
"=",
"None",
",",
"showl... | [
365,
4
] | [
530,
34
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.align | (self) |
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeration values:
['... |
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeration values:
['... | def align(self):
"""
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeratio... | [
"def",
"align",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"align\"",
"]"
] | [
25,
4
] | [
40,
28
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.alignsrc | (self) |
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def alignsrc(self):
"""
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["alignsrc"] | [
"def",
"alignsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"alignsrc\"",
"]"
] | [
49,
4
] | [
60,
31
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bgcolor | (self) |
Sets the background color of the hover labels for this trace
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva str... |
Sets the background color of the hover labels for this trace
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva str... | def bgcolor(self):
"""
Sets the background color of the hover labels for this trace
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)... | [
"def",
"bgcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolor\"",
"]"
] | [
69,
4
] | [
120,
30
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bgcolorsrc | (self) |
Sets the source reference on Chart Studio Cloud for bgcolor .
The 'bgcolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for bgcolor .
The 'bgcolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def bgcolorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for bgcolor .
The 'bgcolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["bgcolorsrc"] | [
"def",
"bgcolorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolorsrc\"",
"]"
] | [
129,
4
] | [
140,
33
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bordercolor | (self) |
Sets the border color of the hover labels for this trace.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva st... |
Sets the border color of the hover labels for this trace.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva st... | def bordercolor(self):
"""
Sets the border color of the hover labels for this trace.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%... | [
"def",
"bordercolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bordercolor\"",
"]"
] | [
149,
4
] | [
200,
34
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bordercolorsrc | (self) |
Sets the source reference on Chart Studio Cloud for
bordercolor .
The 'bordercolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for
bordercolor .
The 'bordercolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def bordercolorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for
bordercolor .
The 'bordercolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["bo... | [
"def",
"bordercolorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bordercolorsrc\"",
"]"
] | [
209,
4
] | [
221,
37
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.font | (self) |
Sets the font used in hover labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.bar.hoverlabel.Font`
- A dict of string/value properties that will be passed
to the Font constructor
... |
Sets the font used in hover labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.bar.hoverlabel.Font`
- A dict of string/value properties that will be passed
to the Font constructor
... | def font(self):
"""
Sets the font used in hover labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.bar.hoverlabel.Font`
- A dict of string/value properties that will be passed
to the... | [
"def",
"font",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"font\"",
"]"
] | [
230,
4
] | [
277,
27
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.namelength | (self) |
Sets the default length (in number of characters) of the trace
name in the hover labels for all traces. -1 shows the whole
name regardless of length. 0-3 shows the first 0-3 characters,
and an integer >3 will show the whole name if it is less than
that many characters, but if it... |
Sets the default length (in number of characters) of the trace
name in the hover labels for all traces. -1 shows the whole
name regardless of length. 0-3 shows the first 0-3 characters,
and an integer >3 will show the whole name if it is less than
that many characters, but if it... | def namelength(self):
"""
Sets the default length (in number of characters) of the trace
name in the hover labels for all traces. -1 shows the whole
name regardless of length. 0-3 shows the first 0-3 characters,
and an integer >3 will show the whole name if it is less than
... | [
"def",
"namelength",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"namelength\"",
"]"
] | [
286,
4
] | [
304,
33
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.namelengthsrc | (self) |
Sets the source reference on Chart Studio Cloud for namelength
.
The 'namelengthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for namelength
.
The 'namelengthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def namelengthsrc(self):
"""
Sets the source reference on Chart Studio Cloud for namelength
.
The 'namelengthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["name... | [
"def",
"namelengthsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"namelengthsrc\"",
"]"
] | [
313,
4
] | [
325,
36
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.__init__ | (
self,
arg=None,
align=None,
alignsrc=None,
bgcolor=None,
bgcolorsrc=None,
bordercolor=None,
bordercolorsrc=None,
font=None,
namelength=None,
namelengthsrc=None,
**kwargs
) |
Construct a new Hoverlabel object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.bar.Hoverlabel`
align
Sets the horizontal alignment of the text co... |
Construct a new Hoverlabel object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.bar.Hoverlabel`
align
Sets the horizontal alignment of the text co... | def __init__(
self,
arg=None,
align=None,
alignsrc=None,
bgcolor=None,
bgcolorsrc=None,
bordercolor=None,
bordercolorsrc=None,
font=None,
namelength=None,
namelengthsrc=None,
**kwargs
):
"""
Construct a n... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"align",
"=",
"None",
",",
"alignsrc",
"=",
"None",
",",
"bgcolor",
"=",
"None",
",",
"bgcolorsrc",
"=",
"None",
",",
"bordercolor",
"=",
"None",
",",
"bordercolorsrc",
"=",
"None",
",",
"... | [
370,
4
] | [
502,
34
] | python | en | ['en', 'error', 'th'] | False |
Marker.color | (self) |
Sets the marker color of unselected points, applied only when a
selection exists.
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%)')
... |
Sets the marker color of unselected points, applied only when a
selection exists.
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%)')
... | def color(self):
"""
Sets the marker color of unselected points, applied only when a
selection exists.
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 stri... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
66,
28
] | python | en | ['en', 'error', 'th'] | False |
Marker.opacity | (self) |
Sets the marker opacity of unselected points, applied only when
a selection exists.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
|
Sets the marker opacity of unselected points, applied only when
a selection exists.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1] | def opacity(self):
"""
Sets the marker opacity of unselected points, applied only when
a selection exists.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
"""
... | [
"def",
"opacity",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacity\"",
"]"
] | [
75,
4
] | [
87,
30
] | python | en | ['en', 'error', 'th'] | False |
Marker.size | (self) |
Sets the marker size of unselected points, applied only when a
selection exists.
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the marker size of unselected points, applied only when a
selection exists.
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def size(self):
"""
Sets the marker size of unselected points, applied only when a
selection exists.
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
r... | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
96,
4
] | [
108,
27
] | python | en | ['en', 'error', 'th'] | False |
Marker.__init__ | (self, arg=None, color=None, opacity=None, size=None, **kwargs) |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scattergl.unselected.Marker`
color
Sets the marker color of unselected... |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scattergl.unselected.Marker`
color
Sets the marker color of unselected... | def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs):
"""
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.sc... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"opacity",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Marker",
",",
"self",
")",
".",
"__init__",
"(",
"\"marke... | [
130,
4
] | [
202,
34
] | python | en | ['en', 'error', 'th'] | False |
Title.font | (self) |
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.volume.colorbar.title.Font`
-... |
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.volume.colorbar.title.Font`
-... | def font(self):
"""
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.volume.color... | [
"def",
"font",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"font\"",
"]"
] | [
15,
4
] | [
53,
27
] | python | en | ['en', 'error', 'th'] | False |
Title.side | (self) |
Determines the location of color bar's title with respect to
the color bar. Note that the title's location used to be set by
the now deprecated `titleside` attribute.
The 'side' property is an enumeration that may be specified as:
- One of the following enumeration values... |
Determines the location of color bar's title with respect to
the color bar. Note that the title's location used to be set by
the now deprecated `titleside` attribute.
The 'side' property is an enumeration that may be specified as:
- One of the following enumeration values... | def side(self):
"""
Determines the location of color bar's title with respect to
the color bar. Note that the title's location used to be set by
the now deprecated `titleside` attribute.
The 'side' property is an enumeration that may be specified as:
- One of the f... | [
"def",
"side",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"side\"",
"]"
] | [
62,
4
] | [
76,
27
] | python | en | ['en', 'error', 'th'] | False |
Title.text | (self) |
Sets the title of the color bar. Note that before the existence
of `title.text`, the title's contents used to be defined as the
`title` attribute itself. This behavior has been deprecated.
The 'text' property is a string and must be specified as:
- A string
- A ... |
Sets the title of the color bar. Note that before the existence
of `title.text`, the title's contents used to be defined as the
`title` attribute itself. This behavior has been deprecated.
The 'text' property is a string and must be specified as:
- A string
- A ... | def text(self):
"""
Sets the title of the color bar. Note that before the existence
of `title.text`, the title's contents used to be defined as the
`title` attribute itself. This behavior has been deprecated.
The 'text' property is a string and must be specified as:
... | [
"def",
"text",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"text\"",
"]"
] | [
85,
4
] | [
99,
27
] | python | en | ['en', 'error', 'th'] | False |
Title.__init__ | (self, arg=None, font=None, side=None, text=None, **kwargs) |
Construct a new Title object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.volume.colorbar.Title`
font
Sets this color bar's title font. Note that... |
Construct a new Title object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.volume.colorbar.Title`
font
Sets this color bar's title font. Note that... | def __init__(self, arg=None, font=None, side=None, text=None, **kwargs):
"""
Construct a new Title object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.volume.... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"font",
"=",
"None",
",",
"side",
"=",
"None",
",",
"text",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Title",
",",
"self",
")",
".",
"__init__",
"(",
"\"title\"",
... | [
126,
4
] | [
203,
34
] | python | en | ['en', 'error', 'th'] | False |
CredentialOffer.__init__ | (
self,
*,
offer_json: str = None,
credential_preview: dict = None,
comment: str = None,
**kwargs,
) |
Initialize credential offer object.
Args:
offer_json: Credential offer json
|
Initialize credential offer object. | def __init__(
self,
*,
offer_json: str = None,
credential_preview: dict = None,
comment: str = None,
**kwargs,
):
"""
Initialize credential offer object.
Args:
offer_json: Credential offer json
"""
super(CredentialO... | [
"def",
"__init__",
"(",
"self",
",",
"*",
",",
"offer_json",
":",
"str",
"=",
"None",
",",
"credential_preview",
":",
"dict",
"=",
"None",
",",
"comment",
":",
"str",
"=",
"None",
",",
"*",
"*",
"kwargs",
",",
")",
":",
"super",
"(",
"CredentialOffer... | [
24,
4
] | [
41,
30
] | python | en | ['en', 'error', 'th'] | False |
RPNTestMixin.simple_test_rpn | (self, x, img_metas) | Test without augmentation.
Args:
x (tuple[Tensor]): Features from the upstream network, each is
a 4D-tensor.
img_metas (list[dict]): Meta info of each image.
Returns:
list[Tensor]: Proposals of each image.
| Test without augmentation. | def simple_test_rpn(self, x, img_metas):
"""Test without augmentation.
Args:
x (tuple[Tensor]): Features from the upstream network, each is
a 4D-tensor.
img_metas (list[dict]): Meta info of each image.
Returns:
list[Tensor]: Proposals of each... | [
"def",
"simple_test_rpn",
"(",
"self",
",",
"x",
",",
"img_metas",
")",
":",
"rpn_outs",
"=",
"self",
"(",
"x",
")",
"proposal_list",
"=",
"self",
".",
"get_bboxes",
"(",
"*",
"rpn_outs",
",",
"img_metas",
")",
"return",
"proposal_list"
] | [
24,
4
] | [
37,
28
] | python | en | ['en', 'en', 'en'] | True |
BasicCache.__init__ | (self) | Initialize a `BasicCache` instance. | Initialize a `BasicCache` instance. | def __init__(self):
"""Initialize a `BasicCache` instance."""
super().__init__()
# looks like { "key": { "expires": <epoch timestamp>, "value": <val> } }
self._cache = {} | [
"def",
"__init__",
"(",
"self",
")",
":",
"super",
"(",
")",
".",
"__init__",
"(",
")",
"# looks like { \"key\": { \"expires\": <epoch timestamp>, \"value\": <val> } }",
"self",
".",
"_cache",
"=",
"{",
"}"
] | [
11,
4
] | [
15,
24
] | python | en | ['en', 'en', 'it'] | True |
BasicCache._remove_expired_cache_items | (self) | Remove all expired items from cache. | Remove all expired items from cache. | def _remove_expired_cache_items(self):
"""Remove all expired items from cache."""
for key, val in self._cache.copy().items(): # iterate copy, del from original
cache_item_expiry = val["expires"]
if cache_item_expiry is None:
continue
now = time.perf_c... | [
"def",
"_remove_expired_cache_items",
"(",
"self",
")",
":",
"for",
"key",
",",
"val",
"in",
"self",
".",
"_cache",
".",
"copy",
"(",
")",
".",
"items",
"(",
")",
":",
"# iterate copy, del from original",
"cache_item_expiry",
"=",
"val",
"[",
"\"expires\"",
... | [
17,
4
] | [
25,
36
] | python | en | ['en', 'en', 'en'] | True |
BasicCache.get | (self, key: Text) |
Get an item from the cache.
Args:
key: the key to retrieve an item for
Returns:
The record found or `None`
|
Get an item from the cache. | async def get(self, key: Text):
"""
Get an item from the cache.
Args:
key: the key to retrieve an item for
Returns:
The record found or `None`
"""
self._remove_expired_cache_items()
return self._cache.get(key)["value"] if self._cache.get... | [
"async",
"def",
"get",
"(",
"self",
",",
"key",
":",
"Text",
")",
":",
"self",
".",
"_remove_expired_cache_items",
"(",
")",
"return",
"self",
".",
"_cache",
".",
"get",
"(",
"key",
")",
"[",
"\"value\"",
"]",
"if",
"self",
".",
"_cache",
".",
"get",... | [
27,
4
] | [
39,
78
] | python | en | ['en', 'error', 'th'] | False |
BasicCache.set | (self, keys: Union[Text, Sequence[Text]], value: Any, ttl: int = None) |
Add an item to the cache with an optional ttl.
Overwrites existing cache entries.
Args:
keys: the key or keys for which to set an item
value: the value to store in the cache
ttl: number of seconds that the record should persist
|
Add an item to the cache with an optional ttl. | async def set(self, keys: Union[Text, Sequence[Text]], value: Any, ttl: int = None):
"""
Add an item to the cache with an optional ttl.
Overwrites existing cache entries.
Args:
keys: the key or keys for which to set an item
value: the value to store in the cache... | [
"async",
"def",
"set",
"(",
"self",
",",
"keys",
":",
"Union",
"[",
"Text",
",",
"Sequence",
"[",
"Text",
"]",
"]",
",",
"value",
":",
"Any",
",",
"ttl",
":",
"int",
"=",
"None",
")",
":",
"self",
".",
"_remove_expired_cache_items",
"(",
")",
"expi... | [
41,
4
] | [
56,
70
] | python | en | ['en', 'error', 'th'] | False |
BasicCache.clear | (self, key: Text) |
Remove an item from the cache, if present.
Args:
key: the key to remove
|
Remove an item from the cache, if present. | async def clear(self, key: Text):
"""
Remove an item from the cache, if present.
Args:
key: the key to remove
"""
if key in self._cache:
del self._cache[key] | [
"async",
"def",
"clear",
"(",
"self",
",",
"key",
":",
"Text",
")",
":",
"if",
"key",
"in",
"self",
".",
"_cache",
":",
"del",
"self",
".",
"_cache",
"[",
"key",
"]"
] | [
58,
4
] | [
67,
32
] | python | en | ['en', 'error', 'th'] | False |
BasicCache.flush | (self) | Remove all items from the cache. | Remove all items from the cache. | async def flush(self):
"""Remove all items from the cache."""
self._cache = {} | [
"async",
"def",
"flush",
"(",
"self",
")",
":",
"self",
".",
"_cache",
"=",
"{",
"}"
] | [
69,
4
] | [
72,
24
] | python | en | ['en', 'en', 'en'] | True |
test_steward_suspension_by_another_trustee | (looper,
sdk_pool_handle,
sdk_wallet_trustee,
sdk_wallet_handle,
with_verkey) | Adding new steward | Adding new steward | def test_steward_suspension_by_another_trustee(looper,
sdk_pool_handle,
sdk_wallet_trustee,
sdk_wallet_handle,
with_verkey):
new... | [
"def",
"test_steward_suspension_by_another_trustee",
"(",
"looper",
",",
"sdk_pool_handle",
",",
"sdk_wallet_trustee",
",",
"sdk_wallet_handle",
",",
"with_verkey",
")",
":",
"new_trustee_did",
",",
"new_trustee_verkey",
"=",
"looper",
".",
"loop",
".",
"run_until_complet... | [
10,
0
] | [
39,
48
] | python | en | ['en', 'cy', 'en'] | True |
test_steward_cannot_create_endorsers_after_demote | (looper,
sdk_pool_handle,
sdk_wallet_trustee,
sdk_wallet_handle) | Adding new steward | Adding new steward | def test_steward_cannot_create_endorsers_after_demote(looper,
sdk_pool_handle,
sdk_wallet_trustee,
sdk_wallet_handle):
new_steward_did, new_st... | [
"def",
"test_steward_cannot_create_endorsers_after_demote",
"(",
"looper",
",",
"sdk_pool_handle",
",",
"sdk_wallet_trustee",
",",
"sdk_wallet_handle",
")",
":",
"new_steward_did",
",",
"new_steward_verkey",
"=",
"looper",
".",
"loop",
".",
"run_until_complete",
"(",
"did... | [
42,
0
] | [
80,
66
] | python | en | ['en', 'cy', 'en'] | True |
Marker.opacity | (self) |
Sets the marker opacity of unselected points, applied only when
a selection exists.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
|
Sets the marker opacity of unselected points, applied only when
a selection exists.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1] | def opacity(self):
"""
Sets the marker opacity of unselected points, applied only when
a selection exists.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
"""
... | [
"def",
"opacity",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacity\"",
"]"
] | [
15,
4
] | [
27,
30
] | python | en | ['en', 'error', 'th'] | False |
Marker.__init__ | (self, arg=None, opacity=None, **kwargs) |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.choropleth.unselected.Marker`
opacity
Sets the marker opacity of unsel... |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.choropleth.unselected.Marker`
opacity
Sets the marker opacity of unsel... | def __init__(self, arg=None, opacity=None, **kwargs):
"""
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.choropleth.unselected.Mar... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"opacity",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Marker",
",",
"self",
")",
".",
"__init__",
"(",
"\"marker\"",
")",
"if",
"\"_parent\"",
"in",
"kwargs",
":",
"s... | [
43,
4
] | [
101,
34
] | python | en | ['en', 'error', 'th'] | False |
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(ReminderCog(bot)) | [
"def",
"setup",
"(",
"bot",
")",
":",
"bot",
".",
"add_cog",
"(",
"ReminderCog",
"(",
"bot",
")",
")"
] | [
430,
0
] | [
434,
33
] | python | en | ['en', 'error', 'th'] | False |
ModelTrainer.__init__ | (self, net, config, chkp_path=None, finetune=False, on_gpu=True) |
Initialize training parameters and reload previous model for restore/finetune
:param net: network object
:param config: configuration object
:param chkp_path: path to the checkpoint that needs to be loaded (None for new training)
:param finetune: finetune from checkpoint (True) ... |
Initialize training parameters and reload previous model for restore/finetune
:param net: network object
:param config: configuration object
:param chkp_path: path to the checkpoint that needs to be loaded (None for new training)
:param finetune: finetune from checkpoint (True) ... | def __init__(self, net, config, chkp_path=None, finetune=False, on_gpu=True):
"""
Initialize training parameters and reload previous model for restore/finetune
:param net: network object
:param config: configuration object
:param chkp_path: path to the checkpoint that needs to be... | [
"def",
"__init__",
"(",
"self",
",",
"net",
",",
"config",
",",
"chkp_path",
"=",
"None",
",",
"finetune",
"=",
"False",
",",
"on_gpu",
"=",
"True",
")",
":",
"############",
"# Parameters",
"############",
"# Epoch index",
"self",
".",
"epoch",
"=",
"0",
... | [
63,
4
] | [
124,
14
] | python | en | ['en', 'error', 'th'] | False |
ModelTrainer.train | (self, net, training_loader, val_loader, config) |
Train the model on a particular dataset.
|
Train the model on a particular dataset.
| def train(self, net, training_loader, val_loader, config):
"""
Train the model on a particular dataset.
"""
################
# Initialization
################
# writer = SummaryWriter('runs/LPSVE-2m-none-ignored')
# writer.add_graph(net)
if con... | [
"def",
"train",
"(",
"self",
",",
"net",
",",
"training_loader",
",",
"val_loader",
",",
"config",
")",
":",
"################",
"# Initialization",
"################",
"# writer = SummaryWriter('runs/LPSVE-2m-none-ignored')",
"# writer.add_graph(net)",
"if",
"config",
".",... | [
129,
4
] | [
290,
14
] | python | en | ['en', 'error', 'th'] | False |
ModelTrainer.object_classification_validation | (self, net, val_loader, config) |
Perform a round of validation and show/save results
:param net: network object
:param val_loader: data loader for validation set
:param config: configuration object
|
Perform a round of validation and show/save results
:param net: network object
:param val_loader: data loader for validation set
:param config: configuration object
| def object_classification_validation(self, net, val_loader, config):
"""
Perform a round of validation and show/save results
:param net: network object
:param val_loader: data loader for validation set
:param config: configuration object
"""
############
... | [
"def",
"object_classification_validation",
"(",
"self",
",",
"net",
",",
"val_loader",
",",
"config",
")",
":",
"############",
"# Initialize",
"############",
"# Choose validation smoothing parameter (0 for no smothing, 0.99 for big smoothing)",
"val_smooth",
"=",
"0.95",
"# N... | [
308,
4
] | [
426,
17
] | python | en | ['en', 'error', 'th'] | False |
ModelTrainer.cloud_segmentation_validation | (self, net, val_loader, config, debug=False) |
Validation method for cloud segmentation models
|
Validation method for cloud segmentation models
| def cloud_segmentation_validation(self, net, val_loader, config, debug=False):
"""
Validation method for cloud segmentation models
"""
global best_acc, best_miou
############
# Initialize
############
t0 = time.time()
# Choose validation smooth... | [
"def",
"cloud_segmentation_validation",
"(",
"self",
",",
"net",
",",
"val_loader",
",",
"config",
",",
"debug",
"=",
"False",
")",
":",
"global",
"best_acc",
",",
"best_miou",
"############",
"# Initialize",
"############",
"t0",
"=",
"time",
".",
"time",
"("... | [
428,
4
] | [
734,
14
] | python | en | ['en', 'error', 'th'] | False |
ModelTrainer.slam_segmentation_validation | (self, net, val_loader, config, debug=True) |
Validation method for slam segmentation models
|
Validation method for slam segmentation models
| def slam_segmentation_validation(self, net, val_loader, config, debug=True):
"""
Validation method for slam segmentation models
"""
############
# Initialize
############
t0 = time.time()
# Do not validate if dataset has no validation cloud
if v... | [
"def",
"slam_segmentation_validation",
"(",
"self",
",",
"net",
",",
"val_loader",
",",
"config",
",",
"debug",
"=",
"True",
")",
":",
"############",
"# Initialize",
"############",
"t0",
"=",
"time",
".",
"time",
"(",
")",
"# Do not validate if dataset has no va... | [
736,
4
] | [
981,
14
] | python | en | ['en', 'error', 'th'] | False |
TaskHandler.load | (self) | Load from the ServerConfig.
Note:
This should be automatically called when Evennia starts.
It populates `self.tasks` according to the ServerConfig.
| Load from the ServerConfig. | def load(self):
"""Load from the ServerConfig.
Note:
This should be automatically called when Evennia starts.
It populates `self.tasks` according to the ServerConfig.
"""
to_save = False
value = ServerConfig.objects.conf("delayed_tasks", default={})
... | [
"def",
"load",
"(",
"self",
")",
":",
"to_save",
"=",
"False",
"value",
"=",
"ServerConfig",
".",
"objects",
".",
"conf",
"(",
"\"delayed_tasks\"",
",",
"default",
"=",
"{",
"}",
")",
"if",
"isinstance",
"(",
"value",
",",
"basestring",
")",
":",
"task... | [
34,
4
] | [
63,
23
] | python | en | ['en', 'en', 'en'] | True |
TaskHandler.save | (self) | Save the tasks in ServerConfig. | Save the tasks in ServerConfig. | def save(self):
"""Save the tasks in ServerConfig."""
for task_id, (date, callback, args, kwargs) in self.tasks.items():
if task_id in self.to_save:
continue
if getattr(callback, "__self__", None):
# `callback` is an instance method
... | [
"def",
"save",
"(",
"self",
")",
":",
"for",
"task_id",
",",
"(",
"date",
",",
"callback",
",",
"args",
",",
"kwargs",
")",
"in",
"self",
".",
"tasks",
".",
"items",
"(",
")",
":",
"if",
"task_id",
"in",
"self",
".",
"to_save",
":",
"continue",
"... | [
65,
4
] | [
90,
64
] | python | en | ['en', 'da', 'en'] | True |
TaskHandler.add | (self, timedelay, callback, *args, **kwargs) | Add a new persistent task in the configuration.
Args:
timedelay (int or float): time in sedconds before calling the callback.
callback (function or instance method): the callback itself
any (any): any additional positional arguments to send to the callback
Kwargs:
... | Add a new persistent task in the configuration. | def add(self, timedelay, callback, *args, **kwargs):
"""Add a new persistent task in the configuration.
Args:
timedelay (int or float): time in sedconds before calling the callback.
callback (function or instance method): the callback itself
any (any): any additional... | [
"def",
"add",
"(",
"self",
",",
"timedelay",
",",
"callback",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"persistent",
"=",
"kwargs",
".",
"get",
"(",
"\"persistent\"",
",",
"False",
")",
"if",
"persistent",
":",
"del",
"kwargs",
"[",
"\"pe... | [
92,
4
] | [
146,
72
] | python | en | ['en', 'en', 'en'] | True |
TaskHandler.remove | (self, task_id) | Remove a persistent task without executing it.
Args:
task_id (int): an existing task ID.
Note:
A non-persistent task doesn't have a task_id, it is not stored
in the TaskHandler.
| Remove a persistent task without executing it. | def remove(self, task_id):
"""Remove a persistent task without executing it.
Args:
task_id (int): an existing task ID.
Note:
A non-persistent task doesn't have a task_id, it is not stored
in the TaskHandler.
"""
del self.tasks[task_id]
... | [
"def",
"remove",
"(",
"self",
",",
"task_id",
")",
":",
"del",
"self",
".",
"tasks",
"[",
"task_id",
"]",
"if",
"task_id",
"in",
"self",
".",
"to_save",
":",
"del",
"self",
".",
"to_save",
"[",
"task_id",
"]",
"self",
".",
"save",
"(",
")"
] | [
148,
4
] | [
163,
19
] | python | en | ['en', 'en', 'en'] | True |
TaskHandler.do_task | (self, task_id) | Execute the task (call its callback).
Args:
task_id (int): a valid task ID.
Note:
This will also remove it from the list of current tasks.
| Execute the task (call its callback). | def do_task(self, task_id):
"""Execute the task (call its callback).
Args:
task_id (int): a valid task ID.
Note:
This will also remove it from the list of current tasks.
"""
date, callback, args, kwargs = self.tasks.pop(task_id)
if task_id in se... | [
"def",
"do_task",
"(",
"self",
",",
"task_id",
")",
":",
"date",
",",
"callback",
",",
"args",
",",
"kwargs",
"=",
"self",
".",
"tasks",
".",
"pop",
"(",
"task_id",
")",
"if",
"task_id",
"in",
"self",
".",
"to_save",
":",
"del",
"self",
".",
"to_sa... | [
165,
4
] | [
180,
33
] | python | en | ['en', 'en', 'en'] | True |
TaskHandler.create_delays | (self) | Create the delayed tasks for the persistent tasks.
Note:
This method should be automatically called when Evennia starts.
| Create the delayed tasks for the persistent tasks. | def create_delays(self):
"""Create the delayed tasks for the persistent tasks.
Note:
This method should be automatically called when Evennia starts.
"""
now = datetime.now()
for task_id, (date, callbac, args, kwargs) in self.tasks.items():
seconds = max(... | [
"def",
"create_delays",
"(",
"self",
")",
":",
"now",
"=",
"datetime",
".",
"now",
"(",
")",
"for",
"task_id",
",",
"(",
"date",
",",
"callbac",
",",
"args",
",",
"kwargs",
")",
"in",
"self",
".",
"tasks",
".",
"items",
"(",
")",
":",
"seconds",
... | [
182,
4
] | [
192,
63
] | python | en | ['en', 'en', 'en'] | True |
double_layer_cover_transmission_coefficient | (transmission_coef_1, transmission_coef_2, reflection_coef_1, reflection_coef_2) |
The transmission coefficient of a double layer cover
Equation 8.14
:param float transmission_coef_1: the transmission coefficients of the first layer
:param float transmission_coef_2: the transmission coefficients of the second layer
:param float reflection_coef_1: the reflection coefficients of th... |
The transmission coefficient of a double layer cover
Equation 8.14
:param float transmission_coef_1: the transmission coefficients of the first layer
:param float transmission_coef_2: the transmission coefficients of the second layer
:param float reflection_coef_1: the reflection coefficients of th... | def double_layer_cover_transmission_coefficient(transmission_coef_1, transmission_coef_2, reflection_coef_1, reflection_coef_2) -> float:
"""
The transmission coefficient of a double layer cover
Equation 8.14
:param float transmission_coef_1: the transmission coefficients of the first layer
:param f... | [
"def",
"double_layer_cover_transmission_coefficient",
"(",
"transmission_coef_1",
",",
"transmission_coef_2",
",",
"reflection_coef_1",
",",
"reflection_coef_2",
")",
"->",
"float",
":",
"return",
"(",
"transmission_coef_1",
"*",
"transmission_coef_2",
")",
"/",
"(",
"1",... | [
17,
0
] | [
27,
100
] | python | en | ['en', 'error', 'th'] | False |
double_layer_cover_reflection_coefficient | (transmission_coef_1, reflection_coef_1, reflection_coef_2) |
The reflection coefficient
Equation 8.15
:param float transmission_coef_1: the transmission coefficients of the first layer
:param float reflection_coef_1: the reflection coefficients of the first layer
:param float reflection_coef_2: the reflection coefficients of the second layer
:return: The... |
The reflection coefficient
Equation 8.15
:param float transmission_coef_1: the transmission coefficients of the first layer
:param float reflection_coef_1: the reflection coefficients of the first layer
:param float reflection_coef_2: the reflection coefficients of the second layer
:return: The... | def double_layer_cover_reflection_coefficient(transmission_coef_1, reflection_coef_1, reflection_coef_2) -> float:
"""
The reflection coefficient
Equation 8.15
:param float transmission_coef_1: the transmission coefficients of the first layer
:param float reflection_coef_1: the reflection coefficien... | [
"def",
"double_layer_cover_reflection_coefficient",
"(",
"transmission_coef_1",
",",
"reflection_coef_1",
",",
"reflection_coef_2",
")",
"->",
"float",
":",
"return",
"reflection_coef_1",
"+",
"(",
"transmission_coef_1",
"*",
"transmission_coef_1",
"*",
"reflection_coef_2",
... | [
30,
0
] | [
40,
140
] | python | en | ['en', 'error', 'th'] | False |
absorption_coefficient | (transmission_coef, reflection_coef) | The absorption coefficient
:param transmission_coef: the transmission coefficient
:param reflection_coef: the reflection coefficient
:return: The absorption coefficient
| The absorption coefficient | def absorption_coefficient(transmission_coef, reflection_coef):
"""The absorption coefficient
:param transmission_coef: the transmission coefficient
:param reflection_coef: the reflection coefficient
:return: The absorption coefficient
"""
return 1 - (transmission_coef + reflection_coef) | [
"def",
"absorption_coefficient",
"(",
"transmission_coef",
",",
"reflection_coef",
")",
":",
"return",
"1",
"-",
"(",
"transmission_coef",
"+",
"reflection_coef",
")"
] | [
43,
0
] | [
50,
52
] | python | en | ['en', 'en', 'en'] | True |
Pad.b | (self) |
The amount of padding (in px) along the bottom of the
component.
The 'b' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The amount of padding (in px) along the bottom of the
component.
The 'b' property is a number and may be specified as:
- An int or float | def b(self):
"""
The amount of padding (in px) along the bottom of the
component.
The 'b' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["b"] | [
"def",
"b",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"b\"",
"]"
] | [
15,
4
] | [
27,
24
] | python | en | ['en', 'error', 'th'] | False |
Pad.l | (self) |
The amount of padding (in px) on the left side of the
component.
The 'l' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The amount of padding (in px) on the left side of the
component.
The 'l' property is a number and may be specified as:
- An int or float | def l(self):
"""
The amount of padding (in px) on the left side of the
component.
The 'l' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["l"] | [
"def",
"l",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"l\"",
"]"
] | [
36,
4
] | [
48,
24
] | python | en | ['en', 'error', 'th'] | False |
Pad.r | (self) |
The amount of padding (in px) on the right side of the
component.
The 'r' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The amount of padding (in px) on the right side of the
component.
The 'r' property is a number and may be specified as:
- An int or float | def r(self):
"""
The amount of padding (in px) on the right side of the
component.
The 'r' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["r"] | [
"def",
"r",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"r\"",
"]"
] | [
57,
4
] | [
69,
24
] | python | en | ['en', 'error', 'th'] | False |
Pad.t | (self) |
The amount of padding (in px) along the top of the component.
The 't' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
The amount of padding (in px) along the top of the component.
The 't' property is a number and may be specified as:
- An int or float | def t(self):
"""
The amount of padding (in px) along the top of the component.
The 't' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["t"] | [
"def",
"t",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"t\"",
"]"
] | [
78,
4
] | [
89,
24
] | python | en | ['en', 'error', 'th'] | False |
Pad.__init__ | (self, arg=None, b=None, l=None, r=None, t=None, **kwargs) |
Construct a new Pad object
Sets the padding of the title. Each padding value only applies
when the corresponding `xanchor`/`yanchor` value is set
accordingly. E.g. for left padding to take effect, `xanchor`
must be set to "left". The same rule applies if
`xancho... |
Construct a new Pad object
Sets the padding of the title. Each padding value only applies
when the corresponding `xanchor`/`yanchor` value is set
accordingly. E.g. for left padding to take effect, `xanchor`
must be set to "left". The same rule applies if
`xancho... | def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs):
"""
Construct a new Pad object
Sets the padding of the title. Each padding value only applies
when the corresponding `xanchor`/`yanchor` value is set
accordingly. E.g. for left padding to take effect... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"b",
"=",
"None",
",",
"l",
"=",
"None",
",",
"r",
"=",
"None",
",",
"t",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Pad",
",",
"self",
")",
".",
"__init__",
... | [
114,
4
] | [
200,
34
] | python | en | ['en', 'error', 'th'] | False |
Tickformatstop.dtickrange | (self) |
range [*min*, *max*], where "min", "max" - dtick values which
describe some zoom level, it is possible to omit "min" or "max"
value by passing "null"
The 'dtickrange' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The... |
range [*min*, *max*], where "min", "max" - dtick values which
describe some zoom level, it is possible to omit "min" or "max"
value by passing "null"
The 'dtickrange' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The... | def dtickrange(self):
"""
range [*min*, *max*], where "min", "max" - dtick values which
describe some zoom level, it is possible to omit "min" or "max"
value by passing "null"
The 'dtickrange' property is an info array that may be specified as:
* a list or tuple... | [
"def",
"dtickrange",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dtickrange\"",
"]"
] | [
15,
4
] | [
31,
33
] | python | en | ['en', 'error', 'th'] | False |
Tickformatstop.enabled | (self) |
Determines whether or not this stop is used. If `false`, this
stop is ignored even within its `dtickrange`.
The 'enabled' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not this stop is used. If `false`, this
stop is ignored even within its `dtickrange`.
The 'enabled' property must be specified as a bool
(either True, or False) | def enabled(self):
"""
Determines whether or not this stop is used. If `false`, this
stop is ignored even within its `dtickrange`.
The 'enabled' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
ret... | [
"def",
"enabled",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"enabled\"",
"]"
] | [
40,
4
] | [
52,
30
] | python | en | ['en', 'error', 'th'] | False |
Tickformatstop.name | (self) |
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` alongside your modifications ... |
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` alongside your modifications ... | def name(self):
"""
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` al... | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"name\"",
"]"
] | [
61,
4
] | [
79,
27
] | python | en | ['en', 'error', 'th'] | False |
Tickformatstop.templateitemname | (self) |
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
alongside your modifications (includ... |
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
alongside your modifications (includ... | def templateitemname(self):
"""
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
... | [
"def",
"templateitemname",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"templateitemname\"",
"]"
] | [
88,
4
] | [
107,
39
] | python | en | ['en', 'error', 'th'] | False |
Tickformatstop.value | (self) |
string - dtickformat for described zoom level, the same as
"tickformat"
The 'value' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
string - dtickformat for described zoom level, the same as
"tickformat"
The 'value' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def value(self):
"""
string - dtickformat for described zoom level, the same as
"tickformat"
The 'value' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"... | [
"def",
"value",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"value\"",
"]"
] | [
116,
4
] | [
129,
28
] | python | en | ['en', 'error', 'th'] | False |
Tickformatstop.__init__ | (
self,
arg=None,
dtickrange=None,
enabled=None,
name=None,
templateitemname=None,
value=None,
**kwargs
) |
Construct a new Tickformatstop object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.choroplethmapb
ox.colorbar.Tickformatstop`
dtickrange
range [*... |
Construct a new Tickformatstop object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.choroplethmapb
ox.colorbar.Tickformatstop`
dtickrange
range [*... | def __init__(
self,
arg=None,
dtickrange=None,
enabled=None,
name=None,
templateitemname=None,
value=None,
**kwargs
):
"""
Construct a new Tickformatstop object
Parameters
----------
arg
dict... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"dtickrange",
"=",
"None",
",",
"enabled",
"=",
"None",
",",
"name",
"=",
"None",
",",
"templateitemname",
"=",
"None",
",",
"value",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"sup... | [
172,
4
] | [
282,
34
] | python | en | ['en', 'error', 'th'] | False |
ErrorY.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\"",
"]"
] | [
30,
4
] | [
42,
28
] | python | en | ['en', 'error', 'th'] | False |
ErrorY.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\"",
"]"
] | [
51,
4
] | [
64,
33
] | python | en | ['en', 'error', 'th'] | False |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.