facebookresearch / GAN-optimization-landscape
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 16 files with 1,852 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,152 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (374 lines of code)
    • 9 very small files (326 lines of code)
0% | 0% | 62% | 20% | 17%
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% | 66% | 14% | 18%
yml0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 0% | 79% | 20% | 0%
lib/models0% | 0% | 60% | 0% | 39%
lib/optim0% | 0% | 0% | 58% | 41%
lib0% | 0% | 0% | 0% | 100%
Longest Files (Top 16)
File# lines# units
train_mnist.py
in root
334 15
plot_path_tools.py
in root
328 5
train_mixture_gan.py
in root
278 6
conv.py
in lib/models
212 12
extragradient.py
in lib/optim
127 10
gan_eval_metrics.py
in root
124 5
mnist-exp_environment.yml
in root
123 -
omd.py
in lib/optim
87 6
wgangp.py
in lib/models
67 6
linalg.py
in lib
54 4
mlp.py
in lib/models
45 4
utils.py
in lib
43 7
discriminator.py
in lib/models
24 3
__init__.py
in lib/models
3 -
__init__.py
in lib/optim
2 -
__init__.py
in lib
1 -
Files With Most Units (Top 12)
File# lines# units
train_mnist.py
in root
334 15
conv.py
in lib/models
212 12
extragradient.py
in lib/optim
127 10
utils.py
in lib
43 7
train_mixture_gan.py
in root
278 6
omd.py
in lib/optim
87 6
wgangp.py
in lib/models
67 6
plot_path_tools.py
in root
328 5
gan_eval_metrics.py
in root
124 5
mlp.py
in lib/models
45 4
linalg.py
in lib
54 4
discriminator.py
in lib/models
24 3
Files With Long Lines (Top 4)

There are 4 files with lines longer than 120 characters. In total, there are 14 long lines.

File# lines# units# long lines
train_mixture_gan.py
in root
278 6 7
plot_path_tools.py
in root
328 5 4
train_mnist.py
in root
334 15 2
discriminator.py
in lib/models
24 3 1