tensorflow / decision-forests
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 62 files with 10,061 lines of code.
    • 2 very long files (2,404 lines of code)
    • 3 long files (2,206 lines of code)
    • 11 medium size files (3,738 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (682 lines of code)
    • 41 very small files (1,031 lines of code)
23% | 21% | 37% | 6% | 10%
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
py25% | 26% | 30% | 5% | 12%
cc29% | 22% | 36% | 10% | 1%
h0% | 0% | 75% | 0% | 24%
js0% | 0% | 100% | 0% | 0%
bzl0% | 0% | 0% | 0% | 100%
proto0% | 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
tensorflow_decision_forests/keras65% | 33% | 0% | 0% | 1%
tensorflow_decision_forests/tensorflow/ops31% | 24% | 30% | 11% | 2%
tensorflow_decision_forests/tensorflow0% | 83% | 0% | 0% | 16%
tensorflow_decision_forests/tensorflow/distribute0% | 0% | 78% | 0% | 21%
tensorflow_decision_forests/keras/wrapper0% | 0% | 84% | 0% | 15%
tensorflow_decision_forests/component/builder0% | 0% | 99% | 0% | <1%
tensorflow_decision_forests/component/inspector0% | 0% | 83% | 0% | 16%
tensorflow_decision_forests/component/model_plotter0% | 0% | 67% | 31% | <1%
tensorflow_decision_forests/component/py_tree0% | 0% | 39% | 19% | 41%
configure0% | 0% | 0% | 0% | 100%
configure/kokoro/ubuntu0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
tensorflow_decision_forests0% | 0% | 0% | 0% | 100%
tensorflow_decision_forests/component0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
core.py
in tensorflow_decision_forests/keras
1233 56
kernel.cc
in tensorflow_decision_forests/tensorflow/ops/inference
1171 40
kernel.cc
in tensorflow_decision_forests/tensorflow/ops/training
900 23
core.py
in tensorflow_decision_forests/tensorflow
674 24
wrappers_pre_generated.py
in tensorflow_decision_forests/keras
632 12
wrapper.cc
in tensorflow_decision_forests/keras/wrapper
475 6
builder.py
in tensorflow_decision_forests/component/builder
428 36
api.py
in tensorflow_decision_forests/tensorflow/ops/inference
420 29
tf_distribution.cc
in tensorflow_decision_forests/tensorflow/distribute
401 18
tf_distribution_kernel.cc
in tensorflow_decision_forests/tensorflow/distribute
387 21
inspector.py
in tensorflow_decision_forests/component/inspector
369 43
plotter.js
in tensorflow_decision_forests/component/model_plotter
282 11
features.h
in tensorflow_decision_forests/tensorflow/ops/training
277 24
condition.py
in tensorflow_decision_forests/component/py_tree
247 42
feature_on_file.h
in tensorflow_decision_forests/tensorflow/ops/training
239 8
feature_on_file.cc
in tensorflow_decision_forests/tensorflow/ops/training
213 15
op.cc
in tensorflow_decision_forests/tensorflow/ops/inference
170 5
kernel_on_file.cc
in tensorflow_decision_forests/tensorflow/ops/training
144 2
model_plotter.py
in tensorflow_decision_forests/component/model_plotter
133 7
node.py
in tensorflow_decision_forests/component/py_tree
126 22
op.cc
in tensorflow_decision_forests/tensorflow/ops/training
109 -
tf_distribution.h
in tensorflow_decision_forests/tensorflow/distribute
97 1
value.py
in tensorflow_decision_forests/component/py_tree
90 13
objective.py
in tensorflow_decision_forests/component/py_tree
84 18
blob_sequence.py
in tensorflow_decision_forests/component/inspector
71 13
wrapper.bzl
in tensorflow_decision_forests/keras/wrapper
68 -
setup.py
in configure
64 3
tf_logging.py
in tensorflow_decision_forests/tensorflow
61 5
dataspec.py
in tensorflow_decision_forests/component/py_tree
58 7
utils.bzl
in tensorflow_decision_forests/tensorflow
49 -
kernel.h
in tensorflow_decision_forests/tensorflow/ops/training
46 4
proto
tf_distribution.proto
in tensorflow_decision_forests/tensorflow/distribute
43 -
cfg
presubmit.cfg
in configure/kokoro/ubuntu
30 -
build_docs.py
in tools
27 1
__init__.py
in tensorflow_decision_forests/keras
27 1
check_version.py
in tensorflow_decision_forests/tensorflow
26 2
tf_distribution_op.cc
in tensorflow_decision_forests/tensorflow/distribute
24 -
tree.py
in tensorflow_decision_forests/component/py_tree
22 4
tf_distribution_py_worker.py
in tensorflow_decision_forests/tensorflow/distribute
20 1
wrapper.h
in tensorflow_decision_forests/keras/wrapper
17 -
op_dynamic.py
in tensorflow_decision_forests/tensorflow/ops/inference
14 -
op_dynamic.py
in tensorflow_decision_forests/tensorflow/ops/training
14 -
tf_distribution_common.cc
in tensorflow_decision_forests/tensorflow/distribute
12 1
__init__.py
in tensorflow_decision_forests
10 -
tf_distribution_common.h
in tensorflow_decision_forests/tensorflow/distribute
9 -
op_dynamic.py
in tensorflow_decision_forests/tensorflow/distribute
9 -
cfg
release.cfg
in configure/kokoro/ubuntu
8 -
in
MANIFEST.in
in configure
8 -
__init__.py
in tensorflow_decision_forests/component/py_tree
6 -
wrapper_main.cc
in tensorflow_decision_forests/keras/wrapper
5 1
Files With Most Units (Top 20)
File# lines# units
core.py
in tensorflow_decision_forests/keras
1233 56
inspector.py
in tensorflow_decision_forests/component/inspector
369 43
condition.py
in tensorflow_decision_forests/component/py_tree
247 42
kernel.cc
in tensorflow_decision_forests/tensorflow/ops/inference
1171 40
builder.py
in tensorflow_decision_forests/component/builder
428 36
api.py
in tensorflow_decision_forests/tensorflow/ops/inference
420 29
core.py
in tensorflow_decision_forests/tensorflow
674 24
features.h
in tensorflow_decision_forests/tensorflow/ops/training
277 24
kernel.cc
in tensorflow_decision_forests/tensorflow/ops/training
900 23
node.py
in tensorflow_decision_forests/component/py_tree
126 22
tf_distribution_kernel.cc
in tensorflow_decision_forests/tensorflow/distribute
387 21
objective.py
in tensorflow_decision_forests/component/py_tree
84 18
tf_distribution.cc
in tensorflow_decision_forests/tensorflow/distribute
401 18
feature_on_file.cc
in tensorflow_decision_forests/tensorflow/ops/training
213 15
blob_sequence.py
in tensorflow_decision_forests/component/inspector
71 13
value.py
in tensorflow_decision_forests/component/py_tree
90 13
wrappers_pre_generated.py
in tensorflow_decision_forests/keras
632 12
plotter.js
in tensorflow_decision_forests/component/model_plotter
282 11
feature_on_file.h
in tensorflow_decision_forests/tensorflow/ops/training
239 8
model_plotter.py
in tensorflow_decision_forests/component/model_plotter
133 7
Files With Long Lines (Top 4)

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

File# lines# units# long lines
wrappers_pre_generated.py
in tensorflow_decision_forests/keras
632 12 2
core.py
in tensorflow_decision_forests/keras
1233 56 1
wrapper.bzl
in tensorflow_decision_forests/keras/wrapper
68 - 1
utils.bzl
in tensorflow_decision_forests/tensorflow
49 - 1