aws-samples / aws-serverless-workshop-greater-china-region
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 100 files with 12,737 lines of code.
    • 0 very long files (0 lines of code)
    • 6 long files (4,828 lines of code)
    • 8 medium size files (2,700 lines of codeclsfd_ftr_w_mp_ins)
    • 18 small files (2,572 lines of code)
    • 68 very small files (2,637 lines of code)
0% | 37% | 21% | 20% | 20%
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
py0% | 41% | 23% | 17% | 17%
ts0% | 0% | 0% | 79% | 20%
js0% | 0% | 0% | 60% | 39%
yaml0% | 0% | 0% | 33% | 66%
yml0% | 0% | 0% | 0% | 100%
java0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Others_Labs0% | 45% | 25% | 14% | 14%
Unclassified0% | 0% | 0% | 46% | 53%
Lab10-DynamoDB-Stream-EventBridge0% | 0% | 0% | 96% | 4%
Lab13-Dump-DynamoDB-into-CSV-Stored-in-S30% | 0% | 0% | 57% | 42%
Lab6-StepFunction0% | 0% | 0% | 44% | 55%
Others_Tools0% | 0% | 0% | 100% | 0%
Lab12-Lambda_EFS_Inference0% | 0% | 0% | 53% | 46%
Lab11-Provision-Concurrency0% | 0% | 0% | 0% | 100%
Lab8A-CICD-CodePipeline0% | 0% | 0% | 0% | 100%
Lab4-WildRyde-WebApplication0% | 0% | 0% | 0% | 100%
Lab7-WechatPush0% | 0% | 0% | 0% | 100%
Lab8B-CICD-Jenkins0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
emitter.py
in Others_Labs/code/Survey-Survey/yaml
955 60
emitter.py
in Others_Labs/code/SurveySubmit/yaml
955 60
scanner.py
in Others_Labs/code/Survey-Survey/yaml
889 72
scanner.py
in Others_Labs/code/SurveySubmit/yaml
889 72
constructor.py
in Others_Labs/code/Survey-Survey/yaml
570 43
constructor.py
in Others_Labs/code/SurveySubmit/yaml
570 43
parser.py
in Others_Labs/code/Survey-Survey/yaml
412 31
parser.py
in Others_Labs/code/SurveySubmit/yaml
412 31
representer.py
in Others_Labs/code/Survey-Survey/yaml
358 34
representer.py
in Others_Labs/code/SurveySubmit/yaml
358 34
doc.py
in Others_Labs/code/Survey-Survey/yattag
331 32
doc.py
in Others_Labs/code/SurveySubmit/yattag
331 32
indentation.py
in Others_Labs/code/Survey-Survey/yattag
249 18
indentation.py
in Others_Labs/code/SurveySubmit/yattag
249 18
resolver.py
in Others_Labs/code/Survey-Survey/yaml
189 7
resolver.py
in Others_Labs/code/SurveySubmit/yaml
189 7
handler.js
in Lab13-Dump-DynamoDB-into-CSV-Stored-in-S3
179 10
__init__.py
in Others_Labs/code/Survey-Survey/yaml
171 24
__init__.py
in Others_Labs/code/SurveySubmit/yaml
171 24
lab6-stack.ts
in Lab6-StepFunction/cdk-deployment/lib
157 1
lambda_function.py
in Lab3-S3ImageConvert_LambdaLayer+CDK/cdk/lambda
154 6
lambda_handler.py
in Lab3-S3ImageConvert_LambdaLayer+CDK
153 6
simpledoc.py
in Others_Labs/code/Survey-Survey/yattag
150 25
simpledoc.py
in Others_Labs/code/SurveySubmit/yattag
150 25
reader.py
in Others_Labs/code/Survey-Survey/yaml
139 11
reader.py
in Others_Labs/code/SurveySubmit/yaml
139 11
template.yaml
in Lab10-DynamoDB-Stream-EventBridge
114 -
getConsole.py
in Others_Tools/getConsole
106 2
lambda_efsml-stack.ts
in Lab12-Lambda_EFS_Inference/lib
105 1
fanout.py
in Lab10-DynamoDB-Stream-EventBridge/src
102 7
composer.py
in Others_Labs/code/Survey-Survey/yaml
102 9
composer.py
in Others_Labs/code/SurveySubmit/yaml
102 9
auto_snapshot_lambda.py
in Lab2-EC2AutoSnapshot_CloudWatchEvent+Lambda
100 1
serializer.py
in Others_Labs/code/Survey-Survey/yaml
95 7
serializer.py
in Others_Labs/code/SurveySubmit/yaml
95 7
index.py
in Lab6-StepFunction/cdk-deployment/dynamodb-load-data
87 3
tokens.py
in Others_Labs/code/Survey-Survey/yaml
79 8
tokens.py
in Others_Labs/code/SurveySubmit/yaml
79 8
survey.py
in Others_Labs/code/Survey-Survey
68 1
cyaml.py
in Others_Labs/code/Survey-Survey/yaml
67 6
events.py
in Others_Labs/code/Survey-Survey/yaml
67 8
cyaml.py
in Others_Labs/code/SurveySubmit/yaml
67 6
events.py
in Others_Labs/code/SurveySubmit/yaml
67 8
lab4-stack.ts
in Lab4-WildRyde-WebApplication/deploy/lib
67 1
error.py
in Others_Labs/code/Survey-Survey/yaml
65 5
error.py
in Others_Labs/code/SurveySubmit/yaml
65 5
survey.py
in Others_Labs/code/SurveySubmit
63 1
handler.py
in Lab9-CDK_with_API+Lambda+DDB/lambda
61 3
template.yaml
in Lab11-Provision-Concurrency
60 -
dumper.py
in Others_Labs/code/Survey-Survey/yaml
53 3
Files With Most Units (Top 20)
File# lines# units
scanner.py
in Others_Labs/code/Survey-Survey/yaml
889 72
scanner.py
in Others_Labs/code/SurveySubmit/yaml
889 72
emitter.py
in Others_Labs/code/Survey-Survey/yaml
955 60
emitter.py
in Others_Labs/code/SurveySubmit/yaml
955 60
constructor.py
in Others_Labs/code/Survey-Survey/yaml
570 43
constructor.py
in Others_Labs/code/SurveySubmit/yaml
570 43
representer.py
in Others_Labs/code/Survey-Survey/yaml
358 34
representer.py
in Others_Labs/code/SurveySubmit/yaml
358 34
doc.py
in Others_Labs/code/Survey-Survey/yattag
331 32
doc.py
in Others_Labs/code/SurveySubmit/yattag
331 32
parser.py
in Others_Labs/code/Survey-Survey/yaml
412 31
parser.py
in Others_Labs/code/SurveySubmit/yaml
412 31
simpledoc.py
in Others_Labs/code/Survey-Survey/yattag
150 25
simpledoc.py
in Others_Labs/code/SurveySubmit/yattag
150 25
__init__.py
in Others_Labs/code/Survey-Survey/yaml
171 24
__init__.py
in Others_Labs/code/SurveySubmit/yaml
171 24
indentation.py
in Others_Labs/code/Survey-Survey/yattag
249 18
indentation.py
in Others_Labs/code/SurveySubmit/yattag
249 18
reader.py
in Others_Labs/code/Survey-Survey/yaml
139 11
reader.py
in Others_Labs/code/SurveySubmit/yaml
139 11
Files With Long Lines (Top 14)

There are 14 files with lines longer than 120 characters. In total, there are 40 long lines.

File# lines# units# long lines
survey.py
in Others_Labs/code/Survey-Survey
68 1 7
survey.py
in Others_Labs/code/SurveySubmit
63 1 7
buildspec.yml
in Lab8B-CICD-Jenkins
32 - 5
buildspec.yml
in Lab8A-CICD-CodePipeline/code
29 - 4
lambda_efsml-stack.ts
in Lab12-Lambda_EFS_Inference/lib
105 1 3
main.py
in Lab12-Lambda_EFS_Inference/cdk.out/asset.b67ca54e8e20fd2aab3cd82fdcdf0497ace7ac6af40e4f7bc2fa9ada1549810d
28 1 2
main.py
in Lab12-Lambda_EFS_Inference/cdk.out/asset.90dc103e0e23406de97f3d53b1fc0a0038e42983a72f8708a4352bb5dee13e7a
28 1 2
main.py
in Lab12-Lambda_EFS_Inference/lambda
28 1 2
doc.py
in Others_Labs/code/Survey-Survey/yattag
331 32 2
doc.py
in Others_Labs/code/SurveySubmit/yattag
331 32 2
template.yaml
in Lab11-Provision-Concurrency
60 - 1
Lottery-ValidateWinners.py
in Lab6-StepFunction
27 1 1
Lottery-RandomSelectWinners.py
in Lab6-StepFunction
23 1 1
getConsole.py
in Others_Tools/getConsole
106 2 1