facebookresearch / CrypTen
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 84 files with 11,524 lines of code.
    • 2 very long files (2,920 lines of code)
    • 1 long files (650 lines of code)
    • 13 medium size files (4,043 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (1,905 lines of code)
    • 55 very small files (2,006 lines of code)
25% | 5% | 35% | 16% | 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
py26% | 5% | 34% | 17% | 15%
js0% | 0% | 73% | 0% | 26%
css0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
crypten67% | 0% | 29% | 0% | 3%
crypten/nn66% | 0% | 11% | 14% | 6%
benchmarks/dash_app0% | 80% | 0% | 0% | 19%
crypten/mpc0% | 0% | 52% | 21% | 26%
crypten/cuda0% | 0% | 99% | 0% | <1%
benchmarks0% | 0% | 64% | 16% | 18%
crypten/common0% | 0% | 36% | 41% | 22%
scripts0% | 0% | 85% | 0% | 14%
crypten/communicator0% | 0% | 48% | 47% | 4%
website/pages0% | 0% | 100% | 0% | 0%
tutorials0% | 0% | 0% | 100% | 0%
crypten/models0% | 0% | 0% | 100% | 0%
pycon-workshop-20200% | 0% | 0% | 0% | 100%
crypten/debug0% | 0% | 0% | 0% | 100%
crypten/optim0% | 0% | 0% | 0% | 100%
website/static0% | 0% | 0% | 0% | 100%
crypten/config0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
website0% | 0% | 0% | 0% | 100%
website/core0% | 0% | 0% | 0% | 100%
configs0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
gradients.py
in crypten
1470 160
module.py
in crypten/nn
1450 190
app.py
in benchmarks/dash_app
650 14
cuda_tensor.py
in crypten/cuda
477 67
benchmark.py
in benchmarks
476 32
arithmetic.py
in crypten/mpc/primitives
436 60
cryptensor.py
in crypten
368 58
binary.py
in crypten/mpc/primitives
297 48
pooling.py
in crypten/common/functions
274 7
__init__.py
in crypten
269 29
aws_launcher.py
in scripts
268 7
distributed_communicator.py
in crypten/communicator
265 25
dp_split.py
in crypten/nn/privacy
256 29
ttp_provider.py
in crypten/mpc/provider
237 24
index.js
in website/pages/en
219 1
maximum.py
in crypten/common/functions
201 14
regular.py
in crypten/common/functions
199 18
approximations.py
in crypten/common/functions
198 15
mpc.py
in crypten/mpc
191 28
onnx_converter.py
in crypten/nn
181 16
serial.py
in crypten/common
142 10
mnist_utils.py
in tutorials
142 6
__init__.py
in crypten/nn
140 -
in_process_communicator.py
in crypten/communicator
136 20
communicator.py
in crypten/communicator
124 26
models.py
in benchmarks
123 12
__init__.py
in crypten/models
117 10
provider.py
in crypten/mpc/provider
109 19
beaver.py
in crypten/mpc/primitives
103 15
styles.css
in benchmarks/dash_app/assets
94 -
debug.py
in crypten/debug
90 6
circuit.py
in crypten/mpc/primitives
88 11
replicated.py
in crypten/mpc/primitives
85 11
baseOT.py
in crypten/mpc/primitives/ot
85 4
power.py
in crypten/common/functions
76 4
run_historical_benchmarks.py
in benchmarks
76 2
context.py
in crypten/mpc
68 2
encoder.py
in crypten
67 6
load_data.py
in benchmarks/dash_app
66 8
multiprocess_launcher.py
in pycon-workshop-2020
59 5
sgd.py
in crypten/optim
59 3
logic.py
in crypten/common/functions
59 11
training_across_parties.py
in pycon-workshop-2020
58 6
converters.py
in crypten/mpc/primitives
58 3
custom.css
in website/static/css
56 -
loss.py
in crypten/nn
54 9
config.py
in crypten/config
54 8
data.py
in benchmarks
51 4
tensorboard.py
in crypten/nn
46 2
tfp_provider.py
in crypten/mpc/provider
46 5
Files With Most Units (Top 20)
File# lines# units
module.py
in crypten/nn
1450 190
gradients.py
in crypten
1470 160
cuda_tensor.py
in crypten/cuda
477 67
arithmetic.py
in crypten/mpc/primitives
436 60
cryptensor.py
in crypten
368 58
binary.py
in crypten/mpc/primitives
297 48
benchmark.py
in benchmarks
476 32
dp_split.py
in crypten/nn/privacy
256 29
__init__.py
in crypten
269 29
mpc.py
in crypten/mpc
191 28
communicator.py
in crypten/communicator
124 26
distributed_communicator.py
in crypten/communicator
265 25
ttp_provider.py
in crypten/mpc/provider
237 24
in_process_communicator.py
in crypten/communicator
136 20
provider.py
in crypten/mpc/provider
109 19
regular.py
in crypten/common/functions
199 18
onnx_converter.py
in crypten/nn
181 16
approximations.py
in crypten/common/functions
198 15
beaver.py
in crypten/mpc/primitives
103 15
maximum.py
in crypten/common/functions
201 14
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
run_historical_benchmarks.py
in benchmarks
76 2 1