tensorflow / tfjs-examples
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 298 files with 43,318 lines of code.
    • 7 very long files (19,423 lines of code)
    • 1 long files (953 lines of code)
    • 15 medium size files (4,226 lines of codeclsfd_ftr_w_mp_ins)
    • 72 small files (10,250 lines of code)
    • 203 very small files (8,466 lines of code)
44% | 2% | 9% | 23% | 19%
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
css92% | 0% | 4% | 0% | 2%
scss86% | 0% | 6% | 3% | 3%
js22% | 0% | 9% | 40% | 27%
ts56% | 23% | 9% | 0% | 9%
html0% | 0% | 22% | 41% | 35%
tsx0% | 0% | 73% | 0% | 26%
py0% | 0% | 0% | 81% | 18%
java0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
bzl0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
shared99% | 0% | 0% | <1% | 0%
angular-predictive-prefetching75% | 0% | 0% | 9% | 14%
visualize-convnet63% | 0% | 0% | 9% | 27%
quantization53% | 0% | 0% | 22% | 24%
electron65% | 0% | 0% | 25% | 8%
mobilenet85% | 0% | 0% | 9% | 4%
interactive-visualizers0% | 47% | 35% | 0% | 16%
snake-dqn0% | 0% | 47% | 34% | 17%
translation0% | 0% | 45% | 40% | 14%
webcam-transfer-learning0% | 0% | 45% | 39% | 15%
lstm-text-generation0% | 0% | 32% | 52% | 14%
cart-pole0% | 0% | 41% | 48% | 9%
react-native0% | 0% | 21% | 0% | 78%
addition-rnn0% | 0% | 70% | 29% | 0%
mnist-acgan0% | 0% | 32% | 56% | 11%
data-generator0% | 0% | 42% | 48% | 9%
jena-weather0% | 0% | 27% | 46% | 25%
iris0% | 0% | 22% | 65% | 11%
iris-fitDataset0% | 0% | 32% | 47% | 19%
date-conversion-attention0% | 0% | 0% | 88% | 11%
intent-classifier0% | 0% | 0% | 49% | 50%
mnist-transfer-cnn0% | 0% | 0% | 72% | 27%
sentiment0% | 0% | 0% | 58% | 41%
simple-object-detection0% | 0% | 0% | 86% | 13%
addition-rnn-webworker0% | 0% | 0% | 82% | 17%
data-csv0% | 0% | 0% | 81% | 18%
fashion-mnist-vae0% | 0% | 0% | 43% | 56%
gpu-pipeline0% | 0% | 0% | 53% | 46%
polynomial-regression0% | 0% | 0% | 74% | 25%
mnist-node0% | 0% | 0% | 68% | 31%
mnist0% | 0% | 0% | 30% | 69%
boston-housing0% | 0% | 0% | 34% | 65%
chrome-extension0% | 0% | 0% | 63% | 36%
website-phishing0% | 0% | 0% | 32% | 67%
baseball-node0% | 0% | 0% | 23% | 76%
tsne-mnist-canvas0% | 0% | 0% | 36% | 63%
mnist-core0% | 0% | 0% | 0% | 100%
polynomial-regression-core0% | 0% | 0% | 0% | 100%
firebase-object-detection-node0% | 0% | 0% | 0% | 100%
custom-layer0% | 0% | 0% | 0% | 100%
abalone-node0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
getting-started0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
tfjs-examples.css
in shared
6569 -
_material-components-web.scss
in shared
6493 -
server.ts
in angular-predictive-prefetching/server
2268 -
imagenet_classes.js
in visualize-convnet
1024 -
imagenet_classes.js
in electron
1023 -
imagenet_classes.js
in mobilenet
1023 -
imagenet_classes.js
in quantization
1023 -
app.component.ts
in interactive-visualizers/src/app
953 11
app.component.scss
in interactive-visualizers/src/app
461 -
translation.ts
in translation
385 4
styles.css
in webcam-transfer-learning
320 -
ui.js
in lstm-text-generation
312 16
ui.js
in cart-pole
290 9
App.tsx
in react-native/pose-detection
285 2
index.js
in addition-rnn
282 9
gan.js
in mnist-acgan
267 7
index.html
in data-generator
262 -
app.component.html
in interactive-visualizers/src/app
250 -
data.js
in jena-weather
242 6
train.js
in snake-dqn
231 7
snake_game.js
in snake-dqn
231 11
index.html
in iris
204 -
index.html
in iris-fitDataset
204 -
train_tagger.js
in intent-classifier/training
200 3
translation.py
in translation/python
199 4
data_mnist.js
in quantization
199 11
train.js
in sentiment
196 3
index.html
in mnist-transfer-cnn
195 -
worker.js
in addition-rnn-webworker
193 8
index.js
in polynomial-regression
191 10
mnist_transfer_cnn.py
in mnist-transfer-cnn/python
186 6
prefetch.service-worker.js
in angular-predictive-prefetching/client/src
182 -
train.js
in date-conversion-attention
181 4
index.js
in cart-pole
180 17
date_format.js
in date-conversion-attention
176 24
iris_data.py
in iris/python
174 2
index.html
in jena-weather
174 -
index.html
in webcam-transfer-learning
174 -
synthetic_images.js
in simple-object-detection
171 7
ui.js
in iris
167 11
ui.js
in iris-fitDataset
167 11
tagger.js
in intent-classifier/app
165 13
index.html
in cart-pole
164 -
index.js
in mnist-acgan
161 7
index.js
in data-generator
161 10
web-data.js
in mnist-acgan
158 5
tagger.scss
in intent-classifier/app
157 -
renderer.js
in electron
152 8
data.js
in sentiment
151 7
index.html
in date-conversion-attention
151 -
Files With Most Units (Top 20)
File# lines# units
date_format.js
in date-conversion-attention
176 24
ui.js
in data-generator
138 19
index.js
in cart-pole
180 17
gl-class.js
in gpu-pipeline
120 16
ui.js
in lstm-text-generation
312 16
data.js
in lstm-text-generation
133 14
index.js
in lstm-text-generation
102 14
tagger.js
in intent-classifier/app
165 13
ui.js
in mnist-transfer-cnn
94 13
ui.js
in iris
167 11
ui.js
in iris-fitDataset
167 11
app.component.ts
in interactive-visualizers/src/app
953 11
data_mnist.js
in quantization
199 11
snake_game.js
in snake-dqn
231 11
ui.js
in webcam-transfer-learning
85 10
index.js
in data-generator
161 10
index.js
in polynomial-regression
191 10
image_classifier.js
in electron
143 9
data.js
in mnist-node
142 9
ui-util.js
in gpu-pipeline
72 9
Files With Long Lines (Top 20)

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

File# lines# units# long lines
_material-components-web.scss
in shared
6493 - 201
tfjs-examples.css
in shared
6569 - 195
logo.component.html
in angular-predictive-prefetching/client/src/app/navigation/logo
12 - 5
app.component.html
in interactive-visualizers/src/app
250 - 5
AppDelegate.m
in react-native/pose-detection/ios/posenet
88 1 5
AppDelegate.m
in react-native/image-classification/expo/ios/posenet
87 1 5
404.html
in angular-predictive-prefetching/client/public
32 - 4
index.html
in angular-predictive-prefetching/client/public
79 - 3
environment.ts
in interactive-visualizers/projects/playground/src/environments
25 - 3
environment.prod.ts
in interactive-visualizers/projects/playground/src/environments
24 - 3
app.component.ts
in interactive-visualizers/src/app
953 11 3
ui.js
in sentiment
51 8 2
index.html
in mobilenet
57 - 2
index.html
in snake-dqn
67 - 2
index.html
in sentiment
74 - 1
merch-card.component.ts
in angular-predictive-prefetching/client/src/app/merch-display/merch-card
14 1 1
index.js
in jena-weather
122 4 1
index.html
in lstm-text-generation
139 - 1
index.js
in lstm-text-generation
102 14 1
index.html
in addition-rnn
116 - 1