microsoft / Dynamics-365-Fraud-Protection-Samples
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 229 files with 10,964 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (549 lines of code)
    • 10 medium size files (2,712 lines of codeclsfd_ftr_w_mp_ins)
    • 17 small files (2,289 lines of code)
    • 201 very small files (5,414 lines of code)
0% | 5% | 24% | 20% | 49%
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
cs0% | 7% | 31% | 16% | 44%
php0% | 0% | 74% | 23% | 2%
cshtml0% | 0% | 0% | 32% | 67%
scss0% | 0% | 0% | 32% | 67%
phtml0% | 0% | 0% | 50% | 49%
css0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/Web/Controllers0% | 32% | 64% | 0% | 3%
src/Infrastructure/Data0% | 0% | 68% | 0% | 31%
eCommerce platforms/Adobe Magento/src0% | 0% | 57% | 29% | 13%
src/Web/Helpers0% | 0% | 100% | 0% | 0%
src/Infrastructure/Identity0% | 0% | 33% | 56% | 10%
src/Web/Views0% | 0% | 0% | 35% | 64%
src/Web/Areas0% | 0% | 0% | 35% | 64%
src/Infrastructure/Services0% | 0% | 0% | 64% | 35%
src/ApplicationCore/Entities0% | 0% | 0% | 10% | 89%
src/Web/wwwroot0% | 0% | 0% | 17% | 82%
src/Web0% | 0% | 0% | 71% | 28%
src/ApplicationCore/Services0% | 0% | 0% | 51% | 48%
src/Web/Services0% | 0% | 0% | 38% | 61%
src/Web/ViewModels0% | 0% | 0% | 0% | 100%
src/ApplicationCore/Interfaces0% | 0% | 0% | 0% | 100%
src/Web/Extensions0% | 0% | 0% | 0% | 100%
src/Web/Middleware0% | 0% | 0% | 0% | 100%
src/ApplicationCore/Specifications0% | 0% | 0% | 0% | 100%
src/ApplicationCore/Exceptions0% | 0% | 0% | 0% | 100%
src/Infrastructure/Extensions0% | 0% | 0% | 0% | 100%
src/Web/ViewComponents0% | 0% | 0% | 0% | 100%
src/Infrastructure/Utilities0% | 0% | 0% | 0% | 100%
src/Web/Interfaces0% | 0% | 0% | 0% | 100%
src/Infrastructure/Logging0% | 0% | 0% | 0% | 100%
src/ApplicationCore0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
AccountController.cs
in src/Web/Controllers
549 21
ManageController.cs
in src/Web/Controllers
420 14
BasketController.cs
in src/Web/Controllers
409 12
OnepageController.php
in eCommerce platforms/Adobe Magento/src/code/local/Microsoft/Dfp/controllers/Checkout
307 10
HelperFunctions.cs
in src/Web/Helpers
297 -
OrderController.cs
in src/Web/Controllers
248 13
20180916091145_Initial.cs
in src/Infrastructure/Identity/Migrations
219 2
20190302011807_Initial.Designer.cs
in src/Infrastructure/Data/Migrations
205 1
Observer.php
in eCommerce platforms/Adobe Magento/src/code/local/Microsoft/Dfp/Model
203 12
CatalogContextModelSnapshot.cs
in src/Infrastructure/Data/Migrations
203 1
20190302011807_Initial.cs
in src/Infrastructure/Data/Migrations
201 2
cshtml
CheckoutDetails.cshtml
in src/Web/Views/Basket
188 -
20180916091145_Initial.Designer.cs
in src/Infrastructure/Identity/Migrations
187 1
AppIdentityDbContextModelSnapshot.cs
in src/Infrastructure/Identity/Migrations
185 1
Data.php
in eCommerce platforms/Adobe Magento/src/code/local/Microsoft/Dfp/Helper
160 12
FraudProtectionService.cs
in src/Infrastructure/Services
158 16
Order.cs
in src/ApplicationCore/Entities/OrderAggregate
149 2
catalog.component.scss
in src/Web/wwwroot/css/catalog
130 -
cshtml
Label.cshtml
in src/Web/Views/Order
126 -
cshtml
Register.cshtml
in src/Web/Views/Account
124 -
cshtml
Details.cshtml
in src/Web/Areas/Admin/Views/Manage
118 -
Startup.cs
in src/Web
117 7
cshtml
ManagePaymentInstrument.cshtml
in src/Web/Views/Manage
114 -
cshtml
Index.cshtml
in src/Web/Views/Manage
112 -
BasketService.cs
in src/ApplicationCore/Services
108 8
ManageController.cs
in src/Web/Areas/Admin/Controllers
108 9
phtml
edit.phtml
in eCommerce platforms/Adobe Magento/src/design/frontend/base/default/template/dfp/customer/form
104 -
CatalogService.cs
in src/Web/Services
101 2
cshtml
Edit.cshtml
in src/Web/Areas/Admin/Views/Manage
99 -
catalog.component.css
in src/Web/wwwroot/css/catalog
98 -
CatalogContext.cs
in src/Infrastructure/Data
93 8
EfRepository.cs
in src/Infrastructure/Data
93 12
Purchase.cs
in src/ApplicationCore/Entities/FraudProtectionApiModels
92 -
cshtml
_Layout.cshtml
in src/Web/Views/Shared
90 -
cshtml
_LoginPartial.cshtml
in src/Web/Views/Shared
89 -
cshtml
Return.cshtml
in src/Web/Views/Order
88 -
SharedEntities.cs
in src/ApplicationCore/Entities/FraudProtectionApiModels
87 -
CatalogContextSeed.cs
in src/Infrastructure/Data
87 4
cshtml
Chargeback.cshtml
in src/Web/Views/Order
86 -
BasketViewModelService.cs
in src/Web/Services
84 4
cshtml
Index.cshtml
in src/Web/Views/Basket
82 -
phtml
methods.phtml
in eCommerce platforms/Adobe Magento/src/design/frontend/base/default/template/dfp/onepage/payment
80 -
orders.component.scss
in src/Web/wwwroot/css/orders
79 -
SharedEnums.cs
in src/ApplicationCore/Entities/FraudProtectionApiModels
76 -
cshtml
Detail.cshtml
in src/Web/Views/Order
76 -
ExceptionHandlingMiddleware.cs
in src/Web/Middleware
73 2
cshtml
_LoginPartial.cshtml
in src/Web/Areas/Admin/Views/Shared
72 -
app.css
in src/Web/wwwroot/css
69 -
basket.component.scss
in src/Web/wwwroot/css/basket
69 -
cshtml
_Layout.cshtml
in src/Web/Areas/Admin/Views/Shared
63 -
Files With Most Units (Top 20)
File# lines# units
AccountController.cs
in src/Web/Controllers
549 21
FraudProtectionService.cs
in src/Infrastructure/Services
158 16
ManageController.cs
in src/Web/Controllers
420 14
OrderController.cs
in src/Web/Controllers
248 13
Data.php
in eCommerce platforms/Adobe Magento/src/code/local/Microsoft/Dfp/Helper
160 12
Observer.php
in eCommerce platforms/Adobe Magento/src/code/local/Microsoft/Dfp/Model
203 12
EfRepository.cs
in src/Infrastructure/Data
93 12
BasketController.cs
in src/Web/Controllers
409 12
OnepageController.php
in eCommerce platforms/Adobe Magento/src/code/local/Microsoft/Dfp/controllers/Checkout
307 10
ManageController.cs
in src/Web/Areas/Admin/Controllers
108 9
BasketService.cs
in src/ApplicationCore/Services
108 8
CatalogContext.cs
in src/Infrastructure/Data
93 8
Startup.cs
in src/Web
117 7
FraudProtectionApiException.cs
in src/ApplicationCore/Exceptions
25 5
HttpClientExtensions.cs
in src/Infrastructure/Extensions
43 5
BasketNotFoundException.cs
in src/ApplicationCore/Exceptions
19 4
CatalogContextSeed.cs
in src/Infrastructure/Data
87 4
BasketViewModelService.cs
in src/Web/Services
84 4
Basket.cs
in src/Web/ViewComponents
46 4
BaseSpecification.cs
in src/ApplicationCore/Specifications
25 3
Files With Long Lines (Top 20)

There are 70 files with lines longer than 120 characters. In total, there are 258 long lines.

File# lines# units# long lines
20190302011807_Initial.Designer.cs
in src/Infrastructure/Data/Migrations
205 1 19
CatalogContextModelSnapshot.cs
in src/Infrastructure/Data/Migrations
203 1 19
cshtml
CheckoutDetails.cshtml
in src/Web/Views/Basket
188 - 13
phtml
edit.phtml
in eCommerce platforms/Adobe Magento/src/design/frontend/base/default/template/dfp/customer/form
104 - 12
CatalogContextSeed.cs
in src/Infrastructure/Data
87 4 12
BasketController.cs
in src/Web/Controllers
409 12 10
AccountController.cs
in src/Web/Controllers
549 21 8
ManageController.cs
in src/Web/Controllers
420 14 7
OnepageController.php
in eCommerce platforms/Adobe Magento/src/code/local/Microsoft/Dfp/controllers/Checkout
307 10 6
cshtml
Details.cshtml
in src/Web/Areas/Admin/Views/Manage
118 - 6
FakeCreditCardBankResponses.cs
in src/Web/Services
25 - 6
cshtml
Register.cshtml
in src/Web/Views/Account
124 - 6
cshtml
Index.cshtml
in src/Web/Views/Basket
82 - 6
cshtml
ManagePaymentInstrument.cshtml
in src/Web/Views/Manage
114 - 6
HttpClientExtensions.cs
in src/Infrastructure/Extensions
43 5 5
cshtml
Label.cshtml
in src/Web/Views/Order
126 - 5
phtml
methods.phtml
in eCommerce platforms/Adobe Magento/src/design/frontend/base/default/template/dfp/onepage/payment
80 - 4
Order.cs
in src/ApplicationCore/Entities/OrderAggregate
149 2 4
20190302011807_Initial.cs
in src/Infrastructure/Data/Migrations
201 2 4
cshtml
Edit.cshtml
in src/Web/Areas/Admin/Views/Manage
99 - 4