pytorch / android-demo-app
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 148 files with 6,657 lines of code.
    • 1 very long files (1,005 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (231 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,527 lines of code)
    • 130 very small files (2,894 lines of code)
15% | 0% | 3% | 37% | 43%
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
java78% | 0% | 0% | 11% | 9%
py0% | 0% | 24% | 13% | 61%
xml0% | 0% | 0% | 50% | 49%
h0% | 0% | 0% | 100% | 0%
cpp0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
HelloWorldApp75% | 0% | 0% | 12% | 11%
Seq2SeqNMT0% | 0% | 46% | 34% | 19%
StreamingASR0% | 0% | 0% | 55% | 44%
ImageSegmentation0% | 0% | 0% | 74% | 25%
ASLRecognition0% | 0% | 0% | 49% | 50%
PyTorchDemoApp0% | 0% | 0% | 22% | 77%
ViT4MNIST0% | 0% | 0% | 38% | 61%
D2Go0% | 0% | 0% | 41% | 58%
TorchVideo0% | 0% | 0% | 47% | 52%
ObjectDetection0% | 0% | 0% | 51% | 48%
SpeechRecognition0% | 0% | 0% | 59% | 40%
QuestionAnswering0% | 0% | 0% | 59% | 40%
NativeApp0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ImageNetClasses.java
in HelloWorldApp/app/src/main/java/org/pytorch/helloworld
1005 -
seq2seq_nmt.py
in Seq2SeqNMT
231 22
librosa.h
in StreamingASR/StreamingASR/app/src/main/cpp/librosa
173 7
ic_launcher_background.xml
in StreamingASR/StreamingASR/app/src/main/res/drawable
170 -
ic_launcher_background.xml
in ImageSegmentation/app/src/main/res/drawable
170 -
ic_launcher_background.xml
in SpeechRecognition/app/src/main/res/drawable
170 -
ic_launcher_background.xml
in TorchVideo/app/src/main/res/drawable
170 -
ic_launcher_background.xml
in QuestionAnswering/app/src/main/res/drawable
170 -
ic_launcher_background.xml
in Seq2SeqNMT/app/src/main/res/drawable
170 -
ic_launcher_background.xml
in ViT4MNIST/app/src/main/res/drawable
170 -
ic_launcher_background.xml
in D2Go/ObjectDetection/app/src/main/res/drawable
170 -
ic_launcher_background.xml
in ObjectDetection/app/src/main/res/drawable
170 -
ic_launcher_background.xml
in HelloWorldApp/app/src/main/res/drawable
170 -
ic_launcher_background.xml
in ASLRecognition/app/src/main/res/drawable
170 -
MainActivity.java
in ImageSegmentation/app/src/main/java/org/pytorch/imagesegmentation
147 3
train.py
in ASLRecognition/scripts
124 6
activity_image_classification.xml
in PyTorchDemoApp/app/src/main/res/layout
112 -
styles.xml
in PyTorchDemoApp/app/src/main/res/values
101 -
activity_text_classification.xml
in PyTorchDemoApp/app/src/main/res/layout
99 -
vit_pytorch.py
in ViT4MNIST
91 12
activity_main.xml
in TorchVideo/app/src/main/res/layout
85 -
activity_main.xml
in D2Go/ObjectDetection/app/src/main/res/layout
81 -
activity_main.xml
in ObjectDetection/app/src/main/res/layout
81 -
run_sasr.py
in StreamingASR
80 5
pytorch_nativeapp.cpp
in NativeApp/app/src/main/cpp
78 4
78 2
MainActivityJNI.cpp
in StreamingASR/StreamingASR/app/src/main/cpp
73 -
mnist_vit.py
in ViT4MNIST
73 2
MainActivity.java
in HelloWorldApp/app/src/main/java/org/pytorch/helloworld
70 2
activity_main.xml
in ASLRecognition/app/src/main/res/layout
66 -
activity_main.xml
in QuestionAnswering/app/src/main/res/layout
62 -
activity_main.xml
in ViT4MNIST/app/src/main/res/layout
54 -
activity_main.xml
in ImageSegmentation/app/src/main/res/layout
51 -
activity_main.xml
in PyTorchDemoApp/app/src/main/res/layout
45 -
activity_main.xml
in Seq2SeqNMT/app/src/main/res/layout
44 -
list_card.xml
in PyTorchDemoApp/app/src/main/res/layout
43 -
create_wav2vec2.py
in SpeechRecognition
41 2
MainActivity.java
in NativeApp/app/src/main/java/org/pytorch/nativeapp
40 2
test.py
in ASLRecognition/scripts
40 -
activity_welcome.xml
in PyTorchDemoApp/app/src/main/res/layout
35 -
ic_launcher_foreground.xml
in HelloWorldApp/app/src/main/res/drawable-v24
34 -
vision_list_content.xml
in PyTorchDemoApp/app/src/main/res/layout
33 -
activity_list_stub.xml
in PyTorchDemoApp/app/src/main/res/layout
32 -
create_csv.py
in ASLRecognition/scripts
32 -
activity_main.xml
in StreamingASR/StreamingASR/app/src/main/res/layout
31 -
ic_launcher_foreground.xml
in StreamingASR/StreamingASR/app/src/main/res/drawable-v24
30 -
ic_launcher_foreground.xml
in ImageSegmentation/app/src/main/res/drawable-v24
30 -
ic_launcher_foreground.xml
in SpeechRecognition/app/src/main/res/drawable-v24
30 -
activity_main.xml
in SpeechRecognition/app/src/main/res/layout
30 -
ic_launcher_foreground.xml
in TorchVideo/app/src/main/res/drawable-v24
30 -
Files With Most Units (Top 16)
File# lines# units
seq2seq_nmt.py
in Seq2SeqNMT
231 22
vit_pytorch.py
in ViT4MNIST
91 12
librosa.h
in StreamingASR/StreamingASR/app/src/main/cpp/librosa
173 7
train.py
in ASLRecognition/scripts
124 6
run_sasr.py
in StreamingASR
80 5
pytorch_nativeapp.cpp
in NativeApp/app/src/main/cpp
78 4
MainActivity.java
in ImageSegmentation/app/src/main/java/org/pytorch/imagesegmentation
147 3
NativeClient.java
in NativeApp/app/src/main/java/org/pytorch/nativeapp
12 2
MainActivity.java
in NativeApp/app/src/main/java/org/pytorch/nativeapp
40 2
create_wav2vec2.py
in SpeechRecognition
41 2
mnist_vit.py
in ViT4MNIST
73 2
78 2
MainActivity.java
in HelloWorldApp/app/src/main/java/org/pytorch/helloworld
70 2
cnn_models.py
in ASLRecognition/scripts
25 2
11 1
21 1
Files With Long Lines (Top 29)

There are 29 files with lines longer than 120 characters. In total, there are 51 long lines.

File# lines# units# long lines
librosa.h
in StreamingASR/StreamingASR/app/src/main/cpp/librosa
173 7 5
strings.xml
in PyTorchDemoApp/app/src/main/res/values
29 - 5
MainActivity.java
in ImageSegmentation/app/src/main/java/org/pytorch/imagesegmentation
147 3 3
ic_launcher_foreground.xml
in StreamingASR/StreamingASR/app/src/main/res/drawable-v24
30 - 2
ic_launcher_foreground.xml
in ImageSegmentation/app/src/main/res/drawable-v24
30 - 2
ic_launcher_foreground.xml
in SpeechRecognition/app/src/main/res/drawable-v24
30 - 2
ic_launcher_foreground.xml
in TorchVideo/app/src/main/res/drawable-v24
30 - 2
ic_launcher_foreground.xml
in QuestionAnswering/app/src/main/res/drawable-v24
30 - 2
ic_launcher_foreground.xml
in Seq2SeqNMT/app/src/main/res/drawable-v24
30 - 2
ic_launcher_foreground.xml
in ViT4MNIST/app/src/main/res/drawable-v24
30 - 2
ic_launcher_foreground.xml
in D2Go/ObjectDetection/app/src/main/res/drawable-v24
30 - 2
ic_launcher_foreground.xml
in ObjectDetection/app/src/main/res/drawable-v24
30 - 2
ic_launcher_foreground.xml
in HelloWorldApp/app/src/main/res/drawable-v24
34 - 2
ImageNetClasses.java
in HelloWorldApp/app/src/main/java/org/pytorch/helloworld
1005 - 2
ic_launcher_foreground.xml
in ASLRecognition/app/src/main/res/drawable-v24
30 - 2
MainActivityJNI.cpp
in StreamingASR/StreamingASR/app/src/main/cpp
73 - 1
activity_main.xml
in TorchVideo/app/src/main/res/layout
85 - 1
seq2seq_nmt.py
in Seq2SeqNMT
231 22 1
78 2 1
MainActivity.java
in HelloWorldApp/app/src/main/java/org/pytorch/helloworld
70 2 1
ic_text_classification_l.xml
in PyTorchDemoApp/app/src/main/res/drawable
12 - 1
ic_vision_s.xml
in PyTorchDemoApp/app/src/main/res/drawable
12 - 1
ic_image_classification_s.xml
in PyTorchDemoApp/app/src/main/res/drawable
24 - 1
ic_logo_pytorch.xml
in PyTorchDemoApp/app/src/main/res/drawable
12 - 1
ic_error_icon.xml
in PyTorchDemoApp/app/src/main/res/drawable
12 - 1
ic_back.xml
in PyTorchDemoApp/app/src/main/res/drawable
12 - 1
ic_text_classification_s.xml
in PyTorchDemoApp/app/src/main/res/drawable
24 - 1
ic_image_classification_l.xml
in PyTorchDemoApp/app/src/main/res/drawable
12 - 1
ic_language_s.xml
in PyTorchDemoApp/app/src/main/res/drawable
12 - 1
Correlations

File Size vs. Commits (all time): 148 points

StreamingASR/save_model_for_mobile.py x: 2 commits (all time) y: 11 lines of code StreamingASR/StreamingASR/app/src/main/cpp/MainActivityJNI.cpp x: 1 commits (all time) y: 73 lines of code StreamingASR/StreamingASR/app/src/main/cpp/librosa/librosa.h x: 1 commits (all time) y: 173 lines of code StreamingASR/StreamingASR/app/src/main/res/drawable-v24/ic_launcher_foreground.xml x: 1 commits (all time) y: 30 lines of code StreamingASR/StreamingASR/app/src/main/res/drawable/ic_launcher_background.xml x: 1 commits (all time) y: 170 lines of code StreamingASR/StreamingASR/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml x: 1 commits (all time) y: 5 lines of code StreamingASR/StreamingASR/app/src/main/res/values-night/themes.xml x: 1 commits (all time) y: 11 lines of code StreamingASR/StreamingASR/app/src/main/res/values/strings.xml x: 1 commits (all time) y: 3 lines of code StreamingASR/run_sasr.py x: 1 commits (all time) y: 80 lines of code ASLRecognition/scripts/test.py x: 2 commits (all time) y: 40 lines of code ImageSegmentation/deeplabv3.py x: 3 commits (all time) y: 9 lines of code ViT4MNIST/mnist_vit.py x: 3 commits (all time) y: 73 lines of code Seq2SeqNMT/seq2seq_nmt.py x: 3 commits (all time) y: 231 lines of code SpeechRecognition/create_wav2vec2.py x: 3 commits (all time) y: 41 lines of code ASLRecognition/app/src/main/res/layout/activity_main.xml x: 1 commits (all time) y: 66 lines of code ASLRecognition/scripts/cnn_models.py x: 1 commits (all time) y: 25 lines of code ASLRecognition/scripts/create_csv.py x: 1 commits (all time) y: 32 lines of code ASLRecognition/scripts/train.py x: 1 commits (all time) y: 124 lines of code ImageSegmentation/app/src/main/java/org/pytorch/imagesegmentation/MainActivity.java x: 8 commits (all time) y: 147 lines of code HelloWorldApp/app/src/main/java/org/pytorch/helloworld/MainActivity.java x: 4 commits (all time) y: 70 lines of code TorchVideo/build_model.py x: 2 commits (all time) y: 20 lines of code TorchVideo/app/src/main/res/layout/activity_main.xml x: 1 commits (all time) y: 85 lines of code HelloWorldApp/app/src/main/res/values/strings.xml x: 2 commits (all time) y: 3 lines of code D2Go/create_d2go.py x: 1 commits (all time) y: 78 lines of code ObjectDetection/app/src/main/res/drawable-v24/ic_launcher_foreground.xml x: 5 commits (all time) y: 30 lines of code ObjectDetection/app/src/main/res/drawable/ic_launcher_background.xml x: 5 commits (all time) y: 170 lines of code ObjectDetection/app/src/main/res/layout/activity_main.xml x: 5 commits (all time) y: 81 lines of code ObjectDetection/app/src/main/res/values/colors.xml x: 5 commits (all time) y: 6 lines of code ObjectDetection/app/src/main/res/values/strings.xml x: 5 commits (all time) y: 9 lines of code QuestionAnswering/app/src/main/res/layout/activity_main.xml x: 1 commits (all time) y: 62 lines of code Seq2SeqNMT/app/src/main/res/drawable-v24/ic_launcher_foreground.xml x: 2 commits (all time) y: 30 lines of code Seq2SeqNMT/app/src/main/res/drawable/border.xml x: 2 commits (all time) y: 6 lines of code Seq2SeqNMT/app/src/main/res/drawable/ic_launcher_background.xml x: 2 commits (all time) y: 170 lines of code Seq2SeqNMT/app/src/main/res/layout/activity_main.xml x: 2 commits (all time) y: 44 lines of code ViT4MNIST/app/src/main/res/layout/activity_main.xml x: 1 commits (all time) y: 54 lines of code ViT4MNIST/vit_pytorch.py x: 1 commits (all time) y: 91 lines of code ImageSegmentation/app/src/main/res/layout/activity_main.xml x: 3 commits (all time) y: 51 lines of code NativeApp/app/src/main/java/org/pytorch/nativeapp/MainActivity.java x: 1 commits (all time) y: 40 lines of code NativeApp/app/src/main/java/org/pytorch/nativeapp/NativeClient.java x: 1 commits (all time) y: 12 lines of code NativeApp/make_warp_perspective_pt.py x: 1 commits (all time) y: 21 lines of code PyTorchDemoApp/app/src/main/res/layout/activity_image_classification.xml x: 3 commits (all time) y: 112 lines of code PyTorchDemoApp/app/src/main/res/layout/vision_list_content.xml x: 2 commits (all time) y: 33 lines of code PyTorchDemoApp/app/src/main/res/values/strings.xml x: 3 commits (all time) y: 29 lines of code PyTorchDemoApp/app/src/main/res/values/styles.xml x: 3 commits (all time) y: 101 lines of code PyTorchDemoApp/app/src/main/res/layout/activity_text_classification.xml x: 2 commits (all time) y: 99 lines of code HelloWorldApp/app/src/main/java/org/pytorch/helloworld/ImageNetClasses.java x: 1 commits (all time) y: 1005 lines of code PyTorchDemoApp/app/src/main/res/layout/activity_main.xml x: 1 commits (all time) y: 45 lines of code PyTorchDemoApp/app/src/main/res/values/attrs.xml x: 1 commits (all time) y: 16 lines of code
1005.0
lines of code
  min: 3.0
  average: 44.98
  25th percentile: 7.0
  median: 14.0
  75th percentile: 40.75
  max: 1005.0
0 8.0
commits (all time)
min: 1.0 | average: 1.47 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 8.0

File Size vs. Contributors (all time): 148 points

StreamingASR/save_model_for_mobile.py x: 1 contributors (all time) y: 11 lines of code StreamingASR/StreamingASR/app/src/main/cpp/MainActivityJNI.cpp x: 1 contributors (all time) y: 73 lines of code StreamingASR/StreamingASR/app/src/main/cpp/librosa/librosa.h x: 1 contributors (all time) y: 173 lines of code StreamingASR/StreamingASR/app/src/main/res/drawable-v24/ic_launcher_foreground.xml x: 1 contributors (all time) y: 30 lines of code StreamingASR/StreamingASR/app/src/main/res/drawable/ic_launcher_background.xml x: 1 contributors (all time) y: 170 lines of code StreamingASR/StreamingASR/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml x: 1 contributors (all time) y: 5 lines of code StreamingASR/StreamingASR/app/src/main/res/values/strings.xml x: 1 contributors (all time) y: 3 lines of code StreamingASR/run_sasr.py x: 1 contributors (all time) y: 80 lines of code ASLRecognition/scripts/test.py x: 1 contributors (all time) y: 40 lines of code Seq2SeqNMT/seq2seq_nmt.py x: 1 contributors (all time) y: 231 lines of code ASLRecognition/app/src/main/res/layout/activity_main.xml x: 1 contributors (all time) y: 66 lines of code ASLRecognition/scripts/cnn_models.py x: 1 contributors (all time) y: 25 lines of code ASLRecognition/scripts/create_csv.py x: 1 contributors (all time) y: 32 lines of code ASLRecognition/scripts/train.py x: 1 contributors (all time) y: 124 lines of code ImageSegmentation/app/src/main/java/org/pytorch/imagesegmentation/MainActivity.java x: 1 contributors (all time) y: 147 lines of code HelloWorldApp/app/src/main/java/org/pytorch/helloworld/MainActivity.java x: 2 contributors (all time) y: 70 lines of code HelloWorldApp/trace_model.py x: 2 contributors (all time) y: 9 lines of code TorchVideo/build_model.py x: 1 contributors (all time) y: 20 lines of code TorchVideo/app/src/main/res/layout/activity_main.xml x: 1 contributors (all time) y: 85 lines of code HelloWorldApp/app/src/main/res/values/strings.xml x: 2 contributors (all time) y: 3 lines of code D2Go/create_d2go.py x: 1 contributors (all time) y: 78 lines of code QuestionAnswering/app/src/main/res/layout/activity_main.xml x: 1 contributors (all time) y: 62 lines of code Seq2SeqNMT/app/src/main/res/layout/activity_main.xml x: 1 contributors (all time) y: 44 lines of code ViT4MNIST/app/src/main/res/layout/activity_main.xml x: 1 contributors (all time) y: 54 lines of code ViT4MNIST/vit_pytorch.py x: 1 contributors (all time) y: 91 lines of code ImageSegmentation/app/src/main/res/layout/activity_main.xml x: 1 contributors (all time) y: 51 lines of code NativeApp/app/src/main/java/org/pytorch/nativeapp/NativeClient.java x: 1 contributors (all time) y: 12 lines of code PyTorchDemoApp/app/src/main/res/layout/activity_image_classification.xml x: 1 contributors (all time) y: 112 lines of code PyTorchDemoApp/app/src/main/res/values/styles.xml x: 1 contributors (all time) y: 101 lines of code HelloWorldApp/app/src/main/java/org/pytorch/helloworld/ImageNetClasses.java x: 1 contributors (all time) y: 1005 lines of code PyTorchDemoApp/app/src/main/res/values/attrs.xml x: 1 contributors (all time) y: 16 lines of code
1005.0
lines of code
  min: 3.0
  average: 44.98
  25th percentile: 7.0
  median: 14.0
  75th percentile: 40.75
  max: 1005.0
0 2.0
contributors (all time)
min: 1.0 | average: 1.02 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

File Size vs. Commits (30 days): 1 points

StreamingASR/save_model_for_mobile.py x: 1 commits (30d) y: 11 lines of code
11.0
lines of code
  min: 11.0
  average: 11.0
  25th percentile: 11.0
  median: 11.0
  75th percentile: 11.0
  max: 11.0
0 1.0
commits (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (30 days): 1 points

StreamingASR/save_model_for_mobile.py x: 1 contributors (30d) y: 11 lines of code
11.0
lines of code
  min: 11.0
  average: 11.0
  25th percentile: 11.0
  median: 11.0
  75th percentile: 11.0
  max: 11.0
0 1.0
contributors (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Commits (90 days): 13 points

StreamingASR/save_model_for_mobile.py x: 2 commits (90d) y: 11 lines of code StreamingASR/StreamingASR/app/src/main/cpp/MainActivityJNI.cpp x: 1 commits (90d) y: 73 lines of code StreamingASR/StreamingASR/app/src/main/cpp/librosa/librosa.h x: 1 commits (90d) y: 173 lines of code StreamingASR/StreamingASR/app/src/main/res/drawable-v24/ic_launcher_foreground.xml x: 1 commits (90d) y: 30 lines of code StreamingASR/StreamingASR/app/src/main/res/drawable/ic_launcher_background.xml x: 1 commits (90d) y: 170 lines of code StreamingASR/StreamingASR/app/src/main/res/layout/activity_main.xml x: 1 commits (90d) y: 31 lines of code StreamingASR/StreamingASR/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml x: 1 commits (90d) y: 5 lines of code StreamingASR/StreamingASR/app/src/main/res/values-night/themes.xml x: 1 commits (90d) y: 11 lines of code StreamingASR/StreamingASR/app/src/main/res/values/colors.xml x: 1 commits (90d) y: 10 lines of code StreamingASR/StreamingASR/app/src/main/res/values/strings.xml x: 1 commits (90d) y: 3 lines of code StreamingASR/run_sasr.py x: 1 commits (90d) y: 80 lines of code
173.0
lines of code
  min: 3.0
  average: 47.15
  25th percentile: 7.5
  median: 11.0
  75th percentile: 76.5
  max: 173.0
0 2.0
commits (90d)
min: 1.0 | average: 1.08 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

File Size vs. Contributors (90 days): 13 points

StreamingASR/save_model_for_mobile.py x: 1 contributors (90d) y: 11 lines of code StreamingASR/StreamingASR/app/src/main/cpp/MainActivityJNI.cpp x: 1 contributors (90d) y: 73 lines of code StreamingASR/StreamingASR/app/src/main/cpp/librosa/librosa.h x: 1 contributors (90d) y: 173 lines of code StreamingASR/StreamingASR/app/src/main/res/drawable-v24/ic_launcher_foreground.xml x: 1 contributors (90d) y: 30 lines of code StreamingASR/StreamingASR/app/src/main/res/drawable/ic_launcher_background.xml x: 1 contributors (90d) y: 170 lines of code StreamingASR/StreamingASR/app/src/main/res/layout/activity_main.xml x: 1 contributors (90d) y: 31 lines of code StreamingASR/StreamingASR/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml x: 1 contributors (90d) y: 5 lines of code StreamingASR/StreamingASR/app/src/main/res/values/colors.xml x: 1 contributors (90d) y: 10 lines of code StreamingASR/StreamingASR/app/src/main/res/values/strings.xml x: 1 contributors (90d) y: 3 lines of code StreamingASR/run_sasr.py x: 1 contributors (90d) y: 80 lines of code
173.0
lines of code
  min: 3.0
  average: 47.15
  25th percentile: 7.5
  median: 11.0
  75th percentile: 76.5
  max: 173.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0