aws-samples / retail-demo-store
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 266 files with 49,983 lines of code.
    • 1 very long files (22,944 lines of code)
    • 6 long files (4,176 lines of code)
    • 29 medium size files (9,060 lines of codeclsfd_ftr_w_mp_ins)
    • 45 small files (6,057 lines of code)
    • 185 very small files (7,746 lines of code)
45% | 8% | 18% | 12% | 15%
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
yaml78% | 1% | 13% | 1% | 3%
py0% | 42% | 17% | 19% | 20%
js0% | 40% | 10% | 13% | 35%
vue0% | 0% | 21% | 39% | 39%
go0% | 0% | 48% | 21% | 29%
html0% | 0% | 75% | 0% | 24%
yml0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
srt0% | 0% | 0% | 0% | 100%
webmanifest0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/products94% | 0% | 3% | <1% | 1%
src/aws-lambda0% | 58% | 10% | 17% | 13%
src/web-ui0% | 8% | 19% | 33% | 38%
src/recommendations0% | 42% | 19% | 16% | 21%
aws/cloudformation-templates0% | 8% | 67% | 9% | 15%
workshop/4-Messaging0% | 0% | 75% | 0% | 24%
src/users0% | 0% | 45% | 38% | 16%
generators0% | 0% | 76% | 0% | 23%
src/videos0% | 0% | 93% | 0% | 6%
generators/datagenerator0% | 0% | 0% | 33% | 66%
workshop/3-Experimentation0% | 0% | 0% | 80% | 19%
src/search0% | 0% | 0% | 67% | 32%
src/carts0% | 0% | 0% | 40% | 59%
src/orders0% | 0% | 0% | 0% | 100%
src/location0% | 0% | 0% | 0% | 100%
src/offers0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
videos0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
products.yaml
in src/products/src/products-service/data
22944 -
AnalyticsHandler.js
in src/web-ui/src/analytics
935 25
personalize-pre-create-campaigns.py
in src/aws-lambda/personalize-pre-create-campaigns
879 24
alexa-skill-lambda.py
in src/aws-lambda/alexa-skill-lambda
694 47
app.py
in src/recommendations/src/recommendations-service
605 23
pinpoint-auto-workshop.py
in src/aws-lambda/pinpoint-auto-workshop
539 21
deployment-support.yaml
in aws/cloudformation-templates
524 -
_template.yaml
in aws/cloudformation-templates/services
496 -
template.yaml
in aws/cloudformation-templates
476 -
web-ui-pipeline.yaml
in aws/cloudformation-templates
456 -
location.yaml
in aws/cloudformation-templates
456 -
pipeline.yaml
in aws/cloudformation-templates/services/service
417 -
repository.go
in src/products/src/products-service
409 14
location-geofence-event.py
in src/aws-lambda/location-geofence-event
383 22
service.yaml
in aws/cloudformation-templates/services/service
368 -
handlers.go
in src/users/src/users-service
358 13
Live.vue
in src/web-ui/src/public
353 -
notebook.yaml
in aws/cloudformation-templates/base
342 -
abandoned-cart-email-template.html
in workshop/4-Messaging/pinpoint-templates
285 -
_template.yaml
in aws/cloudformation-templates/base
284 -
Checkout.vue
in src/web-ui/src/public
280 -
resolvers.py
in src/recommendations/src/recommendations-service/experimentation
273 19
DemoWalkthroughPageLayout.vue
in src/web-ui/src/partials/AppModal/DemoWalkthrough
269 -
handlers.go
in src/products/src/products-service
266 18
ssm.yaml
in aws/cloudformation-templates/base
262 -
ProductDetail.vue
in src/web-ui/src/public
259 -
index.js
in src/web-ui/src/router
250 2
AmplifyMap.vue
in src/web-ui/src/public/components
248 -
_template.yaml
in aws/cloudformation-templates/services/service
246 -
generate_interactions_personalize.py
in generators
246 2
authentication.yaml
in aws/cloudformation-templates/base
244 -
braze-connected-content-email-template.html
in workshop/4-Messaging/braze-templates
242 -
localdev.go
in src/products/src/products-service
235 7
app.py
in src/videos/src/videos-service
228 19
CategoryDetail.vue
in src/web-ui/src/public
222 -
ConfirmShopper.vue
in src/web-ui/src/partials/ShopperSelect/pages
207 -
repository.go
in src/users/src/users-service
197 14
Main.vue
in src/web-ui/src/public
194 -
pinpoint-personalize.yaml
in aws/cloudformation-templates/services
191 -
Location.vue
in src/web-ui/src/public
191 -
users.py
in generators/datagenerator
185 14
plot.py
in workshop/3-Experimentation/src
164 10
ivs-create-channels.py
in src/aws-lambda/ivs-create-channels
160 10
Search.vue
in src/web-ui/src/partials/Navigation/Search
159 -
location-resource-stack.py
in src/aws-lambda/location-resource-stack
155 12
MetricsAndImpact.vue
in src/web-ui/src/partials/AppModal/DemoGuide/DemoGuideArticle/articles
153 -
LocationServices.vue
in src/web-ui/src/partials/AppModal/DemoGuide/DemoGuideArticle/articles
151 -
DemoGuide.vue
in src/web-ui/src/partials/AppModal/DemoWalkthrough/pages
148 -
Auth.vue
in src/web-ui/src/public
148 -
RealTimePersonalization.vue
in src/web-ui/src/partials/AppModal/DemoGuide/DemoGuideArticle/articles
147 -
Files With Most Units (Top 20)
File# lines# units
alexa-skill-lambda.py
in src/aws-lambda/alexa-skill-lambda
694 47
AnalyticsHandler.js
in src/web-ui/src/analytics
935 25
personalize-pre-create-campaigns.py
in src/aws-lambda/personalize-pre-create-campaigns
879 24
app.py
in src/recommendations/src/recommendations-service
605 23
location-geofence-event.py
in src/aws-lambda/location-geofence-event
383 22
pinpoint-auto-workshop.py
in src/aws-lambda/pinpoint-auto-workshop
539 21
resolvers.py
in src/recommendations/src/recommendations-service/experimentation
273 19
app.py
in src/videos/src/videos-service
228 19
handlers.go
in src/products/src/products-service
266 18
repository.go
in src/users/src/users-service
197 14
repository.go
in src/products/src/products-service
409 14
users.py
in generators/datagenerator
185 14
handlers.go
in src/users/src/users-service
358 13
location-resource-stack.py
in src/aws-lambda/location-resource-stack
155 12
rdsuserstate.py
in generators/datagenerator
60 11
ivs-create-channels.py
in src/aws-lambda/ivs-create-channels
160 10
usersRepository.js
in src/web-ui/src/repositories
68 10
plot.py
in workshop/3-Experimentation/src
164 10
output.py
in generators/datagenerator
65 10
experiment.py
in src/recommendations/src/recommendations-service/experimentation
60 9
Files With Long Lines (Top 20)

There are 88 files with lines longer than 120 characters. In total, there are 437 long lines.

File# lines# units# long lines
abandoned-cart-email-template.html
in workshop/4-Messaging/pinpoint-templates
285 - 49
braze-connected-content-email-template.html
in workshop/4-Messaging/braze-templates
242 - 47
PoweredByAWS.vue
in src/web-ui/src/components/PoweredByAWS
113 - 46
template.yaml
in aws/cloudformation-templates
476 - 29
location.yaml
in aws/cloudformation-templates
456 - 18
deployment-support.yaml
in aws/cloudformation-templates
524 - 18
_template.yaml
in aws/cloudformation-templates/services
496 - 14
_template.yaml
in aws/cloudformation-templates/base
284 - 13
AnalyticsHandler.js
in src/web-ui/src/analytics
935 25 10
TextMessaging.vue
in src/web-ui/src/partials/AppModal/DemoGuide/DemoGuideArticle/articles
86 - 9
Checkout.vue
in src/web-ui/src/public
280 - 9
handlers.go
in src/users/src/users-service
358 13 8
load_catalog.py
in src/products
103 1 7
Notifications.vue
in src/web-ui/src/public
140 - 6
Live.vue
in src/web-ui/src/public
353 - 6
mparticle.yaml
in aws/cloudformation-templates
122 - 5
notebook.yaml
in aws/cloudformation-templates/base
342 - 5
_template.yaml
in aws/cloudformation-templates/services/service
246 - 5
personalize-pre-create-campaigns.py
in src/aws-lambda/personalize-pre-create-campaigns
879 24 5
bot-intent-recommendations.py
in src/aws-lambda/bot-intent-recommendations
109 8 5