facebookincubator / submitit
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 21 files with 2,081 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,220 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (524 lines of code)
    • 13 very small files (337 lines of code)
0% | 0% | 58% | 25% | 16%
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
py0% | 0% | 61% | 26% | 12%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
submitit/core0% | 0% | 69% | 16% | 14%
submitit/slurm0% | 0% | 99% | 0% | <1%
submitit/local0% | 0% | 65% | 32% | 2%
submitit0% | 0% | 0% | 88% | 11%
submitit/auto0% | 0% | 0% | 99% | <1%
ROOT0% | 0% | 0% | 0% | 100%
integration0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
core.py
in submitit/core
451 63
slurm.py
in submitit/slurm
326 25
utils.py
in submitit/core
223 29
local.py
in submitit/local
220 23
job_environment.py
in submitit/core
156 26
helpers.py
in submitit
133 14
auto.py
in submitit/auto
126 9
debug.py
in submitit/local
109 17
92 -
preemption.py
in integration
78 5
plugins.py
in submitit/core
53 4
submission.py
in submitit/core
48 2
logger.py
in submitit/core
34 3
conftest.py
in submitit
17 3
_local.py
in submitit/local
7 -
_submit.py
in submitit/core
3 -
__init__.py
in submitit/core
1 -
__init__.py
in submitit/auto
1 -
__init__.py
in submitit/slurm
1 -
__init__.py
in submitit
1 -
__init__.py
in submitit/local
1 -
Files With Most Units (Top 13)
File# lines# units
core.py
in submitit/core
451 63
utils.py
in submitit/core
223 29
job_environment.py
in submitit/core
156 26
slurm.py
in submitit/slurm
326 25
local.py
in submitit/local
220 23
debug.py
in submitit/local
109 17
helpers.py
in submitit
133 14
auto.py
in submitit/auto
126 9
preemption.py
in integration
78 5
plugins.py
in submitit/core
53 4
conftest.py
in submitit
17 3
logger.py
in submitit/core
34 3
submission.py
in submitit/core
48 2
Files With Long Lines (Top 3)

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

File# lines# units# long lines
plugins.py
in submitit/core
53 4 1
job_environment.py
in submitit/core
156 26 1
helpers.py
in submitit
133 14 1
Correlations

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

submitit/slurm/slurm.py x: 20 commits (all time) y: 326 lines of code pyproject.toml x: 8 commits (all time) y: 92 lines of code submitit/core/core.py x: 17 commits (all time) y: 451 lines of code submitit/core/job_environment.py x: 9 commits (all time) y: 156 lines of code submitit/core/utils.py x: 9 commits (all time) y: 223 lines of code submitit/__init__.py x: 16 commits (all time) y: 1 lines of code submitit/local/debug.py x: 8 commits (all time) y: 109 lines of code submitit/local/local.py x: 14 commits (all time) y: 220 lines of code submitit/helpers.py x: 20 commits (all time) y: 133 lines of code submitit/core/submission.py x: 3 commits (all time) y: 48 lines of code submitit/auto/auto.py x: 9 commits (all time) y: 126 lines of code integration/preemption.py x: 2 commits (all time) y: 78 lines of code submitit/conftest.py x: 5 commits (all time) y: 17 lines of code submitit/core/_submit.py x: 1 commits (all time) y: 3 lines of code submitit/core/plugins.py x: 1 commits (all time) y: 53 lines of code
451.0
lines of code
  min: 1.0
  average: 135.73
  25th percentile: 48.0
  median: 109.0
  75th percentile: 220.0
  max: 451.0
0 20.0
commits (all time)
min: 1.0 | average: 9.47 | 25th percentile: 3.0 | median: 9.0 | 75th percentile: 16.0 | max: 20.0

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

submitit/slurm/slurm.py x: 9 contributors (all time) y: 326 lines of code pyproject.toml x: 3 contributors (all time) y: 92 lines of code submitit/core/core.py x: 7 contributors (all time) y: 451 lines of code submitit/core/job_environment.py x: 4 contributors (all time) y: 156 lines of code submitit/core/utils.py x: 4 contributors (all time) y: 223 lines of code submitit/__init__.py x: 2 contributors (all time) y: 1 lines of code submitit/local/debug.py x: 3 contributors (all time) y: 109 lines of code submitit/local/local.py x: 5 contributors (all time) y: 220 lines of code submitit/helpers.py x: 5 contributors (all time) y: 133 lines of code submitit/core/submission.py x: 1 contributors (all time) y: 48 lines of code submitit/auto/auto.py x: 3 contributors (all time) y: 126 lines of code integration/preemption.py x: 1 contributors (all time) y: 78 lines of code submitit/conftest.py x: 1 contributors (all time) y: 17 lines of code submitit/core/_submit.py x: 1 contributors (all time) y: 3 lines of code submitit/core/plugins.py x: 1 contributors (all time) y: 53 lines of code
451.0
lines of code
  min: 1.0
  average: 135.73
  25th percentile: 48.0
  median: 109.0
  75th percentile: 220.0
  max: 451.0
0 9.0
contributors (all time)
min: 1.0 | average: 3.33 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 5.0 | max: 9.0

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

submitit/slurm/slurm.py x: 1 commits (30d) y: 326 lines of code pyproject.toml x: 1 commits (30d) y: 92 lines of code submitit/core/core.py x: 2 commits (30d) y: 451 lines of code submitit/core/job_environment.py x: 1 commits (30d) y: 156 lines of code submitit/core/utils.py x: 2 commits (30d) y: 223 lines of code submitit/__init__.py x: 1 commits (30d) y: 1 lines of code submitit/local/debug.py x: 1 commits (30d) y: 109 lines of code submitit/local/local.py x: 1 commits (30d) y: 220 lines of code
451.0
lines of code
  min: 1.0
  average: 197.25
  25th percentile: 96.25
  median: 188.0
  75th percentile: 300.25
  max: 451.0
0 2.0
commits (30d)
min: 1.0 | average: 1.25 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.75 | max: 2.0

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

submitit/slurm/slurm.py x: 1 contributors (30d) y: 326 lines of code pyproject.toml x: 1 contributors (30d) y: 92 lines of code submitit/core/core.py x: 2 contributors (30d) y: 451 lines of code submitit/core/job_environment.py x: 1 contributors (30d) y: 156 lines of code submitit/core/utils.py x: 2 contributors (30d) y: 223 lines of code submitit/__init__.py x: 1 contributors (30d) y: 1 lines of code submitit/local/debug.py x: 1 contributors (30d) y: 109 lines of code submitit/local/local.py x: 1 contributors (30d) y: 220 lines of code
451.0
lines of code
  min: 1.0
  average: 197.25
  25th percentile: 96.25
  median: 188.0
  75th percentile: 300.25
  max: 451.0
0 2.0
contributors (30d)
min: 1.0 | average: 1.25 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.75 | max: 2.0

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

submitit/slurm/slurm.py x: 1 commits (90d) y: 326 lines of code pyproject.toml x: 1 commits (90d) y: 92 lines of code submitit/core/core.py x: 2 commits (90d) y: 451 lines of code submitit/core/job_environment.py x: 1 commits (90d) y: 156 lines of code submitit/core/utils.py x: 2 commits (90d) y: 223 lines of code submitit/__init__.py x: 1 commits (90d) y: 1 lines of code submitit/local/debug.py x: 1 commits (90d) y: 109 lines of code submitit/local/local.py x: 1 commits (90d) y: 220 lines of code
451.0
lines of code
  min: 1.0
  average: 197.25
  25th percentile: 96.25
  median: 188.0
  75th percentile: 300.25
  max: 451.0
0 2.0
commits (90d)
min: 1.0 | average: 1.25 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.75 | max: 2.0

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

submitit/slurm/slurm.py x: 1 contributors (90d) y: 326 lines of code pyproject.toml x: 1 contributors (90d) y: 92 lines of code submitit/core/core.py x: 2 contributors (90d) y: 451 lines of code submitit/core/job_environment.py x: 1 contributors (90d) y: 156 lines of code submitit/core/utils.py x: 2 contributors (90d) y: 223 lines of code submitit/__init__.py x: 1 contributors (90d) y: 1 lines of code submitit/local/debug.py x: 1 contributors (90d) y: 109 lines of code submitit/local/local.py x: 1 contributors (90d) y: 220 lines of code
451.0
lines of code
  min: 1.0
  average: 197.25
  25th percentile: 96.25
  median: 188.0
  75th percentile: 300.25
  max: 451.0
0 2.0
contributors (90d)
min: 1.0 | average: 1.25 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.75 | max: 2.0