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
DictionaryAgent.set_tokenization_mode
(self, mode: TokenizationMode)
Indicate what "kind" of tokenization is being done. This can be Training Time / Testing Time, and it can be over context or labels. This is used to signal from TorchAgent to the dict that it's allowed to enable things like BPE dropout. It is NOT used to indicate whether ...
Indicate what "kind" of tokenization is being done.
def set_tokenization_mode(self, mode: TokenizationMode): """ Indicate what "kind" of tokenization is being done. This can be Training Time / Testing Time, and it can be over context or labels. This is used to signal from TorchAgent to the dict that it's allowed to enabl...
[ "def", "set_tokenization_mode", "(", "self", ",", "mode", ":", "TokenizationMode", ")", ":", "self", ".", "_context_mode", "=", "mode", "if", "hasattr", "(", "self", ",", "'bpe'", ")", ":", "# enable bpe dropout only in texts at training time. disable all", "# other t...
[ 825, 4 ]
[ 842, 81 ]
python
en
['en', 'error', 'th']
False
XBins.end
(self)
Sets the end value for the x axis bins. The last bin may not end exactly at this value, we increment the bin edge by `size` from `start` until we reach or exceed `end`. Defaults to the maximum data value. Like `start`, for dates use a date string, and for category data `end` is ...
Sets the end value for the x axis bins. The last bin may not end exactly at this value, we increment the bin edge by `size` from `start` until we reach or exceed `end`. Defaults to the maximum data value. Like `start`, for dates use a date string, and for category data `end` is ...
def end(self): """ Sets the end value for the x axis bins. The last bin may not end exactly at this value, we increment the bin edge by `size` from `start` until we reach or exceed `end`. Defaults to the maximum data value. Like `start`, for dates use a date string, and f...
[ "def", "end", "(", "self", ")", ":", "return", "self", "[", "\"end\"", "]" ]
[ 15, 4 ]
[ 30, 26 ]
python
en
['en', 'error', 'th']
False
XBins.size
(self)
Sets the size of each x axis bin. Default behavior: If `nbinsx` is 0 or omitted, we choose a nice round bin size such that the number of bins is about the same as the typical number of samples in each bin. If `nbinsx` is provided, we choose a nice round bin size giving no more t...
Sets the size of each x axis bin. Default behavior: If `nbinsx` is 0 or omitted, we choose a nice round bin size such that the number of bins is about the same as the typical number of samples in each bin. If `nbinsx` is provided, we choose a nice round bin size giving no more t...
def size(self): """ Sets the size of each x axis bin. Default behavior: If `nbinsx` is 0 or omitted, we choose a nice round bin size such that the number of bins is about the same as the typical number of samples in each bin. If `nbinsx` is provided, we choose a nice roun...
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 39, 4 ]
[ 60, 27 ]
python
en
['en', 'error', 'th']
False
XBins.start
(self)
Sets the starting value for the x axis bins. Defaults to the minimum data value, shifted down if necessary to make nice round values and to remove ambiguous bin edges. For example, if most of the data is integers we shift the bin edges 0.5 down, so a `size` of 5 would have a def...
Sets the starting value for the x axis bins. Defaults to the minimum data value, shifted down if necessary to make nice round values and to remove ambiguous bin edges. For example, if most of the data is integers we shift the bin edges 0.5 down, so a `size` of 5 would have a def...
def start(self): """ Sets the starting value for the x axis bins. Defaults to the minimum data value, shifted down if necessary to make nice round values and to remove ambiguous bin edges. For example, if most of the data is integers we shift the bin edges 0.5 down, so a ...
[ "def", "start", "(", "self", ")", ":", "return", "self", "[", "\"start\"", "]" ]
[ 69, 4 ]
[ 91, 28 ]
python
en
['en', 'error', 'th']
False
XBins.__init__
(self, arg=None, end=None, size=None, start=None, **kwargs)
Construct a new XBins object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.XBins` end Sets the end value for the x axis bins. The last b...
Construct a new XBins object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram.XBins` end Sets the end value for the x axis bins. The last b...
def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): """ Construct a new XBins object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogr...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "end", "=", "None", ",", "size", "=", "None", ",", "start", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "XBins", ",", "self", ")", ".", "__init__", "(", "\"xbins\"", ...
[ 141, 4 ]
[ 241, 34 ]
python
en
['en', 'error', 'th']
False
Unselected.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properti...
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properti...
def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.scattermapbox.unselected.Marker` - A dict of string/value properties that will be passed to the Marker constructor ...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 15, 4 ]
[ 39, 29 ]
python
en
['en', 'error', 'th']
False
Unselected.__init__
(self, arg=None, marker=None, **kwargs)
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox.Unselected` marker :class:`plotly.graph_objects.scat...
Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox.Unselected` marker :class:`plotly.graph_objects.scat...
def __init__(self, arg=None, marker=None, **kwargs): """ Construct a new Unselected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattermapbox.Unselect...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "marker", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Unselected", ",", "self", ")", ".", "__init__", "(", "\"unselected\"", ")", "if", "\"_parent\"", "in", "kwargs", ":...
[ 55, 4 ]
[ 113, 34 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram2d.co lorbar.Tickformatstop` dtickrange range [*min*,...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.histogram2d.co lorbar.Tickformatstop` dtickrange range [*min*,...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
Lighting.ambient
(self)
Ambient light increases overall color visibility but can wash out the image. The 'ambient' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Ambient light increases overall color visibility but can wash out the image. The 'ambient' property is a number and may be specified as: - An int or float in the interval [0, 1]
def ambient(self): """ Ambient light increases overall color visibility but can wash out the image. The 'ambient' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ r...
[ "def", "ambient", "(", "self", ")", ":", "return", "self", "[", "\"ambient\"", "]" ]
[ 23, 4 ]
[ 35, 30 ]
python
en
['en', 'error', 'th']
False
Lighting.diffuse
(self)
Represents the extent that incident rays are reflected in a range of angles. The 'diffuse' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Represents the extent that incident rays are reflected in a range of angles. The 'diffuse' property is a number and may be specified as: - An int or float in the interval [0, 1]
def diffuse(self): """ Represents the extent that incident rays are reflected in a range of angles. The 'diffuse' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ r...
[ "def", "diffuse", "(", "self", ")", ":", "return", "self", "[", "\"diffuse\"", "]" ]
[ 44, 4 ]
[ 56, 30 ]
python
en
['en', 'error', 'th']
False
Lighting.facenormalsepsilon
(self)
Epsilon for face normals calculation avoids math issues arising from degenerate geometry. The 'facenormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Epsilon for face normals calculation avoids math issues arising from degenerate geometry. The 'facenormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1]
def facenormalsepsilon(self): """ Epsilon for face normals calculation avoids math issues arising from degenerate geometry. The 'facenormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- ...
[ "def", "facenormalsepsilon", "(", "self", ")", ":", "return", "self", "[", "\"facenormalsepsilon\"", "]" ]
[ 65, 4 ]
[ 77, 41 ]
python
en
['en', 'error', 'th']
False
Lighting.fresnel
(self)
Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective when viewing it from the edge of the paper (almost 90 degrees), causing shine. The 'fresnel' property is a number and may be specified as: - An int or float in the interval [0, 5] ...
Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective when viewing it from the edge of the paper (almost 90 degrees), causing shine. The 'fresnel' property is a number and may be specified as: - An int or float in the interval [0, 5]
def fresnel(self): """ Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective when viewing it from the edge of the paper (almost 90 degrees), causing shine. The 'fresnel' property is a number and may be specified as: - An int or f...
[ "def", "fresnel", "(", "self", ")", ":", "return", "self", "[", "\"fresnel\"", "]" ]
[ 86, 4 ]
[ 99, 30 ]
python
en
['en', 'error', 'th']
False
Lighting.roughness
(self)
Alters specular reflection; the rougher the surface, the wider and less contrasty the shine. The 'roughness' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Alters specular reflection; the rougher the surface, the wider and less contrasty the shine. The 'roughness' property is a number and may be specified as: - An int or float in the interval [0, 1]
def roughness(self): """ Alters specular reflection; the rougher the surface, the wider and less contrasty the shine. The 'roughness' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float ...
[ "def", "roughness", "(", "self", ")", ":", "return", "self", "[", "\"roughness\"", "]" ]
[ 108, 4 ]
[ 120, 32 ]
python
en
['en', 'error', 'th']
False
Lighting.specular
(self)
Represents the level that incident rays are reflected in a single direction, causing shine. The 'specular' property is a number and may be specified as: - An int or float in the interval [0, 2] Returns ------- int|float
Represents the level that incident rays are reflected in a single direction, causing shine. The 'specular' property is a number and may be specified as: - An int or float in the interval [0, 2]
def specular(self): """ Represents the level that incident rays are reflected in a single direction, causing shine. The 'specular' property is a number and may be specified as: - An int or float in the interval [0, 2] Returns ------- int|float ...
[ "def", "specular", "(", "self", ")", ":", "return", "self", "[", "\"specular\"", "]" ]
[ 129, 4 ]
[ 141, 31 ]
python
en
['en', 'error', 'th']
False
Lighting.vertexnormalsepsilon
(self)
Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. The 'vertexnormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. The 'vertexnormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1]
def vertexnormalsepsilon(self): """ Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. The 'vertexnormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------...
[ "def", "vertexnormalsepsilon", "(", "self", ")", ":", "return", "self", "[", "\"vertexnormalsepsilon\"", "]" ]
[ 150, 4 ]
[ 162, 43 ]
python
en
['en', 'error', 'th']
False
Lighting.__init__
( self, arg=None, ambient=None, diffuse=None, facenormalsepsilon=None, fresnel=None, roughness=None, specular=None, vertexnormalsepsilon=None, **kwargs )
Construct a new Lighting object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.cone.Lighting` ambient Ambient light increases overall color visibility but ...
Construct a new Lighting object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.cone.Lighting` ambient Ambient light increases overall color visibility but ...
def __init__( self, arg=None, ambient=None, diffuse=None, facenormalsepsilon=None, fresnel=None, roughness=None, specular=None, vertexnormalsepsilon=None, **kwargs ): """ Construct a new Lighting object ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "ambient", "=", "None", ",", "diffuse", "=", "None", ",", "facenormalsepsilon", "=", "None", ",", "fresnel", "=", "None", ",", "roughness", "=", "None", ",", "specular", "=", "None", ",", ...
[ 198, 4 ]
[ 310, 34 ]
python
en
['en', 'error', 'th']
False
IdrCache.getNym
(self, nym, role=None, isCommitted=True)
Get a nym, if role is provided then get nym with that role :param nym: :param role: :param isCommitted: :return:
Get a nym, if role is provided then get nym with that role :param nym: :param role: :param isCommitted: :return:
def getNym(self, nym, role=None, isCommitted=True): """ Get a nym, if role is provided then get nym with that role :param nym: :param role: :param isCommitted: :return: """ try: seqNo, txnTime, ta, actual_role, verkey = self.get(nym, isCommitte...
[ "def", "getNym", "(", "self", ",", "nym", ",", "role", "=", "None", ",", "isCommitted", "=", "True", ")", ":", "try", ":", "seqNo", ",", "txnTime", ",", "ta", ",", "actual_role", ",", "verkey", "=", "self", ".", "get", "(", "nym", ",", "isCommitted...
[ 122, 4 ]
[ 142, 9 ]
python
en
['en', 'error', 'th']
False
Selected.marker
(self)
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.choropleth.selected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: ...
The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.choropleth.selected.Marker` - A dict of string/value properties that will be passed to the Marker constructor Supported dict properties: ...
def marker(self): """ The 'marker' property is an instance of Marker that may be specified as: - An instance of :class:`plotly.graph_objs.choropleth.selected.Marker` - A dict of string/value properties that will be passed to the Marker constructor ...
[ "def", "marker", "(", "self", ")", ":", "return", "self", "[", "\"marker\"", "]" ]
[ 15, 4 ]
[ 32, 29 ]
python
en
['en', 'error', 'th']
False
Selected.__init__
(self, arg=None, marker=None, **kwargs)
Construct a new Selected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.choropleth.Selected` marker :class:`plotly.graph_objects.choropleth....
Construct a new Selected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.choropleth.Selected` marker :class:`plotly.graph_objects.choropleth....
def __init__(self, arg=None, marker=None, **kwargs): """ Construct a new Selected object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.choropleth.Selected` ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "marker", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Selected", ",", "self", ")", ".", "__init__", "(", "\"selected\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", ...
[ 48, 4 ]
[ 106, 34 ]
python
en
['en', 'error', 'th']
False
BaseAssigner.assign
(self, bboxes, gt_bboxes, gt_bboxes_ignore=None, gt_labels=None)
Assign boxes to either a ground truth boxe or a negative boxes.
Assign boxes to either a ground truth boxe or a negative boxes.
def assign(self, bboxes, gt_bboxes, gt_bboxes_ignore=None, gt_labels=None): """Assign boxes to either a ground truth boxe or a negative boxes.""" pass
[ "def", "assign", "(", "self", ",", "bboxes", ",", "gt_bboxes", ",", "gt_bboxes_ignore", "=", "None", ",", "gt_labels", "=", "None", ")", ":", "pass" ]
[ 7, 4 ]
[ 9, 12 ]
python
en
['en', 'en', 'en']
True
load_resource
(path: str, encoding: str = None)
Open a resource file located in a python package or the local filesystem. Args: path: The resource path in the form of `dir/file` or `package:dir/file` Returns: A file-like object representing the resource
Open a resource file located in a python package or the local filesystem.
def load_resource(path: str, encoding: str = None) -> TextIO: """ Open a resource file located in a python package or the local filesystem. Args: path: The resource path in the form of `dir/file` or `package:dir/file` Returns: A file-like object representing the resource """ com...
[ "def", "load_resource", "(", "path", ":", "str", ",", "encoding", ":", "str", "=", "None", ")", "->", "TextIO", ":", "components", "=", "path", ".", "rsplit", "(", "\":\"", ",", "1", ")", "try", ":", "if", "len", "(", "components", ")", "==", "1", ...
[ 15, 0 ]
[ 34, 12 ]
python
en
['en', 'error', 'th']
False
LoggingConfigurator.configure
( cls, logging_config_path: str = None, log_level: str = None, log_file: str = None, )
Configure logger. :param logging_config_path: str: (Default value = None) Optional path to custom logging config :param log_level: str: (Default value = None)
Configure logger.
def configure( cls, logging_config_path: str = None, log_level: str = None, log_file: str = None, ): """ Configure logger. :param logging_config_path: str: (Default value = None) Optional path to custom logging config :param log_level: st...
[ "def", "configure", "(", "cls", ",", "logging_config_path", ":", "str", "=", "None", ",", "log_level", ":", "str", "=", "None", ",", "log_file", ":", "str", "=", "None", ",", ")", ":", "if", "logging_config_path", "is", "not", "None", ":", "config_path",...
[ 41, 4 ]
[ 76, 44 ]
python
en
['en', 'error', 'th']
False
LoggingConfigurator.print_banner
( cls, agent_label, inbound_transports, outbound_transports, public_did, admin_server=None, banner_length=40, border_character=":", )
Print a startup banner describing the configuration. Args: agent_label: Agent Label inbound_transports: Configured inbound transports outbound_transports: Configured outbound transports admin_server: Admin server info public_did: Public DID ...
Print a startup banner describing the configuration.
def print_banner( cls, agent_label, inbound_transports, outbound_transports, public_did, admin_server=None, banner_length=40, border_character=":", ): """ Print a startup banner describing the configuration. Args: a...
[ "def", "print_banner", "(", "cls", ",", "agent_label", ",", "inbound_transports", ",", "outbound_transports", ",", "public_did", ",", "admin_server", "=", "None", ",", "banner_length", "=", "40", ",", "border_character", "=", "\":\"", ",", ")", ":", "def", "lr...
[ 79, 4 ]
[ 231, 15 ]
python
en
['en', 'error', 'th']
False
TestConnectionRequest.test_init
(self)
Test initialization.
Test initialization.
def test_init(self): """Test initialization.""" assert self.connection_request.label == self.test_label assert self.connection_request.connection.did == self.test_did
[ "def", "test_init", "(", "self", ")", ":", "assert", "self", ".", "connection_request", ".", "label", "==", "self", ".", "test_label", "assert", "self", ".", "connection_request", ".", "connection", ".", "did", "==", "self", ".", "test_did" ]
[ 54, 4 ]
[ 57, 70 ]
python
co
['es', 'co', 'en']
False
TestConnectionRequest.test_deserialize
(self, mock_connection_request_schema_load)
Test deserialization.
Test deserialization.
def test_deserialize(self, mock_connection_request_schema_load): """ Test deserialization. """ obj = {"obj": "obj"} connection_request = ConnectionRequest.deserialize(obj) mock_connection_request_schema_load.assert_called_once_with(obj) assert connection_request...
[ "def", "test_deserialize", "(", "self", ",", "mock_connection_request_schema_load", ")", ":", "obj", "=", "{", "\"obj\"", ":", "\"obj\"", "}", "connection_request", "=", "ConnectionRequest", ".", "deserialize", "(", "obj", ")", "mock_connection_request_schema_load", "...
[ 68, 4 ]
[ 77, 85 ]
python
en
['en', 'error', 'th']
False
TestConnectionRequest.test_serialize
(self, mock_connection_request_schema_dump)
Test serialization.
Test serialization.
def test_serialize(self, mock_connection_request_schema_dump): """ Test serialization. """ connection_request_dict = self.connection_request.serialize() mock_connection_request_schema_dump.assert_called_once_with( self.connection_request ) assert ( ...
[ "def", "test_serialize", "(", "self", ",", "mock_connection_request_schema_dump", ")", ":", "connection_request_dict", "=", "self", ".", "connection_request", ".", "serialize", "(", ")", "mock_connection_request_schema_dump", ".", "assert_called_once_with", "(", "self", "...
[ 83, 4 ]
[ 94, 9 ]
python
en
['en', 'error', 'th']
False
Config.__init__
(self)
Class Initialyser
Class Initialyser
def __init__(self): """ Class Initialyser """ # Number of layers self.num_layers = len([block for block in self.architecture if 'pool' in block or 'strided' in block]) + 1 ################### # Deform layer list ################### # # Li...
[ "def", "__init__", "(", "self", ")", ":", "# Number of layers", "self", ".", "num_layers", "=", "len", "(", "[", "block", "for", "block", "in", "self", ".", "architecture", "if", "'pool'", "in", "block", "or", "'strided'", "in", "block", "]", ")", "+", ...
[ 194, 4 ]
[ 236, 21 ]
python
en
['en', 'error', 'th']
False
average_precision
(recalls, precisions, mode='area')
Calculate average precision (for single or multiple scales). Args: recalls (ndarray): shape (num_scales, num_dets) or (num_dets, ) precisions (ndarray): shape (num_scales, num_dets) or (num_dets, ) mode (str): 'area' or '11points', 'area' means calculating the area under precisi...
Calculate average precision (for single or multiple scales).
def average_precision(recalls, precisions, mode='area'): """Calculate average precision (for single or multiple scales). Args: recalls (ndarray): shape (num_scales, num_dets) or (num_dets, ) precisions (ndarray): shape (num_scales, num_dets) or (num_dets, ) mode (str): 'area' or '11poin...
[ "def", "average_precision", "(", "recalls", ",", "precisions", ",", "mode", "=", "'area'", ")", ":", "no_scale", "=", "False", "if", "recalls", ".", "ndim", "==", "1", ":", "no_scale", "=", "True", "recalls", "=", "recalls", "[", "np", ".", "newaxis", ...
[ 11, 0 ]
[ 55, 13 ]
python
en
['en', 'en', 'en']
True
tpfp_imagenet
(det_bboxes, gt_bboxes, gt_bboxes_ignore=None, default_iou_thr=0.5, area_ranges=None)
Check if detected bboxes are true positive or false positive. Args: det_bbox (ndarray): Detected bboxes of this image, of shape (m, 5). gt_bboxes (ndarray): GT bboxes of this image, of shape (n, 4). gt_bboxes_ignore (ndarray): Ignored gt bboxes of this image, of shape (k, 4). De...
Check if detected bboxes are true positive or false positive.
def tpfp_imagenet(det_bboxes, gt_bboxes, gt_bboxes_ignore=None, default_iou_thr=0.5, area_ranges=None): """Check if detected bboxes are true positive or false positive. Args: det_bbox (ndarray): Detected bboxes of this image, of sh...
[ "def", "tpfp_imagenet", "(", "det_bboxes", ",", "gt_bboxes", ",", "gt_bboxes_ignore", "=", "None", ",", "default_iou_thr", "=", "0.5", ",", "area_ranges", "=", "None", ")", ":", "# an indicator of ignored gts", "gt_ignore_inds", "=", "np", ".", "concatenate", "(",...
[ 58, 0 ]
[ 149, 17 ]
python
en
['en', 'en', 'en']
True
tpfp_default
(det_bboxes, gt_bboxes, gt_bboxes_ignore=None, iou_thr=0.5, area_ranges=None)
Check if detected bboxes are true positive or false positive. Args: det_bbox (ndarray): Detected bboxes of this image, of shape (m, 5). gt_bboxes (ndarray): GT bboxes of this image, of shape (n, 4). gt_bboxes_ignore (ndarray): Ignored gt bboxes of this image, of shape (k, 4). De...
Check if detected bboxes are true positive or false positive.
def tpfp_default(det_bboxes, gt_bboxes, gt_bboxes_ignore=None, iou_thr=0.5, area_ranges=None): """Check if detected bboxes are true positive or false positive. Args: det_bbox (ndarray): Detected bboxes of this image, of shape (m, 5). ...
[ "def", "tpfp_default", "(", "det_bboxes", ",", "gt_bboxes", ",", "gt_bboxes_ignore", "=", "None", ",", "iou_thr", "=", "0.5", ",", "area_ranges", "=", "None", ")", ":", "# an indicator of ignored gts", "gt_ignore_inds", "=", "np", ".", "concatenate", "(", "(", ...
[ 152, 0 ]
[ 236, 17 ]
python
en
['en', 'en', 'en']
True
get_cls_results
(det_results, annotations, class_id)
Get det results and gt information of a certain class. Args: det_results (list[list]): Same as `eval_map()`. annotations (list[dict]): Same as `eval_map()`. class_id (int): ID of a specific class. Returns: tuple[list[np.ndarray]]: detected bboxes, gt bboxes, ignored gt bboxes ...
Get det results and gt information of a certain class.
def get_cls_results(det_results, annotations, class_id): """Get det results and gt information of a certain class. Args: det_results (list[list]): Same as `eval_map()`. annotations (list[dict]): Same as `eval_map()`. class_id (int): ID of a specific class. Returns: tuple[li...
[ "def", "get_cls_results", "(", "det_results", ",", "annotations", ",", "class_id", ")", ":", "cls_dets", "=", "[", "img_res", "[", "class_id", "]", "for", "img_res", "in", "det_results", "]", "cls_gts", "=", "[", "]", "cls_gts_ignore", "=", "[", "]", "for"...
[ 239, 0 ]
[ 263, 44 ]
python
en
['en', 'en', 'en']
True
eval_map
(det_results, annotations, scale_ranges=None, iou_thr=0.5, dataset=None, logger=None, nproc=4)
Evaluate mAP of a dataset. Args: det_results (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indicates images, and the inner list indicates per-class detected bboxes. annotations (list[dict]): Ground truth annotations where each item of the list in...
Evaluate mAP of a dataset.
def eval_map(det_results, annotations, scale_ranges=None, iou_thr=0.5, dataset=None, logger=None, nproc=4): """Evaluate mAP of a dataset. Args: det_results (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer...
[ "def", "eval_map", "(", "det_results", ",", "annotations", ",", "scale_ranges", "=", "None", ",", "iou_thr", "=", "0.5", ",", "dataset", "=", "None", ",", "logger", "=", "None", ",", "nproc", "=", "4", ")", ":", "assert", "len", "(", "det_results", ")"...
[ 266, 0 ]
[ 389, 32 ]
python
en
['en', 'en', 'en']
True
print_map_summary
(mean_ap, results, dataset=None, scale_ranges=None, logger=None)
Print mAP and results of each class. A table will be printed to show the gts/dets/recall/AP of each class and the mAP. Args: mean_ap (float): Calculated from `eval_map()`. results (list[dict]): Calculated from `eval_map()`. dataset (list[str] | str | None): Dataset name or dataset ...
Print mAP and results of each class.
def print_map_summary(mean_ap, results, dataset=None, scale_ranges=None, logger=None): """Print mAP and results of each class. A table will be printed to show the gts/dets/recall/AP of each class and the mAP. Args:...
[ "def", "print_map_summary", "(", "mean_ap", ",", "results", ",", "dataset", "=", "None", ",", "scale_ranges", "=", "None", ",", "logger", "=", "None", ")", ":", "if", "logger", "==", "'silent'", ":", "return", "if", "isinstance", "(", "results", "[", "0"...
[ 392, 0 ]
[ 457, 52 ]
python
en
['en', 'en', 'en']
True
Textfont.color
(self)
Sets the text font color of selected points. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,1...
Sets the text font color of selected points. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,1...
def color(self): """ Sets the text font color of selected points. The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hs...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 65, 28 ]
python
en
['en', 'error', 'th']
False
Textfont.__init__
(self, arg=None, color=None, **kwargs)
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergeo.selected.Textfont` color Sets the text font color of sele...
Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergeo.selected.Textfont` color Sets the text font color of sele...
def __init__(self, arg=None, color=None, **kwargs): """ Construct a new Textfont object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergeo.selected.Textf...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "color", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Textfont", ",", "self", ")", ".", "__init__", "(", "\"textfont\"", ")", "if", "\"_parent\"", "in", "kwargs", ":", ...
[ 80, 4 ]
[ 137, 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
Projection.parallels
(self)
For conic projection types only. Sets the parallels (tangent, secant) where the cone intersects the sphere. The 'parallels' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'parallels[0]' property is a number and may be spe...
For conic projection types only. Sets the parallels (tangent, secant) where the cone intersects the sphere. The 'parallels' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'parallels[0]' property is a number and may be spe...
def parallels(self): """ For conic projection types only. Sets the parallels (tangent, secant) where the cone intersects the sphere. The 'parallels' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The 'parallels[0]' pro...
[ "def", "parallels", "(", "self", ")", ":", "return", "self", "[", "\"parallels\"", "]" ]
[ 15, 4 ]
[ 32, 32 ]
python
en
['en', 'error', 'th']
False
Projection.rotation
(self)
The 'rotation' property is an instance of Rotation that may be specified as: - An instance of :class:`plotly.graph_objs.layout.geo.projection.Rotation` - A dict of string/value properties that will be passed to the Rotation constructor Supported dict pro...
The 'rotation' property is an instance of Rotation that may be specified as: - An instance of :class:`plotly.graph_objs.layout.geo.projection.Rotation` - A dict of string/value properties that will be passed to the Rotation constructor Supported dict pro...
def rotation(self): """ The 'rotation' property is an instance of Rotation that may be specified as: - An instance of :class:`plotly.graph_objs.layout.geo.projection.Rotation` - A dict of string/value properties that will be passed to the Rotation constructor ...
[ "def", "rotation", "(", "self", ")", ":", "return", "self", "[", "\"rotation\"", "]" ]
[ 41, 4 ]
[ 66, 31 ]
python
en
['en', 'error', 'th']
False
Projection.scale
(self)
Zooms in or out on the map view. A scale of 1 corresponds to the largest zoom level that fits the map's lon and lat ranges. The 'scale' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float ...
Zooms in or out on the map view. A scale of 1 corresponds to the largest zoom level that fits the map's lon and lat ranges. The 'scale' property is a number and may be specified as: - An int or float in the interval [0, inf]
def scale(self): """ Zooms in or out on the map view. A scale of 1 corresponds to the largest zoom level that fits the map's lon and lat ranges. The 'scale' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns --...
[ "def", "scale", "(", "self", ")", ":", "return", "self", "[", "\"scale\"", "]" ]
[ 75, 4 ]
[ 87, 28 ]
python
en
['en', 'error', 'th']
False
Projection.type
(self)
Sets the projection type. The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ['equirectangular', 'mercator', 'orthographic', 'natural earth', 'kavrayskiy7', 'miller', 'robinson', 'eckert4', ...
Sets the projection type. The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ['equirectangular', 'mercator', 'orthographic', 'natural earth', 'kavrayskiy7', 'miller', 'robinson', 'eckert4', ...
def type(self): """ Sets the projection type. The 'type' property is an enumeration that may be specified as: - One of the following enumeration values: ['equirectangular', 'mercator', 'orthographic', 'natural earth', 'kavrayskiy7', 'miller', 'robin...
[ "def", "type", "(", "self", ")", ":", "return", "self", "[", "\"type\"", "]" ]
[ 96, 4 ]
[ 114, 27 ]
python
en
['en', 'error', 'th']
False
Projection.__init__
( self, arg=None, parallels=None, rotation=None, scale=None, type=None, **kwargs )
Construct a new Projection object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.geo.Projection` parallels For conic projection types only. ...
Construct a new Projection object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.layout.geo.Projection` parallels For conic projection types only. ...
def __init__( self, arg=None, parallels=None, rotation=None, scale=None, type=None, **kwargs ): """ Construct a new Projection object Parameters ---------- arg dict of properties compatible with this constructor or an instance of ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "parallels", "=", "None", ",", "rotation", "=", "None", ",", "scale", "=", "None", ",", "type", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Projection", ",", "self", ...
[ 139, 4 ]
[ 220, 34 ]
python
en
['en', 'error', 'th']
False
walk_push_to_template
(fig_obj, template_obj, skip)
Move style properties from fig_obj to template_obj. Parameters ---------- fig_obj: plotly.basedatatypes.BasePlotlyType template_obj: plotly.basedatatypes.BasePlotlyType skip: set of str Set of names of properties to skip
Move style properties from fig_obj to template_obj.
def walk_push_to_template(fig_obj, template_obj, skip): """ Move style properties from fig_obj to template_obj. Parameters ---------- fig_obj: plotly.basedatatypes.BasePlotlyType template_obj: plotly.basedatatypes.BasePlotlyType skip: set of str Set of names of properties to skip ...
[ "def", "walk_push_to_template", "(", "fig_obj", ",", "template_obj", ",", "skip", ")", ":", "from", "_plotly_utils", ".", "basevalidators", "import", "(", "CompoundValidator", ",", "CompoundArrayValidator", ",", "is_array", ",", ")", "for", "prop", "in", "list", ...
[ 281, 0 ]
[ 348, 20 ]
python
en
['en', 'error', 'th']
False
to_templated
(fig, skip=("title", "text"))
Return a copy of a figure where all styling properties have been moved into the figure's template. The template property of the resulting figure may then be used to set the default styling of other figures. Parameters ---------- fig Figure object or dict representing a figure skip...
Return a copy of a figure where all styling properties have been moved into the figure's template. The template property of the resulting figure may then be used to set the default styling of other figures.
def to_templated(fig, skip=("title", "text")): """ Return a copy of a figure where all styling properties have been moved into the figure's template. The template property of the resulting figure may then be used to set the default styling of other figures. Parameters ---------- fig ...
[ "def", "to_templated", "(", "fig", ",", "skip", "=", "(", "\"title\"", ",", "\"text\"", ")", ")", ":", "# process fig", "from", "plotly", ".", "basedatatypes", "import", "BaseFigure", "from", "plotly", ".", "graph_objs", "import", "Figure", "if", "not", "isi...
[ 351, 0 ]
[ 498, 24 ]
python
en
['en', 'error', 'th']
False
TemplatesConfig.update
(self, d={}, **kwargs)
Update one or more templates from a dict or from input keyword arguments. Parameters ---------- d: dict Dictionary from template names to new template values. kwargs Named argument value pairs where the name is a template name and th...
Update one or more templates from a dict or from input keyword arguments.
def update(self, d={}, **kwargs): """ Update one or more templates from a dict or from input keyword arguments. Parameters ---------- d: dict Dictionary from template names to new template values. kwargs Named argument value pairs where t...
[ "def", "update", "(", "self", ",", "d", "=", "{", "}", ",", "*", "*", "kwargs", ")", ":", "for", "k", ",", "v", "in", "dict", "(", "d", ",", "*", "*", "kwargs", ")", ".", "items", "(", ")", ":", "self", "[", "k", "]", "=", "v" ]
[ 122, 4 ]
[ 137, 23 ]
python
en
['en', 'error', 'th']
False
TemplatesConfig.default
(self)
The name of the default template, or None if no there is no default If not None, the default template is automatically applied to all figures during figure construction if no explicit template is specified. The names of available templates may be retrieved with: >>> i...
The name of the default template, or None if no there is no default
def default(self): """ The name of the default template, or None if no there is no default If not None, the default template is automatically applied to all figures during figure construction if no explicit template is specified. The names of available templates may be ...
[ "def", "default", "(", "self", ")", ":", "return", "self", ".", "_default" ]
[ 141, 4 ]
[ 158, 28 ]
python
en
['en', 'error', 'th']
False
TemplatesConfig._available_templates_str
(self)
Return nicely wrapped string representation of all available template names
Return nicely wrapped string representation of all available template names
def _available_templates_str(self): """ Return nicely wrapped string representation of all available template names """ available = "\n".join( textwrap.wrap( repr(list(self)), width=79 - 8, initial_indent=" " * 8, ...
[ "def", "_available_templates_str", "(", "self", ")", ":", "available", "=", "\"\\n\"", ".", "join", "(", "textwrap", ".", "wrap", "(", "repr", "(", "list", "(", "self", ")", ")", ",", "width", "=", "79", "-", "8", ",", "initial_indent", "=", "\" \"", ...
[ 181, 4 ]
[ 194, 24 ]
python
en
['en', 'error', 'th']
False
TemplatesConfig.merge_templates
(self, *args)
Merge a collection of templates into a single combined template. Templates are process from left to right so if multiple templates specify the same propery, the right-most template will take precedence. Parameters ---------- args: list of Template Ze...
Merge a collection of templates into a single combined template. Templates are process from left to right so if multiple templates specify the same propery, the right-most template will take precedence.
def merge_templates(self, *args): """ Merge a collection of templates into a single combined template. Templates are process from left to right so if multiple templates specify the same propery, the right-most template will take precedence. Parameters ---------- ...
[ "def", "merge_templates", "(", "self", ",", "*", "args", ")", ":", "if", "args", ":", "return", "reduce", "(", "self", ".", "_merge_2_templates", ",", "args", ")", "else", ":", "from", "plotly", ".", "graph_objs", ".", "layout", "import", "Template", "re...
[ 196, 4 ]
[ 230, 29 ]
python
en
['en', 'error', 'th']
False
TemplatesConfig._merge_2_templates
(self, template1, template2)
Helper function for merge_templates that merges exactly two templates Parameters ---------- template1: Template template2: Template Returns ------- Template: merged template
Helper function for merge_templates that merges exactly two templates
def _merge_2_templates(self, template1, template2): """ Helper function for merge_templates that merges exactly two templates Parameters ---------- template1: Template template2: Template Returns ------- Template: merged template ...
[ "def", "_merge_2_templates", "(", "self", ",", "template1", ",", "template2", ")", ":", "# Validate/copy input templates", "result", "=", "self", ".", "_validate", "(", "template1", ")", "other", "=", "self", ".", "_validate", "(", "template2", ")", "# Cycle tra...
[ 232, 4 ]
[ 271, 21 ]
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(InfoCog(bot))
[ "def", "setup", "(", "bot", ")", ":", "bot", ".", "add_cog", "(", "InfoCog", "(", "bot", ")", ")" ]
[ 440, 0 ]
[ 444, 29 ]
python
en
['en', 'error', 'th']
False
InfoCog.info_bot
(self, ctx: commands.Context)
Shows Info about the Bot itself. Example: @AntiPetros info_bot
Shows Info about the Bot itself.
async def info_bot(self, ctx: commands.Context): """ Shows Info about the Bot itself. Example: @AntiPetros info_bot """ name = self.bot.name cleaned_prefixes = self.bot.all_prefixes insensitive_commands_emoji = '✅' if self.bot.case_insensitive is Tru...
[ "async", "def", "info_bot", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ")", ":", "name", "=", "self", ".", "bot", ".", "name", "cleaned_prefixes", "=", "self", ".", "bot", ".", "all_prefixes", "insensitive_commands_emoji", "=", "'✅' i", " s"...
[ 186, 4 ]
[ 229, 85 ]
python
en
['en', 'error', 'th']
False
InfoCog.info_guild
(self, ctx: commands.Context)
Shows some info of the Antistasi Guild. Example: @AntiPetros info_guild
Shows some info of the Antistasi Guild.
async def info_guild(self, ctx: commands.Context): """ Shows some info of the Antistasi Guild. Example: @AntiPetros info_guild """ async with ctx.typing(): as_guild = self.bot.antistasi_guild # await as_guild.chunk() thumbnail = No...
[ "async", "def", "info_guild", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ")", ":", "async", "with", "ctx", ".", "typing", "(", ")", ":", "as_guild", "=", "self", ".", "bot", ".", "antistasi_guild", "# await as_guild.chunk()", "thumbnail", "=...
[ 233, 4 ]
[ 277, 85 ]
python
en
['en', 'error', 'th']
False
InfoCog.info_me
(self, ctx: commands.Context)
Shows info about the invoking user. Including `join position`. Example: @AntiPetros info_me
Shows info about the invoking user.
async def info_me(self, ctx: commands.Context): """ Shows info about the invoking user. Including `join position`. Example: @AntiPetros info_me """ async with ctx.typing(): member = ctx.author all_true_permissions = [str(permission) f...
[ "async", "def", "info_me", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ")", ":", "async", "with", "ctx", ".", "typing", "(", ")", ":", "member", "=", "ctx", ".", "author", "all_true_permissions", "=", "[", "str", "(", "permission", ")", ...
[ 281, 4 ]
[ 322, 86 ]
python
en
['en', 'error', 'th']
False
InfoCog.info_other
(self, ctx: commands.Context, member_id: int)
Same as `info_me`, but about other Users. This command is limited to Admins, to prevent user stalking. Args: member_id (int): id of the user to get info about. Example: @AntiPetros info_other 576522029470056450
Same as `info_me`, but about other Users.
async def info_other(self, ctx: commands.Context, member_id: int): """ Same as `info_me`, but about other Users. This command is limited to Admins, to prevent user stalking. Args: member_id (int): id of the user to get info about. Example: @AntiPetros i...
[ "async", "def", "info_other", "(", "self", ",", "ctx", ":", "commands", ".", "Context", ",", "member_id", ":", "int", ")", ":", "async", "with", "ctx", ".", "typing", "(", ")", ":", "member", "=", "await", "self", ".", "bot", ".", "fetch_antistasi_memb...
[ 327, 4 ]
[ 363, 86 ]
python
en
['en', 'error', 'th']
False
_load_editor
(caller)
Load persistent editor from storage.
Load persistent editor from storage.
def _load_editor(caller): """ Load persistent editor from storage. """ saved_options = caller.attributes.get("_eveditor_saved") saved_buffer, saved_undo = caller.attributes.get("_eveditor_buffer_temp", (None, None)) unsaved = caller.attributes.get("_eveditor_unsaved", False) indent = caller....
[ "def", "_load_editor", "(", "caller", ")", ":", "saved_options", "=", "caller", ".", "attributes", ".", "get", "(", "\"_eveditor_saved\"", ")", "saved_buffer", ",", "saved_undo", "=", "caller", ".", "attributes", ".", "get", "(", "\"_eveditor_buffer_temp\"", ","...
[ 320, 0 ]
[ 342, 44 ]
python
en
['en', 'error', 'th']
False
CmdSaveYesNo.func
(self)
Implement the yes/no choice.
Implement the yes/no choice.
def func(self): """Implement the yes/no choice.""" # this is only called from inside the lineeditor # so caller.ndb._lineditor must be set. self.caller.cmdset.remove(SaveYesNoCmdSet) if self.raw_string.strip().lower() in ("no", "n"): # answered no self.ca...
[ "def", "func", "(", "self", ")", ":", "# this is only called from inside the lineeditor", "# so caller.ndb._lineditor must be set.", "self", ".", "caller", ".", "cmdset", ".", "remove", "(", "SaveYesNoCmdSet", ")", "if", "self", ".", "raw_string", ".", "strip", "(", ...
[ 181, 4 ]
[ 193, 44 ]
python
en
['en', 'en', 'en']
True
SaveYesNoCmdSet.at_cmdset_creation
(self)
at cmdset creation
at cmdset creation
def at_cmdset_creation(self): """at cmdset creation""" self.add(CmdSaveYesNo())
[ "def", "at_cmdset_creation", "(", "self", ")", ":", "self", ".", "add", "(", "CmdSaveYesNo", "(", ")", ")" ]
[ 202, 4 ]
[ 204, 32 ]
python
en
['en', 'de', 'en']
True
CmdEditorBase.parse
(self)
Handles pre-parsing Editor commands are on the form :cmd [li] [w] [txt] Where all arguments are optional. li - line number (int), starting from 1. This could also be a range given as <l>:<l>. w - word(s) (string), could be encased in qu...
Handles pre-parsing
def parse(self): """ Handles pre-parsing Editor commands are on the form :cmd [li] [w] [txt] Where all arguments are optional. li - line number (int), starting from 1. This could also be a range given as <l>:<l>. w - word(s) (str...
[ "def", "parse", "(", "self", ")", ":", "editor", "=", "self", ".", "caller", ".", "ndb", ".", "_eveditor", "if", "not", "editor", ":", "# this will completely replace the editor", "_load_editor", "(", "self", ".", "caller", ")", "editor", "=", "self", ".", ...
[ 222, 4 ]
[ 317, 24 ]
python
en
['en', 'error', 'th']
False
CmdLineInput.func
(self)
Adds the line without any formatting changes. If the editor handles code, it might add automatic indentation.
Adds the line without any formatting changes.
def func(self): """ Adds the line without any formatting changes. If the editor handles code, it might add automatic indentation. """ caller = self.caller editor = caller.ndb._eveditor buf = editor.get_buffer() # add a line of text to buffer ...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "editor", "=", "caller", ".", "ndb", ".", "_eveditor", "buf", "=", "editor", ".", "get_buffer", "(", ")", "# add a line of text to buffer", "line", "=", "self", ".", "raw_string", ...
[ 352, 4 ]
[ 382, 74 ]
python
en
['en', 'error', 'th']
False
CmdEditorGroup.func
(self)
This command handles all the in-editor :-style commands. Since each command is small and very limited, this makes for a more efficient presentation.
This command handles all the in-editor :-style commands. Since each command is small and very limited, this makes for a more efficient presentation.
def func(self): """ This command handles all the in-editor :-style commands. Since each command is small and very limited, this makes for a more efficient presentation. """ caller = self.caller editor = caller.ndb._eveditor linebuffer = self.linebuffer ...
[ "def", "func", "(", "self", ")", ":", "caller", "=", "self", ".", "caller", "editor", "=", "caller", ".", "ndb", ".", "_eveditor", "linebuffer", "=", "self", ".", "linebuffer", "lstart", ",", "lend", "=", "self", ".", "lstart", ",", "self", ".", "len...
[ 396, 4 ]
[ 672, 81 ]
python
en
['en', 'error', 'th']
False
EvEditor.__init__
(self, caller, loadfunc=None, savefunc=None, quitfunc=None, key="", persistent=False, codefunc=False)
Launches a full in-game line editor, mimicking the functionality of VIM. Args: caller (Object): Who is using the editor. loadfunc (callable, optional): This will be called as `loadfunc(caller)` when the editor is first started. Its return will be...
Launches a full in-game line editor, mimicking the functionality of VIM.
def __init__(self, caller, loadfunc=None, savefunc=None, quitfunc=None, key="", persistent=False, codefunc=False): """ Launches a full in-game line editor, mimicking the functionality of VIM. Args: caller (Object): Who is using the editor. loadfunc (call...
[ "def", "__init__", "(", "self", ",", "caller", ",", "loadfunc", "=", "None", ",", "savefunc", "=", "None", ",", "quitfunc", "=", "None", ",", "key", "=", "\"\"", ",", "persistent", "=", "False", ",", "codefunc", "=", "False", ")", ":", "self", ".", ...
[ 699, 4 ]
[ 794, 29 ]
python
en
['en', 'error', 'th']
False
EvEditor.load_buffer
(self)
Load the buffer using the load function hook.
Load the buffer using the load function hook.
def load_buffer(self): """ Load the buffer using the load function hook. """ try: self._buffer = self._loadfunc(self._caller) if not isinstance(self._buffer, basestring): self._buffer = to_str(self._buffer, force_string=True) self._...
[ "def", "load_buffer", "(", "self", ")", ":", "try", ":", "self", ".", "_buffer", "=", "self", ".", "_loadfunc", "(", "self", ".", "_caller", ")", "if", "not", "isinstance", "(", "self", ".", "_buffer", ",", "basestring", ")", ":", "self", ".", "_buff...
[ 796, 4 ]
[ 808, 61 ]
python
en
['en', 'error', 'th']
False
EvEditor.get_buffer
(self)
Return: buffer (str): The current buffer.
Return: buffer (str): The current buffer.
def get_buffer(self): """ Return: buffer (str): The current buffer. """ return self._buffer
[ "def", "get_buffer", "(", "self", ")", ":", "return", "self", ".", "_buffer" ]
[ 810, 4 ]
[ 816, 27 ]
python
en
['en', 'error', 'th']
False
EvEditor.update_buffer
(self, buf)
This should be called when the buffer has been changed somehow. It will handle unsaved flag and undo updating. Args: buf (str): The text to update the buffer with.
This should be called when the buffer has been changed somehow. It will handle unsaved flag and undo updating.
def update_buffer(self, buf): """ This should be called when the buffer has been changed somehow. It will handle unsaved flag and undo updating. Args: buf (str): The text to update the buffer with. """ if is_iter(buf): buf = "\n".join(buf) ...
[ "def", "update_buffer", "(", "self", ",", "buf", ")", ":", "if", "is_iter", "(", "buf", ")", ":", "buf", "=", "\"\\n\"", ".", "join", "(", "buf", ")", "if", "buf", "!=", "self", ".", "_buffer", ":", "self", ".", "_buffer", "=", "buf", "self", "."...
[ 818, 4 ]
[ 837, 77 ]
python
en
['en', 'error', 'th']
False
EvEditor.quit
(self)
Cleanly exit the editor.
Cleanly exit the editor.
def quit(self): """ Cleanly exit the editor. """ try: self._quitfunc(self._caller) except Exception as e: self._caller.msg(_ERROR_QUITFUNC.format(error=e)) self._caller.nattributes.remove("_eveditor") self._caller.attributes.remove("_evedi...
[ "def", "quit", "(", "self", ")", ":", "try", ":", "self", ".", "_quitfunc", "(", "self", ".", "_caller", ")", "except", "Exception", "as", "e", ":", "self", ".", "_caller", ".", "msg", "(", "_ERROR_QUITFUNC", ".", "format", "(", "error", "=", "e", ...
[ 839, 4 ]
[ 853, 50 ]
python
en
['en', 'error', 'th']
False
EvEditor.save_buffer
(self)
Saves the content of the buffer.
Saves the content of the buffer.
def save_buffer(self): """ Saves the content of the buffer. """ if self._unsaved or self._codefunc: # always save code - this allows us to tie execution to # saving if we want. try: if self._savefunc(self._caller, self._buffer): ...
[ "def", "save_buffer", "(", "self", ")", ":", "if", "self", ".", "_unsaved", "or", "self", ".", "_codefunc", ":", "# always save code - this allows us to tie execution to", "# saving if we want.", "try", ":", "if", "self", ".", "_savefunc", "(", "self", ".", "_call...
[ 855, 4 ]
[ 872, 49 ]
python
en
['en', 'error', 'th']
False
EvEditor.update_undo
(self, step=None)
This updates the undo position. Args: step (int, optional): The amount of steps to progress the undo position to. This may be a negative value for undo and a positive value for redo.
This updates the undo position.
def update_undo(self, step=None): """ This updates the undo position. Args: step (int, optional): The amount of steps to progress the undo position to. This may be a negative value for undo and a positive value for redo. """ ...
[ "def", "update_undo", "(", "self", ",", "step", "=", "None", ")", ":", "if", "step", "and", "step", "<", "0", ":", "# undo", "if", "self", ".", "_undo_pos", "<=", "0", ":", "self", ".", "_caller", ".", "msg", "(", "_MSG_NO_UNDO", ")", "else", ":", ...
[ 874, 4 ]
[ 904, 55 ]
python
en
['en', 'error', 'th']
False
EvEditor.display_buffer
(self, buf=None, offset=0, linenums=True, options={"raw": False})
This displays the line editor buffer, or selected parts of it. Args: buf (str, optional): The buffer or part of buffer to display. offset (int, optional): If `buf` is set and is not the full buffer, `offset` should define the actual starting line number, to ...
This displays the line editor buffer, or selected parts of it.
def display_buffer(self, buf=None, offset=0, linenums=True, options={"raw": False}): """ This displays the line editor buffer, or selected parts of it. Args: buf (str, optional): The buffer or part of buffer to display. offset (int, optional): If `buf` is set and is not ...
[ "def", "display_buffer", "(", "self", ",", "buf", "=", "None", ",", "offset", "=", "0", ",", "linenums", "=", "True", ",", "options", "=", "{", "\"raw\"", ":", "False", "}", ")", ":", "if", "buf", "is", "None", ":", "buf", "=", "self", ".", "_buf...
[ 906, 4 ]
[ 939, 49 ]
python
en
['en', 'error', 'th']
False
EvEditor.display_help
(self)
Shows the help entry for the editor.
Shows the help entry for the editor.
def display_help(self): """ Shows the help entry for the editor. """ string = self._sep * _DEFAULT_WIDTH + _HELP_TEXT if self._codefunc: string += _HELP_CODE string += _HELP_LEGEND + self._sep * _DEFAULT_WIDTH self._caller.msg(string)
[ "def", "display_help", "(", "self", ")", ":", "string", "=", "self", ".", "_sep", "*", "_DEFAULT_WIDTH", "+", "_HELP_TEXT", "if", "self", ".", "_codefunc", ":", "string", "+=", "_HELP_CODE", "string", "+=", "_HELP_LEGEND", "+", "self", ".", "_sep", "*", ...
[ 941, 4 ]
[ 950, 32 ]
python
en
['en', 'error', 'th']
False
EvEditor.deduce_indent
(self, line, buffer)
Try to deduce the level of indentation of the given line.
Try to deduce the level of indentation of the given line.
def deduce_indent(self, line, buffer): """ Try to deduce the level of indentation of the given line. """ keywords = { "elif ": ["if "], "else:": ["if ", "try"], "except": ["try:"], "finally:": ["try:"], } opening_tags = ("i...
[ "def", "deduce_indent", "(", "self", ",", "line", ",", "buffer", ")", ":", "keywords", "=", "{", "\"elif \"", ":", "[", "\"if \"", "]", ",", "\"else:\"", ":", "[", "\"if \"", ",", "\"try\"", "]", ",", "\"except\"", ":", "[", "\"try:\"", "]", ",", "\"...
[ 952, 4 ]
[ 986, 19 ]
python
en
['en', 'error', 'th']
False
EvEditor.decrease_indent
(self)
Decrease automatic indentation by 1 level.
Decrease automatic indentation by 1 level.
def decrease_indent(self): """Decrease automatic indentation by 1 level.""" if self._codefunc and self._indent > 0: self._indent -= 1 if self._persistent: self._caller.attributes.add("_eveditor_indent", self._indent)
[ "def", "decrease_indent", "(", "self", ")", ":", "if", "self", ".", "_codefunc", "and", "self", ".", "_indent", ">", "0", ":", "self", ".", "_indent", "-=", "1", "if", "self", ".", "_persistent", ":", "self", ".", "_caller", ".", "attributes", ".", "...
[ 988, 4 ]
[ 993, 77 ]
python
en
['en', 'en', 'en']
True
EvEditor.increase_indent
(self)
Increase automatic indentation by 1 level.
Increase automatic indentation by 1 level.
def increase_indent(self): """Increase automatic indentation by 1 level.""" if self._codefunc and self._indent >= 0: self._indent += 1 if self._persistent: self._caller.attributes.add("_eveditor_indent", self._indent)
[ "def", "increase_indent", "(", "self", ")", ":", "if", "self", ".", "_codefunc", "and", "self", ".", "_indent", ">=", "0", ":", "self", ".", "_indent", "+=", "1", "if", "self", ".", "_persistent", ":", "self", ".", "_caller", ".", "attributes", ".", ...
[ 995, 4 ]
[ 1000, 77 ]
python
en
['en', 'en', 'en']
True
EvEditor.swap_autoindent
(self)
Swap automatic indentation on or off.
Swap automatic indentation on or off.
def swap_autoindent(self): """Swap automatic indentation on or off.""" if self._codefunc: if self._indent >= 0: self._indent = -1 else: self._indent = 0 if self._persistent: self._caller.attributes.add("_eveditor_indent...
[ "def", "swap_autoindent", "(", "self", ")", ":", "if", "self", ".", "_codefunc", ":", "if", "self", ".", "_indent", ">=", "0", ":", "self", ".", "_indent", "=", "-", "1", "else", ":", "self", ".", "_indent", "=", "0", "if", "self", ".", "_persisten...
[ 1002, 4 ]
[ 1011, 77 ]
python
en
['en', 'en', 'en']
True
repeat
(tensor, K)
[B, ...] => [B*K, ...] #-- Important --# Used unsqueeze and transpose to avoid [K*B] when using torch.Tensor.repeat
[B, ...] => [B*K, ...]
def repeat(tensor, K): """ [B, ...] => [B*K, ...] #-- Important --# Used unsqueeze and transpose to avoid [K*B] when using torch.Tensor.repeat """ if isinstance(tensor, torch.Tensor): B, *size = tensor.size() repeat_size = [1] + [K] + [1] * (tensor.dim() - 1) tensor = te...
[ "def", "repeat", "(", "tensor", ",", "K", ")", ":", "if", "isinstance", "(", "tensor", ",", "torch", ".", "Tensor", ")", ":", "B", ",", "", "*", "size", "=", "tensor", ".", "size", "(", ")", "repeat_size", "=", "[", "1", "]", "+", "[", "K", "...
[ 15, 0 ]
[ 32, 18 ]
python
en
['en', 'error', 'th']
False
NQGDecoder.__init__
(self, embed_size=300, enc_hidden_size=512, dec_hidden_size=512, attention_size=512, vocab_size=20000, dropout_p=0.5, rnn='GRU', tie=False, n_mixture=None)
Neural Question Generation from Text: A Preliminary Study (2017) incorporated with copying mechanism of Pointing the Unknown Words (ACL 2016)
Neural Question Generation from Text: A Preliminary Study (2017) incorporated with copying mechanism of Pointing the Unknown Words (ACL 2016)
def __init__(self, embed_size=300, enc_hidden_size=512, dec_hidden_size=512, attention_size=512, vocab_size=20000, dropout_p=0.5, rnn='GRU', tie=False, n_mixture=None): """Neural Question Generation from Text: A Preliminary Study (2017) incorporated wit...
[ "def", "__init__", "(", "self", ",", "embed_size", "=", "300", ",", "enc_hidden_size", "=", "512", ",", "dec_hidden_size", "=", "512", ",", "attention_size", "=", "512", ",", "vocab_size", "=", "20000", ",", "dropout_p", "=", "0.5", ",", "rnn", "=", "'GR...
[ 139, 4 ]
[ 176, 72 ]
python
en
['en', 'en', 'en']
True
PGDecoder.__init__
(self, embed_size=128, enc_hidden_size=512, dec_hidden_size=256, attention_size=700, vocab_size=50000, dropout_p=0.0, rnn='LSTM', tie=False, n_mixture=None)
Get To The Point: Summarization with Pointer-Generator Networks (ACL 2017)
Get To The Point: Summarization with Pointer-Generator Networks (ACL 2017)
def __init__(self, embed_size=128, enc_hidden_size=512, dec_hidden_size=256, attention_size=700, vocab_size=50000, dropout_p=0.0, rnn='LSTM', tie=False, n_mixture=None): """Get To The Point: Summarization with Pointer-Generator Networks (ACL 2017)""" su...
[ "def", "__init__", "(", "self", ",", "embed_size", "=", "128", ",", "enc_hidden_size", "=", "512", ",", "dec_hidden_size", "=", "256", ",", "attention_size", "=", "700", ",", "vocab_size", "=", "50000", ",", "dropout_p", "=", "0.0", ",", "rnn", "=", "'LS...
[ 475, 4 ]
[ 517, 72 ]
python
en
['en', 'en', 'en']
True
Sankey.arrangement
(self)
If value is `snap` (the default), the node arrangement is assisted by automatic snapping of elements to preserve space between nodes specified via `nodepad`. If value is `perpendicular`, the nodes can only move along a line perpendicular to the flow. If value is `freeform`, the ...
If value is `snap` (the default), the node arrangement is assisted by automatic snapping of elements to preserve space between nodes specified via `nodepad`. If value is `perpendicular`, the nodes can only move along a line perpendicular to the flow. If value is `freeform`, the ...
def arrangement(self): """ If value is `snap` (the default), the node arrangement is assisted by automatic snapping of elements to preserve space between nodes specified via `nodepad`. If value is `perpendicular`, the nodes can only move along a line perpendicular to the ...
[ "def", "arrangement", "(", "self", ")", ":", "return", "self", "[", "\"arrangement\"", "]" ]
[ 39, 4 ]
[ 57, 34 ]
python
en
['en', 'error', 'th']
False
Sankey.customdata
(self)
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be specified as a tuple, list,...
def customdata(self): """ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, "scatter" traces also appends customdata items in the markers DOM elements The 'customdata' property is an array that may be sp...
[ "def", "customdata", "(", "self", ")", ":", "return", "self", "[", "\"customdata\"", "]" ]
[ 66, 4 ]
[ 80, 33 ]
python
en
['en', 'error', 'th']
False
Sankey.customdatasrc
(self)
Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def customdatasrc(self): """ Sets the source reference on Chart Studio Cloud for customdata . The 'customdatasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["cust...
[ "def", "customdatasrc", "(", "self", ")", ":", "return", "self", "[", "\"customdatasrc\"", "]" ]
[ 89, 4 ]
[ 101, 36 ]
python
en
['en', 'error', 'th']
False
Sankey.domain
(self)
The 'domain' property is an instance of Domain that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.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.sankey.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.sankey.Domain` - A dict of string/value properties that will be passed to the Domain constructor Supported di...
[ "def", "domain", "(", "self", ")", ":", "return", "self", "[", "\"domain\"", "]" ]
[ 110, 4 ]
[ 137, 29 ]
python
en
['en', 'error', 'th']
False
Sankey.hoverinfo
(self)
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. Note that this attribute is superseded by `node.hoverinfo` and `node.hoverinfo` for nodes an...
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. Note that this attribute is superseded by `node.hoverinfo` and `node.hoverinfo` for nodes an...
def hoverinfo(self): """ Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. Note that this attribute is superseded by `node.hoverinfo` and ...
[ "def", "hoverinfo", "(", "self", ")", ":", "return", "self", "[", "\"hoverinfo\"", "]" ]
[ 146, 4 ]
[ 164, 32 ]
python
en
['en', 'error', 'th']
False
Sankey.hoverlabel
(self)
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict properties...
The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor Supported dict properties...
def hoverlabel(self): """ The 'hoverlabel' property is an instance of Hoverlabel that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Hoverlabel` - A dict of string/value properties that will be passed to the Hoverlabel constructor ...
[ "def", "hoverlabel", "(", "self", ")", ":", "return", "self", "[", "\"hoverlabel\"", "]" ]
[ 173, 4 ]
[ 223, 33 ]
python
en
['en', 'error', 'th']
False
Sankey.ids
(self)
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Retur...
Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ids(self): """ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type. The 'ids' property is an array that may be specified as a tuple, list, numpy array, or pa...
[ "def", "ids", "(", "self", ")", ":", "return", "self", "[", "\"ids\"", "]" ]
[ 232, 4 ]
[ 245, 26 ]
python
en
['en', 'error', 'th']
False
Sankey.idssrc
(self)
Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def idssrc(self): """ Sets the source reference on Chart Studio Cloud for ids . The 'idssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["idssrc"]
[ "def", "idssrc", "(", "self", ")", ":", "return", "self", "[", "\"idssrc\"", "]" ]
[ 254, 4 ]
[ 265, 29 ]
python
en
['en', 'error', 'th']
False
Sankey.link
(self)
The links of the Sankey plot. The 'link' property is an instance of Link that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Link` - A dict of string/value properties that will be passed to the Link constructor Suppor...
The links of the Sankey plot. The 'link' property is an instance of Link that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Link` - A dict of string/value properties that will be passed to the Link constructor Suppor...
def link(self): """ The links of the Sankey plot. The 'link' property is an instance of Link that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Link` - A dict of string/value properties that will be passed to the Link construc...
[ "def", "link", "(", "self", ")", ":", "return", "self", "[", "\"link\"", "]" ]
[ 274, 4 ]
[ 382, 27 ]
python
en
['en', 'error', 'th']
False
Sankey.meta
(self)
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To acce...
def meta(self): """ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text ...
[ "def", "meta", "(", "self", ")", ":", "return", "self", "[", "\"meta\"", "]" ]
[ 391, 4 ]
[ 410, 27 ]
python
en
['en', 'error', 'th']
False
Sankey.metasrc
(self)
Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object
def metasrc(self): """ Sets the source reference on Chart Studio Cloud for meta . The 'metasrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["metasrc"]
[ "def", "metasrc", "(", "self", ")", ":", "return", "self", "[", "\"metasrc\"", "]" ]
[ 419, 4 ]
[ 430, 30 ]
python
en
['en', 'error', 'th']
False
Sankey.name
(self)
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string
def name(self): """ Sets the trace name. The trace name appear as the legend item and on hover. The 'name' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str ...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 439, 4 ]
[ 452, 27 ]
python
en
['en', 'error', 'th']
False
Sankey.node
(self)
The nodes of the Sankey plot. The 'node' property is an instance of Node that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Node` - A dict of string/value properties that will be passed to the Node constructor Suppor...
The nodes of the Sankey plot. The 'node' property is an instance of Node that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Node` - A dict of string/value properties that will be passed to the Node constructor Suppor...
def node(self): """ The nodes of the Sankey plot. The 'node' property is an instance of Node that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Node` - A dict of string/value properties that will be passed to the Node construc...
[ "def", "node", "(", "self", ")", ":", "return", "self", "[", "\"node\"", "]" ]
[ 461, 4 ]
[ 562, 27 ]
python
en
['en', 'error', 'th']
False
Sankey.orientation
(self)
Sets the orientation of the Sankey diagram. The 'orientation' property is an enumeration that may be specified as: - One of the following enumeration values: ['v', 'h'] Returns ------- Any
Sets the orientation of the Sankey diagram. The 'orientation' property is an enumeration that may be specified as: - One of the following enumeration values: ['v', 'h']
def orientation(self): """ Sets the orientation of the Sankey diagram. The 'orientation' property is an enumeration that may be specified as: - One of the following enumeration values: ['v', 'h'] Returns ------- Any """ retu...
[ "def", "orientation", "(", "self", ")", ":", "return", "self", "[", "\"orientation\"", "]" ]
[ 571, 4 ]
[ 583, 34 ]
python
en
['en', 'error', 'th']
False
Sankey.selectedpoints
(self)
Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the...
Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values means no selection all where the...
def selectedpoints(self): """ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the `unselected` are turned on for all points, whereas, any other non-array values ...
[ "def", "selectedpoints", "(", "self", ")", ":", "return", "self", "[", "\"selectedpoints\"", "]" ]
[ 592, 4 ]
[ 607, 37 ]
python
en
['en', 'error', 'th']
False
Sankey.stream
(self)
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported dict properties: ...
def stream(self): """ The 'stream' property is an instance of Stream that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Stream` - A dict of string/value properties that will be passed to the Stream constructor Supported di...
[ "def", "stream", "(", "self", ")", ":", "return", "self", "[", "\"stream\"", "]" ]
[ 616, 4 ]
[ 640, 29 ]
python
en
['en', 'error', 'th']
False
Sankey.textfont
(self)
Sets the font for node labels The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor ...
Sets the font for node labels The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Textfont` - A dict of string/value properties that will be passed to the Textfont constructor ...
def textfont(self): """ Sets the font for node labels The 'textfont' property is an instance of Textfont that may be specified as: - An instance of :class:`plotly.graph_objs.sankey.Textfont` - A dict of string/value properties that will be passed to t...
[ "def", "textfont", "(", "self", ")", ":", "return", "self", "[", "\"textfont\"", "]" ]
[ 649, 4 ]
[ 686, 31 ]
python
en
['en', 'error', 'th']
False