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
ColorBar.bgcolor
(self)
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bgcolor(self): """ Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 59, 4 ]
[ 109, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.bordercolor
(self)
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bordercolor(self): """ Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva ...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 118, 4 ]
[ 168, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.borderwidth
(self)
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def borderwidth(self): """ Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["...
[ "def", "borderwidth", "(", "self", ")", ":", "return", "self", "[", "\"borderwidth\"", "]" ]
[ 177, 4 ]
[ 188, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.dtick
(self)
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
def dtick(self): """ Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example...
[ "def", "dtick", "(", "self", ")", ":", "return", "self", "[", "\"dtick\"", "]" ]
[ 197, 4 ]
[ 226, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.exponentformat
(self)
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
def exponentformat(self): """ Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. ...
[ "def", "exponentformat", "(", "self", ")", ":", "return", "self", "[", "\"exponentformat\"", "]" ]
[ 235, 4 ]
[ 251, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.len
(self)
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf] Return...
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf]
def len(self): """ Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interva...
[ "def", "len", "(", "self", ")", ":", "return", "self", "[", "\"len\"", "]" ]
[ 260, 4 ]
[ 273, 26 ]
python
en
['en', 'error', 'th']
False
ColorBar.lenmode
(self)
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
def lenmode(self): """ Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - ...
[ "def", "lenmode", "(", "self", ")", ":", "return", "self", "[", "\"lenmode\"", "]" ]
[ 282, 4 ]
[ 296, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.nticks
(self)
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
def nticks(self): """ Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer an...
[ "def", "nticks", "(", "self", ")", ":", "return", "self", "[", "\"nticks\"", "]" ]
[ 305, 4 ]
[ 320, 29 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinecolor
(self)
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def outlinecolor(self): """ Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsv...
[ "def", "outlinecolor", "(", "self", ")", ":", "return", "self", "[", "\"outlinecolor\"", "]" ]
[ 329, 4 ]
[ 379, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinewidth
(self)
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def outlinewidth(self): """ Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["outlinewidth"]
[ "def", "outlinewidth", "(", "self", ")", ":", "return", "self", "[", "\"outlinewidth\"", "]" ]
[ 388, 4 ]
[ 399, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.separatethousands
(self)
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False)
def separatethousands(self): """ If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["separatethousands"]
[ "def", "separatethousands", "(", "self", ")", ":", "return", "self", "[", "\"separatethousands\"", "]" ]
[ 408, 4 ]
[ 419, 40 ]
python
en
['en', 'error', 'th']
False
ColorBar.showexponent
(self)
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
def showexponent(self): """ If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is ...
[ "def", "showexponent", "(", "self", ")", ":", "return", "self", "[", "\"showexponent\"", "]" ]
[ 428, 4 ]
[ 443, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticklabels
(self)
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False)
def showticklabels(self): """ Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showticklabels"]
[ "def", "showticklabels", "(", "self", ")", ":", "return", "self", "[", "\"showticklabels\"", "]" ]
[ 452, 4 ]
[ 463, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showtickprefix
(self)
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
def showtickprefix(self): """ If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' proper...
[ "def", "showtickprefix", "(", "self", ")", ":", "return", "self", "[", "\"showtickprefix\"", "]" ]
[ 472, 4 ]
[ 487, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticksuffix
(self)
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- Any
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none']
def showticksuffix(self): """ Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- ...
[ "def", "showticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"showticksuffix\"", "]" ]
[ 496, 4 ]
[ 508, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.thickness
(self)
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf]
def thickness(self): """ Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- i...
[ "def", "thickness", "(", "self", ")", ":", "return", "self", "[", "\"thickness\"", "]" ]
[ 517, 4 ]
[ 529, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.thicknessmode
(self)
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
def thicknessmode(self): """ Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be speci...
[ "def", "thicknessmode", "(", "self", ")", ":", "return", "self", "[", "\"thicknessmode\"", "]" ]
[ 538, 4 ]
[ 552, 36 ]
python
en
['en', 'error', 'th']
False
ColorBar.tick0
(self)
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
def tick0(self): """ Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for...
[ "def", "tick0", "(", "self", ")", ":", "return", "self", "[", "\"tick0\"", "]" ]
[ 561, 4 ]
[ 579, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickangle
(self)
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
def tickangle(self): """ Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Num...
[ "def", "tickangle", "(", "self", ")", ":", "return", "self", "[", "\"tickangle\"", "]" ]
[ 588, 4 ]
[ 603, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickcolor
(self)
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def tickcolor(self): """ Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e...
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 612, 4 ]
[ 662, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickfont
(self)
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Ti...
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Ti...
def tickfont(self): """ Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Tickfont` - A dict of string/value properties that will ...
[ "def", "tickfont", "(", "self", ")", ":", "return", "self", "[", "\"tickfont\"", "]" ]
[ 671, 4 ]
[ 708, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformat
(self)
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def tickformat(self): """ Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github...
[ "def", "tickformat", "(", "self", ")", ":", "return", "self", "[", "\"tickformat\"", "]" ]
[ 717, 4 ]
[ 737, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstops
(self)
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.scattergl.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to th...
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.scattergl.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to th...
def tickformatstops(self): """ The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.scattergl.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties...
[ "def", "tickformatstops", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstops\"", "]" ]
[ 746, 4 ]
[ 794, 38 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstopdefaults
(self)
When used in a template (as layout.template.data.scattergl.mark er.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scattergl.marker.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop ...
When used in a template (as layout.template.data.scattergl.mark er.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scattergl.marker.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop ...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.data.scattergl.mark er.colorbar.tickformatstopdefaults), sets the default property values to use for elements of scattergl.marker.colorbar.tickformatstops The 'tickformatstopdefaults' p...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 803, 4 ]
[ 822, 45 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticklen
(self)
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ticklen(self): """ Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ticklen"]
[ "def", "ticklen", "(", "self", ")", ":", "return", "self", "[", "\"ticklen\"", "]" ]
[ 831, 4 ]
[ 842, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickmode
(self)
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
def tickmode(self): """ Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick`...
[ "def", "tickmode", "(", "self", ")", ":", "return", "self", "[", "\"tickmode\"", "]" ]
[ 851, 4 ]
[ 869, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickprefix
(self)
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string
def tickprefix(self): """ Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["tickprefix"]
[ "def", "tickprefix", "(", "self", ")", ":", "return", "self", "[", "\"tickprefix\"", "]" ]
[ 878, 4 ]
[ 890, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticks
(self)
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
def ticks(self): """ Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the follo...
[ "def", "ticks", "(", "self", ")", ":", "return", "self", "[", "\"ticks\"", "]" ]
[ 899, 4 ]
[ 913, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticksuffix
(self)
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string
def ticksuffix(self): """ Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["ticksuffix"]
[ "def", "ticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"ticksuffix\"", "]" ]
[ 922, 4 ]
[ 934, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktext
(self)
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns -------...
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ticktext(self): """ Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series ...
[ "def", "ticktext", "(", "self", ")", ":", "return", "self", "[", "\"ticktext\"", "]" ]
[ 943, 4 ]
[ 956, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktextsrc
(self)
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' 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 ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def ticktextsrc(self): """ Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["ticktextsrc"]
[ "def", "ticktextsrc", "(", "self", ")", ":", "return", "self", "[", "\"ticktextsrc\"", "]" ]
[ 965, 4 ]
[ 976, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvals
(self)
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.nda...
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def tickvals(self): """ Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
[ "def", "tickvals", "(", "self", ")", ":", "return", "self", "[", "\"tickvals\"", "]" ]
[ 985, 4 ]
[ 997, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvalssrc
(self)
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' 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 tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def tickvalssrc(self): """ Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["tickvalssrc"]
[ "def", "tickvalssrc", "(", "self", ")", ":", "return", "self", "[", "\"tickvalssrc\"", "]" ]
[ 1006, 4 ]
[ 1017, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickwidth
(self)
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def tickwidth(self): """ Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["tickwidth"]
[ "def", "tickwidth", "(", "self", ")", ":", "return", "self", "[", "\"tickwidth\"", "]" ]
[ 1026, 4 ]
[ 1037, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties:...
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties:...
def title(self): """ The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.scattergl.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor ...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1046, 4 ]
[ 1076, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use scattergl.marker.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: ...
Deprecated: Please use scattergl.marker.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: ...
def titlefont(self): """ Deprecated: Please use scattergl.marker.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font t...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1085, 4 ]
[ 1125, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use scattergl.marker.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration ...
Deprecated: Please use scattergl.marker.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration ...
def titleside(self): """ Deprecated: Please use scattergl.marker.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 's...
[ "def", "titleside", "(", "self", ")", ":", "return", "self", "[", "\"titleside\"", "]" ]
[ 1134, 4 ]
[ 1149, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.x
(self)
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def x(self): """ Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 1158, 4 ]
[ 1169, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.xanchor
(self)
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
def xanchor(self): """ Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration va...
[ "def", "xanchor", "(", "self", ")", ":", "return", "self", "[", "\"xanchor\"", "]" ]
[ 1178, 4 ]
[ 1192, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.xpad
(self)
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def xpad(self): """ Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["xpad"]
[ "def", "xpad", "(", "self", ")", ":", "return", "self", "[", "\"xpad\"", "]" ]
[ 1201, 4 ]
[ 1212, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.y
(self)
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def y(self): """ Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1221, 4 ]
[ 1232, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.yanchor
(self)
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
def yanchor(self): """ Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration value...
[ "def", "yanchor", "(", "self", ")", ":", "return", "self", "[", "\"yanchor\"", "]" ]
[ 1241, 4 ]
[ 1255, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.ypad
(self)
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ypad(self): """ Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ypad"]
[ "def", "ypad", "(", "self", ")", ":", "return", "self", "[", "\"ypad\"", "]" ]
[ 1264, 4 ]
[ 1275, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.__init__
( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, showexpo...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergl.marker.ColorBar` bgcolor Sets the color of padded area. ...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.scattergl.marker.ColorBar` bgcolor Sets the color of padded area. ...
def __init__( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "bgcolor", "=", "None", ",", "bordercolor", "=", "None", ",", "borderwidth", "=", "None", ",", "dtick", "=", "None", ",", "exponentformat", "=", "None", ",", "len", "=", "None", ",", "lenm...
[ 1483, 4 ]
[ 1943, 34 ]
python
en
['en', 'error', 'th']
False
AccountDBChangeForm.clean_username
(self)
Clean the username and check its existence.
Clean the username and check its existence.
def clean_username(self): """ Clean the username and check its existence. """ username = self.cleaned_data['username'] if username.upper() == self.instance.username.upper(): return username elif AccountDB.objects.filter(username__iexact=username): ...
[ "def", "clean_username", "(", "self", ")", ":", "username", "=", "self", ".", "cleaned_data", "[", "'username'", "]", "if", "username", ".", "upper", "(", ")", "==", "self", ".", "instance", ".", "username", ".", "upper", "(", ")", ":", "return", "user...
[ 38, 4 ]
[ 49, 44 ]
python
en
['en', 'error', 'th']
False
AccountDBCreationForm.clean_username
(self)
Cleanup username.
Cleanup username.
def clean_username(self): """ Cleanup username. """ username = self.cleaned_data['username'] if AccountDB.objects.filter(username__iexact=username): raise forms.ValidationError('An account with that name already ' 'exists.') ...
[ "def", "clean_username", "(", "self", ")", ":", "username", "=", "self", ".", "cleaned_data", "[", "'username'", "]", "if", "AccountDB", ".", "objects", ".", "filter", "(", "username__iexact", "=", "username", ")", ":", "raise", "forms", ".", "ValidationErro...
[ 73, 4 ]
[ 81, 23 ]
python
en
['en', 'error', 'th']
False
AccountDBAdmin.save_model
(self, request, obj, form, change)
Custom save actions. Args: request (Request): Incoming request. obj (Object): Object to save. form (Form): Related form instance. change (bool): False if this is a new save and not an update.
Custom save actions.
def save_model(self, request, obj, form, change): """ Custom save actions. Args: request (Request): Incoming request. obj (Object): Object to save. form (Form): Related form instance. change (bool): False if this is a new save and not an update. ...
[ "def", "save_model", "(", "self", ",", "request", ",", "obj", ",", "form", ",", "change", ")", ":", "obj", ".", "save", "(", ")", "if", "not", "change", ":", "# calling hooks for new account", "obj", ".", "set_class_from_typeclass", "(", "typeclass_path", "=...
[ 229, 4 ]
[ 245, 37 ]
python
en
['en', 'error', 'th']
False
managed_columns
(name: str, columns: int, *, border: bool = True, show: bool = True, parent: str = "", before: str = "")
Wraps add_managed_columns() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. columns: The number of columns to be created. ...
Wraps add_managed_columns() and automates calling end().
def managed_columns(name: str, columns: int, *, border: bool = True, show: bool = True, parent: str = "", before: str = ""): """Wraps add_managed_columns() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will b...
[ "def", "managed_columns", "(", "name", ":", "str", ",", "columns", ":", "int", ",", "*", ",", "border", ":", "bool", "=", "True", ",", "show", ":", "bool", "=", "True", ",", "parent", ":", "str", "=", "\"\"", ",", "before", ":", "str", "=", "\"\"...
[ 12, 0 ]
[ 32, 26 ]
python
en
['en', 'en', 'en']
True
window
(name: str, *, width: int = 200, height: int = 200, x_pos: int = 200, y_pos: int = 200, autosize: bool = False, no_resize: bool = False, no_title_bar: bool = False, no_move: bool = False, no_scrollbar: bool = False, no_collapse: bool = False, horizontal_scrollbar: bool = False, no_focus_on_appeari...
Wraps add_window() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. **width: Width of the item. **height: Height of...
Wraps add_window() and automates calling end().
def window(name: str, *, width: int = 200, height: int = 200, x_pos: int = 200, y_pos: int = 200, autosize: bool = False, no_resize: bool = False, no_title_bar: bool = False, no_move: bool = False, no_scrollbar: bool = False, no_collapse: bool = False, horizontal_scrollbar: bool = False, no_focus_...
[ "def", "window", "(", "name", ":", "str", ",", "*", ",", "width", ":", "int", "=", "200", ",", "height", ":", "int", "=", "200", ",", "x_pos", ":", "int", "=", "200", ",", "y_pos", ":", "int", "=", "200", ",", "autosize", ":", "bool", "=", "F...
[ 36, 0 ]
[ 91, 26 ]
python
en
['en', 'en', 'en']
True
menu_bar
(name: str, *, show: bool = True, parent: str = "", before: str = "")
Wraps add_menu_bar() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. **show: Decides if the item is shown of not. ...
Wraps add_menu_bar() and automates calling end().
def menu_bar(name: str, *, show: bool = True, parent: str = "", before: str = ""): """Wraps add_menu_bar() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name ...
[ "def", "menu_bar", "(", "name", ":", "str", ",", "*", ",", "show", ":", "bool", "=", "True", ",", "parent", ":", "str", "=", "\"\"", ",", "before", ":", "str", "=", "\"\"", ")", ":", "try", ":", "yield", "internal_dpg", ".", "add_menu_bar", "(", ...
[ 95, 0 ]
[ 111, 26 ]
python
en
['en', 'en', 'en']
True
menu
(name: str, *, label: str = "__DearPyGuiDefault", show: bool = True, tip: str = "", parent: str = "", before: str = "", enabled: bool = True)
Wraps add_menu() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. **label: Displayed name of the item. **show: Deci...
Wraps add_menu() and automates calling end().
def menu(name: str, *, label: str = "__DearPyGuiDefault", show: bool = True, tip: str = "", parent: str = "", before: str = "", enabled: bool = True): """Wraps add_menu() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this wi...
[ "def", "menu", "(", "name", ":", "str", ",", "*", ",", "label", ":", "str", "=", "\"__DearPyGuiDefault\"", ",", "show", ":", "bool", "=", "True", ",", "tip", ":", "str", "=", "\"\"", ",", "parent", ":", "str", "=", "\"\"", ",", "before", ":", "st...
[ 115, 0 ]
[ 139, 26 ]
python
en
['en', 'en', 'en']
True
child
(name: str, *, show: bool = True, tip: str = "", parent: str = "", before: str = "", width: int = 0, height: int = 0, border: bool = True, popup: str = "", autosize_x: bool = False, autosize_y: bool = False, no_scrollbar: bool = False, horizontal_scrollbar: bool = False, menubar: bool = False)
Wraps add_child() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. show: Decides if the item is shown of not. **tip...
Wraps add_child() and automates calling end().
def child(name: str, *, show: bool = True, tip: str = "", parent: str = "", before: str = "", width: int = 0, height: int = 0, border: bool = True, popup: str = "", autosize_x: bool = False, autosize_y: bool = False, no_scrollbar: bool = False, horizontal_scrollbar: bool = False, menubar: bool = Fal...
[ "def", "child", "(", "name", ":", "str", ",", "*", ",", "show", ":", "bool", "=", "True", ",", "tip", ":", "str", "=", "\"\"", ",", "parent", ":", "str", "=", "\"\"", ",", "before", ":", "str", "=", "\"\"", ",", "width", ":", "int", "=", "0",...
[ 143, 0 ]
[ 173, 26 ]
python
en
['en', 'en', 'en']
True
collapsing_header
(name: str, *, label: str = "__DearPyGuiDefault", show: bool = True, tip: str = "", parent: str = "", before: str = "",closable: bool = False, default_open: bool = False, open_on_double_click: bool = False, open_on_arrow: bool = False, leaf: bool = Fa...
Wraps add_collapsing_header() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. **label: Displayed name of the item. ...
Wraps add_collapsing_header() and automates calling end().
def collapsing_header(name: str, *, label: str = "__DearPyGuiDefault", show: bool = True, tip: str = "", parent: str = "", before: str = "",closable: bool = False, default_open: bool = False, open_on_double_click: bool = False, open_on_arrow: bool = False, ...
[ "def", "collapsing_header", "(", "name", ":", "str", ",", "*", ",", "label", ":", "str", "=", "\"__DearPyGuiDefault\"", ",", "show", ":", "bool", "=", "True", ",", "tip", ":", "str", "=", "\"\"", ",", "parent", ":", "str", "=", "\"\"", ",", "before",...
[ 177, 0 ]
[ 214, 26 ]
python
en
['en', 'en', 'en']
True
group
(name: str, *, show: bool = True, tip: str = "", parent: str = "", before: str = "", width: int = 0, horizontal: bool = False, horizontal_spacing: float = -1.0, popup: str = "")
Wraps add_group() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. **show: Decides if the item is shown of not. **t...
Wraps add_group() and automates calling end().
def group(name: str, *, show: bool = True, tip: str = "", parent: str = "", before: str = "", width: int = 0, horizontal: bool = False, horizontal_spacing: float = -1.0, popup: str = ""): """Wraps add_group() and automates calling end(). Args: name: Unique name used to programmatically refer ...
[ "def", "group", "(", "name", ":", "str", ",", "*", ",", "show", ":", "bool", "=", "True", ",", "tip", ":", "str", "=", "\"\"", ",", "parent", ":", "str", "=", "\"\"", ",", "before", ":", "str", "=", "\"\"", ",", "width", ":", "int", "=", "0",...
[ 218, 0 ]
[ 241, 26 ]
python
en
['en', 'en', 'en']
True
tab_bar
(name: str, *, reorderable: bool = False, callback: Callable = None, callback_data: Any = None, show: bool = True, parent: str = "", before: str = "")
Wraps add_tab_bar() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. **reorderable: Allows for moveable tabs. **cal...
Wraps add_tab_bar() and automates calling end().
def tab_bar(name: str, *, reorderable: bool = False, callback: Callable = None, callback_data: Any = None, show: bool = True, parent: str = "", before: str = ""): """Wraps add_tab_bar() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If labe...
[ "def", "tab_bar", "(", "name", ":", "str", ",", "*", ",", "reorderable", ":", "bool", "=", "False", ",", "callback", ":", "Callable", "=", "None", ",", "callback_data", ":", "Any", "=", "None", ",", "show", ":", "bool", "=", "True", ",", "parent", ...
[ 245, 0 ]
[ 266, 26 ]
python
en
['en', 'en', 'en']
True
tab
(name: str, *, closable: bool = False, label: str = "__DearPyGuiDefault", show: bool = True, tip: str = "", parent: str = "", before: str = "")
Wraps add_tab() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. **closable: creates a button on the tab that can hide the ...
Wraps add_tab() and automates calling end().
def tab(name: str, *, closable: bool = False, label: str = "__DearPyGuiDefault", show: bool = True, tip: str = "", parent: str = "", before: str = ""): """Wraps add_tab() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this wil...
[ "def", "tab", "(", "name", ":", "str", ",", "*", ",", "closable", ":", "bool", "=", "False", ",", "label", ":", "str", "=", "\"__DearPyGuiDefault\"", ",", "show", ":", "bool", "=", "True", ",", "tip", ":", "str", "=", "\"\"", ",", "parent", ":", ...
[ 270, 0 ]
[ 294, 26 ]
python
en
['en', 'en', 'en']
True
tree_node
(name: str, *, label: str = "__DearPyGuiDefault", show: bool = True, tip: str = "", parent: str = "", before: str = "", default_open: bool = False, open_on_double_click: bool = False, open_on_arrow: bool = False, leaf: bool = False, bullet: bool = False)
Wraps add_tree_node() and automates calling end(). Args: name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. **label: Displayed name of the item. **show:...
Wraps add_tree_node() and automates calling end().
def tree_node(name: str, *, label: str = "__DearPyGuiDefault", show: bool = True, tip: str = "", parent: str = "", before: str = "", default_open: bool = False, open_on_double_click: bool = False, open_on_arrow: bool = False, leaf: bool = False, bullet: bool = False): """Wraps add_tree...
[ "def", "tree_node", "(", "name", ":", "str", ",", "*", ",", "label", ":", "str", "=", "\"__DearPyGuiDefault\"", ",", "show", ":", "bool", "=", "True", ",", "tip", ":", "str", "=", "\"\"", ",", "parent", ":", "str", "=", "\"\"", ",", "before", ":", ...
[ 298, 0 ]
[ 334, 26 ]
python
en
['en', 'en', 'en']
True
tooltip
(tipparent: str, name: str, *, parent: str = "", before: str = "", show: bool = True)
Wraps add_tooltip() and automates calling end(). Args: tipparent: Sets the item's tool tip to be the same as the named item's tool tip. name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name wi...
Wraps add_tooltip() and automates calling end().
def tooltip(tipparent: str, name: str, *, parent: str = "", before: str = "", show: bool = True): """Wraps add_tooltip() and automates calling end(). Args: tipparent: Sets the item's tool tip to be the same as the named item's tool tip. name: Unique name used to programmatically refer to the it...
[ "def", "tooltip", "(", "tipparent", ":", "str", ",", "name", ":", "str", ",", "*", ",", "parent", ":", "str", "=", "\"\"", ",", "before", ":", "str", "=", "\"\"", ",", "show", ":", "bool", "=", "True", ")", ":", "try", ":", "yield", "internal_dpg...
[ 338, 0 ]
[ 355, 26 ]
python
en
['en', 'en', 'en']
True
popup
(popupparent: str, name: str, *, mousebutton: int = 1, modal: bool = False, parent: str = "", before: str = "", width: int = 0, height: int = 0, show: bool = True)
Wraps add_popup() and automates calling end(). Args: popupparent: Parent that the popup will be assigned to. name: Unique name used to programmatically refer to the item. If label is unused this will be the label, anything after "##" that occurs in the name will not be shown on screen. ...
Wraps add_popup() and automates calling end().
def popup(popupparent: str, name: str, *, mousebutton: int = 1, modal: bool = False, parent: str = "", before: str = "", width: int = 0, height: int = 0, show: bool = True): """Wraps add_popup() and automates calling end(). Args: popupparent: Parent that the popup will be assigned to. ...
[ "def", "popup", "(", "popupparent", ":", "str", ",", "name", ":", "str", ",", "*", ",", "mousebutton", ":", "int", "=", "1", ",", "modal", ":", "bool", "=", "False", ",", "parent", ":", "str", "=", "\"\"", ",", "before", ":", "str", "=", "\"\"", ...
[ 359, 0 ]
[ 383, 26 ]
python
en
['en', 'en', 'en']
True
set_window_pos
(window: str, x: int, y: int)
Sets the top left corner of the window to the specified position. Args: window: Parent that the popup will be assigned to. x: The x position. y: The y position. Returns: None
Sets the top left corner of the window to the specified position.
def set_window_pos(window: str, x: int, y: int): """Sets the top left corner of the window to the specified position. Args: window: Parent that the popup will be assigned to. x: The x position. y: The y position. Returns: None """ internal_dpg.configure_item(window,...
[ "def", "set_window_pos", "(", "window", ":", "str", ",", "x", ":", "int", ",", "y", ":", "int", ")", ":", "internal_dpg", ".", "configure_item", "(", "window", ",", "x_pos", "=", "x", ",", "y_pos", "=", "y", ")" ]
[ 391, 0 ]
[ 402, 57 ]
python
en
['en', 'en', 'en']
True
get_window_pos
(window: str)
Gets the top left corner of the window to the specified position. Args: window: Parent that the popup will be assigned to. x: The x position. y: The y position. Returns: list as [x,y] or None
Gets the top left corner of the window to the specified position.
def get_window_pos(window: str) -> Union[List[int], None]: """Gets the top left corner of the window to the specified position. Args: window: Parent that the popup will be assigned to. x: The x position. y: The y position. Returns: list as [x,y] or None """ config =...
[ "def", "get_window_pos", "(", "window", ":", "str", ")", "->", "Union", "[", "List", "[", "int", "]", ",", "None", "]", ":", "config", "=", "internal_dpg", ".", "get_item_configuration", "(", "window", ")", "return", "[", "config", "[", "\"x_pos\"", "]",...
[ 405, 0 ]
[ 417, 45 ]
python
en
['en', 'en', 'en']
True
show_item
(item: str)
Shows the item. Args: item: Item to show. Returns: None
Shows the item.
def show_item(item: str): """Shows the item. Args: item: Item to show. Returns: None """ internal_dpg.configure_item(item, show=True)
[ "def", "show_item", "(", "item", ":", "str", ")", ":", "internal_dpg", ".", "configure_item", "(", "item", ",", "show", "=", "True", ")" ]
[ 420, 0 ]
[ 429, 48 ]
python
en
['en', 'en', 'en']
True
hide_item
(item: str, *, children_only: bool = False)
Hides the item. Args: **item: Item to hide. Returns: None
Hides the item.
def hide_item(item: str, *, children_only: bool = False): """Hides the item. Args: **item: Item to hide. Returns: None """ if children_only: children = internal_dpg.get_item_children(item) for child in children: internal_dpg.configure_item(child, show=Fa...
[ "def", "hide_item", "(", "item", ":", "str", ",", "*", ",", "children_only", ":", "bool", "=", "False", ")", ":", "if", "children_only", ":", "children", "=", "internal_dpg", ".", "get_item_children", "(", "item", ")", "for", "child", "in", "children", "...
[ 432, 0 ]
[ 446, 53 ]
python
en
['en', 'la', 'en']
True
set_item_name
(item: str, name: str)
Sets the item's name, anything after the characters "##" in the name will not be shown. If no label is specified then by default this will be the displayed label. Args: item: Item name will be applied to. name: Unique name used to programmatically refer to the item. If label is unused this...
Sets the item's name, anything after the characters "##" in the name will not be shown.
def set_item_name(item: str, name: str): """Sets the item's name, anything after the characters "##" in the name will not be shown. If no label is specified then by default this will be the displayed label. Args: item: Item name will be applied to. name: Unique name used to programmati...
[ "def", "set_item_name", "(", "item", ":", "str", ",", "name", ":", "str", ")", ":", "internal_dpg", ".", "configure_item", "(", "item", ",", "name", "=", "name", ")" ]
[ 450, 0 ]
[ 463, 48 ]
python
en
['en', 'en', 'en']
True
set_item_label
(item: str, label: str)
Sets the item's displayed label, anything after the characters "##" in the name will not be shown. Args: item: Item label will be applied to. label: Displayed name of the item. Returns: None
Sets the item's displayed label, anything after the characters "##" in the name will not be shown.
def set_item_label(item: str, label: str): """Sets the item's displayed label, anything after the characters "##" in the name will not be shown. Args: item: Item label will be applied to. label: Displayed name of the item. Returns: None """ internal_dpg.configure_item(item,...
[ "def", "set_item_label", "(", "item", ":", "str", ",", "label", ":", "str", ")", ":", "internal_dpg", ".", "configure_item", "(", "item", ",", "label", "=", "label", ")" ]
[ 466, 0 ]
[ 476, 50 ]
python
en
['en', 'en', 'en']
True
set_item_popup
(item: str, popup: str)
Sets the item's popup. Args: item: Item the Popup will be applied to. popup: Popup to be applied. Returns: None
Sets the item's popup.
def set_item_popup(item: str, popup: str): """Sets the item's popup. Args: item: Item the Popup will be applied to. popup: Popup to be applied. Returns: None """ internal_dpg.configure_item(item, popup=popup)
[ "def", "set_item_popup", "(", "item", ":", "str", ",", "popup", ":", "str", ")", ":", "internal_dpg", ".", "configure_item", "(", "item", ",", "popup", "=", "popup", ")" ]
[ 479, 0 ]
[ 489, 50 ]
python
en
['en', 'en', 'en']
True
set_item_tip
(item: str, tip: str)
Sets the item's tip. Args: item: Item the tip will be applied to. tip: tip to be applied. Returns: None
Sets the item's tip.
def set_item_tip(item: str, tip: str): """Sets the item's tip. Args: item: Item the tip will be applied to. tip: tip to be applied. Returns: None """ internal_dpg.configure_item(item, tip=tip)
[ "def", "set_item_tip", "(", "item", ":", "str", ",", "tip", ":", "str", ")", ":", "internal_dpg", ".", "configure_item", "(", "item", ",", "tip", "=", "tip", ")" ]
[ 492, 0 ]
[ 502, 46 ]
python
en
['en', 'da', 'en']
True
set_item_width
(item: str, width: int)
Sets the item's width. Args: item: Item the Width will be applied to. width: Width of the item. width to be applied. Returns: None
Sets the item's width.
def set_item_width(item: str, width: int): """Sets the item's width. Args: item: Item the Width will be applied to. width: Width of the item. width to be applied. Returns: None """ internal_dpg.configure_item(item, width=width)
[ "def", "set_item_width", "(", "item", ":", "str", ",", "width", ":", "int", ")", ":", "internal_dpg", ".", "configure_item", "(", "item", ",", "width", "=", "width", ")" ]
[ 505, 0 ]
[ 515, 50 ]
python
en
['en', 'en', 'en']
True
set_item_height
(item: str, height: int)
Sets the item's height. Args: item: Item the Height will be applied to. height: Height of the item. height to be applied. Returns: None
Sets the item's height.
def set_item_height(item: str, height: int): """Sets the item's height. Args: item: Item the Height will be applied to. height: Height of the item. height to be applied. Returns: None """ internal_dpg.configure_item(item, height=height)
[ "def", "set_item_height", "(", "item", ":", "str", ",", "height", ":", "int", ")", ":", "internal_dpg", ".", "configure_item", "(", "item", ",", "height", "=", "height", ")" ]
[ 518, 0 ]
[ 528, 52 ]
python
en
['en', 'en', 'en']
True
get_item_label
(item: str)
Gets the item's label. Returns: label as a string or None
Gets the item's label.
def get_item_label(item: str) -> Union[str, None]: """Gets the item's label. Returns: label as a string or None """ return internal_dpg.get_item_configuration(item)["label"]
[ "def", "get_item_label", "(", "item", ":", "str", ")", "->", "Union", "[", "str", ",", "None", "]", ":", "return", "internal_dpg", ".", "get_item_configuration", "(", "item", ")", "[", "\"label\"", "]" ]
[ 531, 0 ]
[ 537, 61 ]
python
en
['en', 'en', 'en']
True
get_item_popup
(item: str)
Gets the item's popup. Returns: popup as a string or None
Gets the item's popup.
def get_item_popup(item: str) -> Union[str, None]: """Gets the item's popup. Returns: popup as a string or None """ return internal_dpg.get_item_configuration(item)["popup"]
[ "def", "get_item_popup", "(", "item", ":", "str", ")", "->", "Union", "[", "str", ",", "None", "]", ":", "return", "internal_dpg", ".", "get_item_configuration", "(", "item", ")", "[", "\"popup\"", "]" ]
[ 540, 0 ]
[ 546, 61 ]
python
en
['en', 'en', 'en']
True
get_item_tip
(item: str)
Gets the item's tip. Returns: tip as a string or None
Gets the item's tip.
def get_item_tip(item: str) -> Union[str, None]: """Gets the item's tip. Returns: tip as a string or None """ return internal_dpg.get_item_configuration(item)["tip"]
[ "def", "get_item_tip", "(", "item", ":", "str", ")", "->", "Union", "[", "str", ",", "None", "]", ":", "return", "internal_dpg", ".", "get_item_configuration", "(", "item", ")", "[", "\"tip\"", "]" ]
[ 549, 0 ]
[ 555, 59 ]
python
en
['en', 'en', 'en']
True
get_item_width
(item: str)
Gets the item's width. Returns: width as a int or None
Gets the item's width.
def get_item_width(item: str) -> Union[int, None]: """Gets the item's width. Returns: width as a int or None """ return internal_dpg.get_item_configuration(item)["width"]
[ "def", "get_item_width", "(", "item", ":", "str", ")", "->", "Union", "[", "int", ",", "None", "]", ":", "return", "internal_dpg", ".", "get_item_configuration", "(", "item", ")", "[", "\"width\"", "]" ]
[ 558, 0 ]
[ 564, 61 ]
python
en
['en', 'en', 'en']
True
get_item_height
(item: str)
Gets the item's height. Returns: height as a int or None
Gets the item's height.
def get_item_height(item: str) -> Union[int, None]: """Gets the item's height. Returns: height as a int or None """ return internal_dpg.get_item_configuration(item)["height"]
[ "def", "get_item_height", "(", "item", ":", "str", ")", "->", "Union", "[", "int", ",", "None", "]", ":", "return", "internal_dpg", ".", "get_item_configuration", "(", "item", ")", "[", "\"height\"", "]" ]
[ 567, 0 ]
[ 573, 62 ]
python
en
['en', 'en', 'en']
True
set_drawing_origin
(drawing: str, x: float, y: float)
Sets the drawing's origin (the bottom left corner) to the specified position. Args: drawing: Drawing that will be set. x: x position to set y: y position to set Returns: None
Sets the drawing's origin (the bottom left corner) to the specified position.
def set_drawing_origin(drawing: str, x: float, y: float): """Sets the drawing's origin (the bottom left corner) to the specified position. Args: drawing: Drawing that will be set. x: x position to set y: y position to set Returns: None """ internal_dpg.configure_ite...
[ "def", "set_drawing_origin", "(", "drawing", ":", "str", ",", "x", ":", "float", ",", "y", ":", "float", ")", ":", "internal_dpg", ".", "configure_item", "(", "drawing", ",", "originx", "=", "x", ",", "originy", "=", "y", ")" ]
[ 577, 0 ]
[ 588, 62 ]
python
en
['en', 'en', 'en']
True
set_drawing_scale
(drawing: str, x: float, y: float)
Sets the drawing's scale. Args: drawing: Drawing that will be set. x: x scale to set y: y scale to set Returns: None
Sets the drawing's scale.
def set_drawing_scale(drawing: str, x: float, y: float): """Sets the drawing's scale. Args: drawing: Drawing that will be set. x: x scale to set y: y scale to set Returns: None """ internal_dpg.configure_item(drawing, scalex=x, scaley=y)
[ "def", "set_drawing_scale", "(", "drawing", ":", "str", ",", "x", ":", "float", ",", "y", ":", "float", ")", ":", "internal_dpg", ".", "configure_item", "(", "drawing", ",", "scalex", "=", "x", ",", "scaley", "=", "y", ")" ]
[ 591, 0 ]
[ 602, 60 ]
python
en
['en', 'en', 'en']
True
set_drawing_size
(drawing: str, width: int, height: int)
Sets the drawing's size, width and height. Args: drawing: Drawing that will be set. width: x axis width to set height: y axis height to set Returns: None
Sets the drawing's size, width and height.
def set_drawing_size(drawing: str, width: int, height: int): """Sets the drawing's size, width and height. Args: drawing: Drawing that will be set. width: x axis width to set height: y axis height to set Returns: None """ internal_dpg.configure_item(drawing, width=w...
[ "def", "set_drawing_size", "(", "drawing", ":", "str", ",", "width", ":", "int", ",", "height", ":", "int", ")", ":", "internal_dpg", ".", "configure_item", "(", "drawing", ",", "width", "=", "width", ",", "height", "=", "height", ")" ]
[ 605, 0 ]
[ 616, 68 ]
python
en
['en', 'en', 'en']
True
get_drawing_origin
(drawing: str)
Gets the drawing's origin, (bottom left corner). Args: drawing: Drawing that will be set. Returns: list as [x,y] or None
Gets the drawing's origin, (bottom left corner).
def get_drawing_origin(drawing: str) -> Union[List[float], None]: """Gets the drawing's origin, (bottom left corner). Args: drawing: Drawing that will be set. Returns: list as [x,y] or None """ config = internal_dpg.get_item_configuration(drawing) return [config["originx"], con...
[ "def", "get_drawing_origin", "(", "drawing", ":", "str", ")", "->", "Union", "[", "List", "[", "float", "]", ",", "None", "]", ":", "config", "=", "internal_dpg", ".", "get_item_configuration", "(", "drawing", ")", "return", "[", "config", "[", "\"originx\...
[ 619, 0 ]
[ 629, 49 ]
python
en
['en', 'nl', 'en']
True
get_drawing_scale
(drawing: str)
Gets the drawing's scale. Args: drawing: Drawing that will be set. Returns: list as [x,y] or None
Gets the drawing's scale.
def get_drawing_scale(drawing: str) -> Union[List[float], None]: """Gets the drawing's scale. Args: drawing: Drawing that will be set. Returns: list as [x,y] or None """ config = internal_dpg.get_item_configuration(drawing) return [config["scalex"], config["scaley"]]
[ "def", "get_drawing_scale", "(", "drawing", ":", "str", ")", "->", "Union", "[", "List", "[", "float", "]", ",", "None", "]", ":", "config", "=", "internal_dpg", ".", "get_item_configuration", "(", "drawing", ")", "return", "[", "config", "[", "\"scalex\""...
[ 632, 0 ]
[ 642, 47 ]
python
en
['en', 'en', 'en']
True
get_drawing_size
(drawing: str)
Gets the drawing's scale. Args: drawing: Drawing that will be set. Returns: list as [width, height] or None
Gets the drawing's scale.
def get_drawing_size(drawing: str) -> Union[List[int], None]: """Gets the drawing's scale. Args: drawing: Drawing that will be set. Returns: list as [width, height] or None """ config = internal_dpg.get_item_configuration(drawing) return [config["width"], config["height"]]
[ "def", "get_drawing_size", "(", "drawing", ":", "str", ")", "->", "Union", "[", "List", "[", "int", "]", ",", "None", "]", ":", "config", "=", "internal_dpg", ".", "get_item_configuration", "(", "drawing", ")", "return", "[", "config", "[", "\"width\"", ...
[ 645, 0 ]
[ 655, 46 ]
python
en
['en', 'en', 'en']
True
run_rouge
(summaries_references)
Run Perl ROUGE 1.5.5 script
Run Perl ROUGE 1.5.5 script
def run_rouge(summaries_references): """Run Perl ROUGE 1.5.5 script""" summaries, references = summaries_references temp_dir = tempfile.mkdtemp() system_dir = os.path.join(temp_dir, 'system') model_dir = os.path.join(temp_dir, 'model') # directory for generated summaries os.makedirs(system...
[ "def", "run_rouge", "(", "summaries_references", ")", ":", "summaries", ",", "references", "=", "summaries_references", "temp_dir", "=", "tempfile", ".", "mkdtemp", "(", ")", "system_dir", "=", "os", ".", "path", ".", "join", "(", "temp_dir", ",", "'system'", ...
[ 26, 0 ]
[ 77, 22 ]
python
co
['fr', 'co', 'hi']
False
Throttle.__init__
(self, **kwargs)
Allows setting of throttle parameters. Kwargs: limit (int): Max number of failures before imposing limiter timeout (int): number of timeout seconds after max number of tries has been reached. cache_size (int): Max number of attempts to record per...
Allows setting of throttle parameters. Kwargs: limit (int): Max number of failures before imposing limiter timeout (int): number of timeout seconds after max number of tries has been reached. cache_size (int): Max number of attempts to record per...
def __init__(self, **kwargs): """ Allows setting of throttle parameters. Kwargs: limit (int): Max number of failures before imposing limiter timeout (int): number of timeout seconds after max number of tries has been reached. cache_size (i...
[ "def", "__init__", "(", "self", ",", "*", "*", "kwargs", ")", ":", "self", ".", "storage", "=", "defaultdict", "(", "deque", ")", "self", ".", "cache_size", "=", "self", ".", "limit", "=", "kwargs", ".", "get", "(", "'limit'", ",", "5", ")", "self"...
[ 18, 4 ]
[ 32, 52 ]
python
en
['en', 'error', 'th']
False
Throttle.get
(self, ip=None)
Convenience function that returns the storage table, or part of. Args: ip (str, optional): IP address of requestor Returns: storage (dict): When no IP is provided, returns a dict of all current IPs being tracked and the timestamps of their rece...
Convenience function that returns the storage table, or part of. Args: ip (str, optional): IP address of requestor Returns: storage (dict): When no IP is provided, returns a dict of all current IPs being tracked and the timestamps of their rece...
def get(self, ip=None): """ Convenience function that returns the storage table, or part of. Args: ip (str, optional): IP address of requestor Returns: storage (dict): When no IP is provided, returns a dict of all current IPs being track...
[ "def", "get", "(", "self", ",", "ip", "=", "None", ")", ":", "if", "ip", ":", "return", "self", ".", "storage", ".", "get", "(", "ip", ",", "deque", "(", "maxlen", "=", "self", ".", "cache_size", ")", ")", "else", ":", "return", "self", ".", "s...
[ 34, 4 ]
[ 50, 33 ]
python
en
['en', 'error', 'th']
False
Throttle.update
(self, ip)
Store the time of the latest failure/ Args: ip (str): IP address of requestor Returns: None
Store the time of the latest failure/ Args: ip (str): IP address of requestor Returns: None
def update(self, ip): """ Store the time of the latest failure/ Args: ip (str): IP address of requestor Returns: None """ # Enforce length limits if not self.storage[ip].maxlen: self.storage[ip] = deque(maxlen=sel...
[ "def", "update", "(", "self", ",", "ip", ")", ":", "# Enforce length limits", "if", "not", "self", ".", "storage", "[", "ip", "]", ".", "maxlen", ":", "self", ".", "storage", "[", "ip", "]", "=", "deque", "(", "maxlen", "=", "self", ".", "cache_size"...
[ 52, 4 ]
[ 67, 44 ]
python
en
['en', 'error', 'th']
False
Throttle.check
(self, ip)
This will check the session's address against the storage dictionary to check they haven't spammed too many fails recently. Args: ip (str): IP address of requestor Returns: throttled (bool): True if throttling is active, False o...
This will check the session's address against the storage dictionary to check they haven't spammed too many fails recently. Args: ip (str): IP address of requestor Returns: throttled (bool): True if throttling is active, False o...
def check(self, ip): """ This will check the session's address against the storage dictionary to check they haven't spammed too many fails recently. Args: ip (str): IP address of requestor Returns: throttled (bool): True if throttling is...
[ "def", "check", "(", "self", ",", "ip", ")", ":", "now", "=", "time", ".", "time", "(", ")", "ip", "=", "str", "(", "ip", ")", "# checking mode", "latest_fails", "=", "self", ".", "storage", "[", "ip", "]", "if", "latest_fails", "and", "len", "(", ...
[ 69, 4 ]
[ 98, 24 ]
python
en
['en', 'error', 'th']
False
ConnectionRequestHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Handle connection request. Args: context: Request context responder: Responder callback
Handle connection request.
async def handle(self, context: RequestContext, responder: BaseResponder): """ Handle connection request. Args: context: Request context responder: Responder callback """ self._logger.debug(f"ConnectionRequestHandler called with context {context}") ...
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "f\"ConnectionRequestHandler called with context {context}\"", ")", "assert", "isinstance", "("...
[ 12, 4 ]
[ 44, 17 ]
python
en
['en', 'error', 'th']
False
custom_expansion_mappings
(expansions)
add custom expansions mappings, because sometimes BGG is wrong
add custom expansions mappings, because sometimes BGG is wrong
def custom_expansion_mappings(expansions): """add custom expansions mappings, because sometimes BGG is wrong""" exp_map = [ # Original Tuscany should be an expansion for Viticulture Essential Edition (even if there is overlap) {"id": 147101, "baseId": 183394}, # Poison Expansion for Cou...
[ "def", "custom_expansion_mappings", "(", "expansions", ")", ":", "exp_map", "=", "[", "# Original Tuscany should be an expansion for Viticulture Essential Edition (even if there is overlap)", "{", "\"id\"", ":", "147101", ",", "\"baseId\"", ":", "183394", "}", ",", "# Poison ...
[ 293, 0 ]
[ 336, 21 ]
python
en
['en', 'en', 'en']
True
family_filter
(family)
Filter out Admin messages
Filter out Admin messages
def family_filter(family): """Filter out Admin messages""" group = family["name"].split(":")[0] if group == "Admin": return None return family
[ "def", "family_filter", "(", "family", ")", ":", "group", "=", "family", "[", "\"name\"", "]", ".", "split", "(", "\":\"", ")", "[", "0", "]", "if", "group", "==", "\"Admin\"", ":", "return", "None", "return", "family" ]
[ 339, 0 ]
[ 346, 17 ]
python
en
['en', 'en', 'en']
True
is_promo_box
(game)
Ignore the Deutscher Spielepreile Goodie Boxes and Brettspiel Adventskalender as expansions and treat them like base games
Ignore the Deutscher Spielepreile Goodie Boxes and Brettspiel Adventskalender as expansions and treat them like base games
def is_promo_box(game): """Ignore the Deutscher Spielepreile Goodie Boxes and Brettspiel Adventskalender as expansions and treat them like base games""" # return game["id"] in (178656, 191779, 204573, 231506, 256951, 205611, 232298, 257590, 286086) # Change this to look for board game family 39378 (Box of ...
[ "def", "is_promo_box", "(", "game", ")", ":", "# return game[\"id\"] in (178656, 191779, 204573, 231506, 256951, 205611, 232298, 257590, 286086)", "# Change this to look for board game family 39378 (Box of Promos)", "return", "any", "(", "39378", "==", "family", "[", "\"id\"", "]", ...
[ 348, 0 ]
[ 353, 68 ]
python
en
['en', 'en', 'en']
True
move_article_to_end
(orig)
Move articles to the end of the title for proper title sorting
Move articles to the end of the title for proper title sorting
def move_article_to_end(orig): """Move articles to the end of the title for proper title sorting""" if orig == None or orig == "": return orig new_title = orig title = new_title.split() if title[0] in articles: new_title = ' '.join(title[1:]) + ", " + title[0] return new_title
[ "def", "move_article_to_end", "(", "orig", ")", ":", "if", "orig", "==", "None", "or", "orig", "==", "\"\"", ":", "return", "orig", "new_title", "=", "orig", "title", "=", "new_title", ".", "split", "(", ")", "if", "title", "[", "0", "]", "in", "arti...
[ 357, 0 ]
[ 368, 20 ]
python
en
['en', 'en', 'en']
True
move_article_to_start
(orig)
Move the article back to the front for string comparison
Move the article back to the front for string comparison
def move_article_to_start(orig): """Move the article back to the front for string comparison""" if orig == None or orig == "": return orig new_title = orig title = orig.split(", ") if title[-1] in articles: new_title = title[-1] + " " + ", ".join(title[:-1]) return new_title
[ "def", "move_article_to_start", "(", "orig", ")", ":", "if", "orig", "==", "None", "or", "orig", "==", "\"\"", ":", "return", "orig", "new_title", "=", "orig", "title", "=", "orig", ".", "split", "(", "\", \"", ")", "if", "title", "[", "-", "1", "]",...
[ 370, 0 ]
[ 380, 20 ]
python
en
['en', 'en', 'en']
True
remove_prefix
(expansion, game_details)
rules for cleaning up linked items to remove duplicate data, such as the title being repeated on every expansion
rules for cleaning up linked items to remove duplicate data, such as the title being repeated on every expansion
def remove_prefix(expansion, game_details): """rules for cleaning up linked items to remove duplicate data, such as the title being repeated on every expansion""" new_exp = move_article_to_start(expansion) game_titles = game_details.alternate_names titles = [x.lower() for x in game_titles] new_ex...
[ "def", "remove_prefix", "(", "expansion", ",", "game_details", ")", ":", "new_exp", "=", "move_article_to_start", "(", "expansion", ")", "game_titles", "=", "game_details", ".", "alternate_names", "titles", "=", "[", "x", ".", "lower", "(", ")", "for", "x", ...
[ 396, 0 ]
[ 464, 18 ]
python
en
['en', 'en', 'en']
True
box3d_multiclass_nms
(mlvl_bboxes, mlvl_bboxes_for_nms, mlvl_scores, score_thr, max_num, cfg, mlvl_dir_scores=None)
Multi-class nms for 3D boxes. Args: mlvl_bboxes (torch.Tensor): Multi-level boxes with shape (N, M). M is the dimensions of boxes. mlvl_bboxes_for_nms (torch.Tensor): Multi-level boxes with shape (N, 4). N is the number of boxes. mlvl_scores (torch.Tensor): Multi-lev...
Multi-class nms for 3D boxes.
def box3d_multiclass_nms(mlvl_bboxes, mlvl_bboxes_for_nms, mlvl_scores, score_thr, max_num, cfg, mlvl_dir_scores=None): """Multi-class nms for 3D boxes. Args: ...
[ "def", "box3d_multiclass_nms", "(", "mlvl_bboxes", ",", "mlvl_bboxes_for_nms", ",", "mlvl_scores", ",", "score_thr", ",", "max_num", ",", "cfg", ",", "mlvl_dir_scores", "=", "None", ")", ":", "# do multi class nms", "# the fg class id range: [0, num_classes-1]", "num_clas...
[ 7, 0 ]
[ 87, 45 ]
python
en
['en', 'en', 'en']
True
aligned_3d_nms
(boxes, scores, classes, thresh)
3d nms for aligned boxes. Args: boxes (torch.Tensor): Aligned box with shape [n, 6]. scores (torch.Tensor): Scores of each box. classes (torch.Tensor): Class of each box. thresh (float): Iou threshold for nms. Returns: torch.Tensor: Indices of selected boxes.
3d nms for aligned boxes.
def aligned_3d_nms(boxes, scores, classes, thresh): """3d nms for aligned boxes. Args: boxes (torch.Tensor): Aligned box with shape [n, 6]. scores (torch.Tensor): Scores of each box. classes (torch.Tensor): Class of each box. thresh (float): Iou threshold for nms. Returns: ...
[ "def", "aligned_3d_nms", "(", "boxes", ",", "scores", ",", "classes", ",", "thresh", ")", ":", "x1", "=", "boxes", "[", ":", ",", "0", "]", "y1", "=", "boxes", "[", ":", ",", "1", "]", "z1", "=", "boxes", "[", ":", ",", "2", "]", "x2", "=", ...
[ 90, 0 ]
[ 137, 18 ]
python
en
['en', 'en', 'en']
True
circle_nms
(dets, thresh, post_max_size=83)
Circular NMS. An object is only counted as positive if no other center with a higher confidence exists within a radius r using a bird-eye view distance metric. Args: dets (torch.Tensor): Detection results with the shape of [N, 3]. thresh (float): Value of threshold. post_max_si...
Circular NMS.
def circle_nms(dets, thresh, post_max_size=83): """Circular NMS. An object is only counted as positive if no other center with a higher confidence exists within a radius r using a bird-eye view distance metric. Args: dets (torch.Tensor): Detection results with the shape of [N, 3]. ...
[ "def", "circle_nms", "(", "dets", ",", "thresh", ",", "post_max_size", "=", "83", ")", ":", "x1", "=", "dets", "[", ":", ",", "0", "]", "y1", "=", "dets", "[", ":", ",", "1", "]", "scores", "=", "dets", "[", ":", ",", "2", "]", "order", "=", ...
[ 141, 0 ]
[ 180, 31 ]
python
en
['en', 'su', 'hi']
False
Up.x
(self)
The 'x' property is a number and may be specified as: - An int or float Returns ------- int|float
The 'x' property is a number and may be specified as: - An int or float
def x(self): """ The 'x' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 15, 4 ]
[ 24, 24 ]
python
en
['en', 'error', 'th']
False
Up.y
(self)
The 'y' property is a number and may be specified as: - An int or float Returns ------- int|float
The 'y' property is a number and may be specified as: - An int or float
def y(self): """ The 'y' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 33, 4 ]
[ 42, 24 ]
python
en
['en', 'error', 'th']
False
Up.z
(self)
The 'z' property is a number and may be specified as: - An int or float Returns ------- int|float
The 'z' property is a number and may be specified as: - An int or float
def z(self): """ The 'z' property is a number and may be specified as: - An int or float Returns ------- int|float """ return self["z"]
[ "def", "z", "(", "self", ")", ":", "return", "self", "[", "\"z\"", "]" ]
[ 51, 4 ]
[ 60, 24 ]
python
en
['en', 'error', 'th']
False
Up.__init__
(self, arg=None, x=None, y=None, z=None, **kwargs)
Construct a new Up object Sets the (x,y,z) components of the 'up' camera vector. This vector determines the up direction of this scene with respect to the page. The default is *{x: 0, y: 0, z: 1}* which means that the z axis points up. Parameters ------...
Construct a new Up object Sets the (x,y,z) components of the 'up' camera vector. This vector determines the up direction of this scene with respect to the page. The default is *{x: 0, y: 0, z: 1}* which means that the z axis points up.
def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): """ Construct a new Up object Sets the (x,y,z) components of the 'up' camera vector. This vector determines the up direction of this scene with respect to the page. The default is *{x: 0, y: 0, z: 1}* which ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "x", "=", "None", ",", "y", "=", "None", ",", "z", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "Up", ",", "self", ")", ".", "__init__", "(", "\"up\"", ")", "if", ...
[ 79, 4 ]
[ 153, 34 ]
python
en
['en', 'error', 'th']
False
add_partition
(table, day)
Adds a day's partition to a specified table
Adds a day's partition to a specified table
def add_partition(table, day): """Adds a day's partition to a specified table""" try: cur.execute( ("ALTER TABLE {4}{1}{3} ADD PARTITION (dt = '{2}') location '{0}/{1}/{2}/'").format(s3_path, table, day, table_suffix, table_prefix) ) print('NEW PARTITION FOR: {} | {}'.format(...
[ "def", "add_partition", "(", "table", ",", "day", ")", ":", "try", ":", "cur", ".", "execute", "(", "(", "\"ALTER TABLE {4}{1}{3} ADD PARTITION (dt = '{2}') location '{0}/{1}/{2}/'\"", ")", ".", "format", "(", "s3_path", ",", "table", ",", "day", ",", "table_suffi...
[ 32, 0 ]
[ 40, 55 ]
python
en
['en', 'en', 'en']
True