facebookincubator / pystemd
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 30 files with 2,591 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (577 lines of code)
    • 3 medium size files (921 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (644 lines of code)
    • 22 very small files (449 lines of code)
0% | 22% | 35% | 24% | 17%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
pyx0% | 74% | 0% | 16% | 9%
py0% | 0% | 55% | 19% | 25%
pyi0% | 0% | 58% | 23% | 17%
pxd0% | 0% | 0% | 100% | 0%
pxi0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pystemd0% | 37% | 14% | 31% | 16%
pystemd/systemd10% | 0% | 76% | 17% | 5%
ROOT0% | 0% | 0% | 0% | 100%
pystemd/machine10% | 0% | 0% | 0% | 100%
pystemd/DBus0% | 0% | 0% | 0% | 100%
Longest Files (Top 30)
File# lines# units
pyx
dbuslib.pyx
in pystemd
577 20
pyi
unit.pyi
in pystemd/systemd1
401 17
unit_signatures.py
in pystemd/systemd1
303 1
run.py
in pystemd
217 7
base.py
in pystemd
182 17
pxd
dbusc.pxd
in pystemd
169 -
pyi
manager.pyi
in pystemd/systemd1
165 73
pyx
dbusexc.pyx
in pystemd
128 2
setup.py
in root
97 -
pyi
dbuslib.pyi
in pystemd
47 22
pyx
journal.pyx
in pystemd
41 2
manager.py
in pystemd/systemd1
38 3
pyi
__init__.pyi
in pystemd
34 1
utils.py
in pystemd
34 4
pyx
daemon.pyx
in pystemd
32 4
pyi
base.pyi
in pystemd
24 9
machine.py
in pystemd/machine1
13 1
unit.py
in pystemd/systemd1
13 1
pxi
dbusc_v237.pxi
in pystemd
11 -
pyi
utils.pyi
in pystemd
11 4
__version__.py
in pystemd
10 -
__init__.py
in pystemd/DBus
9 1
manager.py
in pystemd/machine1
9 1
pyi
daemon.pyi
in pystemd
8 4
__init__.py
in pystemd
5 -
__init__.py
in pystemd/machine1
3 -
__init__.py
in pystemd/systemd1
3 -
in
3 -
exceptions.py
in pystemd
2 -
cfg
setup.cfg
in root
2 -
Files With Most Units (Top 20)
File# lines# units
pyi
manager.pyi
in pystemd/systemd1
165 73
pyi
dbuslib.pyi
in pystemd
47 22
pyx
dbuslib.pyx
in pystemd
577 20
pyi
unit.pyi
in pystemd/systemd1
401 17
base.py
in pystemd
182 17
pyi
base.pyi
in pystemd
24 9
run.py
in pystemd
217 7
pyx
daemon.pyx
in pystemd
32 4
pyi
utils.pyi
in pystemd
11 4
utils.py
in pystemd
34 4
pyi
daemon.pyi
in pystemd
8 4
manager.py
in pystemd/systemd1
38 3
pyx
journal.pyx
in pystemd
41 2
pyx
dbusexc.pyx
in pystemd
128 2
pyi
__init__.pyi
in pystemd
34 1
__init__.py
in pystemd/DBus
9 1
machine.py
in pystemd/machine1
13 1
manager.py
in pystemd/machine1
9 1
unit_signatures.py
in pystemd/systemd1
303 1
unit.py
in pystemd/systemd1
13 1
Files With Long Lines (Top 0)

There are 0 files with lines longer than 120 characters. In total, there are 0 long lines.

File# lines# units# long lines
Correlations

File Size vs. Commits (all time): 30 points

pystemd/base.py x: 12 commits (all time) y: 182 lines of code setup.py x: 27 commits (all time) y: 97 lines of code pystemd/systemd1/unit_signatures.py x: 10 commits (all time) y: 303 lines of code pystemd/__init__.pyi x: 3 commits (all time) y: 34 lines of code pystemd/__version__.py x: 15 commits (all time) y: 10 lines of code pystemd/run.py x: 17 commits (all time) y: 217 lines of code pystemd/utils.py x: 8 commits (all time) y: 34 lines of code pystemd/utils.pyi x: 2 commits (all time) y: 11 lines of code pystemd/dbusc.pxd x: 14 commits (all time) y: 169 lines of code pystemd/dbuslib.pyi x: 3 commits (all time) y: 47 lines of code pystemd/dbuslib.pyx x: 21 commits (all time) y: 577 lines of code MANIFEST.in x: 6 commits (all time) y: 3 lines of code pystemd/dbusc_v237.pxi x: 1 commits (all time) y: 11 lines of code pystemd/systemd1/manager.pyi x: 3 commits (all time) y: 165 lines of code pystemd/systemd1/unit.pyi x: 3 commits (all time) y: 401 lines of code pystemd/base.pyi x: 1 commits (all time) y: 24 lines of code pystemd/daemon.pyi x: 4 commits (all time) y: 8 lines of code pystemd/DBus/__init__.py x: 6 commits (all time) y: 9 lines of code pystemd/machine1/machine.py x: 7 commits (all time) y: 13 lines of code pystemd/systemd1/manager.py x: 11 commits (all time) y: 38 lines of code pystemd/systemd1/unit.py x: 13 commits (all time) y: 13 lines of code pystemd/daemon.pyx x: 7 commits (all time) y: 32 lines of code pystemd/dbusexc.pyx x: 8 commits (all time) y: 128 lines of code pystemd/journal.pyx x: 1 commits (all time) y: 41 lines of code setup.cfg x: 2 commits (all time) y: 2 lines of code pystemd/__init__.py x: 6 commits (all time) y: 5 lines of code pystemd/exceptions.py x: 3 commits (all time) y: 2 lines of code pystemd/machine1/__init__.py x: 4 commits (all time) y: 3 lines of code pystemd/systemd1/__init__.py x: 3 commits (all time) y: 3 lines of code
577.0
lines of code
  min: 2.0
  average: 86.37
  25th percentile: 8.75
  median: 28.0
  75th percentile: 137.25
  max: 577.0
0 27.0
commits (all time)
min: 1.0 | average: 7.57 | 25th percentile: 3.0 | median: 6.0 | 75th percentile: 11.25 | max: 27.0

File Size vs. Contributors (all time): 30 points

pystemd/base.py x: 3 contributors (all time) y: 182 lines of code setup.py x: 10 contributors (all time) y: 97 lines of code pystemd/systemd1/unit_signatures.py x: 4 contributors (all time) y: 303 lines of code pystemd/__init__.pyi x: 3 contributors (all time) y: 34 lines of code pystemd/__version__.py x: 3 contributors (all time) y: 10 lines of code pystemd/run.py x: 5 contributors (all time) y: 217 lines of code pystemd/utils.pyi x: 1 contributors (all time) y: 11 lines of code pystemd/dbusc.pxd x: 4 contributors (all time) y: 169 lines of code pystemd/dbuslib.pyi x: 2 contributors (all time) y: 47 lines of code pystemd/dbuslib.pyx x: 8 contributors (all time) y: 577 lines of code MANIFEST.in x: 3 contributors (all time) y: 3 lines of code pystemd/systemd1/manager.pyi x: 1 contributors (all time) y: 165 lines of code pystemd/systemd1/unit.pyi x: 1 contributors (all time) y: 401 lines of code pystemd/base.pyi x: 1 contributors (all time) y: 24 lines of code pystemd/daemon.pyi x: 3 contributors (all time) y: 8 lines of code pystemd/machine1/machine.py x: 3 contributors (all time) y: 13 lines of code pystemd/systemd1/manager.py x: 3 contributors (all time) y: 38 lines of code pystemd/dbusexc.pyx x: 4 contributors (all time) y: 128 lines of code pystemd/journal.pyx x: 1 contributors (all time) y: 41 lines of code setup.cfg x: 2 contributors (all time) y: 2 lines of code pystemd/__init__.py x: 2 contributors (all time) y: 5 lines of code pystemd/machine1/__init__.py x: 2 contributors (all time) y: 3 lines of code
577.0
lines of code
  min: 2.0
  average: 86.37
  25th percentile: 8.75
  median: 28.0
  75th percentile: 137.25
  max: 577.0
0 10.0
contributors (all time)
min: 1.0 | average: 2.97 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 3.0 | max: 10.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 8 points

pystemd/base.py x: 1 commits (90d) y: 182 lines of code setup.py x: 1 commits (90d) y: 97 lines of code pystemd/systemd1/unit_signatures.py x: 1 commits (90d) y: 303 lines of code pystemd/__init__.pyi x: 1 commits (90d) y: 34 lines of code pystemd/__version__.py x: 1 commits (90d) y: 10 lines of code pystemd/run.py x: 1 commits (90d) y: 217 lines of code pystemd/utils.pyi x: 1 commits (90d) y: 11 lines of code
303.0
lines of code
  min: 10.0
  average: 111.0
  25th percentile: 16.75
  median: 65.5
  75th percentile: 208.25
  max: 303.0
0 1.0
commits (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (90 days): 8 points

pystemd/base.py x: 1 contributors (90d) y: 182 lines of code setup.py x: 1 contributors (90d) y: 97 lines of code pystemd/systemd1/unit_signatures.py x: 1 contributors (90d) y: 303 lines of code pystemd/__init__.pyi x: 1 contributors (90d) y: 34 lines of code pystemd/__version__.py x: 1 contributors (90d) y: 10 lines of code pystemd/run.py x: 1 contributors (90d) y: 217 lines of code pystemd/utils.pyi x: 1 contributors (90d) y: 11 lines of code
303.0
lines of code
  min: 10.0
  average: 111.0
  25th percentile: 16.75
  median: 65.5
  75th percentile: 208.25
  max: 303.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0