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
NAttributeHandler.clear
(self)
Remove all NAttributes from handler.
Remove all NAttributes from handler.
def clear(self): """ Remove all NAttributes from handler. """ self._store = {}
[ "def", "clear", "(", "self", ")", ":", "self", ".", "_store", "=", "{", "}" ]
[ 984, 4 ]
[ 989, 24 ]
python
en
['en', 'error', 'th']
False
NAttributeHandler.all
(self, return_tuples=False)
List the contents of the handler. Args: return_tuples (bool, optional): Defines if the Nattributes are returns as a list of keys or as a list of `(key, value)`. Returns: nattributes (list): A list of keys `[key, key, ...]` or a list of t...
List the contents of the handler.
def all(self, return_tuples=False): """ List the contents of the handler. Args: return_tuples (bool, optional): Defines if the Nattributes are returns as a list of keys or as a list of `(key, value)`. Returns: nattributes (list): A list of keys `...
[ "def", "all", "(", "self", ",", "return_tuples", "=", "False", ")", ":", "if", "return_tuples", ":", "return", "[", "(", "key", ",", "value", ")", "for", "(", "key", ",", "value", ")", "in", "self", ".", "_store", ".", "items", "(", ")", "if", "n...
[ 991, 4 ]
[ 1007, 70 ]
python
en
['en', 'error', 'th']
False
construction_elements_global_radiation
(states: ClimateStates, setpoints: Setpoints, weather: Weather)
Equation 8.36 Args: states: setpoints: weather: Returns:[W m^-2]
Equation 8.36 Args: states: setpoints: weather:
def construction_elements_global_radiation(states: ClimateStates, setpoints: Setpoints, weather: Weather): """ Equation 8.36 Args: states: setpoints: weather: Returns:[W m^-2] """ outdoor_global_rad = weather.outdoor_global_rad # TODO: need to re-verify the order of...
[ "def", "construction_elements_global_radiation", "(", "states", ":", "ClimateStates", ",", "setpoints", ":", "Setpoints", ",", "weather", ":", "Weather", ")", ":", "outdoor_global_rad", "=", "weather", ".", "outdoor_global_rad", "# TODO: need to re-verify the order of four ...
[ 36, 0 ]
[ 106, 89 ]
python
en
['en', 'error', 'th']
False
lamp_radiation
(states, setpoints)
Equation A23 [5] Args: states: setpoints: Returns: PAR and NIR from the lamps absorbed by the greenhouse air [W m^{-2}]
Equation A23 [5] Args: states: setpoints:
def lamp_radiation(states, setpoints): """ Equation A23 [5] Args: states: setpoints: Returns: PAR and NIR from the lamps absorbed by the greenhouse air [W m^{-2}] """ electrical_input_lamp = lamp_electrical_input(setpoints) radiation_flux_PAR_LampCanopy = canopy_PAR_absorbe...
[ "def", "lamp_radiation", "(", "states", ",", "setpoints", ")", ":", "electrical_input_lamp", "=", "lamp_electrical_input", "(", "setpoints", ")", "radiation_flux_PAR_LampCanopy", "=", "canopy_PAR_absorbed_from_lamp", "(", "states", ",", "setpoints", ")", "radiation_flux_N...
[ 109, 0 ]
[ 127, 132 ]
python
en
['en', 'error', 'th']
False
convective_and_conductive_heat_fluxes
(HEC, T1, T2)
Convective and conductive heat fluxes Equation 8.40 :param float HEC: the heat exchange coefficient between object 1 and 2 :param float T1: the temperature of object 1 :param float T2: the temperature of object 2 :return: The heat flow from object 1 to object 2 [W m^-2]
Convective and conductive heat fluxes Equation 8.40
def convective_and_conductive_heat_fluxes(HEC, T1, T2) -> float: """Convective and conductive heat fluxes Equation 8.40 :param float HEC: the heat exchange coefficient between object 1 and 2 :param float T1: the temperature of object 1 :param float T2: the temperature of object 2 :return: The h...
[ "def", "convective_and_conductive_heat_fluxes", "(", "HEC", ",", "T1", ",", "T2", ")", "->", "float", ":", "return", "HEC", "*", "(", "T1", "-", "T2", ")" ]
[ 140, 0 ]
[ 149, 26 ]
python
en
['en', 'en', 'en']
True
latent_heat_fluxes
(MV)
The latent heat flux Equation 8.42 :param float MV: the vapor flux from object 1 to object 2 :return: The latent heat flux from object 1 to object 2 [W m^-2]
The latent heat flux Equation 8.42 :param float MV: the vapor flux from object 1 to object 2 :return: The latent heat flux from object 1 to object 2 [W m^-2]
def latent_heat_fluxes(MV) -> float: """The latent heat flux Equation 8.42 :param float MV: the vapor flux from object 1 to object 2 :return: The latent heat flux from object 1 to object 2 [W m^-2] """ return EVAPORATION_LATENT_HEAT * MV
[ "def", "latent_heat_fluxes", "(", "MV", ")", "->", "float", ":", "return", "EVAPORATION_LATENT_HEAT", "*", "MV" ]
[ 152, 0 ]
[ 158, 39 ]
python
en
['en', 'en', 'en']
True
sensible_heat_flux_between_greenhouse_air_and_blackout_screen
(states: ClimateStates, setpoints: Setpoints)
Equations A28, A32 [2] Args: setpoints: states: Returns: Between air in main compartment and blackout screen [W m^{-2}]
Equations A28, A32 [2] Args: setpoints: states: Returns: Between air in main compartment and blackout screen [W m^{-2}]
def sensible_heat_flux_between_greenhouse_air_and_blackout_screen(states: ClimateStates, setpoints: Setpoints): """ Equations A28, A32 [2] Args: setpoints: states: Returns: Between air in main compartment and blackout screen [W m^{-2}] """ HEC_AirBlScr = 1.7 * setpoints.U_BlScr *...
[ "def", "sensible_heat_flux_between_greenhouse_air_and_blackout_screen", "(", "states", ":", "ClimateStates", ",", "setpoints", ":", "Setpoints", ")", ":", "HEC_AirBlScr", "=", "1.7", "*", "setpoints", ".", "U_BlScr", "*", "abs", "(", "states", ".", "t_Air", "-", "...
[ 291, 0 ]
[ 300, 92 ]
python
en
['en', 'error', 'th']
False
sensible_heat_flux_between_lamps_and_greenhouse_air
(states: ClimateStates)
Equation A29 [5] Args: states: Returns: Between lamps and air in main compartment [W m^{-2}]
Equation A29 [5] Args: states:
def sensible_heat_flux_between_lamps_and_greenhouse_air(states: ClimateStates): """ Equation A29 [5] Args: states: Returns: Between lamps and air in main compartment [W m^{-2}] """ return convective_and_conductive_heat_fluxes(Coefficients.Lamp.c_HEC_LampAir, states.t_Lamp, states.t_Air)
[ "def", "sensible_heat_flux_between_lamps_and_greenhouse_air", "(", "states", ":", "ClimateStates", ")", ":", "return", "convective_and_conductive_heat_fluxes", "(", "Coefficients", ".", "Lamp", ".", "c_HEC_LampAir", ",", "states", ".", "t_Lamp", ",", "states", ".", "t_A...
[ 303, 0 ]
[ 311, 110 ]
python
en
['en', 'error', 'th']
False
sensible_heat_flux_between_inter_lamp_and_greenhouse_air
(states: ClimateStates)
Equation A30 [5] Args: states: Returns: Between interlights and air in main compartment [W m^{-2}]
Equation A30 [5] Args: states:
def sensible_heat_flux_between_inter_lamp_and_greenhouse_air(states: ClimateStates): """ Equation A30 [5] Args: states: Returns: Between interlights and air in main compartment [W m^{-2}] """ return convective_and_conductive_heat_fluxes(Coefficients.Interlight.c_HEC_InterLampAir, states...
[ "def", "sensible_heat_flux_between_inter_lamp_and_greenhouse_air", "(", "states", ":", "ClimateStates", ")", ":", "return", "convective_and_conductive_heat_fluxes", "(", "Coefficients", ".", "Interlight", ".", "c_HEC_InterLampAir", ",", "states", ".", "t_IntLamp", ",", "sta...
[ 314, 0 ]
[ 322, 124 ]
python
en
['en', 'error', 'th']
False
sensible_heat_flux_between_grow_pipe_and_greenhouse_air
(states: ClimateStates)
Equations A31, A33 [5] Args: states: Returns: Between grow pipes and air in main compartment [W m^{-2}]
Equations A31, A33 [5] Args: states:
def sensible_heat_flux_between_grow_pipe_and_greenhouse_air(states: ClimateStates): """ Equations A31, A33 [5] Args: states: Returns: Between grow pipes and air in main compartment [W m^{-2}] """ HEC_GroPipeAir = 1.99 * math.pi * Coefficients.GrowPipe.phi_external_pipe * Coefficients.Gr...
[ "def", "sensible_heat_flux_between_grow_pipe_and_greenhouse_air", "(", "states", ":", "ClimateStates", ")", ":", "HEC_GroPipeAir", "=", "1.99", "*", "math", ".", "pi", "*", "Coefficients", ".", "GrowPipe", ".", "phi_external_pipe", "*", "Coefficients", ".", "GrowPipe"...
[ 325, 0 ]
[ 334, 97 ]
python
en
['en', 'error', 'th']
False
latent_heat_flux_between_greenhouse_air_and_blackout_screen
(states: ClimateStates, setpoints: Setpoints)
% Condensation from main compartment on blackout screen [kg m^{-2} s^{-1}] % Equation A39 [2]
% Condensation from main compartment on blackout screen [kg m^{-2} s^{-1}] % Equation A39 [2]
def latent_heat_flux_between_greenhouse_air_and_blackout_screen(states: ClimateStates, setpoints: Setpoints): blScr_vapor_pressure = saturation_vapor_pressure(states.t_BlScr) HEC_AirBlScr = 1.7 * setpoints.U_BlScr * abs(states.t_Air - states.t_BlScr) ** 0.33 """ % Condensation from main compartment on b...
[ "def", "latent_heat_flux_between_greenhouse_air_and_blackout_screen", "(", "states", ":", "ClimateStates", ",", "setpoints", ":", "Setpoints", ")", ":", "blScr_vapor_pressure", "=", "saturation_vapor_pressure", "(", "states", ".", "t_BlScr", ")", "HEC_AirBlScr", "=", "1.7...
[ 342, 0 ]
[ 351, 55 ]
python
en
['en', 'error', 'th']
False
MdGenderTeacher._get_convos
(self, opt)
Get the test/train/valid split.
Get the test/train/valid split.
def _get_convos(self, opt): """ Get the test/train/valid split. """ build(opt) with open(os.path.join(opt['datapath'], NEW_DATAFILE), 'r') as f: ex_jsons = f.read().splitlines() convos = [json.loads(ex) for ex in ex_jsons] return convos
[ "def", "_get_convos", "(", "self", ",", "opt", ")", ":", "build", "(", "opt", ")", "with", "open", "(", "os", ".", "path", ".", "join", "(", "opt", "[", "'datapath'", "]", ",", "NEW_DATAFILE", ")", ",", "'r'", ")", "as", "f", ":", "ex_jsons", "="...
[ 65, 4 ]
[ 75, 21 ]
python
en
['en', 'error', 'th']
False
Title.font
(self)
Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.contourcarpet.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.contourcarpet.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.contourcarpe...
[ "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.contourcarpet.colorbar.Title` font Sets this color bar's title font. No...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.contourcarpet.colorbar.Title` font Sets this color bar's title font. No...
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.contour...
[ "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
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.heatmapgl.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.heatmapgl.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.heatmapgl.co...
[ "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.heatmapgl.colorbar.Title` font Sets this color bar's title font. Note t...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.heatmapgl.colorbar.Title` font Sets this color bar's title font. Note t...
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.heatmap...
[ "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
Font.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 63, 28 ]
python
en
['en', 'error', 'th']
False
Font.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 72, 4 ]
[ 94, 29 ]
python
en
['en', 'error', 'th']
False
Font.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf]
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] Returns ------- int|float """ return self["size"]
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 103, 4 ]
[ 112, 27 ]
python
en
['en', 'error', 'th']
False
Font.__init__
(self, arg=None, color=None, family=None, size=None, **kwargs)
Construct a new Font object Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. Parameters ---------- arg dict of properties compatible with this constructor or an inst...
Construct a new Font object Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute.
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Font object Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. Parameters ---------- arg...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Font", ",", "self", ")", ".", "__init__", "(", "\"font\"",...
[ 143, 4 ]
[ 227, 34 ]
python
en
['en', 'error', 'th']
False
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 Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.table.header.Font` color colorsrc Sets the source reference on ...
Construct a new Font object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.table.header.Font` color
def __init__( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs ): """ Construct a new Font object Parameters ---------- arg di...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "family", "=", "None", ",", "familysrc", "=", "None", ",", "size", "=", "None", ",", "sizesrc", "=", "None", ",", "*", "*", "kw...
[ 215, 4 ]
[ 327, 34 ]
python
en
['en', 'error', 'th']
False
HRModule.forward
(self, x)
Forward function.
Forward function.
def forward(self, x): """Forward function.""" if self.num_branches == 1: return [self.branches[0](x[0])] for i in range(self.num_branches): x[i] = self.branches[i](x[i]) x_fuse = [] for i in range(len(self.fuse_layers)): y = 0 for...
[ "def", "forward", "(", "self", ",", "x", ")", ":", "if", "self", ".", "num_branches", "==", "1", ":", "return", "[", "self", ".", "branches", "[", "0", "]", "(", "x", "[", "0", "]", ")", "]", "for", "i", "in", "range", "(", "self", ".", "num_...
[ 176, 4 ]
[ 193, 21 ]
python
en
['en', 'cy', 'en']
False
ConnectionInvitationHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Handle connection invitation. Args: context: Request context responder: Responder callback
Handle connection invitation.
async def handle(self, context: RequestContext, responder: BaseResponder): """ Handle connection invitation. Args: context: Request context responder: Responder callback """ self._logger.debug(f"ConnectionInvitationHandler called with context {context}")...
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "f\"ConnectionInvitationHandler called with context {context}\"", ")", "assert", "isinstance", ...
[ 11, 4 ]
[ 28, 42 ]
python
en
['en', 'error', 'th']
False
Title.font
(self)
Sets this legend's title font. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.legend.title.Font` - A dict of string/value properties that will be passed to the Font constructor ...
Sets this legend's title font. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.legend.title.Font` - A dict of string/value properties that will be passed to the Font constructor ...
def font(self): """ Sets this legend's title font. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.layout.legend.title.Font` - A dict of string/value properties that will be passed to the...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 15, 4 ]
[ 52, 27 ]
python
en
['en', 'error', 'th']
False
Title.side
(self)
Determines the location of legend's title with respect to the legend items. Defaulted to "top" with `orientation` is "h". Defaulted to "left" with `orientation` is "v". The *top left* options could be used to expand legend area in both x and y sides. The 'side' prop...
Determines the location of legend's title with respect to the legend items. Defaulted to "top" with `orientation` is "h". Defaulted to "left" with `orientation` is "v". The *top left* options could be used to expand legend area in both x and y sides. The 'side' prop...
def side(self): """ Determines the location of legend's title with respect to the legend items. Defaulted to "top" with `orientation` is "h". Defaulted to "left" with `orientation` is "v". The *top left* options could be used to expand legend area in both x and y sides. ...
[ "def", "side", "(", "self", ")", ":", "return", "self", "[", "\"side\"", "]" ]
[ 61, 4 ]
[ 77, 27 ]
python
en
['en', 'error', 'th']
False
Title.text
(self)
Sets the title of the legend. The 'text' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets the title of the legend. The 'text' property is a string and must be specified as: - A string - A number that will be converted to a string
def text(self): """ Sets the title of the legend. The 'text' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["text"]
[ "def", "text", "(", "self", ")", ":", "return", "self", "[", "\"text\"", "]" ]
[ 86, 4 ]
[ 98, 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.layout.legend.Title` font Sets this legend's title font. side ...
Construct a new Title object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.legend.Title` font Sets this legend's title font. side ...
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.layout....
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "font", "=", "None", ",", "side", "=", "None", ",", "text", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Title", ",", "self", ")", ".", "__init__", "(", "\"title\"", ...
[ 121, 4 ]
[ 194, 34 ]
python
en
['en', 'error', 'th']
False
canopy_transpiration
(states: ClimateStates, setpoints: Setpoints, weather: Weather)
The canopy transpiration Equation 8.47 :return: The canopy transpiration [kg m^-2 s^-1]
The canopy transpiration Equation 8.47 :return: The canopy transpiration [kg m^-2 s^-1]
def canopy_transpiration(states: ClimateStates, setpoints: Setpoints, weather: Weather) -> float: """The canopy transpiration Equation 8.47 :return: The canopy transpiration [kg m^-2 s^-1] """ VEC_CanopyAir = canopy_transpiration_vapor_transfer_coefficient(states, setpoints, weather) canopy_vp =...
[ "def", "canopy_transpiration", "(", "states", ":", "ClimateStates", ",", "setpoints", ":", "Setpoints", ",", "weather", ":", "Weather", ")", "->", "float", ":", "VEC_CanopyAir", "=", "canopy_transpiration_vapor_transfer_coefficient", "(", "states", ",", "setpoints", ...
[ 6, 0 ]
[ 13, 66 ]
python
en
['en', 'en', 'en']
True
canopy_transpiration_vapor_transfer_coefficient
(states: ClimateStates, setpoints: Setpoints, weather: Weather)
The vapor transfer coefficient of the canopy transpiration Equation 8.48 :return: The vapor transfer coefficient of the canopy transpiration [kg m^-2 Pa^-1 s^-1]
The vapor transfer coefficient of the canopy transpiration Equation 8.48 :return: The vapor transfer coefficient of the canopy transpiration [kg m^-2 Pa^-1 s^-1]
def canopy_transpiration_vapor_transfer_coefficient(states: ClimateStates, setpoints: Setpoints, weather: Weather) -> float: """The vapor transfer coefficient of the canopy transpiration Equation 8.48 :return: The vapor transfer coefficient of the canopy transpiration [kg m^-2 Pa^-1 s^-1] """ densi...
[ "def", "canopy_transpiration_vapor_transfer_coefficient", "(", "states", ":", "ClimateStates", ",", "setpoints", ":", "Setpoints", ",", "weather", ":", "Weather", ")", "->", "float", ":", "density_air", "=", "air_density", "(", ")", "stomatal_resistance", "=", "cano...
[ 16, 0 ]
[ 24, 96 ]
python
en
['en', 'en', 'en']
True
canopy_stomatal_resistance
(states: ClimateStates, setpoints: Setpoints, weather: Weather)
The stomatal resistance of the canopy for vapor transport Equation 8.49 :return: The stomatal resistance of the canopy [s m^-1]
The stomatal resistance of the canopy for vapor transport Equation 8.49 :return: The stomatal resistance of the canopy [s m^-1]
def canopy_stomatal_resistance(states: ClimateStates, setpoints: Setpoints, weather: Weather) -> float: """ The stomatal resistance of the canopy for vapor transport Equation 8.49 :return: The stomatal resistance of the canopy [s m^-1] """ return MIN_CANOPY_TRANSPIRATION_RESISTANCE * \ ...
[ "def", "canopy_stomatal_resistance", "(", "states", ":", "ClimateStates", ",", "setpoints", ":", "Setpoints", ",", "weather", ":", "Weather", ")", "->", "float", ":", "return", "MIN_CANOPY_TRANSPIRATION_RESISTANCE", "*", "global_radiation_resistance_factor", "(", "setpo...
[ 27, 0 ]
[ 36, 71 ]
python
en
['en', 'error', 'th']
False
global_radiation_resistance_factor
(setpoints: Setpoints, weather: Weather)
The resistance factors for high radiation levels Equation 8.50 :return: The resistance factors [W m^-2]
The resistance factors for high radiation levels Equation 8.50 :return: The resistance factors [W m^-2]
def global_radiation_resistance_factor(setpoints: Setpoints, weather: Weather) -> float: """ The resistance factors for high radiation levels Equation 8.50 :return: The resistance factors [W m^-2] """ outdoor_global_rad = weather.outdoor_global_rad ratio_GlobAir = Coefficients.Construction.r...
[ "def", "global_radiation_resistance_factor", "(", "setpoints", ":", "Setpoints", ",", "weather", ":", "Weather", ")", "->", "float", ":", "outdoor_global_rad", "=", "weather", ".", "outdoor_global_rad", "ratio_GlobAir", "=", "Coefficients", ".", "Construction", ".", ...
[ 39, 0 ]
[ 81, 96 ]
python
en
['en', 'error', 'th']
False
greenhouse_co2_resistance_factor
(states: ClimateStates, setpoints: Setpoints, weather: Weather)
The resistance factors for high CO2 levels Equation 8.50 :return: The resistance factors [W m^-2]
The resistance factors for high CO2 levels Equation 8.50 :return: The resistance factors [W m^-2]
def greenhouse_co2_resistance_factor(states: ClimateStates, setpoints: Setpoints, weather: Weather) -> float: """ The resistance factors for high CO2 levels Equation 8.50 :return: The resistance factors [W m^-2] """ c_evap3 = smoothed_transpiration_parameters(nth=3, setpoints=setpoints, weather=...
[ "def", "greenhouse_co2_resistance_factor", "(", "states", ":", "ClimateStates", ",", "setpoints", ":", "Setpoints", ",", "weather", ":", "Weather", ")", "->", "float", ":", "c_evap3", "=", "smoothed_transpiration_parameters", "(", "nth", "=", "3", ",", "setpoints"...
[ 84, 0 ]
[ 91, 62 ]
python
en
['en', 'error', 'th']
False
vapor_pressure_resistance_factor
(states: ClimateStates, setpoints: Setpoints, weather: Weather)
The resistance factors for large vapor pressure differences Equation 8.50 :return: The resistance factors [W m^-2]
The resistance factors for large vapor pressure differences Equation 8.50 :return: The resistance factors [W m^-2]
def vapor_pressure_resistance_factor(states: ClimateStates, setpoints: Setpoints, weather: Weather) -> float: """ The resistance factors for large vapor pressure differences Equation 8.50 :return: The resistance factors [W m^-2] """ c_evap4 = smoothed_transpiration_parameters(nth=4, setpoints=se...
[ "def", "vapor_pressure_resistance_factor", "(", "states", ":", "ClimateStates", ",", "setpoints", ":", "Setpoints", ",", "weather", ":", "Weather", ")", "->", "float", ":", "c_evap4", "=", "smoothed_transpiration_parameters", "(", "nth", "=", "4", ",", "setpoints"...
[ 94, 0 ]
[ 102, 66 ]
python
en
['en', 'error', 'th']
False
load_argument_groups
(parser: ArgumentParser, *groups: Type[ArgumentGroup])
Log a set of argument groups into a parser. Returns: A callable to convert loaded arguments into a settings dictionary
Log a set of argument groups into a parser.
def load_argument_groups(parser: ArgumentParser, *groups: Type[ArgumentGroup]): """Log a set of argument groups into a parser. Returns: A callable to convert loaded arguments into a settings dictionary """ group_inst = [] for group in groups: g_parser = parser.add_argument_group(gr...
[ "def", "load_argument_groups", "(", "parser", ":", "ArgumentParser", ",", "*", "groups", ":", "Type", "[", "ArgumentGroup", "]", ")", ":", "group_inst", "=", "[", "]", "for", "group", "in", "groups", ":", "g_parser", "=", "parser", ".", "add_argument_group",...
[ 54, 0 ]
[ 74, 23 ]
python
en
['en', 'da', 'en']
True
ArgumentGroup.add_arguments
(self, parser: ArgumentParser)
Add arguments to the provided argument parser.
Add arguments to the provided argument parser.
def add_arguments(self, parser: ArgumentParser): """Add arguments to the provided argument parser."""
[ "def", "add_arguments", "(", "self", ",", "parser", ":", "ArgumentParser", ")", ":" ]
[ 21, 4 ]
[ 22, 60 ]
python
en
['en', 'en', 'en']
True
ArgumentGroup.get_settings
(self, args: Namespace)
Extract settings from the parsed arguments.
Extract settings from the parsed arguments.
def get_settings(self, args: Namespace) -> dict: """Extract settings from the parsed arguments."""
[ "def", "get_settings", "(", "self", ",", "args", ":", "Namespace", ")", "->", "dict", ":" ]
[ 25, 4 ]
[ 26, 57 ]
python
en
['en', 'en', 'en']
True
group.__init__
(self, *categories)
Initialize the decorator.
Initialize the decorator.
def __init__(self, *categories): """Initialize the decorator.""" self.categories = tuple(categories)
[ "def", "__init__", "(", "self", ",", "*", "categories", ")", ":", "self", ".", "categories", "=", "tuple", "(", "categories", ")" ]
[ 34, 4 ]
[ 36, 43 ]
python
en
['en', 'en', 'en']
True
group.__call__
(self, group_cls: ArgumentGroup)
Register a class in the given categories.
Register a class in the given categories.
def __call__(self, group_cls: ArgumentGroup): """Register a class in the given categories.""" setattr(group_cls, "CATEGORIES", self.categories) self._registered.append((self.categories, group_cls)) return group_cls
[ "def", "__call__", "(", "self", ",", "group_cls", ":", "ArgumentGroup", ")", ":", "setattr", "(", "group_cls", ",", "\"CATEGORIES\"", ",", "self", ".", "categories", ")", "self", ".", "_registered", ".", "append", "(", "(", "self", ".", "categories", ",", ...
[ 38, 4 ]
[ 42, 24 ]
python
en
['en', 'en', 'en']
True
group.get_registered
(cls, category: str = None)
Fetch the set of registered classes in a category.
Fetch the set of registered classes in a category.
def get_registered(cls, category: str = None): """Fetch the set of registered classes in a category.""" return ( grp for (cats, grp) in cls._registered if category is None or category in cats )
[ "def", "get_registered", "(", "cls", ",", "category", ":", "str", "=", "None", ")", ":", "return", "(", "grp", "for", "(", "cats", ",", "grp", ")", "in", "cls", ".", "_registered", "if", "category", "is", "None", "or", "category", "in", "cats", ")" ]
[ 45, 4 ]
[ 51, 9 ]
python
en
['en', 'en', 'en']
True
file_ext
()
Determine file extension based on platform.
Determine file extension based on platform.
def file_ext(): """Determine file extension based on platform.""" your_platform = platform.system().lower() return EXTENSION[your_platform] if (your_platform in EXTENSION) else ".so"
[ "def", "file_ext", "(", ")", ":", "your_platform", "=", "platform", ".", "system", "(", ")", ".", "lower", "(", ")", "return", "EXTENSION", "[", "your_platform", "]", "if", "(", "your_platform", "in", "EXTENSION", ")", "else", "\".so\"" ]
[ 11, 0 ]
[ 14, 78 ]
python
en
['en', 'da', 'en']
True
load_postgres_plugin
(raise_exc=False)
Load postgres dll and configure postgres wallet.
Load postgres dll and configure postgres wallet.
def load_postgres_plugin(raise_exc=False): """Load postgres dll and configure postgres wallet.""" global LOADED, LOGGER if not LOADED: LOGGER.info("Initializing postgres wallet") stg_lib = cdll.LoadLibrary("libindystrgpostgres" + file_ext()) result = stg_lib.postgresstorage_init() ...
[ "def", "load_postgres_plugin", "(", "raise_exc", "=", "False", ")", ":", "global", "LOADED", ",", "LOGGER", "if", "not", "LOADED", ":", "LOGGER", ".", "info", "(", "\"Initializing postgres wallet\"", ")", "stg_lib", "=", "cdll", ".", "LoadLibrary", "(", "\"lib...
[ 17, 0 ]
[ 33, 62 ]
python
en
['en', 'nl', '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.mesh3d.hoverlabel.Font` color ...
Construct a new Font object Sets the font used in hover labels.
def __init__( self, arg=None, color=None, colorsrc=None, family=None, familysrc=None, size=None, sizesrc=None, **kwargs ): """ Construct a new Font object Sets the font used in hover labels. Parameters ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "family", "=", "None", ",", "familysrc", "=", "None", ",", "size", "=", "None", ",", "sizesrc", "=", "None", ",", "*", "*", "kw...
[ 215, 4 ]
[ 329, 34 ]
python
en
['en', 'error', 'th']
False
SetGender.func
(self)
Implements the command.
Implements the command.
def func(self): """ Implements the command. """ caller = self.caller arg = self.args.strip().lower() if arg not in ("male", "female", "neutral", "ambiguous"): caller.msg("Usage: @gender male||female||neutral||ambiguous") return caller.db.ge...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "arg", "=", "self", ".", "args", ".", "strip", "(", ")", ".", "lower", "(", ")", "if", "arg", "not", "in", "(", "\"male\"", ",", "\"female\"", ",", "\"neutral\"", ",", "\...
[ 69, 4 ]
[ 79, 54 ]
python
en
['en', 'error', 'th']
False
GenderCharacter.at_object_creation
(self)
Called once when the object is created.
Called once when the object is created.
def at_object_creation(self): """ Called once when the object is created. """ super(GenderCharacter, self).at_object_creation() self.db.gender = "ambiguous"
[ "def", "at_object_creation", "(", "self", ")", ":", "super", "(", "GenderCharacter", ",", "self", ")", ".", "at_object_creation", "(", ")", "self", ".", "db", ".", "gender", "=", "\"ambiguous\"" ]
[ 90, 4 ]
[ 95, 36 ]
python
en
['en', 'error', 'th']
False
GenderCharacter._get_pronoun
(self, regex_match)
Get pronoun from the pronoun marker in the text. This is used as the callable for the re.sub function. Args: regex_match (MatchObject): the regular expression match. Notes: - `|s`, `|S`: Subjective form: he, she, it, He, She, It, They - `|o`, `|O`: ...
Get pronoun from the pronoun marker in the text. This is used as the callable for the re.sub function.
def _get_pronoun(self, regex_match): """ Get pronoun from the pronoun marker in the text. This is used as the callable for the re.sub function. Args: regex_match (MatchObject): the regular expression match. Notes: - `|s`, `|S`: Subjective form: he, she, ...
[ "def", "_get_pronoun", "(", "self", ",", "regex_match", ")", ":", "typ", "=", "regex_match", ".", "group", "(", ")", "[", "1", "]", "# \"s\", \"O\" etc", "gender", "=", "self", ".", "attributes", ".", "get", "(", "\"gender\"", ",", "default", "=", "\"amb...
[ 97, 4 ]
[ 116, 65 ]
python
en
['en', 'error', 'th']
False
GenderCharacter.msg
(self, text, from_obj=None, session=None, **kwargs)
Emits something to a session attached to the object. Overloads the default msg() implementation to include gender-aware markers in output. Args: text (str, optional): The message to send from_obj (obj, optional): object that is sending. If given,...
Emits something to a session attached to the object. Overloads the default msg() implementation to include gender-aware markers in output.
def msg(self, text, from_obj=None, session=None, **kwargs): """ Emits something to a session attached to the object. Overloads the default msg() implementation to include gender-aware markers in output. Args: text (str, optional): The message to send from...
[ "def", "msg", "(", "self", ",", "text", ",", "from_obj", "=", "None", ",", "session", "=", "None", ",", "*", "*", "kwargs", ")", ":", "# pre-process the text before continuing", "try", ":", "text", "=", "_RE_GENDER_PRONOUN", ".", "sub", "(", "self", ".", ...
[ 118, 4 ]
[ 141, 92 ]
python
en
['en', 'error', 'th']
False
DecoratorSet.__init__
(self, models: dict = None)
Initialize the decorator set.
Initialize the decorator set.
def __init__(self, models: dict = None): """Initialize the decorator set.""" super().__init__(DEFAULT_MODELS if models is None else models)
[ "def", "__init__", "(", "self", ",", "models", ":", "dict", "=", "None", ")", ":", "super", "(", ")", ".", "__init__", "(", "DEFAULT_MODELS", "if", "models", "is", "None", "else", "models", ")" ]
[ 22, 4 ]
[ 24, 70 ]
python
en
['en', 'en', 'en']
True
relative_import
(parent_name, rel_modules=(), rel_classes=())
Helper function to import submodules lazily in Python 3.7+ Parameters ---------- rel_modules: list of str list of submodules to import, of the form .submodule rel_classes: list of str list of submodule classes/variables to import, of the form ._submodule.Foo Returns ------...
Helper function to import submodules lazily in Python 3.7+
def relative_import(parent_name, rel_modules=(), rel_classes=()): """ Helper function to import submodules lazily in Python 3.7+ Parameters ---------- rel_modules: list of str list of submodules to import, of the form .submodule rel_classes: list of str list of submodule classes...
[ "def", "relative_import", "(", "parent_name", ",", "rel_modules", "=", "(", ")", ",", "rel_classes", "=", "(", ")", ")", ":", "module_names", "=", "{", "rel_module", ".", "split", "(", "\".\"", ")", "[", "-", "1", "]", ":", "rel_module", "for", "rel_mo...
[ 3, 0 ]
[ 49, 40 ]
python
en
['en', 'error', 'th']
False
Encoder.__init__
(self, embeddings, hidden_size)
Initialization. Arguments here can be used to provide hyperparameters.
Initialization.
def __init__(self, embeddings, hidden_size): """ Initialization. Arguments here can be used to provide hyperparameters. """ # must call super on all nn.Modules. super().__init__() self.embeddings = embeddings self.lstm = nn.LSTM( input_size=h...
[ "def", "__init__", "(", "self", ",", "embeddings", ",", "hidden_size", ")", ":", "# must call super on all nn.Modules.", "super", "(", ")", ".", "__init__", "(", ")", "self", ".", "embeddings", "=", "embeddings", "self", ".", "lstm", "=", "nn", ".", "LSTM", ...
[ 44, 4 ]
[ 59, 9 ]
python
en
['en', 'error', 'th']
False
Encoder.forward
(self, input_tokens)
Perform the forward pass for the encoder. Input *must* be input_tokens, which are the context tokens given as a matrix of lookup IDs. :param input_tokens: Input tokens as a bsz x seqlen LongTensor. Likely will contain padding. :return: You ...
Perform the forward pass for the encoder.
def forward(self, input_tokens): """ Perform the forward pass for the encoder. Input *must* be input_tokens, which are the context tokens given as a matrix of lookup IDs. :param input_tokens: Input tokens as a bsz x seqlen LongTensor. Likely will contain...
[ "def", "forward", "(", "self", ",", "input_tokens", ")", ":", "embedded", "=", "self", ".", "embeddings", "(", "input_tokens", ")", "_output", ",", "hidden", "=", "self", ".", "lstm", "(", "embedded", ")", "return", "hidden" ]
[ 61, 4 ]
[ 81, 21 ]
python
en
['en', 'error', 'th']
False
Decoder.__init__
(self, embeddings, hidden_size)
Initialization. Arguments here can be used to provide hyperparameters.
Initialization.
def __init__(self, embeddings, hidden_size): """ Initialization. Arguments here can be used to provide hyperparameters. """ super().__init__() self.embeddings = embeddings self.lstm = nn.LSTM( input_size=hidden_size, hidden_size=hidden_siz...
[ "def", "__init__", "(", "self", ",", "embeddings", ",", "hidden_size", ")", ":", "super", "(", ")", ".", "__init__", "(", ")", "self", ".", "embeddings", "=", "embeddings", "self", ".", "lstm", "=", "nn", ".", "LSTM", "(", "input_size", "=", "hidden_si...
[ 93, 4 ]
[ 106, 9 ]
python
en
['en', 'error', 'th']
False
Decoder.forward
(self, input, encoder_state, incr_state=None)
Run forward pass. :param input: The currently generated tokens from the decoder. :param encoder_state: The output from the encoder module. :parm incr_state: The previous hidden state of the decoder.
Run forward pass.
def forward(self, input, encoder_state, incr_state=None): """ Run forward pass. :param input: The currently generated tokens from the decoder. :param encoder_state: The output from the encoder module. :parm incr_state: The previous hidden stat...
[ "def", "forward", "(", "self", ",", "input", ",", "encoder_state", ",", "incr_state", "=", "None", ")", ":", "embedded", "=", "self", ".", "embeddings", "(", "input", ")", "if", "incr_state", "is", "None", ":", "# this is our very first call. We want to seed the...
[ 108, 4 ]
[ 132, 33 ]
python
en
['en', 'error', 'th']
False
ExampleModel.output
(self, decoder_output)
Perform the final output -> logits transformation.
Perform the final output -> logits transformation.
def output(self, decoder_output): """ Perform the final output -> logits transformation. """ return F.linear(decoder_output, self.embeddings.weight)
[ "def", "output", "(", "self", ",", "decoder_output", ")", ":", "return", "F", ".", "linear", "(", "decoder_output", ",", "self", ".", "embeddings", ".", "weight", ")" ]
[ 155, 4 ]
[ 159, 63 ]
python
en
['en', 'error', 'th']
False
ExampleModel.reorder_encoder_states
(self, encoder_states, indices)
Reorder the encoder states to select only the given batch indices. Since encoder_state can be arbitrary, you must implement this yourself. Typically you will just want to index select on the batch dimension.
Reorder the encoder states to select only the given batch indices.
def reorder_encoder_states(self, encoder_states, indices): """ Reorder the encoder states to select only the given batch indices. Since encoder_state can be arbitrary, you must implement this yourself. Typically you will just want to index select on the batch dimension. """ ...
[ "def", "reorder_encoder_states", "(", "self", ",", "encoder_states", ",", "indices", ")", ":", "h", ",", "c", "=", "encoder_states", "return", "h", "[", ":", ",", "indices", ",", ":", "]", ",", "c", "[", ":", ",", "indices", ",", ":", "]" ]
[ 161, 4 ]
[ 169, 49 ]
python
en
['en', 'error', 'th']
False
ExampleModel.reorder_decoder_incremental_state
(self, incr_state, indices)
Reorder the decoder states to select only the given batch indices. This method can be a stub which always returns None; this will result in the decoder doing a complete forward pass for every single token, making generation O(n^2). However, if any state can be cached, then this method ...
Reorder the decoder states to select only the given batch indices.
def reorder_decoder_incremental_state(self, incr_state, indices): """ Reorder the decoder states to select only the given batch indices. This method can be a stub which always returns None; this will result in the decoder doing a complete forward pass for every single token, making gene...
[ "def", "reorder_decoder_incremental_state", "(", "self", ",", "incr_state", ",", "indices", ")", ":", "h", ",", "c", "=", "incr_state", "return", "h", "[", ":", ",", "indices", ",", ":", "]", ",", "c", "[", ":", ",", "indices", ",", ":", "]" ]
[ 171, 4 ]
[ 181, 49 ]
python
en
['en', 'error', 'th']
False
Seq2seqAgent.add_cmdline_args
( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None )
Add CLI arguments.
Add CLI arguments.
def add_cmdline_args( cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None ) -> ParlaiParser: """ Add CLI arguments. """ # Make sure to add all of TorchGeneratorAgent's arguments super().add_cmdline_args(parser, partial_opt=partial_opt) # Add custom a...
[ "def", "add_cmdline_args", "(", "cls", ",", "parser", ":", "ParlaiParser", ",", "partial_opt", ":", "Optional", "[", "Opt", "]", "=", "None", ")", "->", "ParlaiParser", ":", "# Make sure to add all of TorchGeneratorAgent's arguments", "super", "(", ")", ".", "add_...
[ 194, 4 ]
[ 208, 21 ]
python
en
['en', 'error', 'th']
False
Seq2seqAgent.build_model
(self)
Construct the model.
Construct the model.
def build_model(self): """ Construct the model. """ model = ExampleModel(self.dict, self.opt['hidden_size']) # Optionally initialize pre-trained embeddings by copying them from another # source: GloVe, fastText, etc. self._copy_embeddings(model.embeddings.weight,...
[ "def", "build_model", "(", "self", ")", ":", "model", "=", "ExampleModel", "(", "self", ".", "dict", ",", "self", ".", "opt", "[", "'hidden_size'", "]", ")", "# Optionally initialize pre-trained embeddings by copying them from another", "# source: GloVe, fastText, etc.", ...
[ 210, 4 ]
[ 219, 20 ]
python
en
['en', 'error', 'th']
False
GetSourceDir
()
Returns the absolute path of the directory where the .py files are.
Returns the absolute path of the directory where the .py files are.
def GetSourceDir(): """Returns the absolute path of the directory where the .py files are.""" return gtest_test_utils.GetSourceDir()
[ "def", "GetSourceDir", "(", ")", ":", "return", "gtest_test_utils", ".", "GetSourceDir", "(", ")" ]
[ 53, 0 ]
[ 56, 40 ]
python
en
['en', 'en', 'en']
True
GetTestExecutablePath
(executable_name)
Returns the absolute path of the test binary given its name. The function will print a message and abort the program if the resulting file doesn't exist. Args: executable_name: name of the test binary that the test script runs. Returns: The absolute path of the test binary.
Returns the absolute path of the test binary given its name.
def GetTestExecutablePath(executable_name): """Returns the absolute path of the test binary given its name. The function will print a message and abort the program if the resulting file doesn't exist. Args: executable_name: name of the test binary that the test script runs. Returns: The absolute pa...
[ "def", "GetTestExecutablePath", "(", "executable_name", ")", ":", "return", "gtest_test_utils", ".", "GetTestExecutablePath", "(", "executable_name", ")" ]
[ 59, 0 ]
[ 72, 64 ]
python
en
['en', 'en', 'en']
True
GetExitStatus
(exit_code)
Returns the argument to exit(), or -1 if exit() wasn't called. Args: exit_code: the result value of os.system(command).
Returns the argument to exit(), or -1 if exit() wasn't called.
def GetExitStatus(exit_code): """Returns the argument to exit(), or -1 if exit() wasn't called. Args: exit_code: the result value of os.system(command). """ if os.name == 'nt': # On Windows, os.WEXITSTATUS() doesn't work and os.system() returns # the argument to exit() directly. return exit_co...
[ "def", "GetExitStatus", "(", "exit_code", ")", ":", "if", "os", ".", "name", "==", "'nt'", ":", "# On Windows, os.WEXITSTATUS() doesn't work and os.system() returns", "# the argument to exit() directly.", "return", "exit_code", "else", ":", "# On Unix, os.WEXITSTATUS() must be ...
[ 75, 0 ]
[ 92, 15 ]
python
en
['en', 'en', 'en']
True
Main
()
Runs the unit test.
Runs the unit test.
def Main(): """Runs the unit test.""" gtest_test_utils.Main()
[ "def", "Main", "(", ")", ":", "gtest_test_utils", ".", "Main", "(", ")" ]
[ 108, 0 ]
[ 111, 25 ]
python
en
['en', 'fr', 'en']
True
PackWireFormat.__init__
(self)
Initialize the pack wire format instance.
Initialize the pack wire format instance.
def __init__(self): """Initialize the pack wire format instance.""" super().__init__() self.task_queue: TaskQueue = None
[ "def", "__init__", "(", "self", ")", ":", "super", "(", ")", ".", "__init__", "(", ")", "self", ".", "task_queue", ":", "TaskQueue", "=", "None" ]
[ 24, 4 ]
[ 27, 41 ]
python
en
['en', 'en', 'en']
True
PackWireFormat.parse_message
( self, context: InjectionContext, message_body: Union[str, bytes], )
Deserialize an incoming message and further populate the request context. Args: context: The injection context for settings and services message_body: The body of the message Returns: A tuple of the parsed message and a message receipt instance Rai...
Deserialize an incoming message and further populate the request context.
async def parse_message( self, context: InjectionContext, message_body: Union[str, bytes], ) -> Tuple[dict, MessageReceipt]: """ Deserialize an incoming message and further populate the request context. Args: context: The injection context for settings and services ...
[ "async", "def", "parse_message", "(", "self", ",", "context", ":", "InjectionContext", ",", "message_body", ":", "Union", "[", "str", ",", "bytes", "]", ",", ")", "->", "Tuple", "[", "dict", ",", "MessageReceipt", "]", ":", "receipt", "=", "MessageReceipt"...
[ 29, 4 ]
[ 97, 36 ]
python
en
['en', 'error', 'th']
False
PackWireFormat.unpack
( self, context: InjectionContext, message_body: Union[str, bytes], receipt: MessageReceipt, )
Look up the wallet instance and perform the message unpack.
Look up the wallet instance and perform the message unpack.
async def unpack( self, context: InjectionContext, message_body: Union[str, bytes], receipt: MessageReceipt, ): """Look up the wallet instance and perform the message unpack.""" try: wallet: BaseWallet = await context.inject(BaseWallet) except Inje...
[ "async", "def", "unpack", "(", "self", ",", "context", ":", "InjectionContext", ",", "message_body", ":", "Union", "[", "str", ",", "bytes", "]", ",", "receipt", ":", "MessageReceipt", ",", ")", ":", "try", ":", "wallet", ":", "BaseWallet", "=", "await",...
[ 99, 4 ]
[ 116, 67 ]
python
en
['en', 'en', 'en']
True
PackWireFormat.encode_message
( self, context: InjectionContext, message_json: Union[str, bytes], recipient_keys: Sequence[str], routing_keys: Sequence[str], sender_key: str, )
Encode an outgoing message for transport. Args: context: The injection context for settings and services message_json: The message body to serialize recipient_keys: A sequence of recipient verkeys routing_keys: A sequence of routing verkeys s...
Encode an outgoing message for transport.
async def encode_message( self, context: InjectionContext, message_json: Union[str, bytes], recipient_keys: Sequence[str], routing_keys: Sequence[str], sender_key: str, ) -> Union[str, bytes]: """ Encode an outgoing message for transport. Args...
[ "async", "def", "encode_message", "(", "self", ",", "context", ":", "InjectionContext", ",", "message_json", ":", "Union", "[", "str", ",", "bytes", "]", ",", "recipient_keys", ":", "Sequence", "[", "str", "]", ",", "routing_keys", ":", "Sequence", "[", "s...
[ 118, 4 ]
[ 151, 22 ]
python
en
['en', 'error', 'th']
False
PackWireFormat.pack
( self, context: InjectionContext, message_json: Union[str, bytes], recipient_keys: Sequence[str], routing_keys: Sequence[str], sender_key: str, )
Look up the wallet instance and perform the message pack.
Look up the wallet instance and perform the message pack.
async def pack( self, context: InjectionContext, message_json: Union[str, bytes], recipient_keys: Sequence[str], routing_keys: Sequence[str], sender_key: str, ): """Look up the wallet instance and perform the message pack.""" if not sender_key or not r...
[ "async", "def", "pack", "(", "self", ",", "context", ":", "InjectionContext", ",", "message_json", ":", "Union", "[", "str", ",", "bytes", "]", ",", "recipient_keys", ":", "Sequence", "[", "str", "]", ",", "routing_keys", ":", "Sequence", "[", "str", "]"...
[ 153, 4 ]
[ 186, 22 ]
python
en
['en', 'en', 'en']
True
_table_exists
(db_cursor, tablename)
Returns bool if table exists or not
Returns bool if table exists or not
def _table_exists(db_cursor, tablename): "Returns bool if table exists or not" return tablename in connection.introspection.table_names()
[ "def", "_table_exists", "(", "db_cursor", ",", "tablename", ")", ":", "return", "tablename", "in", "connection", ".", "introspection", ".", "table_names", "(", ")" ]
[ 7, 0 ]
[ 9, 62 ]
python
en
['en', 'en', 'en']
True
ColorBar.bgcolor
(self)
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bgcolor(self): """ Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 59, 4 ]
[ 109, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.bordercolor
(self)
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bordercolor(self): """ Sets the axis line color. 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 ...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 118, 4 ]
[ 168, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.borderwidth
(self)
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def borderwidth(self): """ Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["...
[ "def", "borderwidth", "(", "self", ")", ":", "return", "self", "[", "\"borderwidth\"", "]" ]
[ 177, 4 ]
[ 188, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.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\"", "]" ]
[ 197, 4 ]
[ 226, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.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\"", "]" ]
[ 235, 4 ]
[ 251, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.len
(self)
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf] Return...
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf]
def len(self): """ Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interva...
[ "def", "len", "(", "self", ")", ":", "return", "self", "[", "\"len\"", "]" ]
[ 260, 4 ]
[ 273, 26 ]
python
en
['en', 'error', 'th']
False
ColorBar.lenmode
(self)
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
def lenmode(self): """ Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - ...
[ "def", "lenmode", "(", "self", ")", ":", "return", "self", "[", "\"lenmode\"", "]" ]
[ 282, 4 ]
[ 296, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.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\"", "]" ]
[ 305, 4 ]
[ 320, 29 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinecolor
(self)
Sets the axis line color. The 'outlinecolor' 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 'outlinecolor' 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 outlinecolor(self): """ Sets the axis line color. The 'outlinecolor' 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/hsv...
[ "def", "outlinecolor", "(", "self", ")", ":", "return", "self", "[", "\"outlinecolor\"", "]" ]
[ 329, 4 ]
[ 379, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinewidth
(self)
Sets the width (in px) of the axis line. The 'outlinewidth' 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 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def outlinewidth(self): """ Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["outlinewidth"]
[ "def", "outlinewidth", "(", "self", ")", ":", "return", "self", "[", "\"outlinewidth\"", "]" ]
[ 388, 4 ]
[ 399, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.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\"", "]" ]
[ 408, 4 ]
[ 419, 40 ]
python
en
['en', 'error', 'th']
False
ColorBar.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\"", "]" ]
[ 428, 4 ]
[ 443, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.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\"", "]" ]
[ 452, 4 ]
[ 463, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showtickprefix
(self)
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
def showtickprefix(self): """ If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' proper...
[ "def", "showtickprefix", "(", "self", ")", ":", "return", "self", "[", "\"showtickprefix\"", "]" ]
[ 472, 4 ]
[ 487, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticksuffix
(self)
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- Any
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none']
def showticksuffix(self): """ Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- ...
[ "def", "showticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"showticksuffix\"", "]" ]
[ 496, 4 ]
[ 508, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.thickness
(self)
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf]
def thickness(self): """ Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- i...
[ "def", "thickness", "(", "self", ")", ":", "return", "self", "[", "\"thickness\"", "]" ]
[ 517, 4 ]
[ 529, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.thicknessmode
(self)
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
def thicknessmode(self): """ Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be speci...
[ "def", "thicknessmode", "(", "self", ")", ":", "return", "self", "[", "\"thicknessmode\"", "]" ]
[ 538, 4 ]
[ 552, 36 ]
python
en
['en', 'error', 'th']
False