facebookresearch / image-to-set
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,991 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (557 lines of code)
    • 5 medium size files (1,452 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (855 lines of code)
    • 4 very small files (127 lines of code)
0% | 18% | 48% | 28% | 4%
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% | 18% | 48% | 28% | 4%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 38% | 45% | 15% | 0%
src/modules0% | 0% | 51% | 40% | 8%
src/utils0% | 0% | 49% | 41% | 8%
Longest Files (Top 17)
File# lines# units
data_loader.py
in src
557 36
train.py
in src
388 8
model.py
in src
280 6
recipe1m_utils.py
in src/utils
273 12
utils.py
in src/modules
272 25
transformer_decoder.py
in src/modules
239 16
multihead_attention.py
in src/modules
153 13
layers.py
in src/modules
122 19
eval.py
in src
120 1
rnn_decoder.py
in src/modules
120 7
metrics.py
in src/utils
117 10
voc_utils.py
in src/utils
112 5
args.py
in src
111 4
tb_visualizer.py
in src/utils
47 7
ff_decoder.py
in src/modules
44 2
encoder.py
in src/modules
35 2
__init__.py
in src/utils
1 -
Files With Most Units (Top 16)
File# lines# units
data_loader.py
in src
557 36
utils.py
in src/modules
272 25
layers.py
in src/modules
122 19
transformer_decoder.py
in src/modules
239 16
multihead_attention.py
in src/modules
153 13
recipe1m_utils.py
in src/utils
273 12
metrics.py
in src/utils
117 10
train.py
in src
388 8
tb_visualizer.py
in src/utils
47 7
rnn_decoder.py
in src/modules
120 7
model.py
in src
280 6
voc_utils.py
in src/utils
112 5
args.py
in src
111 4
encoder.py
in src/modules
35 2
ff_decoder.py
in src/modules
44 2
eval.py
in src
120 1
Files With Long Lines (Top 1)

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

File# lines# units# long lines
model.py
in src
280 6 1