repo_name stringlengths 7 65 | path stringlengths 5 185 | copies stringlengths 1 4 | size stringlengths 4 6 | content stringlengths 977 990k | license stringclasses 14
values | hash stringlengths 32 32 | line_mean float64 7.18 99.4 | line_max int64 31 999 | alpha_frac float64 0.25 0.95 | ratio float64 1.5 7.84 | autogenerated bool 1
class | config_or_test bool 2
classes | has_no_keywords bool 2
classes | has_few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/contour/_stream.py | 1 | 4120 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Stream(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "contour"
_path_str = "contour.stream"
_valid_props = {"maxpoints", "token"}
# maxpoints... | mit | 0970a8f017b9bc1f453ec62647284599 | 28.219858 | 82 | 0.527913 | 4.58287 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/histogram2d/_marker.py | 1 | 3388 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Marker(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "histogram2d"
_path_str = "histogram2d.marker"
_valid_props = {"color", "colorsrc"}
# co... | mit | 3a36fb2f42773764133e66192783b505 | 25.263566 | 82 | 0.508264 | 4.597015 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/surface/hoverlabel/_font.py | 1 | 11190 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "surface.hoverlabel"
_path_str = "surface.hoverlabel.font"
_valid_props = {"color", "colorsrc",... | mit | 1844e6074dafd56d0da94c0d66505743 | 32.909091 | 82 | 0.551921 | 4.066134 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/choropleth/selected/_marker.py | 1 | 2689 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Marker(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "choropleth.selected"
_path_str = "choropleth.selected.marker"
_valid_props = {"opacity"}
... | mit | b710d7e7e99dd94295f21f5567408e6f | 26.161616 | 82 | 0.513202 | 4.676522 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/layout/geo/_lataxis.py | 1 | 10675 | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Lataxis(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.geo"
_path_str = "layout.geo.lataxis"
_valid_props = {
"dtick",
"... | mit | cdc243eb20e581cc9c43321b2db05643 | 29.942029 | 84 | 0.527588 | 3.944937 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/pie/_textfont.py | 1 | 11138 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Textfont(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "pie"
_path_str = "pie.textfont"
_valid_props = {"color", "colorsrc", "family", "familysrc"... | mit | df21c0ca65dc0aeb0bd13c5f86c00e42 | 32.854103 | 82 | 0.551266 | 4.057559 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/surface/_colorbar.py | 1 | 78007 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class ColorBar(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "surface"
_path_str = "surface.colorbar"
_valid_props = {
"bgcolor",
"borde... | mit | f23eb283e78b6df38ab8653b44886dc5 | 35.030947 | 93 | 0.557963 | 4.204323 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/layout/geo/_domain.py | 1 | 8036 | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Domain(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.geo"
_path_str = "layout.geo.domain"
_valid_props = {"column", "row", "x", "y"}
... | mit | a585271f25dafa4e48e2bb0f0331d9bc | 32.344398 | 84 | 0.535963 | 4.386463 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/parcoords/_line.py | 1 | 37885 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Line(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "parcoords"
_path_str = "parcoords.line"
_valid_props = {
"autocolorscale",
"ca... | mit | c37786188a5cf0510afb8121f0e2eafe | 41.047725 | 87 | 0.537231 | 4.374206 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/bar/selected/_textfont.py | 1 | 5001 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Textfont(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "bar.selected"
_path_str = "bar.selected.textfont"
_valid_props = {"color"}
# color
... | mit | e7c527caaa9c3fcb30991e5da0876872 | 35.23913 | 82 | 0.546291 | 3.925432 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/isosurface/caps/_y.py | 1 | 4623 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Y(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "isosurface.caps"
_path_str = "isosurface.caps.y"
_valid_props = {"fill", "show"}
# fill
... | mit | fae5180cabecce9b8af5bdd8e10b3568 | 30.026846 | 82 | 0.535367 | 4.483996 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/layout/smith/_realaxis.py | 1 | 41190 | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Realaxis(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.smith"
_path_str = "layout.smith.realaxis"
_valid_props = {
"color",
... | mit | aa021bb6d1bc9c7f36a47e31f10c0cd8 | 33.847716 | 84 | 0.554989 | 4.042992 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/isosurface/caps/_z.py | 1 | 1179 | import _plotly_utils.basevalidators
class ZValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="z", parent_name="isosurface.caps", **kwargs):
super(ZValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
data_c... | mit | d9902b6741ea0305e758b09d024c585d | 39.655172 | 81 | 0.543681 | 4.605469 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/candlestick/decreasing/_line.py | 1 | 5754 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Line(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "candlestick.decreasing"
_path_str = "candlestick.decreasing.line"
_valid_props = {"color", "wi... | mit | bfe0030528087bcb4e39d3a08fad7063 | 33.662651 | 82 | 0.54032 | 3.919619 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/cone/_hoverlabel.py | 1 | 17754 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Hoverlabel(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "cone"
_path_str = "cone.hoverlabel"
_valid_props = {
"align",
"alignsrc"... | mit | 5c3c2a395a09df45d6f5732eaa4eebe2 | 34.296223 | 82 | 0.554072 | 4.198156 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/scatterpolargl/_textfont.py | 1 | 11190 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Textfont(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scatterpolargl"
_path_str = "scatterpolargl.textfont"
_valid_props = {"color", "colorsrc",... | mit | 2c2164764e8a41fa2234a4cabbe5ec62 | 32.909091 | 82 | 0.552636 | 4.05876 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/mesh3d/colorbar/_title.py | 1 | 1360 | import _plotly_utils.basevalidators
class TitleValidator(_plotly_utils.basevalidators.TitleValidator):
def __init__(self, plotly_name="title", parent_name="mesh3d.colorbar", **kwargs):
super(TitleValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | f5e3179d5812669748a5febd81ecbaab | 40.212121 | 85 | 0.540441 | 4.805654 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/scattermapbox/_line.py | 1 | 5565 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Line(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scattermapbox"
_path_str = "scattermapbox.line"
_valid_props = {"color", "width"}
# color... | mit | cd8b6c1722f912ab84d750d52922899b | 32.524096 | 82 | 0.532075 | 3.935644 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/heatmapgl/_colorbar.py | 1 | 12726 | import _plotly_utils.basevalidators
class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="colorbar", parent_name="heatmapgl", **kwargs):
super(ColorbarValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | 75a993706cc03768d5c36c7a8d081b47 | 47.758621 | 82 | 0.52656 | 4.86282 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/_font.py | 1 | 11210 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "candlestick.hoverlabel"
_path_str = "candlestick.hoverlabel.font"
_valid_props = {"color", "co... | mit | c8613a8d2be449c1403a396439d30b91 | 32.969697 | 82 | 0.552721 | 4.058653 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/layout/mapbox/_layers.py | 1 | 6143 | import _plotly_utils.basevalidators
class LayersValidator(_plotly_utils.basevalidators.CompoundArrayValidator):
def __init__(self, plotly_name="layers", parent_name="layout.mapbox", **kwargs):
super(LayersValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | 7a47bf66d155b861021f34018b057b5e | 47.370079 | 84 | 0.543871 | 5.131997 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/_scattermapbox.py | 1 | 79900 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Scattermapbox(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "scattermapbox"
_valid_props = {
"below",
"cluster",
"connectgaps",
... | mit | 8b219b3a7a47c9fdd17dfdd327d3ed4c | 35.055957 | 88 | 0.559424 | 4.542354 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/bar/_selected.py | 1 | 4206 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Selected(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "bar"
_path_str = "bar.selected"
_valid_props = {"marker", "textfont"}
# marker
# ... | mit | 3a5ef1a384555e64542d3e9ff945e817 | 28.208333 | 82 | 0.532335 | 4.678532 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/volume/hoverlabel/_font.py | 1 | 1859 | import _plotly_utils.basevalidators
class FontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="font", parent_name="volume.hoverlabel", **kwargs):
super(FontValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | fc0a0c9ea3af3954a58ca0bd22d648f8 | 39.413043 | 86 | 0.532006 | 4.766667 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/layout/_activeshape.py | 1 | 5807 | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Activeshape(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout"
_path_str = "layout.activeshape"
_valid_props = {"fillcolor", "opacity"}
... | mit | d23144ed4c015e54ec42cc392df1e106 | 33.981928 | 84 | 0.548476 | 3.988324 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/scatter/legendgrouptitle/_font.py | 1 | 8463 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scatter.legendgrouptitle"
_path_str = "scatter.legendgrouptitle.font"
_valid_props = {"color",... | mit | e371db4f5aae20c10d3036cb41f03014 | 36.281938 | 82 | 0.560203 | 4.016611 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/figure_factory/_bullet.py | 1 | 13152 | from __future__ import absolute_import
import collections
import math
from plotly import exceptions, optional_imports
import plotly.colors as clrs
from plotly.figure_factory import utils
import plotly
import plotly.graph_objs as go
pd = optional_imports.get_module("pandas")
def _bullet(
df,
markers,
m... | mit | 83ce4265015ec33917b88ef07302d0e1 | 34.642276 | 92 | 0.542883 | 3.877358 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/cone/_lighting.py | 1 | 9080 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Lighting(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "cone"
_path_str = "cone.lighting"
_valid_props = {
"ambient",
"diffuse",
... | mit | c8412b23d8f6f575937e631edfa95738 | 28.196141 | 82 | 0.553965 | 4.344498 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/splom/marker/_colorbar.py | 1 | 12764 | import _plotly_utils.basevalidators
class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="colorbar", parent_name="splom.marker", **kwargs):
super(ColorbarValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | f67a167e87bd6659d90dfd16799ec762 | 47.717557 | 85 | 0.526089 | 4.842185 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/sunburst/_outsidetextfont.py | 1 | 1894 | import _plotly_utils.basevalidators
class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="outsidetextfont", parent_name="sunburst", **kwargs):
super(OutsidetextfontValidator, self).__init__(
plotly_name=plotly_name,
parent_n... | mit | 1091176d07e9059abee02984160ecb18 | 40.173913 | 88 | 0.541183 | 4.746867 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/_tickfont.py | 1 | 1556 | import _plotly_utils.basevalidators
class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name="tickfont", parent_name="scattergeo.marker.colorbar", **kwargs
):
super(TickfontValidator, self).__init__(
plotly_name=plotly_name,
... | mit | 561ce5a68409117fb5c399772d00f522 | 38.897436 | 88 | 0.543059 | 4.49711 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/densitymapbox/_legendgrouptitle.py | 1 | 4697 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Legendgrouptitle(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "densitymapbox"
_path_str = "densitymapbox.legendgrouptitle"
_valid_props = {"font"... | mit | 60954b3519f0de7278422d5abb954b2f | 29.5 | 89 | 0.5165 | 4.697 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/indicator/legendgrouptitle/_font.py | 1 | 1540 | import _plotly_utils.basevalidators
class FontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name="font", parent_name="indicator.legendgrouptitle", **kwargs
):
super(FontValidator, self).__init__(
plotly_name=plotly_name,
parent_na... | mit | 6c009030ad6f7b2f105eefeb82388800 | 38.487179 | 84 | 0.538961 | 4.516129 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/_font.py | 1 | 1543 | import _plotly_utils.basevalidators
class FontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name="font", parent_name="scatter.marker.colorbar.title", **kwargs
):
super(FontValidator, self).__init__(
plotly_name=plotly_name,
parent... | mit | 8f4ce2a03c62821d489fb2c4d96f1767 | 38.564103 | 87 | 0.538561 | 4.498542 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/layout/slider/currentvalue/_font.py | 1 | 1540 | import _plotly_utils.basevalidators
class FontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name="font", parent_name="layout.slider.currentvalue", **kwargs
):
super(FontValidator, self).__init__(
plotly_name=plotly_name,
parent_na... | mit | 58d61ca4b23db748fc762b34a2aab92d | 38.487179 | 84 | 0.538312 | 4.502924 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/scatterternary/unselected/_marker.py | 1 | 6925 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Marker(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scatterternary.unselected"
_path_str = "scatterternary.unselected.marker"
_valid_props = {"c... | mit | c02c36a2bdb4dae44f007437bec08626 | 33.1133 | 82 | 0.548736 | 4.122024 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/icicle/_legendgrouptitle.py | 1 | 4647 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Legendgrouptitle(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "icicle"
_path_str = "icicle.legendgrouptitle"
_valid_props = {"font", "text"}
... | mit | 94c11a19462a7d907debfba6f92bdfcd | 29.175325 | 82 | 0.511513 | 4.647 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/parcoords/_legendgrouptitle.py | 1 | 4668 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Legendgrouptitle(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "parcoords"
_path_str = "parcoords.legendgrouptitle"
_valid_props = {"font", "text"... | mit | 8375dd980453bd81a2cb31cc380fbb89 | 29.311688 | 85 | 0.51371 | 4.700906 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/scattergeo/selected/_marker.py | 1 | 6438 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Marker(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scattergeo.selected"
_path_str = "scattergeo.selected.marker"
_valid_props = {"color", "opac... | mit | eaaa16287c4e2c711bdbddd3d054f592 | 32.185567 | 82 | 0.539453 | 4.051605 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/scatterternary/_hoverlabel.py | 1 | 2078 | import _plotly_utils.basevalidators
class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self, plotly_name="hoverlabel", parent_name="scatterternary", **kwargs
):
super(HoverlabelValidator, self).__init__(
plotly_name=plotly_name,
par... | mit | 7469865814b18b1172d3aca19abca887 | 38.207547 | 78 | 0.533686 | 5.30102 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/scatterpolar/_textfont.py | 1 | 1870 | import _plotly_utils.basevalidators
class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="textfont", parent_name="scatterpolar", **kwargs):
super(TextfontValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | dabf9ac8ca2d10ae16f77e09e4725b38 | 39.652174 | 85 | 0.535294 | 4.770408 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/volume/slices/_y.py | 1 | 6143 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Y(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "volume.slices"
_path_str = "volume.slices.y"
_valid_props = {"fill", "locations", "locationssrc",... | mit | e085ad1493576016fe542005ef471a4a | 27.705607 | 82 | 0.532639 | 4.675038 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/waterfall/_legendgrouptitle.py | 1 | 4668 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Legendgrouptitle(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "waterfall"
_path_str = "waterfall.legendgrouptitle"
_valid_props = {"font", "text"... | mit | 6a03d69dfb2e6425f15f188c553e3cad | 29.311688 | 85 | 0.51371 | 4.635551 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/_font.py | 1 | 11226 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scatterternary.hoverlabel"
_path_str = "scatterternary.hoverlabel.font"
_valid_props = {"color... | mit | 8d2acace23449370e9943b8731204c46 | 33.018182 | 82 | 0.553269 | 4.064446 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/contour/hoverlabel/_font.py | 1 | 1860 | import _plotly_utils.basevalidators
class FontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="font", parent_name="contour.hoverlabel", **kwargs):
super(FontValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | 667b6ff3b26e566f6a201cadd53f3d65 | 39.434783 | 87 | 0.532258 | 4.769231 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py | 1 | 9560 | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickformatstop(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.ternary.aaxis"
_path_str = "layout.ternary.aaxis.tickformatstop"
_valid_pr... | mit | 5ed90d40a6301507219db002afaaef8c | 32.780919 | 84 | 0.562866 | 4.616127 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/treemap/_hoverlabel.py | 1 | 2057 | import _plotly_utils.basevalidators
class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="hoverlabel", parent_name="treemap", **kwargs):
super(HoverlabelValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,... | mit | ee0dc708f6c202c0eb5b92b3778d3857 | 39.333333 | 82 | 0.535732 | 5.287918 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/scatter/_marker.py | 1 | 7899 | import _plotly_utils.basevalidators
class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="marker", parent_name="scatter", **kwargs):
super(MarkerValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | 8ca6b71d9ff5d4545a2ffc82842e04fd | 46.872727 | 78 | 0.540068 | 5.063462 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/_histogram2d.py | 1 | 113566 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Histogram2d(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "histogram2d"
_valid_props = {
"autobinx",
"autobiny",
"autocolorscale",
... | mit | 05546a638287749ef515a0143f203f28 | 36.137345 | 89 | 0.553238 | 4.388855 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/matplotlylib/mplexporter/exporter.py | 1 | 11763 | """
Matplotlib Exporter
===================
This submodule contains tools for crawling a matplotlib figure and exporting
relevant pieces to a renderer.
"""
import warnings
import io
from . import utils
import matplotlib
from matplotlib import transforms, collections
from matplotlib.backends.backend_agg import FigureCa... | mit | 7bd55423e877c1a349141a01cc722f0e | 36.945161 | 88 | 0.566947 | 4.571706 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/pie/legendgrouptitle/_font.py | 1 | 8442 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "pie.legendgrouptitle"
_path_str = "pie.legendgrouptitle.font"
_valid_props = {"color", "family... | mit | eb7ea3897236a51669da01d30c80912c | 36.189427 | 82 | 0.559228 | 4.006645 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/waterfall/legendgrouptitle/_font.py | 1 | 8473 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "waterfall.legendgrouptitle"
_path_str = "waterfall.legendgrouptitle.font"
_valid_props = {"col... | mit | e9127e300adbf175fb04b0bdfc038942 | 36.325991 | 82 | 0.560722 | 3.989171 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/layout/polar/angularaxis/_categoryorder.py | 1 | 1189 | import _plotly_utils.basevalidators
class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self,
plotly_name="categoryorder",
parent_name="layout.polar.angularaxis",
**kwargs,
):
super(CategoryorderValidator, self).__init__(
... | mit | 378c38d2254178158778402e458bbcfa | 31.135135 | 79 | 0.430614 | 5.608491 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/scattercarpet/_hoverlabel.py | 1 | 17817 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Hoverlabel(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scattercarpet"
_path_str = "scattercarpet.hoverlabel"
_valid_props = {
"align",
... | mit | 848a3bf745f1ad7e013bc18bef1302e5 | 34.421471 | 83 | 0.555649 | 4.206091 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/cone/legendgrouptitle/_font.py | 1 | 8447 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "cone.legendgrouptitle"
_path_str = "cone.legendgrouptitle.font"
_valid_props = {"color", "fami... | mit | 70a86d2edd5333e331ecf563b53b357f | 36.211454 | 82 | 0.559489 | 3.999527 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/layout/annotation/_font.py | 1 | 8424 | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Font(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.annotation"
_path_str = "layout.annotation.font"
_valid_props = {"color", "family", ... | mit | e6b90fab77756b120eafbe51f4dcb7ef | 36.110132 | 84 | 0.558523 | 4.021002 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/_font.py | 1 | 1575 | import _plotly_utils.basevalidators
class FontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(
self,
plotly_name="font",
parent_name="scatterternary.marker.colorbar.title",
**kwargs,
):
super(FontValidator, self).__init__(
plotly_name... | mit | 59f401322cd6b7086006c38331eaa891 | 36.5 | 68 | 0.532063 | 4.512894 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/_symbol.py | 1 | 10161 | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Symbol(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.mapbox.layer"
_path_str = "layout.mapbox.layer.symbol"
_valid_props = {"icon", "ic... | mit | d7dda8a08381e4922b0a96c29cc5594e | 31.257143 | 89 | 0.537644 | 4.433246 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/histogram/_textfont.py | 1 | 1525 | import _plotly_utils.basevalidators
class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="textfont", parent_name="histogram", **kwargs):
super(TextfontValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | a4f20cc7afbcc93e8458710d8c9d0270 | 40.216216 | 82 | 0.544262 | 4.498525 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/surface/_colorbar.py | 1 | 12712 | import _plotly_utils.basevalidators
class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="colorbar", parent_name="surface", **kwargs):
super(ColorbarValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | mit | c4cfced8482eeb1747e26f9cf0f59621 | 47.704981 | 80 | 0.526038 | 4.879846 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/choroplethmapbox/colorbar/_tickformatstop.py | 1 | 9582 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickformatstop(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "choroplethmapbox.colorbar"
_path_str = "choroplethmapbox.colorbar.tickformatstop"
_v... | mit | d6669dbc7297c2322802a108a38fbac9 | 32.858657 | 85 | 0.564392 | 4.622287 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/funnel/_outsidetextfont.py | 1 | 11246 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Outsidetextfont(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "funnel"
_path_str = "funnel.outsidetextfont"
_valid_props = {"color", "colorsrc", "... | mit | 29d1af6d78c82fce2b5a341ab74db0bb | 33.078788 | 82 | 0.554153 | 4.056999 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/lines.py | 2 | 4230 | from __future__ import absolute_import
import plotly.graph_objs as go
D = dict(
x1=[0, 1, 2, 3, 4, 5],
y1=[10, 20, 50, 80, 100, 200],
x2=[0, 1, 2, 3, 4, 5, 6],
y2=[1, 4, 8, 16, 32, 64, 128],
)
SIMPLE_LINE = go.Figure(
data=[
go.Scatter(
x=[0.0, 1.0, 2.0, 3.0, 4.0, 5.0],
... | mit | 0e316e367fd4a50e843ed66ab728279e | 27.013245 | 86 | 0.40922 | 3.226545 | false | false | true | false |
plotly/plotly.py | packages/python/plotly/plotly/_version.py | 2 | 18471 | # This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains th... | mit | 8786dbaebe5127df1e105ec280141c5f | 32.221223 | 88 | 0.574576 | 3.906726 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/figure_factory/_table.py | 1 | 9470 | from __future__ import absolute_import
from plotly import exceptions, optional_imports
from plotly.graph_objs import graph_objs
pd = optional_imports.get_module("pandas")
def validate_table(table_text, font_colors):
"""
Table-specific validations
Check that font_colors is supplied correctly (1, 3, or l... | mit | f76a9c8985fc4d3d224bea6af85f9223 | 32.462898 | 134 | 0.541922 | 3.887521 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/validators/densitymapbox/colorbar/_title.py | 1 | 1381 | import _plotly_utils.basevalidators
class TitleValidator(_plotly_utils.basevalidators.TitleValidator):
def __init__(
self, plotly_name="title", parent_name="densitymapbox.colorbar", **kwargs
):
super(TitleValidator, self).__init__(
plotly_name=plotly_name,
parent_name=p... | mit | ecc347579e4b6eb3246917fb2f477c40 | 38.457143 | 81 | 0.537292 | 4.845614 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/streamtube/legendgrouptitle/_font.py | 1 | 8478 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "streamtube.legendgrouptitle"
_path_str = "streamtube.legendgrouptitle.font"
_valid_props = {"c... | mit | 15214397153ad7353419e3b4c3eeaca5 | 36.348018 | 82 | 0.560981 | 4.002833 | false | false | false | false |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/layout/smith/realaxis/_tickfont.py | 1 | 8470 | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickfont(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout.smith.realaxis"
_path_str = "layout.smith.realaxis.tickfont"
_valid_props = {"co... | mit | 60aa2e0f4d1c44d32d18c6ce48d4991d | 36.312775 | 84 | 0.560331 | 3.985882 | false | false | false | false |
alphagov/notifications-admin | app/main/views/templates.py | 1 | 34002 | from functools import partial
from flask import abort, flash, jsonify, redirect, render_template, request, url_for
from flask_login import current_user
from notifications_python_client.errors import HTTPError
from notifications_utils import LETTER_MAX_PAGE_COUNT, SMS_CHAR_COUNT_LIMIT
from notifications_utils.pdf impor... | mit | b4cd04f9224a821f1d4d842c323c6f20 | 37.578888 | 120 | 0.628722 | 3.893688 | false | false | false | false |
alphagov/notifications-admin | app/main/views/dashboard.py | 1 | 16437 | import calendar
from datetime import datetime
from functools import partial
from itertools import groupby
from flask import Response, abort, jsonify, render_template, request, session, url_for
from flask_login import current_user
from notifications_utils.recipients import format_phone_number_human_readable
from werkze... | mit | 1c51ae9cb87fb69f437013780ae13876 | 34.348387 | 117 | 0.630955 | 3.688734 | false | false | false | false |
alphagov/notifications-admin | app/main/views/code_not_received.py | 1 | 2324 | from flask import redirect, render_template, request, session, url_for
from app import user_api_client
from app.main import main
from app.main.forms import TextNotReceivedForm
from app.models.user import User
from app.utils.login import redirect_to_sign_in
@main.route("/resend-email-verification")
@redirect_to_sign_... | mit | 0d75fb1ec4866024ee2010d457aca2a2 | 37.098361 | 102 | 0.712565 | 3.412628 | false | false | false | false |
alphagov/notifications-admin | app/notify_client/broadcast_message_api_client.py | 1 | 1956 | from app.notify_client import NotifyAdminAPIClient, _attach_current_user, cache
class BroadcastMessageAPIClient(NotifyAdminAPIClient):
def create_broadcast_message(
self,
*,
service_id,
template_id,
content,
reference,
):
data = {
"service_id... | mit | 6bb44f611aecebbcb07bbb9fac0e51ce | 31.6 | 91 | 0.608896 | 4.066528 | false | false | false | false |
alphagov/notifications-admin | app/utils/templates.py | 1 | 2441 | from flask import current_app
from notifications_utils.template import (
BroadcastPreviewTemplate,
EmailPreviewTemplate,
LetterImageTemplate,
LetterPreviewTemplate,
SMSPreviewTemplate,
)
def get_sample_template(template_type):
if template_type == "email":
return EmailPreviewTemplate({"... | mit | 8f9c83e6daf5db86f46ae4d71a174605 | 33.871429 | 119 | 0.598935 | 4.194158 | false | false | false | false |
alphagov/notifications-admin | tests/app/main/views/test_letters.py | 1 | 2325 | from functools import partial
import pytest
from flask import url_for
letters_urls = [
partial(url_for, "main.add_service_template", template_type="letter"),
]
@pytest.mark.parametrize("url", letters_urls)
@pytest.mark.parametrize("permissions, response_code", [(["letter"], 200), ([], 403)])
def test_letters_ac... | mit | f54f70c789b45d586c4d0f33fd0d879f | 26.678571 | 103 | 0.661075 | 3.582435 | false | true | false | false |
alphagov/notifications-admin | app/main/views/providers.py | 1 | 2578 | from datetime import datetime
from flask import render_template, url_for
from werkzeug.utils import redirect
from app import provider_client
from app.main import main
from app.main.forms import AdminProviderRatioForm
from app.utils.user import user_is_platform_admin
PROVIDER_PRIORITY_MEANING_SWITCHOVER = datetime(20... | mit | 3d158e16bf539f3178d3c7a759f390b0 | 36.362319 | 109 | 0.705198 | 3.80236 | false | false | false | false |
alphagov/notifications-admin | app/utils/user_permissions.py | 1 | 2142 | from itertools import chain
permission_mappings = {
"send_messages": ["send_texts", "send_emails", "send_letters"],
"manage_templates": ["manage_templates"],
"manage_service": ["manage_users", "manage_settings"],
"manage_api_keys": ["manage_api_keys"],
"view_activity": ["view_activity"],
"creat... | mit | 8c796c3a4981bbd5c985185cb99d1adf | 37.945455 | 120 | 0.694678 | 3.9375 | false | false | false | false |
alphagov/notifications-admin | app/broadcast_areas/models.py | 1 | 7619 | import math
from abc import ABC, abstractmethod
from notifications_utils.formatters import formatted_list
from notifications_utils.polygons import Polygons
from notifications_utils.serialised_model import SerialisedModelCollection
from rtreelib import Rect
from werkzeug.utils import cached_property
from app.formatter... | mit | cd66a33f81b075a47d683677eb0f0ec2 | 30.861925 | 119 | 0.650558 | 3.723716 | false | false | false | false |
alphagov/notifications-admin | app/main/views/returned_letters.py | 1 | 2465 | from collections import OrderedDict
from flask import render_template
from app import current_service, service_api_client
from app.main import main
from app.models.spreadsheet import Spreadsheet
from app.utils.user import user_has_permissions
@main.route("/services/<uuid:service_id>/returned-letters")
@user_has_per... | mit | a73c2975cd8cab6143d4d1c6d53b6855 | 34.214286 | 100 | 0.653955 | 3.821705 | false | false | false | false |
alphagov/notifications-admin | tests/app/utils/test_csv.py | 1 | 8580 | from collections import namedtuple
from csv import DictReader
from io import StringIO
import pytest
from app.utils.csv import generate_notifications_csv, get_errors_for_csv
from tests.conftest import fake_uuid
def _get_notifications_csv(
row_number=1,
recipient="foo@bar.com",
template_name="foo",
te... | mit | 80adf1b816f1570339aa1618df32c1f9 | 31.689655 | 119 | 0.543132 | 3.436166 | false | false | false | false |
alphagov/notifications-admin | app/main/views/choose_account.py | 1 | 2119 | from flask import redirect, render_template, session, url_for
from flask_login import current_user
from app import status_api_client
from app.main import main
from app.models.organisation import AllOrganisations
from app.utils import PermanentRedirect
from app.utils.user import user_is_logged_in
@main.route("/servic... | mit | 8abd83499ecd304073860ecd49ec819e | 35.534483 | 114 | 0.7126 | 3.622222 | false | false | false | false |
alphagov/notifications-admin | tests/app/main/views/test_headers.py | 1 | 2089 | def test_owasp_useful_headers_set(
client_request,
mocker,
mock_get_service_and_organisation_counts,
):
client_request.logout()
response = client_request.get_response(".index")
assert response.headers["X-Frame-Options"] == "deny"
assert response.headers["X-Content-Type-Options"] == "nosniff... | mit | 16cf0f812c0a3f807bf079d99183097b | 39.901961 | 106 | 0.642857 | 3.39187 | false | true | false | false |
s3tools/s3cmd | S3/Custom_httplib27.py | 2 | 8180 | from __future__ import absolute_import, print_function
import os
import httplib
from httplib import (_CS_REQ_SENT, _CS_REQ_STARTED, CONTINUE, UnknownProtocol,
CannotSendHeader, NO_CONTENT, NOT_MODIFIED, EXPECTATION_FAILED,
HTTPMessage, HTTPException)
try:
from cStringIO ... | gpl-2.0 | 1e99026a8e13594f02945425e18b9923 | 34.411255 | 86 | 0.655257 | 3.913876 | false | false | false | false |
s3tools/s3cmd | S3/S3Uri.py | 2 | 7603 | # -*- coding: utf-8 -*-
## Amazon S3 manager
## Author: Michal Ludvig <michal@logix.cz>
## http://www.logix.cz/michal
## License: GPL Version 2
## Copyright: TGRMN Software and contributors
from __future__ import absolute_import, print_function
import os
import re
import sys
from .Utils import unicodise, deu... | gpl-2.0 | a6c2ad594c9615db787835e95272e3a7 | 29.170635 | 113 | 0.533342 | 3.562793 | false | false | false | false |
redhat-performance/tuned | experiments/powertop2tuned.py | 1 | 11025 | #!/usr/bin/python3 -Es
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008-2013 Red Hat, Inc.
# Authors: Jan Kaluža <jkaluza@redhat.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either versi... | gpl-2.0 | e6a6d8f1c14305b362763e8d902ea231 | 30.587393 | 198 | 0.680152 | 3.153318 | false | false | false | false |
redhat-performance/tuned | tuned/utils/commands.py | 1 | 15026 | import errno
import hashlib
import tuned.logs
import copy
import os
import shutil
import tuned.consts as consts
import re
from subprocess import *
from tuned.exceptions import TunedException
log = tuned.logs.get()
class commands:
def __init__(self, logging = True):
self._logging = logging
def _error(self, msg):... | gpl-2.0 | 41a4fe4e17b9d430dfd9ccc0cd0763a3 | 28.290448 | 116 | 0.615067 | 2.77591 | false | false | false | false |
redhat-performance/tuned | tuned/plugins/plugin_mounts.py | 1 | 5580 | import tuned.consts as consts
from . import base
from .decorators import *
from subprocess import Popen,PIPE
import tuned.logs
from tuned.utils.commands import commands
import glob
log = tuned.logs.get()
cmd = commands()
class MountsPlugin(base.Plugin):
"""
`mounts`::
Enables or disables barriers for mounts acco... | gpl-2.0 | f059be6d47dcb95fd56e755b3c5d16b8 | 29.659341 | 117 | 0.693728 | 3.381818 | false | false | false | false |
redhat-performance/tuned | libexec/defirqaffinity.py | 2 | 3703 | #!/usr/bin/python3
# Helper script for realtime profiles provided by RT
import os
import sys
irqpath = "/proc/irq/"
def bitmasklist(line):
fields = line.strip().split(",")
bitmasklist = []
entry = 0
for i in range(len(fields) - 1, -1, -1):
mask = int(fields[i], 16)
while mask != 0:
if mask & 1:
bitma... | gpl-2.0 | 49f24be38361457abcc5b669f2781d6a | 23.686667 | 125 | 0.661086 | 2.671717 | false | false | false | false |
janisozaur/terminator | terminatorlib/plugins/custom_commands.py | 1 | 15284 | #!/usr/bin/python
# Terminator by Chris Jones <cmsj@tenshu.net>
# GPL v2 only
"""custom_commands.py - Terminator Plugin to add custom command menu entries"""
import sys
import os
# Fix imports when testing this file directly
if __name__ == '__main__':
sys.path.append( os.path.join(os.path.dirname(__file__), "../..")... | gpl-2.0 | 4a6f84038d3f7f17d9686224bdd719e0 | 33.346067 | 120 | 0.525909 | 4.012602 | false | false | false | false |
janisozaur/terminator | terminatorlib/plugins/maven.py | 10 | 4575 | # Copyright (c) 2010 Julien Nicoulaud <julien.nicoulaud@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 2 only.
#
# This program is distributed in the hope that it will be u... | gpl-2.0 | e8d9b2ef5db1d459017e602d993ab69e | 74 | 935 | 0.723716 | 3.133562 | false | false | false | false |
kdeldycke/meta-package-manager | meta_package_manager/tests/test_cli_upgrade.py | 1 | 2981 | # Copyright Kevin Deldycke <kevin@deldycke.com> and contributors.
# All Rights Reserved.
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) ... | gpl-2.0 | c77272e681bad64b63a3d347d9e38cad | 37.714286 | 83 | 0.690708 | 3.740276 | false | true | false | false |
kdeldycke/meta-package-manager | meta_package_manager/inventory.py | 1 | 3607 | # Copyright Kevin Deldycke <kevin@deldycke.com> and contributors.
# All Rights Reserved.
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) ... | gpl-2.0 | 8104a0c9fed1a3f0fe10ae9b0da66121 | 32.296296 | 86 | 0.629032 | 3.789252 | false | false | false | false |
kdeldycke/meta-package-manager | meta_package_manager/version.py | 1 | 10662 | # Copyright Kevin Deldycke <kevin@deldycke.com> and contributors.
# All Rights Reserved.
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) ... | gpl-2.0 | d6ad432cc83bf62d85d08590c58946a4 | 32.847619 | 127 | 0.599231 | 4.257987 | false | false | false | false |
kdeldycke/meta-package-manager | meta_package_manager/base.py | 1 | 33806 | # Copyright Kevin Deldycke <kevin@deldycke.com> and contributors.
# All Rights Reserved.
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) ... | gpl-2.0 | bff0f67f77e42d680de331e0e58f8e60 | 38.082081 | 205 | 0.625629 | 4.221528 | false | false | false | false |
openrazer/openrazer | scripts/daemon/controller.py | 2 | 7795 | #!/usr/bin/python3
import argparse
import openrazer.client
import sys
def _clamp_u8(value):
if value > 255:
return 255
elif value < 0:
return 0
else:
return value
def _print_table(header_list, rows):
column_lengths = [len(header_item) for header_item in header_list]
for... | gpl-2.0 | 9910215dda98c4ff07a259b9bf5d1e72 | 29.568627 | 243 | 0.60449 | 3.804295 | false | false | false | false |
openrazer/openrazer | scripts/razer_mouse/driver/get_battery.py | 5 | 1598 | #!/usr/bin/python3
import argparse
import glob
import os
import sys
def parse_args():
parser = argparse.ArgumentParser(description="Get battery level")
parser.add_argument('-d', '--device', type=str, help="Device string like \"0003:1532:0045.000C\"")
args = parser.parse_args()
return args
def run()... | gpl-2.0 | 788450cc000cc05dc1e1f5f8f76e0f60 | 29.730769 | 102 | 0.608886 | 3.519824 | false | false | false | false |
openrazer/openrazer | scripts/razer_mouse/driver/spectrum_effect.py | 5 | 1543 | #!/usr/bin/python3
import argparse
import glob
import os
import struct
import sys
def clamp_to_min_max(value, min, max):
if value > max:
value = max
elif value < min:
value = min
return value
def clamp_to_u8(value):
return clamp_to_min_max(value, 0, 255)
def parse_args():
parse... | gpl-2.0 | 9ee0195a56e7bd6cbda479c970a5f973 | 25.152542 | 102 | 0.618276 | 3.339827 | false | false | false | false |
openrazer/openrazer | daemon/openrazer_daemon/dbus_services/dbus_methods/all.py | 2 | 4931 | # SPDX-License-Identifier: GPL-2.0-or-later
"""
DBus methods available for all devices.
"""
import os
from openrazer_daemon.dbus_services import endpoint
# Keyboard layout IDs
# There are more than listed here, but others are not known yet.
layoutids = {"01": "en_US",
"02": "el_GR",
"03": "d... | gpl-2.0 | 7557268402132215c9ccf9aa88494027 | 22.821256 | 67 | 0.609815 | 3.300535 | false | false | false | false |
openrazer/openrazer | examples/custom_starlight.py | 2 | 2767 | from collections import defaultdict
import colorsys
import random
import sys
import time
import threading
from openrazer.client import DeviceManager
from openrazer.client import constants as razer_constants
# Set a quit flag that will be used when the user quits to restore effects.
quit = False
# Create a DeviceMana... | gpl-2.0 | 99421ec0ea1903667687ca6a270769c7 | 24.62037 | 91 | 0.662089 | 3.616993 | false | false | false | false |
openrazer/openrazer | scripts/razer_mouse/driver/set_charging_effect.py | 5 | 1872 | #!/usr/bin/python3
import argparse
import glob
import os
import struct
import sys
def clamp_to_min_max(value, min, max):
if value > max:
value = max
elif value < min:
value = min
return value
def clamp_to_u8(value):
return clamp_to_min_max(value, 0, 255)
def parse_args():
parse... | gpl-2.0 | 0ee1f4f469d02c9cbd37135c857c187a | 27.363636 | 176 | 0.627137 | 3.289982 | false | false | false | false |
openrazer/openrazer | daemon/openrazer_daemon/hardware/accessory.py | 1 | 8464 | # SPDX-License-Identifier: GPL-2.0-or-later
"""
Mug class
"""
import re
from openrazer_daemon.hardware.device_base import RazerDeviceBrightnessSuspend as _RazerDeviceBrightnessSuspend
class RazerChromaMugHolder(_RazerDeviceBrightnessSuspend):
"""
Class for the Razer Chroma Mug Holder
"""
EVENT_FILE_... | gpl-2.0 | 152187c075464cbae413c53234b75832 | 41.747475 | 261 | 0.65879 | 2.877933 | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.