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
Hoverlabel.bordercolor
(self)
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva st...
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva st...
def bordercolor(self): """ Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 149, 4 ]
[ 200, 34 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bordercolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bo...
[ "def", "bordercolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bordercolorsrc\"", "]" ]
[ 209, 4 ]
[ 221, 37 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.font
(self)
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.heatmap.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.heatmap.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
def font(self): """ Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.heatmap.hoverlabel.Font` - A dict of string/value properties that will be passed to...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 230, 4 ]
[ 277, 27 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelength
(self)
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
def namelength(self): """ Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than ...
[ "def", "namelength", "(", "self", ")", ":", "return", "self", "[", "\"namelength\"", "]" ]
[ 286, 4 ]
[ 304, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelengthsrc
(self)
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def namelengthsrc(self): """ Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["name...
[ "def", "namelengthsrc", "(", "self", ")", ":", "return", "self", "[", "\"namelengthsrc\"", "]" ]
[ 313, 4 ]
[ 325, 36 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.__init__
( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs )
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.heatmap.Hoverlabel` align Sets the horizontal alignment of the tex...
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.heatmap.Hoverlabel` align Sets the horizontal alignment of the tex...
def __init__( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs ): """ Construct a n...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "align", "=", "None", ",", "alignsrc", "=", "None", ",", "bgcolor", "=", "None", ",", "bgcolorsrc", "=", "None", ",", "bordercolor", "=", "None", ",", "bordercolorsrc", "=", "None", ",", "...
[ 370, 4 ]
[ 502, 34 ]
python
en
['en', 'error', 'th']
False
HttpTransport.__init__
(self, host: str, port: int, create_session, **kwargs)
Initialize an inbound HTTP transport instance. Args: host: Host to listen on port: Port to listen on create_session: Method to create a new inbound session
Initialize an inbound HTTP transport instance.
def __init__(self, host: str, port: int, create_session, **kwargs) -> None: """ Initialize an inbound HTTP transport instance. Args: host: Host to listen on port: Port to listen on create_session: Method to create a new inbound session """ su...
[ "def", "__init__", "(", "self", ",", "host", ":", "str", ",", "port", ":", "int", ",", "create_session", ",", "*", "*", "kwargs", ")", "->", "None", ":", "super", "(", ")", ".", "__init__", "(", "\"http\"", ",", "create_session", ",", "*", "*", "kw...
[ 16, 4 ]
[ 29, 38 ]
python
en
['en', 'error', 'th']
False
HttpTransport.make_application
(self)
Construct the aiohttp application.
Construct the aiohttp application.
async def make_application(self) -> web.Application: """Construct the aiohttp application.""" app_args = {} if self.max_message_size: app_args["client_max_size"] = self.max_message_size app = web.Application(**app_args) app.add_routes([web.get("/", self.invite_message...
[ "async", "def", "make_application", "(", "self", ")", "->", "web", ".", "Application", ":", "app_args", "=", "{", "}", "if", "self", ".", "max_message_size", ":", "app_args", "[", "\"client_max_size\"", "]", "=", "self", ".", "max_message_size", "app", "=", ...
[ 31, 4 ]
[ 39, 18 ]
python
en
['en', 'en', 'en']
True
HttpTransport.start
(self)
Start this transport. Raises: InboundTransportSetupError: If there was an error starting the webserver
Start this transport.
async def start(self) -> None: """ Start this transport. Raises: InboundTransportSetupError: If there was an error starting the webserver """ app = await self.make_application() runner = web.AppRunner(app) await runner.setup() self.site = web...
[ "async", "def", "start", "(", "self", ")", "->", "None", ":", "app", "=", "await", "self", ".", "make_application", "(", ")", "runner", "=", "web", ".", "AppRunner", "(", "app", ")", "await", "runner", ".", "setup", "(", ")", "self", ".", "site", "...
[ 41, 4 ]
[ 59, 13 ]
python
en
['en', 'error', 'th']
False
HttpTransport.stop
(self)
Stop this transport.
Stop this transport.
async def stop(self) -> None: """Stop this transport.""" if self.site: await self.site.stop() self.site = None
[ "async", "def", "stop", "(", "self", ")", "->", "None", ":", "if", "self", ".", "site", ":", "await", "self", ".", "site", ".", "stop", "(", ")", "self", ".", "site", "=", "None" ]
[ 61, 4 ]
[ 65, 28 ]
python
en
['en', 'en', 'en']
True
HttpTransport.inbound_message_handler
(self, request: web.BaseRequest)
Message handler for inbound messages. Args: request: aiohttp request object Returns: The web response
Message handler for inbound messages.
async def inbound_message_handler(self, request: web.BaseRequest): """ Message handler for inbound messages. Args: request: aiohttp request object Returns: The web response """ ctype = request.headers.get("content-type", "") if ctype.spl...
[ "async", "def", "inbound_message_handler", "(", "self", ",", "request", ":", "web", ".", "BaseRequest", ")", ":", "ctype", "=", "request", ".", "headers", ".", "get", "(", "\"content-type\"", ",", "\"\"", ")", "if", "ctype", ".", "split", "(", "\";\"", "...
[ 67, 4 ]
[ 116, 39 ]
python
en
['en', 'error', 'th']
False
HttpTransport.invite_message_handler
(self, request: web.BaseRequest)
Message handler for invites. Args: request: aiohttp request object Returns: The web response
Message handler for invites.
async def invite_message_handler(self, request: web.BaseRequest): """ Message handler for invites. Args: request: aiohttp request object Returns: The web response """ if request.query.get("c_i"): return web.Response( ...
[ "async", "def", "invite_message_handler", "(", "self", ",", "request", ":", "web", ".", "BaseRequest", ")", ":", "if", "request", ".", "query", ".", "get", "(", "\"c_i\"", ")", ":", "return", "web", ".", "Response", "(", "text", "=", "\"You have received a...
[ 118, 4 ]
[ 135, 43 ]
python
en
['en', 'error', 'th']
False
fig_to_vega
(fig, notebook=False)
Convert a matplotlib figure to vega dictionary if notebook=True, then return an object which will display in a notebook otherwise, return an HTML string.
Convert a matplotlib figure to vega dictionary
def fig_to_vega(fig, notebook=False): """Convert a matplotlib figure to vega dictionary if notebook=True, then return an object which will display in a notebook otherwise, return an HTML string. """ renderer = VegaRenderer() Exporter(renderer).run(fig) vega_html = VegaHTML(renderer) if ...
[ "def", "fig_to_vega", "(", "fig", ",", "notebook", "=", "False", ")", ":", "renderer", "=", "VegaRenderer", "(", ")", "Exporter", "(", "renderer", ")", ".", "run", "(", "fig", ")", "vega_html", "=", "VegaHTML", "(", "renderer", ")", "if", "notebook", "...
[ 109, 0 ]
[ 121, 31 ]
python
it
['it', 'ca', 'it']
True
VegaHTML.html
(self)
Build the HTML representation for IPython.
Build the HTML representation for IPython.
def html(self): """Build the HTML representation for IPython.""" id = random.randint(0, 2 ** 16) html = '<div id="vis%d"></div>' % id html += '<script>\n' html += VEGA_TEMPLATE % (json.dumps(self.specification), id) html += '</script>\n' return html
[ "def", "html", "(", "self", ")", ":", "id", "=", "random", ".", "randint", "(", "0", ",", "2", "**", "16", ")", "html", "=", "'<div id=\"vis%d\"></div>'", "%", "id", "html", "+=", "'<script>\\n'", "html", "+=", "VEGA_TEMPLATE", "%", "(", "json", ".", ...
[ 96, 4 ]
[ 103, 19 ]
python
en
['en', 'en', 'en']
True
Tickfont.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Tickfont.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Tickfont.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf]
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 103, 4 ]
[ 112, 27 ]
python
en
['en', 'error', 'th']
False
Tickfont.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattercarpet. marker.colorbar.Tickfont` ...
Construct a new Tickfont object Sets the color bar's tick label font
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an insta...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Tickfont", ",", "self", ")", ".", "__init__", "(", "\"tick...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
WikiToxicCommentsTeacher._setup_data
(self, datatype)
Set up the data based on the correct partition flag specified and partition accordingly.
Set up the data based on the correct partition flag specified and partition accordingly.
def _setup_data(self, datatype): """ Set up the data based on the correct partition flag specified and partition accordingly. """ if not self.use_test_set: dp = os.path.join(self.data_path, 'wiki-toxic-comments-partition.json') else: dp = os.path.j...
[ "def", "_setup_data", "(", "self", ",", "datatype", ")", ":", "if", "not", "self", ".", "use_test_set", ":", "dp", "=", "os", ".", "path", ".", "join", "(", "self", ".", "data_path", ",", "'wiki-toxic-comments-partition.json'", ")", "else", ":", "dp", "=...
[ 354, 4 ]
[ 375, 53 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.autocolorscale
(self)
Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are a...
Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are a...
def autocolorscale(self): """ Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to wheth...
[ "def", "autocolorscale", "(", "self", ")", ":", "return", "self", "[", "\"autocolorscale\"", "]" ]
[ 59, 4 ]
[ 75, 37 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.coloraxis
(self)
Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be...
Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be...
def coloraxis(self): """ Sets a reference to a shared color axis. References to these shared color axes are "coloraxis", "coloraxis2", "coloraxis3", etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note t...
[ "def", "coloraxis", "(", "self", ")", ":", "return", "self", "[", "\"coloraxis\"", "]" ]
[ 84, 4 ]
[ 102, 32 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.colorbar
(self)
The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.heatmapgl.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor Supported dict properties: ...
The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.heatmapgl.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor Supported dict properties: ...
def colorbar(self): """ The 'colorbar' property is an instance of ColorBar that may be specified as: - An instance of :class:`plotly.graph_objs.heatmapgl.ColorBar` - A dict of string/value properties that will be passed to the ColorBar constructor ...
[ "def", "colorbar", "(", "self", ")", ":", "return", "self", "[", "\"colorbar\"", "]" ]
[ 111, 4 ]
[ 337, 31 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.colorscale
(self)
Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255...
Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255...
def colorscale(self): """ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[...
[ "def", "colorscale", "(", "self", ")", ":", "return", "self", "[", "\"colorscale\"", "]" ]
[ 346, 4 ]
[ 389, 33 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 398, 4 ]
[ 412, 33 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 421, 4 ]
[ 433, 36 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.dx
(self)
Sets the x coordinate step. See `x0` for more info. The 'dx' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the x coordinate step. See `x0` for more info. The 'dx' property is a number and may be specified as: - An int or float
def dx(self): """ Sets the x coordinate step. See `x0` for more info. The 'dx' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["dx"]
[ "def", "dx", "(", "self", ")", ":", "return", "self", "[", "\"dx\"", "]" ]
[ 442, 4 ]
[ 453, 25 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.dy
(self)
Sets the y coordinate step. See `y0` for more info. The 'dy' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the y coordinate step. See `y0` for more info. The 'dy' property is a number and may be specified as: - An int or float
def dy(self): """ Sets the y coordinate step. See `y0` for more info. The 'dy' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["dy"]
[ "def", "dy", "(", "self", ")", ":", "return", "self", "[", "\"dy\"", "]" ]
[ 462, 4 ]
[ 473, 25 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 482, 4 ]
[ 499, 32 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 508, 4 ]
[ 520, 35 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.hoverlabel
(self)
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.heatmapgl.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict propert...
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.heatmapgl.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict propert...
def hoverlabel(self): """ The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.heatmapgl.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor ...
[ "def", "hoverlabel", "(", "self", ")", ":", "return", "self", "[", "\"hoverlabel\"", "]" ]
[ 529, 4 ]
[ 579, 33 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 588, 4 ]
[ 601, 26 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 610, 4 ]
[ 621, 29 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 630, 4 ]
[ 649, 27 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 658, 4 ]
[ 669, 30 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 678, 4 ]
[ 691, 27 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 700, 4 ]
[ 711, 30 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.reversescale
(self)
Reverses the color mapping if true. If true, `zmin` will correspond to the last color in the array and `zmax` will correspond to the first color. The 'reversescale' property must be specified as a bool (either True, or False) Returns ------- bool ...
Reverses the color mapping if true. If true, `zmin` will correspond to the last color in the array and `zmax` will correspond to the first color. The 'reversescale' property must be specified as a bool (either True, or False)
def reversescale(self): """ Reverses the color mapping if true. If true, `zmin` will correspond to the last color in the array and `zmax` will correspond to the first color. The 'reversescale' property must be specified as a bool (either True, or False) Retu...
[ "def", "reversescale", "(", "self", ")", ":", "return", "self", "[", "\"reversescale\"", "]" ]
[ 720, 4 ]
[ 733, 35 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.showscale
(self)
Determines whether or not a colorbar is displayed for this trace. The 'showscale' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not a colorbar is displayed for this trace. The 'showscale' property must be specified as a bool (either True, or False)
def showscale(self): """ Determines whether or not a colorbar is displayed for this trace. The 'showscale' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showscale"]
[ "def", "showscale", "(", "self", ")", ":", "return", "self", "[", "\"showscale\"", "]" ]
[ 742, 4 ]
[ 754, 32 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.heatmapgl.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.heatmapgl.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.heatmapgl.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported...
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 763, 4 ]
[ 787, 29 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.text
(self)
Sets the text elements associated with each z value. The 'text' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the text elements associated with each z value. The 'text' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def text(self): """ Sets the text elements associated with each z value. The 'text' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["text"]
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 796, 4 ]
[ 807, 27 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 816, 4 ]
[ 827, 30 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.transpose
(self)
Transposes the z data. The 'transpose' property must be specified as a bool (either True, or False) Returns ------- bool
Transposes the z data. The 'transpose' property must be specified as a bool (either True, or False)
def transpose(self): """ Transposes the z data. The 'transpose' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["transpose"]
[ "def", "transpose", "(", "self", ")", ":", "return", "self", "[", "\"transpose\"", "]" ]
[ 836, 4 ]
[ 847, 32 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 856, 4 ]
[ 869, 26 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 878, 4 ]
[ 902, 33 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.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\"", "]" ]
[ 911, 4 ]
[ 925, 30 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.x
(self)
Sets the x coordinates. The 'x' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the x coordinates. The 'x' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def x(self): """ Sets the x coordinates. The 'x' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 934, 4 ]
[ 945, 24 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.x0
(self)
Alternate to `x`. Builds a linear space of x coordinates. Use with `dx` where `x0` is the starting coordinate and `dx` the step. The 'x0' property accepts values of any type Returns ------- Any
Alternate to `x`. Builds a linear space of x coordinates. Use with `dx` where `x0` is the starting coordinate and `dx` the step. The 'x0' property accepts values of any type
def x0(self): """ Alternate to `x`. Builds a linear space of x coordinates. Use with `dx` where `x0` is the starting coordinate and `dx` the step. The 'x0' property accepts values of any type Returns ------- Any """ return self["x0"]
[ "def", "x0", "(", "self", ")", ":", "return", "self", "[", "\"x0\"", "]" ]
[ 954, 4 ]
[ 966, 25 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.xaxis
(self)
Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an identifier of a particular ...
Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an identifier of a particular ...
def xaxis(self): """ Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If "x" (the default value), the x coordinates refer to `layout.xaxis`. If "x2", the x coordinates refer to `layout.xaxis2`, and so on. The 'xaxis' property is an ident...
[ "def", "xaxis", "(", "self", ")", ":", "return", "self", "[", "\"xaxis\"", "]" ]
[ 975, 4 ]
[ 991, 28 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.xsrc
(self)
Sets the source reference on Chart Studio Cloud for x . The 'xsrc' 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 x . The 'xsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def xsrc(self): """ Sets the source reference on Chart Studio Cloud for x . The 'xsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["xsrc"]
[ "def", "xsrc", "(", "self", ")", ":", "return", "self", "[", "\"xsrc\"", "]" ]
[ 1000, 4 ]
[ 1011, 27 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.xtype
(self)
If "array", the heatmap's x coordinates are given by "x" (the default behavior when `x` is provided). If "scaled", the heatmap's x coordinates are given by "x0" and "dx" (the default behavior when `x` is not provided). The 'xtype' property is an enumeration that may be spec...
If "array", the heatmap's x coordinates are given by "x" (the default behavior when `x` is provided). If "scaled", the heatmap's x coordinates are given by "x0" and "dx" (the default behavior when `x` is not provided). The 'xtype' property is an enumeration that may be spec...
def xtype(self): """ If "array", the heatmap's x coordinates are given by "x" (the default behavior when `x` is provided). If "scaled", the heatmap's x coordinates are given by "x0" and "dx" (the default behavior when `x` is not provided). The 'xtype' property is an ...
[ "def", "xtype", "(", "self", ")", ":", "return", "self", "[", "\"xtype\"", "]" ]
[ 1020, 4 ]
[ 1035, 28 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.y
(self)
Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def y(self): """ Sets the y coordinates. The 'y' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1044, 4 ]
[ 1055, 24 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.y0
(self)
Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step. The 'y0' property accepts values of any type Returns ------- Any
Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step. The 'y0' property accepts values of any type
def y0(self): """ Alternate to `y`. Builds a linear space of y coordinates. Use with `dy` where `y0` is the starting coordinate and `dy` the step. The 'y0' property accepts values of any type Returns ------- Any """ return self["y0"]
[ "def", "y0", "(", "self", ")", ":", "return", "self", "[", "\"y0\"", "]" ]
[ 1064, 4 ]
[ 1076, 25 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.yaxis
(self)
Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an identifier of a particular ...
Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an identifier of a particular ...
def yaxis(self): """ Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If "y" (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. The 'yaxis' property is an ident...
[ "def", "yaxis", "(", "self", ")", ":", "return", "self", "[", "\"yaxis\"", "]" ]
[ 1085, 4 ]
[ 1101, 28 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.ysrc
(self)
Sets the source reference on Chart Studio Cloud for y . The 'ysrc' 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 y . The 'ysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def ysrc(self): """ Sets the source reference on Chart Studio Cloud for y . The 'ysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["ysrc"]
[ "def", "ysrc", "(", "self", ")", ":", "return", "self", "[", "\"ysrc\"", "]" ]
[ 1110, 4 ]
[ 1121, 27 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.ytype
(self)
If "array", the heatmap's y coordinates are given by "y" (the default behavior when `y` is provided) If "scaled", the heatmap's y coordinates are given by "y0" and "dy" (the default behavior when `y` is not provided) The 'ytype' property is an enumeration that may be specif...
If "array", the heatmap's y coordinates are given by "y" (the default behavior when `y` is provided) If "scaled", the heatmap's y coordinates are given by "y0" and "dy" (the default behavior when `y` is not provided) The 'ytype' property is an enumeration that may be specif...
def ytype(self): """ If "array", the heatmap's y coordinates are given by "y" (the default behavior when `y` is provided) If "scaled", the heatmap's y coordinates are given by "y0" and "dy" (the default behavior when `y` is not provided) The 'ytype' property is an en...
[ "def", "ytype", "(", "self", ")", ":", "return", "self", "[", "\"ytype\"", "]" ]
[ 1130, 4 ]
[ 1145, 28 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.z
(self)
Sets the z data. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray
Sets the z data. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def z(self): """ Sets the z data. The 'z' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.ndarray """ return self["z"]
[ "def", "z", "(", "self", ")", ":", "return", "self", "[", "\"z\"", "]" ]
[ 1154, 4 ]
[ 1165, 24 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.zauto
(self)
Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user. The 'zauto' property must be specified as a bool (either True,...
Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user. The 'zauto' property must be specified as a bool (either True,...
def zauto(self): """ Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user. The 'zauto' property must be specified as ...
[ "def", "zauto", "(", "self", ")", ":", "return", "self", "[", "\"zauto\"", "]" ]
[ 1174, 4 ]
[ 1188, 28 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.zmax
(self)
Sets the upper bound of the color domain. Value should have the same units as in `z` and if set, `zmin` must be set as well. The 'zmax' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the upper bound of the color domain. Value should have the same units as in `z` and if set, `zmin` must be set as well. The 'zmax' property is a number and may be specified as: - An int or float
def zmax(self): """ Sets the upper bound of the color domain. Value should have the same units as in `z` and if set, `zmin` must be set as well. The 'zmax' property is a number and may be specified as: - An int or float Returns ------- int|float ...
[ "def", "zmax", "(", "self", ")", ":", "return", "self", "[", "\"zmax\"", "]" ]
[ 1197, 4 ]
[ 1209, 27 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.zmid
(self)
Sets the mid-point of the color domain by scaling `zmin` and/or `zmax` to be equidistant to this point. Value should have the same units as in `z`. Has no effect when `zauto` is `false`. The 'zmid' property is a number and may be specified as: - An int or float R...
Sets the mid-point of the color domain by scaling `zmin` and/or `zmax` to be equidistant to this point. Value should have the same units as in `z`. Has no effect when `zauto` is `false`. The 'zmid' property is a number and may be specified as: - An int or float
def zmid(self): """ Sets the mid-point of the color domain by scaling `zmin` and/or `zmax` to be equidistant to this point. Value should have the same units as in `z`. Has no effect when `zauto` is `false`. The 'zmid' property is a number and may be specified as: -...
[ "def", "zmid", "(", "self", ")", ":", "return", "self", "[", "\"zmid\"", "]" ]
[ 1218, 4 ]
[ 1231, 27 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.zmin
(self)
Sets the lower bound of the color domain. Value should have the same units as in `z` and if set, `zmax` must be set as well. The 'zmin' property is a number and may be specified as: - An int or float Returns ------- int|float
Sets the lower bound of the color domain. Value should have the same units as in `z` and if set, `zmax` must be set as well. The 'zmin' property is a number and may be specified as: - An int or float
def zmin(self): """ Sets the lower bound of the color domain. Value should have the same units as in `z` and if set, `zmax` must be set as well. The 'zmin' property is a number and may be specified as: - An int or float Returns ------- int|float ...
[ "def", "zmin", "(", "self", ")", ":", "return", "self", "[", "\"zmin\"", "]" ]
[ 1240, 4 ]
[ 1252, 27 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.zsrc
(self)
Sets the source reference on Chart Studio Cloud for z . The 'zsrc' 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 z . The 'zsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def zsrc(self): """ Sets the source reference on Chart Studio Cloud for z . The 'zsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["zsrc"]
[ "def", "zsrc", "(", "self", ")", ":", "return", "self", "[", "\"zsrc\"", "]" ]
[ 1261, 4 ]
[ 1272, 27 ]
python
en
['en', 'error', 'th']
False
Heatmapgl.__init__
( self, arg=None, autocolorscale=None, coloraxis=None, colorbar=None, colorscale=None, customdata=None, customdatasrc=None, dx=None, dy=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, ids=None, ...
Construct a new Heatmapgl object WebGL version of the heatmap trace type. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.Heatmapgl` autocolorscale Det...
Construct a new Heatmapgl object WebGL version of the heatmap trace type.
def __init__( self, arg=None, autocolorscale=None, coloraxis=None, colorbar=None, colorscale=None, customdata=None, customdatasrc=None, dx=None, dy=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, id...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "autocolorscale", "=", "None", ",", "coloraxis", "=", "None", ",", "colorbar", "=", "None", ",", "colorscale", "=", "None", ",", "customdata", "=", "None", ",", "customdatasrc", "=", "None", ...
[ 1478, 4 ]
[ 1937, 34 ]
python
en
['en', 'error', 'th']
False
DocDB.close
(self)
Close the connection to the database.
Close the connection to the database.
def close(self): """ Close the connection to the database. """ self.connection.close()
[ "def", "close", "(", "self", ")", ":", "self", ".", "connection", ".", "close", "(", ")" ]
[ 32, 4 ]
[ 36, 31 ]
python
en
['en', 'error', 'th']
False
DocDB.get_doc_ids
(self)
Fetch all ids of docs stored in the db.
Fetch all ids of docs stored in the db.
def get_doc_ids(self): """ Fetch all ids of docs stored in the db. """ cursor = self.connection.cursor() cursor.execute("SELECT id FROM documents") results = [r[0] for r in cursor.fetchall()] cursor.close() return results
[ "def", "get_doc_ids", "(", "self", ")", ":", "cursor", "=", "self", ".", "connection", ".", "cursor", "(", ")", "cursor", ".", "execute", "(", "\"SELECT id FROM documents\"", ")", "results", "=", "[", "r", "[", "0", "]", "for", "r", "in", "cursor", "."...
[ 38, 4 ]
[ 46, 22 ]
python
en
['en', 'error', 'th']
False
DocDB.get_doc_text
(self, doc_id)
Fetch the raw text of the doc for 'doc_id'.
Fetch the raw text of the doc for 'doc_id'.
def get_doc_text(self, doc_id): """ Fetch the raw text of the doc for 'doc_id'. """ cursor = self.connection.cursor() cursor.execute( "SELECT text FROM documents WHERE id = ?", (utils.normalize(doc_id),) ) result = cursor.fetchone() cursor.clos...
[ "def", "get_doc_text", "(", "self", ",", "doc_id", ")", ":", "cursor", "=", "self", ".", "connection", ".", "cursor", "(", ")", "cursor", ".", "execute", "(", "\"SELECT text FROM documents WHERE id = ?\"", ",", "(", "utils", ".", "normalize", "(", "doc_id", ...
[ 48, 4 ]
[ 58, 54 ]
python
en
['en', 'error', 'th']
False
DocDB.get_doc_value
(self, doc_id)
Fetch the raw text of the doc for 'doc_id'.
Fetch the raw text of the doc for 'doc_id'.
def get_doc_value(self, doc_id): """ Fetch the raw text of the doc for 'doc_id'. """ cursor = self.connection.cursor() cursor.execute( "SELECT value FROM documents WHERE id = ?", (utils.normalize(doc_id),) ) result = cursor.fetchone() cursor.cl...
[ "def", "get_doc_value", "(", "self", ",", "doc_id", ")", ":", "cursor", "=", "self", ".", "connection", ".", "cursor", "(", ")", "cursor", ".", "execute", "(", "\"SELECT value FROM documents WHERE id = ?\"", ",", "(", "utils", ".", "normalize", "(", "doc_id", ...
[ 60, 4 ]
[ 70, 54 ]
python
en
['en', 'error', 'th']
False
cmdparser
(raw_string, cmdset, caller, match_index=None)
This function is called by the cmdhandler once it has gathered and merged all valid cmdsets valid for this particular parsing. raw_string - the unparsed text entered by the caller. cmdset - the merged, currently valid cmdset caller - the caller triggering this parsing match_index - an optional...
This function is called by the cmdhandler once it has gathered and merged all valid cmdsets valid for this particular parsing.
def cmdparser(raw_string, cmdset, caller, match_index=None): """ This function is called by the cmdhandler once it has gathered and merged all valid cmdsets valid for this particular parsing. raw_string - the unparsed text entered by the caller. cmdset - the merged, currently valid cmdset calle...
[ "def", "cmdparser", "(", "raw_string", ",", "cmdset", ",", "caller", ",", "match_index", "=", "None", ")", ":" ]
[ 34, 0 ]
[ 53, 7 ]
python
en
['en', 'error', 'th']
False
test_check_rule_for_edit_action_changing
(looper, sdk_wallet_trustee, sdk_wallet_steward, sdk_pool_handle)
Adding new steward for old auth rules
Adding new steward for old auth rules
def test_check_rule_for_edit_action_changing(looper, sdk_wallet_trustee, sdk_wallet_steward, sdk_pool_handle): wh, _ = sdk_wallet_trustee new_steward_did, new_steward_verkey = c...
[ "def", "test_check_rule_for_edit_action_changing", "(", "looper", ",", "sdk_wallet_trustee", ",", "sdk_wallet_steward", ",", "sdk_pool_handle", ")", ":", "wh", ",", "_", "=", "sdk_wallet_trustee", "new_steward_did", ",", "new_steward_verkey", "=", "create_verkey_did", "("...
[ 11, 0 ]
[ 41, 44 ]
python
en
['en', 'en', 'en']
True
testSuspendNode
(looper, sdk_pool_handle, sdk_wallet_trustee, nodeSet, tdir, tconf, allPluginsPath)
Suspend a node and then cancel suspension. Suspend while suspended to test that there is no error
Suspend a node and then cancel suspension. Suspend while suspended to test that there is no error
def testSuspendNode(looper, sdk_pool_handle, sdk_wallet_trustee, nodeSet, tdir, tconf, allPluginsPath): """ Suspend a node and then cancel suspension. Suspend while suspended to test that there is no error """ start_view_no = nodeSet[0].viewNo new_steward_wallet, new_node = s...
[ "def", "testSuspendNode", "(", "looper", ",", "sdk_pool_handle", ",", "sdk_wallet_trustee", ",", "nodeSet", ",", "tdir", ",", "tconf", ",", "allPluginsPath", ")", ":", "start_view_no", "=", "nodeSet", "[", "0", "]", ".", "viewNo", "new_steward_wallet", ",", "n...
[ 15, 0 ]
[ 44, 71 ]
python
en
['en', 'error', 'th']
False
testDemoteNodeWhichWasNeverActive
(looper, nodeSet, sdk_pool_handle, sdk_wallet_trustee, tdir, tconf, allPluginsPath)
Add a node without services field and check that the ledger does not contain the `services` field and check that it can be demoted and the ledger has `services` as empty list
Add a node without services field and check that the ledger does not contain the `services` field and check that it can be demoted and the ledger has `services` as empty list
def testDemoteNodeWhichWasNeverActive(looper, nodeSet, sdk_pool_handle, sdk_wallet_trustee, tdir, tconf, allPluginsPath): """ Add a node without services field and check that the ledger does not contain the `services` field and chec...
[ "def", "testDemoteNodeWhichWasNeverActive", "(", "looper", ",", "nodeSet", ",", "sdk_pool_handle", ",", "sdk_wallet_trustee", ",", "tdir", ",", "tconf", ",", "allPluginsPath", ")", ":", "new_steward_wallet", ",", "new_node", "=", "sdk_node_theta_added", "(", "looper",...
[ 53, 0 ]
[ 86, 76 ]
python
en
['en', 'error', 'th']
False
eval_model
(opt)
Evaluates a model. :param opt: tells the evaluation function how to run :return: the final result of calling report()
Evaluates a model.
def eval_model(opt): """ Evaluates a model. :param opt: tells the evaluation function how to run :return: the final result of calling report() """ random.seed(42) if 'train' in opt['datatype'] and 'evalmode' not in opt['datatype']: raise ValueError( 'You should use --dat...
[ "def", "eval_model", "(", "opt", ")", ":", "random", ".", "seed", "(", "42", ")", "if", "'train'", "in", "opt", "[", "'datatype'", "]", "and", "'evalmode'", "not", "in", "opt", "[", "'datatype'", "]", ":", "raise", "ValueError", "(", "'You should use --d...
[ 175, 0 ]
[ 211, 17 ]
python
en
['en', 'error', 'th']
False
plot
(data_frame, kind, **kwargs)
Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py
Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py
def plot(data_frame, kind, **kwargs): """ Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py """ from .express import ( scatter, ...
[ "def", "plot", "(", "data_frame", ",", "kind", ",", "*", "*", "kwargs", ")", ":", "from", ".", "express", "import", "(", "scatter", ",", "line", ",", "area", ",", "bar", ",", "box", ",", "histogram", ",", "violin", ",", "strip", ",", "funnel", ",",...
[ 76, 0 ]
[ 134, 5 ]
python
en
['en', 'error', 'th']
False
boxplot_frame
(data_frame, **kwargs)
Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py
Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py
def boxplot_frame(data_frame, **kwargs): """ Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py """ from .express import box skip = ["by...
[ "def", "boxplot_frame", "(", "data_frame", ",", "*", "*", "kwargs", ")", ":", "from", ".", "express", "import", "box", "skip", "=", "[", "\"by\"", ",", "\"column\"", ",", "\"ax\"", ",", "\"fontsize\"", ",", "\"rot\"", ",", "\"grid\"", ",", "\"figsize\"", ...
[ 137, 0 ]
[ 148, 40 ]
python
en
['en', 'error', 'th']
False
hist_frame
(data_frame, **kwargs)
Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py
Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py
def hist_frame(data_frame, **kwargs): """ Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py """ from .express import histogram skip = [...
[ "def", "hist_frame", "(", "data_frame", ",", "*", "*", "kwargs", ")", ":", "from", ".", "express", "import", "histogram", "skip", "=", "[", "\"column\"", ",", "\"by\"", ",", "\"grid\"", ",", "\"xlabelsize\"", ",", "\"xrot\"", ",", "\"ylabelsize\"", ",", "\...
[ 151, 0 ]
[ 162, 46 ]
python
en
['en', 'error', 'th']
False
hist_series
(data_frame, **kwargs)
Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py
Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py
def hist_series(data_frame, **kwargs): """ Pandas plotting backend function, not meant to be called directly. To activate, set pandas.options.plotting.backend="plotly" See https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/__init__.py """ from .express import histogram skip = ...
[ "def", "hist_series", "(", "data_frame", ",", "*", "*", "kwargs", ")", ":", "from", ".", "express", "import", "histogram", "skip", "=", "[", "\"by\"", ",", "\"grid\"", ",", "\"xlabelsize\"", ",", "\"xrot\"", ",", "\"ylabelsize\"", ",", "\"yrot\"", ",", "\"...
[ 165, 0 ]
[ 176, 46 ]
python
en
['en', 'error', 'th']
False
StorageProvider.provide
(self, settings: BaseSettings, injector: BaseInjector)
Create and return the storage instance.
Create and return the storage instance.
async def provide(self, settings: BaseSettings, injector: BaseInjector): """Create and return the storage instance.""" wallet: BaseWallet = await injector.inject(BaseWallet) wallet_type = settings.get_value("wallet.type", default="basic").lower() storage_default_type = "indy" if wallet...
[ "async", "def", "provide", "(", "self", ",", "settings", ":", "BaseSettings", ",", "injector", ":", "BaseInjector", ")", ":", "wallet", ":", "BaseWallet", "=", "await", "injector", ".", "inject", "(", "BaseWallet", ")", "wallet_type", "=", "settings", ".", ...
[ 20, 4 ]
[ 32, 22 ]
python
en
['en', 'en', 'en']
True
uniform_weights
(x, x_mask)
Return uniform weights over non-masked input.
Return uniform weights over non-masked input.
def uniform_weights(x, x_mask): """ Return uniform weights over non-masked input. """ alpha = Variable(torch.ones(x.size(0), x.size(1))) if x.data.is_cuda: alpha = alpha.cuda() alpha = alpha * x_mask.eq(0).float() alpha = alpha / alpha.sum(1).expand(alpha.size()) return alpha
[ "def", "uniform_weights", "(", "x", ",", "x_mask", ")", ":", "alpha", "=", "Variable", "(", "torch", ".", "ones", "(", "x", ".", "size", "(", "0", ")", ",", "x", ".", "size", "(", "1", ")", ")", ")", "if", "x", ".", "data", ".", "is_cuda", ":...
[ 266, 0 ]
[ 275, 16 ]
python
en
['en', 'error', 'th']
False
weighted_avg
(x, weights)
x = batch * len * d weights = batch * len
x = batch * len * d weights = batch * len
def weighted_avg(x, weights): """x = batch * len * d weights = batch * len """ return weights.unsqueeze(1).bmm(x).squeeze(1)
[ "def", "weighted_avg", "(", "x", ",", "weights", ")", ":", "return", "weights", ".", "unsqueeze", "(", "1", ")", ".", "bmm", "(", "x", ")", ".", "squeeze", "(", "1", ")" ]
[ 278, 0 ]
[ 282, 49 ]
python
cy
['cy', 'lb', 'hi']
False
StackedBRNN.forward
(self, x, x_mask)
Can choose to either handle or ignore variable length sequences. Always handle padding in eval.
Can choose to either handle or ignore variable length sequences.
def forward(self, x, x_mask): """ Can choose to either handle or ignore variable length sequences. Always handle padding in eval. """ # No padding necessary. if x_mask.data.sum() == 0: return self._forward_unpadded(x, x_mask) # Pad if we care or if it...
[ "def", "forward", "(", "self", ",", "x", ",", "x_mask", ")", ":", "# No padding necessary.", "if", "x_mask", ".", "data", ".", "sum", "(", ")", "==", "0", ":", "return", "self", ".", "_forward_unpadded", "(", "x", ",", "x_mask", ")", "# Pad if we care or...
[ 41, 4 ]
[ 54, 48 ]
python
en
['en', 'error', 'th']
False
StackedBRNN._forward_unpadded
(self, x, x_mask)
Faster encoding that ignores any padding.
Faster encoding that ignores any padding.
def _forward_unpadded(self, x, x_mask): """ Faster encoding that ignores any padding. """ # Transpose batch and sequence dims x = x.transpose(0, 1).contiguous() # Encode all layers outputs = [x] for i in range(self.num_layers): rnn_input = out...
[ "def", "_forward_unpadded", "(", "self", ",", "x", ",", "x_mask", ")", ":", "# Transpose batch and sequence dims", "x", "=", "x", ".", "transpose", "(", "0", ",", "1", ")", ".", "contiguous", "(", ")", "# Encode all layers", "outputs", "=", "[", "x", "]", ...
[ 56, 4 ]
[ 89, 21 ]
python
en
['en', 'error', 'th']
False
StackedBRNN._forward_padded
(self, x, x_mask)
Slower (significantly), but more precise, encoding that handles padding.
Slower (significantly), but more precise, encoding that handles padding.
def _forward_padded(self, x, x_mask): """ Slower (significantly), but more precise, encoding that handles padding. """ # Compute sorted sequence lengths lengths = x_mask.data.eq(0).long().sum(1).squeeze() _, idx_sort = torch.sort(lengths, dim=0, descending=True) _...
[ "def", "_forward_padded", "(", "self", ",", "x", ",", "x_mask", ")", ":", "# Compute sorted sequence lengths", "lengths", "=", "x_mask", ".", "data", ".", "eq", "(", "0", ")", ".", "long", "(", ")", ".", "sum", "(", "1", ")", ".", "squeeze", "(", ")"...
[ 91, 4 ]
[ 145, 21 ]
python
en
['en', 'error', 'th']
False
SeqAttnMatch.forward
(self, x, y, y_mask)
Input shapes: x = batch * len1 * h y = batch * len2 * h y_mask = batch * len2 Output shapes: matched_seq = batch * len1 * h
Input shapes:
def forward(self, x, y, y_mask): """ Input shapes: x = batch * len1 * h y = batch * len2 * h y_mask = batch * len2 Output shapes: matched_seq = batch * len1 * h """ # Project vectors if self.linear: x_proj = sel...
[ "def", "forward", "(", "self", ",", "x", ",", "y", ",", "y_mask", ")", ":", "# Project vectors", "if", "self", ".", "linear", ":", "x_proj", "=", "self", ".", "linear", "(", "x", ".", "view", "(", "-", "1", ",", "x", ".", "size", "(", "2", ")",...
[ 163, 4 ]
[ 196, 26 ]
python
en
['en', 'error', 'th']
False
BilinearSeqAttn.forward
(self, x, y, x_mask)
x = batch * len * h1 y = batch * h2 x_mask = batch * len
x = batch * len * h1 y = batch * h2 x_mask = batch * len
def forward(self, x, y, x_mask): """ x = batch * len * h1 y = batch * h2 x_mask = batch * len """ Wy = self.linear(y) if self.linear is not None else y xWy = x.bmm(Wy.unsqueeze(2)).squeeze(2) xWy.data.masked_fill_(x_mask.data, -float('inf')) self.x...
[ "def", "forward", "(", "self", ",", "x", ",", "y", ",", "x_mask", ")", ":", "Wy", "=", "self", ".", "linear", "(", "y", ")", "if", "self", ".", "linear", "is", "not", "None", "else", "y", "xWy", "=", "x", ".", "bmm", "(", "Wy", ".", "unsqueez...
[ 215, 4 ]
[ 235, 20 ]
python
en
['en', 'error', 'th']
False
LinearSeqAttn.forward
(self, x, x_mask)
x = batch * len * hdim x_mask = batch * len
x = batch * len * hdim x_mask = batch * len
def forward(self, x, x_mask): """ x = batch * len * hdim x_mask = batch * len """ x_flat = x.view(-1, x.size(-1)) scores = self.linear(x_flat).view(x.size(0), x.size(1)) scores.data.masked_fill_(x_mask.data, -float('inf')) alpha = F.softmax(scores, dim=-1)...
[ "def", "forward", "(", "self", ",", "x", ",", "x_mask", ")", ":", "x_flat", "=", "x", ".", "view", "(", "-", "1", ",", "x", ".", "size", "(", "-", "1", ")", ")", "scores", "=", "self", ".", "linear", "(", "x_flat", ")", ".", "view", "(", "x...
[ 249, 4 ]
[ 258, 20 ]
python
en
['en', 'error', 'th']
False
Template.data
(self)
The 'data' property is an instance of Data that may be specified as: - An instance of :class:`plotly.graph_objs.layout.template.Data` - A dict of string/value properties that will be passed to the Data constructor Supported dict properties: ...
The 'data' property is an instance of Data that may be specified as: - An instance of :class:`plotly.graph_objs.layout.template.Data` - A dict of string/value properties that will be passed to the Data constructor Supported dict properties: ...
def data(self): """ The 'data' property is an instance of Data that may be specified as: - An instance of :class:`plotly.graph_objs.layout.template.Data` - A dict of string/value properties that will be passed to the Data constructor Supported dic...
[ "def", "data", "(", "self", ")", ":", "return", "self", "[", "\"data\"", "]" ]
[ 15, 4 ]
[ 203, 27 ]
python
en
['en', 'error', 'th']
False
Template.layout
(self)
The 'layout' property is an instance of Layout that may be specified as: - An instance of :class:`plotly.graph_objs.Layout` - A dict of string/value properties that will be passed to the Layout constructor Supported dict properties: Returns ...
The 'layout' property is an instance of Layout that may be specified as: - An instance of :class:`plotly.graph_objs.Layout` - A dict of string/value properties that will be passed to the Layout constructor Supported dict properties:
def layout(self): """ The 'layout' property is an instance of Layout that may be specified as: - An instance of :class:`plotly.graph_objs.Layout` - A dict of string/value properties that will be passed to the Layout constructor Supported dict prop...
[ "def", "layout", "(", "self", ")", ":", "return", "self", "[", "\"layout\"", "]" ]
[ 212, 4 ]
[ 226, 29 ]
python
en
['en', 'error', 'th']
False
Template.__init__
(self, arg=None, data=None, layout=None, **kwargs)
Construct a new Template object Default attributes to be applied to the plot. This should be a dict with format: `{'layout': layoutTemplate, 'data': {trace_type: [traceTemplate, ...], ...}}` where `layoutTemplate` is a dict matching the structure of `figure.layo...
Construct a new Template object Default attributes to be applied to the plot. This should be a dict with format: `{'layout': layoutTemplate, 'data': {trace_type: [traceTemplate, ...], ...}}` where `layoutTemplate` is a dict matching the structure of `figure.layo...
def __init__(self, arg=None, data=None, layout=None, **kwargs): """ Construct a new Template object Default attributes to be applied to the plot. This should be a dict with format: `{'layout': layoutTemplate, 'data': {trace_type: [traceTemplate, ...], ...}}` where ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "data", "=", "None", ",", "layout", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Template", ",", "self", ")", ".", "__init__", "(", "\"template\"", ")", "if", "\"_paren...
[ 245, 4 ]
[ 330, 34 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol.connectionMade
(self)
This is called when the connection is first established.
This is called when the connection is first established.
def connectionMade(self): """ This is called when the connection is first established. """ # initialize the session self.line_buffer = "" client_address = self.transport.client client_address = client_address[0] if client_address else None # this number i...
[ "def", "connectionMade", "(", "self", ")", ":", "# initialize the session", "self", ".", "line_buffer", "=", "\"\"", "client_address", "=", "self", ".", "transport", ".", "client", "client_address", "=", "client_address", "[", "0", "]", "if", "client_address", "...
[ 48, 4 ]
[ 94, 35 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol._send_nop_keepalive
(self)
Send NOP keepalive unless flag is set
Send NOP keepalive unless flag is set
def _send_nop_keepalive(self): """Send NOP keepalive unless flag is set""" if self.protocol_flags.get("NOPKEEPALIVE"): self._write(IAC + NOP)
[ "def", "_send_nop_keepalive", "(", "self", ")", ":", "if", "self", ".", "protocol_flags", ".", "get", "(", "\"NOPKEEPALIVE\"", ")", ":", "self", ".", "_write", "(", "IAC", "+", "NOP", ")" ]
[ 96, 4 ]
[ 99, 34 ]
python
en
['en', 'af', 'en']
True
TelnetProtocol.toggle_nop_keepalive
(self)
Allow to toggle the NOP keepalive for those sad clients that can't even handle a NOP instruction. This is turned off by the protocol_flag NOPKEEPALIVE (settable e.g. by the default `@option` command).
Allow to toggle the NOP keepalive for those sad clients that can't even handle a NOP instruction. This is turned off by the protocol_flag NOPKEEPALIVE (settable e.g. by the default `
def toggle_nop_keepalive(self): """ Allow to toggle the NOP keepalive for those sad clients that can't even handle a NOP instruction. This is turned off by the protocol_flag NOPKEEPALIVE (settable e.g. by the default `@option` command). """ if self.nop_keep_alive ...
[ "def", "toggle_nop_keepalive", "(", "self", ")", ":", "if", "self", ".", "nop_keep_alive", "and", "self", ".", "nop_keep_alive", ".", "running", ":", "self", ".", "nop_keep_alive", ".", "stop", "(", ")", "else", ":", "self", ".", "nop_keep_alive", "=", "Lo...
[ 101, 4 ]
[ 112, 52 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol.handshake_done
(self, timeout=False)
This is called by all telnet extensions once they are finished. When all have reported, a sync with the server is performed. The system will force-call this sync after a small time to handle clients that don't reply to handshakes at all.
This is called by all telnet extensions once they are finished. When all have reported, a sync with the server is performed. The system will force-call this sync after a small time to handle clients that don't reply to handshakes at all.
def handshake_done(self, timeout=False): """ This is called by all telnet extensions once they are finished. When all have reported, a sync with the server is performed. The system will force-call this sync after a small time to handle clients that don't reply to handshakes at al...
[ "def", "handshake_done", "(", "self", ",", "timeout", "=", "False", ")", ":", "if", "timeout", ":", "if", "self", ".", "handshakes", ">", "0", ":", "self", ".", "handshakes", "=", "0", "self", ".", "sessionhandler", ".", "sync", "(", "self", ")", "el...
[ 114, 4 ]
[ 129, 46 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol.at_login
(self)
Called when this session gets authenticated by the server.
Called when this session gets authenticated by the server.
def at_login(self): """ Called when this session gets authenticated by the server. """ pass
[ "def", "at_login", "(", "self", ")", ":", "pass" ]
[ 131, 4 ]
[ 135, 12 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol.enableRemote
(self, option)
This sets up the remote-activated options we allow for this protocol. Args: option (char): The telnet option to enable. Returns: enable (bool): If this option should be enabled.
This sets up the remote-activated options we allow for this protocol.
def enableRemote(self, option): """ This sets up the remote-activated options we allow for this protocol. Args: option (char): The telnet option to enable. Returns: enable (bool): If this option should be enabled. """ return (option == LINEMODE ...
[ "def", "enableRemote", "(", "self", ",", "option", ")", ":", "return", "(", "option", "==", "LINEMODE", "or", "option", "==", "ttype", ".", "TTYPE", "or", "option", "==", "naws", ".", "NAWS", "or", "option", "==", "MCCP", "or", "option", "==", "mssp", ...
[ 137, 4 ]
[ 153, 50 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol.enableLocal
(self, option)
Call to allow the activation of options for this protocol Args: option (char): The telnet option to enable locally. Returns: enable (bool): If this option should be enabled.
Call to allow the activation of options for this protocol
def enableLocal(self, option): """ Call to allow the activation of options for this protocol Args: option (char): The telnet option to enable locally. Returns: enable (bool): If this option should be enabled. """ return (option == MCCP or ...
[ "def", "enableLocal", "(", "self", ",", "option", ")", ":", "return", "(", "option", "==", "MCCP", "or", "option", "==", "ECHO", "or", "option", "==", "suppress_ga", ".", "SUPPRESS_GA", ")" ]
[ 155, 4 ]
[ 168, 50 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol.disableLocal
(self, option)
Disable a given option locally. Args: option (char): The telnet option to disable locally.
Disable a given option locally.
def disableLocal(self, option): """ Disable a given option locally. Args: option (char): The telnet option to disable locally. """ if option == ECHO: return True if option == MCCP: self.mccp.no_mccp(option) return True ...
[ "def", "disableLocal", "(", "self", ",", "option", ")", ":", "if", "option", "==", "ECHO", ":", "return", "True", "if", "option", "==", "MCCP", ":", "self", ".", "mccp", ".", "no_mccp", "(", "option", ")", "return", "True", "else", ":", "return", "su...
[ 170, 4 ]
[ 184, 67 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol.connectionLost
(self, reason)
this is executed when the connection is lost for whatever reason. it can also be called directly, from the disconnect method Args: reason (str): Motivation for losing connection.
this is executed when the connection is lost for whatever reason. it can also be called directly, from the disconnect method
def connectionLost(self, reason): """ this is executed when the connection is lost for whatever reason. it can also be called directly, from the disconnect method Args: reason (str): Motivation for losing connection. """ self.sessionhandler.disconnec...
[ "def", "connectionLost", "(", "self", ",", "reason", ")", ":", "self", ".", "sessionhandler", ".", "disconnect", "(", "self", ")", "self", ".", "transport", ".", "loseConnection", "(", ")" ]
[ 186, 4 ]
[ 197, 39 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol.applicationDataReceived
(self, data)
Telnet method called when non-telnet-command data is coming in over the telnet connection. We pass it on to the game engine directly. Args: data (str): Incoming data.
Telnet method called when non-telnet-command data is coming in over the telnet connection. We pass it on to the game engine directly.
def applicationDataReceived(self, data): """ Telnet method called when non-telnet-command data is coming in over the telnet connection. We pass it on to the game engine directly. Args: data (str): Incoming data. """ if not data: data = [d...
[ "def", "applicationDataReceived", "(", "self", ",", "data", ")", ":", "if", "not", "data", ":", "data", "=", "[", "data", "]", "elif", "data", ".", "strip", "(", ")", "==", "NULL", ":", "# this is an ancient type of keepalive used by some", "# legacy clients. Th...
[ 199, 4 ]
[ 230, 41 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol._write
(self, data)
hook overloading the one used in plain telnet
hook overloading the one used in plain telnet
def _write(self, data): """hook overloading the one used in plain telnet""" data = data.replace('\n', '\r\n').replace('\r\r\n', '\r\n') super(TelnetProtocol, self)._write(mccp_compress(self, data))
[ "def", "_write", "(", "self", ",", "data", ")", ":", "data", "=", "data", ".", "replace", "(", "'\\n'", ",", "'\\r\\n'", ")", ".", "replace", "(", "'\\r\\r\\n'", ",", "'\\r\\n'", ")", "super", "(", "TelnetProtocol", ",", "self", ")", ".", "_write", "...
[ 232, 4 ]
[ 235, 69 ]
python
en
['en', 'no', 'en']
True
TelnetProtocol.sendLine
(self, line)
Hook overloading the one used by linereceiver. Args: line (str): Line to send.
Hook overloading the one used by linereceiver.
def sendLine(self, line): """ Hook overloading the one used by linereceiver. Args: line (str): Line to send. """ # escape IAC in line mode, and correctly add \r\n (the TELNET end-of-line) line = line.replace(IAC, IAC + IAC) line = line.replace('\n', ...
[ "def", "sendLine", "(", "self", ",", "line", ")", ":", "# escape IAC in line mode, and correctly add \\r\\n (the TELNET end-of-line)", "line", "=", "line", ".", "replace", "(", "IAC", ",", "IAC", "+", "IAC", ")", "line", "=", "line", ".", "replace", "(", "'\\n'"...
[ 237, 4 ]
[ 252, 62 ]
python
en
['en', 'error', 'th']
False
TelnetProtocol.disconnect
(self, reason="")
generic hook for the engine to call in order to disconnect this protocol. Args: reason (str, optional): Reason for disconnecting.
generic hook for the engine to call in order to disconnect this protocol.
def disconnect(self, reason=""): """ generic hook for the engine to call in order to disconnect this protocol. Args: reason (str, optional): Reason for disconnecting. """ self.data_out(text=((reason,), {})) self.connectionLost(reason)
[ "def", "disconnect", "(", "self", ",", "reason", "=", "\"\"", ")", ":", "self", ".", "data_out", "(", "text", "=", "(", "(", "reason", ",", ")", ",", "{", "}", ")", ")", "self", ".", "connectionLost", "(", "reason", ")" ]
[ 256, 4 ]
[ 266, 35 ]
python
en
['en', 'error', 'th']
False