facebookincubator / flowtorch
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 74 files with 3,887 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (521 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,467 lines of code)
    • 63 very small files (1,899 lines of code)
0% | 13% | 0% | 37% | 48%
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% | 74% | 0% | 0% | 25%
py0% | 0% | 0% | 47% | 52%
js0% | 0% | 0% | 30% | 70%
bib0% | 0% | 0% | 100% | 0%
toml0% | 0% | 0% | 0% | 100%
tsx0% | 0% | 0% | 0% | 100%
cfg0% | 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/src/css0% | 100% | 0% | 0% | 0%
flowtorch/bijectors0% | 0% | 0% | 39% | 60%
scripts0% | 0% | 0% | 75% | 24%
flowtorch/ops0% | 0% | 0% | 100% | 0%
website0% | 0% | 0% | 79% | 20%
flowtorch0% | 0% | 0% | 56% | 43%
website/static/assets0% | 0% | 0% | 100% | 0%
flowtorch/parameters0% | 0% | 0% | 71% | 28%
website/src/theme0% | 0% | 0% | 0% | 100%
flowtorch/bijectors/ops0% | 0% | 0% | 0% | 100%
flowtorch/distributions0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
flowtorch/nn0% | 0% | 0% | 0% | 100%
website/src/pages0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
custom.css
in website/src/css
521 -
195 7
__init__.py
in flowtorch/ops
175 7
165 -
docs.py
in flowtorch
162 7
base.py
in flowtorch/bijectors
156 14
bib
normalizing-flows.bib
in website/static/assets
138 -
dense_autoregressive.py
in flowtorch/parameters
124 3
bijective_tensor.py
in flowtorch/bijectors
123 15
120 3
compose.py
in flowtorch/bijectors
109 6
100 2
flow.py
in flowtorch/distributions
88 8
spline.py
in flowtorch/bijectors/ops
82 6
index.js
in website/src/theme/Features
77 1
setup.py
in root
74 -
__init__.py
in flowtorch/bijectors
70 2
made.py
in flowtorch/nn
62 4
lazy.py
in flowtorch
61 6
autoregressive.py
in flowtorch/bijectors
60 3
utils.py
in flowtorch
60 7
affine.py
in flowtorch/bijectors/ops
58 5
index.js
in website/src/theme/Hero
46 -
permute.py
in flowtorch/bijectors
45 4
index.js
in website/src/theme/CodeSnippet
43 1
affine_fixed.py
in flowtorch/bijectors
42 4
power.py
in flowtorch/bijectors
40 4
utils.py
in flowtorch/bijectors
38 10
neals_funnel.py
in flowtorch/distributions
38 3
index.js
in website/src/theme/PythonNavbar
32 1
styles.module.css
in website/src/theme/Features
30 -
index.js
in website/src/theme/PythonModule
29 1
index.js
in website/src/theme/PythonFunction
29 1
index.js
in website/src/theme/PythonClass
29 1
index.js
in website/src/theme/PythonMethod
28 1
index.js
in website/src/theme/Headline
27 1
elu.py
in flowtorch/bijectors
26 3
sigmoid.py
in flowtorch/bijectors
26 3
base.py
in flowtorch/parameters
26 3
index.tsx
in website/src/theme/DocPage
26 1
tanh.py
in flowtorch/bijectors
25 3
spline_autoregressive.py
in flowtorch/bijectors
25 1
affine_autoregressive.py
in flowtorch/bijectors
25 1
softplus.py
in flowtorch/bijectors
25 3
spline.py
in flowtorch/bijectors
24 1
leaky_relu.py
in flowtorch/bijectors
24 3
24 -
exp.py
in flowtorch/bijectors
23 3
affine.py
in flowtorch/bijectors
21 1
styles.module.css
in website/src/theme/Headline
21 -
Files With Most Units (Top 46)
File# lines# units
bijective_tensor.py
in flowtorch/bijectors
123 15
base.py
in flowtorch/bijectors
156 14
utils.py
in flowtorch/bijectors
38 10
flow.py
in flowtorch/distributions
88 8
docs.py
in flowtorch
162 7
utils.py
in flowtorch
60 7
__init__.py
in flowtorch/ops
175 7
195 7
compose.py
in flowtorch/bijectors
109 6
spline.py
in flowtorch/bijectors/ops
82 6
lazy.py
in flowtorch
61 6
affine.py
in flowtorch/bijectors/ops
58 5
permute.py
in flowtorch/bijectors
45 4
affine_fixed.py
in flowtorch/bijectors
42 4
power.py
in flowtorch/bijectors
40 4
made.py
in flowtorch/nn
62 4
autoregressive.py
in flowtorch/bijectors
60 3
tanh.py
in flowtorch/bijectors
25 3
leaky_relu.py
in flowtorch/bijectors
24 3
elu.py
in flowtorch/bijectors
26 3
softplus.py
in flowtorch/bijectors
25 3
sigmoid.py
in flowtorch/bijectors
26 3
exp.py
in flowtorch/bijectors
23 3
dense_autoregressive.py
in flowtorch/parameters
124 3
base.py
in flowtorch/parameters
26 3
neals_funnel.py
in flowtorch/distributions
38 3
120 3
fixed.py
in flowtorch/bijectors
17 2
__init__.py
in flowtorch/bijectors
70 2
tensor.py
in flowtorch/parameters
19 2
100 2
spline.py
in flowtorch/bijectors
24 1
elementwise.py
in flowtorch/bijectors
19 1
affine.py
in flowtorch/bijectors
21 1
spline_autoregressive.py
in flowtorch/bijectors
25 1
affine_autoregressive.py
in flowtorch/bijectors
25 1
volume_preserving.py
in flowtorch/bijectors
14 1
index.js
in website/src/theme/PythonModule
29 1
index.js
in website/src/theme/Features
77 1
index.js
in website/src/theme/Headline
27 1
index.js
in website/src/theme/PythonFunction
29 1
index.js
in website/src/theme/PythonNavbar
32 1
index.tsx
in website/src/theme/DocPage
26 1
index.js
in website/src/theme/PythonMethod
28 1
index.js
in website/src/theme/PythonClass
29 1
index.js
in website/src/theme/CodeSnippet
43 1
Files With Long Lines (Top 4)

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

File# lines# units# long lines
bib
normalizing-flows.bib
in website/static/assets
138 - 4
index.js
in website/src/theme/Features
77 1 3
custom.css
in website/src/css
521 - 2
index.js
in website/src/theme/Hero
46 - 2
Correlations

File Size vs. Commits (all time): 62 points

flowtorch/bijectors/ops/spline.py x: 4 commits (all time) y: 82 lines of code flowtorch/bijectors/affine.py x: 3 commits (all time) y: 21 lines of code flowtorch/bijectors/affine_autoregressive.py x: 3 commits (all time) y: 25 lines of code flowtorch/bijectors/affine_fixed.py x: 3 commits (all time) y: 42 lines of code flowtorch/bijectors/autoregressive.py x: 3 commits (all time) y: 60 lines of code flowtorch/bijectors/base.py x: 3 commits (all time) y: 156 lines of code flowtorch/bijectors/bijective_tensor.py x: 1 commits (all time) y: 123 lines of code flowtorch/bijectors/compose.py x: 3 commits (all time) y: 109 lines of code flowtorch/bijectors/elementwise.py x: 3 commits (all time) y: 19 lines of code flowtorch/bijectors/exp.py x: 3 commits (all time) y: 23 lines of code flowtorch/bijectors/fixed.py x: 3 commits (all time) y: 17 lines of code flowtorch/bijectors/ops/affine.py x: 3 commits (all time) y: 58 lines of code flowtorch/bijectors/permute.py x: 3 commits (all time) y: 45 lines of code flowtorch/bijectors/power.py x: 3 commits (all time) y: 40 lines of code flowtorch/bijectors/utils.py x: 1 commits (all time) y: 38 lines of code flowtorch/bijectors/volume_preserving.py x: 3 commits (all time) y: 14 lines of code flowtorch/distributions/flow.py x: 3 commits (all time) y: 88 lines of code flowtorch/parameters/dense_autoregressive.py x: 4 commits (all time) y: 124 lines of code setup.py x: 3 commits (all time) y: 74 lines of code flowtorch/docs.py x: 3 commits (all time) y: 162 lines of code flowtorch/nn/__init__.py x: 3 commits (all time) y: 2 lines of code scripts/generate_api_docs.py x: 3 commits (all time) y: 195 lines of code scripts/generate_imports.py x: 3 commits (all time) y: 100 lines of code flowtorch/__init__.py x: 2 commits (all time) y: 2 lines of code flowtorch/bijectors/__init__.py x: 2 commits (all time) y: 70 lines of code flowtorch/distributions/__init__.py x: 2 commits (all time) y: 3 lines of code flowtorch/distributions/neals_funnel.py x: 2 commits (all time) y: 38 lines of code flowtorch/nn/made.py x: 2 commits (all time) y: 62 lines of code flowtorch/ops/__init__.py x: 2 commits (all time) y: 175 lines of code scripts/copyright_headers.py x: 2 commits (all time) y: 120 lines of code website/src/theme/DocPage/index.tsx x: 2 commits (all time) y: 26 lines of code website/documentation.toml x: 1 commits (all time) y: 24 lines of code website/docusaurus.config.js x: 1 commits (all time) y: 165 lines of code website/sidebars.js x: 1 commits (all time) y: 15 lines of code website/src/css/custom.css x: 1 commits (all time) y: 521 lines of code website/src/pages/index.js x: 1 commits (all time) y: 18 lines of code website/src/theme/DocSidebar/index.js x: 1 commits (all time) y: 9 lines of code website/src/theme/Headline/styles.module.css x: 1 commits (all time) y: 21 lines of code website/src/theme/PythonClass/index.js x: 1 commits (all time) y: 29 lines of code website/src/theme/PythonMethod/index.js x: 1 commits (all time) y: 28 lines of code website/src/theme/PythonNavbar/index.js x: 1 commits (all time) y: 32 lines of code
521.0
lines of code
  min: 1.0
  average: 56.21
  25th percentile: 18.0
  median: 26.0
  75th percentile: 64.0
  max: 521.0
0 4.0
commits (all time)
min: 1.0 | average: 2.23 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 3.0 | max: 4.0

File Size vs. Contributors (all time): 62 points

flowtorch/bijectors/ops/spline.py x: 3 contributors (all time) y: 82 lines of code flowtorch/bijectors/affine.py x: 3 contributors (all time) y: 21 lines of code flowtorch/bijectors/affine_autoregressive.py x: 3 contributors (all time) y: 25 lines of code flowtorch/bijectors/affine_fixed.py x: 3 contributors (all time) y: 42 lines of code flowtorch/bijectors/autoregressive.py x: 3 contributors (all time) y: 60 lines of code flowtorch/bijectors/base.py x: 3 contributors (all time) y: 156 lines of code flowtorch/bijectors/bijective_tensor.py x: 1 contributors (all time) y: 123 lines of code flowtorch/bijectors/compose.py x: 3 contributors (all time) y: 109 lines of code flowtorch/bijectors/elementwise.py x: 3 contributors (all time) y: 19 lines of code flowtorch/bijectors/exp.py x: 3 contributors (all time) y: 23 lines of code flowtorch/bijectors/fixed.py x: 3 contributors (all time) y: 17 lines of code flowtorch/bijectors/ops/affine.py x: 3 contributors (all time) y: 58 lines of code flowtorch/bijectors/permute.py x: 3 contributors (all time) y: 45 lines of code flowtorch/bijectors/power.py x: 3 contributors (all time) y: 40 lines of code flowtorch/bijectors/utils.py x: 1 contributors (all time) y: 38 lines of code flowtorch/bijectors/volume_preserving.py x: 3 contributors (all time) y: 14 lines of code flowtorch/distributions/flow.py x: 3 contributors (all time) y: 88 lines of code flowtorch/parameters/dense_autoregressive.py x: 4 contributors (all time) y: 124 lines of code setup.py x: 3 contributors (all time) y: 74 lines of code flowtorch/docs.py x: 3 contributors (all time) y: 162 lines of code flowtorch/nn/__init__.py x: 3 contributors (all time) y: 2 lines of code scripts/generate_api_docs.py x: 3 contributors (all time) y: 195 lines of code scripts/generate_imports.py x: 3 contributors (all time) y: 100 lines of code flowtorch/__init__.py x: 2 contributors (all time) y: 2 lines of code flowtorch/bijectors/__init__.py x: 2 contributors (all time) y: 70 lines of code flowtorch/distributions/__init__.py x: 2 contributors (all time) y: 3 lines of code flowtorch/distributions/neals_funnel.py x: 2 contributors (all time) y: 38 lines of code flowtorch/nn/made.py x: 2 contributors (all time) y: 62 lines of code flowtorch/ops/__init__.py x: 2 contributors (all time) y: 175 lines of code scripts/copyright_headers.py x: 2 contributors (all time) y: 120 lines of code website/src/theme/DocPage/index.tsx x: 2 contributors (all time) y: 26 lines of code website/documentation.toml x: 1 contributors (all time) y: 24 lines of code website/docusaurus.config.js x: 1 contributors (all time) y: 165 lines of code website/sidebars.js x: 1 contributors (all time) y: 15 lines of code website/src/css/custom.css x: 1 contributors (all time) y: 521 lines of code website/src/pages/index.js x: 1 contributors (all time) y: 18 lines of code website/src/theme/DocSidebar/index.js x: 1 contributors (all time) y: 9 lines of code website/src/theme/Headline/styles.module.css x: 1 contributors (all time) y: 21 lines of code website/src/theme/PythonClass/index.js x: 1 contributors (all time) y: 29 lines of code website/src/theme/PythonMethod/index.js x: 1 contributors (all time) y: 28 lines of code website/src/theme/PythonNavbar/index.js x: 1 contributors (all time) y: 32 lines of code
521.0
lines of code
  min: 1.0
  average: 56.21
  25th percentile: 18.0
  median: 26.0
  75th percentile: 64.0
  max: 521.0
0 4.0
contributors (all time)
min: 1.0 | average: 2.21 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 3.0 | max: 4.0

File Size vs. Commits (30 days): 1 points

flowtorch/bijectors/ops/spline.py x: 1 commits (30d) y: 82 lines of code
82.0
lines of code
  min: 82.0
  average: 82.0
  25th percentile: 82.0
  median: 82.0
  75th percentile: 82.0
  max: 82.0
0 1.0
commits (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (30 days): 1 points

flowtorch/bijectors/ops/spline.py x: 1 contributors (30d) y: 82 lines of code
82.0
lines of code
  min: 82.0
  average: 82.0
  25th percentile: 82.0
  median: 82.0
  75th percentile: 82.0
  max: 82.0
0 1.0
contributors (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Commits (90 days): 34 points

flowtorch/bijectors/ops/spline.py x: 2 commits (90d) y: 82 lines of code flowtorch/bijectors/affine.py x: 1 commits (90d) y: 21 lines of code flowtorch/bijectors/affine_autoregressive.py x: 1 commits (90d) y: 25 lines of code flowtorch/bijectors/affine_fixed.py x: 1 commits (90d) y: 42 lines of code flowtorch/bijectors/autoregressive.py x: 1 commits (90d) y: 60 lines of code flowtorch/bijectors/base.py x: 1 commits (90d) y: 156 lines of code flowtorch/bijectors/bijective_tensor.py x: 1 commits (90d) y: 123 lines of code flowtorch/bijectors/compose.py x: 1 commits (90d) y: 109 lines of code flowtorch/bijectors/elementwise.py x: 1 commits (90d) y: 19 lines of code flowtorch/bijectors/elu.py x: 1 commits (90d) y: 26 lines of code flowtorch/bijectors/exp.py x: 1 commits (90d) y: 23 lines of code flowtorch/bijectors/fixed.py x: 1 commits (90d) y: 17 lines of code flowtorch/bijectors/leaky_relu.py x: 1 commits (90d) y: 24 lines of code flowtorch/bijectors/ops/affine.py x: 1 commits (90d) y: 58 lines of code flowtorch/bijectors/permute.py x: 1 commits (90d) y: 45 lines of code flowtorch/bijectors/power.py x: 1 commits (90d) y: 40 lines of code flowtorch/bijectors/utils.py x: 1 commits (90d) y: 38 lines of code flowtorch/bijectors/volume_preserving.py x: 1 commits (90d) y: 14 lines of code flowtorch/distributions/flow.py x: 1 commits (90d) y: 88 lines of code flowtorch/parameters/dense_autoregressive.py x: 2 commits (90d) y: 124 lines of code setup.py x: 1 commits (90d) y: 74 lines of code flowtorch/docs.py x: 1 commits (90d) y: 162 lines of code flowtorch/lazy.py x: 1 commits (90d) y: 61 lines of code flowtorch/nn/__init__.py x: 1 commits (90d) y: 2 lines of code scripts/generate_api_docs.py x: 1 commits (90d) y: 195 lines of code scripts/generate_imports.py x: 1 commits (90d) y: 100 lines of code
195.0
lines of code
  min: 2.0
  average: 57.59
  25th percentile: 24.0
  median: 39.0
  75th percentile: 83.5
  max: 195.0
0 2.0
commits (90d)
min: 1.0 | average: 1.06 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

File Size vs. Contributors (90 days): 34 points

flowtorch/bijectors/ops/spline.py x: 2 contributors (90d) y: 82 lines of code flowtorch/bijectors/affine.py x: 1 contributors (90d) y: 21 lines of code flowtorch/bijectors/affine_autoregressive.py x: 1 contributors (90d) y: 25 lines of code flowtorch/bijectors/affine_fixed.py x: 1 contributors (90d) y: 42 lines of code flowtorch/bijectors/autoregressive.py x: 1 contributors (90d) y: 60 lines of code flowtorch/bijectors/base.py x: 1 contributors (90d) y: 156 lines of code flowtorch/bijectors/bijective_tensor.py x: 1 contributors (90d) y: 123 lines of code flowtorch/bijectors/compose.py x: 1 contributors (90d) y: 109 lines of code flowtorch/bijectors/elementwise.py x: 1 contributors (90d) y: 19 lines of code flowtorch/bijectors/elu.py x: 1 contributors (90d) y: 26 lines of code flowtorch/bijectors/exp.py x: 1 contributors (90d) y: 23 lines of code flowtorch/bijectors/fixed.py x: 1 contributors (90d) y: 17 lines of code flowtorch/bijectors/leaky_relu.py x: 1 contributors (90d) y: 24 lines of code flowtorch/bijectors/ops/affine.py x: 1 contributors (90d) y: 58 lines of code flowtorch/bijectors/permute.py x: 1 contributors (90d) y: 45 lines of code flowtorch/bijectors/power.py x: 1 contributors (90d) y: 40 lines of code flowtorch/bijectors/utils.py x: 1 contributors (90d) y: 38 lines of code flowtorch/bijectors/volume_preserving.py x: 1 contributors (90d) y: 14 lines of code flowtorch/distributions/flow.py x: 1 contributors (90d) y: 88 lines of code flowtorch/parameters/dense_autoregressive.py x: 2 contributors (90d) y: 124 lines of code setup.py x: 1 contributors (90d) y: 74 lines of code flowtorch/docs.py x: 1 contributors (90d) y: 162 lines of code flowtorch/lazy.py x: 1 contributors (90d) y: 61 lines of code flowtorch/nn/__init__.py x: 1 contributors (90d) y: 2 lines of code scripts/generate_api_docs.py x: 1 contributors (90d) y: 195 lines of code scripts/generate_imports.py x: 1 contributors (90d) y: 100 lines of code
195.0
lines of code
  min: 2.0
  average: 57.59
  25th percentile: 24.0
  median: 39.0
  75th percentile: 83.5
  max: 195.0
0 2.0
contributors (90d)
min: 1.0 | average: 1.06 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0