facebookresearch / selavi
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 24 files with 4,519 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (523 lines of code)
    • 9 medium size files (2,664 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (913 lines of code)
    • 8 very small files (419 lines of code)
0% | 11% | 58% | 20% | 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% | 13% | 68% | 7% | 10%
js0% | 0% | 0% | 100% | 0%
yml0% | 0% | 0% | 100% | 0%
css0% | 0% | 0% | 100% | 0%
html0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 25% | 49% | 21% | 3%
datasets0% | 0% | 90% | 0% | 9%
src0% | 0% | 89% | 0% | 10%
cluster_vis/data0% | 0% | 0% | 100% | 0%
cluster_vis0% | 0% | 0% | 39% | 60%
Longest Files (Top 24)
File# lines# units
finetune_video.py
in root
523 7
retrieval_utils.py
in src
436 10
sk_utils.py
in src
371 4
AVideoDataset.py
in datasets
367 9
utils.py
in root
278 25
get_clusters.py
in root
278 6
main.py
in root
261 2
video_transforms.py
in datasets
229 18
decoder.py
in datasets
223 6
model.py
in root
221 21
clustervis.js
in cluster_vis/data
184 11
environment.yml
in root
171 -
clustervis.css
in cluster_vis/data
169 -
clustering_metrics.py
in root
164 7
opt.py
in root
115 1
index.html
in cluster_vis
110 -
audio_utils.py
in datasets
82 2
get_clusters_kinetics.py
in cluster_vis
57 1
get_clusters_vggsounds.py
in cluster_vis
57 1
preprocess.py
in cluster_vis
53 2
logger.py
in src
52 5
warmup_scheduler.py
in src
47 4
video_retrieval.py
in root
42 1
plot_distributions.py
in root
29 1
Files With Most Units (Top 20)
File# lines# units
utils.py
in root
278 25
model.py
in root
221 21
video_transforms.py
in datasets
229 18
clustervis.js
in cluster_vis/data
184 11
retrieval_utils.py
in src
436 10
AVideoDataset.py
in datasets
367 9
finetune_video.py
in root
523 7
clustering_metrics.py
in root
164 7
decoder.py
in datasets
223 6
get_clusters.py
in root
278 6
logger.py
in src
52 5
warmup_scheduler.py
in src
47 4
sk_utils.py
in src
371 4
preprocess.py
in cluster_vis
53 2
audio_utils.py
in datasets
82 2
main.py
in root
261 2
get_clusters_kinetics.py
in cluster_vis
57 1
get_clusters_vggsounds.py
in cluster_vis
57 1
plot_distributions.py
in root
29 1
opt.py
in root
115 1
Files With Long Lines (Top 6)

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

File# lines# units# long lines
index.html
in cluster_vis
110 - 20
AVideoDataset.py
in datasets
367 9 4
clustervis.js
in cluster_vis/data
184 11 2
warmup_scheduler.py
in src
47 4 2
clustervis.css
in cluster_vis/data
169 - 1
retrieval_utils.py
in src
436 10 1