awslabs / amazon-s3-glacier-refreezer
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 52 files with 3,961 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (474 lines of codeclsfd_ftr_w_mp_ins)
    • 11 small files (1,552 lines of code)
    • 39 very small files (1,935 lines of code)
0% | 0% | 11% | 39% | 48%
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
ts0% | 0% | 28% | 50% | 21%
js0% | 0% | 0% | 31% | 68%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/lib0% | 0% | 28% | 50% | 21%
source/lambda/calculateTreehash0% | 0% | 0% | 55% | 44%
source/lambda/requestArchives0% | 0% | 0% | 58% | 41%
source/lambda/copyChunk0% | 0% | 0% | 53% | 46%
source/lambda/requestInventory0% | 0% | 0% | 48% | 51%
source/lambda/copyToDestinationBucket0% | 0% | 0% | 0% | 100%
source/lambda/splitArchive0% | 0% | 0% | 0% | 100%
source/lambda/postMetrics0% | 0% | 0% | 0% | 100%
source/lambda/deployGlueJobScript0% | 0% | 0% | 0% | 100%
source/lambda/calculateMetrics0% | 0% | 0% | 0% | 100%
source/lambda/sendAnonymousStats0% | 0% | 0% | 0% | 100%
source/lambda/downloadInventory0% | 0% | 0% | 0% | 100%
source/lambda/generateUuid0% | 0% | 0% | 0% | 100%
source/lambda/toLowercase0% | 0% | 0% | 0% | 100%
deployment/cdk-solution-helper0% | 0% | 0% | 0% | 100%
source/lambda/downloadInventoryPart0% | 0% | 0% | 0% | 100%
source0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
stage-two-orchestrator.ts
in source/lib
245 1
monitoring.ts
in source/lib
229 4
amazon-s3-glacier-refreezer-stack.ts
in source/lib
177 1
index.js
in source/lambda/requestArchives
177 3
stage-two.ts
in source/lib
155 1
iam-permissions.ts
in source/lib
153 9
glue-data-catalog.ts
in source/lib
141 1
index.js
in source/lambda/copyChunk
137 10
storageService.js
in source/lambda/requestInventory/lib
133 8
index.js
in source/lambda/calculateTreehash
128 4
stage-three.ts
in source/lib
121 1
db.js
in source/lambda/calculateTreehash/lib
118 7
stage-four.ts
in source/lib
112 1
trigger.js
in source/lambda/calculateTreehash/lib
99 5
treehash.js
in source/lambda/calculateTreehash/lib
97 5
ddb-data-catalog.ts
in source/lib
96 3
copy.js
in source/lambda/copyToDestinationBucket/lib
94 7
stage-one.ts
in source/lib
93 1
index.js
in source/lambda/splitArchive
91 5
db.js
in source/lambda/requestArchives/lib
85 3
index.js
in source/lambda/requestInventory
83 1
db.js
in source/lambda/copyChunk/lib
78 4
index.js
in source/lambda/downloadInventory
74 5
db.js
in source/lambda/copyToDestinationBucket/lib
71 4
s3-staging-bucket.ts
in source/lib
60 2
dynamo.js
in source/lambda/calculateMetrics/lib
60 4
partition-inventory.py
in source/lambda/deployGlueJobScript
57 2
index.js
in source/lambda/postMetrics
56 1
solution-builders-anonymous-statistics.ts
in source/lib
52 1
index.js
in source/lambda/sendAnonymousStats
50 2
cfn-nag-suppressor.ts
in source/lib
48 4
filenameparser.js
in source/lambda/requestArchives/lib
42 3
index.js
in source/lambda/copyToDestinationBucket
41 2
trigger.js
in source/lambda/copyChunk/lib
40 2
metrics.js
in source/lambda/postMetrics/lib
39 1
db.js
in source/lambda/splitArchive/lib
39 2
cloudformation.js
in source/lambda/requestInventory/lib
34 1
cloudformation.js
in source/lambda/toLowercase/lib
34 1
cloudformation.js
in source/lambda/sendAnonymousStats/lib
33 1
cloudformation.js
in source/lambda/deployGlueJobScript/lib
33 1
cloudformation.js
in source/lambda/generateUuid/lib
33 1
index.js
in deployment/cdk-solution-helper
33 -
index.js
in source/lambda/calculateMetrics
32 1
index.js
in source/lambda/deployGlueJobScript
29 1
dynamo.js
in source/lambda/postMetrics/lib
28 1
index.js
in source/lambda/downloadInventoryPart
25 1
index.js
in source/lambda/generateUuid
21 1
index.js
in source/lambda/toLowercase
17 1
parameterParser.js
in source/lambda/requestInventory/lib
14 2
glacierService.js
in source/lambda/requestInventory/lib
10 1
Files With Most Units (Top 20)
File# lines# units
index.js
in source/lambda/copyChunk
137 10
iam-permissions.ts
in source/lib
153 9
storageService.js
in source/lambda/requestInventory/lib
133 8
db.js
in source/lambda/calculateTreehash/lib
118 7
copy.js
in source/lambda/copyToDestinationBucket/lib
94 7
trigger.js
in source/lambda/calculateTreehash/lib
99 5
treehash.js
in source/lambda/calculateTreehash/lib
97 5
index.js
in source/lambda/downloadInventory
74 5
index.js
in source/lambda/splitArchive
91 5
cfn-nag-suppressor.ts
in source/lib
48 4
monitoring.ts
in source/lib
229 4
db.js
in source/lambda/copyChunk/lib
78 4
dynamo.js
in source/lambda/calculateMetrics/lib
60 4
index.js
in source/lambda/calculateTreehash
128 4
db.js
in source/lambda/copyToDestinationBucket/lib
71 4
ddb-data-catalog.ts
in source/lib
96 3
db.js
in source/lambda/requestArchives/lib
85 3
filenameparser.js
in source/lambda/requestArchives/lib
42 3
index.js
in source/lambda/requestArchives
177 3
s3-staging-bucket.ts
in source/lib
60 2
Files With Long Lines (Top 16)

There are 16 files with lines longer than 120 characters. In total, there are 47 long lines.

File# lines# units# long lines
amazon-s3-glacier-refreezer-stack.ts
in source/lib
177 1 8
stage-three.ts
in source/lib
121 1 7
stage-two-orchestrator.ts
in source/lib
245 1 5
partition-inventory.py
in source/lambda/deployGlueJobScript
57 2 5
index.js
in source/lambda/requestInventory
83 1 4
stage-two.ts
in source/lib
155 1 3
stage-four.ts
in source/lib
112 1 3
stage-one.ts
in source/lib
93 1 2
index.js
in source/lambda/calculateTreehash
128 4 2
index.js
in source/lambda/postMetrics
56 1 2
ddb-data-catalog.ts
in source/lib
96 3 1
glue-data-catalog.ts
in source/lib
141 1 1
monitoring.ts
in source/lib
229 4 1
storageService.js
in source/lambda/requestInventory/lib
133 8 1
index.js
in source/lambda/requestArchives
177 3 1
index.js
in source/lambda/copyToDestinationBucket
41 2 1