tensorflow / probability
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 747 files with 222,903 lines of code.
    • 9 very long files (114,402 lines of code)
    • 25 long files (17,241 lines of code)
    • 157 medium size files (47,212 lines of codeclsfd_ftr_w_mp_ins)
    • 203 small files (28,925 lines of code)
    • 353 very small files (15,123 lines of code)
51% | 7% | 21% | 12% | 6%
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
py51% | 7% | 21% | 12% | 6%
bzl0% | 0% | 100% | 0% | 0%
yaml0% | 0% | 0% | 82% | 17%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
spinoffs/inference_gym93% | 0% | 4% | 1% | 1%
tensorflow_probability/python2% | 16% | 41% | 27% | 12%
spinoffs/fun_mc48% | 17% | 11% | 19% | 3%
spinoffs/oryx0% | 23% | 27% | 25% | 23%
discussion/turnkey_inference_candidate0% | 0% | 99% | 0% | <1%
discussion/pathfinder0% | 0% | 100% | 0% | 0%
tensorflow_probability/substrates0% | 0% | 81% | 0% | 18%
discussion/neutra0% | 0% | 99% | 0% | <1%
tensorflow_probability/g3doc0% | 0% | 0% | 82% | 17%
ROOT0% | 0% | 0% | 0% | 100%
tensorflow_probability/tools0% | 0% | 0% | 0% | 100%
testing0% | 0% | 0% | 0% | 100%
tensorflow_probability0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
synthetic_item_response_theory.py
in spinoffs/inference_gym/inference_gym/internal/datasets
90044 -
stochastic_volatility_sp500.py
in spinoffs/inference_gym/inference_gym/targets/ground_truth
7583 -
stochastic_volatility_log_sp500.py
in spinoffs/inference_gym/inference_gym/targets/ground_truth
7583 -
sp500_closing_prices.py
in spinoffs/inference_gym/inference_gym/internal/datasets
2521 -
synthetic_plasma_spectroscopy.py
in spinoffs/inference_gym/inference_gym/internal/datasets
1706 -
synthetic_item_response_theory.py
in spinoffs/inference_gym/inference_gym/targets/ground_truth
1523 -
fun_mc_lib.py
in spinoffs/fun_mc/fun_mc
1428 75
linear_gaussian_ssm.py
in tensorflow_probability/python/distributions
1010 57
special.py
in tensorflow_probability/python/math
1004 71
joint_distribution.py
in tensorflow_probability/python/distributions
921 77
bijector.py
in tensorflow_probability/python/bijectors
914 77
hypothesis_testlib.py
in tensorflow_probability/python/distributions
910 34
distribution.py
in tensorflow_probability/python/distributions
879 96
preconditioned_nuts.py
in tensorflow_probability/python/experimental/mcmc
826 29
nuts.py
in tensorflow_probability/python/mcmc
820 28
distribution_layer.py
in tensorflow_probability/python/layers
806 62
snaper_hmc.py
in tensorflow_probability/python/experimental/mcmc
784 43
harvest.py
in spinoffs/oryx/oryx/core/interpreters
735 57
hidden_markov_model.py
in tensorflow_probability/python/distributions
717 30
numpy_math.py
in tensorflow_probability/python/internal/backend/numpy
717 29
convolution_util.py
in tensorflow_probability/python/experimental/nn/util
707 17
bessel.py
in tensorflow_probability/python/math
692 41
distribution_util.py
in tensorflow_probability/python/internal
684 46
conv_variational.py
in tensorflow_probability/python/layers
652 19
instructions.py
in tensorflow_probability/python/experimental/auto_batching
599 84
linear_operator.py
in tensorflow_probability/python/internal/backend/numpy/gen
599 86
bdf.py
in tensorflow_probability/python/math/ode
582 11
hypothesis_testlib.py
in tensorflow_probability/python/math/psd_kernels
561 21
unzip.py
in spinoffs/oryx/oryx/core/interpreters
543 43
hypothesis_testlib.py
in tensorflow_probability/python/internal
538 42
gradient_based_trajectory_length_adaptation.py
in tensorflow_probability/python/experimental/mcmc
536 39
deferred_tensor.py
in tensorflow_probability/python/util
515 58
prefab.py
in spinoffs/fun_mc/fun_mc
502 19
windowed_sampling.py
in tensorflow_probability/python/experimental/mcmc
502 25
masked_autoregressive.py
in tensorflow_probability/python/bijectors
496 23
synthetic_plasma_spectroscopy_with_bump.py
in spinoffs/inference_gym/inference_gym/internal/datasets
486 -
replica_exchange_mc.py
in tensorflow_probability/python/mcmc
486 27
ops.py
in tensorflow_probability/python/internal/backend/numpy
480 46
gamma.py
in tensorflow_probability/python/distributions
479 39
statistical_testing.py
in tensorflow_probability/python/distributions/internal
471 27
linalg.py
in tensorflow_probability/python/math
468 18
composition.py
in tensorflow_probability/python/bijectors
468 37
tensor_shape.py
in tensorflow_probability/python/internal/backend/numpy/gen
464 74
langevin.py
in tensorflow_probability/python/mcmc
451 31
nelder_mead.py
in tensorflow_probability/python/optimizer
450 15
gibbs_sampler.py
in tensorflow_probability/python/experimental/sts_gibbs
441 16
dormand_prince.py
in tensorflow_probability/python/math/ode
433 15
pixel_cnn.py
in tensorflow_probability/python/distributions
425 13
variational_gaussian_process.py
in tensorflow_probability/python/distributions
419 21
batch_reshape.py
in tensorflow_probability/python/distributions
414 42
Files With Most Units (Top 20)
File# lines# units
distribution.py
in tensorflow_probability/python/distributions
879 96
linear_operator.py
in tensorflow_probability/python/internal/backend/numpy/gen
599 86
instructions.py
in tensorflow_probability/python/experimental/auto_batching
599 84
joint_distribution.py
in tensorflow_probability/python/distributions
921 77
bijector.py
in tensorflow_probability/python/bijectors
914 77
fun_mc_lib.py
in spinoffs/fun_mc/fun_mc
1428 75
jax_rewrite.py
in spinoffs/oryx/oryx/experimental/matching
348 75
tensor_shape.py
in tensorflow_probability/python/internal/backend/numpy/gen
464 74
special.py
in tensorflow_probability/python/math
1004 71
distribution_layer.py
in tensorflow_probability/python/layers
806 62
deferred_tensor.py
in tensorflow_probability/python/util
515 58
harvest.py
in spinoffs/oryx/oryx/core/interpreters
735 57
linear_gaussian_ssm.py
in tensorflow_probability/python/distributions
1010 57
positive_semidefinite_kernel.py
in tensorflow_probability/python/math/psd_kernels
378 54
family.py
in tensorflow_probability/python/glm
276 50
distribution_util.py
in tensorflow_probability/python/internal
684 46
ops.py
in tensorflow_probability/python/internal/backend/numpy
480 46
unzip.py
in spinoffs/oryx/oryx/core/interpreters
543 43
markov_chain.py
in tensorflow_probability/python/distributions
368 43
snaper_hmc.py
in tensorflow_probability/python/experimental/mcmc
784 43
Files With Long Lines (Top 20)

There are 20 files with lines longer than 120 characters. In total, there are 48 long lines.

File# lines# units# long lines
__init__.py
in tensorflow_probability/python/distributions
263 - 8
__init__.py
in tensorflow_probability/python/experimental/mcmc
120 - 7
__init__.py
in tensorflow_probability/python/experimental/vi
28 - 5
__init__.py
in tensorflow_probability/python/experimental/vi/util
14 - 4
__init__.py
in tensorflow_probability/python/experimental/nn/util
54 - 3
__init__.py
in tensorflow_probability/python/experimental/nn
42 - 3
__init__.py
in tensorflow_probability/python/sts/components
50 - 3
__init__.py
in tensorflow_probability/python/experimental/sequential
22 - 2
linear_operator.py
in tensorflow_probability/python/internal/backend/numpy/gen
599 86 2
data.py
in spinoffs/inference_gym/inference_gym/internal
320 16 1
setup.py
in spinoffs/inference_gym
44 - 1
_index.yaml
in tensorflow_probability/g3doc
101 - 1
__init__.py
in tensorflow_probability/python/optimizer
32 - 1
__init__.py
in tensorflow_probability/python/optimizer/convergence_criteria
10 - 1
__init__.py
in tensorflow_probability/python/experimental/distributions
13 - 1
__init__.py
in tensorflow_probability/python/experimental/bijectors
16 - 1
__init__.py
in tensorflow_probability/python/experimental/marginalize
6 - 1
linear_operator_kronecker.py
in tensorflow_probability/python/internal/backend/numpy/gen
301 18 1
linalg.py
in tensorflow_probability/python/internal/backend/numpy
80 1 1
autoregressive_integrated_moving_average.py
in tensorflow_probability/python/sts/components
228 10 1