awslabs / fhir-works-on-aws-persistence-ddb
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 35 files with 2,701 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (523 lines of code)
    • 4 medium size files (990 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (456 lines of code)
    • 27 very small files (732 lines of code)
0% | 19% | 36% | 16% | 27%
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% | 19% | 36% | 16% | 26%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/dataServices0% | 36% | 39% | 12% | 11%
testUtilities0% | 0% | 73% | 0% | 26%
src/ddbToEs0% | 0% | 65% | 0% | 34%
src/objectStorageService0% | 0% | 0% | 90% | 9%
src/bulkExport0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 35)
File# lines# units
dynamoDbBundleService.ts
in src/dataServices
523 11
dynamoDbDataService.ts
in src/dataServices
341 13
dynamoDbBundleServiceHelper.ts
in src/dataServices
223 6
GenerateStagingRequestsFactory.ts
in testUtilities
217 4
ddbToEsHelper.ts
in src/ddbToEs
209 4
dynamoDbParamBuilder.ts
in src/dataServices
174 11
s3DataService.ts
in src/objectStorageService
159 11
s3ObjectStorageService.ts
in src/objectStorageService
123 6
ddbToEsSync.ts
in src/ddbToEs
98 7
dynamoDbHelper.ts
in src/dataServices
84 4
bulkExport.ts
in src/bulkExport
78 -
dynamoDbUtil.ts
in src/dataServices
70 2
GenerateRollbackRequestsFactory.ts
in testUtilities
66 2
bulkExportS3PresignedUrlGenerator.ts
in src/bulkExport
42 1
startExportJob.ts
in src/bulkExport
38 -
getJobStatus.ts
in src/bulkExport
37 -
types.ts
in src/bulkExport
36 -
stopExportJob.ts
in src/bulkExport
30 -
updateStatus.ts
in src/bulkExport
21 -
AWS.ts
in src
17 -
codecov.yml
in root
16 -
index.ts
in src
12 -
s3.ts
in src/objectStorageService
12 -
ObjectNotFoundError.ts
in src/objectStorageService
10 1
objectStorageInterface.ts
in src/objectStorageService
9 -
ConditionalCheckFailedException.ts
in testUtilities
8 1
documentStatus.ts
in src/dataServices
8 -
loggerBuilder.ts
in src
7 1
ESBulkCommand.ts
in src/ddbToEs
6 -
bulkExportResultsUrlGenerator.ts
in src/bulkExport
6 -
dynamoDb.ts
in src/dataServices
6 -
offlineEnvVariables.ts
in src
5 -
index.ts
in src/ddbToEs
5 1
regExpressions.ts
in testUtilities
3 -
constants.ts
in src
2 -
Files With Most Units (Top 17)
File# lines# units
dynamoDbDataService.ts
in src/dataServices
341 13
s3DataService.ts
in src/objectStorageService
159 11
dynamoDbParamBuilder.ts
in src/dataServices
174 11
dynamoDbBundleService.ts
in src/dataServices
523 11
ddbToEsSync.ts
in src/ddbToEs
98 7
s3ObjectStorageService.ts
in src/objectStorageService
123 6
dynamoDbBundleServiceHelper.ts
in src/dataServices
223 6
GenerateStagingRequestsFactory.ts
in testUtilities
217 4
ddbToEsHelper.ts
in src/ddbToEs
209 4
dynamoDbHelper.ts
in src/dataServices
84 4
GenerateRollbackRequestsFactory.ts
in testUtilities
66 2
dynamoDbUtil.ts
in src/dataServices
70 2
ConditionalCheckFailedException.ts
in testUtilities
8 1
loggerBuilder.ts
in src
7 1
index.ts
in src/ddbToEs
5 1
ObjectNotFoundError.ts
in src/objectStorageService
10 1
bulkExportS3PresignedUrlGenerator.ts
in src/bulkExport
42 1
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 4 long lines.

File# lines# units# long lines
dynamoDbBundleService.ts
in src/dataServices
523 11 3
dynamoDbParamBuilder.ts
in src/dataServices
174 11 1