pytorch / opacus
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 69 files with 5,464 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,080 lines of code)
    • 7 medium size files (1,831 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (240 lines of code)
    • 58 very small files (2,313 lines of code)
0% | 19% | 33% | 4% | 42%
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
css0% | 76% | 16% | 0% | 6%
py0% | 0% | 40% | 6% | 52%
js0% | 0% | 35% | 0% | 64%
ps10% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
website/static0% | 76% | 16% | 0% | 6%
opacus/layers0% | 0% | 90% | 0% | 9%
opacus/grad_sample0% | 0% | 54% | 0% | 45%
opacus0% | 0% | 47% | 26% | 25%
opacus/optimizers0% | 0% | 50% | 0% | 49%
website/pages0% | 0% | 69% | 0% | 30%
opacus/accountants0% | 0% | 0% | 35% | 64%
opacus/utils0% | 0% | 0% | 0% | 100%
opacus/validators0% | 0% | 0% | 0% | 100%
website/core0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
opacus/scripts0% | 0% | 0% | 0% | 100%
website/scripts0% | 0% | 0% | 0% | 100%
website/sphinx0% | 0% | 0% | 0% | 100%
website0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
basic.css
in website/static/css
546 -
alabaster.css
in website/static/css
534 -
dp_rnn.py
in opacus/layers
475 19
grad_sample_module.py
in opacus/grad_sample
248 21
custom.css
in website/static/css
240 -
dp_multihead_attention.py
in opacus/layers
226 6
privacy_engine.py
in opacus
226 11
optimizer.py
in opacus/optimizers
214 21
index.js
in website/pages/en
202 1
data_loader.py
in opacus
124 7
rdp.py
in opacus/accountants/analysis
116 9
compute_dp_sgd_privacy.py
in opacus/scripts
100 3
Footer.js
in website/core
94 3
tensor_utils.py
in opacus/utils
88 5
ddp_perlayeroptimizer.py
in opacus/optimizers
88 9
index.js
in website/pages/tutorials
88 1
batch_memory_manager.py
in opacus/utils
80 7
module_validator.py
in opacus/validators
77 5
uniform_sampler.py
in opacus/utils
76 7
TutorialSidebar.js
in website/core
73 1
setup.py
in root
67 -
packed_sequences.py
in opacus/utils
66 2
module_utils.py
in opacus/utils
62 6
batch_norm.py
in opacus/validators
62 5
pygments.css
in website/static
61 -
param_rename.py
in opacus/layers
59 5
conf.py
in website/sphinx/source
59 -
scheduler.py
in opacus
58 11
Tutorial.js
in website/core
56 2
rdp.py
in opacus/accountants
54 6
conv.py
in opacus/grad_sample
54 1
siteConfig.js
in website
54 -
ddpoptimizer.py
in opacus/optimizers
49 4
parse_tutorials.py
in website/scripts
46 1
parse_sphinx.py
in website/scripts
46 1
gdp.py
in opacus/accountants/analysis
45 6
perlayeroptimizer.py
in opacus/optimizers
43 2
conftest.py
in root
41 5
utils.py
in opacus/accountants
38 1
gdp.py
in opacus/accountants
34 5
lightning.py
in opacus
34 10
code_block_buttons.css
in website/static/css
32 -
utils.py
in opacus/validators
31 4
accountant.py
in opacus/accountants
29 7
multihead_attention.py
in opacus/validators
29 2
lstm.py
in opacus/validators
28 2
instance_norm.py
in opacus/validators
27 2
instance_norm.py
in opacus/grad_sample
26 1
embedding.py
in opacus/grad_sample
24 1
__init__.py
in opacus/optimizers
22 1
Files With Most Units (Top 20)
File# lines# units
optimizer.py
in opacus/optimizers
214 21
grad_sample_module.py
in opacus/grad_sample
248 21
dp_rnn.py
in opacus/layers
475 19
privacy_engine.py
in opacus
226 11
scheduler.py
in opacus
58 11
lightning.py
in opacus
34 10
rdp.py
in opacus/accountants/analysis
116 9
ddp_perlayeroptimizer.py
in opacus/optimizers
88 9
accountant.py
in opacus/accountants
29 7
data_loader.py
in opacus
124 7
batch_memory_manager.py
in opacus/utils
80 7
uniform_sampler.py
in opacus/utils
76 7
gdp.py
in opacus/accountants/analysis
45 6
rdp.py
in opacus/accountants
54 6
dp_multihead_attention.py
in opacus/layers
226 6
module_utils.py
in opacus/utils
62 6
gdp.py
in opacus/accountants
34 5
param_rename.py
in opacus/layers
59 5
tensor_utils.py
in opacus/utils
88 5
batch_norm.py
in opacus/validators
62 5
Files With Long Lines (Top 6)

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

File# lines# units# long lines
index.js
in website/pages/tutorials
88 1 3
index.js
in website/pages/en
202 1 3
rdp.py
in opacus/accountants/analysis
116 9 1
data_loader.py
in opacus
124 7 1
Tutorial.js
in website/core
56 2 1
ps1
pytorch_install.ps1
in scripts
20 - 1