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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Line.width | (self) |
Sets the width (in px) of line bounding the violin(s).
The 'width' 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 line bounding the violin(s).
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def width(self):
"""
Sets the width (in px) of line bounding the violin(s).
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["width"] | [
"def",
"width",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"width\"",
"]"
] | [
74,
4
] | [
85,
28
] | python | en | ['en', 'error', 'th'] | False |
Line.__init__ | (self, arg=None, color=None, width=None, **kwargs) |
Construct a new Line object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.violin.Line`
color
Sets the color of line bounding the violin(s).
width
... |
Construct a new Line object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.violin.Line`
color
Sets the color of line bounding the violin(s).
width
... | def __init__(self, arg=None, color=None, width=None, **kwargs):
"""
Construct a new Line object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.violin.Line`
color
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"width",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Line",
",",
"self",
")",
".",
"__init__",
"(",
"\"line\"",
")",
"if",
"\"_parent\"",
... | [
102,
4
] | [
164,
34
] | python | en | ['en', 'error', 'th'] | False |
credentials_get | (request: web.BaseRequest) |
Request handler for retrieving a credential.
Args:
request: aiohttp request object
Returns:
The credential response
|
Request handler for retrieving a credential. | async def credentials_get(request: web.BaseRequest):
"""
Request handler for retrieving a credential.
Args:
request: aiohttp request object
Returns:
The credential response
"""
context = request.app["request_context"]
credential_id = request.match_info["id"]
holder: ... | [
"async",
"def",
"credentials_get",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"credential_id",
"=",
"request",
".",
"match_info",
"[",
"\"id\"",
"]",
"holder",
":",
"BaseH... | [
148,
0
] | [
169,
40
] | python | en | ['en', 'error', 'th'] | False |
credentials_remove | (request: web.BaseRequest) |
Request handler for searching connection records.
Args:
request: aiohttp request object
Returns:
The connection list response
|
Request handler for searching connection records. | async def credentials_remove(request: web.BaseRequest):
"""
Request handler for searching connection records.
Args:
request: aiohttp request object
Returns:
The connection list response
"""
context = request.app["request_context"]
credential_id = request.match_info["id"]
... | [
"async",
"def",
"credentials_remove",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"credential_id",
"=",
"request",
".",
"match_info",
"[",
"\"id\"",
"]",
"holder",
":",
"Ba... | [
173,
0
] | [
194,
32
] | python | en | ['en', 'error', 'th'] | False |
credentials_list | (request: web.BaseRequest) |
Request handler for searching credential records.
Args:
request: aiohttp request object
Returns:
The credential list response
|
Request handler for searching credential records. | async def credentials_list(request: web.BaseRequest):
"""
Request handler for searching credential records.
Args:
request: aiohttp request object
Returns:
The credential list response
"""
context = request.app["request_context"]
start = request.query.get("start")
coun... | [
"async",
"def",
"credentials_list",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"start",
"=",
"request",
".",
"query",
".",
"get",
"(",
"\"start\"",
")",
"count",
"=",
... | [
217,
0
] | [
244,
54
] | python | en | ['en', 'error', 'th'] | False |
credential_exchange_list | (request: web.BaseRequest) |
Request handler for searching credential exchange records.
Args:
request: aiohttp request object
Returns:
The credential exchange list response
|
Request handler for searching credential exchange records. | async def credential_exchange_list(request: web.BaseRequest):
"""
Request handler for searching credential exchange records.
Args:
request: aiohttp request object
Returns:
The credential exchange list response
"""
context = request.app["request_context"]
tag_filter = {}
... | [
"async",
"def",
"credential_exchange_list",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"tag_filter",
"=",
"{",
"}",
"if",
"\"thread_id\"",
"in",
"request",
".",
"query",
"... | [
252,
0
] | [
278,
85
] | python | en | ['en', 'error', 'th'] | False |
credential_exchange_retrieve | (request: web.BaseRequest) |
Request handler for fetching a single credential exchange record.
Args:
request: aiohttp request object
Returns:
The credential exchange record response
|
Request handler for fetching a single credential exchange record. | async def credential_exchange_retrieve(request: web.BaseRequest):
"""
Request handler for fetching a single credential exchange record.
Args:
request: aiohttp request object
Returns:
The credential exchange record response
"""
context = request.app["request_context"]
crede... | [
"async",
"def",
"credential_exchange_retrieve",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"credential_exchange_id",
"=",
"request",
".",
"match_info",
"[",
"\"id\"",
"]",
"tr... | [
286,
0
] | [
305,
48
] | python | en | ['en', 'error', 'th'] | False |
credential_exchange_send | (request: web.BaseRequest) |
Request handler for sending a credential.
Args:
request: aiohttp request object
Returns:
The credential offer details.
|
Request handler for sending a credential. | async def credential_exchange_send(request: web.BaseRequest):
"""
Request handler for sending a credential.
Args:
request: aiohttp request object
Returns:
The credential offer details.
"""
context = request.app["request_context"]
outbound_handler = request.app["outbound_m... | [
"async",
"def",
"credential_exchange_send",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"outbound_handler",
"=",
"request",
".",
"app",
"[",
"\"outbound_message_router\"",
"]",
... | [
314,
0
] | [
355,
68
] | python | en | ['en', 'error', 'th'] | False |
credential_exchange_send_offer | (request: web.BaseRequest) |
Request handler for sending a credential offer.
Args:
request: aiohttp request object
Returns:
The credential offer details.
|
Request handler for sending a credential offer. | async def credential_exchange_send_offer(request: web.BaseRequest):
"""
Request handler for sending a credential offer.
Args:
request: aiohttp request object
Returns:
The credential offer details.
"""
context = request.app["request_context"]
outbound_handler = request.app... | [
"async",
"def",
"credential_exchange_send_offer",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"outbound_handler",
"=",
"request",
".",
"app",
"[",
"\"outbound_message_router\"",
... | [
361,
0
] | [
401,
68
] | python | en | ['en', 'error', 'th'] | False |
credential_exchange_send_request | (request: web.BaseRequest) |
Request handler for sending a credential request.
Args:
request: aiohttp request object
Returns:
The credential request details.
|
Request handler for sending a credential request. | async def credential_exchange_send_request(request: web.BaseRequest):
"""
Request handler for sending a credential request.
Args:
request: aiohttp request object
Returns:
The credential request details.
"""
context = request.app["request_context"]
outbound_handler = reque... | [
"async",
"def",
"credential_exchange_send_request",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"outbound_handler",
"=",
"request",
".",
"app",
"[",
"\"outbound_message_router\"",
... | [
406,
0
] | [
449,
68
] | python | en | ['en', 'error', 'th'] | False |
credential_exchange_issue | (request: web.BaseRequest) |
Request handler for sending a credential.
Args:
request: aiohttp request object
Returns:
The credential details.
|
Request handler for sending a credential. | async def credential_exchange_issue(request: web.BaseRequest):
"""
Request handler for sending a credential.
Args:
request: aiohttp request object
Returns:
The credential details.
"""
context = request.app["request_context"]
outbound_handler = request.app["outbound_message... | [
"async",
"def",
"credential_exchange_issue",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"outbound_handler",
"=",
"request",
".",
"app",
"[",
"\"outbound_message_router\"",
"]",
... | [
455,
0
] | [
498,
68
] | python | en | ['en', 'error', 'th'] | False |
credential_exchange_store | (request: web.BaseRequest) |
Request handler for storing a credential request.
Args:
request: aiohttp request object
Returns:
The credential request details.
|
Request handler for storing a credential request. | async def credential_exchange_store(request: web.BaseRequest):
"""
Request handler for storing a credential request.
Args:
request: aiohttp request object
Returns:
The credential request details.
"""
context = request.app["request_context"]
outbound_handler = request.app[... | [
"async",
"def",
"credential_exchange_store",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"outbound_handler",
"=",
"request",
".",
"app",
"[",
"\"outbound_message_router\"",
"]",
... | [
504,
0
] | [
555,
68
] | python | en | ['en', 'error', 'th'] | False |
credential_exchange_problem_report | (request: web.BaseRequest) |
Request handler for sending a problem report.
Args:
request: aiohttp request object
|
Request handler for sending a problem report. | async def credential_exchange_problem_report(request: web.BaseRequest):
"""
Request handler for sending a problem report.
Args:
request: aiohttp request object
"""
context = request.app["request_context"]
outbound_handler = request.app["outbound_message_router"]
body = await reques... | [
"async",
"def",
"credential_exchange_problem_report",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"outbound_handler",
"=",
"request",
".",
"app",
"[",
"\"outbound_message_router\""... | [
563,
0
] | [
589,
32
] | python | en | ['en', 'error', 'th'] | False |
credential_exchange_remove | (request: web.BaseRequest) |
Request handler for removing a credential exchange record.
Args:
request: aiohttp request object
|
Request handler for removing a credential exchange record. | async def credential_exchange_remove(request: web.BaseRequest):
"""
Request handler for removing a credential exchange record.
Args:
request: aiohttp request object
"""
context = request.app["request_context"]
credential_exchange_id = request.match_info["id"]
try:
credential... | [
"async",
"def",
"credential_exchange_remove",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"credential_exchange_id",
"=",
"request",
".",
"match_info",
"[",
"\"id\"",
"]",
"try"... | [
596,
0
] | [
612,
32
] | python | en | ['en', 'error', 'th'] | False |
register | (app: web.Application) | Register routes. | Register routes. | async def register(app: web.Application):
"""Register routes."""
app.add_routes(
[
web.get("/credential/{id}", credentials_get),
web.post("/credential/{id}/remove", credentials_remove),
web.get("/credentials", credentials_list),
web.get("/credential_excha... | [
"async",
"def",
"register",
"(",
"app",
":",
"web",
".",
"Application",
")",
":",
"app",
".",
"add_routes",
"(",
"[",
"web",
".",
"get",
"(",
"\"/credential/{id}\"",
",",
"credentials_get",
")",
",",
"web",
".",
"post",
"(",
"\"/credential/{id}/remove\"",
... | [
615,
0
] | [
639,
5
] | python | en | ['en', 'fr', 'en'] | False |
TestConvoRender.test_convo_render | (self) |
Test convo render by creating a self-chat, saving it to file and render it to
html.
|
Test convo render by creating a self-chat, saving it to file and render it to
html.
| def test_convo_render(self):
"""
Test convo render by creating a self-chat, saving it to file and render it to
html.
"""
self_chat_pp = self_chat.setup_args()
self_chat_opt = self_chat_pp.parse_args(
[
'-m',
'fixed_response',
... | [
"def",
"test_convo_render",
"(",
"self",
")",
":",
"self_chat_pp",
"=",
"self_chat",
".",
"setup_args",
"(",
")",
"self_chat_opt",
"=",
"self_chat_pp",
".",
"parse_args",
"(",
"[",
"'-m'",
",",
"'fixed_response'",
",",
"'--fixed-response'",
",",
"'Hey there'",
"... | [
12,
4
] | [
36,
51
] | python | en | ['en', 'error', 'th'] | False |
format_chats_orig | (chats) |
Original hobbot chat format stored the dialogues as newline separated text, and the
bot and human personas as strings.
The choice and location appear in the dialogue history as strings.
|
Original hobbot chat format stored the dialogues as newline separated text, and the
bot and human personas as strings. | def format_chats_orig(chats):
"""
Original hobbot chat format stored the dialogues as newline separated text, and the
bot and human personas as strings.
The choice and location appear in the dialogue history as strings.
"""
chats = [
c
for c in chats
if c['dialogue'] is ... | [
"def",
"format_chats_orig",
"(",
"chats",
")",
":",
"chats",
"=",
"[",
"c",
"for",
"c",
"in",
"chats",
"if",
"c",
"[",
"'dialogue'",
"]",
"is",
"not",
"None",
"and",
"len",
"(",
"c",
"[",
"'dialogue'",
"]",
".",
"split",
"(",
"'\\\\n'",
")",
")",
... | [
488,
0
] | [
581,
26
] | python | en | ['en', 'error', 'th'] | False |
format_chats_june_2020 | (chats) |
June 2020 format involves storing location and choice in the dialogue, but complete
human and bot personas as objects that need to be json loaded.
Model name also contains the full fixed candidates path, when we're only truly
interested in the filename.
|
June 2020 format involves storing location and choice in the dialogue, but complete
human and bot personas as objects that need to be json loaded. | def format_chats_june_2020(chats):
"""
June 2020 format involves storing location and choice in the dialogue, but complete
human and bot personas as objects that need to be json loaded.
Model name also contains the full fixed candidates path, when we're only truly
interested in the filename.
""... | [
"def",
"format_chats_june_2020",
"(",
"chats",
")",
":",
"for",
"c",
"in",
"chats",
":",
"c",
"[",
"'dialogue'",
"]",
"=",
"json",
".",
"loads",
"(",
"c",
"[",
"'dialogue'",
"]",
".",
"replace",
"(",
"'\\\\\\\\'",
",",
"'\\\\'",
")",
")",
"c",
"[",
... | [
584,
0
] | [
618,
16
] | 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.scatter3d.Stream`
maxpoints
Sets the maximum number of points to keep ... |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.scatter3d.Stream`
maxpoints
Sets the maximum number of points to keep ... | 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.scatter3d.S... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"maxpoints",
"=",
"None",
",",
"token",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Stream",
",",
"self",
")",
".",
"__init__",
"(",
"\"stream\"",
")",
"if",
"\"_paren... | [
72,
4
] | [
140,
34
] | python | en | ['en', 'error', 'th'] | False |
Font.color | (self) |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... | def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A name... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
63,
28
] | python | en | ['en', 'error', 'th'] | False |
Font.family | (self) |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... | def family(self):
"""
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
prefer... | [
"def",
"family",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"family\"",
"]"
] | [
72,
4
] | [
94,
29
] | python | en | ['en', 'error', 'th'] | False |
Font.size | (self) |
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
|
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf] | def size(self):
"""
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
"""
return self["size"] | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
103,
4
] | [
112,
27
] | python | en | ['en', 'error', 'th'] | False |
Font.__init__ | (self, arg=None, color=None, family=None, size=None, **kwargs) |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg
dict of properties compatible with this constructor or
an inst... |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute. | def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
"""
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"family",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Font",
",",
"self",
")",
".",
"__init__",
"(",
"\"font\"",... | [
143,
4
] | [
227,
34
] | python | en | ['en', 'error', 'th'] | False |
Portal.__init__ | (self, application) |
Setup the server.
Args:
application (Application): An instantiated Twisted application
|
Setup the server. | def __init__(self, application):
"""
Setup the server.
Args:
application (Application): An instantiated Twisted application
"""
sys.path.append('.')
# create a store of services
self.services = service.IServiceCollection(application)
self.am... | [
"def",
"__init__",
"(",
"self",
",",
"application",
")",
":",
"sys",
".",
"path",
".",
"append",
"(",
"'.'",
")",
"# create a store of services",
"self",
".",
"services",
"=",
"service",
".",
"IServiceCollection",
"(",
"application",
")",
"self",
".",
"amp_p... | [
95,
4
] | [
123,
95
] | python | en | ['en', 'error', 'th'] | False |
Portal._get_backup_server_twistd_cmd | (self) |
For interactive Portal mode there is no way to get the server cmdline from the launcher, so
we need to guess it here (it's very likely to not change)
Returns:
server_twistd_cmd (list): An instruction for starting the server, to pass to Popen.
|
For interactive Portal mode there is no way to get the server cmdline from the launcher, so
we need to guess it here (it's very likely to not change) | def _get_backup_server_twistd_cmd(self):
"""
For interactive Portal mode there is no way to get the server cmdline from the launcher, so
we need to guess it here (it's very likely to not change)
Returns:
server_twistd_cmd (list): An instruction for starting the server, to pa... | [
"def",
"_get_backup_server_twistd_cmd",
"(",
"self",
")",
":",
"server_twistd_cmd",
"=",
"[",
"\"twistd\"",
",",
"\"--python={}\"",
".",
"format",
"(",
"os",
".",
"path",
".",
"join",
"(",
"dirname",
"(",
"dirname",
"(",
"abspath",
"(",
"__file__",
")",
")",... | [
125,
4
] | [
140,
32
] | python | en | ['en', 'error', 'th'] | False |
Portal.get_info_dict | (self) | Return the Portal info, for display. | Return the Portal info, for display. | def get_info_dict(self):
"Return the Portal info, for display."
return INFO_DICT | [
"def",
"get_info_dict",
"(",
"self",
")",
":",
"return",
"INFO_DICT"
] | [
142,
4
] | [
144,
24
] | python | en | ['en', 'en', 'en'] | True |
Portal.shutdown | (self, _reactor_stopping=False, _stop_server=False) |
Shuts down the server from inside it.
Args:
_reactor_stopping (bool, optional): This is set if server
is already in the process of shutting down; in this case
we don't need to stop it again.
_stop_server (bool, optional): Only used in portal-inte... |
Shuts down the server from inside it. | def shutdown(self, _reactor_stopping=False, _stop_server=False):
"""
Shuts down the server from inside it.
Args:
_reactor_stopping (bool, optional): This is set if server
is already in the process of shutting down; in this case
we don't need to stop i... | [
"def",
"shutdown",
"(",
"self",
",",
"_reactor_stopping",
"=",
"False",
",",
"_stop_server",
"=",
"False",
")",
":",
"if",
"_reactor_stopping",
"and",
"hasattr",
"(",
"self",
",",
"\"shutdown_complete\"",
")",
":",
"# we get here due to us calling reactor.stop below. ... | [
146,
4
] | [
175,
46
] | python | en | ['en', 'error', 'th'] | False |
Dispatcher.__init__ | (self, context: InjectionContext) | Initialize an instance of Dispatcher. | Initialize an instance of Dispatcher. | def __init__(self, context: InjectionContext):
"""Initialize an instance of Dispatcher."""
self.context = context
self.task_queue = TaskQueue(max_active=20) | [
"def",
"__init__",
"(",
"self",
",",
"context",
":",
"InjectionContext",
")",
":",
"self",
".",
"context",
"=",
"context",
"self",
".",
"task_queue",
"=",
"TaskQueue",
"(",
"max_active",
"=",
"20",
")"
] | [
37,
4
] | [
40,
50
] | python | en | ['en', 'en', 'en'] | True |
Dispatcher.put_task | (self, coro: Coroutine, complete: Callable = None) | Run a task in the task queue, potentially blocking other handlers. | Run a task in the task queue, potentially blocking other handlers. | def put_task(self, coro: Coroutine, complete: Callable = None) -> asyncio.Future:
"""Run a task in the task queue, potentially blocking other handlers."""
return self.task_queue.put(coro, complete) | [
"def",
"put_task",
"(",
"self",
",",
"coro",
":",
"Coroutine",
",",
"complete",
":",
"Callable",
"=",
"None",
")",
"->",
"asyncio",
".",
"Future",
":",
"return",
"self",
".",
"task_queue",
".",
"put",
"(",
"coro",
",",
"complete",
")"
] | [
42,
4
] | [
44,
50
] | python | en | ['en', 'en', 'en'] | True |
Dispatcher.run_task | (self, coro: Coroutine, complete: Callable = None) | Run a task in the task queue, potentially blocking other handlers. | Run a task in the task queue, potentially blocking other handlers. | def run_task(self, coro: Coroutine, complete: Callable = None) -> asyncio.Task:
"""Run a task in the task queue, potentially blocking other handlers."""
return self.task_queue.run(coro, complete) | [
"def",
"run_task",
"(",
"self",
",",
"coro",
":",
"Coroutine",
",",
"complete",
":",
"Callable",
"=",
"None",
")",
"->",
"asyncio",
".",
"Task",
":",
"return",
"self",
".",
"task_queue",
".",
"run",
"(",
"coro",
",",
"complete",
")"
] | [
46,
4
] | [
48,
50
] | python | en | ['en', 'en', 'en'] | True |
Dispatcher.queue_message | (
self,
inbound_message: InboundMessage,
send_outbound: Coroutine,
send_webhook: Coroutine = None,
complete: Callable = None,
) |
Add a message to the processing queue for handling.
Args:
inbound_message: The inbound message instance
send_outbound: Async function to send outbound messages
send_webhook: Async function to dispatch a webhook
complete: Function to call when the handler... |
Add a message to the processing queue for handling. | def queue_message(
self,
inbound_message: InboundMessage,
send_outbound: Coroutine,
send_webhook: Coroutine = None,
complete: Callable = None,
) -> asyncio.Future:
"""
Add a message to the processing queue for handling.
Args:
inbound_messa... | [
"def",
"queue_message",
"(",
"self",
",",
"inbound_message",
":",
"InboundMessage",
",",
"send_outbound",
":",
"Coroutine",
",",
"send_webhook",
":",
"Coroutine",
"=",
"None",
",",
"complete",
":",
"Callable",
"=",
"None",
",",
")",
"->",
"asyncio",
".",
"Fu... | [
50,
4
] | [
72,
9
] | python | en | ['en', 'error', 'th'] | False |
Dispatcher.handle_message | (
self,
inbound_message: InboundMessage,
send_outbound: Coroutine,
send_webhook: Coroutine = None,
) |
Configure responder and message context and invoke the message handler.
Args:
inbound_message: The inbound message instance
send_outbound: Async function to send outbound messages
send_webhook: Async function to dispatch a webhook
Returns:
The r... |
Configure responder and message context and invoke the message handler. | async def handle_message(
self,
inbound_message: InboundMessage,
send_outbound: Coroutine,
send_webhook: Coroutine = None,
):
"""
Configure responder and message context and invoke the message handler.
Args:
inbound_message: The inbound message in... | [
"async",
"def",
"handle_message",
"(",
"self",
",",
"inbound_message",
":",
"InboundMessage",
",",
"send_outbound",
":",
"Coroutine",
",",
"send_webhook",
":",
"Coroutine",
"=",
"None",
",",
")",
":",
"connection_mgr",
"=",
"ConnectionManager",
"(",
"self",
".",... | [
74,
4
] | [
137,
52
] | python | en | ['en', 'error', 'th'] | False |
Dispatcher.make_message | (self, parsed_msg: dict) |
Deserialize a message dict into the appropriate message instance.
Given a dict describing a message, this method
returns an instance of the related message class.
Args:
parsed_msg: The parsed message
Returns:
An instance of the corresponding message cl... |
Deserialize a message dict into the appropriate message instance. | async def make_message(self, parsed_msg: dict) -> AgentMessage:
"""
Deserialize a message dict into the appropriate message instance.
Given a dict describing a message, this method
returns an instance of the related message class.
Args:
parsed_msg: The parsed messag... | [
"async",
"def",
"make_message",
"(",
"self",
",",
"parsed_msg",
":",
"dict",
")",
"->",
"AgentMessage",
":",
"registry",
":",
"ProtocolRegistry",
"=",
"await",
"self",
".",
"context",
".",
"inject",
"(",
"ProtocolRegistry",
")",
"message_type",
"=",
"parsed_ms... | [
139,
4
] | [
173,
23
] | python | en | ['en', 'error', 'th'] | False |
DispatcherResponder.__init__ | (
self,
context: RequestContext,
inbound_message: InboundMessage,
send_outbound: Coroutine,
send_webhook: Coroutine = None,
**kwargs,
) |
Initialize an instance of `DispatcherResponder`.
Args:
context: The request context of the incoming message
inbound_message: The inbound message triggering this handler
send_outbound: Async function to send outbound message
send_webhook: Async function t... |
Initialize an instance of `DispatcherResponder`. | def __init__(
self,
context: RequestContext,
inbound_message: InboundMessage,
send_outbound: Coroutine,
send_webhook: Coroutine = None,
**kwargs,
):
"""
Initialize an instance of `DispatcherResponder`.
Args:
context: The request co... | [
"def",
"__init__",
"(",
"self",
",",
"context",
":",
"RequestContext",
",",
"inbound_message",
":",
"InboundMessage",
",",
"send_outbound",
":",
"Coroutine",
",",
"send_webhook",
":",
"Coroutine",
"=",
"None",
",",
"*",
"*",
"kwargs",
",",
")",
":",
"super",... | [
179,
4
] | [
201,
36
] | python | en | ['en', 'error', 'th'] | False |
DispatcherResponder.create_outbound | (
self, message: Union[AgentMessage, str, bytes], **kwargs
) |
Create an OutboundMessage from a message body.
Args:
message: The message payload
|
Create an OutboundMessage from a message body. | async def create_outbound(
self, message: Union[AgentMessage, str, bytes], **kwargs
) -> OutboundMessage:
"""
Create an OutboundMessage from a message body.
Args:
message: The message payload
"""
if isinstance(message, AgentMessage) and self._context.sett... | [
"async",
"def",
"create_outbound",
"(",
"self",
",",
"message",
":",
"Union",
"[",
"AgentMessage",
",",
"str",
",",
"bytes",
"]",
",",
"*",
"*",
"kwargs",
")",
"->",
"OutboundMessage",
":",
"if",
"isinstance",
"(",
"message",
",",
"AgentMessage",
")",
"a... | [
203,
4
] | [
224,
63
] | python | en | ['en', 'error', 'th'] | False |
DispatcherResponder.send_outbound | (self, message: OutboundMessage) |
Send outbound message.
Args:
message: The `OutboundMessage` to be sent
|
Send outbound message. | async def send_outbound(self, message: OutboundMessage):
"""
Send outbound message.
Args:
message: The `OutboundMessage` to be sent
"""
await self._send(self._context, message, self._inbound_message) | [
"async",
"def",
"send_outbound",
"(",
"self",
",",
"message",
":",
"OutboundMessage",
")",
":",
"await",
"self",
".",
"_send",
"(",
"self",
".",
"_context",
",",
"message",
",",
"self",
".",
"_inbound_message",
")"
] | [
226,
4
] | [
233,
71
] | python | en | ['en', 'error', 'th'] | False |
DispatcherResponder.send_webhook | (self, topic: str, payload: dict) |
Dispatch a webhook.
Args:
topic: the webhook topic identifier
payload: the webhook payload value
|
Dispatch a webhook. | async def send_webhook(self, topic: str, payload: dict):
"""
Dispatch a webhook.
Args:
topic: the webhook topic identifier
payload: the webhook payload value
"""
if self._webhook:
await self._webhook(topic, payload) | [
"async",
"def",
"send_webhook",
"(",
"self",
",",
"topic",
":",
"str",
",",
"payload",
":",
"dict",
")",
":",
"if",
"self",
".",
"_webhook",
":",
"await",
"self",
".",
"_webhook",
"(",
"topic",
",",
"payload",
")"
] | [
235,
4
] | [
244,
47
] | python | en | ['en', 'error', 'th'] | False |
X.fill | (self) |
Sets the fill ratio of the `caps`. The default fill value of
the `caps` is 1 meaning that they are entirely shaded. On the
other hand Applying a `fill` ratio less than one would allow
the creation of openings parallel to the edges.
The 'fill' property is a number and may be... |
Sets the fill ratio of the `caps`. The default fill value of
the `caps` is 1 meaning that they are entirely shaded. On the
other hand Applying a `fill` ratio less than one would allow
the creation of openings parallel to the edges.
The 'fill' property is a number and may be... | def fill(self):
"""
Sets the fill ratio of the `caps`. The default fill value of
the `caps` is 1 meaning that they are entirely shaded. On the
other hand Applying a `fill` ratio less than one would allow
the creation of openings parallel to the edges.
The 'fill' prop... | [
"def",
"fill",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"fill\"",
"]"
] | [
15,
4
] | [
29,
27
] | python | en | ['en', 'error', 'th'] | False |
X.show | (self) |
Sets the fill ratio of the `slices`. The default fill value of
the x `slices` is 1 meaning that they are entirely shaded. On
the other hand Applying a `fill` ratio less than one would
allow the creation of openings parallel to the edges.
The 'show' property must be specifie... |
Sets the fill ratio of the `slices`. The default fill value of
the x `slices` is 1 meaning that they are entirely shaded. On
the other hand Applying a `fill` ratio less than one would
allow the creation of openings parallel to the edges.
The 'show' property must be specifie... | def show(self):
"""
Sets the fill ratio of the `slices`. The default fill value of
the x `slices` is 1 meaning that they are entirely shaded. On
the other hand Applying a `fill` ratio less than one would
allow the creation of openings parallel to the edges.
The 'show... | [
"def",
"show",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"show\"",
"]"
] | [
38,
4
] | [
52,
27
] | python | en | ['en', 'error', 'th'] | False |
X.__init__ | (self, arg=None, fill=None, show=None, **kwargs) |
Construct a new X object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.volume.caps.X`
fill
Sets the fill ratio of the `caps`. The default fill
val... |
Construct a new X object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.volume.caps.X`
fill
Sets the fill ratio of the `caps`. The default fill
val... | def __init__(self, arg=None, fill=None, show=None, **kwargs):
"""
Construct a new X object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.volume.caps.X`
fill
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"fill",
"=",
"None",
",",
"show",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"X",
",",
"self",
")",
".",
"__init__",
"(",
"\"x\"",
")",
"if",
"\"_parent\"",
"in",
... | [
77,
4
] | [
147,
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.scattercarpet.
marker.colorbar.Tickformatstop`
dtickrange
rang... |
Construct a new Tickformatstop object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.scattercarpet.
marker.colorbar.Tickformatstop`
dtickrange
rang... | 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 |
Scene.annotations | (self) |
The 'annotations' property is a tuple of instances of
Annotation that may be specified as:
- A list or tuple of instances of plotly.graph_objs.layout.scene.Annotation
- A list or tuple of dicts of string/value properties that
will be passed to the Annotation constructor
... |
The 'annotations' property is a tuple of instances of
Annotation that may be specified as:
- A list or tuple of instances of plotly.graph_objs.layout.scene.Annotation
- A list or tuple of dicts of string/value properties that
will be passed to the Annotation constructor
... | def annotations(self):
"""
The 'annotations' property is a tuple of instances of
Annotation that may be specified as:
- A list or tuple of instances of plotly.graph_objs.layout.scene.Annotation
- A list or tuple of dicts of string/value properties that
will be pas... | [
"def",
"annotations",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"annotations\"",
"]"
] | [
29,
4
] | [
220,
34
] | python | en | ['en', 'error', 'th'] | False |
Scene.annotationdefaults | (self) |
When used in a template (as
layout.template.layout.scene.annotationdefaults), sets the
default property values to use for elements of
layout.scene.annotations
The 'annotationdefaults' property is an instance of Annotation
that may be specified as:
- An ins... |
When used in a template (as
layout.template.layout.scene.annotationdefaults), sets the
default property values to use for elements of
layout.scene.annotations
The 'annotationdefaults' property is an instance of Annotation
that may be specified as:
- An ins... | def annotationdefaults(self):
"""
When used in a template (as
layout.template.layout.scene.annotationdefaults), sets the
default property values to use for elements of
layout.scene.annotations
The 'annotationdefaults' property is an instance of Annotation
tha... | [
"def",
"annotationdefaults",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"annotationdefaults\"",
"]"
] | [
229,
4
] | [
248,
41
] | python | en | ['en', 'error', 'th'] | False |
Scene.aspectmode | (self) |
If "cube", this scene's axes are drawn as a cube, regardless of
the axes' ranges. If "data", this scene's axes are drawn in
proportion with the axes' ranges. If "manual", this scene's
axes are drawn in proportion with the input of "aspectratio"
(the default behavior if "aspectra... |
If "cube", this scene's axes are drawn as a cube, regardless of
the axes' ranges. If "data", this scene's axes are drawn in
proportion with the axes' ranges. If "manual", this scene's
axes are drawn in proportion with the input of "aspectratio"
(the default behavior if "aspectra... | def aspectmode(self):
"""
If "cube", this scene's axes are drawn as a cube, regardless of
the axes' ranges. If "data", this scene's axes are drawn in
proportion with the axes' ranges. If "manual", this scene's
axes are drawn in proportion with the input of "aspectratio"
(... | [
"def",
"aspectmode",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"aspectmode\"",
"]"
] | [
257,
4
] | [
276,
33
] | python | en | ['en', 'error', 'th'] | False |
Scene.aspectratio | (self) |
Sets this scene's axis aspectratio.
The 'aspectratio' property is an instance of Aspectratio
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.Aspectratio`
- A dict of string/value properties that will be passed
to the Aspectr... |
Sets this scene's axis aspectratio.
The 'aspectratio' property is an instance of Aspectratio
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.Aspectratio`
- A dict of string/value properties that will be passed
to the Aspectr... | def aspectratio(self):
"""
Sets this scene's axis aspectratio.
The 'aspectratio' property is an instance of Aspectratio
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.Aspectratio`
- A dict of string/value properties that will be... | [
"def",
"aspectratio",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"aspectratio\"",
"]"
] | [
285,
4
] | [
307,
34
] | python | en | ['en', 'error', 'th'] | False |
Scene.bgcolor | (self) |
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... |
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... | def bgcolor(self):
"""
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A ... | [
"def",
"bgcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolor\"",
"]"
] | [
316,
4
] | [
364,
30
] | python | en | ['en', 'error', 'th'] | False |
Scene.camera | (self) |
The 'camera' property is an instance of Camera
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.Camera`
- A dict of string/value properties that will be passed
to the Camera constructor
Supported dict properties:
... |
The 'camera' property is an instance of Camera
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.Camera`
- A dict of string/value properties that will be passed
to the Camera constructor
Supported dict properties:
... | def camera(self):
"""
The 'camera' property is an instance of Camera
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.Camera`
- A dict of string/value properties that will be passed
to the Camera constructor
Suppor... | [
"def",
"camera",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"camera\"",
"]"
] | [
373,
4
] | [
408,
29
] | python | en | ['en', 'error', 'th'] | False |
Scene.domain | (self) |
The 'domain' property is an instance of Domain
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.Domain`
- A dict of string/value properties that will be passed
to the Domain constructor
Supported dict properties:
... |
The 'domain' property is an instance of Domain
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.Domain`
- A dict of string/value properties that will be passed
to the Domain constructor
Supported dict properties:
... | def domain(self):
"""
The 'domain' property is an instance of Domain
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.Domain`
- A dict of string/value properties that will be passed
to the Domain constructor
Suppor... | [
"def",
"domain",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"domain\"",
"]"
] | [
417,
4
] | [
445,
29
] | python | en | ['en', 'error', 'th'] | False |
Scene.dragmode | (self) |
Determines the mode of drag interactions for this scene.
The 'dragmode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['orbit', 'turntable', 'zoom', 'pan', False]
Returns
-------
Any
|
Determines the mode of drag interactions for this scene.
The 'dragmode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['orbit', 'turntable', 'zoom', 'pan', False] | def dragmode(self):
"""
Determines the mode of drag interactions for this scene.
The 'dragmode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['orbit', 'turntable', 'zoom', 'pan', False]
Returns
---... | [
"def",
"dragmode",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dragmode\"",
"]"
] | [
454,
4
] | [
466,
31
] | python | en | ['en', 'error', 'th'] | False |
Scene.hovermode | (self) |
Determines the mode of hover interactions for this scene.
The 'hovermode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['closest', False]
Returns
-------
Any
|
Determines the mode of hover interactions for this scene.
The 'hovermode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['closest', False] | def hovermode(self):
"""
Determines the mode of hover interactions for this scene.
The 'hovermode' property is an enumeration that may be specified as:
- One of the following enumeration values:
['closest', False]
Returns
-------
Any
... | [
"def",
"hovermode",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovermode\"",
"]"
] | [
475,
4
] | [
487,
32
] | python | en | ['en', 'error', 'th'] | False |
Scene.uirevision | (self) |
Controls persistence of user-driven changes in camera
attributes. Defaults to `layout.uirevision`.
The 'uirevision' property accepts values of any type
Returns
-------
Any
|
Controls persistence of user-driven changes in camera
attributes. Defaults to `layout.uirevision`.
The 'uirevision' property accepts values of any type | def uirevision(self):
"""
Controls persistence of user-driven changes in camera
attributes. Defaults to `layout.uirevision`.
The 'uirevision' property accepts values of any type
Returns
-------
Any
"""
return self["uirevision"] | [
"def",
"uirevision",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uirevision\"",
"]"
] | [
496,
4
] | [
507,
33
] | python | en | ['en', 'error', 'th'] | False |
Scene.xaxis | (self) |
The 'xaxis' property is an instance of XAxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.XAxis`
- A dict of string/value properties that will be passed
to the XAxis constructor
Supported dict properties:
... |
The 'xaxis' property is an instance of XAxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.XAxis`
- A dict of string/value properties that will be passed
to the XAxis constructor
Supported dict properties:
... | def xaxis(self):
"""
The 'xaxis' property is an instance of XAxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.XAxis`
- A dict of string/value properties that will be passed
to the XAxis constructor
Supported d... | [
"def",
"xaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"xaxis\"",
"]"
] | [
516,
4
] | [
820,
28
] | python | en | ['en', 'error', 'th'] | False |
Scene.yaxis | (self) |
The 'yaxis' property is an instance of YAxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.YAxis`
- A dict of string/value properties that will be passed
to the YAxis constructor
Supported dict properties:
... |
The 'yaxis' property is an instance of YAxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.YAxis`
- A dict of string/value properties that will be passed
to the YAxis constructor
Supported dict properties:
... | def yaxis(self):
"""
The 'yaxis' property is an instance of YAxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.YAxis`
- A dict of string/value properties that will be passed
to the YAxis constructor
Supported d... | [
"def",
"yaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"yaxis\"",
"]"
] | [
829,
4
] | [
1133,
28
] | python | en | ['en', 'error', 'th'] | False |
Scene.zaxis | (self) |
The 'zaxis' property is an instance of ZAxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.ZAxis`
- A dict of string/value properties that will be passed
to the ZAxis constructor
Supported dict properties:
... |
The 'zaxis' property is an instance of ZAxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.ZAxis`
- A dict of string/value properties that will be passed
to the ZAxis constructor
Supported dict properties:
... | def zaxis(self):
"""
The 'zaxis' property is an instance of ZAxis
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.scene.ZAxis`
- A dict of string/value properties that will be passed
to the ZAxis constructor
Supported d... | [
"def",
"zaxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"zaxis\"",
"]"
] | [
1142,
4
] | [
1446,
28
] | python | en | ['en', 'error', 'th'] | False |
Scene.__init__ | (
self,
arg=None,
annotations=None,
annotationdefaults=None,
aspectmode=None,
aspectratio=None,
bgcolor=None,
camera=None,
domain=None,
dragmode=None,
hovermode=None,
uirevision=None,
xaxis=None,
yaxis=None,
... |
Construct a new Scene object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.layout.Scene`
annotations
A tuple of
:class:`plotly.graph_objects.layou... |
Construct a new Scene object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.layout.Scene`
annotations
A tuple of
:class:`plotly.graph_objects.layou... | def __init__(
self,
arg=None,
annotations=None,
annotationdefaults=None,
aspectmode=None,
aspectratio=None,
bgcolor=None,
camera=None,
domain=None,
dragmode=None,
hovermode=None,
uirevision=None,
xaxis=None,
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"annotations",
"=",
"None",
",",
"annotationdefaults",
"=",
"None",
",",
"aspectmode",
"=",
"None",
",",
"aspectratio",
"=",
"None",
",",
"bgcolor",
"=",
"None",
",",
"camera",
"=",
"None",
... | [
1507,
4
] | [
1674,
34
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.__init__ | (self, *args, **kwargs) |
Init the handler
|
Init the handler | def __init__(self, *args, **kwargs):
"""
Init the handler
"""
super(PortalSessionHandler, self).__init__(*args, **kwargs)
self.portal = None
self.latest_sessid = 0
self.uptime = time.time()
self.connection_time = 0
self.connection_last = self.upt... | [
"def",
"__init__",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"PortalSessionHandler",
",",
"self",
")",
".",
"__init__",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
"self",
".",
"portal",
"=",
"None",
"self"... | [
50,
4
] | [
62,
35
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.at_server_connection | (self) |
Called when the Portal establishes connection with the Server.
At this point, the AMP connection is already established.
|
Called when the Portal establishes connection with the Server.
At this point, the AMP connection is already established. | def at_server_connection(self):
"""
Called when the Portal establishes connection with the Server.
At this point, the AMP connection is already established.
"""
self.connection_time = time.time() | [
"def",
"at_server_connection",
"(",
"self",
")",
":",
"self",
".",
"connection_time",
"=",
"time",
".",
"time",
"(",
")"
] | [
64,
4
] | [
70,
42
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.connect | (self, session) |
Called by protocol at first connect. This adds a not-yet
authenticated session using an ever-increasing counter for
sessid.
Args:
session (PortalSession): The Session connecting.
Notes:
We implement a throttling mechanism here to limit the speed at
... |
Called by protocol at first connect. This adds a not-yet
authenticated session using an ever-increasing counter for
sessid. | def connect(self, session):
"""
Called by protocol at first connect. This adds a not-yet
authenticated session using an ever-increasing counter for
sessid.
Args:
session (PortalSession): The Session connecting.
Notes:
We implement a throttling me... | [
"def",
"connect",
"(",
"self",
",",
"session",
")",
":",
"global",
"_CONNECTION_QUEUE",
"if",
"session",
":",
"# assign if we are first-connectors",
"self",
".",
"latest_sessid",
"+=",
"1",
"session",
".",
"sessid",
"=",
"self",
".",
"latest_sessid",
"session",
... | [
72,
4
] | [
123,
82
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.sync | (self, session) |
Called by the protocol of an already connected session. This
can be used to sync the session info in a delayed manner, such
as when negotiation and handshakes are delayed.
Args:
session (PortalSession): Session to sync.
|
Called by the protocol of an already connected session. This
can be used to sync the session info in a delayed manner, such
as when negotiation and handshakes are delayed. | def sync(self, session):
"""
Called by the protocol of an already connected session. This
can be used to sync the session info in a delayed manner, such
as when negotiation and handshakes are delayed.
Args:
session (PortalSession): Session to sync.
"""
... | [
"def",
"sync",
"(",
"self",
",",
"session",
")",
":",
"if",
"session",
".",
"sessid",
"and",
"session",
".",
"server_connected",
":",
"# only use if session already has sessid and has already connected",
"# once to the server - if so we must re-sync woth the server, otherwise",
... | [
125,
4
] | [
152,
86
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.disconnect | (self, session) |
Called from portal when the connection is closed from the
portal side.
Args:
session (PortalSession): Session to disconnect.
delete (bool, optional): Delete the session from
the handler. Only time to not do this is when
this is called fro... |
Called from portal when the connection is closed from the
portal side. | def disconnect(self, session):
"""
Called from portal when the connection is closed from the
portal side.
Args:
session (PortalSession): Session to disconnect.
delete (bool, optional): Delete the session from
the handler. Only time to not do this ... | [
"def",
"disconnect",
"(",
"self",
",",
"session",
")",
":",
"global",
"_CONNECTION_QUEUE",
"if",
"session",
"in",
"_CONNECTION_QUEUE",
":",
"# connection was already dropped before we had time",
"# to forward this to the Server, so now we just remove it.",
"_CONNECTION_QUEUE",
".... | [
154,
4
] | [
180,
85
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.disconnect_all | (self) |
Disconnect all sessions, informing the Server.
|
Disconnect all sessions, informing the Server.
| def disconnect_all(self):
"""
Disconnect all sessions, informing the Server.
"""
def _callback(result, sessionhandler):
# we set a watchdog to stop self.disconnect from deleting
# sessions while we are looping over them.
sessionhandler._disconnect_all ... | [
"def",
"disconnect_all",
"(",
"self",
")",
":",
"def",
"_callback",
"(",
"result",
",",
"sessionhandler",
")",
":",
"# we set a watchdog to stop self.disconnect from deleting",
"# sessions while we are looping over them.",
"sessionhandler",
".",
"_disconnect_all",
"=",
"True"... | [
182,
4
] | [
197,
108
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.server_connect | (self, protocol_path="", config=dict()) |
Called by server to force the initialization of a new protocol
instance. Server wants this instance to get a unique sessid
and to be connected back as normal. This is used to initiate
irc/rss etc connections.
Args:
protocol_path (st): Full python path to the class f... |
Called by server to force the initialization of a new protocol
instance. Server wants this instance to get a unique sessid
and to be connected back as normal. This is used to initiate
irc/rss etc connections. | def server_connect(self, protocol_path="", config=dict()):
"""
Called by server to force the initialization of a new protocol
instance. Server wants this instance to get a unique sessid
and to be connected back as normal. This is used to initiate
irc/rss etc connections.
... | [
"def",
"server_connect",
"(",
"self",
",",
"protocol_path",
"=",
"\"\"",
",",
"config",
"=",
"dict",
"(",
")",
")",
":",
"global",
"_MOD_IMPORT",
"if",
"not",
"_MOD_IMPORT",
":",
"from",
"evennia",
".",
"utils",
".",
"utils",
"import",
"variable_from_module"... | [
199,
4
] | [
229,
24
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.server_disconnect | (self, session, reason="") |
Called by server to force a disconnect by sessid.
Args:
session (portalsession): Session to disconnect.
reason (str, optional): Motivation for disconnect.
|
Called by server to force a disconnect by sessid. | def server_disconnect(self, session, reason=""):
"""
Called by server to force a disconnect by sessid.
Args:
session (portalsession): Session to disconnect.
reason (str, optional): Motivation for disconnect.
"""
if session:
session.disconnect... | [
"def",
"server_disconnect",
"(",
"self",
",",
"session",
",",
"reason",
"=",
"\"\"",
")",
":",
"if",
"session",
":",
"session",
".",
"disconnect",
"(",
"reason",
")",
"if",
"session",
".",
"sessid",
"in",
"self",
":",
"# in case sess.disconnect doesn't delete ... | [
231,
4
] | [
245,
23
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.server_disconnect_all | (self, reason="") |
Called by server when forcing a clean disconnect for everyone.
Args:
reason (str, optional): Motivation for disconnect.
|
Called by server when forcing a clean disconnect for everyone. | def server_disconnect_all(self, reason=""):
"""
Called by server when forcing a clean disconnect for everyone.
Args:
reason (str, optional): Motivation for disconnect.
"""
for session in self.values():
session.disconnect(reason)
del session
... | [
"def",
"server_disconnect_all",
"(",
"self",
",",
"reason",
"=",
"\"\"",
")",
":",
"for",
"session",
"in",
"self",
".",
"values",
"(",
")",
":",
"session",
".",
"disconnect",
"(",
"reason",
")",
"del",
"session",
"self",
".",
"clear",
"(",
")"
] | [
247,
4
] | [
258,
20
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.server_logged_in | (self, session, data) |
The server tells us that the session has been authenticated.
Update it. Called by the Server.
Args:
session (Session): Session logging in.
data (dict): The session sync data.
|
The server tells us that the session has been authenticated.
Update it. Called by the Server. | def server_logged_in(self, session, data):
"""
The server tells us that the session has been authenticated.
Update it. Called by the Server.
Args:
session (Session): Session logging in.
data (dict): The session sync data.
"""
session.load_sync_da... | [
"def",
"server_logged_in",
"(",
"self",
",",
"session",
",",
"data",
")",
":",
"session",
".",
"load_sync_data",
"(",
"data",
")",
"session",
".",
"at_login",
"(",
")"
] | [
260,
4
] | [
271,
26
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.server_session_sync | (self, serversessions, clean=True) |
Server wants to save data to the portal, maybe because it's
about to shut down. We don't overwrite any sessions here, just
update them in-place.
Args:
serversessions (dict): This is a dictionary
`{sessid:{property:value},...}` describing
the... |
Server wants to save data to the portal, maybe because it's
about to shut down. We don't overwrite any sessions here, just
update them in-place. | def server_session_sync(self, serversessions, clean=True):
"""
Server wants to save data to the portal, maybe because it's
about to shut down. We don't overwrite any sessions here, just
update them in-place.
Args:
serversessions (dict): This is a dictionary
... | [
"def",
"server_session_sync",
"(",
"self",
",",
"serversessions",
",",
"clean",
"=",
"True",
")",
":",
"to_save",
"=",
"[",
"sessid",
"for",
"sessid",
"in",
"serversessions",
"if",
"sessid",
"in",
"self",
"]",
"# save protocols",
"for",
"sessid",
"in",
"to_s... | [
273,
4
] | [
295,
46
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.count_loggedin | (self, include_unloggedin=False) |
Count loggedin connections, alternatively count all connections.
Args:
include_unloggedin (bool): Also count sessions that have
not yet authenticated.
Returns:
count (int): Number of sessions.
|
Count loggedin connections, alternatively count all connections. | def count_loggedin(self, include_unloggedin=False):
"""
Count loggedin connections, alternatively count all connections.
Args:
include_unloggedin (bool): Also count sessions that have
not yet authenticated.
Returns:
count (int): Number of sessions.
... | [
"def",
"count_loggedin",
"(",
"self",
",",
"include_unloggedin",
"=",
"False",
")",
":",
"return",
"len",
"(",
"self",
".",
"get_sessions",
"(",
"include_unloggedin",
"=",
"include_unloggedin",
")",
")"
] | [
297,
4
] | [
309,
76
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.sessions_from_csessid | (self, csessid) |
Given a session id, retrieve the session (this is primarily
intended to be called by web clients)
Args:
csessid (int): Session id.
Returns:
session (list): The matching session, if found.
|
Given a session id, retrieve the session (this is primarily
intended to be called by web clients) | def sessions_from_csessid(self, csessid):
"""
Given a session id, retrieve the session (this is primarily
intended to be called by web clients)
Args:
csessid (int): Session id.
Returns:
session (list): The matching session, if found.
"""
... | [
"def",
"sessions_from_csessid",
"(",
"self",
",",
"csessid",
")",
":",
"return",
"[",
"sess",
"for",
"sess",
"in",
"self",
".",
"get_sessions",
"(",
"include_unloggedin",
"=",
"True",
")",
"if",
"hasattr",
"(",
"sess",
",",
"'csessid'",
")",
"and",
"sess",... | [
311,
4
] | [
324,
89
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.announce_all | (self, message) |
Send message to all connected sessions.
Args:
message (str): Message to relay.
Notes:
This will create an on-the fly text-type
send command.
|
Send message to all connected sessions. | def announce_all(self, message):
"""
Send message to all connected sessions.
Args:
message (str): Message to relay.
Notes:
This will create an on-the fly text-type
send command.
"""
for session in self.values():
self.dat... | [
"def",
"announce_all",
"(",
"self",
",",
"message",
")",
":",
"for",
"session",
"in",
"self",
".",
"values",
"(",
")",
":",
"self",
".",
"data_out",
"(",
"session",
",",
"text",
"=",
"[",
"[",
"message",
"]",
",",
"{",
"}",
"]",
")"
] | [
326,
4
] | [
339,
56
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.data_in | (self, session, **kwargs) |
Called by portal sessions for relaying data coming
in from the protocol to the server.
Args:
session (PortalSession): Session receiving data.
Kwargs:
kwargs (any): Other data from protocol.
Notes:
Data is serialized before passed on.
... |
Called by portal sessions for relaying data coming
in from the protocol to the server. | def data_in(self, session, **kwargs):
"""
Called by portal sessions for relaying data coming
in from the protocol to the server.
Args:
session (PortalSession): Session receiving data.
Kwargs:
kwargs (any): Other data from protocol.
Notes:
... | [
"def",
"data_in",
"(",
"self",
",",
"session",
",",
"*",
"*",
"kwargs",
")",
":",
"try",
":",
"text",
"=",
"kwargs",
"[",
"'text'",
"]",
"if",
"(",
"_MAX_CHAR_LIMIT",
">",
"0",
")",
"and",
"len",
"(",
"text",
")",
">",
"_MAX_CHAR_LIMIT",
":",
"if",... | [
341,
4
] | [
398,
68
] | python | en | ['en', 'error', 'th'] | False |
PortalSessionHandler.data_out | (self, session, **kwargs) |
Called by server for having the portal relay messages and data
to the correct session protocol.
Args:
session (Session): Session sending data.
Kwargs:
kwargs (any): Each key is a command instruction to the
protocol on the form key = [[args],{kwargs}... |
Called by server for having the portal relay messages and data
to the correct session protocol. | def data_out(self, session, **kwargs):
"""
Called by server for having the portal relay messages and data
to the correct session protocol.
Args:
session (Session): Session sending data.
Kwargs:
kwargs (any): Each key is a command instruction to the
... | [
"def",
"data_out",
"(",
"self",
",",
"session",
",",
"*",
"*",
"kwargs",
")",
":",
"# from evennia.server.profiling.timetrace import timetrace # DEBUG",
"# text = timetrace(text, \"portalsessionhandler.data_out\") # DEBUG",
"# distribute outgoing data to the correct session methods.",
... | [
400,
4
] | [
435,
35
] | python | en | ['en', 'error', 'th'] | False |
Run | (args) | Runs gtest_list_tests_unittest_ and returns the list of tests printed. | Runs gtest_list_tests_unittest_ and returns the list of tests printed. | def Run(args):
"""Runs gtest_list_tests_unittest_ and returns the list of tests printed."""
return gtest_test_utils.Subprocess([EXE_PATH] + args,
capture_stderr=False).output | [
"def",
"Run",
"(",
"args",
")",
":",
"return",
"gtest_test_utils",
".",
"Subprocess",
"(",
"[",
"EXE_PATH",
"]",
"+",
"args",
",",
"capture_stderr",
"=",
"False",
")",
".",
"output"
] | [
116,
0
] | [
120,
65
] | python | en | ['en', 'en', 'en'] | True |
GTestListTestsUnitTest.RunAndVerify | (self, flag_value, expected_output_re, other_flag) | Runs gtest_list_tests_unittest_ and verifies that it prints
the correct tests.
Args:
flag_value: value of the --gtest_list_tests flag;
None if the flag should not be present.
expected_output_re: regular expression that matches the expected
... | Runs gtest_list_tests_unittest_ and verifies that it prints
the correct tests. | def RunAndVerify(self, flag_value, expected_output_re, other_flag):
"""Runs gtest_list_tests_unittest_ and verifies that it prints
the correct tests.
Args:
flag_value: value of the --gtest_list_tests flag;
None if the flag should not be present.
expected_output... | [
"def",
"RunAndVerify",
"(",
"self",
",",
"flag_value",
",",
"expected_output_re",
",",
"other_flag",
")",
":",
"if",
"flag_value",
"is",
"None",
":",
"flag",
"=",
"''",
"flag_expression",
"=",
"'not set'",
"elif",
"flag_value",
"==",
"'0'",
":",
"flag",
"=",... | [
128,
2
] | [
170,
71
] | python | en | ['en', 'fr', 'en'] | True |
GTestListTestsUnitTest.testDefaultBehavior | (self) | Tests the behavior of the default mode. | Tests the behavior of the default mode. | def testDefaultBehavior(self):
"""Tests the behavior of the default mode."""
self.RunAndVerify(flag_value=None,
expected_output_re=None,
other_flag=None) | [
"def",
"testDefaultBehavior",
"(",
"self",
")",
":",
"self",
".",
"RunAndVerify",
"(",
"flag_value",
"=",
"None",
",",
"expected_output_re",
"=",
"None",
",",
"other_flag",
"=",
"None",
")"
] | [
172,
2
] | [
177,
38
] | python | en | ['en', 'en', 'en'] | True |
GTestListTestsUnitTest.testFlag | (self) | Tests using the --gtest_list_tests flag. | Tests using the --gtest_list_tests flag. | def testFlag(self):
"""Tests using the --gtest_list_tests flag."""
self.RunAndVerify(flag_value='0',
expected_output_re=None,
other_flag=None)
self.RunAndVerify(flag_value='1',
expected_output_re=EXPECTED_OUTPUT_NO_FILTER_RE,
... | [
"def",
"testFlag",
"(",
"self",
")",
":",
"self",
".",
"RunAndVerify",
"(",
"flag_value",
"=",
"'0'",
",",
"expected_output_re",
"=",
"None",
",",
"other_flag",
"=",
"None",
")",
"self",
".",
"RunAndVerify",
"(",
"flag_value",
"=",
"'1'",
",",
"expected_ou... | [
179,
2
] | [
187,
38
] | python | en | ['en', 'en', 'en'] | True |
GTestListTestsUnitTest.testOverrideNonFilterFlags | (self) | Tests that --gtest_list_tests overrides the non-filter flags. | Tests that --gtest_list_tests overrides the non-filter flags. | def testOverrideNonFilterFlags(self):
"""Tests that --gtest_list_tests overrides the non-filter flags."""
self.RunAndVerify(flag_value='1',
expected_output_re=EXPECTED_OUTPUT_NO_FILTER_RE,
other_flag='--gtest_break_on_failure') | [
"def",
"testOverrideNonFilterFlags",
"(",
"self",
")",
":",
"self",
".",
"RunAndVerify",
"(",
"flag_value",
"=",
"'1'",
",",
"expected_output_re",
"=",
"EXPECTED_OUTPUT_NO_FILTER_RE",
",",
"other_flag",
"=",
"'--gtest_break_on_failure'",
")"
] | [
189,
2
] | [
194,
60
] | python | en | ['en', 'en', 'en'] | True |
GTestListTestsUnitTest.testWithFilterFlags | (self) | Tests that --gtest_list_tests takes into account the
--gtest_filter flag. | Tests that --gtest_list_tests takes into account the
--gtest_filter flag. | def testWithFilterFlags(self):
"""Tests that --gtest_list_tests takes into account the
--gtest_filter flag."""
self.RunAndVerify(flag_value='1',
expected_output_re=EXPECTED_OUTPUT_FILTER_FOO_RE,
other_flag='--gtest_filter=Foo*') | [
"def",
"testWithFilterFlags",
"(",
"self",
")",
":",
"self",
".",
"RunAndVerify",
"(",
"flag_value",
"=",
"'1'",
",",
"expected_output_re",
"=",
"EXPECTED_OUTPUT_FILTER_FOO_RE",
",",
"other_flag",
"=",
"'--gtest_filter=Foo*'",
")"
] | [
196,
2
] | [
202,
55
] | python | en | ['en', 'en', 'en'] | True |
Rangebreak.bounds | (self) |
Sets the lower and upper bounds of this axis rangebreak. Can be
used with `pattern`.
The 'bounds' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The 'bounds[0]' property accepts values of any type
(1) The 'bounds[1]' prop... |
Sets the lower and upper bounds of this axis rangebreak. Can be
used with `pattern`.
The 'bounds' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The 'bounds[0]' property accepts values of any type
(1) The 'bounds[1]' prop... | def bounds(self):
"""
Sets the lower and upper bounds of this axis rangebreak. Can be
used with `pattern`.
The 'bounds' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The 'bounds[0]' property accepts values of any type... | [
"def",
"bounds",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bounds\"",
"]"
] | [
23,
4
] | [
38,
29
] | python | en | ['en', 'error', 'th'] | False |
Rangebreak.dvalue | (self) |
Sets the size of each `values` item. The default is one day in
milliseconds.
The 'dvalue' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the size of each `values` item. The default is one day in
milliseconds.
The 'dvalue' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def dvalue(self):
"""
Sets the size of each `values` item. The default is one day in
milliseconds.
The 'dvalue' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
r... | [
"def",
"dvalue",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dvalue\"",
"]"
] | [
47,
4
] | [
59,
29
] | python | en | ['en', 'error', 'th'] | False |
Rangebreak.enabled | (self) |
Determines whether this axis rangebreak is enabled or disabled.
Please note that `rangebreaks` only work for "date" axis type.
The 'enabled' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether this axis rangebreak is enabled or disabled.
Please note that `rangebreaks` only work for "date" axis type.
The 'enabled' property must be specified as a bool
(either True, or False) | def enabled(self):
"""
Determines whether this axis rangebreak is enabled or disabled.
Please note that `rangebreaks` only work for "date" axis type.
The 'enabled' property must be specified as a bool
(either True, or False)
Returns
-------
bool
... | [
"def",
"enabled",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"enabled\"",
"]"
] | [
68,
4
] | [
80,
30
] | python | en | ['en', 'error', 'th'] | False |
Rangebreak.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\"",
"]"
] | [
89,
4
] | [
107,
27
] | python | en | ['en', 'error', 'th'] | False |
Rangebreak.pattern | (self) |
Determines a pattern on the time line that generates breaks. If
*day of week* - days of the week in English e.g. 'Sunday' or
`sun` (matching is case-insensitive and considers only the
first three characters), as well as Sunday-based integers
between 0 and 6. If "hour" - hour (24... |
Determines a pattern on the time line that generates breaks. If
*day of week* - days of the week in English e.g. 'Sunday' or
`sun` (matching is case-insensitive and considers only the
first three characters), as well as Sunday-based integers
between 0 and 6. If "hour" - hour (24... | def pattern(self):
"""
Determines a pattern on the time line that generates breaks. If
*day of week* - days of the week in English e.g. 'Sunday' or
`sun` (matching is case-insensitive and considers only the
first three characters), as well as Sunday-based integers
between... | [
"def",
"pattern",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"pattern\"",
"]"
] | [
116,
4
] | [
137,
30
] | python | en | ['en', 'error', 'th'] | False |
Rangebreak.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\"",
"]"
] | [
146,
4
] | [
165,
39
] | python | en | ['en', 'error', 'th'] | False |
Rangebreak.values | (self) |
Sets the coordinate values corresponding to the rangebreaks. An
alternative to `bounds`. Use `dvalue` to set the size of the
values along the axis.
The 'values' property is an info array that may be specified as:
* a list of elements where:
The 'values[i]' propert... |
Sets the coordinate values corresponding to the rangebreaks. An
alternative to `bounds`. Use `dvalue` to set the size of the
values along the axis.
The 'values' property is an info array that may be specified as:
* a list of elements where:
The 'values[i]' propert... | def values(self):
"""
Sets the coordinate values corresponding to the rangebreaks. An
alternative to `bounds`. Use `dvalue` to set the size of the
values along the axis.
The 'values' property is an info array that may be specified as:
* a list of elements where:
... | [
"def",
"values",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"values\"",
"]"
] | [
174,
4
] | [
188,
29
] | python | en | ['en', 'error', 'th'] | False |
Rangebreak.__init__ | (
self,
arg=None,
bounds=None,
dvalue=None,
enabled=None,
name=None,
pattern=None,
templateitemname=None,
values=None,
**kwargs
) |
Construct a new Rangebreak object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.yaxis.Rangebreak`
bounds
Sets the lower and upper bounds of... |
Construct a new Rangebreak object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.yaxis.Rangebreak`
bounds
Sets the lower and upper bounds of... | def __init__(
self,
arg=None,
bounds=None,
dvalue=None,
enabled=None,
name=None,
pattern=None,
templateitemname=None,
values=None,
**kwargs
):
"""
Construct a new Rangebreak object
Parameters
---... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"bounds",
"=",
"None",
",",
"dvalue",
"=",
"None",
",",
"enabled",
"=",
"None",
",",
"name",
"=",
"None",
",",
"pattern",
"=",
"None",
",",
"templateitemname",
"=",
"None",
",",
"values",
... | [
246,
4
] | [
381,
34
] | python | en | ['en', 'error', 'th'] | False |
Step.color | (self) |
Sets the background color of the arc.
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... |
Sets the background color of the arc.
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... | def color(self):
"""
Sets the background color of the arc.
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 ... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
65,
28
] | python | en | ['en', 'error', 'th'] | False |
Step.line | (self) |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.indicator.gauge.step.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.indicator.gauge.step.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... | def line(self):
"""
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.indicator.gauge.step.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supporte... | [
"def",
"line",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"line\"",
"]"
] | [
74,
4
] | [
95,
27
] | python | en | ['en', 'error', 'th'] | False |
Step.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\"",
"]"
] | [
104,
4
] | [
122,
27
] | python | en | ['en', 'error', 'th'] | False |
Step.range | (self) |
Sets the range of this axis.
The 'range' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The 'range[0]' property is a number and may be specified as:
- An int or float
(1) The 'range[1]' property is a number and may be s... |
Sets the range of this axis.
The 'range' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The 'range[0]' property is a number and may be specified as:
- An int or float
(1) The 'range[1]' property is a number and may be s... | def range(self):
"""
Sets the range of this axis.
The 'range' property is an info array that may be specified as:
* a list or tuple of 2 elements where:
(0) The 'range[0]' property is a number and may be specified as:
- An int or float
(1) The 'range[1]' prope... | [
"def",
"range",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"range\"",
"]"
] | [
131,
4
] | [
147,
28
] | python | en | ['en', 'error', 'th'] | False |
Step.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\"",
"]"
] | [
156,
4
] | [
175,
39
] | python | en | ['en', 'error', 'th'] | False |
Step.thickness | (self) |
Sets the thickness of the bar as a fraction of the total
thickness of the gauge.
The 'thickness' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
|
Sets the thickness of the bar as a fraction of the total
thickness of the gauge.
The 'thickness' property is a number and may be specified as:
- An int or float in the interval [0, 1] | def thickness(self):
"""
Sets the thickness of the bar as a fraction of the total
thickness of the gauge.
The 'thickness' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
"""
... | [
"def",
"thickness",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"thickness\"",
"]"
] | [
184,
4
] | [
196,
32
] | python | en | ['en', 'error', 'th'] | False |
Step.__init__ | (
self,
arg=None,
color=None,
line=None,
name=None,
range=None,
templateitemname=None,
thickness=None,
**kwargs
) |
Construct a new Step object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.indicator.gauge.Step`
color
Sets the background color of the arc.
... |
Construct a new Step object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.indicator.gauge.Step`
color
Sets the background color of the arc.
... | def __init__(
self,
arg=None,
color=None,
line=None,
name=None,
range=None,
templateitemname=None,
thickness=None,
**kwargs
):
"""
Construct a new Step object
Parameters
----------
arg
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"line",
"=",
"None",
",",
"name",
"=",
"None",
",",
"range",
"=",
"None",
",",
"templateitemname",
"=",
"None",
",",
"thickness",
"=",
"None",
",",
"*",
"*",
... | [
238,
4
] | [
352,
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.