aws-samples / graviton2-workshop
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 27 files with 1,480 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (238 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (273 lines of code)
    • 24 very small files (969 lines of code)
0% | 0% | 16% | 18% | 65%
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
yaml0% | 0% | 64% | 0% | 35%
java0% | 0% | 0% | 100% | 0%
py0% | 0% | 0% | 15% | 84%
yml0% | 0% | 0% | 0% | 100%
lua0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
scripts0% | 0% | 52% | 0% | 47%
src/main/java/com0% | 0% | 0% | 100% | 0%
graviton2/cs_graviton0% | 0% | 0% | 27% | 72%
graviton2/rds_graviton0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
graviton2/cs_graviton/app0% | 0% | 0% | 0% | 100%
graviton2/elasticsearch_graviton0% | 0% | 0% | 0% | 100%
graviton2/elasticsearch_graviton/lambdas0% | 0% | 0% | 0% | 100%
graviton2/vpc_base0% | 0% | 0% | 0% | 100%
graviton2/cs_graviton/app/nodejs_code0% | 0% | 0% | 0% | 100%
Longest Files (Top 27)
File# lines# units
cfn-template.yaml
in scripts
238 -
VertxBookShopREST.java
in src/main/java/com/company/example/web/bookshop
145 11
pipeline_graviton2.py
in graviton2/cs_graviton
128 1
pipeline_netcore_graviton2.py
in graviton2/cs_graviton
75 1
ecs_graviton2.py
in graviton2/cs_graviton
69 1
Deployment.yaml
in graviton2/cs_graviton
66 -
Deployment-aspnet.yaml
in graviton2/cs_graviton
65 -
es.py
in graviton2/elasticsearch_graviton
62 1
plot_results.py
in scripts
61 6
setup.py
in root
57 -
lua
runner.lua
in scripts
49 8
elasticsearch-generate-data.py
in scripts
43 1
elasticsearch-search.py
in scripts
43 1
eks_graviton2.py
in graviton2/cs_graviton
40 1
rds_restore.py
in graviton2/rds_graviton
36 1
insert_into_index.py
in graviton2/elasticsearch_graviton/lambdas
35 1
rds_mysql_5.py
in graviton2/rds_graviton
34 1
rds_mysql_8.py
in graviton2/rds_graviton
34 1
manifest-buildspec.yml
in graviton2/cs_graviton/app
29 -
rds2.py
in graviton2/rds_graviton
29 1
app.py
in root
26 1
vpc.py
in graviton2/vpc_base
25 1
arm64-buildspec.yml
in graviton2/cs_graviton/app
21 -
x86-buildspec.yml
in graviton2/cs_graviton/app
21 -
arm64-dotnet-buildspec.yml
in graviton2/cs_graviton
20 -
etl-spark.py
in scripts
19 -
app.js
in graviton2/cs_graviton/app/nodejs_code
10 -
Files With Most Units (Top 17)
File# lines# units
VertxBookShopREST.java
in src/main/java/com/company/example/web/bookshop
145 11
lua
runner.lua
in scripts
49 8
plot_results.py
in scripts
61 6
app.py
in root
26 1
vpc.py
in graviton2/vpc_base
25 1
pipeline_graviton2.py
in graviton2/cs_graviton
128 1
ecs_graviton2.py
in graviton2/cs_graviton
69 1
eks_graviton2.py
in graviton2/cs_graviton
40 1
pipeline_netcore_graviton2.py
in graviton2/cs_graviton
75 1
rds_mysql_5.py
in graviton2/rds_graviton
34 1
rds_restore.py
in graviton2/rds_graviton
36 1
rds2.py
in graviton2/rds_graviton
29 1
rds_mysql_8.py
in graviton2/rds_graviton
34 1
es.py
in graviton2/elasticsearch_graviton
62 1
insert_into_index.py
in graviton2/elasticsearch_graviton/lambdas
35 1
elasticsearch-generate-data.py
in scripts
43 1
elasticsearch-search.py
in scripts
43 1
Files With Long Lines (Top 6)

There are 6 files with lines longer than 120 characters. In total, there are 19 long lines.

File# lines# units# long lines
VertxBookShopREST.java
in src/main/java/com/company/example/web/bookshop
145 11 10
pipeline_graviton2.py
in graviton2/cs_graviton
128 1 3
elasticsearch-search.py
in scripts
43 1 3
app.py
in root
26 1 1
pipeline_netcore_graviton2.py
in graviton2/cs_graviton
75 1 1
elasticsearch-generate-data.py
in scripts
43 1 1