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
TestDefaultAccount.test_password_validation
(self)
Check password validators deny bad passwords
Check password validators deny bad passwords
def test_password_validation(self): "Check password validators deny bad passwords" self.account = create.create_account("TestAccount%s" % randint(0, 9), email="test@test.com", password="testpassword", typeclass=DefaultAccount) for bad in ('', '123', 'password', 'TestAccount', '#...
[ "def", "test_password_validation", "(", "self", ")", ":", "self", ".", "account", "=", "create", ".", "create_account", "(", "\"TestAccount%s\"", "%", "randint", "(", "0", ",", "9", ")", ",", "email", "=", "\"test@test.com\"", ",", "password", "=", "\"testpa...
[ 74, 4 ]
[ 84, 92 ]
python
en
['fr', 'sr', 'en']
False
TestDefaultAccount.test_password_change
(self)
Check password setting and validation is working as expected
Check password setting and validation is working as expected
def test_password_change(self): "Check password setting and validation is working as expected" self.account = create.create_account("TestAccount%s" % randint(0, 9), email="test@test.com", password="testpassword", typeclass=DefaultAccount) from django.core.exceptions import Valid...
[ "def", "test_password_change", "(", "self", ")", ":", "self", ".", "account", "=", "create", ".", "create_account", "(", "\"TestAccount%s\"", "%", "randint", "(", "0", ",", "9", ")", ",", "email", "=", "\"test@test.com\"", ",", "password", "=", "\"testpasswo...
[ 86, 4 ]
[ 97, 63 ]
python
en
['en', 'en', 'en']
True
TestDefaultAccount.test_puppet_object_no_object
(self)
Check puppet_object method called with no object param
Check puppet_object method called with no object param
def test_puppet_object_no_object(self): "Check puppet_object method called with no object param" try: DefaultAccount().puppet_object(self.s1, None) self.fail("Expected error: 'Object not found'") except RuntimeError as re: self.assertEqual("Object not found",...
[ "def", "test_puppet_object_no_object", "(", "self", ")", ":", "try", ":", "DefaultAccount", "(", ")", ".", "puppet_object", "(", "self", ".", "s1", ",", "None", ")", "self", ".", "fail", "(", "\"Expected error: 'Object not found'\"", ")", "except", "RuntimeError...
[ 99, 4 ]
[ 106, 57 ]
python
en
['en', 'en', 'en']
True
TestDefaultAccount.test_puppet_object_no_session
(self)
Check puppet_object method called with no session param
Check puppet_object method called with no session param
def test_puppet_object_no_session(self): "Check puppet_object method called with no session param" try: DefaultAccount().puppet_object(None, Mock()) self.fail("Expected error: 'Session not found'") except RuntimeError as re: self.assertEqual("Session not foun...
[ "def", "test_puppet_object_no_session", "(", "self", ")", ":", "try", ":", "DefaultAccount", "(", ")", ".", "puppet_object", "(", "None", ",", "Mock", "(", ")", ")", "self", ".", "fail", "(", "\"Expected error: 'Session not found'\"", ")", "except", "RuntimeErro...
[ 108, 4 ]
[ 115, 58 ]
python
en
['en', 'en', 'en']
True
TestDefaultAccount.test_puppet_object_already_puppeting
(self)
Check puppet_object method called, already puppeting this
Check puppet_object method called, already puppeting this
def test_puppet_object_already_puppeting(self): "Check puppet_object method called, already puppeting this" import evennia.server.sessionhandler account = create.create_account( "TestAccount%s" % randint(0, 999999), email="test@test.com", password="testpassword", typecl...
[ "def", "test_puppet_object_already_puppeting", "(", "self", ")", ":", "import", "evennia", ".", "server", ".", "sessionhandler", "account", "=", "create", ".", "create_account", "(", "\"TestAccount%s\"", "%", "randint", "(", "0", ",", "999999", ")", ",", "email"...
[ 117, 4 ]
[ 135, 55 ]
python
en
['en', 'en', 'en']
True
TestDefaultAccount.test_puppet_object_no_permission
(self)
Check puppet_object method called, no permission
Check puppet_object method called, no permission
def test_puppet_object_no_permission(self): "Check puppet_object method called, no permission" import evennia.server.sessionhandler account = create.create_account("TestAccount%s" % randint(0, 999999), email="test@test.com", password="testpassword", typeclass=DefaultAccount) self.s1.ui...
[ "def", "test_puppet_object_no_permission", "(", "self", ")", ":", "import", "evennia", ".", "server", ".", "sessionhandler", "account", "=", "create", ".", "create_account", "(", "\"TestAccount%s\"", "%", "randint", "(", "0", ",", "999999", ")", ",", "email", ...
[ 137, 4 ]
[ 153, 55 ]
python
en
['pt', 'en', 'en']
True
TestDefaultAccount.test_puppet_object_joining_other_session
(self)
Check puppet_object method called, joining other session
Check puppet_object method called, joining other session
def test_puppet_object_joining_other_session(self): "Check puppet_object method called, joining other session" import evennia.server.sessionhandler account = create.create_account("TestAccount%s" % randint(0, 999999), email="test@test.com", password="testpassword", typeclass=DefaultAccount) ...
[ "def", "test_puppet_object_joining_other_session", "(", "self", ")", ":", "import", "evennia", ".", "server", ".", "sessionhandler", "account", "=", "create", ".", "create_account", "(", "\"TestAccount%s\"", "%", "randint", "(", "0", ",", "999999", ")", ",", "em...
[ 156, 4 ]
[ 177, 62 ]
python
en
['en', 'en', 'en']
True
TestDefaultAccount.test_puppet_object_already_puppeted
(self)
Check puppet_object method called, already puppeted
Check puppet_object method called, already puppeted
def test_puppet_object_already_puppeted(self): "Check puppet_object method called, already puppeted" import evennia.server.sessionhandler account = create.create_account("TestAccount%s" % randint(0, 999999), email="test@test.com", password="testpassword", typeclass=DefaultAccount) self...
[ "def", "test_puppet_object_already_puppeted", "(", "self", ")", ":", "import", "evennia", ".", "server", ".", "sessionhandler", "account", "=", "create", ".", "create_account", "(", "\"TestAccount%s\"", "%", "randint", "(", "0", ",", "999999", ")", ",", "email",...
[ 179, 4 ]
[ 200, 55 ]
python
en
['en', 'en', 'en']
True
Run
(command)
Runs a command; returns 1 if it was killed by a signal, or 0 otherwise.
Runs a command; returns 1 if it was killed by a signal, or 0 otherwise.
def Run(command): """Runs a command; returns 1 if it was killed by a signal, or 0 otherwise.""" p = gtest_test_utils.Subprocess(command, env=environ) if p.terminated_by_signal: return 1 else: return 0
[ "def", "Run", "(", "command", ")", ":", "p", "=", "gtest_test_utils", ".", "Subprocess", "(", "command", ",", "env", "=", "environ", ")", "if", "p", ".", "terminated_by_signal", ":", "return", "1", "else", ":", "return", "0" ]
[ 79, 0 ]
[ 86, 12 ]
python
en
['en', 'en', 'en']
True
GTestBreakOnFailureUnitTest.RunAndVerify
(self, env_var_value, flag_value, expect_seg_fault)
Runs gtest_break_on_failure_unittest_ and verifies that it does (or does not) have a seg-fault. Args: env_var_value: value of the GTEST_BREAK_ON_FAILURE environment variable; None if the variable should be unset. flag_value: value of the --gtest_break_on_failure fla...
Runs gtest_break_on_failure_unittest_ and verifies that it does (or does not) have a seg-fault.
def RunAndVerify(self, env_var_value, flag_value, expect_seg_fault): """Runs gtest_break_on_failure_unittest_ and verifies that it does (or does not) have a seg-fault. Args: env_var_value: value of the GTEST_BREAK_ON_FAILURE environment variable; None if the variable should...
[ "def", "RunAndVerify", "(", "self", ",", "env_var_value", ",", "flag_value", ",", "expect_seg_fault", ")", ":", "SetEnvVar", "(", "BREAK_ON_FAILURE_ENV_VAR", ",", "env_var_value", ")", "if", "env_var_value", "is", "None", ":", "env_var_value_msg", "=", "' is not set...
[ 98, 2 ]
[ 141, 56 ]
python
en
['en', 'en', 'en']
True
GTestBreakOnFailureUnitTest.testDefaultBehavior
(self)
Tests the behavior of the default mode.
Tests the behavior of the default mode.
def testDefaultBehavior(self): """Tests the behavior of the default mode.""" self.RunAndVerify(env_var_value=None, flag_value=None, expect_seg_fault=0)
[ "def", "testDefaultBehavior", "(", "self", ")", ":", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "None", ",", "flag_value", "=", "None", ",", "expect_seg_fault", "=", "0", ")" ]
[ 143, 2 ]
[ 148, 41 ]
python
en
['en', 'en', 'en']
True
GTestBreakOnFailureUnitTest.testEnvVar
(self)
Tests using the GTEST_BREAK_ON_FAILURE environment variable.
Tests using the GTEST_BREAK_ON_FAILURE environment variable.
def testEnvVar(self): """Tests using the GTEST_BREAK_ON_FAILURE environment variable.""" self.RunAndVerify(env_var_value='0', flag_value=None, expect_seg_fault=0) self.RunAndVerify(env_var_value='1', flag_value=None, ex...
[ "def", "testEnvVar", "(", "self", ")", ":", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "'0'", ",", "flag_value", "=", "None", ",", "expect_seg_fault", "=", "0", ")", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "'1'", ",", "flag_val...
[ 150, 2 ]
[ 158, 41 ]
python
en
['en', 'en', 'en']
True
GTestBreakOnFailureUnitTest.testFlag
(self)
Tests using the --gtest_break_on_failure flag.
Tests using the --gtest_break_on_failure flag.
def testFlag(self): """Tests using the --gtest_break_on_failure flag.""" self.RunAndVerify(env_var_value=None, flag_value='0', expect_seg_fault=0) self.RunAndVerify(env_var_value=None, flag_value='1', expect_seg_fault=1...
[ "def", "testFlag", "(", "self", ")", ":", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "None", ",", "flag_value", "=", "'0'", ",", "expect_seg_fault", "=", "0", ")", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "None", ",", "flag_valu...
[ 160, 2 ]
[ 168, 41 ]
python
en
['en', 'en', 'en']
True
GTestBreakOnFailureUnitTest.testFlagOverridesEnvVar
(self)
Tests that the flag overrides the environment variable.
Tests that the flag overrides the environment variable.
def testFlagOverridesEnvVar(self): """Tests that the flag overrides the environment variable.""" self.RunAndVerify(env_var_value='0', flag_value='0', expect_seg_fault=0) self.RunAndVerify(env_var_value='0', flag_value='1', ...
[ "def", "testFlagOverridesEnvVar", "(", "self", ")", ":", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "'0'", ",", "flag_value", "=", "'0'", ",", "expect_seg_fault", "=", "0", ")", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "'0'", ",",...
[ 170, 2 ]
[ 184, 41 ]
python
en
['en', 'en', 'en']
True
GTestBreakOnFailureUnitTest.testBreakOnFailureOverridesThrowOnFailure
(self)
Tests that gtest_break_on_failure overrides gtest_throw_on_failure.
Tests that gtest_break_on_failure overrides gtest_throw_on_failure.
def testBreakOnFailureOverridesThrowOnFailure(self): """Tests that gtest_break_on_failure overrides gtest_throw_on_failure.""" SetEnvVar(THROW_ON_FAILURE_ENV_VAR, '1') try: self.RunAndVerify(env_var_value=None, flag_value='1', expect_seg_fault=1) fi...
[ "def", "testBreakOnFailureOverridesThrowOnFailure", "(", "self", ")", ":", "SetEnvVar", "(", "THROW_ON_FAILURE_ENV_VAR", ",", "'1'", ")", "try", ":", "self", ".", "RunAndVerify", "(", "env_var_value", "=", "None", ",", "flag_value", "=", "'1'", ",", "expect_seg_fa...
[ 186, 2 ]
[ 195, 47 ]
python
en
['en', 'en', 'en']
True
Marker.color
(self)
Sets the marker 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 marker 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 marker 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 stri...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 66, 28 ]
python
en
['en', 'error', 'th']
False
Marker.opacity
(self)
Sets the marker opacity of unselected points, applied only when a selection exists. 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 unselected points, applied only when a selection exists. 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 unselected points, applied only when a selection exists. The 'opacity' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ ...
[ "def", "opacity", "(", "self", ")", ":", "return", "self", "[", "\"opacity\"", "]" ]
[ 75, 4 ]
[ 87, 30 ]
python
en
['en', 'error', 'th']
False
Marker.__init__
(self, arg=None, color=None, opacity=None, **kwargs)
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpolar.unselected.Marker` color Sets the marker color of unselected ...
Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpolar.unselected.Marker` color Sets the marker color of unselected ...
def __init__(self, arg=None, color=None, opacity=None, **kwargs): """ Construct a new Marker object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.barpolar.unse...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "opacity", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Marker", ",", "self", ")", ".", "__init__", "(", "\"marker\"", ")", "if", "\"_parent\...
[ 106, 4 ]
[ 171, 34 ]
python
en
['en', 'error', 'th']
False
Textfont.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
Textfont.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
Textfont.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 ]
[ 115, 29 ]
python
en
['en', 'error', 'th']
False
Textfont.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\"", "]" ]
[ 124, 4 ]
[ 134, 27 ]
python
en
['en', 'error', 'th']
False
Textfont.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\"", "]" ]
[ 143, 4 ]
[ 154, 30 ]
python
en
['en', 'error', 'th']
False
Textfont.__init__
( self, arg=None, color=None, colorsrc=None, family=None, size=None, sizesrc=None, **kwargs )
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.Textfont` color colorsrc Sets the source referenc...
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatter3d.Textfont` color
def __init__( self, arg=None, color=None, colorsrc=None, family=None, size=None, sizesrc=None, **kwargs ): """ Construct a new Textfont object Parameters ---------- arg dict of properties com...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "sizesrc", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", ...
[ 191, 4 ]
[ 295, 34 ]
python
en
['en', 'error', 'th']
False
GidSqliteActionBase.exists
(self)
checks if the db exist and logs it Returns ------- bool bool if the file exist or not
checks if the db exist and logs it
def exists(self): """ checks if the db exist and logs it Returns ------- bool bool if the file exist or not """ if os.path.isfile(self.db_loc): log.info("database at %s, does EXIST", self.db_loc) return ...
[ "def", "exists", "(", "self", ")", ":", "if", "os", ".", "path", ".", "isfile", "(", "self", ".", "db_loc", ")", ":", "log", ".", "info", "(", "\"database at %s, does EXIST\"", ",", "self", ".", "db_loc", ")", "return", "True", "else", ":", "log", "....
[ 39, 4 ]
[ 53, 24 ]
python
en
['en', 'error', 'th']
False
AioGidSqliteActionBase.exists
(self)
checks if the db exist and logs it Returns ------- bool bool if the file exist or not
checks if the db exist and logs it
def exists(self): """ checks if the db exist and logs it Returns ------- bool bool if the file exist or not """ if os.path.isfile(self.db_loc): log.info("database at %s, does EXIST", self.db_loc) return ...
[ "def", "exists", "(", "self", ")", ":", "if", "os", ".", "path", ".", "isfile", "(", "self", ".", "db_loc", ")", ":", "log", ".", "info", "(", "\"database at %s, does EXIST\"", ",", "self", ".", "db_loc", ")", "return", "True", "else", ":", "log", "....
[ 82, 4 ]
[ 96, 24 ]
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 color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scatterternary .marker.colorbar.Tickfont` ...
Construct a new Tickfont object Sets the color bar's tick label font
def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): """ Construct a new Tickfont object Sets the color bar's tick label font Parameters ---------- arg dict of properties compatible with this constructor or an insta...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "family", "=", "None", ",", "size", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Tickfont", ",", "self", ")", ".", "__init__", "(", "\"tick...
[ 143, 4 ]
[ 226, 34 ]
python
en
['en', 'error', 'th']
False
TestIRC.test_plain_ansi
(self)
Test that printable characters do not get mangled.
Test that printable characters do not get mangled.
def test_plain_ansi(self): """ Test that printable characters do not get mangled. """ irc_ansi = irc.parse_ansi_to_irc(string.printable) ansi_irc = irc.parse_irc_to_ansi(string.printable) self.assertEqual(irc_ansi, string.printable) self.assertEqual(ansi_irc, stri...
[ "def", "test_plain_ansi", "(", "self", ")", ":", "irc_ansi", "=", "irc", ".", "parse_ansi_to_irc", "(", "string", ".", "printable", ")", "ansi_irc", "=", "irc", ".", "parse_irc_to_ansi", "(", "string", ".", "printable", ")", "self", ".", "assertEqual", "(", ...
[ 31, 4 ]
[ 38, 52 ]
python
en
['en', 'error', 'th']
False
TestIRC.test_identity
(self)
Test that the composition of the function and its inverse gives the correct string.
Test that the composition of the function and its inverse gives the correct string.
def test_identity(self): """ Test that the composition of the function and its inverse gives the correct string. """ s = r'|wthis|Xis|gis|Ma|C|complex|*string' self.assertEqual(irc.parse_irc_to_ansi(irc.parse_ansi_to_irc(s)), s)
[ "def", "test_identity", "(", "self", ")", ":", "s", "=", "r'|wthis|Xis|gis|Ma|C|complex|*string'", "self", ".", "assertEqual", "(", "irc", ".", "parse_irc_to_ansi", "(", "irc", ".", "parse_ansi_to_irc", "(", "s", ")", ")", ",", "s", ")" ]
[ 81, 4 ]
[ 89, 76 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.align
(self)
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
def align(self): """ Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeratio...
[ "def", "align", "(", "self", ")", ":", "return", "self", "[", "\"align\"", "]" ]
[ 25, 4 ]
[ 40, 28 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.alignsrc
(self)
Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' 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 align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def alignsrc(self): """ Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["alignsrc"]
[ "def", "alignsrc", "(", "self", ")", ":", "return", "self", "[", "\"alignsrc\"", "]" ]
[ 49, 4 ]
[ 60, 31 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolor
(self)
Sets the background color of the hover labels for this trace 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...
Sets the background color of the hover labels for this trace 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): """ Sets the background color of the hover labels for this trace 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%)...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 69, 4 ]
[ 120, 30 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' 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 bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bgcolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bgcolorsrc"]
[ "def", "bgcolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bgcolorsrc\"", "]" ]
[ 129, 4 ]
[ 140, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolor
(self)
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva st...
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva st...
def bordercolor(self): """ Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 149, 4 ]
[ 200, 34 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bordercolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bo...
[ "def", "bordercolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bordercolorsrc\"", "]" ]
[ 209, 4 ]
[ 221, 37 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.font
(self)
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.waterfall.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.waterfall.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
def font(self): """ Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.waterfall.hoverlabel.Font` - A dict of string/value properties that will be passed ...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 230, 4 ]
[ 277, 27 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelength
(self)
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
def namelength(self): """ Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than ...
[ "def", "namelength", "(", "self", ")", ":", "return", "self", "[", "\"namelength\"", "]" ]
[ 286, 4 ]
[ 304, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelengthsrc
(self)
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def namelengthsrc(self): """ Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["name...
[ "def", "namelengthsrc", "(", "self", ")", ":", "return", "self", "[", "\"namelengthsrc\"", "]" ]
[ 313, 4 ]
[ 325, 36 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.__init__
( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs )
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.Hoverlabel` align Sets the horizontal alignment of the t...
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.waterfall.Hoverlabel` align Sets the horizontal alignment of the t...
def __init__( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs ): """ Construct a n...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "align", "=", "None", ",", "alignsrc", "=", "None", ",", "bgcolor", "=", "None", ",", "bgcolorsrc", "=", "None", ",", "bordercolor", "=", "None", ",", "bordercolorsrc", "=", "None", ",", "...
[ 370, 4 ]
[ 502, 34 ]
python
en
['en', 'error', 'th']
False
Gradient.color
(self)
Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 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)') - ...
Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. 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)') - ...
def color(self): """ Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. ...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 67, 28 ]
python
en
['en', 'error', 'th']
False
Gradient.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\"", "]" ]
[ 76, 4 ]
[ 87, 31 ]
python
en
['en', 'error', 'th']
False
Gradient.type
(self)
Sets the type of gradient used to fill the markers The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ['radial', 'horizontal', 'vertical', 'none'] - A tuple, list, or one-dimensional numpy array of the abov...
Sets the type of gradient used to fill the markers The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ['radial', 'horizontal', 'vertical', 'none'] - A tuple, list, or one-dimensional numpy array of the abov...
def type(self): """ Sets the type of gradient used to fill the markers The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ['radial', 'horizontal', 'vertical', 'none'] - A tuple, list, or one-dimensio...
[ "def", "type", "(", "self", ")", ":", "return", "self", "[", "\"type\"", "]" ]
[ 96, 4 ]
[ 109, 27 ]
python
en
['en', 'error', 'th']
False
Gradient.typesrc
(self)
Sets the source reference on Chart Studio Cloud for type . The 'typesrc' 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 type . The 'typesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def typesrc(self): """ Sets the source reference on Chart Studio Cloud for type . The 'typesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["typesrc"]
[ "def", "typesrc", "(", "self", ")", ":", "return", "self", "[", "\"typesrc\"", "]" ]
[ 118, 4 ]
[ 129, 30 ]
python
en
['en', 'error', 'th']
False
Gradient.__init__
( self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs )
Construct a new Gradient object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergeo.marker.Gradient` color Sets the final color of the gradie...
Construct a new Gradient object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergeo.marker.Gradient` color Sets the final color of the gradie...
def __init__( self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs ): """ Construct a new Gradient object Parameters ---------- arg dict of properties compatible with this constructor or an instance of ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "colorsrc", "=", "None", ",", "type", "=", "None", ",", "typesrc", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Gradient", ",", "self", ")"...
[ 154, 4 ]
[ 235, 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
add_paths
(*args)
Make paths are in sys.path.
Make paths are in sys.path.
def add_paths(*args): """Make paths are in sys.path.""" for p in args: if p not in sys.path: sys.path.append(p)
[ "def", "add_paths", "(", "*", "args", ")", ":", "for", "p", "in", "args", ":", "if", "p", "not", "in", "sys", ".", "path", ":", "sys", ".", "path", ".", "append", "(", "p", ")" ]
[ 15, 0 ]
[ 19, 30 ]
python
en
['en', 'en', 'en']
True
stage_wp
()
* Use to copy over CSS/JS files to WP Plugin directory
* Use to copy over CSS/JS files to WP Plugin directory
def stage_wp(): """* Use to copy over CSS/JS files to WP Plugin directory""" print("This will copy over the css/js folders from within build to the Wordpress Plugin Directory") if not confirm('Is your TimelineJS-Wordpress-Plugin Directory in the same directory as where TimelineJS is located? (y/n) '): ...
[ "def", "stage_wp", "(", ")", ":", "print", "(", "\"This will copy over the css/js folders from within build to the Wordpress Plugin Directory\"", ")", "if", "not", "confirm", "(", "'Is your TimelineJS-Wordpress-Plugin Directory in the same directory as where TimelineJS is located? (y/n) '"...
[ 32, 0 ]
[ 48, 92 ]
python
en
['en', 'en', 'en']
True
stage_compiled
()
Copy CSS/JS from build to compiled
Copy CSS/JS from build to compiled
def stage_compiled(): """Copy CSS/JS from build to compiled""" # # Copy over CSS files distutils.dir_util.copy_tree("build/css", "compiled/css") distutils.dir_util.copy_tree("build/js", "compiled/js")
[ "def", "stage_compiled", "(", ")", ":", "# # Copy over CSS files", "distutils", ".", "dir_util", ".", "copy_tree", "(", "\"build/css\"", ",", "\"compiled/css\"", ")", "distutils", ".", "dir_util", ".", "copy_tree", "(", "\"build/js\"", ",", "\"compiled/js\"", ")" ]
[ 51, 0 ]
[ 55, 59 ]
python
en
['en', 'en', 'en']
True
Y.fill
(self)
Sets the fill ratio of the `slices`. The default fill value of the `slices` is 1 meaning that they are entirely shaded. On the other hand Applying a `fill` ratio less than one would allow the creation of openings parallel to the edges. The 'fill' property is a number and ma...
Sets the fill ratio of the `slices`. The default fill value of the `slices` is 1 meaning that they are entirely shaded. On the other hand Applying a `fill` ratio less than one would allow the creation of openings parallel to the edges. The 'fill' property is a number and ma...
def fill(self): """ Sets the fill ratio of the `slices`. The default fill value of the `slices` is 1 meaning that they are entirely shaded. On the other hand Applying a `fill` ratio less than one would allow the creation of openings parallel to the edges. The 'fill' ...
[ "def", "fill", "(", "self", ")", ":", "return", "self", "[", "\"fill\"", "]" ]
[ 15, 4 ]
[ 29, 27 ]
python
en
['en', 'error', 'th']
False
Y.locations
(self)
Specifies the location(s) of slices on the axis. When not specified slices would be created for all points of the axis y except start and end. The 'locations' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
Specifies the location(s) of slices on the axis. When not specified slices would be created for all points of the axis y except start and end. The 'locations' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def locations(self): """ Specifies the location(s) of slices on the axis. When not specified slices would be created for all points of the axis y except start and end. The 'locations' property is an array that may be specified as a tuple, list, numpy array, or pandas...
[ "def", "locations", "(", "self", ")", ":", "return", "self", "[", "\"locations\"", "]" ]
[ 38, 4 ]
[ 51, 32 ]
python
en
['en', 'error', 'th']
False
Y.locationssrc
(self)
Sets the source reference on Chart Studio Cloud for locations . The 'locationssrc' 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 locations . The 'locationssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def locationssrc(self): """ Sets the source reference on Chart Studio Cloud for locations . The 'locationssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["locatio...
[ "def", "locationssrc", "(", "self", ")", ":", "return", "self", "[", "\"locationssrc\"", "]" ]
[ 60, 4 ]
[ 72, 35 ]
python
en
['en', 'error', 'th']
False
Y.show
(self)
Determines whether or not slice planes about the y dimension are drawn. The 'show' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not slice planes about the y dimension are drawn. The 'show' property must be specified as a bool (either True, or False)
def show(self): """ Determines whether or not slice planes about the y dimension are drawn. The 'show' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["show"]
[ "def", "show", "(", "self", ")", ":", "return", "self", "[", "\"show\"", "]" ]
[ 81, 4 ]
[ 93, 27 ]
python
en
['en', 'error', 'th']
False
Y.__init__
( self, arg=None, fill=None, locations=None, locationssrc=None, show=None, **kwargs )
Construct a new Y object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.volume.slices.Y` fill Sets the fill ratio of the `slices`. The default fill...
Construct a new Y object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.volume.slices.Y` fill Sets the fill ratio of the `slices`. The default fill...
def __init__( self, arg=None, fill=None, locations=None, locationssrc=None, show=None, **kwargs ): """ Construct a new Y object Parameters ---------- arg dict of properties compatible with this const...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "fill", "=", "None", ",", "locations", "=", "None", ",", "locationssrc", "=", "None", ",", "show", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Y", ",", "self", ")", ...
[ 122, 4 ]
[ 213, 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 axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. Parameters ---------- arg dict of properties compatible with this constructor or an ins...
Construct a new Font object Sets this axis' title font. Note that the title's font used to be customized 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 axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute. Parameters ---------- ar...
[ "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
Grid.columns
(self)
The number of columns in the grid. If you provide a 2D `subplots` array, the length of its longest row is used as the default. If you give an `xaxes` array, its length is used as the default. But it's also possible to have a different length, if you want to leave a row at the en...
The number of columns in the grid. If you provide a 2D `subplots` array, the length of its longest row is used as the default. If you give an `xaxes` array, its length is used as the default. But it's also possible to have a different length, if you want to leave a row at the en...
def columns(self): """ The number of columns in the grid. If you provide a 2D `subplots` array, the length of its longest row is used as the default. If you give an `xaxes` array, its length is used as the default. But it's also possible to have a different length, if you...
[ "def", "columns", "(", "self", ")", ":", "return", "self", "[", "\"columns\"", "]" ]
[ 28, 4 ]
[ 45, 30 ]
python
en
['en', 'error', 'th']
False
Grid.domain
(self)
The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.layout.grid.Domain` - A dict of string/value properties that will be passed to the Domain constructor Supported dict properties: ...
The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.layout.grid.Domain` - A dict of string/value properties that will be passed to the Domain constructor Supported dict properties: ...
def domain(self): """ The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.layout.grid.Domain` - A dict of string/value properties that will be passed to the Domain constructor Support...
[ "def", "domain", "(", "self", ")", ":", "return", "self", "[", "\"domain\"", "]" ]
[ 54, 4 ]
[ 79, 29 ]
python
en
['en', 'error', 'th']
False
Grid.pattern
(self)
If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`, we can generate defaults using consecutive axis IDs, in two ways: "coupled" gives one x axis per column and one y axis per row. "independent" uses a new xy pair for each cell, left-to-right acro...
If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`, we can generate defaults using consecutive axis IDs, in two ways: "coupled" gives one x axis per column and one y axis per row. "independent" uses a new xy pair for each cell, left-to-right acro...
def pattern(self): """ If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`, we can generate defaults using consecutive axis IDs, in two ways: "coupled" gives one x axis per column and one y axis per row. "independent" uses a new xy pair for...
[ "def", "pattern", "(", "self", ")", ":", "return", "self", "[", "\"pattern\"", "]" ]
[ 88, 4 ]
[ 105, 30 ]
python
en
['en', 'error', 'th']
False
Grid.roworder
(self)
Is the first row the top or the bottom? Note that columns are always enumerated from left to right. The 'roworder' property is an enumeration that may be specified as: - One of the following enumeration values: ['top to bottom', 'bottom to top'] Returns ...
Is the first row the top or the bottom? Note that columns are always enumerated from left to right. The 'roworder' property is an enumeration that may be specified as: - One of the following enumeration values: ['top to bottom', 'bottom to top']
def roworder(self): """ Is the first row the top or the bottom? Note that columns are always enumerated from left to right. The 'roworder' property is an enumeration that may be specified as: - One of the following enumeration values: ['top to bottom', 'bot...
[ "def", "roworder", "(", "self", ")", ":", "return", "self", "[", "\"roworder\"", "]" ]
[ 114, 4 ]
[ 127, 31 ]
python
en
['en', 'error', 'th']
False
Grid.rows
(self)
The number of rows in the grid. If you provide a 2D `subplots` array or a `yaxes` array, its length is used as the default. But it's also possible to have a different length, if you want to leave a row at the end for non-cartesian subplots. The 'rows' property is a integer ...
The number of rows in the grid. If you provide a 2D `subplots` array or a `yaxes` array, its length is used as the default. But it's also possible to have a different length, if you want to leave a row at the end for non-cartesian subplots. The 'rows' property is a integer ...
def rows(self): """ The number of rows in the grid. If you provide a 2D `subplots` array or a `yaxes` array, its length is used as the default. But it's also possible to have a different length, if you want to leave a row at the end for non-cartesian subplots. The 'r...
[ "def", "rows", "(", "self", ")", ":", "return", "self", "[", "\"rows\"", "]" ]
[ 136, 4 ]
[ 151, 27 ]
python
en
['en', 'error', 'th']
False
Grid.subplots
(self)
Used for freeform grids, where some axes may be shared across subplots but others are not. Each entry should be a cartesian subplot id, like "xy" or "x3y2", or "" to leave that cell empty. You may reuse x axes within the same column, and y axes within the same row. Non-cartesian...
Used for freeform grids, where some axes may be shared across subplots but others are not. Each entry should be a cartesian subplot id, like "xy" or "x3y2", or "" to leave that cell empty. You may reuse x axes within the same column, and y axes within the same row. Non-cartesian...
def subplots(self): """ Used for freeform grids, where some axes may be shared across subplots but others are not. Each entry should be a cartesian subplot id, like "xy" or "x3y2", or "" to leave that cell empty. You may reuse x axes within the same column, and y axes wit...
[ "def", "subplots", "(", "self", ")", ":", "return", "self", "[", "\"subplots\"", "]" ]
[ 160, 4 ]
[ 182, 31 ]
python
en
['en', 'error', 'th']
False
Grid.xaxes
(self)
Used with `yaxes` when the x and y axes are shared across columns and rows. Each entry should be an x axis id like "x", "x2", etc., or "" to not put an x axis in that column. Entries other than "" must be unique. Ignored if `subplots` is present. If missing but `yaxes` is presen...
Used with `yaxes` when the x and y axes are shared across columns and rows. Each entry should be an x axis id like "x", "x2", etc., or "" to not put an x axis in that column. Entries other than "" must be unique. Ignored if `subplots` is present. If missing but `yaxes` is presen...
def xaxes(self): """ Used with `yaxes` when the x and y axes are shared across columns and rows. Each entry should be an x axis id like "x", "x2", etc., or "" to not put an x axis in that column. Entries other than "" must be unique. Ignored if `subplots` is present. If m...
[ "def", "xaxes", "(", "self", ")", ":", "return", "self", "[", "\"xaxes\"", "]" ]
[ 191, 4 ]
[ 212, 28 ]
python
en
['en', 'error', 'th']
False
Grid.xgap
(self)
Horizontal space between grid cells, expressed as a fraction of the total width available to one cell. Defaults to 0.1 for coupled-axes grids and 0.2 for independent grids. The 'xgap' property is a number and may be specified as: - An int or float in the interval [0, 1] ...
Horizontal space between grid cells, expressed as a fraction of the total width available to one cell. Defaults to 0.1 for coupled-axes grids and 0.2 for independent grids. The 'xgap' property is a number and may be specified as: - An int or float in the interval [0, 1]
def xgap(self): """ Horizontal space between grid cells, expressed as a fraction of the total width available to one cell. Defaults to 0.1 for coupled-axes grids and 0.2 for independent grids. The 'xgap' property is a number and may be specified as: - An int or flo...
[ "def", "xgap", "(", "self", ")", ":", "return", "self", "[", "\"xgap\"", "]" ]
[ 221, 4 ]
[ 234, 27 ]
python
en
['en', 'error', 'th']
False
Grid.xside
(self)
Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar. The 'xside' property is an enumeration that may be specified as: - One of the following ...
Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar. The 'xside' property is an enumeration that may be specified as: - One of the following ...
def xside(self): """ Sets where the x axis labels and titles go. "bottom" means the very bottom of the grid. "bottom plot" is the lowest plot that each x axis is used in. "top" and "top plot" are similar. The 'xside' property is an enumeration that may be specified as: ...
[ "def", "xside", "(", "self", ")", ":", "return", "self", "[", "\"xside\"", "]" ]
[ 243, 4 ]
[ 257, 28 ]
python
en
['en', 'error', 'th']
False
Grid.yaxes
(self)
Used with `yaxes` when the x and y axes are shared across columns and rows. Each entry should be an y axis id like "y", "y2", etc., or "" to not put a y axis in that row. Entries other than "" must be unique. Ignored if `subplots` is present. If missing but `xaxes` is present, w...
Used with `yaxes` when the x and y axes are shared across columns and rows. Each entry should be an y axis id like "y", "y2", etc., or "" to not put a y axis in that row. Entries other than "" must be unique. Ignored if `subplots` is present. If missing but `xaxes` is present, w...
def yaxes(self): """ Used with `yaxes` when the x and y axes are shared across columns and rows. Each entry should be an y axis id like "y", "y2", etc., or "" to not put a y axis in that row. Entries other than "" must be unique. Ignored if `subplots` is present. If missi...
[ "def", "yaxes", "(", "self", ")", ":", "return", "self", "[", "\"yaxes\"", "]" ]
[ 266, 4 ]
[ 287, 28 ]
python
en
['en', 'error', 'th']
False
Grid.ygap
(self)
Vertical space between grid cells, expressed as a fraction of the total height available to one cell. Defaults to 0.1 for coupled-axes grids and 0.3 for independent grids. The 'ygap' property is a number and may be specified as: - An int or float in the interval [0, 1] ...
Vertical space between grid cells, expressed as a fraction of the total height available to one cell. Defaults to 0.1 for coupled-axes grids and 0.3 for independent grids. The 'ygap' property is a number and may be specified as: - An int or float in the interval [0, 1]
def ygap(self): """ Vertical space between grid cells, expressed as a fraction of the total height available to one cell. Defaults to 0.1 for coupled-axes grids and 0.3 for independent grids. The 'ygap' property is a number and may be specified as: - An int or floa...
[ "def", "ygap", "(", "self", ")", ":", "return", "self", "[", "\"ygap\"", "]" ]
[ 296, 4 ]
[ 309, 27 ]
python
en
['en', 'error', 'th']
False
Grid.yside
(self)
Sets where the y axis labels and titles go. "left" means the very left edge of the grid. *left plot* is the leftmost plot that each y axis is used in. "right" and *right plot* are similar. The 'yside' property is an enumeration that may be specified as: - One of t...
Sets where the y axis labels and titles go. "left" means the very left edge of the grid. *left plot* is the leftmost plot that each y axis is used in. "right" and *right plot* are similar. The 'yside' property is an enumeration that may be specified as: - One of t...
def yside(self): """ Sets where the y axis labels and titles go. "left" means the very left edge of the grid. *left plot* is the leftmost plot that each y axis is used in. "right" and *right plot* are similar. The 'yside' property is an enumeration that may be specif...
[ "def", "yside", "(", "self", ")", ":", "return", "self", "[", "\"yside\"", "]" ]
[ 318, 4 ]
[ 333, 28 ]
python
en
['en', 'error', 'th']
False
Grid.__init__
( self, arg=None, columns=None, domain=None, pattern=None, roworder=None, rows=None, subplots=None, xaxes=None, xgap=None, xside=None, yaxes=None, ygap=None, yside=None, **kwargs )
Construct a new Grid object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.Grid` columns The number of columns in the grid. If you provide a 2D ...
Construct a new Grid object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.Grid` columns The number of columns in the grid. If you provide a 2D ...
def __init__( self, arg=None, columns=None, domain=None, pattern=None, roworder=None, rows=None, subplots=None, xaxes=None, xgap=None, xside=None, yaxes=None, ygap=None, yside=None, **kwargs ): ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "columns", "=", "None", ",", "domain", "=", "None", ",", "pattern", "=", "None", ",", "roworder", "=", "None", ",", "rows", "=", "None", ",", "subplots", "=", "None", ",", "xaxes", "=", ...
[ 416, 4 ]
[ 600, 34 ]
python
en
['en', 'error', 'th']
False
calculate_iou_partly
(gt_annos, dt_annos, metric, num_parts=50)
Fast iou algorithm. this function can be used independently to do result analysis. Must be used in CAMERA coordinate system. Args: gt_annos (dict): Must from get_label_annos() in kitti_common.py. dt_annos (dict): Must from get_label_annos() in kitti_common.py. metric (int): Eval type. 0...
Fast iou algorithm. this function can be used independently to do result analysis. Must be used in CAMERA coordinate system.
def calculate_iou_partly(gt_annos, dt_annos, metric, num_parts=50): """Fast iou algorithm. this function can be used independently to do result analysis. Must be used in CAMERA coordinate system. Args: gt_annos (dict): Must from get_label_annos() in kitti_common.py. dt_annos (dict): Must fr...
[ "def", "calculate_iou_partly", "(", "gt_annos", ",", "dt_annos", ",", "metric", ",", "num_parts", "=", "50", ")", ":", "assert", "len", "(", "gt_annos", ")", "==", "len", "(", "dt_annos", ")", "total_dt_num", "=", "np", ".", "stack", "(", "[", "len", "...
[ 340, 0 ]
[ 415, 64 ]
python
en
['en', 'en', 'en']
True
eval_class
(gt_annos, dt_annos, current_classes, difficultys, metric, min_overlaps, compute_aos=False, num_parts=200)
Kitti eval. support 2d/bev/3d/aos eval. support 0.5:0.05:0.95 coco AP. Args: gt_annos (dict): Must from get_label_annos() in kitti_common.py. dt_annos (dict): Must from get_label_annos() in kitti_common.py. current_classes (list[int]): 0: car, 1: pedestrian, 2: cyclist. difficultys ...
Kitti eval. support 2d/bev/3d/aos eval. support 0.5:0.05:0.95 coco AP.
def eval_class(gt_annos, dt_annos, current_classes, difficultys, metric, min_overlaps, compute_aos=False, num_parts=200): """Kitti eval. support 2d/bev/3d/aos eval. support 0.5:0.05:0.95 coco AP. Args: ...
[ "def", "eval_class", "(", "gt_annos", ",", "dt_annos", ",", "current_classes", ",", "difficultys", ",", "metric", ",", "min_overlaps", ",", "compute_aos", "=", "False", ",", "num_parts", "=", "200", ")", ":", "assert", "len", "(", "gt_annos", ")", "==", "l...
[ 449, 0 ]
[ 567, 19 ]
python
en
['fi', 'en', 'pt']
False
kitti_eval
(gt_annos, dt_annos, current_classes, eval_types=['bbox', 'bev', '3d'])
KITTI evaluation. Args: gt_annos (list[dict]): Contain gt information of each sample. dt_annos (list[dict]): Contain detected information of each sample. current_classes (list[str]): Classes to evaluation. eval_types (list[str], optional): Types to eval. Defaults to ['bb...
KITTI evaluation.
def kitti_eval(gt_annos, dt_annos, current_classes, eval_types=['bbox', 'bev', '3d']): """KITTI evaluation. Args: gt_annos (list[dict]): Contain gt information of each sample. dt_annos (list[dict]): Contain detected information of each sample. ...
[ "def", "kitti_eval", "(", "gt_annos", ",", "dt_annos", ",", "current_classes", ",", "eval_types", "=", "[", "'bbox'", ",", "'bev'", ",", "'3d'", "]", ")", ":", "assert", "len", "(", "eval_types", ")", ">", "0", ",", "'must contain at least one evaluation type'...
[ 642, 0 ]
[ 772, 27 ]
python
en
['en', 'fi', 'it']
False
kitti_eval_coco_style
(gt_annos, dt_annos, current_classes)
coco style evaluation of kitti. Args: gt_annos (list[dict]): Contain gt information of each sample. dt_annos (list[dict]): Contain detected information of each sample. current_classes (list[str]): Classes to evaluation. Returns: string: Evaluation results.
coco style evaluation of kitti.
def kitti_eval_coco_style(gt_annos, dt_annos, current_classes): """coco style evaluation of kitti. Args: gt_annos (list[dict]): Contain gt information of each sample. dt_annos (list[dict]): Contain detected information of each sample. current_classes (list[str]): Classes to evaluation. ...
[ "def", "kitti_eval_coco_style", "(", "gt_annos", ",", "dt_annos", ",", "current_classes", ")", ":", "class_to_name", "=", "{", "0", ":", "'Car'", ",", "1", ":", "'Pedestrian'", ",", "2", ":", "'Cyclist'", ",", "3", ":", "'Van'", ",", "4", ":", "'Person_s...
[ 775, 0 ]
[ 844, 17 ]
python
en
['en', 'en', 'en']
True
Hoverlabel.align
(self)
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeration values: ['...
def align(self): """ Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines The 'align' property is an enumeration that may be specified as: - One of the following enumeratio...
[ "def", "align", "(", "self", ")", ":", "return", "self", "[", "\"align\"", "]" ]
[ 25, 4 ]
[ 40, 28 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.alignsrc
(self)
Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' 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 align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def alignsrc(self): """ Sets the source reference on Chart Studio Cloud for align . The 'alignsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["alignsrc"]
[ "def", "alignsrc", "(", "self", ")", ":", "return", "self", "[", "\"alignsrc\"", "]" ]
[ 49, 4 ]
[ 60, 31 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolor
(self)
Sets the background color of the hover labels for this trace 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...
Sets the background color of the hover labels for this trace 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): """ Sets the background color of the hover labels for this trace 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%)...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 69, 4 ]
[ 120, 30 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bgcolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' 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 bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bgcolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bgcolor . The 'bgcolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bgcolorsrc"]
[ "def", "bgcolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bgcolorsrc\"", "]" ]
[ 129, 4 ]
[ 140, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolor
(self)
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva st...
Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva st...
def bordercolor(self): """ Sets the border color of the hover labels for this trace. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 149, 4 ]
[ 200, 34 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.bordercolorsrc
(self)
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def bordercolorsrc(self): """ Sets the source reference on Chart Studio Cloud for bordercolor . The 'bordercolorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["bo...
[ "def", "bordercolorsrc", "(", "self", ")", ":", "return", "self", "[", "\"bordercolorsrc\"", "]" ]
[ 209, 4 ]
[ 221, 37 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.font
(self)
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.splom.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.splom.hoverlabel.Font` - A dict of string/value properties that will be passed to the Font constructor ...
def font(self): """ Sets the font used in hover labels. The 'font' property is an instance of Font that may be specified as: - An instance of :class:`plotly.graph_objs.splom.hoverlabel.Font` - A dict of string/value properties that will be passed to t...
[ "def", "font", "(", "self", ")", ":", "return", "self", "[", "\"font\"", "]" ]
[ 230, 4 ]
[ 277, 27 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelength
(self)
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it...
def namelength(self): """ Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than ...
[ "def", "namelength", "(", "self", ")", ":", "return", "self", "[", "\"namelength\"", "]" ]
[ 286, 4 ]
[ 304, 33 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.namelengthsrc
(self)
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def namelengthsrc(self): """ Sets the source reference on Chart Studio Cloud for namelength . The 'namelengthsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["name...
[ "def", "namelengthsrc", "(", "self", ")", ":", "return", "self", "[", "\"namelengthsrc\"", "]" ]
[ 313, 4 ]
[ 325, 36 ]
python
en
['en', 'error', 'th']
False
Hoverlabel.__init__
( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs )
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.splom.Hoverlabel` align Sets the horizontal alignment of the text ...
Construct a new Hoverlabel object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.splom.Hoverlabel` align Sets the horizontal alignment of the text ...
def __init__( self, arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs ): """ Construct a n...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "align", "=", "None", ",", "alignsrc", "=", "None", ",", "bgcolor", "=", "None", ",", "bgcolorsrc", "=", "None", ",", "bordercolor", "=", "None", ",", "bordercolorsrc", "=", "None", ",", "...
[ 370, 4 ]
[ 502, 34 ]
python
en
['en', 'error', 'th']
False
ELI5Teacher.load_eli5
(self, opt)
Load data based on data split.
Load data based on data split.
def load_eli5(self, opt): """ Load data based on data split. """ dp = opt['datapath'] dt = opt['datatype'].split(':')[0] eli_path = "eli5/processed_data/selected_15_1/explainlikeimfive_" fname = os.path.join(dp, eli_path + dt + ".json") if not PathManager....
[ "def", "load_eli5", "(", "self", ",", "opt", ")", ":", "dp", "=", "opt", "[", "'datapath'", "]", "dt", "=", "opt", "[", "'datatype'", "]", ".", "split", "(", "':'", ")", "[", "0", "]", "eli_path", "=", "\"eli5/processed_data/selected_15_1/explainlikeimfive...
[ 41, 4 ]
[ 71, 17 ]
python
en
['en', 'error', 'th']
False
Domain.column
(self)
If there is a layout grid, use the domain for this column in the grid for this treemap trace . The 'column' property is a integer and may be specified as: - An int (or float that will be cast to an int) in the interval [0, 9223372036854775807] Returns ...
If there is a layout grid, use the domain for this column in the grid for this treemap trace . The 'column' property is a integer and may be specified as: - An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
def column(self): """ If there is a layout grid, use the domain for this column in the grid for this treemap trace . The 'column' property is a integer and may be specified as: - An int (or float that will be cast to an int) in the interval [0, 9223372036854775...
[ "def", "column", "(", "self", ")", ":", "return", "self", "[", "\"column\"", "]" ]
[ 15, 4 ]
[ 28, 29 ]
python
en
['en', 'error', 'th']
False
Domain.row
(self)
If there is a layout grid, use the domain for this row in the grid for this treemap trace . The 'row' property is a integer and may be specified as: - An int (or float that will be cast to an int) in the interval [0, 9223372036854775807] Returns -----...
If there is a layout grid, use the domain for this row in the grid for this treemap trace . The 'row' property is a integer and may be specified as: - An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
def row(self): """ If there is a layout grid, use the domain for this row in the grid for this treemap trace . The 'row' property is a integer and may be specified as: - An int (or float that will be cast to an int) in the interval [0, 9223372036854775807] ...
[ "def", "row", "(", "self", ")", ":", "return", "self", "[", "\"row\"", "]" ]
[ 37, 4 ]
[ 50, 26 ]
python
en
['en', 'error', 'th']
False
Domain.x
(self)
Sets the horizontal domain of this treemap trace (in plot fraction). The 'x' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'x[0]' property is a number and may be specified as: - An int or float in the interval ...
Sets the horizontal domain of this treemap trace (in plot fraction). The 'x' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'x[0]' property is a number and may be specified as: - An int or float in the interval ...
def x(self): """ Sets the horizontal domain of this treemap trace (in plot fraction). The 'x' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'x[0]' property is a number and may be specified as: - An int o...
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 59, 4 ]
[ 76, 24 ]
python
en
['en', 'error', 'th']
False
Domain.y
(self)
Sets the vertical domain of this treemap trace (in plot fraction). The 'y' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'y[0]' property is a number and may be specified as: - An int or float in the interval [0...
Sets the vertical domain of this treemap trace (in plot fraction). The 'y' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'y[0]' property is a number and may be specified as: - An int or float in the interval [0...
def y(self): """ Sets the vertical domain of this treemap trace (in plot fraction). The 'y' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'y[0]' property is a number and may be specified as: - An int or ...
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 85, 4 ]
[ 102, 24 ]
python
en
['en', 'error', 'th']
False
Domain.__init__
(self, arg=None, column=None, row=None, x=None, y=None, **kwargs)
Construct a new Domain object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.treemap.Domain` column If there is a layout grid, use the domain for t...
Construct a new Domain object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.treemap.Domain` column If there is a layout grid, use the domain for t...
def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs....
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "column", "=", "None", ",", "row", "=", "None", ",", "x", "=", "None", ",", "y", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Domain", ",", "self", ")", ".", "__i...
[ 127, 4 ]
[ 206, 34 ]
python
en
['en', 'error', 'th']
False
setup
(bot)
Mandatory function to add the Cog to the bot.
Mandatory function to add the Cog to the bot.
def setup(bot): """ Mandatory function to add the Cog to the bot. """ bot.add_cog(GithubCog(bot))
[ "def", "setup", "(", "bot", ")", ":", "bot", ".", "add_cog", "(", "GithubCog", "(", "bot", ")", ")" ]
[ 767, 0 ]
[ 771, 31 ]
python
en
['en', 'error', 'th']
False
GithubCog.list_branches
(self, ctx: commands.Context)
Lists up to 24 of the newest Branches from all branches with changes in the last 90 days. Shows date of last change, user and provides a link. Example: @AntiPetros list_branches
Lists up to 24 of the newest Branches from all branches with changes in the last 90 days.
async def list_branches(self, ctx: commands.Context): """ Lists up to 24 of the newest Branches from all branches with changes in the last 90 days. Shows date of last change, user and provides a link. Example: @AntiPetros list_branches """ fields = [] ...
[ "async", "def", "list_branches", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ")", ":", "fields", "=", "[", "]", "for", "branch", "in", "sorted", "(", "self", ".", "branches", ",", "key", "=", "lambda", "x", ":", "x", ".", "latest_commit...
[ 556, 4 ]
[ 580, 66 ]
python
en
['en', 'error', 'th']
False
GithubCog.open_github_issues
(self, ctx: commands.Context, since_days_ago: Optional[int] = 31, label_operator: Optional[GithubLabelOperatorConverter] = None, *, labels: GitHubLabelConverter = None)
Gets all open github issues of the antistasi repo. Args: since_days_ago (Optional[int], optional): Retrieves only Issues that are younger than this amount of Days. Defaults to 31. labels (str, optional): Retrieves only issues with these label and all if None, labels do not need...
Gets all open github issues of the antistasi repo.
async def open_github_issues(self, ctx: commands.Context, since_days_ago: Optional[int] = 31, label_operator: Optional[GithubLabelOperatorConverter] = None, *, labels: GitHubLabelConverter = None): """ Gets all open github issues of the antistasi repo. Args: since_days_ago (Optional...
[ "async", "def", "open_github_issues", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ",", "since_days_ago", ":", "Optional", "[", "int", "]", "=", "31", ",", "label_operator", ":", "Optional", "[", "GithubLabelOperatorConverter", "]", "=", "None", ...
[ 583, 4 ]
[ 632, 40 ]
python
en
['en', 'error', 'th']
False
validate_onboarding
(data)
Check the contents of the data to ensure they are valid.
Check the contents of the data to ensure they are valid.
def validate_onboarding(data): """ Check the contents of the data to ensure they are valid. """ print(f"Validating onboarding data {data}") messages = data['outputs']['messages'] if len(messages) == 0: return False status_message = messages[-2] if status_message is None: ...
[ "def", "validate_onboarding", "(", "data", ")", ":", "print", "(", "f\"Validating onboarding data {data}\"", ")", "messages", "=", "data", "[", "'outputs'", "]", "[", "'messages'", "]", "if", "len", "(", "messages", ")", "==", "0", ":", "return", "False", "s...
[ 600, 0 ]
[ 615, 42 ]
python
en
['en', 'error', 'th']
False