amazon-connect / amazon-connect-snippets
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 77 files with 8,920 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (911 lines of code)
    • 11 medium size files (3,945 lines of codeclsfd_ftr_w_mp_ins)
    • 15 small files (2,034 lines of code)
    • 50 very small files (2,030 lines of code)
0% | 10% | 44% | 22% | 22%
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
js0% | 41% | 31% | 9% | 16%
jsx0% | 0% | 74% | 13% | 12%
yaml0% | 0% | 64% | 18% | 16%
html0% | 0% | 58% | 28% | 13%
py0% | 0% | 0% | 58% | 41%
yml0% | 0% | 0% | 51% | 48%
css0% | 0% | 0% | 85% | 14%
ts0% | 0% | 0% | 77% | 22%
tsx0% | 0% | 0% | 30% | 69%
go0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
cs0% | 0% | 0% | 0% | 100%
java0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tools/CCPConnectivityTestTools0% | 65% | 21% | 13% | 0%
tools/CCPLogParser0% | 0% | 69% | 13% | 16%
projects/DynamicContactCenter0% | 0% | 100% | 0% | 0%
tools/ConnectCloudwatchDashboard0% | 0% | 82% | 0% | 17%
projects/RateLimiter0% | 0% | 70% | 29% | 0%
python/remote-control-center0% | 0% | 0% | 80% | 19%
javascript/programmatically-create-task-example0% | 0% | 0% | 70% | 29%
projects/ContextRouting0% | 0% | 0% | 60% | 39%
python/syncinstances0% | 0% | 0% | 100% | 0%
projects/LastAgentRouting0% | 0% | 0% | 100% | 0%
projects/GetSetDataByID0% | 0% | 0% | 100% | 0%
javascript/customAgentDesktop-AzureSSO0% | 0% | 0% | 24% | 75%
projects/SCV-CrossAccountSMS0% | 0% | 0% | 100% | 0%
python/contactflowhelper0% | 0% | 0% | 0% | 100%
projects/WisdomAPI0% | 0% | 0% | 0% | 100%
python/multiaccountmetrics0% | 0% | 0% | 0% | 100%
projects/HotMessage0% | 0% | 0% | 0% | 100%
powershell/New-ConnectUser0% | 0% | 0% | 0% | 100%
projects/RoutingTable0% | 0% | 0% | 0% | 100%
projects/LambdaAlias0% | 0% | 0% | 0% | 100%
go/GetQueueAvailableAgents0% | 0% | 0% | 0% | 100%
projects/CallerHistory0% | 0% | 0% | 0% | 100%
javascript/restrict-deskphone-in-ccp0% | 0% | 0% | 0% | 100%
projects/CrossRegionCrossAccount0% | 0% | 0% | 0% | 100%
go/StartOutboundVoiceContact0% | 0% | 0% | 0% | 100%
dotnet/OutboundExample0% | 0% | 0% | 0% | 100%
java/OutboundExample0% | 0% | 0% | 0% | 100%
python/LexDefaultIntentUtterance0% | 0% | 0% | 0% | 100%
python/holidaycheck0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
detectRTC.js
in tools/CCPConnectivityTestTools/scripts
911 40
dynamic-attribute-routing.yaml
in projects/DynamicContactCenter
496 -
RtcMetricsView.jsx
in tools/CCPLogParser/src
492 -
MetricsView.jsx
in tools/CCPLogParser/src
489 -
index.js
in tools/ConnectCloudwatchDashboard
411 8
SkewMetricsView.jsx
in tools/CCPLogParser/src
371 -
App.jsx
in tools/CCPLogParser/src
351 -
rate_limiter_cfn.yaml
in projects/RateLimiter
330 -
checkConnectivity.html
in tools/CCPConnectivityTestTools
295 -
findExtras.js
in tools/CCPLogParser/src/utils
275 8
LogView.jsx
in tools/CCPLogParser/src
225 -
ApiCallMetricsView.jsx
in tools/CCPLogParser/src
210 -
LogLineView.jsx
in tools/CCPLogParser/src
197 -
main.css
in tools/CCPConnectivityTestTools/styles
187 -
SnapshotListView.jsx
in tools/CCPLogParser/src
180 -
lambda_function.py
in python/remote-control-center/GetConfigLambda
168 7
index.html
in projects/RateLimiter
141 -
context.yaml
in projects/ContextRouting
139 -
sync_instances.py
in python/syncinstances
126 8
lastagentrouting.yml
in projects/LastAgentRouting
125 -
getsetdatabyid.yml
in projects/GetSetDataByID
125 -
amazon_connect_tasks_cloud_formation_template-stack.ts
in javascript/programmatically-create-task-example/lib
116 1
CreateTaskHandler.js
in javascript/programmatically-create-task-example/src/lambdaFunctions
110 4
Messages.js
in tools/CCPLogParser/src/utils
107 -
lambda_function.py
in python/remote-control-center/HydrateConfigTableLambda
106 5
Ccp.tsx
in javascript/customAgentDesktop-AzureSSO/webApp/src/components/Ccp
104 3
template.yaml
in projects/SCV-CrossAccountSMS
103 -
App.tsx
in javascript/customAgentDesktop-AzureSSO/webApp/src
100 2
lambda_function.py
in python/contactflowhelper
99 11
serviceWorker.js
in tools/CCPLogParser/src
92 4
stack.yaml
in tools/ConnectCloudwatchDashboard
88 -
CauseView.jsx
in tools/CCPLogParser/src
81 -
RtcMetricsViewGroup.jsx
in tools/CCPLogParser/src
81 -
index.js
in projects/WisdomAPI/Lambda
72 3
multi_account_metrics.py
in python/multiaccountmetrics
70 3
hotmessage.yml
in projects/HotMessage
68 -
template.yaml
in python/remote-control-center
66 -
DraggingView.jsx
in tools/CCPLogParser/src
64 -
LoadingView.jsx
in tools/CCPLogParser/src
62 -
EmptyView.jsx
in tools/CCPLogParser/src
61 -
ctrProcessor.py
in projects/ContextRouting/Lambda/Python
61 1
SendEmailHandler.js
in javascript/programmatically-create-task-example/src/lambdaFunctions
59 -
New-ConnectUser.ps1
in powershell/New-ConnectUser
59 -
routingtable.yml
in projects/RoutingTable
56 -
lambdaalias.yaml
in projects/LambdaAlias
55 -
main.go
in go/GetQueueAvailableAgents
52 1
callerhistory.yml
in projects/CallerHistory
49 -
MockApi.tsx
in javascript/customAgentDesktop-AzureSSO/webApp/src/components/MockApi
48 3
interpolator.js
in tools/CCPLogParser/src/utils
45 1
code.js
in javascript/restrict-deskphone-in-ccp
43 2
Files With Most Units (Top 20)
File# lines# units
detectRTC.js
in tools/CCPConnectivityTestTools/scripts
911 40
lambda_function.py
in python/contactflowhelper
99 11
index.js
in tools/ConnectCloudwatchDashboard
411 8
findExtras.js
in tools/CCPLogParser/src/utils
275 8
sync_instances.py
in python/syncinstances
126 8
lambda_function.py
in python/remote-control-center/GetConfigLambda
168 7
lambda_function.py
in python/remote-control-center/HydrateConfigTableLambda
106 5
serviceWorker.js
in tools/CCPLogParser/src
92 4
ErrorBoundary.tsx
in javascript/customAgentDesktop-AzureSSO/webApp/src/components/ErrorBoundary
30 4
CreateTaskHandler.js
in javascript/programmatically-create-task-example/src/lambdaFunctions
110 4
logger.ts
in javascript/customAgentDesktop-AzureSSO/webApp/src/util/logger
19 3
MockApi.tsx
in javascript/customAgentDesktop-AzureSSO/webApp/src/components/MockApi
48 3
Ccp.tsx
in javascript/customAgentDesktop-AzureSSO/webApp/src/components/Ccp
104 3
multi_account_metrics.py
in python/multiaccountmetrics
70 3
index.js
in projects/WisdomAPI/Lambda
72 3
App.tsx
in javascript/customAgentDesktop-AzureSSO/webApp/src
100 2
code.js
in javascript/restrict-deskphone-in-ccp
43 2
main.go
in go/StartOutboundVoiceContact
35 1
main.go
in go/GetQueueAvailableAgents
52 1
App.java
in java/OutboundExample/src/main/java/OutboundExample
21 1
Files With Long Lines (Top 20)

There are 21 files with lines longer than 120 characters. In total, there are 115 long lines.

File# lines# units# long lines
Messages.js
in tools/CCPLogParser/src/utils
107 - 18
detectRTC.js
in tools/CCPConnectivityTestTools/scripts
911 40 15
checkConnectivity.html
in tools/CCPConnectivityTestTools
295 - 14
dynamic-attribute-routing.yaml
in projects/DynamicContactCenter
496 - 13
index.js
in tools/ConnectCloudwatchDashboard
411 8 12
New-ConnectUser.ps1
in powershell/New-ConnectUser
59 - 8
App.jsx
in tools/CCPLogParser/src
351 - 5
MetricsView.jsx
in tools/CCPLogParser/src
489 - 5
SkewMetricsView.jsx
in tools/CCPLogParser/src
371 - 3
RtcMetricsView.jsx
in tools/CCPLogParser/src
492 - 3
rate_limiter_cfn.yaml
in projects/RateLimiter
330 - 3
findExtras.js
in tools/CCPLogParser/src/utils
275 8 2
LogView.jsx
in tools/CCPLogParser/src
225 - 2
ApiCallMetricsView.jsx
in tools/CCPLogParser/src
210 - 2
config.js
in javascript/customAgentDesktop-AzureSSO/webApp/src
19 - 2
lambda_function.py
in python/remote-control-center/GetConfigLambda
168 7 2
content.html
in projects/WisdomAPI
25 - 2
SnapshotListView.jsx
in tools/CCPLogParser/src
180 - 1
App.tsx
in javascript/customAgentDesktop-AzureSSO/webApp/src
100 2 1
code.js
in javascript/restrict-deskphone-in-ccp
43 2 1