tensorflow / addons
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 177 files with 22,032 lines of code.
    • 5 very long files (6,175 lines of code)
    • 1 long files (737 lines of code)
    • 14 medium size files (4,141 lines of codeclsfd_ftr_w_mp_ins)
    • 45 small files (6,239 lines of code)
    • 112 very small files (4,740 lines of code)
28% | 3% | 18% | 28% | 21%
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
tpl80% | 0% | 6% | 8% | 4%
bzl90% | 0% | 7% | 0% | 2%
py8% | 5% | 20% | 38% | 27%
cc0% | 0% | 42% | 26% | 31%
h0% | 0% | 0% | 65% | 34%
Dockerfile0% | 0% | 0% | 59% | 40%
toml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
build_deps/toolchains82% | 0% | 10% | 4% | 2%
tensorflow_addons/seq2seq37% | 26% | 28% | 4% | 3%
tensorflow_addons/custom_ops0% | 0% | 36% | 31% | 31%
tensorflow_addons/layers0% | 0% | 24% | 45% | 30%
tensorflow_addons/optimizers0% | 0% | 20% | 60% | 19%
tensorflow_addons/text0% | 0% | 47% | 31% | 20%
build_deps/tf_dependency0% | 0% | 92% | 0% | 7%
tensorflow_addons/image0% | 0% | 0% | 73% | 26%
tensorflow_addons/metrics0% | 0% | 0% | 61% | 38%
tensorflow_addons/rnn0% | 0% | 0% | 69% | 30%
tensorflow_addons/losses0% | 0% | 0% | 29% | 70%
tensorflow_addons/callbacks0% | 0% | 0% | 65% | 34%
tools/docker0% | 0% | 0% | 59% | 40%
ROOT0% | 0% | 0% | 50% | 49%
tensorflow_addons/utils0% | 0% | 0% | 0% | 100%
tensorflow_addons0% | 0% | 0% | 0% | 100%
tensorflow_addons/activations0% | 0% | 0% | 0% | 100%
tensorflow_addons/testing0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cc_toolchain_config.bzl
in build_deps/toolchains/gcc7_manylinux2010-nvcc-cuda11
1411 -
tpl
cc_toolchain_config.bzl.tpl
in build_deps/toolchains/gpu/crosstool
1411 -
tpl
CROSSTOOL.tpl
in build_deps/toolchains/gpu/crosstool
1304 -
attention_wrapper.py
in tensorflow_addons/seq2seq
1035 60
cuda_configure.bzl
in build_deps/toolchains/gpu
1014 -
beam_search_decoder.py
in tensorflow_addons/seq2seq
737 33
sampler.py
in tensorflow_addons/seq2seq
498 50
find_cuda_config.py
in build_deps/toolchains/gpu
455 30
correlation_cost_op_gpu.cu.cc
in tensorflow_addons/custom_ops/layers/cc/kernels
353 7
normalizations.py
in tensorflow_addons/layers
334 27
resampler_ops.cc
in tensorflow_addons/custom_ops/image/cc/kernels
318 6
correlation_cost_op.cc
in tensorflow_addons/custom_ops/layers/cc/kernels
295 6
decoder.py
in tensorflow_addons/seq2seq
294 24
crf.py
in tensorflow_addons/text
291 29
embedding_bag_ops.cc
in tensorflow_addons/custom_ops/layers/cc/kernels
273 7
adaptive_pooling.py
in tensorflow_addons/layers
209 18
rectified_adam.py
in tensorflow_addons/optimizers
209 8
tf_configure.bzl
in build_deps/tf_dependency
205 -
tpl
BUILD.tpl
in build_deps/toolchains/gpu/cuda
204 -
adabelief.py
in tensorflow_addons/optimizers
203 7
connected_components.h
in tensorflow_addons/custom_ops/image/cc/kernels
200 17
skip_gram_ops.py
in tensorflow_addons/text
194 3
yogi.py
in tensorflow_addons/optimizers
193 6
resampler_ops_gpu.cu.cc
in tensorflow_addons/custom_ops/image/cc/kernels
191 4
noisy_dense.py
in tensorflow_addons/layers
187 9
triplet.py
in tensorflow_addons/losses
187 6
embedding_bag_backward_kernels.cu.cc
in tensorflow_addons/custom_ops/layers/cc/kernels
184 4
tqdm_progress_bar.py
in tensorflow_addons/callbacks
170 14
multihead_attention.py
in tensorflow_addons/layers
169 5
transform_ops.py
in tensorflow_addons/image
168 8
beam_search_ops.cc
in tensorflow_addons/custom_ops/seq2seq/cc/kernels
157 3
novograd.py
in tensorflow_addons/optimizers
156 7
weight_decay_optimizers.py
in tensorflow_addons/optimizers
155 16
tpl
msvc_wrapper_for_nvcc.py.tpl
in build_deps/toolchains/gpu/crosstool/windows
153 -
lamb.py
in tensorflow_addons/optimizers
153 8
crf.py
in tensorflow_addons/layers
145 12
tpl
BUILD.windows.tpl
in build_deps/toolchains/gpu/cuda
143 -
optical_flow.py
in tensorflow_addons/layers
142 7
filters.py
in tensorflow_addons/image
142 6
adjust_hsv_in_yiq_op.cc
in tensorflow_addons/custom_ops/image/cc/kernels
138 6
dense_image_warp.py
in tensorflow_addons/image
133 7
kendalls_tau.py
in tensorflow_addons/metrics
128 6
wrappers.py
in tensorflow_addons/layers
127 9
cyclical_learning_rate.py
in tensorflow_addons/optimizers
127 9
cohens_kappa.py
in tensorflow_addons/metrics
125 11
esn_cell.py
in tensorflow_addons/rnn
125 6
conditional_gradient.py
in tensorflow_addons/optimizers
124 8
loss.py
in tensorflow_addons/seq2seq
122 4
f_scores.py
in tensorflow_addons/metrics
121 9
nas_cell.py
in tensorflow_addons/rnn
121 6
Files With Most Units (Top 20)
File# lines# units
attention_wrapper.py
in tensorflow_addons/seq2seq
1035 60
sampler.py
in tensorflow_addons/seq2seq
498 50
beam_search_decoder.py
in tensorflow_addons/seq2seq
737 33
find_cuda_config.py
in build_deps/toolchains/gpu
455 30
crf.py
in tensorflow_addons/text
291 29
normalizations.py
in tensorflow_addons/layers
334 27
decoder.py
in tensorflow_addons/seq2seq
294 24
adaptive_pooling.py
in tensorflow_addons/layers
209 18
average_wrapper.py
in tensorflow_addons/optimizers
112 18
connected_components.h
in tensorflow_addons/custom_ops/image/cc/kernels
200 17
configure.py
in root
106 16
weight_decay_optimizers.py
in tensorflow_addons/optimizers
155 16
lookahead.py
in tensorflow_addons/optimizers
107 15
esn.py
in tensorflow_addons/layers
110 14
tqdm_progress_bar.py
in tensorflow_addons/callbacks
170 14
crf.py
in tensorflow_addons/layers
145 12
cohens_kappa.py
in tensorflow_addons/metrics
125 11
moving_average.py
in tensorflow_addons/optimizers
109 10
wrappers.py
in tensorflow_addons/layers
127 9
noisy_dense.py
in tensorflow_addons/layers
187 9
Files With Long Lines (Top 3)

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

File# lines# units# long lines
tf_configure.bzl
in build_deps/tf_dependency
205 - 2
crf.py
in tensorflow_addons/text
291 29 1
resource_loader.py
in tensorflow_addons/utils
80 6 1