facebookresearch / MathsFromExamples
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 13 files with 3,620 lines of code.
    • 1 very long files (1,437 lines of code)
    • 1 long files (574 lines of code)
    • 4 medium size files (1,250 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (217 lines of code)
    • 5 very small files (142 lines of code)
39% | 15% | 34% | 5% | 3%
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
py39% | 15% | 34% | 5% | 3%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/envs99% | 0% | 0% | 0% | <1%
src0% | 39% | 42% | 15% | 2%
src/model0% | 0% | 92% | 0% | 7%
ROOT0% | 0% | 82% | 0% | 17%
Longest Files (Top 13)
File# lines# units
ode.py
in src/envs
1437 54
evaluator.py
in src
574 11
trainer.py
in src
397 15
transformer.py
in src/model
369 17
train.py
in root
275 2
optim.py
in src
209 10
utils.py
in src
112 6
slurm.py
in src
105 4
split_data.py
in root
60 -
logger.py
in src
38 3
__init__.py
in src/model
29 2
__init__.py
in src/envs
14 1
__init__.py
in src
1 -
Files With Most Units (Top 11)
File# lines# units
ode.py
in src/envs
1437 54
transformer.py
in src/model
369 17
trainer.py
in src
397 15
evaluator.py
in src
574 11
optim.py
in src
209 10
utils.py
in src
112 6
slurm.py
in src
105 4
logger.py
in src
38 3
train.py
in root
275 2
__init__.py
in src/model
29 2
__init__.py
in src/envs
14 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there are 2 long lines.

File# lines# units# long lines
transformer.py
in src/model
369 17 2