awslabs / keras-apache-mxnet
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 106 files with 25,279 lines of code.
    • 6 very long files (10,778 lines of code)
    • 7 long files (5,203 lines of code)
    • 16 medium size files (5,496 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,503 lines of code)
    • 67 very small files (2,299 lines of code)
42% | 20% | 21% | 5% | 9%
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
py42% | 20% | 21% | 5% | 8%
yml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
keras/backend98% | 0% | 0% | 0% | 1%
keras/layers44% | 11% | 35% | 5% | 3%
keras/engine0% | 70% | 23% | 3% | 2%
keras0% | 40% | 33% | 7% | 18%
keras/legacy0% | 56% | 43% | 0% | <1%
keras/utils0% | 0% | 61% | 20% | 18%
benchmark/scripts0% | 0% | 24% | 28% | 46%
keras/preprocessing0% | 0% | 0% | 86% | 13%
keras/wrappers0% | 0% | 0% | 99% | <1%
keras/datasets0% | 0% | 0% | 0% | 100%
keras/applications0% | 0% | 0% | 0% | 100%
keras_mxnet_ci0% | 0% | 0% | 0% | 100%
benchmark/sparse0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
benchmark0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
mxnet_backend.py
in keras/backend
2794 230
cntk_backend.py
in keras/backend
1894 174
theano_backend.py
in keras/backend
1731 167
tensorflow_backend.py
in keras/backend
1642 163
recurrent.py
in keras/layers
1498 103
convolutional.py
in keras/layers
1219 63
training.py
in keras/engine
869 17
network.py
in keras/engine
842 35
callbacks.py
in keras
840 63
saving.py
in keras/engine
709 18
convolutional_recurrent.py
in keras/layers
689 38
base_layer.py
in keras/engine
667 48
interfaces.py
in keras/legacy
587 15
optimizers.py
in keras
469 37
layers.py
in keras/legacy
455 25
core.py
in keras/layers
434 51
wrappers.py
in keras/layers
428 41
training_generator.py
in keras/engine
406 3
cudnn_recurrent.py
in keras/layers
386 19
merge.py
in keras/layers
361 34
training_utils.py
in keras/engine
358 14
data_utils.py
in keras/utils
339 31
pooling.py
in keras/layers
325 47
generic_utils.py
in keras/utils
316 19
training_arrays.py
in keras/engine
292 3
initializers.py
in keras
236 36
io_utils.py
in keras/utils
236 19
local.py
in keras/layers
231 10
benchmark_resnet.py
in benchmark/scripts
224 2
layer_utils.py
in keras/utils
185 5
image.py
in keras/preprocessing
184 6
normalization.py
in keras/layers
180 5
sequential.py
in keras/engine
159 10
models.py
in keras
153 3
advanced_activations.py
in keras/layers
149 25
lstm_text_generation.py
in benchmark/scripts/models
136 3
resnet.py
in benchmark/scripts/models
128 4
scikit_learn.py
in keras/wrappers
121 12
multi_gpu_utils.py
in keras/utils
108 3
input_layer.py
in keras/engine
96 3
embeddings.py
in keras/layers
96 6
conv_utils.py
in keras/utils
93 6
__init__.py
in keras/backend
91 1
vis_utils.py
in keras/utils
86 3
constraints.py
in keras
81 15
losses.py
in keras
80 18
lstm_synthetic.py
in benchmark/scripts/models
80 3
noise.py
in keras/layers
77 13
resnet50_benchmark.py
in benchmark/scripts/models
72 3
activations.py
in keras
69 14
Files With Most Units (Top 20)
File# lines# units
mxnet_backend.py
in keras/backend
2794 230
cntk_backend.py
in keras/backend
1894 174
theano_backend.py
in keras/backend
1731 167
tensorflow_backend.py
in keras/backend
1642 163
recurrent.py
in keras/layers
1498 103
callbacks.py
in keras
840 63
convolutional.py
in keras/layers
1219 63
core.py
in keras/layers
434 51
base_layer.py
in keras/engine
667 48
pooling.py
in keras/layers
325 47
wrappers.py
in keras/layers
428 41
convolutional_recurrent.py
in keras/layers
689 38
optimizers.py
in keras
469 37
initializers.py
in keras
236 36
network.py
in keras/engine
842 35
merge.py
in keras/layers
361 34
data_utils.py
in keras/utils
339 31
layers.py
in keras/legacy
455 25
advanced_activations.py
in keras/layers
149 25
io_utils.py
in keras/utils
236 19
Files With Long Lines (Top 4)

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

File# lines# units# long lines
lstm_synthetic.py
in benchmark/scripts/models
80 3 1
resnet50_benchmark.py
in benchmark/scripts/models
72 3 1
lstm_text_generation.py
in benchmark/scripts/models
136 3 1
benchmark_resnet.py
in benchmark/scripts
224 2 1