aws-samples / non-profit-blockchain
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 202 files with 13,814 lines of code.
    • 0 very long files (0 lines of code)
    • 4 long files (3,092 lines of code)
    • 11 medium size files (2,840 lines of codeclsfd_ftr_w_mp_ins)
    • 22 small files (3,158 lines of code)
    • 165 very small files (4,724 lines of code)
0% | 22% | 20% | 22% | 34%
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% | 64% | 12% | 7% | 15%
scss0% | 11% | 22% | 26% | 39%
html0% | 0% | 39% | 15% | 45%
yaml0% | 0% | 27% | 47% | 25%
ts0% | 0% | 13% | 28% | 57%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ngo-identity/chaincode0% | 100% | 0% | 0% | 0%
ngo-events/chaincode0% | 100% | 0% | 0% | 0%
ngo-chaincode/src0% | 100% | 0% | 0% | 0%
ngo-ui/src0% | 7% | 23% | 25% | 44%
ngo-rest-api0% | 0% | 58% | 17% | 24%
ngo-lambda0% | 0% | 82% | 0% | 17%
ngo-identity/templates0% | 0% | 100% | 0% | 0%
ngo-fabric0% | 0% | 0% | 89% | 10%
ngo-events/templates0% | 0% | 0% | 77% | 22%
blockchain-explorer0% | 0% | 0% | 100% | 0%
ngo-lambda/src0% | 0% | 0% | 37% | 62%
ngo-events/listener0% | 0% | 0% | 0% | 100%
ngo-rest-api/connection-profile0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ngo.js
in ngo-identity/chaincode/src
855 32
ngo.js
in ngo-events/chaincode/src
815 29
ngo.js
in ngo-chaincode/src
796 28
_variables.scss
in ngo-ui/src/assets/scss
626 -
app.js
in ngo-rest-api
471 4
_custom-forms.scss
in ngo-ui/src/assets/scss
333 -
_reboot.scss
in ngo-ui/src/assets/scss
264 -
blockchain-progress.component.ts
in ngo-ui/src/app/ui/components/blockchain-progress
256 19
ngos-list.component.html
in ngo-ui/src/app/ui/ngos-list
229 -
blockchain-progress.component.scss
in ngo-ui/src/app/ui/components/blockchain-progress
229 -
_card.scss
in ngo-ui/src/assets/scss
216 -
cognito-apigateway-routes-template.yaml
in ngo-identity/templates
213 -
lambda-api-template.yaml
in ngo-lambda
213 -
ngo-details.component.html
in ngo-ui/src/app/ui/ngo-details
210 -
_forms.scss
in ngo-ui/src/assets/scss
206 -
_navbar.scss
in ngo-ui/src/assets/scss
197 -
fabric-client-node.yaml
in ngo-fabric
194 -
_theme.scss
in ngo-ui/src/assets/scss/amazon
188 -
_carousel.scss
in ngo-ui/src/assets/scss
175 -
eventListener.yaml
in ngo-events/templates
173 -
donate.component.html
in ngo-ui/src/app/ui/donate
168 -
hyperledger-explorer-cfn.yaml
in blockchain-explorer
166 -
ngos-list.component.ts
in ngo-ui/src/app/ui/ngos-list
157 6
_popover.scss
in ngo-ui/src/assets/scss
150 -
ngo-details.component.ts
in ngo-ui/src/app/ui/ngo-details
144 5
donorchart.component.ts
in ngo-ui/src/app/ui/components/donorchart
142 3
invoke.js
in ngo-rest-api
139 -
invoke.js
in ngo-lambda/src
135 1
_dropdown.scss
in ngo-ui/src/assets/scss
133 -
_tables.scss
in ngo-ui/src/assets/scss
122 -
_modal.scss
in ngo-ui/src/assets/scss
121 -
_forms.scss
in ngo-ui/src/assets/scss/mixins
115 -
_input-group.scss
in ngo-ui/src/assets/scss
113 -
_button-group.scss
in ngo-ui/src/assets/scss
109 -
amb.yaml
in ngo-fabric
107 -
eventHandler.yaml
in ngo-events/templates
107 -
donor.service.ts
in ngo-ui/src/app/services/shared
103 7
ngo-connection-profile-byfn.yaml
in ngo-rest-api/connection-profile
98 -
_tooltip.scss
in ngo-ui/src/assets/scss
93 -
blockchain.component.ts
in ngo-ui/src/app/ui/shared/blockchain
92 4
_buttons.scss
in ngo-ui/src/assets/scss
90 -
_buttons.scss
in ngo-ui/src/assets/scss/mixins
86 -
_fonts.scss
in ngo-ui/src/assets/scss/amazon
84 -
_print.scss
in ngo-ui/src/assets/scss
84 -
dashboard.component.html
in ngo-ui/src/app/ui/dashboard
83 -
sidenav.component.scss
in ngo-ui/src/app/ui/shared/sidenav
83 -
_type.scss
in ngo-ui/src/assets/scss
82 -
_nav.scss
in ngo-ui/src/assets/scss
76 -
connection.js
in ngo-rest-api
75 2
privateSubnet.yaml
in ngo-events/templates
73 -
Files With Most Units (Top 20)
File# lines# units
ngo.js
in ngo-identity/chaincode/src
855 32
ngo.js
in ngo-events/chaincode/src
815 29
ngo.js
in ngo-chaincode/src
796 28
blockchain-progress.component.ts
in ngo-ui/src/app/ui/components/blockchain-progress
256 19
ngo.service.ts
in ngo-ui/src/app/services
66 9
donor.service.ts
in ngo-ui/src/app/services/shared
103 7
ngos-list.component.ts
in ngo-ui/src/app/ui/ngos-list
157 6
dashboard.service.ts
in ngo-ui/src/app/services
70 6
ngo-details.component.ts
in ngo-ui/src/app/ui/ngo-details
144 5
session.service.ts
in ngo-ui/src/app/services/shared
44 5
blockchain.component.ts
in ngo-ui/src/app/ui/shared/blockchain
92 4
utils.service.ts
in ngo-ui/src/app/services/shared
41 4
app.js
in ngo-rest-api
471 4
query.js
in ngo-lambda/src
49 4
ngo.model.ts
in ngo-ui/src/app/models
53 3
donation.model.ts
in ngo-ui/src/app/models
38 3
breadcrumb.component.ts
in ngo-ui/src/app/ui/shared/breadcrumb
39 3
donorchart.component.ts
in ngo-ui/src/app/ui/components/donorchart
142 3
socket.service.ts
in ngo-ui/src/app/services/shared
40 3
setupFabricClient.js
in ngo-events/listener/src
50 3
Files With Long Lines (Top 20)

There are 39 files with lines longer than 120 characters. In total, there are 222 long lines.

File# lines# units# long lines
ngo.js
in ngo-identity/chaincode/src
855 32 31
ngo.js
in ngo-events/chaincode/src
815 29 31
ngo.js
in ngo-chaincode/src
796 28 31
ngos-list.component.html
in ngo-ui/src/app/ui/ngos-list
229 - 17
_variables.scss
in ngo-ui/src/assets/scss
626 - 16
ngo-details.component.html
in ngo-ui/src/app/ui/ngo-details
210 - 12
invoke.js
in ngo-rest-api
139 - 9
invoke.js
in ngo-lambda/src
135 1 8
ngo-connection-profile-byfn.yaml
in ngo-rest-api/connection-profile
98 - 5
cognito-apigateway-routes-template.yaml
in ngo-identity/templates
213 - 4
donate.component.html
in ngo-ui/src/app/ui/donate
168 - 4
blocklistener.js
in ngo-rest-api
57 - 4
chaincodelistener.js
in ngo-events/listener/src
42 2 4
_functions.scss
in ngo-ui/src/assets/scss
54 - 3
blockchain-progress.component.html
in ngo-ui/src/app/ui/components/blockchain-progress
43 - 3
signup.component.html
in ngo-ui/src/app/ui/signup
58 - 3
query.js
in ngo-rest-api
61 - 3
app.js
in ngo-rest-api
471 4 3
connection.js
in ngo-rest-api
75 2 3
lambda-api-template.yaml
in ngo-lambda
213 - 3