aws-samples / sitewise-data-ingestion-demo
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 24 files with 1,488 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (569 lines of code)
    • 20 very small files (919 lines of code)
0% | 0% | 0% | 38% | 61%
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% | 0% | 33% | 66%
js0% | 0% | 0% | 64% | 36%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib/asset-models0% | 0% | 0% | 100% | 0%
lib/lambda0% | 0% | 0% | 39% | 60%
lib/stacks0% | 0% | 0% | 71% | 28%
misc/data-generator0% | 0% | 0% | 0% | 100%
lib/assets0% | 0% | 0% | 0% | 100%
misc/windfarm-stack-manager0% | 0% | 0% | 0% | 100%
lib/kinesis0% | 0% | 0% | 0% | 100%
misc/asset-map-builder0% | 0% | 0% | 0% | 100%
lib/iot-rules0% | 0% | 0% | 0% | 100%
misc/cleanup0% | 0% | 0% | 0% | 100%
lib/timestream0% | 0% | 0% | 0% | 100%
lib/util0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 24)
File# lines# units
turbine-asset-model-construct.ts
in lib/asset-models
199 2
index.js
in lib/lambda/functions/asset-mapper
144 2
data-lake-stack.ts
in lib/stacks
114 1
wind-farm-asset-model-construct.ts
in lib/asset-models
112 2
data-lake-ingestion-fork-lambda-construct.ts
in lib/lambda
79 1
index.ts
in misc/windfarm-stack-manager/src
77 -
index.js
in lib/lambda/functions/data-lake-ingestion-fork-lambda
74 1
index.ts
in misc/asset-map-builder/src
69 -
asset-mapper-lambda-construct.ts
in lib/lambda
64 1
index.ts
in misc/data-generator/src
62 -
turbine.ts
in misc/data-generator/src
60 2
firehose-to-s3-delivery-stream-construct.ts
in lib/kinesis
56 1
data-generator.ts
in misc/data-generator/src
52 4
send-to-data-lake-rule-construct.ts
in lib/iot-rules
50 1
turbine-asset-construct.ts
in lib/assets
46 1
wind-farm-asset.ts
in lib/assets
43 1
sitewise-batch-put-entry.ts
in misc/data-generator/src
39 1
index.ts
in misc/cleanup/src
39 -
wind-farm-stack.ts
in lib/stacks
32 1
timestream-asset-data-target-construct.ts
in lib/timestream
27 1
data-lake-ingestion-stream-construct.ts
in lib/kinesis
18 1
asset-model-stack.ts
in lib/stacks
14 1
uid.ts
in lib/util
11 1
jest.config.js
in root
7 -
Files With Most Units (Top 19)
File# lines# units
data-generator.ts
in misc/data-generator/src
52 4
wind-farm-asset-model-construct.ts
in lib/asset-models
112 2
turbine-asset-model-construct.ts
in lib/asset-models
199 2
index.js
in lib/lambda/functions/asset-mapper
144 2
turbine.ts
in misc/data-generator/src
60 2
timestream-asset-data-target-construct.ts
in lib/timestream
27 1
data-lake-ingestion-stream-construct.ts
in lib/kinesis
18 1
firehose-to-s3-delivery-stream-construct.ts
in lib/kinesis
56 1
turbine-asset-construct.ts
in lib/assets
46 1
wind-farm-asset.ts
in lib/assets
43 1
uid.ts
in lib/util
11 1
index.js
in lib/lambda/functions/data-lake-ingestion-fork-lambda
74 1
data-lake-ingestion-fork-lambda-construct.ts
in lib/lambda
79 1
asset-mapper-lambda-construct.ts
in lib/lambda
64 1
send-to-data-lake-rule-construct.ts
in lib/iot-rules
50 1
asset-model-stack.ts
in lib/stacks
14 1
data-lake-stack.ts
in lib/stacks
114 1
wind-farm-stack.ts
in lib/stacks
32 1
sitewise-batch-put-entry.ts
in misc/data-generator/src
39 1
Files With Long Lines (Top 6)

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

File# lines# units# long lines
turbine-asset-model-construct.ts
in lib/asset-models
199 2 7
wind-farm-stack.ts
in lib/stacks
32 1 4
index.ts
in misc/windfarm-stack-manager/src
77 - 4
data-lake-ingestion-fork-lambda-construct.ts
in lib/lambda
79 1 2
uid.ts
in lib/util
11 1 1
wind-farm-asset-model-construct.ts
in lib/asset-models
112 2 1