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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Font.family | (self) |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... | def family(self):
"""
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
prefer... | [
"def",
"family",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"family\"",
"]"
] | [
72,
4
] | [
94,
29
] | python | en | ['en', 'error', 'th'] | False |
Font.size | (self) |
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
|
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf] | def size(self):
"""
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
"""
return self["size"] | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
103,
4
] | [
112,
27
] | python | en | ['en', 'error', 'th'] | False |
Font.__init__ | (self, arg=None, color=None, family=None, size=None, **kwargs) |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg
dict of properties compatible with this constructor or
an inst... |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute. | def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
"""
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"family",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Font",
",",
"self",
")",
".",
"__init__",
"(",
"\"font\"",... | [
143,
4
] | [
227,
34
] | python | en | ['en', 'error', 'th'] | False |
Base3DDetector.forward_test | (self, points, img_metas, img=None, **kwargs) |
Args:
points (list[torch.Tensor]): the outer list indicates test-time
augmentations and inner torch.Tensor should have a shape NxC,
which contains all points in the batch.
img_metas (list[list[dict]]): the outer list indicates test-time
au... |
Args:
points (list[torch.Tensor]): the outer list indicates test-time
augmentations and inner torch.Tensor should have a shape NxC,
which contains all points in the batch.
img_metas (list[list[dict]]): the outer list indicates test-time
au... | def forward_test(self, points, img_metas, img=None, **kwargs):
"""
Args:
points (list[torch.Tensor]): the outer list indicates test-time
augmentations and inner torch.Tensor should have a shape NxC,
which contains all points in the batch.
img_metas... | [
"def",
"forward_test",
"(",
"self",
",",
"points",
",",
"img_metas",
",",
"img",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"for",
"var",
",",
"name",
"in",
"[",
"(",
"points",
",",
"'points'",
")",
",",
"(",
"img_metas",
",",
"'img_metas'",
"... | [
13,
4
] | [
42,
66
] | python | en | ['en', 'error', 'th'] | False |
Base3DDetector.forward | (self, return_loss=True, **kwargs) | Calls either forward_train or forward_test depending on whether
return_loss=True.
Note this setting will change the expected inputs. When
`return_loss=True`, img and img_metas are single-nested (i.e.
torch.Tensor and list[dict]), and when `resturn_loss=False`, img and
img_metas ... | Calls either forward_train or forward_test depending on whether
return_loss=True. | def forward(self, return_loss=True, **kwargs):
"""Calls either forward_train or forward_test depending on whether
return_loss=True.
Note this setting will change the expected inputs. When
`return_loss=True`, img and img_metas are single-nested (i.e.
torch.Tensor and list[dict]),... | [
"def",
"forward",
"(",
"self",
",",
"return_loss",
"=",
"True",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"return_loss",
":",
"return",
"self",
".",
"forward_train",
"(",
"*",
"*",
"kwargs",
")",
"else",
":",
"return",
"self",
".",
"forward_test",
"(",
... | [
45,
4
] | [
59,
46
] | python | en | ['en', 'en', 'en'] | True |
Base3DDetector.show_results | (self, data, result, out_dir) | Results visualization.
Args:
data (list[dict]): Input points and the information of the sample.
result (list[dict]): Prediction results.
out_dir (str): Output directory of visualization result.
| Results visualization. | def show_results(self, data, result, out_dir):
"""Results visualization.
Args:
data (list[dict]): Input points and the information of the sample.
result (list[dict]): Prediction results.
out_dir (str): Output directory of visualization result.
"""
for... | [
"def",
"show_results",
"(",
"self",
",",
"data",
",",
"result",
",",
"out_dir",
")",
":",
"for",
"batch_id",
"in",
"range",
"(",
"len",
"(",
"result",
")",
")",
":",
"if",
"isinstance",
"(",
"data",
"[",
"'points'",
"]",
"[",
"0",
"]",
",",
"DC",
... | [
61,
4
] | [
106,
70
] | python | en | ['en', 'en', 'en'] | False |
auth_map | (action_add, action_edit) |
action_ids:
for add: "ADD--SomeType--some_field--*--new_value"
for edit: "EDIT--SomeType--some_field--old_value--new_value"
|
action_ids:
for add: "ADD--SomeType--some_field--*--new_value"
for edit: "EDIT--SomeType--some_field--old_value--new_value"
| def auth_map(action_add, action_edit):
"""
action_ids:
for add: "ADD--SomeType--some_field--*--new_value"
for edit: "EDIT--SomeType--some_field--old_value--new_value"
"""
return {action_add.get_action_id(): AuthConstraint(role=STEWARD,
sig_c... | [
"def",
"auth_map",
"(",
"action_add",
",",
"action_edit",
")",
":",
"return",
"{",
"action_add",
".",
"get_action_id",
"(",
")",
":",
"AuthConstraint",
"(",
"role",
"=",
"STEWARD",
",",
"sig_count",
"=",
"3",
")",
",",
"action_edit",
".",
"get_action_id",
... | [
12,
0
] | [
21,
69
] | python | en | ['en', 'error', 'th'] | False |
Font.color | (self) |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... | def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A name... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
64,
28
] | python | en | ['en', 'error', 'th'] | False |
Font.colorsrc | (self) |
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' 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 color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def colorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["colorsrc"] | [
"def",
"colorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorsrc\"",
"]"
] | [
73,
4
] | [
84,
31
] | 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\"",
"]"
] | [
93,
4
] | [
116,
29
] | python | en | ['en', 'error', 'th'] | False |
Font.familysrc | (self) |
Sets the source reference on Chart Studio Cloud for family .
The 'familysrc' 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 family .
The 'familysrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def familysrc(self):
"""
Sets the source reference on Chart Studio Cloud for family .
The 'familysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["familysrc"] | [
"def",
"familysrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"familysrc\"",
"]"
] | [
125,
4
] | [
136,
32
] | 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]
- 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 |
Font.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 |
Font.__init__ | (
self,
arg=None,
color=None,
colorsrc=None,
family=None,
familysrc=None,
size=None,
sizesrc=None,
**kwargs
) |
Construct a new Font object
Sets the font used in hover labels.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.densitymapbox.
hoverlabel.Font`
color
... |
Construct a new Font object
Sets the font used in hover labels. | def __init__(
self,
arg=None,
color=None,
colorsrc=None,
family=None,
familysrc=None,
size=None,
sizesrc=None,
**kwargs
):
"""
Construct a new Font object
Sets the font used in hover labels.
Parameters
... | [
"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 |
BotStarter.at_script_creation | (self) |
Called once, when script is created.
|
Called once, when script is created. | def at_script_creation(self):
"""
Called once, when script is created.
"""
self.key = "botstarter"
self.desc = "bot start/keepalive"
self.persistent = True
self.db.started = False | [
"def",
"at_script_creation",
"(",
"self",
")",
":",
"self",
".",
"key",
"=",
"\"botstarter\"",
"self",
".",
"desc",
"=",
"\"bot start/keepalive\"",
"self",
".",
"persistent",
"=",
"True",
"self",
".",
"db",
".",
"started",
"=",
"False"
] | [
31,
4
] | [
39,
31
] | python | en | ['en', 'error', 'th'] | False |
BotStarter.at_start | (self) |
Kick bot into gear.
|
Kick bot into gear. | def at_start(self):
"""
Kick bot into gear.
"""
if not self.db.started:
self.account.start()
self.db.started = True | [
"def",
"at_start",
"(",
"self",
")",
":",
"if",
"not",
"self",
".",
"db",
".",
"started",
":",
"self",
".",
"account",
".",
"start",
"(",
")",
"self",
".",
"db",
".",
"started",
"=",
"True"
] | [
41,
4
] | [
48,
34
] | python | en | ['en', 'error', 'th'] | False |
BotStarter.at_repeat | (self) |
Called self.interval seconds to keep connection. We cannot use
the IDLE command from inside the game since the system will
not catch it (commands executed from the server side usually
has no sessions). So we update the idle counter manually here
instead. This keeps the bot getti... |
Called self.interval seconds to keep connection. We cannot use
the IDLE command from inside the game since the system will
not catch it (commands executed from the server side usually
has no sessions). So we update the idle counter manually here
instead. This keeps the bot getti... | def at_repeat(self):
"""
Called self.interval seconds to keep connection. We cannot use
the IDLE command from inside the game since the system will
not catch it (commands executed from the server side usually
has no sessions). So we update the idle counter manually here
i... | [
"def",
"at_repeat",
"(",
"self",
")",
":",
"global",
"_SESSIONS",
"if",
"not",
"_SESSIONS",
":",
"from",
"evennia",
".",
"server",
".",
"sessionhandler",
"import",
"SESSIONS",
"as",
"_SESSIONS",
"for",
"session",
"in",
"_SESSIONS",
".",
"sessions_from_account",
... | [
50,
4
] | [
63,
54
] | python | en | ['en', 'error', 'th'] | False |
BotStarter.at_server_reload | (self) |
If server reloads we don't need to reconnect the protocol
again, this is handled by the portal reconnect mechanism.
|
If server reloads we don't need to reconnect the protocol
again, this is handled by the portal reconnect mechanism. | def at_server_reload(self):
"""
If server reloads we don't need to reconnect the protocol
again, this is handled by the portal reconnect mechanism.
"""
self.db.started = True | [
"def",
"at_server_reload",
"(",
"self",
")",
":",
"self",
".",
"db",
".",
"started",
"=",
"True"
] | [
65,
4
] | [
71,
30
] | python | en | ['en', 'error', 'th'] | False |
BotStarter.at_server_shutdown | (self) |
Make sure we are shutdown.
|
Make sure we are shutdown. | def at_server_shutdown(self):
"""
Make sure we are shutdown.
"""
self.db.started = False | [
"def",
"at_server_shutdown",
"(",
"self",
")",
":",
"self",
".",
"db",
".",
"started",
"=",
"False"
] | [
73,
4
] | [
78,
31
] | python | en | ['en', 'error', 'th'] | False |
Bot.basetype_setup | (self) |
This sets up the basic properties for the bot.
|
This sets up the basic properties for the bot. | def basetype_setup(self):
"""
This sets up the basic properties for the bot.
"""
# the text encoding to use.
self.db.encoding = "utf-8"
# A basic security setup (also avoid idle disconnects)
lockstring = "examine:perm(Admin);edit:perm(Admin);delete:perm(Admin);" ... | [
"def",
"basetype_setup",
"(",
"self",
")",
":",
"# the text encoding to use.",
"self",
".",
"db",
".",
"encoding",
"=",
"\"utf-8\"",
"# A basic security setup (also avoid idle disconnects)",
"lockstring",
"=",
"\"examine:perm(Admin);edit:perm(Admin);delete:perm(Admin);\"",
"\"boo... | [
92,
4
] | [
106,
26
] | python | en | ['en', 'error', 'th'] | False |
Bot.start | (self, **kwargs) |
This starts the bot, whatever that may mean.
|
This starts the bot, whatever that may mean. | def start(self, **kwargs):
"""
This starts the bot, whatever that may mean.
"""
pass | [
"def",
"start",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
108,
4
] | [
113,
12
] | python | en | ['en', 'error', 'th'] | False |
Bot.msg | (self, text=None, from_obj=None, session=None, options=None, **kwargs) |
Evennia -> outgoing protocol
|
Evennia -> outgoing protocol | def msg(self, text=None, from_obj=None, session=None, options=None, **kwargs):
"""
Evennia -> outgoing protocol
"""
super(Bot, self).msg(text=text, from_obj=from_obj, session=session, options=options, **kwargs) | [
"def",
"msg",
"(",
"self",
",",
"text",
"=",
"None",
",",
"from_obj",
"=",
"None",
",",
"session",
"=",
"None",
",",
"options",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Bot",
",",
"self",
")",
".",
"msg",
"(",
"text",
"=",... | [
115,
4
] | [
120,
102
] | python | en | ['en', 'error', 'th'] | False |
Bot.execute_cmd | (self, raw_string, session=None) |
Incoming protocol -> Evennia
|
Incoming protocol -> Evennia | def execute_cmd(self, raw_string, session=None):
"""
Incoming protocol -> Evennia
"""
super(Bot, self).msg(raw_string, session=session) | [
"def",
"execute_cmd",
"(",
"self",
",",
"raw_string",
",",
"session",
"=",
"None",
")",
":",
"super",
"(",
"Bot",
",",
"self",
")",
".",
"msg",
"(",
"raw_string",
",",
"session",
"=",
"session",
")"
] | [
122,
4
] | [
127,
57
] | python | en | ['en', 'error', 'th'] | False |
Bot.at_server_shutdown | (self) |
We need to handle this case manually since the shutdown may be
a reset.
|
We need to handle this case manually since the shutdown may be
a reset. | def at_server_shutdown(self):
"""
We need to handle this case manually since the shutdown may be
a reset.
"""
for session in self.sessions.all():
session.sessionhandler.disconnect(session) | [
"def",
"at_server_shutdown",
"(",
"self",
")",
":",
"for",
"session",
"in",
"self",
".",
"sessions",
".",
"all",
"(",
")",
":",
"session",
".",
"sessionhandler",
".",
"disconnect",
"(",
"session",
")"
] | [
129,
4
] | [
136,
54
] | python | en | ['en', 'error', 'th'] | False |
IRCBot.start | (self, ev_channel=None, irc_botname=None, irc_channel=None, irc_network=None, irc_port=None, irc_ssl=None) |
Start by telling the portal to start a new session.
Args:
ev_channel (str): Key of the Evennia channel to connect to.
irc_botname (str): Name of bot to connect to irc channel. If
not set, use `self.key`.
irc_channel (str): Name of channel on the form... |
Start by telling the portal to start a new session. | def start(self, ev_channel=None, irc_botname=None, irc_channel=None, irc_network=None, irc_port=None, irc_ssl=None):
"""
Start by telling the portal to start a new session.
Args:
ev_channel (str): Key of the Evennia channel to connect to.
irc_botname (str): Name of bot t... | [
"def",
"start",
"(",
"self",
",",
"ev_channel",
"=",
"None",
",",
"irc_botname",
"=",
"None",
",",
"irc_channel",
"=",
"None",
",",
"irc_network",
"=",
"None",
",",
"irc_port",
"=",
"None",
",",
"irc_ssl",
"=",
"None",
")",
":",
"if",
"not",
"_IRC_ENAB... | [
149,
4
] | [
205,
90
] | python | en | ['en', 'error', 'th'] | False |
IRCBot.at_msg_send | (self, **kwargs) | Shortcut here or we can end up in infinite loop | Shortcut here or we can end up in infinite loop | def at_msg_send(self, **kwargs):
"Shortcut here or we can end up in infinite loop"
pass | [
"def",
"at_msg_send",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
207,
4
] | [
209,
12
] | python | en | ['en', 'af', 'en'] | True |
IRCBot.get_nicklist | (self, caller) |
Retrive the nick list from the connected channel.
Args:
caller (Object or Account): The requester of the list. This will
be stored and echoed to when the irc network replies with the
requested info.
Notes: Since the return is asynchronous, the calle... |
Retrive the nick list from the connected channel. | def get_nicklist(self, caller):
"""
Retrive the nick list from the connected channel.
Args:
caller (Object or Account): The requester of the list. This will
be stored and echoed to when the irc network replies with the
requested info.
Notes: ... | [
"def",
"get_nicklist",
"(",
"self",
",",
"caller",
")",
":",
"if",
"not",
"hasattr",
"(",
"self",
",",
"\"_nicklist_callers\"",
")",
":",
"self",
".",
"_nicklist_callers",
"=",
"[",
"]",
"self",
".",
"_nicklist_callers",
".",
"append",
"(",
"caller",
")",
... | [
211,
4
] | [
229,
14
] | python | en | ['en', 'error', 'th'] | False |
IRCBot.ping | (self, caller) |
Fire a ping to the IRC server.
Args:
caller (Object or Account): The requester of the ping.
|
Fire a ping to the IRC server. | def ping(self, caller):
"""
Fire a ping to the IRC server.
Args:
caller (Object or Account): The requester of the ping.
"""
if not hasattr(self, "_ping_callers"):
self._ping_callers = []
self._ping_callers.append(caller)
super(IRCBot, sel... | [
"def",
"ping",
"(",
"self",
",",
"caller",
")",
":",
"if",
"not",
"hasattr",
"(",
"self",
",",
"\"_ping_callers\"",
")",
":",
"self",
".",
"_ping_callers",
"=",
"[",
"]",
"self",
".",
"_ping_callers",
".",
"append",
"(",
"caller",
")",
"super",
"(",
... | [
231,
4
] | [
242,
40
] | python | en | ['en', 'error', 'th'] | False |
IRCBot.reconnect | (self) |
Force a protocol-side reconnect of the client without
having to destroy/recreate the bot "account".
|
Force a protocol-side reconnect of the client without
having to destroy/recreate the bot "account". | def reconnect(self):
"""
Force a protocol-side reconnect of the client without
having to destroy/recreate the bot "account".
"""
super(IRCBot, self).msg(reconnect="") | [
"def",
"reconnect",
"(",
"self",
")",
":",
"super",
"(",
"IRCBot",
",",
"self",
")",
".",
"msg",
"(",
"reconnect",
"=",
"\"\"",
")"
] | [
244,
4
] | [
250,
45
] | python | en | ['en', 'error', 'th'] | False |
IRCBot.msg | (self, text=None, **kwargs) |
Takes text from connected channel (only).
Args:
text (str, optional): Incoming text from channel.
Kwargs:
options (dict): Options dict with the following allowed keys:
- from_channel (str): dbid of a channel this text originated from.
- ... |
Takes text from connected channel (only). | def msg(self, text=None, **kwargs):
"""
Takes text from connected channel (only).
Args:
text (str, optional): Incoming text from channel.
Kwargs:
options (dict): Options dict with the following allowed keys:
- from_channel (str): dbid of a channe... | [
"def",
"msg",
"(",
"self",
",",
"text",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"from_obj",
"=",
"kwargs",
".",
"get",
"(",
"\"from_obj\"",
",",
"None",
")",
"options",
"=",
"kwargs",
".",
"get",
"(",
"\"options\"",
",",
"None",
")",
"or",
... | [
252,
4
] | [
272,
53
] | python | en | ['en', 'error', 'th'] | False |
IRCBot.execute_cmd | (self, session=None, txt=None, **kwargs) |
Take incoming data and send it to connected channel. This is
triggered by the bot_data_in Inputfunc.
Args:
session (Session, optional): Session responsible for this
command. Note that this is the bot.
txt (str, optional): Command string.
Kwargs:... |
Take incoming data and send it to connected channel. This is
triggered by the bot_data_in Inputfunc. | def execute_cmd(self, session=None, txt=None, **kwargs):
"""
Take incoming data and send it to connected channel. This is
triggered by the bot_data_in Inputfunc.
Args:
session (Session, optional): Session responsible for this
command. Note that this is the bo... | [
"def",
"execute_cmd",
"(",
"self",
",",
"session",
"=",
"None",
",",
"txt",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"kwargs",
"[",
"\"type\"",
"]",
"==",
"\"nicklist\"",
":",
"# the return of a nicklist request",
"if",
"hasattr",
"(",
"self",... | [
274,
4
] | [
352,
59
] | python | en | ['en', 'error', 'th'] | False |
RSSBot.start | (self, ev_channel=None, rss_url=None, rss_rate=None) |
Start by telling the portal to start a new RSS session
Args:
ev_channel (str): Key of the Evennia channel to connect to.
rss_url (str): Full URL to the RSS feed to subscribe to.
rss_rate (int): How often for the feedreader to update.
Raises:
Run... |
Start by telling the portal to start a new RSS session | def start(self, ev_channel=None, rss_url=None, rss_rate=None):
"""
Start by telling the portal to start a new RSS session
Args:
ev_channel (str): Key of the Evennia channel to connect to.
rss_url (str): Full URL to the RSS feed to subscribe to.
rss_rate (int)... | [
"def",
"start",
"(",
"self",
",",
"ev_channel",
"=",
"None",
",",
"rss_url",
"=",
"None",
",",
"rss_rate",
"=",
"None",
")",
":",
"if",
"not",
"_RSS_ENABLED",
":",
"# The bot was created, then RSS was turned off. Delete ourselves.",
"self",
".",
"delete",
"(",
"... | [
365,
4
] | [
403,
90
] | python | en | ['en', 'error', 'th'] | False |
RSSBot.execute_cmd | (self, txt=None, session=None, **kwargs) |
Take incoming data and send it to connected channel. This is
triggered by the bot_data_in Inputfunc.
Args:
session (Session, optional): Session responsible for this
command.
txt (str, optional): Command string.
kwargs (dict, optional): Addit... |
Take incoming data and send it to connected channel. This is
triggered by the bot_data_in Inputfunc. | def execute_cmd(self, txt=None, session=None, **kwargs):
"""
Take incoming data and send it to connected channel. This is
triggered by the bot_data_in Inputfunc.
Args:
session (Session, optional): Session responsible for this
command.
txt (str, op... | [
"def",
"execute_cmd",
"(",
"self",
",",
"txt",
"=",
"None",
",",
"session",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"not",
"self",
".",
"ndb",
".",
"ev_channel",
"and",
"self",
".",
"db",
".",
"ev_channel",
":",
"# cache channel lookup",
... | [
405,
4
] | [
422,
57
] | python | en | ['en', 'error', 'th'] | False |
setup_args | () |
Defaults for baseline model.
|
Defaults for baseline model.
| def setup_args():
"""
Defaults for baseline model.
"""
parser = tm_setupargs()
parser.set_defaults(
task='projects.controllable_dialogue.tasks.agents',
model='projects.controllable_dialogue.controllable_seq2seq.controllable_seq2seq:ControllableSeq2seqAgent', # noqa: E501
di... | [
"def",
"setup_args",
"(",
")",
":",
"parser",
"=",
"tm_setupargs",
"(",
")",
"parser",
".",
"set_defaults",
"(",
"task",
"=",
"'projects.controllable_dialogue.tasks.agents'",
",",
"model",
"=",
"'projects.controllable_dialogue.controllable_seq2seq.controllable_seq2seq:Control... | [
14,
0
] | [
53,
17
] | python | en | ['en', 'error', 'th'] | False |
Stream.maxpoints | (self) |
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or float in the interval [0, 10000]... |
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or float in the interval [0, 10000] | def maxpoints(self):
"""
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or ... | [
"def",
"maxpoints",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"maxpoints\"",
"]"
] | [
15,
4
] | [
28,
32
] | python | en | ['en', 'error', 'th'] | False |
Stream.token | (self) |
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string
Returns
-------
str
|
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string | def token(self):
"""
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string
Returns
-------
... | [
"def",
"token",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"token\"",
"]"
] | [
37,
4
] | [
50,
28
] | python | en | ['en', 'error', 'th'] | False |
Stream.__init__ | (self, arg=None, maxpoints=None, token=None, **kwargs) |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.violin.Stream`
maxpoints
Sets the maximum number of points to keep on the plots
... |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.violin.Stream`
maxpoints
Sets the maximum number of points to keep on the plots
... | def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):
"""
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.violin.Stream`
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"maxpoints",
"=",
"None",
",",
"token",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Stream",
",",
"self",
")",
".",
"__init__",
"(",
"\"stream\"",
")",
"if",
"\"_paren... | [
72,
4
] | [
139,
34
] | python | en | ['en', 'error', 'th'] | False |
EvenniaPasswordValidator.__init__ | (self, regex=r"^[\w. @+\-',]+$", policy="Password should contain a mix of letters, spaces, digits and @/./+/-/_/'/, only.") |
Constructs a standard Django password validator.
Args:
regex (str): Regex pattern of valid characters to allow.
policy (str): Brief explanation of what the defined regex permits.
|
Constructs a standard Django password validator.
Args:
regex (str): Regex pattern of valid characters to allow.
policy (str): Brief explanation of what the defined regex permits.
| def __init__(self, regex=r"^[\w. @+\-',]+$", policy="Password should contain a mix of letters, spaces, digits and @/./+/-/_/'/, only."):
"""
Constructs a standard Django password validator.
Args:
regex (str): Regex pattern of valid characters to allow.
policy (str): ... | [
"def",
"__init__",
"(",
"self",
",",
"regex",
"=",
"r\"^[\\w. @+\\-',]+$\"",
",",
"policy",
"=",
"\"Password should contain a mix of letters, spaces, digits and @/./+/-/_/'/, only.\"",
")",
":",
"self",
".",
"regex",
"=",
"regex",
"self",
".",
"policy",
"=",
"policy"
] | [
6,
4
] | [
16,
28
] | python | en | ['en', 'error', 'th'] | False |
EvenniaPasswordValidator.validate | (self, password, user=None) |
Validates a password string to make sure it meets predefined Evennia
acceptable character policy.
Args:
password (str): Password to validate
user (None): Unused argument but required by Django
Returns:
None (None): None if password s... |
Validates a password string to make sure it meets predefined Evennia
acceptable character policy.
Args:
password (str): Password to validate
user (None): Unused argument but required by Django
Returns:
None (None): None if password s... | def validate(self, password, user=None):
"""
Validates a password string to make sure it meets predefined Evennia
acceptable character policy.
Args:
password (str): Password to validate
user (None): Unused argument but required by Django
... | [
"def",
"validate",
"(",
"self",
",",
"password",
",",
"user",
"=",
"None",
")",
":",
"# Check complexity",
"if",
"not",
"re",
".",
"findall",
"(",
"self",
".",
"regex",
",",
"password",
")",
":",
"raise",
"ValidationError",
"(",
"_",
"(",
"self",
".",
... | [
18,
4
] | [
37,
13
] | python | en | ['en', 'error', 'th'] | False |
EvenniaPasswordValidator.get_help_text | (self) |
Returns a user-facing explanation of the password policy defined
by this validator.
Returns:
text (str): Explanation of password policy.
|
Returns a user-facing explanation of the password policy defined
by this validator.
Returns:
text (str): Explanation of password policy.
| def get_help_text(self):
"""
Returns a user-facing explanation of the password policy defined
by this validator.
Returns:
text (str): Explanation of password policy.
"""
return _(
"%s From a terminal client, you can also use a phrase of m... | [
"def",
"get_help_text",
"(",
"self",
")",
":",
"return",
"_",
"(",
"\"%s From a terminal client, you can also use a phrase of multiple words if you enclose the password in double quotes.\"",
"%",
"self",
".",
"policy",
")"
] | [
39,
4
] | [
50,
9
] | python | en | ['en', 'error', 'th'] | False |
rk4 | (A: mat, x: vec, h: float) |
This is an implementation of Runge-Kutta 4th order method
A: square matrix encapsulating the dynamics dx/dt = A * x. A is assumed to be constant during the step.
x: state variable at time t
return x at t+h
|
This is an implementation of Runge-Kutta 4th order method
A: square matrix encapsulating the dynamics dx/dt = A * x. A is assumed to be constant during the step.
x: state variable at time t
return x at t+h
| def rk4(A: mat, x: vec, h: float) -> vec:
"""
This is an implementation of Runge-Kutta 4th order method
A: square matrix encapsulating the dynamics dx/dt = A * x. A is assumed to be constant during the step.
x: state variable at time t
return x at t+h
"""
k1 = A * x
k2 = A * (x + h * k1 ... | [
"def",
"rk4",
"(",
"A",
":",
"mat",
",",
"x",
":",
"vec",
",",
"h",
":",
"float",
")",
"->",
"vec",
":",
"k1",
"=",
"A",
"*",
"x",
"k2",
"=",
"A",
"*",
"(",
"x",
"+",
"h",
"*",
"k1",
"/",
"2",
")",
"k3",
"=",
"A",
"*",
"(",
"x",
"+"... | [
5,
0
] | [
16,
44
] | python | en | ['en', 'error', 'th'] | False |
adams_moulton | (As: List[mat], xs: List[vec], h: float) |
Adams-Moulton is a linear multistep method which uses the information from the previous steps
https://en.wikipedia.org/wiki/Linear_multistep_method#Adams%E2%80%93Moulton_methods
|
Adams-Moulton is a linear multistep method which uses the information from the previous steps
https://en.wikipedia.org/wiki/Linear_multistep_method#Adams%E2%80%93Moulton_methods
| def adams_moulton(As: List[mat], xs: List[vec], h: float) -> vec:
"""
Adams-Moulton is a linear multistep method which uses the information from the previous steps
https://en.wikipedia.org/wiki/Linear_multistep_method#Adams%E2%80%93Moulton_methods
"""
a = np.eye(len(xs[0])) - h * 251/720 * As[4]
... | [
"def",
"adams_moulton",
"(",
"As",
":",
"List",
"[",
"mat",
"]",
",",
"xs",
":",
"List",
"[",
"vec",
"]",
",",
"h",
":",
"float",
")",
"->",
"vec",
":",
"a",
"=",
"np",
".",
"eye",
"(",
"len",
"(",
"xs",
"[",
"0",
"]",
")",
")",
"-",
"h",... | [
19,
0
] | [
29,
32
] | python | en | ['en', 'error', 'th'] | False |
fruit_set_of_first_development_stage | (last_24_canopy_t, carbohydrate_flow_BufFruits) |
Equation 9.29, B.4
number_flow_BufFruit_1 = S_number_flow_BufFruit_1_carbohydrate_flow_BufFruits * maximum_fruit_set
Returns: fruit set of the first development stage [fruits m^-2 s^-1]
|
Equation 9.29, B.4
number_flow_BufFruit_1 = S_number_flow_BufFruit_1_carbohydrate_flow_BufFruits * maximum_fruit_set
Returns: fruit set of the first development stage [fruits m^-2 s^-1]
| def fruit_set_of_first_development_stage(last_24_canopy_t, carbohydrate_flow_BufFruits):
"""
Equation 9.29, B.4
number_flow_BufFruit_1 = S_number_flow_BufFruit_1_carbohydrate_flow_BufFruits * maximum_fruit_set
Returns: fruit set of the first development stage [fruits m^-2 s^-1]
"""
return smooth... | [
"def",
"fruit_set_of_first_development_stage",
"(",
"last_24_canopy_t",
",",
"carbohydrate_flow_BufFruits",
")",
":",
"return",
"smoothed_conditional_function",
"(",
"carbohydrate_flow_BufFruits",
",",
"-",
"58.9",
",",
"0.05",
")",
"*",
"maximum_fruit_set_dependency_on_tempera... | [
5,
0
] | [
11,
146
] | python | en | ['en', 'error', 'th'] | False |
maximum_fruit_set_dependency_on_temperature | (last_24_canopy_t) |
Equation 9.30
max_number_flow_BufFruit_1 = PLANT_DENSITY * (MAX_FRUIT_SET_REGRESSION_COEF_1 + MAX_FRUIT_SET_REGRESSION_COEF_2*last_24_canopy_t)
Returns: maximum fruit set dependency on temperature [fruits m^-2 s^-1]
|
Equation 9.30
max_number_flow_BufFruit_1 = PLANT_DENSITY * (MAX_FRUIT_SET_REGRESSION_COEF_1 + MAX_FRUIT_SET_REGRESSION_COEF_2*last_24_canopy_t)
Returns: maximum fruit set dependency on temperature [fruits m^-2 s^-1]
| def maximum_fruit_set_dependency_on_temperature(last_24_canopy_t):
"""
Equation 9.30
max_number_flow_BufFruit_1 = PLANT_DENSITY * (MAX_FRUIT_SET_REGRESSION_COEF_1 + MAX_FRUIT_SET_REGRESSION_COEF_2*last_24_canopy_t)
Returns: maximum fruit set dependency on temperature [fruits m^-2 s^-1]
"""
retur... | [
"def",
"maximum_fruit_set_dependency_on_temperature",
"(",
"last_24_canopy_t",
")",
":",
"return",
"PLANT_DENSITY",
"*",
"(",
"MAX_FRUIT_SET_REGRESSION_COEF_1",
"+",
"MAX_FRUIT_SET_REGRESSION_COEF_2",
"*",
"last_24_canopy_t",
")"
] | [
14,
0
] | [
20,
113
] | python | en | ['en', 'error', 'th'] | False |
fruit_flow_through_fruit_development_stage | (jth: int, number_Fruits, sum_canopy_t, last_24_canopy_t) |
Equation 9.31
number_flow_Fruit_j_Fruit_jplus = fruit_development_rate * FRUIT_DEVELOPMENT_STAGES_NUM * fruit_flow_inhibition_rate * number_fruit_j
Returns: fruit flow through fruit development stage j [fruits m^-2 s^-1]
|
Equation 9.31
number_flow_Fruit_j_Fruit_jplus = fruit_development_rate * FRUIT_DEVELOPMENT_STAGES_NUM * fruit_flow_inhibition_rate * number_fruit_j
Returns: fruit flow through fruit development stage j [fruits m^-2 s^-1]
| def fruit_flow_through_fruit_development_stage(jth: int, number_Fruits, sum_canopy_t, last_24_canopy_t):
"""
Equation 9.31
number_flow_Fruit_j_Fruit_jplus = fruit_development_rate * FRUIT_DEVELOPMENT_STAGES_NUM * fruit_flow_inhibition_rate * number_fruit_j
Returns: fruit flow through fruit development s... | [
"def",
"fruit_flow_through_fruit_development_stage",
"(",
"jth",
":",
"int",
",",
"number_Fruits",
",",
"sum_canopy_t",
",",
"last_24_canopy_t",
")",
":",
"fruit_development_rate",
"=",
"fruit_development",
"(",
"last_24_canopy_t",
")",
"fruit_flow_inhibition_rate",
"=",
... | [
23,
0
] | [
32,
110
] | python | en | ['en', 'error', 'th'] | False |
LockableThreadPool.callInThread | (self, func, *args, **kwargs) |
called in the main reactor thread. Makes sure the pool
is not locked before continuing.
|
called in the main reactor thread. Makes sure the pool
is not locked before continuing.
| def callInThread(self, func, *args, **kwargs):
"""
called in the main reactor thread. Makes sure the pool
is not locked before continuing.
"""
if self._accept_new:
threadpool.ThreadPool.callInThread(self, func, *args, **kwargs) | [
"def",
"callInThread",
"(",
"self",
",",
"func",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"self",
".",
"_accept_new",
":",
"threadpool",
".",
"ThreadPool",
".",
"callInThread",
"(",
"self",
",",
"func",
",",
"*",
"args",
",",
"*",
... | [
45,
4
] | [
51,
75
] | python | en | ['en', 'error', 'th'] | False |
HTTPChannelWithXForwardedFor.allHeadersReceived | (self) |
Check to see if this is a reverse proxied connection.
|
Check to see if this is a reverse proxied connection. | def allHeadersReceived(self):
"""
Check to see if this is a reverse proxied connection.
"""
CLIENT = 0
http.HTTPChannel.allHeadersReceived(self)
req = self.requests[-1]
client_ip, port = self.transport.client
proxy_chain = req.getHeader('X-FORWARDED-FOR')... | [
"def",
"allHeadersReceived",
"(",
"self",
")",
":",
"CLIENT",
"=",
"0",
"http",
".",
"HTTPChannel",
".",
"allHeadersReceived",
"(",
"self",
")",
"req",
"=",
"self",
".",
"requests",
"[",
"-",
"1",
"]",
"client_ip",
",",
"port",
"=",
"self",
".",
"trans... | [
64,
4
] | [
76,
53
] | python | en | ['en', 'error', 'th'] | False |
EvenniaReverseProxyResource.getChild | (self, path, request) |
Create and return a proxy resource with the same proxy configuration
as this one, except that its path also contains the segment given by
path at the end.
Args:
path (str): Url path.
request (Request object): Incoming request.
Return:
resour... |
Create and return a proxy resource with the same proxy configuration
as this one, except that its path also contains the segment given by
path at the end. | def getChild(self, path, request):
"""
Create and return a proxy resource with the same proxy configuration
as this one, except that its path also contains the segment given by
path at the end.
Args:
path (str): Url path.
request (Request object): Incomin... | [
"def",
"getChild",
"(",
"self",
",",
"path",
",",
"request",
")",
":",
"request",
".",
"notifyFinish",
"(",
")",
".",
"addErrback",
"(",
"lambda",
"f",
":",
"logger",
".",
"log_trace",
"(",
"\"%s\\nCaught errback in webserver.py:75.\"",
"%",
"f",
")",
")",
... | [
85,
4
] | [
103,
25
] | python | en | ['en', 'error', 'th'] | False |
EvenniaReverseProxyResource.render | (self, request) |
Render a request by forwarding it to the proxied server.
Args:
request (Request): Incoming request.
Returns:
not_done (char): Indicator to note request not yet finished.
|
Render a request by forwarding it to the proxied server. | def render(self, request):
"""
Render a request by forwarding it to the proxied server.
Args:
request (Request): Incoming request.
Returns:
not_done (char): Indicator to note request not yet finished.
"""
# RFC 2616 tells us that we can omit the... | [
"def",
"render",
"(",
"self",
",",
"request",
")",
":",
"# RFC 2616 tells us that we can omit the port if it's the default port,",
"# but we have to provide it otherwise",
"request",
".",
"content",
".",
"seek",
"(",
"0",
",",
"0",
")",
"qs",
"=",
"urlparse",
".",
"ur... | [
105,
4
] | [
132,
27
] | python | en | ['en', 'error', 'th'] | False |
DjangoWebRoot.__init__ | (self, pool) |
Setup the django+twisted resource.
Args:
pool (ThreadPool): The twisted threadpool.
|
Setup the django+twisted resource. | def __init__(self, pool):
"""
Setup the django+twisted resource.
Args:
pool (ThreadPool): The twisted threadpool.
"""
self.pool = pool
self._echo_log = True
self._pending_requests = {}
resource.Resource.__init__(self)
self.wsgi_resour... | [
"def",
"__init__",
"(",
"self",
",",
"pool",
")",
":",
"self",
".",
"pool",
"=",
"pool",
"self",
".",
"_echo_log",
"=",
"True",
"self",
".",
"_pending_requests",
"=",
"{",
"}",
"resource",
".",
"Resource",
".",
"__init__",
"(",
"self",
")",
"self",
"... | [
147,
4
] | [
159,
71
] | python | en | ['en', 'error', 'th'] | False |
DjangoWebRoot.empty_threadpool | (self) |
Converts our _pending_requests list of deferreds into a DeferredList
Returns:
deflist (DeferredList): Contains all deferreds of pending requests.
|
Converts our _pending_requests list of deferreds into a DeferredList | def empty_threadpool(self):
"""
Converts our _pending_requests list of deferreds into a DeferredList
Returns:
deflist (DeferredList): Contains all deferreds of pending requests.
"""
self.pool.lock()
if self._pending_requests and self._echo_log:
s... | [
"def",
"empty_threadpool",
"(",
"self",
")",
":",
"self",
".",
"pool",
".",
"lock",
"(",
")",
"if",
"self",
".",
"_pending_requests",
"and",
"self",
".",
"_echo_log",
":",
"self",
".",
"_echo_log",
"=",
"False",
"# just to avoid multiple echoes",
"msg",
"=",... | [
161,
4
] | [
174,
77
] | python | en | ['en', 'error', 'th'] | False |
DjangoWebRoot.getChild | (self, path, request) |
To make things work we nudge the url tree to make this the
root.
Args:
path (str): Url path.
request (Request object): Incoming request.
Notes:
We make sure to save the request queue so
that we can safely kill the threadpool
... |
To make things work we nudge the url tree to make this the
root. | def getChild(self, path, request):
"""
To make things work we nudge the url tree to make this the
root.
Args:
path (str): Url path.
request (Request object): Incoming request.
Notes:
We make sure to save the request queue so
that ... | [
"def",
"getChild",
"(",
"self",
",",
"path",
",",
"request",
")",
":",
"path0",
"=",
"request",
".",
"prepath",
".",
"pop",
"(",
"0",
")",
"request",
".",
"postpath",
".",
"insert",
"(",
"0",
",",
"path0",
")",
"deferred",
"=",
"request",
".",
"not... | [
179,
4
] | [
201,
33
] | python | en | ['en', 'error', 'th'] | False |
Website.logPrefix | (self) | How to be named in logs | How to be named in logs | def logPrefix(self):
"How to be named in logs"
if hasattr(self, "is_portal") and self.is_portal:
return "Webserver-proxy"
return "Webserver" | [
"def",
"logPrefix",
"(",
"self",
")",
":",
"if",
"hasattr",
"(",
"self",
",",
"\"is_portal\"",
")",
"and",
"self",
".",
"is_portal",
":",
"return",
"\"Webserver-proxy\"",
"return",
"\"Webserver\""
] | [
214,
4
] | [
218,
26
] | python | en | ['en', 'en', 'en'] | True |
Website.log | (self, request) | Conditional logging | Conditional logging | def log(self, request):
"""Conditional logging"""
if _DEBUG:
server.Site.log(self, request) | [
"def",
"log",
"(",
"self",
",",
"request",
")",
":",
"if",
"_DEBUG",
":",
"server",
".",
"Site",
".",
"log",
"(",
"self",
",",
"request",
")"
] | [
220,
4
] | [
223,
42
] | python | en | ['en', 'la', 'en'] | False |
WSGIWebServer.__init__ | (self, pool, *args, **kwargs) |
This just stores the threadpool.
Args:
pool (ThreadPool): The twisted threadpool.
args, kwargs (any): Passed on to the TCPServer.
|
This just stores the threadpool. | def __init__(self, pool, *args, **kwargs):
"""
This just stores the threadpool.
Args:
pool (ThreadPool): The twisted threadpool.
args, kwargs (any): Passed on to the TCPServer.
"""
self.pool = pool
internet.TCPServer.__init__(self, *args, **kwarg... | [
"def",
"__init__",
"(",
"self",
",",
"pool",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"pool",
"=",
"pool",
"internet",
".",
"TCPServer",
".",
"__init__",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")"
] | [
240,
4
] | [
250,
58
] | python | en | ['en', 'error', 'th'] | False |
WSGIWebServer.startService | (self) |
Start the pool after the service starts.
|
Start the pool after the service starts. | def startService(self):
"""
Start the pool after the service starts.
"""
internet.TCPServer.startService(self)
self.pool.start() | [
"def",
"startService",
"(",
"self",
")",
":",
"internet",
".",
"TCPServer",
".",
"startService",
"(",
"self",
")",
"self",
".",
"pool",
".",
"start",
"(",
")"
] | [
252,
4
] | [
258,
25
] | python | en | ['en', 'error', 'th'] | False |
WSGIWebServer.stopService | (self) |
Safely stop the pool after the service stops.
|
Safely stop the pool after the service stops. | def stopService(self):
"""
Safely stop the pool after the service stops.
"""
internet.TCPServer.stopService(self)
self.pool.stop() | [
"def",
"stopService",
"(",
"self",
")",
":",
"internet",
".",
"TCPServer",
".",
"stopService",
"(",
"self",
")",
"self",
".",
"pool",
".",
"stop",
"(",
")"
] | [
260,
4
] | [
266,
24
] | python | en | ['en', 'error', 'th'] | False |
Treemap.branchvalues | (self) |
Determines how the items in `values` are summed. When set to
"total", items in `values` are taken to be value of all its
descendants. When set to "remainder", items in `values`
corresponding to the root and the branches sectors are taken to
be the extra part not part of the sum ... |
Determines how the items in `values` are summed. When set to
"total", items in `values` are taken to be value of all its
descendants. When set to "remainder", items in `values`
corresponding to the root and the branches sectors are taken to
be the extra part not part of the sum ... | def branchvalues(self):
"""
Determines how the items in `values` are summed. When set to
"total", items in `values` are taken to be value of all its
descendants. When set to "remainder", items in `values`
corresponding to the root and the branches sectors are taken to
be ... | [
"def",
"branchvalues",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"branchvalues\"",
"]"
] | [
59,
4
] | [
76,
35
] | python | en | ['en', 'error', 'th'] | False |
Treemap.count | (self) |
Determines default for `values` when it is not provided, by
inferring a 1 for each of the "leaves" and/or "branches",
otherwise 0.
The 'count' property is a flaglist and may be specified
as a string containing:
- Any combination of ['branches', 'leaves'] joined wi... |
Determines default for `values` when it is not provided, by
inferring a 1 for each of the "leaves" and/or "branches",
otherwise 0.
The 'count' property is a flaglist and may be specified
as a string containing:
- Any combination of ['branches', 'leaves'] joined wi... | def count(self):
"""
Determines default for `values` when it is not provided, by
inferring a 1 for each of the "leaves" and/or "branches",
otherwise 0.
The 'count' property is a flaglist and may be specified
as a string containing:
- Any combination of ['br... | [
"def",
"count",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"count\"",
"]"
] | [
85,
4
] | [
100,
28
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
109,
4
] | [
123,
33
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
132,
4
] | [
144,
36
] | python | en | ['en', 'error', 'th'] | False |
Treemap.domain | (self) |
The 'domain' property is an instance of Domain
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Domain`
- A dict of string/value properties that will be passed
to the Domain constructor
Supported dict properties:
... |
The 'domain' property is an instance of Domain
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Domain`
- A dict of string/value properties that will be passed
to the Domain constructor
Supported dict properties:
... | def domain(self):
"""
The 'domain' property is an instance of Domain
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Domain`
- A dict of string/value properties that will be passed
to the Domain constructor
Supported d... | [
"def",
"domain",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"domain\"",
"]"
] | [
153,
4
] | [
181,
29
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
190,
4
] | [
207,
32
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
216,
4
] | [
228,
35
] | python | en | ['en', 'error', 'th'] | False |
Treemap.hoverlabel | (self) |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict propertie... |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict propertie... | def hoverlabel(self):
"""
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
... | [
"def",
"hoverlabel",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverlabel\"",
"]"
] | [
237,
4
] | [
287,
33
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
296,
4
] | [
329,
36
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
338,
4
] | [
350,
39
] | python | en | ['en', 'error', 'th'] | False |
Treemap.hovertext | (self) |
Sets hover text elements associated with each sector. If a
single string, the same string appears for all data points. If
an array of string, the items are mapped in order of this
trace's sectors. To be seen, trace `hoverinfo` must contain a
"text" flag.
The 'hovert... |
Sets hover text elements associated with each sector. If a
single string, the same string appears for all data points. If
an array of string, the items are mapped in order of this
trace's sectors. To be seen, trace `hoverinfo` must contain a
"text" flag.
The 'hovert... | def hovertext(self):
"""
Sets hover text elements associated with each sector. If a
single string, the same string appears for all data points. If
an array of string, the items are mapped in order of this
trace's sectors. To be seen, trace `hoverinfo` must contain a
"text... | [
"def",
"hovertext",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertext\"",
"]"
] | [
359,
4
] | [
376,
32
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
385,
4
] | [
397,
35
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
406,
4
] | [
419,
26
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
428,
4
] | [
439,
29
] | python | en | ['en', 'error', 'th'] | False |
Treemap.insidetextfont | (self) |
Sets the font used for `textinfo` lying inside the sector.
The 'insidetextfont' property is an instance of Insidetextfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Insidetextfont`
- A dict of string/value properties that will be passed... |
Sets the font used for `textinfo` lying inside the sector.
The 'insidetextfont' property is an instance of Insidetextfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Insidetextfont`
- A dict of string/value properties that will be passed... | def insidetextfont(self):
"""
Sets the font used for `textinfo` lying inside the sector.
The 'insidetextfont' property is an instance of Insidetextfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Insidetextfont`
- A dict of string... | [
"def",
"insidetextfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"insidetextfont\"",
"]"
] | [
448,
4
] | [
495,
37
] | python | en | ['en', 'error', 'th'] | False |
Treemap.labels | (self) |
Sets the labels of each of the sectors.
The 'labels' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the labels of each of the sectors.
The 'labels' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def labels(self):
"""
Sets the labels of each of the sectors.
The 'labels' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["labels"] | [
"def",
"labels",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"labels\"",
"]"
] | [
504,
4
] | [
515,
29
] | python | en | ['en', 'error', 'th'] | False |
Treemap.labelssrc | (self) |
Sets the source reference on Chart Studio Cloud for labels .
The 'labelssrc' 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 labels .
The 'labelssrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def labelssrc(self):
"""
Sets the source reference on Chart Studio Cloud for labels .
The 'labelssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["labelssrc"] | [
"def",
"labelssrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"labelssrc\"",
"]"
] | [
524,
4
] | [
535,
32
] | python | en | ['en', 'error', 'th'] | False |
Treemap.level | (self) |
Sets the level from which this trace hierarchy is rendered. Set
`level` to `''` to start from the root node in the hierarchy.
Must be an "id" if `ids` is filled in, otherwise plotly
attempts to find a matching item in `labels`.
The 'level' property accepts values of any typ... |
Sets the level from which this trace hierarchy is rendered. Set
`level` to `''` to start from the root node in the hierarchy.
Must be an "id" if `ids` is filled in, otherwise plotly
attempts to find a matching item in `labels`.
The 'level' property accepts values of any typ... | def level(self):
"""
Sets the level from which this trace hierarchy is rendered. Set
`level` to `''` to start from the root node in the hierarchy.
Must be an "id" if `ids` is filled in, otherwise plotly
attempts to find a matching item in `labels`.
The 'level' proper... | [
"def",
"level",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"level\"",
"]"
] | [
544,
4
] | [
557,
28
] | python | en | ['en', 'error', 'th'] | False |
Treemap.marker | (self) |
The 'marker' property is an instance of Marker
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.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.treemap.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.treemap.Marker`
- A dict of string/value properties that will be passed
to the Marker constructor
Supported d... | [
"def",
"marker",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"marker\"",
"]"
] | [
566,
4
] | [
682,
29
] | python | en | ['en', 'error', 'th'] | False |
Treemap.maxdepth | (self) |
Sets the number of rendered sectors from any given `level`. Set
`maxdepth` to "-1" to render all the levels in the hierarchy.
The 'maxdepth' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
Returns
-------
int... |
Sets the number of rendered sectors from any given `level`. Set
`maxdepth` to "-1" to render all the levels in the hierarchy.
The 'maxdepth' property is a integer and may be specified as:
- An int (or float that will be cast to an int) | def maxdepth(self):
"""
Sets the number of rendered sectors from any given `level`. Set
`maxdepth` to "-1" to render all the levels in the hierarchy.
The 'maxdepth' property is a integer and may be specified as:
- An int (or float that will be cast to an int)
Retu... | [
"def",
"maxdepth",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"maxdepth\"",
"]"
] | [
691,
4
] | [
703,
31
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
712,
4
] | [
731,
27
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
740,
4
] | [
751,
30
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
760,
4
] | [
773,
27
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
782,
4
] | [
793,
30
] | python | en | ['en', 'error', 'th'] | False |
Treemap.outsidetextfont | (self) |
Sets the font used for `textinfo` lying outside the sector.
This option refers to the root of the hierarchy presented on
top left corner of a treemap graph. Please note that if a
hierarchy has multiple root nodes, this option won't have any
effect and `insidetextfont` would be u... |
Sets the font used for `textinfo` lying outside the sector.
This option refers to the root of the hierarchy presented on
top left corner of a treemap graph. Please note that if a
hierarchy has multiple root nodes, this option won't have any
effect and `insidetextfont` would be u... | def outsidetextfont(self):
"""
Sets the font used for `textinfo` lying outside the sector.
This option refers to the root of the hierarchy presented on
top left corner of a treemap graph. Please note that if a
hierarchy has multiple root nodes, this option won't have any
... | [
"def",
"outsidetextfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"outsidetextfont\"",
"]"
] | [
802,
4
] | [
853,
38
] | python | en | ['en', 'error', 'th'] | False |
Treemap.parents | (self) |
Sets the parent sectors for each of the sectors. Empty string
items '' are understood to reference the root node in the
hierarchy. If `ids` is filled, `parents` items are understood
to be "ids" themselves. When `ids` is not set, plotly attempts
to find matching items in `labels`... |
Sets the parent sectors for each of the sectors. Empty string
items '' are understood to reference the root node in the
hierarchy. If `ids` is filled, `parents` items are understood
to be "ids" themselves. When `ids` is not set, plotly attempts
to find matching items in `labels`... | def parents(self):
"""
Sets the parent sectors for each of the sectors. Empty string
items '' are understood to reference the root node in the
hierarchy. If `ids` is filled, `parents` items are understood
to be "ids" themselves. When `ids` is not set, plotly attempts
to f... | [
"def",
"parents",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"parents\"",
"]"
] | [
862,
4
] | [
878,
30
] | python | en | ['en', 'error', 'th'] | False |
Treemap.parentssrc | (self) |
Sets the source reference on Chart Studio Cloud for parents .
The 'parentssrc' 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 parents .
The 'parentssrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def parentssrc(self):
"""
Sets the source reference on Chart Studio Cloud for parents .
The 'parentssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["parentssrc"] | [
"def",
"parentssrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"parentssrc\"",
"]"
] | [
887,
4
] | [
898,
33
] | python | en | ['en', 'error', 'th'] | False |
Treemap.pathbar | (self) |
The 'pathbar' property is an instance of Pathbar
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Pathbar`
- A dict of string/value properties that will be passed
to the Pathbar constructor
Supported dict properties:
... |
The 'pathbar' property is an instance of Pathbar
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Pathbar`
- A dict of string/value properties that will be passed
to the Pathbar constructor
Supported dict properties:
... | def pathbar(self):
"""
The 'pathbar' property is an instance of Pathbar
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Pathbar`
- A dict of string/value properties that will be passed
to the Pathbar constructor
Suppor... | [
"def",
"pathbar",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"pathbar\"",
"]"
] | [
907,
4
] | [
938,
30
] | python | en | ['en', 'error', 'th'] | False |
Treemap.stream | (self) |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.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.treemap.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.treemap.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported d... | [
"def",
"stream",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"stream\"",
"]"
] | [
947,
4
] | [
971,
29
] | python | en | ['en', 'error', 'th'] | False |
Treemap.text | (self) |
Sets text elements associated with each sector. If trace
`textinfo` contains a "text" flag, these elements will be seen
on the chart. If trace `hoverinfo` contains a "text" flag and
"hovertext" is not set, these elements will be seen in the
hover labels.
The 'text' ... |
Sets text elements associated with each sector. If trace
`textinfo` contains a "text" flag, these elements will be seen
on the chart. If trace `hoverinfo` contains a "text" flag and
"hovertext" is not set, these elements will be seen in the
hover labels.
The 'text' ... | def text(self):
"""
Sets text elements associated with each sector. If trace
`textinfo` contains a "text" flag, these elements will be seen
on the chart. If trace `hoverinfo` contains a "text" flag and
"hovertext" is not set, these elements will be seen in the
hover label... | [
"def",
"text",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"text\"",
"]"
] | [
980,
4
] | [
995,
27
] | python | en | ['en', 'error', 'th'] | False |
Treemap.textfont | (self) |
Sets the font used for `textinfo`.
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
... |
Sets the font used for `textinfo`.
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Textfont`
- A dict of string/value properties that will be passed
to the Textfont constructor
... | def textfont(self):
"""
Sets the font used for `textinfo`.
The 'textfont' property is an instance of Textfont
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Textfont`
- A dict of string/value properties that will be passed
... | [
"def",
"textfont",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textfont\"",
"]"
] | [
1004,
4
] | [
1051,
31
] | python | en | ['en', 'error', 'th'] | False |
Treemap.textinfo | (self) |
Determines which trace information appear on the graph.
The 'textinfo' property is a flaglist and may be specified
as a string containing:
- Any combination of ['label', 'text', 'value', 'current path', 'percent root', 'percent entry', 'percent parent'] joined with '+' characters... |
Determines which trace information appear on the graph.
The 'textinfo' property is a flaglist and may be specified
as a string containing:
- Any combination of ['label', 'text', 'value', 'current path', 'percent root', 'percent entry', 'percent parent'] joined with '+' characters... | def textinfo(self):
"""
Determines which trace information appear on the graph.
The 'textinfo' property is a flaglist and may be specified
as a string containing:
- Any combination of ['label', 'text', 'value', 'current path', 'percent root', 'percent entry', 'percent pare... | [
"def",
"textinfo",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textinfo\"",
"]"
] | [
1060,
4
] | [
1074,
31
] | python | en | ['en', 'error', 'th'] | False |
Treemap.textposition | (self) |
Sets the positions of the `text` elements.
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',
'middle center', 'middle right', 'bottom le... |
Sets the positions of the `text` elements.
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',
'middle center', 'middle right', 'bottom le... | def textposition(self):
"""
Sets the positions of the `text` elements.
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',
'middle ... | [
"def",
"textposition",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textposition\"",
"]"
] | [
1083,
4
] | [
1097,
35
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
1106,
4
] | [
1117,
30
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
1126,
4
] | [
1154,
35
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
1163,
4
] | [
1175,
38
] | python | en | ['en', 'error', 'th'] | False |
Treemap.tiling | (self) |
The 'tiling' property is an instance of Tiling
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Tiling`
- A dict of string/value properties that will be passed
to the Tiling constructor
Supported dict properties:
... |
The 'tiling' property is an instance of Tiling
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Tiling`
- A dict of string/value properties that will be passed
to the Tiling constructor
Supported dict properties:
... | def tiling(self):
"""
The 'tiling' property is an instance of Tiling
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.Tiling`
- A dict of string/value properties that will be passed
to the Tiling constructor
Supported d... | [
"def",
"tiling",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"tiling\"",
"]"
] | [
1184,
4
] | [
1224,
29
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
1233,
4
] | [
1246,
26
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
1255,
4
] | [
1279,
33
] | python | en | ['en', 'error', 'th'] | False |
Treemap.values | (self) |
Sets the values associated with each of the sectors. Use with
`branchvalues` to determine how the values are summed.
The 'values' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
... |
Sets the values associated with each of the sectors. Use with
`branchvalues` to determine how the values are summed.
The 'values' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def values(self):
"""
Sets the values associated with each of the sectors. Use with
`branchvalues` to determine how the values are summed.
The 'values' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------... | [
"def",
"values",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"values\"",
"]"
] | [
1288,
4
] | [
1300,
29
] | python | en | ['en', 'error', 'th'] | False |
Treemap.valuessrc | (self) |
Sets the source reference on Chart Studio Cloud for values .
The 'valuessrc' 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 values .
The 'valuessrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def valuessrc(self):
"""
Sets the source reference on Chart Studio Cloud for values .
The 'valuessrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["valuessrc"] | [
"def",
"valuessrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"valuessrc\"",
"]"
] | [
1309,
4
] | [
1320,
32
] | python | en | ['en', 'error', 'th'] | False |
Treemap.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\"",
"]"
] | [
1329,
4
] | [
1343,
30
] | python | en | ['en', 'error', 'th'] | False |
Treemap.__init__ | (
self,
arg=None,
branchvalues=None,
count=None,
customdata=None,
customdatasrc=None,
domain=None,
hoverinfo=None,
hoverinfosrc=None,
hoverlabel=None,
hovertemplate=None,
hovertemplatesrc=None,
hovertext=None,
... |
Construct a new Treemap object
Visualize hierarchal data from leaves (and/or outer branches)
towards root with rectangles. The treemap sectors are
determined by the entries in "labels" or "ids" and in
"parents".
Parameters
----------
arg
... |
Construct a new Treemap object
Visualize hierarchal data from leaves (and/or outer branches)
towards root with rectangles. The treemap sectors are
determined by the entries in "labels" or "ids" and in
"parents". | def __init__(
self,
arg=None,
branchvalues=None,
count=None,
customdata=None,
customdatasrc=None,
domain=None,
hoverinfo=None,
hoverinfosrc=None,
hoverlabel=None,
hovertemplate=None,
hovertemplatesrc=None,
hovertext=... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"branchvalues",
"=",
"None",
",",
"count",
"=",
"None",
",",
"customdata",
"=",
"None",
",",
"customdatasrc",
"=",
"None",
",",
"domain",
"=",
"None",
",",
"hoverinfo",
"=",
"None",
",",
"... | [
1577,
4
] | [
2067,
34
] | 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.