awslabs / aws-servicebroker
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 138 files with 29,565 lines of code.
    • 9 very long files (12,838 lines of code)
    • 8 long files (5,761 lines of code)
    • 16 medium size files (4,914 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,601 lines of code)
    • 89 very small files (3,451 lines of code)
43% | 19% | 16% | 8% | 11%
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
yaml49% | 26% | 16% | 5% | 1%
py46% | 0% | 15% | 15% | 22%
go0% | 48% | 25% | 14% | 12%
html0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
tpl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
sample-apps/rds65% | 0% | 21% | 2% | 9%
templates/rdsoracle100% | 0% | 0% | 0% | 0%
templates/auroramysql100% | 0% | 0% | 0% | 0%
templates/rdspostgresql99% | 0% | 0% | 0% | <1%
templates/rdsmssql100% | 0% | 0% | 0% | 0%
templates/rdsmysql98% | 0% | 0% | 0% | 1%
templates/rdsmariadb99% | 0% | 0% | 0% | <1%
templates/aurorapostgresql100% | 0% | 0% | 0% | 0%
pkg/broker0% | 57% | 18% | 10% | 13%
templates/documentdb0% | 100% | 0% | 0% | 0%
templates/redshift0% | 98% | 0% | 0% | 1%
templates/elasticsearch0% | 100% | 0% | 0% | 0%
templates/mq0% | 100% | 0% | 0% | 0%
templates/elasticache0% | 98% | 0% | 0% | 1%
templates/emr0% | 97% | 0% | 0% | 2%
templates/lex0% | 0% | 57% | 0% | 42%
templates/s30% | 0% | 98% | 0% | 1%
templates/athena0% | 0% | 96% | 0% | 3%
templates/cognito0% | 0% | 100% | 0% | 0%
templates/sqs0% | 0% | 95% | 0% | 4%
templates/sns0% | 0% | 97% | 0% | 2%
packaging/openshift0% | 0% | 100% | 0% | 0%
pkg/dynamodbadapter0% | 0% | 100% | 0% | 0%
templates/dynamodb0% | 0% | 94% | 0% | 5%
templates/kinesis0% | 0% | 96% | 0% | 3%
templates/kms0% | 0% | 96% | 0% | 3%
templates/codecommit0% | 0% | 0% | 100% | 0%
sample-apps/route530% | 0% | 0% | 54% | 45%
sample-apps/elasticache0% | 0% | 0% | 59% | 40%
sample-apps/dynamodb0% | 0% | 0% | 57% | 42%
templates/route530% | 0% | 0% | 95% | 4%
sample-apps/s30% | 0% | 0% | 57% | 42%
templates/polly0% | 0% | 0% | 96% | 4%
sample-apps/emr0% | 0% | 0% | 52% | 47%
sample-apps/redshift0% | 0% | 0% | 52% | 47%
templates/rekognition0% | 0% | 0% | 95% | 4%
sample-apps/sqs0% | 0% | 0% | 48% | 51%
templates/translate0% | 0% | 0% | 94% | 5%
cmd/servicebroker0% | 0% | 0% | 100% | 0%
packaging/helm0% | 0% | 0% | 35% | 64%
sample-apps/sns0% | 0% | 0% | 0% | 100%
packaging/cloudfoundry0% | 0% | 0% | 0% | 100%
setup0% | 0% | 0% | 0% | 100%
functions/lex_custom_slot_type0% | 0% | 0% | 0% | 100%
functions/lex_intent0% | 0% | 0% | 0% | 100%
functions/iam_service_linked_role0% | 0% | 0% | 0% | 100%
functions/lex_bot0% | 0% | 0% | 0% | 100%
functions/generate_password0% | 0% | 0% | 0% | 100%
functions/get_cidrs0% | 0% | 0% | 0% | 100%
functions/get_emrcidrs0% | 0% | 0% | 0% | 100%
functions/generate_emrname0% | 0% | 0% | 0% | 100%
functions/generate_dbname0% | 0% | 0% | 0% | 100%
functions/get_azs0% | 0% | 0% | 0% | 100%
pkg/serviceinstance0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
testcases0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
bottle.py
in sample-apps/rds/sample-app/src
2803 322
template.yaml
in templates/rdsoracle
1514 -
template.yaml
in templates/auroramysql
1293 -
template.yaml
in templates/rdspostgresql
1279 -
template.yaml
in templates/rdsmssql
1255 -
template.yaml
in templates/rdsmysql
1236 -
template.yaml
in templates/rdsmariadb
1226 -
template.yaml
in templates/aurorapostgresql
1136 -
connections.py
in sample-apps/rds/sample-app/src/pymysql
1096 107
template.yaml
in templates/documentdb
964 -
template.yaml
in templates/redshift
885 -
template.yaml
in templates/elasticsearch
825 -
template.yaml
in templates/mq
815 -
template.yaml
in templates/elasticache
656 -
util.go
in pkg/broker
588 37
template.yaml
in templates/emr
515 -
api.go
in pkg/broker
513 9
template.yaml
in templates/lex
475 -
ER.py
in sample-apps/rds/sample-app/src/pymysql/constants
471 -
template.yaml
in templates/s3
386 -
awsbroker.go
in pkg/broker
357 10
template.yaml
in templates/athena
348 -
template.yaml
in templates/cognito
344 -
cursors.py
in sample-apps/rds/sample-app/src/pymysql
330 39
template.yaml
in templates/sqs
311 -
converters.py
in sample-apps/rds/sample-app/src/pymysql
251 29
template.yaml
in templates/sns
250 -
aws-servicebroker.yaml
in packaging/openshift
249 -
charset.py
in sample-apps/rds/sample-app/src/pymysql
242 9
adapter.go
in pkg/dynamodbadapter
229 11
template.yaml
in templates/dynamodb
226 -
template.yaml
in templates/kinesis
223 -
template.yaml
in templates/kms
222 -
template.yaml
in templates/codecommit
194 -
types.go
in pkg/broker
191 -
app.py
in sample-apps/route53/sample-app/src
186 10
app.py
in sample-apps/elasticache/sample-app/src
176 10
template.yaml
in templates/route53
172 -
app.py
in sample-apps/dynamodb/sample-app/src
172 10
template.yaml
in templates/polly
168 -
app.py
in sample-apps/s3/sample-app/src
168 10
app.py
in sample-apps/emr/sample-app/src
162 10
app.py
in sample-apps/redshift/sample-app/src
161 10
app.py
in sample-apps/rds/sample-app/src
161 10
template.yaml
in templates/rekognition
149 -
app.py
in sample-apps/sqs/sample-app/src
146 10
template.yaml
in templates/translate
140 -
main.go
in cmd/servicebroker
131 5
broker-deployment.yaml
in packaging/helm/aws-servicebroker/templates
124 -
aws_sdk.go
in pkg/broker
94 11
Files With Most Units (Top 20)
File# lines# units
bottle.py
in sample-apps/rds/sample-app/src
2803 322
connections.py
in sample-apps/rds/sample-app/src/pymysql
1096 107
cursors.py
in sample-apps/rds/sample-app/src/pymysql
330 39
util.go
in pkg/broker
588 37
converters.py
in sample-apps/rds/sample-app/src/pymysql
251 29
adapter.go
in pkg/dynamodbadapter
229 11
aws_sdk.go
in pkg/broker
94 11
app.py
in sample-apps/sns/sample-app/src
78 11
awsbroker.go
in pkg/broker
357 10
app.py
in sample-apps/sqs/sample-app/src
146 10
app.py
in sample-apps/redshift/sample-app/src
161 10
app.py
in sample-apps/emr/sample-app/src
162 10
app.py
in sample-apps/s3/sample-app/src
168 10
app.py
in sample-apps/rds/sample-app/src
161 10
_socketio.py
in sample-apps/rds/sample-app/src/pymysql
75 10
app.py
in sample-apps/dynamodb/sample-app/src
172 10
app.py
in sample-apps/elasticache/sample-app/src
176 10
app.py
in sample-apps/route53/sample-app/src
186 10
api.go
in pkg/broker
513 9
sampleaws.py
in sample-apps/redshift/sample-app/src
78 9
Files With Long Lines (Top 20)

There are 45 files with lines longer than 120 characters. In total, there are 187 long lines.

File# lines# units# long lines
util.go
in pkg/broker
588 37 16
template.yaml
in templates/auroramysql
1293 - 13
api.go
in pkg/broker
513 9 13
awsbroker.go
in pkg/broker
357 10 10
template.yaml
in templates/codecommit
194 - 8
template.yaml
in templates/rdsoracle
1514 - 7
template.yaml
in templates/elasticsearch
825 - 6
template.yaml
in templates/s3
386 - 6
template.yaml
in templates/documentdb
964 - 6
template.yaml
in templates/aurorapostgresql
1136 - 6
template.yaml
in templates/athena
348 - 6
cli.go
in pkg/broker
18 1 6
main.go
in cmd/servicebroker
131 5 6
template.yaml
in templates/rdsmssql
1255 - 5
tile.yml
in packaging/cloudfoundry
85 - 5
template.yaml
in templates/lex
475 - 4
template.yaml
in templates/mq
815 - 4
types.go
in pkg/broker
191 - 4
aws-servicebroker.yaml
in packaging/openshift
249 - 4
template.yaml
in templates/sqs
311 - 3