awslabs / game-analytics-pipeline
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 21 files with 2,476 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (573 lines of code)
    • 4 medium size files (1,107 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (188 lines of code)
    • 15 very small files (608 lines of code)
0% | 23% | 44% | 7% | 24%
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% | 23% | 45% | 7% | 22%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
resources/solution-helper0% | 100% | 0% | 0% | 0%
services/api/admin0% | 0% | 98% | 0% | 1%
services/api/lambda-authorizer0% | 0% | 100% | 0% | 0%
resources/solution-helper/lib0% | 0% | 42% | 0% | 57%
services/events-processing/lib0% | 0% | 0% | 81% | 18%
services/analytics-processing/lib0% | 0% | 0% | 0% | 100%
services/data-lake/glue-scripts0% | 0% | 0% | 0% | 100%
services/data-lake/glue-partition-creator0% | 0% | 0% | 0% | 100%
services/events-processing0% | 0% | 0% | 0% | 100%
services/analytics-processing0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
index.js
in source/resources/solution-helper
573 21
admin.js
in source/services/api/admin/lib
427 16
index.js
in source/services/api/lambda-authorizer
235 11
cloudwatch-helper.js
in source/resources/solution-helper/lib
231 3
app.js
in source/services/api/admin/lib
214 -
event.js
in source/services/events-processing/lib
188 5
game_events_etl.py
in source/services/data-lake/glue-scripts
64 1
process.js
in source/services/analytics-processing/lib
59 -
dynamodb-helper.js
in source/resources/solution-helper/lib
58 3
kinesis-helper.js
in source/resources/solution-helper/lib
55 2
s3-helper.js
in source/resources/solution-helper/lib
53 3
cloudwatch.js
in source/services/analytics-processing/lib
53 4
index.js
in source/services/data-lake/glue-partition-creator
49 -
index.js
in source/services/events-processing/lib
42 -
glue-helper.js
in source/resources/solution-helper/lib
41 2
lambda-helper.js
in source/resources/solution-helper/lib
35 2
athena-helper.js
in source/resources/solution-helper/lib
33 2
metrics-helper.js
in source/resources/solution-helper/lib
32 2
index.js
in source/services/events-processing
13 1
index.js
in source/services/analytics-processing
13 1
index.js
in source/services/api/admin
8 -
Files With Most Units (Top 16)
File# lines# units
index.js
in source/resources/solution-helper
573 21
admin.js
in source/services/api/admin/lib
427 16
index.js
in source/services/api/lambda-authorizer
235 11
event.js
in source/services/events-processing/lib
188 5
cloudwatch.js
in source/services/analytics-processing/lib
53 4
cloudwatch-helper.js
in source/resources/solution-helper/lib
231 3
s3-helper.js
in source/resources/solution-helper/lib
53 3
dynamodb-helper.js
in source/resources/solution-helper/lib
58 3
kinesis-helper.js
in source/resources/solution-helper/lib
55 2
lambda-helper.js
in source/resources/solution-helper/lib
35 2
athena-helper.js
in source/resources/solution-helper/lib
33 2
metrics-helper.js
in source/resources/solution-helper/lib
32 2
glue-helper.js
in source/resources/solution-helper/lib
41 2
index.js
in source/services/events-processing
13 1
index.js
in source/services/analytics-processing
13 1
game_events_etl.py
in source/services/data-lake/glue-scripts
64 1
Files With Long Lines (Top 6)

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

File# lines# units# long lines
cloudwatch-helper.js
in source/resources/solution-helper/lib
231 3 18
index.js
in source/resources/solution-helper
573 21 12
index.js
in source/services/events-processing/lib
42 - 1
app.js
in source/services/api/admin/lib
214 - 1
index.js
in source/services/api/lambda-authorizer
235 11 1
index.js
in source/services/data-lake/glue-partition-creator
49 - 1