facebookresearch / EGG
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 128 files with 10,730 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (506 lines of code)
    • 13 medium size files (3,622 lines of codeclsfd_ftr_w_mp_ins)
    • 23 small files (3,255 lines of code)
    • 91 very small files (3,347 lines of code)
0% | 4% | 33% | 30% | 31%
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% | 4% | 34% | 30% | 30%
pl0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
egg/core0% | 16% | 53% | 17% | 12%
egg/zoo/language_bottleneck0% | 0% | 40% | 9% | 49%
egg/zoo/compo_vs_generalization0% | 0% | 53% | 25% | 20%
egg/zoo/objects_game0% | 0% | 52% | 45% | 2%
egg/zoo/external_game0% | 0% | 83% | 0% | 16%
egg/zoo/channel0% | 0% | 81% | 0% | 18%
egg/zoo/basic_games0% | 0% | 61% | 0% | 38%
egg/zoo/emcom_as_ssl0% | 0% | 0% | 73% | 26%
egg/zoo/signal_game0% | 0% | 0% | 71% | 28%
egg/zoo/simple_autoenc0% | 0% | 0% | 77% | 22%
egg/nest0% | 0% | 0% | 45% | 54%
egg/zoo/compositional_efficiency0% | 0% | 0% | 43% | 56%
egg/zoo/dsprites_bvae0% | 0% | 0% | 45% | 54%
egg/zoo/summation0% | 0% | 0% | 49% | 50%
egg/zoo/mnist_vae0% | 0% | 0% | 99% | <1%
egg/zoo/simclr0% | 0% | 0% | 0% | 100%
egg/zoo/template0% | 0% | 0% | 0% | 100%
egg/zoo/mnist_autoenc0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
egg0% | 0% | 0% | 0% | 100%
egg/zoo0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
reinforce_wrappers.py
in egg/core
506 24
callbacks.py
in egg/core
412 50
train.py
in egg/zoo/compo_vs_generalization
366 4
train.py
in egg/zoo/objects_game
348 4
gs_wrappers.py
in egg/core
313 17
train.py
in egg/zoo/language_bottleneck/guess_number
272 4
game.py
in egg/zoo/external_game
271 5
train.py
in egg/zoo/channel
268 4
transformer.py
in egg/core
264 15
play.py
in egg/zoo/basic_games
243 2
trainers.py
in egg/core
241 7
intervention.py
in egg/zoo/language_bottleneck
214 10
interaction.py
in egg/core
205 9
language_analysis.py
in egg/core
205 24
util.py
in egg/core
199 11
train.py
in egg/zoo/simple_autoenc
181 3
utils.py
in egg/zoo/emcom_as_ssl
178 7
archs.py
in egg/zoo/emcom_as_ssl
177 14
features.py
in egg/zoo/objects_game
176 12
intervention.py
in egg/zoo/compo_vs_generalization
172 16
kmeans_analysis.py
in egg/zoo/emcom_as_ssl/scripts
158 3
nest.py
in egg/nest
157 -
discrete.py
in egg/zoo/compositional_efficiency
152 4
utils.py
in egg/zoo/emcom_as_ssl/scripts
152 6
train.py
in egg/zoo/dsprites_bvae
152 8
util.py
in egg/zoo/objects_game
128 8
losses.py
in egg/zoo/emcom_as_ssl
127 7
game_callbacks.py
in egg/zoo/emcom_as_ssl
126 12
datasets.py
in egg/core
122 10
train.py
in egg/zoo/summation
120 2
train.py
in egg/zoo/signal_game
118 4
train.py
in egg/zoo/language_bottleneck/mnist_overfit
117 3
losses.py
in egg/core
114 8
train.py
in egg/zoo/mnist_vae
113 10
__init__.py
in egg/core
108 -
train.py
in egg/zoo/emcom_as_ssl
105 1
features.py
in egg/zoo/signal_game
103 10
data.py
in egg/zoo/emcom_as_ssl
93 5
train.py
in egg/zoo/language_bottleneck/mnist_classification
93 3
data.py
in egg/zoo/language_bottleneck/mnist_classification
92 13
nest_local.py
in egg/nest
92 -
train.py
in egg/zoo/language_bottleneck/mnist_adv
91 3
continous_communication.py
in egg/core
90 6
gaussian_noise_analysis.py
in egg/zoo/emcom_as_ssl/scripts
90 7
data.py
in egg/zoo/compo_vs_generalization
88 9
archs.py
in egg/zoo/signal_game
88 6
distributed.py
in egg/core
85 3
continuous.py
in egg/zoo/compositional_efficiency
84 3
train.py
in egg/zoo/mnist_autoenc
76 6
games.py
in egg/zoo/emcom_as_ssl
76 2
Files With Most Units (Top 20)
File# lines# units
callbacks.py
in egg/core
412 50
reinforce_wrappers.py
in egg/core
506 24
language_analysis.py
in egg/core
205 24
gs_wrappers.py
in egg/core
313 17
intervention.py
in egg/zoo/compo_vs_generalization
172 16
transformer.py
in egg/core
264 15
archs.py
in egg/zoo/emcom_as_ssl
177 14
LARC.py
in egg/zoo/simclr
58 13
LARC.py
in egg/zoo/emcom_as_ssl
58 13
data.py
in egg/zoo/language_bottleneck/mnist_classification
92 13
features.py
in egg/zoo/objects_game
176 12
game_callbacks.py
in egg/zoo/emcom_as_ssl
126 12
baselines.py
in egg/core
45 11
util.py
in egg/core
199 11
archs.py
in egg/zoo/compo_vs_generalization
51 11
datasets.py
in egg/core
122 10
archs.py
in egg/zoo/compositional_efficiency
65 10
train.py
in egg/zoo/mnist_vae
113 10
features.py
in egg/zoo/signal_game
103 10
archs.py
in egg/zoo/dsprites_bvae
74 10
Files With Long Lines (Top 6)

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

File# lines# units# long lines
train.py
in egg/zoo/objects_game
348 4 5
play.py
in egg/zoo/basic_games
243 2 3
train.py
in egg/zoo/channel
268 4 2
generate_reconstruction_dataset.pl
in egg/zoo/basic_games/data_generation_scripts
27 - 1
generate_discriminative_dataset.pl
in egg/zoo/basic_games/data_generation_scripts
51 3 1
train.py
in egg/zoo/emcom_as_ssl
105 1 1