facebookresearch / OnlineAttacks
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 61 files with 4,170 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (256 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,044 lines of code)
    • 44 very small files (1,870 lines of code)
0% | 0% | 6% | 49% | 44%
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% | 6% | 47% | 46%
yml0% | 0% | 0% | 100% | 0%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
online_attacks/classifiers/cifar0% | 0% | 33% | 13% | 52%
online_attacks/scripts0% | 0% | 0% | 65% | 34%
online_attacks/experiments0% | 0% | 0% | 84% | 15%
online_attacks/online_algorithms0% | 0% | 0% | 47% | 52%
online_attacks/classifiers/mnist0% | 0% | 0% | 57% | 42%
online_attacks/utils0% | 0% | 0% | 64% | 35%
ROOT0% | 0% | 0% | 79% | 20%
online_attacks/classifiers0% | 0% | 0% | 50% | 50%
online_attacks/utils/optimizer0% | 0% | 0% | 44% | 55%
online_attacks/classifiers/madry0% | 0% | 0% | 100% | 0%
online_attacks/datastream0% | 0% | 0% | 0% | 100%
online_attacks/attacks0% | 0% | 0% | 0% | 100%
online_attacks0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
wide_resnet.py
in online_attacks/classifiers/cifar/models
256 8
mnist_online.py
in online_attacks/experiments
172 1
eval_all.py
in online_attacks/scripts
172 1
online_attacks_sweep.py
in online_attacks/scripts
159 4
hist_classifiers.py
in online_attacks/scripts
157 7
compute_hist_all.py
in online_attacks/scripts
142 2
models.py
in online_attacks/classifiers/mnist
132 11
logger.py
in online_attacks/utils
127 20
environment.yml
in root
119 -
stochastic_toy.py
in online_attacks/experiments
117 2
__init__.py
in online_attacks/online_algorithms
116 5
toy.py
in online_attacks/experiments
108 2
resnet.py
in online_attacks/classifiers/cifar/models
108 13
trainer.py
in online_attacks/classifiers
106 3
stochastic_single_ref.py
in online_attacks/online_algorithms
106 6
sls.py
in online_attacks/utils/optimizer/sls
102 2
__init__.py
in online_attacks/classifiers/madry
101 9
train_classifiers.py
in online_attacks/scripts
97 2
datastream.py
in online_attacks/datastream
93 19
__init__.py
in online_attacks/classifiers
93 3
random_eval.py
in online_attacks/scripts
92 5
googlenet.py
in online_attacks/classifiers/cifar/models
84 5
densenet.py
in online_attacks/classifiers/cifar/models
83 13
vgg.py
in online_attacks/classifiers/cifar/models
80 4
utils.py
in online_attacks/utils/optimizer/sls
78 8
launcher.py
in online_attacks
77 10
hyper_search_stochastic_toy.py
in online_attacks/experiments
74 3
eval_classifiers.py
in online_attacks/scripts
60 -
toy_data.py
in online_attacks/datastream
58 6
__init__.py
in online_attacks/classifiers/cifar/models
58 3
stochastic_virtual_ref.py
in online_attacks/online_algorithms
57 3
batch_online_attacks.py
in online_attacks/scripts
56 -
parser.py
in online_attacks/utils
52 5
train.py
in online_attacks/classifiers/cifar
49 1
stochastic_virtual.py
in online_attacks/online_algorithms
49 3
stochastic_modified_virtual.py
in online_attacks/online_algorithms
47 3
train.py
in online_attacks/classifiers/mnist
46 1
pgd.py
in online_attacks/attacks
45 1
stochastic_optimistic.py
in online_attacks/online_algorithms
43 3
attacks_registry.py
in online_attacks/attacks
35 3
base.py
in online_attacks/online_algorithms
33 7
setup.py
in root
30 -
cw_pgd.py
in online_attacks/attacks
29 1
dataset.py
in online_attacks/classifiers/cifar
28 2
dataset.py
in online_attacks/classifiers/mnist
26 2
__init__.py
in online_attacks/utils/optimizer
25 1
online_attack_params.py
in online_attacks/scripts
25 -
extragradient.py
in online_attacks/utils/optimizer
24 2
params.py
in online_attacks/classifiers/cifar
23 -
params.py
in online_attacks/classifiers/mnist
21 -
Files With Most Units (Top 20)
File# lines# units
logger.py
in online_attacks/utils
127 20
datastream.py
in online_attacks/datastream
93 19
densenet.py
in online_attacks/classifiers/cifar/models
83 13
resnet.py
in online_attacks/classifiers/cifar/models
108 13
models.py
in online_attacks/classifiers/mnist
132 11
launcher.py
in online_attacks
77 10
__init__.py
in online_attacks/classifiers/madry
101 9
utils.py
in online_attacks/utils/optimizer/sls
78 8
wide_resnet.py
in online_attacks/classifiers/cifar/models
256 8
hist_classifiers.py
in online_attacks/scripts
157 7
base.py
in online_attacks/online_algorithms
33 7
toy_data.py
in online_attacks/datastream
58 6
stochastic_single_ref.py
in online_attacks/online_algorithms
106 6
parser.py
in online_attacks/utils
52 5
random_eval.py
in online_attacks/scripts
92 5
googlenet.py
in online_attacks/classifiers/cifar/models
84 5
__init__.py
in online_attacks/online_algorithms
116 5
online_attacks_sweep.py
in online_attacks/scripts
159 4
vgg.py
in online_attacks/classifiers/cifar/models
80 4
hyper_search_stochastic_toy.py
in online_attacks/experiments
74 3
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
__init__.py
in online_attacks/online_algorithms
116 5 1