facebookresearch / transformer-sequential
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 17 files with 2,309 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (921 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,179 lines of code)
    • 6 very small files (209 lines of code)
0% | 0% | 39% | 51% | 9%
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% | 39% | 51% | 9%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
models0% | 0% | 60% | 37% | 2%
ROOT0% | 0% | 46% | 45% | 7%
data0% | 0% | 0% | 100% | 0%
modules0% | 0% | 0% | 61% | 38%
utils0% | 0% | 0% | 64% | 35%
Longest Files (Top 17)
File# lines# units
main.py
in root
341 3
expire_span.py
in models
296 16
feedback.py
in models
284 24
compressive.py
in models
183 15
transformer_seq.py
in models
176 16
trainer.py
in root
175 4
data.py
in root
158 19
gen_data_collisions.py
in data
133 8
gen_data_algo_seq.py
in data
128 5
adaptive_span.py
in modules
115 9
logger.py
in utils
111 10
checkpoint.py
in utils
60 4
distributed.py
in root
57 5
adaptive_mask.py
in modules
50 6
utils.py
in models
21 3
ffn.py
in modules
19 2
__init__.py
in modules
2 -
Files With Most Units (Top 16)
File# lines# units
feedback.py
in models
284 24
data.py
in root
158 19
transformer_seq.py
in models
176 16
expire_span.py
in models
296 16
compressive.py
in models
183 15
logger.py
in utils
111 10
adaptive_span.py
in modules
115 9
gen_data_collisions.py
in data
133 8
adaptive_mask.py
in modules
50 6
distributed.py
in root
57 5
gen_data_algo_seq.py
in data
128 5
checkpoint.py
in utils
60 4
trainer.py
in root
175 4
utils.py
in models
21 3
main.py
in root
341 3
ffn.py
in modules
19 2
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