pytorch / live
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 17,776 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (713 lines of code)
    • 15 medium size files (4,788 lines of codeclsfd_ftr_w_mp_ins)
    • 28 small files (3,785 lines of code)
    • 254 very small files (8,490 lines of code)
0% | 4% | 26% | 21% | 47%
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
java0% | 18% | 31% | 3% | 47%
swift0% | 0% | 54% | 15% | 30%
tsx0% | 0% | 20% | 23% | 55%
ts0% | 0% | 16% | 31% | 52%
css0% | 0% | 38% | 53% | 8%
js0% | 0% | 18% | 49% | 31%
m0% | 0% | 0% | 0% | 100%
mm0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
cpp0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
react-native-pytorch-core/android0% | 20% | 35% | 3% | 40%
react-native-pytorch-core/ios0% | 0% | 47% | 13% | 39%
react-native-pytorch-core/example0% | 0% | 30% | 10% | 58%
website/src0% | 0% | 22% | 59% | 18%
react-native-pytorch-core/src0% | 0% | 41% | 16% | 41%
website0% | 0% | 76% | 0% | 23%
torchlive-cli/src0% | 0% | 8% | 44% | 47%
react-native-template-pytorch-live/template0% | 0% | 0% | 29% | 70%
website/scripts0% | 0% | 0% | 100% | 0%
react-native-template-ptl/template0% | 0% | 0% | 0% | 100%
react-native-pytorch-core/cpp0% | 0% | 0% | 0% | 100%
torchlive-cli/scripts0% | 0% | 0% | 0% | 100%
react-native-template-pytorch-live0% | 0% | 0% | 0% | 100%
react-native-pytorch-core0% | 0% | 0% | 0% | 100%
react-native-template-ptl0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
BaseIValuePacker.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/ml/processing
713 36
DrawingCanvasView.swift
in react-native-pytorch-core/ios/Canvas
429 37
BaseIValuePacker.swift
in react-native-pytorch-core/ios/ML/Processing
404 4
AstroBirdGame.ts
in react-native-pytorch-core/example/src/toolbox/apiTest
392 9
CanvasRenderingContext2D.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/canvas
388 42
CanvasRenderingContext2D.swift
in react-native-pytorch-core/ios/Canvas
380 36
CanvasRenderingContext2DModule.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/canvas
367 36
Toolbox.tsx
in react-native-pytorch-core/example/src/toolbox
346 1
custom.css
in website/src/css
331 -
CanvasView.tsx
in react-native-pytorch-core/src
328 16
MNIST.tsx
in react-native-pytorch-core/example/src/toolbox/models
282 3
CameraView.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/camera
275 12
CameraView.swift
in react-native-pytorch-core/ios/Camera
257 8
docusaurus.config.js
in website
207 3
MobileModelModule.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/ml
201 10
Doctor.ts
in torchlive-cli/src/cli-commands
201 7
index.module.css
in website/src/pages
199 -
index.js
in website/src/pages
195 4
UIComponents.tsx
in react-native-template-pytorch-live/template/src/components
188 5
Toolbox.tsx
in react-native-template-pytorch-live/template/src/toolbox
178 1
Init.ts
in torchlive-cli/src/cli-commands
157 4
Distilbert.tsx
in react-native-pytorch-core/example/src/toolbox/models
154 1
ImageModule.swift
in react-native-pytorch-core/ios/Image
151 1
MobileModelModule.swift
in react-native-pytorch-core/ios/ML
146 6
community.module.css
in website/src/pages
142 -
codegen-examples.js
in website/scripts
140 9
AndroidSDK.ts
in torchlive-cli/src/android
138 10
ImageModule.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/image
136 14
CSSFontUtils.ts
in react-native-pytorch-core/src/utils
133 2
TaskUtils.ts
in torchlive-cli/src/utils
133 3
AndroidEmulatorDeviceInstaller.ts
in torchlive-cli/src/installers/android
128 4
GetRequest.tsx
in react-native-template-pytorch-live/template/src/toolbox/data
123 3
CommandUtils.ts
in torchlive-cli/src/utils
123 8
SystemUtils.ts
in torchlive-cli/src/utils
121 12
RunAndroid.ts
in torchlive-cli/src/cli-commands
120 9
index.js
in website/src/theme/DocSidebar
115 5
styles.module.css
in website/src/theme/DocSidebar
112 -
UIStarter.tsx
in react-native-template-pytorch-live/template/src/toolbox/ui
111 1
Logger.ts
in torchlive-cli/src/utils
111 10
HomepageFeatures.js
in website/src/components
110 5
Images.tsx
in react-native-template-pytorch-live/template/src/toolbox/canvas
108 -
BertTokenizer.swift
in react-native-pytorch-core/ios/ML/Processing
106 3
CanvasAnimation.tsx
in react-native-pytorch-core/example/src/toolbox/apiTest
105 1
FastNeuralStyle.tsx
in react-native-pytorch-core/example/src/toolbox/models
102 1
CanvasDrawing.tsx
in react-native-template-pytorch-live/template/src/toolbox/canvas
100 -
PTMTensor.mm
in react-native-pytorch-core/ios/ML
96 -
HealthCheck.ts
in torchlive-cli/src/commands
96 -
AndroidSDKInstaller.ts
in torchlive-cli/src/installers/android
96 3
CanvasTransform.tsx
in react-native-template-pytorch-live/template/src/toolbox/canvas
95 1
ImageUtils.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/image
93 3
Files With Most Units (Top 20)
File# lines# units
CanvasRenderingContext2D.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/canvas
388 42
DrawingCanvasView.swift
in react-native-pytorch-core/ios/Canvas
429 37
CanvasRenderingContext2D.swift
in react-native-pytorch-core/ios/Canvas
380 36
CanvasRenderingContext2DModule.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/canvas
367 36
BaseIValuePacker.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/ml/processing
713 36
CanvasView.tsx
in react-native-pytorch-core/src
328 16
ImageModule.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/image
136 14
CameraView.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/camera
275 12
Image.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/image
58 12
SystemUtils.ts
in torchlive-cli/src/utils
121 12
CameraViewManager.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/camera
88 10
MobileModelModule.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/ml
201 10
JSContext.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/javascript
60 10
Logger.ts
in torchlive-cli/src/utils
111 10
AndroidSDK.ts
in torchlive-cli/src/android
138 10
codegen-examples.js
in website/scripts
140 9
AstroBirdGame.ts
in react-native-pytorch-core/example/src/toolbox/apiTest
392 9
RunAndroid.ts
in torchlive-cli/src/cli-commands
120 9
CameraView.swift
in react-native-pytorch-core/ios/Camera
257 8
ImageDataImage.java
in react-native-pytorch-core/android/src/main/java/org/pytorch/rn/core/image
49 8
Files With Long Lines (Top 20)

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

File# lines# units# long lines
CanvasRenderingContext2D.swift
in react-native-pytorch-core/ios/Canvas
380 36 45
CanvasRenderingContext2DModule.m
in react-native-pytorch-core/ios/Canvas
39 - 34
custom.css
in website/src/css
331 - 10
CameraView.swift
in react-native-pytorch-core/ios/Camera
257 8 8
ImageModule.m
in react-native-pytorch-core/ios/Image
15 - 7
ImageModule.swift
in react-native-pytorch-core/ios/Image
151 1 7
ShapeLayer.swift
in react-native-pytorch-core/ios/Canvas
65 - 6
BaseIValuePacker.swift
in react-native-pytorch-core/ios/ML/Processing
404 4 5
DrawingCanvasView.swift
in react-native-pytorch-core/ios/Canvas
429 37 4
AudioModule.swift
in react-native-pytorch-core/ios/Audio
88 - 3
GreyScaleNormTransform.swift
in react-native-pytorch-core/ios/ML/Processing
91 3 3
MobileModelModule.swift
in react-native-pytorch-core/ios/ML
146 6 3
Init.ts
in torchlive-cli/src/cli-commands
157 4 3
CaptureButton.swift
in react-native-pytorch-core/ios/Camera
61 - 2
MobileModelModule.m
in react-native-pytorch-core/ios/ML
6 - 2
AndroidEmulatorDeviceInstaller.ts
in torchlive-cli/src/installers/android
128 4 2
PyTorchLiveExampleTests.m
in react-native-template-pytorch-live/template/ios/PyTorchLiveExampleTests
51 - 1
AppDelegate.m
in react-native-template-pytorch-live/template/ios/PyTorchLiveExample
52 1 1
docusaurus.config.js
in website
207 3 1
styles.module.css
in website/src/theme/DocSidebar
112 - 1