tensorflow / tfjs-website
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 38 files with 9,450 lines of code.
    • 1 very long files (6,599 lines of code)
    • 1 long files (547 lines of code)
    • 2 medium size files (646 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (826 lines of code)
    • 28 very small files (832 lines of code)
69% | 5% | 6% | 8% | 8%
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
css100% | 0% | 0% | 0% | 0%
ts0% | 33% | 22% | 19% | 23%
scss0% | 0% | 71% | 28% | 0%
js0% | 0% | 0% | 75% | 24%
hbs0% | 0% | 0% | 29% | 70%
yml0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
themes/tfjs/source/css94% | 0% | 3% | 1% | 0%
build-scripts/doc-gen0% | 44% | 29% | 14% | 10%
themes/tfjs/helper0% | 0% | 0% | 100% | 0%
build-scripts0% | 0% | 0% | 36% | 63%
themes/tfjs/source/js0% | 0% | 0% | 65% | 34%
themes/tfjs/layout0% | 0% | 0% | 74% | 25%
themes/tfjs/layout/partials0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
source/debug0% | 0% | 0% | 0% | 100%
test-scripts/cloud_funcs/trigger_nightly0% | 0% | 0% | 0% | 100%
themes/tfjs0% | 0% | 0% | 0% | 100%
Longest Files (Top 38)
File# lines# units
material-components-web.css
in themes/tfjs/source/css
6599 -
util.ts
in build-scripts/doc-gen
547 28
parser.ts
in build-scripts/doc-gen
369 7
api.scss
in themes/tfjs/source/css
277 -
merge-api.ts
in build-scripts/doc-gen
182 -
index.js
in themes/tfjs/helper
156 24
build_api_helpers.ts
in build-scripts
141 7
codeSnippets.js
in themes/tfjs/source/js
122 7
hbs
layout.hbs
in themes/tfjs/layout
116 -
layout.scss
in themes/tfjs/source/css
109 -
hbs
header.hbs
in themes/tfjs/layout/partials
70 -
view.ts
in build-scripts/doc-gen
63 -
make-api.ts
in build-scripts/doc-gen
59 -
api.js
in themes/tfjs/source/js
53 1
build-api.ts
in build-scripts
52 -
hbs
apiToc.hbs
in themes/tfjs/layout/partials
49 -
build-task-api.ts
in build-scripts
44 -
_config.yml
in root
43 -
hbs
apiFunction.hbs
in themes/tfjs/layout/partials
36 -
build-node-api.ts
in build-scripts
35 -
build-tflite-api.ts
in build-scripts
35 -
build-rn-api.ts
in build-scripts
35 -
build-vis-api.ts
in build-scripts
35 -
index.html
in source/debug
34 -
hbs
apiParamList.hbs
in themes/tfjs/layout/partials
31 -
hbs
apiClass.hbs
in themes/tfjs/layout/partials
28 -
hbs
api.hbs
in themes/tfjs/layout
27 -
index.js
in test-scripts/cloud_funcs/trigger_nightly
13 -
devserver.js
in root
13 -
cloudbuild.yml
in root
13 -
layout.js
in themes/tfjs/source/js
12 1
skeleton.ts
in build-scripts/doc-gen
11 -
hbs
apiSubhead.hbs
in themes/tfjs/layout/partials
10 -
hbs
page.hbs
in themes/tfjs/layout
8 -
hbs
apiHeading.hbs
in themes/tfjs/layout/partials
8 -
generate-site.ts
in build-scripts
8 -
hbs
index.hbs
in themes/tfjs/layout
5 -
_config.yml
in themes/tfjs
2 -
Files With Most Units (Top 7)
File# lines# units
util.ts
in build-scripts/doc-gen
547 28
index.js
in themes/tfjs/helper
156 24
codeSnippets.js
in themes/tfjs/source/js
122 7
build_api_helpers.ts
in build-scripts
141 7
parser.ts
in build-scripts/doc-gen
369 7
layout.js
in themes/tfjs/source/js
12 1
api.js
in themes/tfjs/source/js
53 1
Files With Long Lines (Top 2)

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

File# lines# units# long lines
material-components-web.css
in themes/tfjs/source/css
6599 - 214
hbs
header.hbs
in themes/tfjs/layout/partials
70 - 2