facebookresearch / VMZ
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 57 files with 8,501 lines of code.
    • 0 very long files (0 lines of code)
    • 5 long files (3,072 lines of code)
    • 10 medium size files (2,606 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,679 lines of code)
    • 30 very small files (1,144 lines of code)
0% | 36% | 30% | 19% | 13%
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% | 27% | 33% | 24% | 14%
cc0% | 59% | 18% | 14% | 7%
h0% | 57% | 26% | 0% | 15%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ops0% | 58% | 22% | 7% | 11%
c2/lib/models0% | 50% | 35% | 13% | <1%
c2/tools0% | 47% | 28% | 9% | 14%
utilities/model_conversion0% | 0% | 63% | 36% | 0%
pt/vmz/func0% | 0% | 42% | 41% | 16%
c2/lib/utils0% | 0% | 48% | 37% | 14%
pt/vmz/common0% | 0% | 34% | 29% | 35%
pt/vmz/models0% | 0% | 0% | 46% | 53%
c2/data0% | 0% | 0% | 100% | 0%
pt/vmz/datasets0% | 0% | 0% | 53% | 46%
pt/tools0% | 0% | 0% | 0% | 100%
pt0% | 0% | 0% | 0% | 100%
pt/vmz0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
r3d_model.py
in c2/lib/models
692 6
cc
av_decoder.cc
in ops
680 8
av_input_op.h
in ops
676 7
train_net.py
in c2/tools
514 6
audio_visual_model.py
in c2/lib/models
510 3
video_model.py
in c2/lib/models/builder
378 7
extract_features.py
in c2/tools
310 2
av_decoder.h
in ops
306 17
convert_models.py
in utilities/model_conversion
262 16
train.py
in pt/vmz/func
252 3
audio_model.py
in c2/lib/models/builder
241 8
c3d_model.py
in c2/lib/models
226 1
model_helper.py
in c2/lib/utils
213 5
cc
av_io.cc
in ops
210 2
log.py
in pt/vmz/common
208 22
transforms.py
in pt/vmz/common
178 35
cc
LogMels.cc
in ops
170 8
model_loader.py
in c2/lib/utils
167 7
model_builder.py
in c2/lib/models
165 2
loss_creator.py
in c2/lib/models/loss
164 2
conversion_models.py
in utilities/model_conversion
153 12
utils.py
in pt/vmz/models
127 9
test.py
in pt/vmz/func
126 3
opts.py
in pt/vmz/func
115 1
create_video_db.py
in c2/data
110 2
dense_prediction_aggregation.py
in c2/tools
103 3
data.py
in pt/vmz/datasets
101 4
dense_prediction_fusion.py
in c2/tools
96 4
feats.py
in pt/vmz/func
93 2
av_video_decoder_commons.h
in ops
90 2
utils.py
in pt/vmz/common
86 11
sampler.py
in pt/vmz/common
83 10
r2plus1d.py
in pt/vmz/models
82 2
cc
av_input_op.cc
in ops
73 -
csn.py
in pt/vmz/models
64 2
minidb_to_pickle.py
in c2/tools
57 3
train_net.py
in pt/tools
55 5
LogMels.h
in ops
48 -
av_io.h
in ops
46 -
extract_features.py
in pt/tools
44 5
scheduler.py
in pt/vmz/common
43 2
ucf101.py
in pt/vmz/datasets
42 2
kinetics.py
in pt/vmz/datasets
40 2
metric.py
in c2/lib/utils
37 2
reader_utils.py
in c2/lib/utils
24 1
setup.py
in pt
12 -
cc
av_input_op_gpu.cc
in ops
8 -
__init__.py
in pt/vmz/datasets
6 -
__init__.py
in pt/vmz
4 -
hubconf.py
in pt
2 -
Files With Most Units (Top 20)
File# lines# units
transforms.py
in pt/vmz/common
178 35
log.py
in pt/vmz/common
208 22
av_decoder.h
in ops
306 17
convert_models.py
in utilities/model_conversion
262 16
conversion_models.py
in utilities/model_conversion
153 12
utils.py
in pt/vmz/common
86 11
sampler.py
in pt/vmz/common
83 10
utils.py
in pt/vmz/models
127 9
cc
av_decoder.cc
in ops
680 8
cc
LogMels.cc
in ops
170 8
audio_model.py
in c2/lib/models/builder
241 8
av_input_op.h
in ops
676 7
model_loader.py
in c2/lib/utils
167 7
video_model.py
in c2/lib/models/builder
378 7
train_net.py
in c2/tools
514 6
r3d_model.py
in c2/lib/models
692 6
extract_features.py
in pt/tools
44 5
train_net.py
in pt/tools
55 5
model_helper.py
in c2/lib/utils
213 5
data.py
in pt/vmz/datasets
101 4
Files With Long Lines (Top 1)

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

File# lines# units# long lines
utils.py
in pt/vmz/models
127 9 15