awslabs / aws-streaming-media-analytics
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 45 files with 2,282 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 3 medium size files (770 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (284 lines of code)
    • 40 very small files (1,228 lines of code)
0% | 0% | 33% | 12% | 53%
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% | 0% | 43% | 16% | 40%
jsx0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
graphql0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
web/reactplayer0% | 0% | 49% | 0% | 50%
lambda-functions/add-partition-function0% | 0% | 0% | 100% | 0%
lambda-functions/deploy-function0% | 0% | 0% | 87% | 12%
cloudformation0% | 0% | 0% | 0% | 100%
lambda-functions/totalvideoview-appsync-function0% | 0% | 0% | 0% | 100%
lambda-functions/recentvideoview-appsync-function0% | 0% | 0% | 0% | 100%
lambda-functions/activeuser-appsync-function0% | 0% | 0% | 0% | 100%
lambda-functions/fastly-logs-processor-function0% | 0% | 0% | 0% | 100%
lambda-functions/cloudfront-logs-processor-function0% | 0% | 0% | 0% | 100%
cloudformation/modules0% | 0% | 0% | 0% | 100%
Longest Files (Top 45)
File# lines# units
QoSSDK.js
in web/reactplayer/src/sdk
358 29
test-harness.js
in web/reactplayer/public/test-harness/js
209 11
VideoJSPlayer.js
in web/reactplayer/src/Components
203 11
index.js
in lambda-functions/add-partition-function
145 8
index.js
in lambda-functions/deploy-function
139 5
registerServiceWorker.js
in web/reactplayer/src
79 4
prep-data.py
in lambda-functions/fastly-logs-processor-function
64 1
index.js
in lambda-functions/recentvideoview-appsync-function
62 -
index.js
in lambda-functions/totalvideoview-appsync-function
62 -
prep-data.py
in lambda-functions/cloudfront-logs-processor-function
60 1
index.js
in lambda-functions/activeuser-appsync-function
58 -
App.css
in web/reactplayer/src
56 -
App.js
in web/reactplayer/src
53 1
SampleVideos.js
in web/reactplayer/src/Components
52 3
index.html
in web/reactplayer/public/test-harness
52 -
GetVideo.jsx
in web/reactplayer/src/Components
47 -
deployment_gluejob_only.yaml
in cloudformation
46 -
ActiveUser.jsx
in web/reactplayer/src/Components
45 -
AllVideos.jsx
in web/reactplayer/src/Components
39 -
SubscribeVideo.js
in web/reactplayer/src/Components
38 -
MetricsCaptured.js
in web/reactplayer/src/Components
36 3
SubscribeActiveUser.js
in web/reactplayer/src/Components
35 -
PopularVideos.js
in web/reactplayer/src/Components
35 -
AWSConnector.js
in web/reactplayer/src/sdk
34 4
aws-adapter.js
in web/reactplayer/public/test-harness/js
34 4
appsync_schema.graphql
in cloudformation
33 -
AppBar.js
in web/reactplayer/src/Components
29 1
template.yaml
in lambda-functions/deploy-function
19 -
index.html
in web/reactplayer/public
17 -
aws-exports.js
in web/reactplayer/src/sdk
16 -
aws-exports.js
in web/reactplayer/public/test-harness/js
15 -
template.yaml
in lambda-functions/totalvideoview-appsync-function
14 -
AllVideosQuery.js
in web/reactplayer/src/Queries
12 -
template.yaml
in lambda-functions/recentvideoview-appsync-function
10 -
template.yaml
in lambda-functions/activeuser-appsync-function
10 -
GetVideoQuery.js
in web/reactplayer/src/Queries
10 1
AllVideosSubscription.js
in web/reactplayer/src/Queries
10 -
GetVideoSubscription.js
in web/reactplayer/src/Queries
10 2
GetActiveUserQuery.js
in web/reactplayer/src/Queries
9 2
ActiveUserSubscription.js
in web/reactplayer/src/Queries
9 -
index.js
in web/reactplayer/src
6 -
index.css
in web/reactplayer/src
5 -
utils.js
in web/reactplayer/src/sdk/videojs
5 -
base_solution.yaml
in cloudformation/modules
1 -
demo_player.yaml
in cloudformation/modules
1 -
Files With Most Units (Top 17)
File# lines# units
QoSSDK.js
in web/reactplayer/src/sdk
358 29
VideoJSPlayer.js
in web/reactplayer/src/Components
203 11
test-harness.js
in web/reactplayer/public/test-harness/js
209 11
index.js
in lambda-functions/add-partition-function
145 8
index.js
in lambda-functions/deploy-function
139 5
AWSConnector.js
in web/reactplayer/src/sdk
34 4
registerServiceWorker.js
in web/reactplayer/src
79 4
aws-adapter.js
in web/reactplayer/public/test-harness/js
34 4
MetricsCaptured.js
in web/reactplayer/src/Components
36 3
SampleVideos.js
in web/reactplayer/src/Components
52 3
GetActiveUserQuery.js
in web/reactplayer/src/Queries
9 2
GetVideoSubscription.js
in web/reactplayer/src/Queries
10 2
prep-data.py
in lambda-functions/cloudfront-logs-processor-function
60 1
prep-data.py
in lambda-functions/fastly-logs-processor-function
64 1
GetVideoQuery.js
in web/reactplayer/src/Queries
10 1
App.js
in web/reactplayer/src
53 1
AppBar.js
in web/reactplayer/src/Components
29 1
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 31 long lines.

File# lines# units# long lines
test-harness.js
in web/reactplayer/public/test-harness/js
209 11 8
QoSSDK.js
in web/reactplayer/src/sdk
358 29 7
index.html
in web/reactplayer/public/test-harness
52 - 7
index.js
in lambda-functions/deploy-function
139 5 2
VideoJSPlayer.js
in web/reactplayer/src/Components
203 11 2
prep-data.py
in lambda-functions/cloudfront-logs-processor-function
60 1 1
index.js
in lambda-functions/recentvideoview-appsync-function
62 - 1
index.js
in lambda-functions/totalvideoview-appsync-function
62 - 1
index.js
in lambda-functions/activeuser-appsync-function
58 - 1
prep-data.py
in lambda-functions/fastly-logs-processor-function
64 1 1