tensorflow / swift-models
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 211 files with 28,681 lines of code.
    • 3 very long files (7,826 lines of code)
    • 4 long files (2,415 lines of code)
    • 16 medium size files (4,334 lines of codeclsfd_ftr_w_mp_ins)
    • 61 small files (8,544 lines of code)
    • 127 very small files (5,562 lines of code)
27% | 8% | 15% | 29% | 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
h100% | 0% | 0% | 0% | 0%
swift4% | 11% | 19% | 39% | 25%
proto0% | 0% | 100% | 0% | 0%
cmake0% | 0% | 0% | 77% | 22%
py0% | 0% | 0% | 0% | 100%
c0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Support77% | 6% | 0% | 11% | 4%
Models16% | 11% | 34% | 28% | 9%
TensorBoard0% | 34% | 39% | 7% | 18%
Datasets0% | 20% | 8% | 47% | 23%
Checkpoints0% | 0% | 50% | 27% | 22%
MiniGo0% | 0% | 19% | 35% | 45%
TrainingLoop0% | 0% | 28% | 49% | 22%
Gym0% | 0% | 0% | 56% | 43%
pix2pix0% | 0% | 0% | 85% | 15%
PersonLab0% | 0% | 0% | 67% | 32%
SwiftModelsBenchmarksCore0% | 0% | 0% | 30% | 69%
CycleGAN0% | 0% | 0% | 48% | 51%
ROOT0% | 0% | 0% | 100% | 0%
Catch0% | 0% | 0% | 100% | 0%
GAN0% | 0% | 0% | 100% | 0%
cmake0% | 0% | 0% | 77% | 22%
DCGAN0% | 0% | 0% | 100% | 0%
ImageLoader0% | 0% | 0% | 100% | 0%
Autoencoder0% | 0% | 0% | 0% | 100%
FastStyleTransfer0% | 0% | 0% | 0% | 100%
SwiftModelsBenchmarks0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
stb_image.h
in Support/STBImage/include
5616 155
stb_image_write.h
in Support/STBImage/include
1198 42
SentencePieceModel.pb.swift
in Models/Text/SentencePiece
1012 18
BERT.swift
in Models/Text/BERT
687 -
AnyLayerTangentVector.swift
in Support
602 40
summary.pb.swift
in TensorBoard/Protobufs
590 17
COCO.swift
in Datasets/COCO
536 10
event.pb.swift
in TensorBoard/Protobufs
453 12
MobileNetV3.swift
in Models/ImageClassification
414 -
TransformerLM.swift
in Models/Text/GPT2
293 22
BoardState.swift
in MiniGo/GameLib
282 4
BigTransfer.swift
in Models/ImageClassification
279 2
EfficientNet.swift
in Models/ImageClassification
275 4
types.pb.swift
in Checkpoints/Protobufs
268 2
tensor_bundle.pb.swift
in Checkpoints/Protobufs
266 8
CheckpointReader.swift
in Checkpoints
264 4
types.pb.swift
in TensorBoard/Protobufs
238 2
TextUnsupervised.swift
in Datasets/TextUnsupervised
236 -
proto
SentencePieceModel.proto
in Models/Text/SentencePiece
229 -
TrainingLoop.swift
in TrainingLoop
214 -
Lattice.swift
in Models/Text/WordSeg
209 4
TransformerBERT.swift
in Models/Text/BERT
208 -
Model.swift
in Models/Text/WordSeg
206 4
LibertyTracker.swift
in MiniGo/GameLib
199 3
BytePairEncoder.swift
in Support/Text
198 -
MobileNetV1.swift
in Models/ImageClassification
194 -
GIF.swift
in Support
191 11
CheckpointIndexWriter.swift
in Checkpoints
187 10
MobileNetV2.swift
in Models/ImageClassification
186 -
Image.swift
in Support
179 4
Xception.swift
in Models/ImageClassification
178 -
Package.swift
in root
178 -
ShuffleNetV2.swift
in Models/ImageClassification
177 -
GoModel.swift
in MiniGo/Models
176 5
AnyLayer.swift
in Support
169 9
Metrics.swift
in TrainingLoop
168 3
Backbone.swift
in PersonLab
167 -
main.swift
in Catch
166 11
ImageNet.swift
in Datasets/Imagenette
164 7
CheckpointReader.swift
in pix2pix
161 11
SqueezeNet.swift
in Models/ImageClassification
160 -
Layers.swift
in pix2pix
158 -
Decoder.swift
in PersonLab
156 9
Imagenette.swift
in Datasets/Imagenette
154 8
Tokenization.swift
in Support/Text
151 1
ResNetV2.swift
in Models/ImageClassification
147 -
LayerSuite.swift
in SwiftModelsBenchmarksCore/Layers
140 4
Dataset.swift
in pix2pix
140 -
ResNet.swift
in Models/ImageClassification
140 -
main.swift
in Gym/Blackjack
137 9
Files With Most Units (Top 20)
File# lines# units
stb_image.h
in Support/STBImage/include
5616 155
stb_image_write.h
in Support/STBImage/include
1198 42
AnyLayerTangentVector.swift
in Support
602 40
TransformerLM.swift
in Models/Text/GPT2
293 22
SentencePieceModel.pb.swift
in Models/Text/SentencePiece
1012 18
summary.pb.swift
in TensorBoard/Protobufs
590 17
event.pb.swift
in TensorBoard/Protobufs
453 12
CheckpointReader.swift
in pix2pix
161 11
GIF.swift
in Support
191 11
main.swift
in Catch
166 11
COCO.swift
in Datasets/COCO
536 10
CheckpointIndexWriter.swift
in Checkpoints
187 10
main.swift
in Gym/Blackjack
137 9
AnyLayer.swift
in Support
169 9
Decoder.swift
in PersonLab
156 9
Imagenette.swift
in Datasets/Imagenette
154 8
tensor_bundle.pb.swift
in Checkpoints/Protobufs
266 8
ImageNet.swift
in Datasets/Imagenette
164 7
Categorical.swift
in Gym/PPO
85 7
WordSeg.swift
in SwiftModelsBenchmarksCore/Models
124 6
Files With Long Lines (Top 20)

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

File# lines# units# long lines
stb_image_write.h
in Support/STBImage/include
1198 42 79
stb_image.h
in Support/STBImage/include
5616 155 62
SentencePieceModel.pb.swift
in Models/Text/SentencePiece
1012 18 13
CheckpointReader.swift
in pix2pix
161 11 11
summary.pb.swift
in TensorBoard/Protobufs
590 17 10
BigTransfer.swift
in Models/ImageClassification
279 2 6
Layers.swift
in pix2pix
158 - 5
Discriminator.swift
in pix2pix
40 - 4
tensor_bundle.pb.swift
in Checkpoints/Protobufs
266 8 4
event.pb.swift
in TensorBoard/Protobufs
453 12 4
Agent.swift
in Gym/PPO
100 2 3
tensor_slice.pb.swift
in Checkpoints/Protobufs
95 4 3
JPEGImageOperations.swift
in ImageLoader/JPEGImageOperations
104 3 3
main.swift
in CycleGAN
119 - 3
main.swift
in pix2pix
102 - 2
Generator.swift
in pix2pix
30 - 2
tensor_shape.pb.swift
in Checkpoints/Protobufs
81 4 2
AnyLayerTangentVector.swift
in Support
602 40 2
Package.swift
in root
178 - 2
tensor_shape.pb.swift
in TensorBoard/Protobufs
81 4 2