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
lamps_temperature
(setpoints: Setpoints, states: ClimateStates, weather: Weather)
Equation 2 [2] [W m-2] cap_Lamp * t_Lamp = electrical_input_Lamp - radiation_flux_LampSky - radiation_flux_LampCov_in - radiation_flux_LampThScr - radiation_flux_LampBlScr - sensible_heat_flux_LampAir - radiation_flux_PAR_LampCanopy - radiation_flux_NIR_LampCanopy - ...
Equation 2 [2] [W m-2] cap_Lamp * t_Lamp = electrical_input_Lamp - radiation_flux_LampSky - radiation_flux_LampCov_in - radiation_flux_LampThScr - radiation_flux_LampBlScr - sensible_heat_flux_LampAir - radiation_flux_PAR_LampCanopy - radiation_flux_NIR_LampCanopy - ...
def lamps_temperature(setpoints: Setpoints, states: ClimateStates, weather: Weather): """ Equation 2 [2] [W m-2] cap_Lamp * t_Lamp = electrical_input_Lamp - radiation_flux_LampSky - radiation_flux_LampCov_in - radiation_flux_LampThScr - radiation_flux_LampBlScr - sensible_heat_flux_Lam...
[ "def", "lamps_temperature", "(", "setpoints", ":", "Setpoints", ",", "states", ":", "ClimateStates", ",", "weather", ":", "Weather", ")", ":", "cap_Lamp", "=", "Coefficients", ".", "Lamp", ".", "heat_capacity_lamp", "electrical_input_Lamp", "=", "lamp_electrical_inp...
[ 344, 0 ]
[ 375, 115 ]
python
en
['en', 'error', 'th']
False
inter_lamps_temperature
(setpoints: Setpoints, states: ClimateStates)
Equation 2 [2] [W m-2] cap_LampInt * t_IntLamp = electrical_input_IntLampIn - sensible_heat_flux_IntLampAir - radiation_flux_PAR_IntLampCanopy - radiation_flux_NIR_IntLampCanopy - radiation_flux_FIR_IntLampCanopy Returns:
Equation 2 [2] [W m-2] cap_LampInt * t_IntLamp = electrical_input_IntLampIn - sensible_heat_flux_IntLampAir - radiation_flux_PAR_IntLampCanopy - radiation_flux_NIR_IntLampCanopy - radiation_flux_FIR_IntLampCanopy Returns:
def inter_lamps_temperature(setpoints: Setpoints, states: ClimateStates): """ Equation 2 [2] [W m-2] cap_LampInt * t_IntLamp = electrical_input_IntLampIn - sensible_heat_flux_IntLampAir - radiation_flux_PAR_IntLampCanopy - radiation_flux_NIR_IntLampCanopy - radiation_flux_FIR_Int...
[ "def", "inter_lamps_temperature", "(", "setpoints", ":", "Setpoints", ",", "states", ":", "ClimateStates", ")", ":", "cap_LampInt", "=", "Coefficients", ".", "Interlight", ".", "heat_inter_lamp_capacity", "electrical_input_IntLampIn", "=", "inter_lamp_electrical_input", "...
[ 378, 0 ]
[ 392, 94 ]
python
en
['en', 'error', 'th']
False
greenhouse_air_vapor_pressure
(setpoints: Setpoints, states: ClimateStates, weather: Weather)
Equation 2.10 / 8.10 cap_vapor_Air * vapor_pressure_Air = mass_vapor_flux_CanopyAir + mass_vapor_flux_FogAir + mass_vapor_flux_BlowAir − mass_vapor_flux_AirThScr − mass_vapor_flux_AirTop − mass_vapor_flux_AirOut − mass_vapor_flux_AirMech ...
Equation 2.10 / 8.10 cap_vapor_Air * vapor_pressure_Air = mass_vapor_flux_CanopyAir + mass_vapor_flux_FogAir + mass_vapor_flux_BlowAir − mass_vapor_flux_AirThScr − mass_vapor_flux_AirTop − mass_vapor_flux_AirOut − mass_vapor_flux_AirMech ...
def greenhouse_air_vapor_pressure(setpoints: Setpoints, states: ClimateStates, weather: Weather): """ Equation 2.10 / 8.10 cap_vapor_Air * vapor_pressure_Air = mass_vapor_flux_CanopyAir + mass_vapor_flux_FogAir + mass_vapor_flux_BlowAir − mass_vapor_flux_AirThScr − mass_v...
[ "def", "greenhouse_air_vapor_pressure", "(", "setpoints", ":", "Setpoints", ",", "states", ":", "ClimateStates", ",", "weather", ":", "Weather", ")", ":", "cap_vapor_Air", "=", "air_compartment_water_vapor_capacity", "(", "states", ")", "mass_vapor_flux_CanopyAir", "=",...
[ 395, 0 ]
[ 414, 79 ]
python
en
['en', 'error', 'th']
False
top_compartment_vapor_pressure
(setpoints: Setpoints, states: ClimateStates, weather: Weather)
Equation 2.11 / 8.11 cap_vapor_Top * vapor_pressure_AboveThScr = mass_vapor_flux_AirTop − mass_vapor_flux_TopCov_in − mass_vapor_flux_TopOut :return: The above thermal screen air vapor pressure
Equation 2.11 / 8.11 cap_vapor_Top * vapor_pressure_AboveThScr = mass_vapor_flux_AirTop − mass_vapor_flux_TopCov_in − mass_vapor_flux_TopOut :return: The above thermal screen air vapor pressure
def top_compartment_vapor_pressure(setpoints: Setpoints, states: ClimateStates, weather: Weather): """ Equation 2.11 / 8.11 cap_vapor_Top * vapor_pressure_AboveThScr = mass_vapor_flux_AirTop − mass_vapor_flux_TopCov_in − mass_vapor_flux_TopOut :return: The above thermal screen air vapor pressure """...
[ "def", "top_compartment_vapor_pressure", "(", "setpoints", ":", "Setpoints", ",", "states", ":", "ClimateStates", ",", "weather", ":", "Weather", ")", ":", "cap_vapor_Top", "=", "air_compartment_water_vapor_capacity", "(", "states", ")", "mass_vapor_flux_AirTop", "=", ...
[ 417, 0 ]
[ 427, 104 ]
python
en
['en', 'error', 'th']
False
greenhouse_air_co2
(setpoints: Setpoints, states: ClimateStates, weather: Weather)
Equation 2.12 / 8.12 cap_CO2_Air * air_CO2 = mass_CO2_flux_BlowAir + mass_CO2_flux_ExtAir - mass_CO2_flux_AirCanopy - mass_CO2_flux_AirTop - mass_CO2_flux_AirOut :return: The greenhouse air CO2 concentration
Equation 2.12 / 8.12 cap_CO2_Air * air_CO2 = mass_CO2_flux_BlowAir + mass_CO2_flux_ExtAir - mass_CO2_flux_AirCanopy - mass_CO2_flux_AirTop - mass_CO2_flux_AirOut :return: The greenhouse air CO2 concentration
def greenhouse_air_co2(setpoints: Setpoints, states: ClimateStates, weather: Weather): """ Equation 2.12 / 8.12 cap_CO2_Air * air_CO2 = mass_CO2_flux_BlowAir + mass_CO2_flux_ExtAir - mass_CO2_flux_AirCanopy - mass_CO2_flux_AirTop - mass_CO2_flux_AirOut :return: The greenhouse a...
[ "def", "greenhouse_air_co2", "(", "setpoints", ":", "Setpoints", ",", "states", ":", "ClimateStates", ",", "weather", ":", "Weather", ")", ":", "cap_co2_Air", "=", "coefs", ".", "Construction", ".", "air_height", "mass_co2_flux_BlowAir", "=", "heat_blower_to_greenho...
[ 430, 0 ]
[ 444, 98 ]
python
en
['en', 'error', 'th']
False
top_compartment_air_co2
(setpoints: Setpoints, states: ClimateStates, weather: Weather)
Equation 2.13 / 8.13 cap_CO2_Top * top_CO2 = mass_CO2_flux_AirTop - mass_CO2_flux_TopOut :return: The above thermal screen air CO2 concentration
Equation 2.13 / 8.13 cap_CO2_Top * top_CO2 = mass_CO2_flux_AirTop - mass_CO2_flux_TopOut :return: The above thermal screen air CO2 concentration
def top_compartment_air_co2(setpoints: Setpoints, states: ClimateStates, weather: Weather): """ Equation 2.13 / 8.13 cap_CO2_Top * top_CO2 = mass_CO2_flux_AirTop - mass_CO2_flux_TopOut :return: The above thermal screen air CO2 concentration """ cap_co2_Top = coefs.Construction.greenhouse_height ...
[ "def", "top_compartment_air_co2", "(", "setpoints", ":", "Setpoints", ",", "states", ":", "ClimateStates", ",", "weather", ":", "Weather", ")", ":", "cap_co2_Top", "=", "coefs", ".", "Construction", ".", "greenhouse_height", "-", "coefs", ".", "Construction", "....
[ 447, 0 ]
[ 456, 70 ]
python
en
['en', 'error', 'th']
False
text
(session, *args, **kwargs)
Main text input from the client. This will execute a command string on the server. Args: session (Session): The active Session to receive the input. text (str): First arg is used as text-command input. Other arguments are ignored.
Main text input from the client. This will execute a command string on the server.
def text(session, *args, **kwargs): """ Main text input from the client. This will execute a command string on the server. Args: session (Session): The active Session to receive the input. text (str): First arg is used as text-command input. Other arguments are ignored. ...
[ "def", "text", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "#from evennia.server.profiling.timetrace import timetrace", "#text = timetrace(text, \"ServerSession.data_in\")", "txt", "=", "args", "[", "0", "]", "if", "args", "else", "None", "#...
[ 48, 0 ]
[ 84, 37 ]
python
en
['en', 'error', 'th']
False
bot_data_in
(session, *args, **kwargs)
Text input from the IRC and RSS bots. This will trigger the execute_cmd method on the bots in-game counterpart. Args: session (Session): The active Session to receive the input. text (str): First arg is text input. Other arguments are ignored.
Text input from the IRC and RSS bots. This will trigger the execute_cmd method on the bots in-game counterpart.
def bot_data_in(session, *args, **kwargs): """ Text input from the IRC and RSS bots. This will trigger the execute_cmd method on the bots in-game counterpart. Args: session (Session): The active Session to receive the input. text (str): First arg is text input. Other arguments are ignor...
[ "def", "bot_data_in", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "txt", "=", "args", "[", "0", "]", "if", "args", "else", "None", "# Explicitly check for None since text can be an empty string, which is", "# also valid", "if", "txt", "i...
[ 87, 0 ]
[ 112, 37 ]
python
en
['en', 'error', 'th']
False
echo
(session, *args, **kwargs)
Echo test function
Echo test function
def echo(session, *args, **kwargs): """ Echo test function """ session.data_out(text="Echo returns: %s" % args)
[ "def", "echo", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "session", ".", "data_out", "(", "text", "=", "\"Echo returns: %s\"", "%", "args", ")" ]
[ 115, 0 ]
[ 119, 52 ]
python
en
['en', 'error', 'th']
False
default
(session, cmdname, *args, **kwargs)
Default catch-function. This is like all other input functions except it will get `cmdname` as the first argument.
Default catch-function. This is like all other input functions except it will get `cmdname` as the first argument.
def default(session, cmdname, *args, **kwargs): """ Default catch-function. This is like all other input functions except it will get `cmdname` as the first argument. """ err = "Session {sessid}: Input command not recognized:\n" \ " name: '{cmdname}'\n" \ " args, kwargs: {args}, {kw...
[ "def", "default", "(", "session", ",", "cmdname", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "err", "=", "\"Session {sessid}: Input command not recognized:\\n\"", "\" name: '{cmdname}'\\n\"", "\" args, kwargs: {args}, {kwargs}\"", ".", "format", "(", "sessid",...
[ 122, 0 ]
[ 136, 16 ]
python
en
['en', 'error', 'th']
False
client_options
(session, *args, **kwargs)
This allows the client an OOB way to inform us about its name and capabilities. This will be integrated into the session settings Kwargs: get (bool): If this is true, return the settings as a dict (ignore all other kwargs). client (str): A client identifier, like "mushclient". ...
This allows the client an OOB way to inform us about its name and capabilities. This will be integrated into the session settings
def client_options(session, *args, **kwargs): """ This allows the client an OOB way to inform us about its name and capabilities. This will be integrated into the session settings Kwargs: get (bool): If this is true, return the settings as a dict (ignore all other kwargs). c...
[ "def", "client_options", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "old_flags", "=", "session", ".", "protocol_flags", "if", "not", "kwargs", "or", "kwargs", ".", "get", "(", "\"get\"", ",", "False", ")", ":", "# return current...
[ 139, 0 ]
[ 237, 56 ]
python
en
['en', 'error', 'th']
False
get_client_options
(session, *args, **kwargs)
Alias wrapper for getting options.
Alias wrapper for getting options.
def get_client_options(session, *args, **kwargs): """ Alias wrapper for getting options. """ client_options(session, get=True)
[ "def", "get_client_options", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "client_options", "(", "session", ",", "get", "=", "True", ")" ]
[ 245, 0 ]
[ 249, 37 ]
python
en
['en', 'error', 'th']
False
get_inputfuncs
(session, *args, **kwargs)
Get the keys of all available inputfuncs. Note that we don't get it from this module alone since multiple modules could be added. So we get it from the sessionhandler.
Get the keys of all available inputfuncs. Note that we don't get it from this module alone since multiple modules could be added. So we get it from the sessionhandler.
def get_inputfuncs(session, *args, **kwargs): """ Get the keys of all available inputfuncs. Note that we don't get it from this module alone since multiple modules could be added. So we get it from the sessionhandler. """ inputfuncsdict = dict((key, func.__doc__) for key, func ...
[ "def", "get_inputfuncs", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "inputfuncsdict", "=", "dict", "(", "(", "key", ",", "func", ".", "__doc__", ")", "for", "key", ",", "func", "in", "session", ".", "sessionhandler", ".", "g...
[ 252, 0 ]
[ 260, 46 ]
python
en
['en', 'error', 'th']
False
login
(session, *args, **kwargs)
Peform a login. This only works if session is currently not logged in. This will also automatically throttle too quick attempts. Kwargs: name (str): Account name password (str): Plain-text password
Peform a login. This only works if session is currently not logged in. This will also automatically throttle too quick attempts.
def login(session, *args, **kwargs): """ Peform a login. This only works if session is currently not logged in. This will also automatically throttle too quick attempts. Kwargs: name (str): Account name password (str): Plain-text password """ if not session.logged_in and "name"...
[ "def", "login", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "if", "not", "session", ".", "logged_in", "and", "\"name\"", "in", "kwargs", "and", "\"password\"", "in", "kwargs", ":", "from", "evennia", ".", "commands", ".", "defa...
[ 263, 0 ]
[ 277, 58 ]
python
en
['en', 'error', 'th']
False
get_value
(session, *args, **kwargs)
Return the value of a given attribute or db_property on the session's current account or character. Kwargs: name (str): Name of info value to return. Only names in the _gettable dictionary earlier in this module are accepted.
Return the value of a given attribute or db_property on the session's current account or character.
def get_value(session, *args, **kwargs): """ Return the value of a given attribute or db_property on the session's current account or character. Kwargs: name (str): Name of info value to return. Only names in the _gettable dictionary earlier in this module are accepted. """ ...
[ "def", "get_value", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "name", "=", "kwargs", ".", "get", "(", "\"name\"", ",", "\"\"", ")", "obj", "=", "session", ".", "puppet", "or", "session", ".", "account", "if", "name", "in"...
[ 288, 0 ]
[ 302, 76 ]
python
en
['en', 'error', 'th']
False
_testrepeat
(**kwargs)
This is a test function for using with the repeat inputfunc. Kwargs: session (Session): Session to return to.
This is a test function for using with the repeat inputfunc.
def _testrepeat(**kwargs): """ This is a test function for using with the repeat inputfunc. Kwargs: session (Session): Session to return to. """ import time kwargs["session"].msg(repeat="Repeat called: %s" % time.time())
[ "def", "_testrepeat", "(", "*", "*", "kwargs", ")", ":", "import", "time", "kwargs", "[", "\"session\"", "]", ".", "msg", "(", "repeat", "=", "\"Repeat called: %s\"", "%", "time", ".", "time", "(", ")", ")" ]
[ 305, 0 ]
[ 314, 67 ]
python
en
['en', 'error', 'th']
False
repeat
(session, *args, **kwargs)
Call a named function repeatedly. Note that this is meant as an example of limiting the number of possible call functions. Kwargs: callback (str): The function to call. Only functions from the _repeatable dictionary earlier in this module are available. interval...
Call a named function repeatedly. Note that this is meant as an example of limiting the number of possible call functions.
def repeat(session, *args, **kwargs): """ Call a named function repeatedly. Note that this is meant as an example of limiting the number of possible call functions. Kwargs: callback (str): The function to call. Only functions from the _repeatable dictionary earlier in this ...
[ "def", "repeat", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "from", "evennia", ".", "scripts", ".", "tickerhandler", "import", "TICKER_HANDLER", "name", "=", "kwargs", ".", "get", "(", "\"callback\"", ",", "\"\"", ")", "interval...
[ 321, 0 ]
[ 348, 85 ]
python
en
['en', 'error', 'th']
False
unrepeat
(session, *args, **kwargs)
Wrapper for OOB use
Wrapper for OOB use
def unrepeat(session, *args, **kwargs): "Wrapper for OOB use" kwargs["stop"] = True repeat(session, *args, **kwargs)
[ "def", "unrepeat", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "kwargs", "[", "\"stop\"", "]", "=", "True", "repeat", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")" ]
[ 351, 0 ]
[ 354, 36 ]
python
en
['da', 'en', 'en']
True
monitor
(session, *args, **kwargs)
Adds monitoring to a given property or Attribute. Kwargs: name (str): The name of the property or Attribute to report. No db_* prefix is needed. Only names in the _monitorable dict earlier in this module are accepted. stop (bool): Stop monitoring the above name.
Adds monitoring to a given property or Attribute.
def monitor(session, *args, **kwargs): """ Adds monitoring to a given property or Attribute. Kwargs: name (str): The name of the property or Attribute to report. No db_* prefix is needed. Only names in the _monitorable dict earlier in this module are accepted. stop (bool...
[ "def", "monitor", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "from", "evennia", ".", "scripts", ".", "monitorhandler", "import", "MONITOR_HANDLER", "name", "=", "kwargs", ".", "get", "(", "\"name\"", ",", "None", ")", "if", "n...
[ 375, 0 ]
[ 397, 77 ]
python
en
['en', 'error', 'th']
False
unmonitor
(session, *args, **kwargs)
Wrapper for turning off monitoring
Wrapper for turning off monitoring
def unmonitor(session, *args, **kwargs): """ Wrapper for turning off monitoring """ kwargs["stop"] = True monitor(session, *args, **kwargs)
[ "def", "unmonitor", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "kwargs", "[", "\"stop\"", "]", "=", "True", "monitor", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")" ]
[ 400, 0 ]
[ 405, 37 ]
python
en
['en', 'error', 'th']
False
_on_webclient_options_change
(**kwargs)
Called when the webclient options stored on the account changes. Inform the interested clients of this change.
Called when the webclient options stored on the account changes. Inform the interested clients of this change.
def _on_webclient_options_change(**kwargs): """ Called when the webclient options stored on the account changes. Inform the interested clients of this change. """ session = kwargs["session"] obj = kwargs["obj"] fieldname = kwargs["fieldname"] clientoptions = _GA(obj, fieldname) # th...
[ "def", "_on_webclient_options_change", "(", "*", "*", "kwargs", ")", ":", "session", "=", "kwargs", "[", "\"session\"", "]", "obj", "=", "kwargs", "[", "\"obj\"", "]", "fieldname", "=", "kwargs", "[", "\"fieldname\"", "]", "clientoptions", "=", "_GA", "(", ...
[ 408, 0 ]
[ 421, 52 ]
python
en
['en', 'error', 'th']
False
webclient_options
(session, *args, **kwargs)
Handles retrieving and changing of options related to the webclient. If kwargs is empty (or contains just a "cmdid"), the saved options will be sent back to the session. A monitor handler will be created to inform the client of any future options that changes. If kwargs is not empty, the key/...
Handles retrieving and changing of options related to the webclient.
def webclient_options(session, *args, **kwargs): """ Handles retrieving and changing of options related to the webclient. If kwargs is empty (or contains just a "cmdid"), the saved options will be sent back to the session. A monitor handler will be created to inform the client of any future options...
[ "def", "webclient_options", "(", "session", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "account", "=", "session", ".", "account", "clientoptions", "=", "account", ".", "db", ".", "_saved_webclient_options", "if", "not", "clientoptions", ":", "# No ...
[ 424, 0 ]
[ 469, 38 ]
python
en
['en', 'error', 'th']
False
Pathbar.edgeshape
(self)
Determines which shape is used for edges between `barpath` labels. The 'edgeshape' property is an enumeration that may be specified as: - One of the following enumeration values: ['>', '<', '|', '\\'] - A string that matches one of the following regular ...
Determines which shape is used for edges between `barpath` labels. The 'edgeshape' property is an enumeration that may be specified as: - One of the following enumeration values: ['>', '<', '|', '\\'] - A string that matches one of the following regular ...
def edgeshape(self): """ Determines which shape is used for edges between `barpath` labels. The 'edgeshape' property is an enumeration that may be specified as: - One of the following enumeration values: ['>', '<', '|', '\\'] - A string that match...
[ "def", "edgeshape", "(", "self", ")", ":", "return", "self", "[", "\"edgeshape\"", "]" ]
[ 15, 4 ]
[ 30, 32 ]
python
en
['en', 'error', 'th']
False
Pathbar.side
(self)
Determines on which side of the the treemap the `pathbar` should be presented. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'bottom'] Returns ------- Any
Determines on which side of the the treemap the `pathbar` should be presented. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'bottom']
def side(self): """ Determines on which side of the the treemap the `pathbar` should be presented. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'bottom'] Returns ------- ...
[ "def", "side", "(", "self", ")", ":", "return", "self", "[", "\"side\"", "]" ]
[ 39, 4 ]
[ 52, 27 ]
python
en
['en', 'error', 'th']
False
Pathbar.textfont
(self)
Sets the font used inside `pathbar`. The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.treemap.pathbar.Textfont` - A dict of string/value properties that will be passed to the Textfont con...
Sets the font used inside `pathbar`. The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.treemap.pathbar.Textfont` - A dict of string/value properties that will be passed to the Textfont con...
def textfont(self): """ Sets the font used inside `pathbar`. The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.treemap.pathbar.Textfont` - A dict of string/value properties that will be passed ...
[ "def", "textfont", "(", "self", ")", ":", "return", "self", "[", "\"textfont\"", "]" ]
[ 61, 4 ]
[ 108, 31 ]
python
en
['en', 'error', 'th']
False
Pathbar.thickness
(self)
Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used with 3 pixles extra padding on each side. The 'thickness' property is a number and may be specified as: - An int or float in the interval [12, inf] Returns -----...
Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used with 3 pixles extra padding on each side. The 'thickness' property is a number and may be specified as: - An int or float in the interval [12, inf]
def thickness(self): """ Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used with 3 pixles extra padding on each side. The 'thickness' property is a number and may be specified as: - An int or float in the interval [12, inf...
[ "def", "thickness", "(", "self", ")", ":", "return", "self", "[", "\"thickness\"", "]" ]
[ 117, 4 ]
[ 130, 32 ]
python
en
['en', 'error', 'th']
False
Pathbar.visible
(self)
Determines if the path bar is drawn i.e. outside the trace `domain` and with one pixel gap. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool
Determines if the path bar is drawn i.e. outside the trace `domain` and with one pixel gap. The 'visible' property must be specified as a bool (either True, or False)
def visible(self): """ Determines if the path bar is drawn i.e. outside the trace `domain` and with one pixel gap. The 'visible' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["visibl...
[ "def", "visible", "(", "self", ")", ":", "return", "self", "[", "\"visible\"", "]" ]
[ 139, 4 ]
[ 151, 30 ]
python
en
['en', 'error', 'th']
False
Pathbar.__init__
( self, arg=None, edgeshape=None, side=None, textfont=None, thickness=None, visible=None, **kwargs )
Construct a new Pathbar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.treemap.Pathbar` edgeshape Determines which shape is used for edges b...
Construct a new Pathbar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.treemap.Pathbar` edgeshape Determines which shape is used for edges b...
def __init__( self, arg=None, edgeshape=None, side=None, textfont=None, thickness=None, visible=None, **kwargs ): """ Construct a new Pathbar object Parameters ---------- arg dict of properti...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "edgeshape", "=", "None", ",", "side", "=", "None", ",", "textfont", "=", "None", ",", "thickness", "=", "None", ",", "visible", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", ...
[ 179, 4 ]
[ 274, 34 ]
python
en
['en', 'error', 'th']
False
gaussian_2d
(shape, sigma=1)
Generate gaussian map. Args: shape (list[int]): Shape of the map. sigma (float): Sigma to generate gaussian map. Defaults to 1. Returns: np.ndarray: Generated gaussian map.
Generate gaussian map.
def gaussian_2d(shape, sigma=1): """Generate gaussian map. Args: shape (list[int]): Shape of the map. sigma (float): Sigma to generate gaussian map. Defaults to 1. Returns: np.ndarray: Generated gaussian map. """ m, n = [(ss - 1.) / 2. for ss in shape] y, x ...
[ "def", "gaussian_2d", "(", "shape", ",", "sigma", "=", "1", ")", ":", "m", ",", "n", "=", "[", "(", "ss", "-", "1.", ")", "/", "2.", "for", "ss", "in", "shape", "]", "y", ",", "x", "=", "np", ".", "ogrid", "[", "-", "m", ":", "m", "+", ...
[ 4, 0 ]
[ 20, 12 ]
python
fi
['fi', 'zh-Latn', 'tr']
False
draw_heatmap_gaussian
(heatmap, center, radius, k=1)
Get gaussian masked heatmap. Args: heatmap (torch.Tensor): Heatmap to be masked. center (torch.Tensor): Center coord of the heatmap. radius (int): Radius of gausian. K (int): Multiple of masked_gaussian. Defaults to 1. Returns: torch.Tensor: Masked heatmap.
Get gaussian masked heatmap.
def draw_heatmap_gaussian(heatmap, center, radius, k=1): """Get gaussian masked heatmap. Args: heatmap (torch.Tensor): Heatmap to be masked. center (torch.Tensor): Center coord of the heatmap. radius (int): Radius of gausian. K (int): Multiple of masked_gaussian. Defaults to 1. ...
[ "def", "draw_heatmap_gaussian", "(", "heatmap", ",", "center", ",", "radius", ",", "k", "=", "1", ")", ":", "diameter", "=", "2", "*", "radius", "+", "1", "gaussian", "=", "gaussian_2d", "(", "(", "diameter", ",", "diameter", ")", ",", "sigma", "=", ...
[ 23, 0 ]
[ 52, 18 ]
python
en
['nl', 'lb', 'en']
False
gaussian_radius
(det_size, min_overlap=0.5)
Get radius of gaussian. Args: det_size (tuple[torch.Tensor]): Size of the detection result. min_overlap (float): Gaussian_overlap. Defaults to 0.5. Returns: torch.Tensor: Computed radius.
Get radius of gaussian.
def gaussian_radius(det_size, min_overlap=0.5): """Get radius of gaussian. Args: det_size (tuple[torch.Tensor]): Size of the detection result. min_overlap (float): Gaussian_overlap. Defaults to 0.5. Returns: torch.Tensor: Computed radius. """ height, width = det_size a...
[ "def", "gaussian_radius", "(", "det_size", ",", "min_overlap", "=", "0.5", ")", ":", "height", ",", "width", "=", "det_size", "a1", "=", "1", "b1", "=", "(", "height", "+", "width", ")", "c1", "=", "width", "*", "height", "*", "(", "1", "-", "min_o...
[ 55, 0 ]
[ 84, 26 ]
python
en
['en', 'ky', 'en']
True
Font.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 64, 28 ]
python
en
['en', 'error', 'th']
False
Font.colorsrc
(self)
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def colorsrc(self): """ Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["colorsrc"]
[ "def", "colorsrc", "(", "self", ")", ":", "return", "self", "[", "\"colorsrc\"", "]" ]
[ 73, 4 ]
[ 84, 31 ]
python
en
['en', 'error', 'th']
False
Font.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 93, 4 ]
[ 116, 29 ]
python
en
['en', 'error', 'th']
False
Font.familysrc
(self)
Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def familysrc(self): """ Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["familysrc"]
[ "def", "familysrc", "(", "self", ")", ":", "return", "self", "[", "\"familysrc\"", "]" ]
[ 125, 4 ]
[ 136, 32 ]
python
en
['en', 'error', 'th']
False
Font.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray """ return self["size"...
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 145, 4 ]
[ 155, 27 ]
python
en
['en', 'error', 'th']
False
Font.sizesrc
(self)
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def sizesrc(self): """ Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["sizesrc"]
[ "def", "sizesrc", "(", "self", ")", ":", "return", "self", "[", "\"sizesrc\"", "]" ]
[ 164, 4 ]
[ 175, 30 ]
python
en
['en', 'error', 'th']
False
Font.__init__
( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs )
Construct a new Font object Sets the font used in hover labels. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.box.hoverlabel.Font` color col...
Construct a new Font object Sets the font used in hover labels.
def __init__( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs ): """ Construct a new Font object Sets the font used in hover labels. Parameters ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "family", "=", "None", ",", "familysrc", "=", "None", ",", "size", "=", "None", ",", "sizesrc", "=", "None", ",", "*", "*", "kw...
[ 215, 4 ]
[ 329, 34 ]
python
en
['en', 'error', 'th']
False
main
(config)
Converts a Fbdialog file of episodes into a json file of Parley examples.
Converts a Fbdialog file of episodes into a json file of Parley examples.
def main(config): """ Converts a Fbdialog file of episodes into a json file of Parley examples. """ examples = [] for episode in extract_fb_episodes(config['infile']): examples.extend(episode_to_examples(episode, config['history_size'])) with PathManager.open(config['outfile'], 'w') as ...
[ "def", "main", "(", "config", ")", ":", "examples", "=", "[", "]", "for", "episode", "in", "extract_fb_episodes", "(", "config", "[", "'infile'", "]", ")", ":", "examples", ".", "extend", "(", "episode_to_examples", "(", "episode", ",", "config", "[", "'...
[ 32, 0 ]
[ 42, 58 ]
python
en
['en', 'error', 'th']
False
IndyVerifier.__init__
(self, wallet)
Initialize an IndyHolder instance. Args: wallet: IndyWallet instance
Initialize an IndyHolder instance.
def __init__(self, wallet): """ Initialize an IndyHolder instance. Args: wallet: IndyWallet instance """ self.logger = logging.getLogger(__name__) self.wallet = wallet
[ "def", "__init__", "(", "self", ",", "wallet", ")", ":", "self", ".", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "self", ".", "wallet", "=", "wallet" ]
[ 13, 4 ]
[ 22, 28 ]
python
en
['en', 'error', 'th']
False
IndyVerifier.verify_presentation
( self, presentation_request, presentation, schemas, credential_definitions )
Verify a presentation. Args: presentation_request: Presentation request data presentation: Presentation data schemas: Schema data credential_definitions: credential definition data
Verify a presentation.
async def verify_presentation( self, presentation_request, presentation, schemas, credential_definitions ) -> bool: """ Verify a presentation. Args: presentation_request: Presentation request data presentation: Presentation data schemas: Schema da...
[ "async", "def", "verify_presentation", "(", "self", ",", "presentation_request", ",", "presentation", ",", "schemas", ",", "credential_definitions", ")", "->", "bool", ":", "verified", "=", "await", "indy", ".", "anoncreds", ".", "verifier_verify_proof", "(", "jso...
[ 24, 4 ]
[ 46, 23 ]
python
en
['en', 'error', 'th']
False
inject_static_url
()
Inject the variables 'static_url' and 'STATIC_URL' into the templates to avoid hard-coded paths to static files. Grab it from the environment variable STATIC_URL, or use the default. Never has a trailing slash.
Inject the variables 'static_url' and 'STATIC_URL' into the templates to avoid hard-coded paths to static files. Grab it from the environment variable STATIC_URL, or use the default. Never has a trailing slash.
def inject_static_url(): """ Inject the variables 'static_url' and 'STATIC_URL' into the templates to avoid hard-coded paths to static files. Grab it from the environment variable STATIC_URL, or use the default. Never has a trailing slash. """ static_url = settings.STATIC_URL or app.static_url_p...
[ "def", "inject_static_url", "(", ")", ":", "static_url", "=", "settings", ".", "STATIC_URL", "or", "app", ".", "static_url_path", "if", "static_url", ".", "endswith", "(", "'/'", ")", ":", "static_url", "=", "static_url", ".", "rstrip", "(", "'/'", ")", "r...
[ 48, 0 ]
[ 57, 61 ]
python
en
['en', 'error', 'th']
False
catch_compiled
(path)
Serve /compiled/... urls from the compiled directory
Serve /compiled/... urls from the compiled directory
def catch_compiled(path): """ Serve /compiled/... urls from the compiled directory """ return send_from_directory(compiled_dir, path)
[ "def", "catch_compiled", "(", "path", ")", ":", "return", "send_from_directory", "(", "compiled_dir", ",", "path", ")" ]
[ 66, 0 ]
[ 70, 50 ]
python
en
['en', 'error', 'th']
False
catch_build
(path)
Serve /build/... urls from the build directory
Serve /build/... urls from the build directory
def catch_build(path): """ Serve /build/... urls from the build directory """ return send_from_directory(build_dir, path)
[ "def", "catch_build", "(", "path", ")", ":", "return", "send_from_directory", "(", "build_dir", ",", "path", ")" ]
[ 73, 0 ]
[ 77, 47 ]
python
en
['en', 'error', 'th']
False
catch_source
(path)
Serve /source/... urls from the source directory
Serve /source/... urls from the source directory
def catch_source(path): """ Serve /source/... urls from the source directory """ return send_from_directory(source_dir, path)
[ "def", "catch_source", "(", "path", ")", ":", "return", "send_from_directory", "(", "source_dir", ",", "path", ")" ]
[ 80, 0 ]
[ 84, 48 ]
python
en
['en', 'error', 'th']
False
catch_all
(path='index.html', context=None)
Catch-all function which serves every URL.
Catch-all function which serves every URL.
def catch_all(path='index.html', context=None): """Catch-all function which serves every URL.""" context = context or {} if not os.path.splitext(path)[1]: path = os.path.join(path, 'index.html') return render_template(path, **context)
[ "def", "catch_all", "(", "path", "=", "'index.html'", ",", "context", "=", "None", ")", ":", "context", "=", "context", "or", "{", "}", "if", "not", "os", ".", "path", ".", "splitext", "(", "path", ")", "[", "1", "]", ":", "path", "=", "os", ".",...
[ 88, 0 ]
[ 93, 43 ]
python
en
['en', 'en', 'en']
True
Marker.color
(self)
Sets the marker color of selected points. 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%...
Sets the marker color of selected points. 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%...
def color(self): """ Sets the marker color of selected points. 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/h...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Marker.opacity
(self)
Sets the marker opacity of selected points. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Sets the marker opacity of selected points. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1]
def opacity(self): """ Sets the marker opacity of selected points. 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\"", "]" ]
[ 74, 4 ]
[ 85, 30 ]
python
en
['en', 'error', 'th']
False
Marker.size
(self)
Sets the marker size of selected points. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the marker size of selected points. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf]
def size(self): """ Sets the marker size of selected points. The 'size' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 94, 4 ]
[ 105, 27 ]
python
en
['en', 'error', 'th']
False
Marker.__init__
(self, arg=None, color=None, opacity=None, size=None, **kwargs)
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.splom.selected.Marker` color Sets the marker color of selected points....
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.splom.selected.Marker` color Sets the marker color of selected points....
def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.sp...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "opacity", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Marker", ",", "self", ")", ".", "__init__", "(", "\"marke...
[ 124, 4 ]
[ 193, 34 ]
python
en
['en', 'error', 'th']
False
TestHred.test_greedy
(self)
Test a simple multiturn task.
Test a simple multiturn task.
def test_greedy(self): """ Test a simple multiturn task. """ valid, test = testing_utils.eval_model( dict( task="integration_tests:multiturn_candidate", model="hred", model_file="zoo:unittest/hred_model/model", d...
[ "def", "test_greedy", "(", "self", ")", ":", "valid", ",", "test", "=", "testing_utils", ".", "eval_model", "(", "dict", "(", "task", "=", "\"integration_tests:multiturn_candidate\"", ",", "model", "=", "\"hred\"", ",", "model_file", "=", "\"zoo:unittest/hred_mode...
[ 39, 4 ]
[ 55, 41 ]
python
en
['en', 'error', 'th']
False
TestHred.test_beamsearch
(self)
Ensures beam search can generate the correct response.
Ensures beam search can generate the correct response.
def test_beamsearch(self): """ Ensures beam search can generate the correct response. """ valid, test = testing_utils.eval_model( dict( task="integration_tests:multiturn_candidate", model="hred", model_file="zoo:unittest/hred_mo...
[ "def", "test_beamsearch", "(", "self", ")", ":", "valid", ",", "test", "=", "testing_utils", ".", "eval_model", "(", "dict", "(", "task", "=", "\"integration_tests:multiturn_candidate\"", ",", "model", "=", "\"hred\"", ",", "model_file", "=", "\"zoo:unittest/hred_...
[ 58, 4 ]
[ 77, 50 ]
python
en
['en', 'error', 'th']
False
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 tick font. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.polar.r adialaxis.Tickfont` color f...
Construct a new Tickfont object Sets the tick font.
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Tickfont object Sets the tick font. Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`pl...
[ "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
_path
(opt, task_size='small')
Return path to json file of dataset - it can be train/valid file of small/large dataset. Validation data is used for test as well, because labels are inferred from the image and task itself.
Return path to json file of dataset - it can be train/valid file of small/large dataset. Validation data is used for test as well, because labels are inferred from the image and task itself.
def _path(opt, task_size='small'): """Return path to json file of dataset - it can be train/valid file of small/large dataset. Validation data is used for test as well, because labels are inferred from the image and task itself. """ dt = opt['datatype'].split(':')[0] # ensure data is built b...
[ "def", "_path", "(", "opt", ",", "task_size", "=", "'small'", ")", ":", "dt", "=", "opt", "[", "'datatype'", "]", ".", "split", "(", "':'", ")", "[", "0", "]", "# ensure data is built", "build", "(", "opt", ")", "if", "dt", "==", "'train'", ":", "f...
[ 15, 0 ]
[ 31, 20 ]
python
en
['en', 'en', 'en']
True
AbstractTaskNTalk._setup_data
(self, data_path)
Read the json file and store images and task definitions.
Read the json file and store images and task definitions.
def _setup_data(self, data_path): """ Read the json file and store images and task definitions. """ print('loading: ' + data_path) with PathManager.open(data_path) as data_file: json_data = json.load(data_file) self.data = json_data['data'] sel...
[ "def", "_setup_data", "(", "self", ",", "data_path", ")", ":", "print", "(", "'loading: '", "+", "data_path", ")", "with", "PathManager", ".", "open", "(", "data_path", ")", "as", "data_file", ":", "json_data", "=", "json", ".", "load", "(", "data_file", ...
[ 52, 4 ]
[ 63, 33 ]
python
en
['en', 'error', 'th']
False
AbstractTaskNTalk.share
(self)
Share images and task definitions with other teachers.
Share images and task definitions with other teachers.
def share(self): """ Share images and task definitions with other teachers. """ shared = super().share() shared['data'] = self.data shared['task_defn'] = self.task_defn shared['task_index'] = self.task_index return shared
[ "def", "share", "(", "self", ")", ":", "shared", "=", "super", "(", ")", ".", "share", "(", ")", "shared", "[", "'data'", "]", "=", "self", ".", "data", "shared", "[", "'task_defn'", "]", "=", "self", ".", "task_defn", "shared", "[", "'task_index'", ...
[ 65, 4 ]
[ 73, 21 ]
python
en
['en', 'error', 'th']
False
AbstractTaskNTalk.observe
(self, observation)
Process observation for metrics.
Process observation for metrics.
def observe(self, observation): """ Process observation for metrics. """ self.observation = observation # TODO(kd): update metrics return observation
[ "def", "observe", "(", "self", ",", "observation", ")", ":", "self", ".", "observation", "=", "observation", "# TODO(kd): update metrics", "return", "observation" ]
[ 78, 4 ]
[ 84, 26 ]
python
en
['en', 'error', 'th']
False
AbstractTaskNTalk.act
(self)
Select random image and associate random task with it.
Select random image and associate random task with it.
def act(self): """ Select random image and associate random task with it. """ image = random.choice(self.data) task = random.choice(self.task_defn) labels = [image[self.task_index[attr]] for attr in task] action = { 'image': ' '.join(image), ...
[ "def", "act", "(", "self", ")", ":", "image", "=", "random", ".", "choice", "(", "self", ".", "data", ")", "task", "=", "random", ".", "choice", "(", "self", ".", "task_defn", ")", "labels", "=", "[", "image", "[", "self", ".", "task_index", "[", ...
[ 86, 4 ]
[ 100, 21 ]
python
en
['en', 'error', 'th']
False
LedgerProvider.provide
(self, settings: BaseSettings, injector: BaseInjector)
Create and open the ledger instance.
Create and open the ledger instance.
async def provide(self, settings: BaseSettings, injector: BaseInjector): """Create and open the ledger instance.""" pool_name = settings.get("ledger.pool_name", "default") keepalive = int(settings.get("ledger.keepalive", 5)) wallet = await injector.inject(BaseWallet) ledger = No...
[ "async", "def", "provide", "(", "self", ",", "settings", ":", "BaseSettings", ",", "injector", ":", "BaseInjector", ")", ":", "pool_name", "=", "settings", ".", "get", "(", "\"ledger.pool_name\"", ",", "\"default\"", ")", "keepalive", "=", "int", "(", "setti...
[ 17, 4 ]
[ 37, 21 ]
python
en
['en', 'en', 'en']
True
Title.font
(self)
Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.scatter.marker.colorbar.title.Font` ...
Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.scatter.marker.colorbar.title.Font` ...
def font(self): """ Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.scatter.mark...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 15, 4 ]
[ 53, 27 ]
python
en
['en', 'error', 'th']
False
Title.side
(self)
Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values...
Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the following enumeration values...
def side(self): """ Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration that may be specified as: - One of the f...
[ "def", "side", "(", "self", ")", ":", "return", "self", "[", "\"side\"", "]" ]
[ 62, 4 ]
[ 76, 27 ]
python
en
['en', 'error', 'th']
False
Title.text
(self)
Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - A string - A ...
Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: - A string - A ...
def text(self): """ Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. The 'text' property is a string and must be specified as: ...
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 85, 4 ]
[ 99, 27 ]
python
en
['en', 'error', 'th']
False
Title.__init__
(self, arg=None, font=None, side=None, text=None, **kwargs)
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter.marker .colorbar.Title` font Sets this color bar's title font. ...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter.marker .colorbar.Title` font Sets this color bar's title font. ...
def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): """ Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter.marker ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "side", "=", "None", ",", "text", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Title", ",", "self", ")", ".", "__init__", "(", "\"title\"", ...
[ 126, 4 ]
[ 203, 34 ]
python
en
['en', 'error', 'th']
False
Cider.compute_score
(self, gts, res)
Main function to compute CIDEr score :param hypo_for_image (dict) : dictionary with key <image> and value <tokenized hypothesis / candidate sentence> ref_for_image (dict) : dictionary with key <image> and value <tokenized reference sentence> :return: cider (float) : computed C...
Main function to compute CIDEr score :param hypo_for_image (dict) : dictionary with key <image> and value <tokenized hypothesis / candidate sentence> ref_for_image (dict) : dictionary with key <image> and value <tokenized reference sentence> :return: cider (float) : computed C...
def compute_score(self, gts, res): """ Main function to compute CIDEr score :param hypo_for_image (dict) : dictionary with key <image> and value <tokenized hypothesis / candidate sentence> ref_for_image (dict) : dictionary with key <image> and value <tokenized reference sentenc...
[ "def", "compute_score", "(", "self", ",", "gts", ",", "res", ")", ":", "assert", "list", "(", "gts", ".", "keys", "(", ")", ")", "==", "list", "(", "res", ".", "keys", "(", ")", ")", "imgIds", "=", "list", "(", "gts", ".", "keys", "(", ")", "...
[ 25, 4 ]
[ 52, 28 ]
python
en
['en', 'error', 'th']
False
_intervals_as_labels
(array_of_intervals, round_legend_values, exponent_format)
Transform an number interval to a clean string for legend Example: [-inf, 30] to '< 30'
Transform an number interval to a clean string for legend
def _intervals_as_labels(array_of_intervals, round_legend_values, exponent_format): """ Transform an number interval to a clean string for legend Example: [-inf, 30] to '< 30' """ infs = [float("-inf"), float("inf")] string_intervals = [] for interval in array_of_intervals: # round ...
[ "def", "_intervals_as_labels", "(", "array_of_intervals", ",", "round_legend_values", ",", "exponent_format", ")", ":", "infs", "=", "[", "float", "(", "\"-inf\"", ")", ",", "float", "(", "\"inf\"", ")", "]", "string_intervals", "=", "[", "]", "for", "interval...
[ 272, 0 ]
[ 310, 27 ]
python
en
['en', 'error', 'th']
False
create_choropleth
( fips, values, scope=["usa"], binning_endpoints=None, colorscale=None, order=None, simplify_county=0.02, simplify_state=0.02, asp=None, show_hover=True, show_state_data=True, state_outline=None, county_outline=None, centroid_marker=None, round_legend_values=F...
Returns figure for county choropleth. Uses data from package_data. :param (list) fips: list of FIPS values which correspond to the con catination of state and county ids. An example is '01001'. :param (list) values: list of numbers/strings which correspond to the fips list. These are the v...
Returns figure for county choropleth. Uses data from package_data.
def create_choropleth( fips, values, scope=["usa"], binning_endpoints=None, colorscale=None, order=None, simplify_county=0.02, simplify_state=0.02, asp=None, show_hover=True, show_state_data=True, state_outline=None, county_outline=None, centroid_marker=None, ...
[ "def", "create_choropleth", "(", "fips", ",", "values", ",", "scope", "=", "[", "\"usa\"", "]", ",", "binning_endpoints", "=", "None", ",", "colorscale", "=", "None", ",", "order", "=", "None", ",", "simplify_county", "=", "0.02", ",", "simplify_state", "=...
[ 395, 0 ]
[ 1008, 25 ]
python
en
['en', 'error', 'th']
False
Textfont.color
(self)
Sets the text font color of unselected points, applied only when a selection exists. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)...
Sets the text font color of unselected points, applied only when a selection exists. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)...
def color(self): """ Sets the text font color of unselected points, applied only when a selection exists. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla s...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 66, 28 ]
python
en
['en', 'error', 'th']
False
Textfont.__init__
(self, arg=None, color=None, **kwargs)
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.bar.unselected.Textfont` color Sets the text font color of unselecte...
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.bar.unselected.Textfont` color Sets the text font color of unselecte...
def __init__(self, arg=None, color=None, **kwargs): """ Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.bar.unselected.Textfont` ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Textfont", ",", "self", ")", ".", "__init__", "(", "\"textfont\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", ...
[ 82, 4 ]
[ 140, 34 ]
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.area.Stream` maxpoints Sets the maximum number of points to keep on the plots ...
Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.area.Stream` maxpoints Sets the maximum number of points to keep on the plots ...
def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): """ Construct a new Stream object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.area.Stream` ma...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "maxpoints", "=", "None", ",", "token", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Stream", ",", "self", ")", ".", "__init__", "(", "\"stream\"", ")", "if", "\"_paren...
[ 72, 4 ]
[ 139, 34 ]
python
en
['en', 'error', 'th']
False
ZAxis.autorange
(self)
Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to False. The 'autorange' property is an enumeration that may be specified as: - One of the following...
Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to False. The 'autorange' property is an enumeration that may be specified as: - One of the following...
def autorange(self): """ Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to False. The 'autorange' property is an enumeration that may be specified as: ...
[ "def", "autorange", "(", "self", ")", ":", "return", "self", "[", "\"autorange\"", "]" ]
[ 71, 4 ]
[ 85, 32 ]
python
en
['en', 'error', 'th']
False
ZAxis.backgroundcolor
(self)
Sets the background color of this axis' wall. The 'backgroundcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e....
Sets the background color of this axis' wall. The 'backgroundcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e....
def backgroundcolor(self): """ Sets the background color of this axis' wall. The 'backgroundcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%...
[ "def", "backgroundcolor", "(", "self", ")", ":", "return", "self", "[", "\"backgroundcolor\"", "]" ]
[ 94, 4 ]
[ 144, 38 ]
python
en
['en', 'error', 'th']
False
ZAxis.calendar
(self)
Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` The 'calendar' property is an enumeration that may be specifi...
Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` The 'calendar' property is an enumeration that may be specifi...
def calendar(self): """ Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` The 'calendar' property is an ...
[ "def", "calendar", "(", "self", ")", ":", "return", "self", "[", "\"calendar\"", "]" ]
[ 153, 4 ]
[ 171, 31 ]
python
en
['en', 'error', 'th']
False
ZAxis.categoryarray
(self)
Sets the order in which categories on this axis appear. Only has an effect if `categoryorder` is set to "array". Used with `categoryorder`. The 'categoryarray' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
Sets the order in which categories on this axis appear. Only has an effect if `categoryorder` is set to "array". Used with `categoryorder`. The 'categoryarray' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def categoryarray(self): """ Sets the order in which categories on this axis appear. Only has an effect if `categoryorder` is set to "array". Used with `categoryorder`. The 'categoryarray' property is an array that may be specified as a tuple, list, numpy array, or p...
[ "def", "categoryarray", "(", "self", ")", ":", "return", "self", "[", "\"categoryarray\"", "]" ]
[ 180, 4 ]
[ 193, 36 ]
python
en
['en', 'error', 'th']
False
ZAxis.categoryarraysrc
(self)
Sets the source reference on Chart Studio Cloud for categoryarray . The 'categoryarraysrc' 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 categoryarray . The 'categoryarraysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def categoryarraysrc(self): """ Sets the source reference on Chart Studio Cloud for categoryarray . The 'categoryarraysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return se...
[ "def", "categoryarraysrc", "(", "self", ")", ":", "return", "self", "[", "\"categoryarraysrc\"", "]" ]
[ 202, 4 ]
[ 214, 39 ]
python
en
['en', 'error', 'th']
False
ZAxis.categoryorder
(self)
Specifies the ordering logic for the case of categorical variables. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanum...
Specifies the ordering logic for the case of categorical variables. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanum...
def categoryorder(self): """ Specifies the ordering logic for the case of categorical variables. By default, plotly uses "trace", which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order ...
[ "def", "categoryorder", "(", "self", ")", ":", "return", "self", "[", "\"categoryorder\"", "]" ]
[ 223, 4 ]
[ 254, 36 ]
python
en
['en', 'error', 'th']
False
ZAxis.color
(self)
Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may be specified as: - ...
Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may be specified as: - ...
def color(self): """ Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this. The 'color' property is a color and may b...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 263, 4 ]
[ 316, 28 ]
python
en
['en', 'error', 'th']
False
ZAxis.dtick
(self)
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
def dtick(self): """ Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example...
[ "def", "dtick", "(", "self", ")", ":", "return", "self", "[", "\"dtick\"", "]" ]
[ 325, 4 ]
[ 354, 28 ]
python
en
['en', 'error', 'th']
False
ZAxis.exponentformat
(self)
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
def exponentformat(self): """ Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. ...
[ "def", "exponentformat", "(", "self", ")", ":", "return", "self", "[", "\"exponentformat\"", "]" ]
[ 363, 4 ]
[ 379, 37 ]
python
en
['en', 'error', 'th']
False
ZAxis.gridcolor
(self)
Sets the color of the grid lines. The 'gridcolor' 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 color of the grid lines. The 'gridcolor' 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 gridcolor(self): """ Sets the color of the grid lines. The 'gridcolor' 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/h...
[ "def", "gridcolor", "(", "self", ")", ":", "return", "self", "[", "\"gridcolor\"", "]" ]
[ 388, 4 ]
[ 438, 32 ]
python
en
['en', 'error', 'th']
False
ZAxis.gridwidth
(self)
Sets the width (in px) of the grid lines. The 'gridwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the grid lines. The 'gridwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def gridwidth(self): """ Sets the width (in px) of the grid lines. The 'gridwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["gridwidth"]
[ "def", "gridwidth", "(", "self", ")", ":", "return", "self", "[", "\"gridwidth\"", "]" ]
[ 447, 4 ]
[ 458, 32 ]
python
en
['en', 'error', 'th']
False
ZAxis.hoverformat
(self)
Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def hoverformat(self): """ Sets the hover text formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://githu...
[ "def", "hoverformat", "(", "self", ")", ":", "return", "self", "[", "\"hoverformat\"", "]" ]
[ 467, 4 ]
[ 487, 34 ]
python
en
['en', 'error', 'th']
False
ZAxis.linecolor
(self)
Sets the axis line color. The 'linecolor' 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 axis line color. The 'linecolor' 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 linecolor(self): """ Sets the axis line color. The 'linecolor' 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 stri...
[ "def", "linecolor", "(", "self", ")", ":", "return", "self", "[", "\"linecolor\"", "]" ]
[ 496, 4 ]
[ 546, 32 ]
python
en
['en', 'error', 'th']
False
ZAxis.linewidth
(self)
Sets the width (in px) of the axis line. The 'linewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the axis line. The 'linewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def linewidth(self): """ Sets the width (in px) of the axis line. The 'linewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["linewidth"]
[ "def", "linewidth", "(", "self", ")", ":", "return", "self", "[", "\"linewidth\"", "]" ]
[ 555, 4 ]
[ 566, 32 ]
python
en
['en', 'error', 'th']
False
ZAxis.mirror
(self)
Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If True, the axis lines are mirrored. If "ticks", the axis lines and ticks are mirrored. If False, mirroring is disable. If "all", axis lines are mirrored on all shared-axes subplot...
Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If True, the axis lines are mirrored. If "ticks", the axis lines and ticks are mirrored. If False, mirroring is disable. If "all", axis lines are mirrored on all shared-axes subplot...
def mirror(self): """ Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If True, the axis lines are mirrored. If "ticks", the axis lines and ticks are mirrored. If False, mirroring is disable. If "all", axis lines are mirrored ...
[ "def", "mirror", "(", "self", ")", ":", "return", "self", "[", "\"mirror\"", "]" ]
[ 575, 4 ]
[ 592, 29 ]
python
en
['en', 'error', 'th']
False
ZAxis.nticks
(self)
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
def nticks(self): """ Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer an...
[ "def", "nticks", "(", "self", ")", ":", "return", "self", "[", "\"nticks\"", "]" ]
[ 601, 4 ]
[ 616, 29 ]
python
en
['en', 'error', 'th']
False
ZAxis.range
(self)
Sets the range of this axis. If the axis `type` is "log", then you must take the log of your desired range (e.g. to set the range from 1 to 100, set the range from 0 to 2). If the axis `type` is "date", it should be date strings, like date data, though Date objects and unix mill...
Sets the range of this axis. If the axis `type` is "log", then you must take the log of your desired range (e.g. to set the range from 1 to 100, set the range from 0 to 2). If the axis `type` is "date", it should be date strings, like date data, though Date objects and unix mill...
def range(self): """ Sets the range of this axis. If the axis `type` is "log", then you must take the log of your desired range (e.g. to set the range from 1 to 100, set the range from 0 to 2). If the axis `type` is "date", it should be date strings, like date data, thoug...
[ "def", "range", "(", "self", ")", ":", "return", "self", "[", "\"range\"", "]" ]
[ 625, 4 ]
[ 646, 28 ]
python
en
['en', 'error', 'th']
False
ZAxis.rangemode
(self)
If "normal", the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If "nonnegative", the range is non-negative, regardless of the input data. Applies only to linear axes. The 'rangemode...
If "normal", the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If "nonnegative", the range is non-negative, regardless of the input data. Applies only to linear axes. The 'rangemode...
def rangemode(self): """ If "normal", the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If "nonnegative", the range is non-negative, regardless of the input data. Applies only to linear a...
[ "def", "rangemode", "(", "self", ")", ":", "return", "self", "[", "\"rangemode\"", "]" ]
[ 655, 4 ]
[ 671, 32 ]
python
en
['en', 'error', 'th']
False
ZAxis.separatethousands
(self)
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False)
def separatethousands(self): """ If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["separatethousands"]
[ "def", "separatethousands", "(", "self", ")", ":", "return", "self", "[", "\"separatethousands\"", "]" ]
[ 680, 4 ]
[ 691, 40 ]
python
en
['en', 'error', 'th']
False
ZAxis.showaxeslabels
(self)
Sets whether or not this axis is labeled The 'showaxeslabels' property must be specified as a bool (either True, or False) Returns ------- bool
Sets whether or not this axis is labeled The 'showaxeslabels' property must be specified as a bool (either True, or False)
def showaxeslabels(self): """ Sets whether or not this axis is labeled The 'showaxeslabels' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showaxeslabels"]
[ "def", "showaxeslabels", "(", "self", ")", ":", "return", "self", "[", "\"showaxeslabels\"", "]" ]
[ 700, 4 ]
[ 711, 37 ]
python
en
['en', 'error', 'th']
False
ZAxis.showbackground
(self)
Sets whether or not this axis' wall has a background color. The 'showbackground' property must be specified as a bool (either True, or False) Returns ------- bool
Sets whether or not this axis' wall has a background color. The 'showbackground' property must be specified as a bool (either True, or False)
def showbackground(self): """ Sets whether or not this axis' wall has a background color. The 'showbackground' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showbackground"]
[ "def", "showbackground", "(", "self", ")", ":", "return", "self", "[", "\"showbackground\"", "]" ]
[ 720, 4 ]
[ 731, 37 ]
python
en
['en', 'error', 'th']
False
ZAxis.showexponent
(self)
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
def showexponent(self): """ If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is ...
[ "def", "showexponent", "(", "self", ")", ":", "return", "self", "[", "\"showexponent\"", "]" ]
[ 740, 4 ]
[ 755, 35 ]
python
en
['en', 'error', 'th']
False
ZAxis.showgrid
(self)
Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False)
def showgrid(self): """ Determines whether or not grid lines are drawn. If True, the grid lines are drawn at every tick mark. The 'showgrid' property must be specified as a bool (either True, or False) Returns ------- bool """ return ...
[ "def", "showgrid", "(", "self", ")", ":", "return", "self", "[", "\"showgrid\"", "]" ]
[ 764, 4 ]
[ 776, 31 ]
python
en
['en', 'error', 'th']
False
ZAxis.showline
(self)
Determines whether or not a line bounding this axis is drawn. The 'showline' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not a line bounding this axis is drawn. The 'showline' property must be specified as a bool (either True, or False)
def showline(self): """ Determines whether or not a line bounding this axis is drawn. The 'showline' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showline"]
[ "def", "showline", "(", "self", ")", ":", "return", "self", "[", "\"showline\"", "]" ]
[ 785, 4 ]
[ 796, 31 ]
python
en
['en', 'error', 'th']
False
ZAxis.showspikes
(self)
Sets whether or not spikes starting from data points to this axis' wall are shown on hover. The 'showspikes' property must be specified as a bool (either True, or False) Returns ------- bool
Sets whether or not spikes starting from data points to this axis' wall are shown on hover. The 'showspikes' property must be specified as a bool (either True, or False)
def showspikes(self): """ Sets whether or not spikes starting from data points to this axis' wall are shown on hover. The 'showspikes' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["...
[ "def", "showspikes", "(", "self", ")", ":", "return", "self", "[", "\"showspikes\"", "]" ]
[ 805, 4 ]
[ 817, 33 ]
python
en
['en', 'error', 'th']
False
ZAxis.showticklabels
(self)
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False)
def showticklabels(self): """ Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showticklabels"]
[ "def", "showticklabels", "(", "self", ")", ":", "return", "self", "[", "\"showticklabels\"", "]" ]
[ 826, 4 ]
[ 837, 37 ]
python
en
['en', 'error', 'th']
False