microsoft / WingtipTicketsSaaS-DbPerTenant
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 150 files with 19,755 lines of code.
    • 3 very long files (4,654 lines of code)
    • 1 long files (510 lines of code)
    • 22 medium size files (6,712 lines of codeclsfd_ftr_w_mp_ins)
    • 36 small files (5,120 lines of code)
    • 88 very small files (2,759 lines of code)
23% | 2% | 33% | 25% | 13%
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
psm177% | 0% | 16% | 3% | 3%
css62% | 0% | 37% | 0% | 0%
ps10% | 5% | 46% | 35% | 11%
cshtml0% | 0% | 58% | 0% | 41%
cs0% | 0% | 8% | 49% | 41%
html0% | 0% | 0% | 100% | 0%
targets0% | 0% | 0% | 100% | 0%
xproj0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Learning Modules/Common73% | 0% | 21% | 4% | <1%
App/src33% | 0% | 21% | 21% | 23%
Learning Modules/Operational Analytics0% | 38% | 43% | 0% | 17%
Learning Modules/Business Continuity and Disaster Recovery0% | 0% | 53% | 41% | 4%
Learning Modules/Utilities0% | 0% | 54% | 25% | 20%
Learning Modules/Performance Monitoring and Management0% | 0% | 0% | 69% | 30%
Learning Modules/Provision and Catalog0% | 0% | 0% | 57% | 42%
Learning Modules/Schema Management0% | 0% | 0% | 74% | 25%
App/WingtipPlatformARMDeployment0% | 0% | 0% | 64% | 35%
Learning Modules/Devops and Support0% | 0% | 0% | 100% | 0%
Learning Modules0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
CatalogAndDatabaseManagement.psm1
in Learning Modules/Common
2533 -
site.css
in App/src/Events-TenantUserApp/wwwroot/css
1072 -
publish-module.psm1
in App/src/Events-TenantUserApp/Properties/PublishProfiles
1049 -
Deploy-TenantAnalyticsDW.ps1
in Learning Modules/Operational Analytics/Tenant Analytics DW
510 -
AzureShardManagement.psm1
in Learning Modules/Common
476 -
jquery.dataTables.css
in App/src/Events-TenantUserApp/wwwroot/lib/jquery-datatables
424 -
Enable-TenantsAfterRecoveryOperation.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
371 -
Enable-TenantsAfterRecoveryOperation.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
371 -
TicketGenerator2.ps1
in Learning Modules/Utilities
365 -
Restore-TenantDatabasesToRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
356 -
Failover-ChangedDatabases.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
340 -
LoadGenerator.ps1
in Learning Modules/Utilities
327 -
Failover-TenantDatabasesToOriginalRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
308 -
cshtml
FindSeats.cshtml
in App/src/Events-TenantUserApp/Views/Shared
300 -
Repatriate-IntoOriginalRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup
293 -
Deploy-TenantAnalyticsDB-CS.ps1
in Learning Modules/Operational Analytics/Tenant Analytics
291 -
Deploy-TenantAnalyticsDB.ps1
in Learning Modules/Operational Analytics/Tenant Analytics
287 -
Failover-TenantDatabasesToRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
273 -
AzureSqlAsyncManagement.psm1
in Learning Modules/Common
271 -
cshtml
_EventsLayout.cshtml
in App/src/Events-TenantUserApp/Views/Shared
263 -
Replicate-TenantDatabasesToRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
258 -
Restore-IntoSecondaryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup
256 -
Replicate-ChangedTenantDatabases.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
239 -
Replicate-TenantDatabasesToOriginalRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
231 -
Pop.css
in App/src/Events-TenantUserApp/wwwroot/Themes
211 -
TenantDbContext.cs
in App/src/Events-TenantUserApp.EF/TenantsDB
201 3
Repatriate-IntoOriginalRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica
200 -
Failover-IntoRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica
196 -
TicketGenerator.ps1
in Learning Modules/Utilities
195 -
TenantRepository.cs
in App/src/Events-Tenant.Common/Repositories
192 12
Startup.cs
in App/src/Events-TenantUserApp
192 7
Sync-TenantConfiguration.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica
179 -
Sync-TenantConfiguration.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup
179 -
Project_Readme.html
in App/src/Events-TenantUserApp
163 -
AccountController.cs
in App/src/Events-TenantUserApp/Controllers
162 4
New-TenantBatch.ps1
in Learning Modules/Provision and Catalog
157 -
Restore-TenantElasticPoolsToRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
154 -
BaseController.cs
in App/src/Events-TenantUserApp/Controllers
146 5
SubscriptionManagement.psm1
in Learning Modules/Common
145 -
Mapper.cs
in App/src/Events-Tenant.Common/Mapping
144 12
Update-TenantResourcesInOriginalRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
142 -
Update-TenantResourcesInOriginalRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
142 -
FindSeatsController.cs
in App/src/Events-TenantUserApp/Controllers
140 4
Demo-RestoreFromBackup.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup
140 -
Deploy-JobAgent.ps1
in Learning Modules/Schema Management
140 -
Update-TenantResourcesInRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
135 -
Replicate-TenantElasticPoolsToRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
134 -
Demo-PerformanceMonitoringAndManagement.ps1
in Learning Modules/Performance Monitoring and Management
128 -
Enable-ResourceDiagnostics.ps1
in Learning Modules/Performance Monitoring and Management/LogAnalytics
124 -
Restore-TenantServersToRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
123 -
Files With Most Units (Top 20)
File# lines# units
Mapper.cs
in App/src/Events-Tenant.Common/Mapping
144 12
TenantRepository.cs
in App/src/Events-Tenant.Common/Repositories
192 12
Startup.cs
in App/src/Events-TenantUserApp
192 7
Utilities.cs
in App/src/Events-Tenant.Common/Utilities
119 5
BaseController.cs
in App/src/Events-TenantUserApp/Controllers
146 5
TenantContext.cs
in App/src/Events-TenantUserApp.EF/TenantsDdEF6
35 4
AccountController.cs
in App/src/Events-TenantUserApp/Controllers
162 4
FindSeatsController.cs
in App/src/Events-TenantUserApp/Controllers
140 4
Sharding.cs
in App/src/Events-Tenant.Common/Utilities
98 3
TenantDbContext.cs
in App/src/Events-TenantUserApp.EF/TenantsDB
201 3
HomeController.cs
in App/src/Events-TenantUserApp/Controllers
83 3
CatalogRepository.cs
in App/src/Events-Tenant.Common/Repositories
96 2
CatalogDbContext.cs
in App/src/Events-TenantUserApp.EF/CatalogDB
100 2
EventsController.cs
in App/src/Events-TenantUserApp/Controllers
111 2
SessionExtensions.cs
in App/src/Events-TenantUserApp
17 2
Countries.cs
in App/src/Events-TenantUserApp.EF/TenantsDB
17 1
Customers.cs
in App/src/Events-TenantUserApp.EF/TenantsDB
21 1
EventSections.cs
in App/src/Events-TenantUserApp.EF/TenantsDB
18 1
Events.cs
in App/src/Events-TenantUserApp.EF/TenantsDB
18 1
Sections.cs
in App/src/Events-TenantUserApp.EF/TenantsDB
18 1
Files With Long Lines (Top 20)

There are 80 files with lines longer than 120 characters. In total, there are 900 long lines.

File# lines# units# long lines
CatalogAndDatabaseManagement.psm1
in Learning Modules/Common
2533 - 91
Enable-TenantsAfterRecoveryOperation.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
371 - 45
Enable-TenantsAfterRecoveryOperation.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
371 - 45
publish-module.psm1
in App/src/Events-TenantUserApp/Properties/PublishProfiles
1049 - 39
Failover-ChangedDatabases.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
340 - 28
Repatriate-IntoOriginalRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup
293 - 28
cshtml
_EventsLayout.cshtml
in App/src/Events-TenantUserApp/Views/Shared
263 - 25
Restore-IntoSecondaryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup
256 - 25
Repatriate-IntoOriginalRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica
200 - 23
LoadGenerator.ps1
in Learning Modules/Utilities
327 - 23
AzureSqlAsyncManagement.psm1
in Learning Modules/Common
271 - 22
Failover-TenantDatabasesToOriginalRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
308 - 20
jquery.dataTables.css
in App/src/Events-TenantUserApp/wwwroot/lib/jquery-datatables
424 - 19
Restore-TenantDatabasesToRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
356 - 19
Failover-TenantDatabasesToRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
273 - 18
cshtml
FindSeats.cshtml
in App/src/Events-TenantUserApp/Views/Shared
300 - 16
Restore-TenantElasticPoolsToRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-RestoreFromBackup/RecoveryJobs
154 - 16
Replicate-TenantDatabasesToRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica/RecoveryJobs
258 - 14
AzureShardManagement.psm1
in Learning Modules/Common
476 - 14
Failover-IntoRecoveryRegion.ps1
in Learning Modules/Business Continuity and Disaster Recovery/DR-FailoverToReplica
196 - 13