microsoft / WhatTheHack
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 1,196 files with 97,610 lines of code.
    • 4 very long files (42,745 lines of code)
    • 8 long files (6,026 lines of code)
    • 22 medium size files (5,946 lines of codeclsfd_ftr_w_mp_ins)
    • 72 small files (9,908 lines of code)
    • 1,090 very small files (32,985 lines of code)
43% | 6% | 6% | 10% | 33%
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
html90% | 0% | 0% | 1% | 7%
css79% | 3% | 5% | 3% | 7%
js37% | 28% | 4% | 9% | 20%
scss0% | 58% | 15% | 0% | 25%
dbc0% | 92% | 0% | 0% | 7%
py0% | 80% | 0% | 0% | 19%
cs0% | 0% | 8% | 20% | 70%
scala0% | 0% | 38% | 29% | 31%
bash0% | 0% | 73% | 23% | 3%
ps10% | 0% | 21% | 12% | 66%
psm10% | 0% | 100% | 0% | 0%
cshtml0% | 0% | 0% | 13% | 86%
yaml0% | 0% | 0% | 13% | 86%
tf0% | 0% | 0% | 43% | 56%
php0% | 0% | 0% | 100% | 0%
less0% | 0% | 0% | 55% | 44%
targets0% | 0% | 0% | 100% | 0%
yml0% | 0% | 0% | 0% | 100%
tfvars0% | 0% | 0% | 0% | 100%
htm0% | 0% | 0% | 0% | 100%
tpl0% | 0% | 0% | 0% | 100%
csx0% | 0% | 0% | 0% | 100%
Dockerfile0% | 0% | 0% | 0% | 100%
csl0% | 0% | 0% | 0% | 100%
psd10% | 0% | 0% | 0% | 100%
MD0% | 0% | 0% | 0% | 100%
http0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
asax0% | 0% | 0% | 0% | 100%
HTML0% | 0% | 0% | 0% | 100%
DotSettings0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
002-IntroToAzureAI72% | 0% | 0% | 10% | 16%
001-IntroToKubernetes78% | 8% | 0% | 3% | 9%
009-MicroservicesInAzure46% | 0% | 3% | 0% | 50%
006-AppModernization0% | 14% | 20% | 14% | 50%
003-DrivingMissData0% | 31% | 28% | 21% | 18%
044-DevOpswithGithubActions0% | 25% | 0% | 4% | 69%
030-ConversationalAI0% | 48% | 20% | 16% | 14%
039-AKSEnterpriseGrade0% | 38% | 0% | 41% | 20%
021-IdentityForApps0% | 0% | 37% | 16% | 46%
027-FHIRPoweredHealthcare0% | 0% | 45% | 15% | 39%
011-InfraAsCode-ARM-DSC0% | 0% | 53% | 0% | 46%
016-AppMigration0% | 0% | 7% | 22% | 69%
017-FrontDoor0% | 0% | 0% | 45% | 54%
012-InfraAsCode-Terraform0% | 0% | 0% | 35% | 64%
015-Serverless0% | 0% | 0% | 39% | 60%
005-RockPaperScissorsBoom0% | 0% | 0% | 8% | 91%
033-OSSDatabaseMigration0% | 0% | 0% | 27% | 72%
040-JavaOnAppService0% | 0% | 0% | 24% | 75%
047-TrafficControlWithDapr0% | 0% | 0% | 8% | 91%
023-AdvancedKubernetes0% | 0% | 0% | 0% | 100%
014-OSSDevOps0% | 0% | 0% | 0% | 100%
031-DevOpsWithGitHub0% | 0% | 0% | 0% | 100%
010-AzureDevOps0% | 0% | 0% | 0% | 100%
007-AzureMonitoring0% | 0% | 0% | 0% | 100%
008-DatabricksIntroML0% | 0% | 0% | 0% | 100%
013-InfraAsCode-Ansible0% | 0% | 0% | 0% | 100%
045-InfraAsCode-Bicep0% | 0% | 0% | 0% | 100%
038-MDWCovid190% | 0% | 0% | 0% | 100%
assets0% | 0% | 0% | 0% | 100%
037-AzureVirtualDesktop0% | 0% | 0% | 0% | 100%
_layouts0% | 0% | 0% | 0% | 100%
019-ThisOldDataWarehouse0% | 0% | 0% | 0% | 100%
034-MicrosoftTeams-MakeItReal0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
10-K-FY16.html
in 002-IntroToAzureAI/Student/Resources/LUIS-Data/SampleFilesCognitiveSearch
21671 -
app.css
in 001-IntroToKubernetes/Student/Resources/Challenge 1/content-web/public/stylesheets
8524 -
app.css
in 001-IntroToKubernetes/Student/Resources/Challenge 7/content-web-v2/public/stylesheets
8524 -
bootstrap.bundle.js
in 009-MicroservicesInAzure/Coach/Solutions/Code/Host.MVC.Core/wwwroot/lib/bootstrap/js
4026 208
knockout.validation.js
in 001-IntroToKubernetes/Student/Resources/Challenge 1/content-web/public/js
923 89
knockout.validation.js
in 001-IntroToKubernetes/Student/Resources/Challenge 7/content-web-v2/public/js
923 89
Site.scss
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Content
877 -
dbc
NYCTaxi-All.dbc
in 003-DrivingMissData/Coach/Solutions/Challenge02
860 -
Site.css
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Content
710 -
knockout.validation.debug.js
in 044-DevOpswithGithubActions/Student/Resources/src/Contoso.Web/wwwroot/lib/ko
639 68
provisionComposer.js
in 030-ConversationalAI/Coach/Solutions/Bot Composer Project/FSIBotWTH_2/scripts
552 12
sql_api.py
in 039-AKSEnterpriseGrade/Student/Resources/api
542 25
common.css
in 021-IdentityForApps/Student/Resources/PageTemplates/css
437 -
AccountController.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Controllers
385 25
PartsUnlimitedDbInitializer.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Utils
323 2
BaseData.cs
in 009-MicroservicesInAzure/Coach/Solutions/Code/Application/Data/Mock
318 2
MSFT_xSmbShare.psm1
in 011-InfraAsCode-ARM-DSC/Coach/Solutions/dscChallenges/dsc/xSmbShare/2.1.0.0/DscResources/MSFT_xSmbShare
310 -
ManageController.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Controllers
298 20
unified.css
in 021-IdentityForApps/Student/Resources/PageTemplates/css
279 -
06-LoadData-Green.scala
in 003-DrivingMissData/Coach/Solutions/Challenge02
276 2
respond.matchmedia.addListener.js
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Scripts
267 18
UserService.cs
in 021-IdentityForApps/Student/Resources/MSGraphApp/src/Services
265 8
deployhl72fhir.bash
in 027-FHIRPoweredHealthcare/Student/Resources/heath-architectures/HL7Conversion
264 -
05-LoadData-Yellow.scala
in 003-DrivingMissData/Coach/Solutions/Challenge02
251 2
deployhl72fhir-hl7converter.bash
in 027-FHIRPoweredHealthcare/Student/Resources/heath-architectures/HL7Conversion
244 -
201503130633247_InitialMigration.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Migrations
240 2
09-CreateMaterializedView.scala
in 003-DrivingMissData/Coach/Solutions/Challenge02
238 -
Home.scss
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Content
231 -
w3.css
in 030-ConversationalAI/Student/Resources/wwwroot/css
229 -
Configure.ps1
in 027-FHIRPoweredHealthcare/Coach/Solutions/Challenge06/node-patient-search-app/AppCreationScripts
223 -
Create-FhirServerSamplesAuthConfig.ps1
in 027-FHIRPoweredHealthcare/Student/Resources/fhir-server-samples/deploy/scripts
221 -
respond.js
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Scripts
220 13
style.css
in 016-AppMigration/Student/Resources/src/frontend/src
217 -
201503130633247_InitialMigration.Designer.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Migrations
210 -
styles.css
in 039-AKSEnterpriseGrade/Student/Resources/web
197 -
Send-TransactionalTable-To-SQLDW.scala
in 003-DrivingMissData/Coach/Solutions/Challenge03
196 -
PartsUnlimitedContextModelSnapshot.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Migrations
196 -
MinimizableWebChat.js
in 030-ConversationalAI/Student/Resources/wwwroot/js
187 7
fullapp.yaml
in 039-AKSEnterpriseGrade/Coach/Solutions
182 -
petclinic.less
in 040-JavaOnAppService/Student/Resources/spring-petclinic/src/main/less
182 -
selfasserted.css
in 021-IdentityForApps/Student/Resources/PageTemplates/css
180 -
Home.css
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Content
177 -
RegExpRecognizerMiddleware.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-2.2-Building-Bots/Code/FinishedPictureBot-Part1/PictureBot/PictureBot/Middleware
172 10
RegExpRecognizerMiddleware.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-2.2-Building-Bots/Code/FinishedPictureBot-Part2/PictureBot/PictureBot/Middleware
172 10
RegExpRecognizerMiddleware.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-2.2-Building-Bots/Code/FinishedPictureBot-Part3/PictureBot/PictureBot/Middleware
172 10
RegExpRecognizerMiddleware.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-2.2-Building-Bots/Code/FinishedPictureBot-Part4/PictureBot/PictureBot/Middleware
172 10
RegExpRecognizerMiddleware.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-2.2-Building-Bots/Code/Middleware
172 10
DialogTestBase.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-2.4-Testing-Bots/Code/EchoBot/EchoBotTests
170 9
DialogTestBase.cs
in 002-IntroToAzureAI/Student/Resources/Challenge-2.4-Testing-Bots/code/EchoBot/EchoBotTests
170 9
StoreManagerController.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Areas/Admin/Controllers
165 11
Files With Most Units (Top 20)
File# lines# units
bootstrap.bundle.js
in 009-MicroservicesInAzure/Coach/Solutions/Code/Host.MVC.Core/wwwroot/lib/bootstrap/js
4026 208
knockout.validation.js
in 001-IntroToKubernetes/Student/Resources/Challenge 1/content-web/public/js
923 89
knockout.validation.js
in 001-IntroToKubernetes/Student/Resources/Challenge 7/content-web-v2/public/js
923 89
knockout.validation.debug.js
in 044-DevOpswithGithubActions/Student/Resources/src/Contoso.Web/wwwroot/lib/ko
639 68
AccountController.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Controllers
385 25
sql_api.py
in 039-AKSEnterpriseGrade/Student/Resources/api
542 25
ManageController.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Controllers
298 20
respond.matchmedia.addListener.js
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Scripts
267 18
dataclient.js
in 001-IntroToKubernetes/Student/Resources/Challenge 1/content-web/public/js
108 13
dataclient.js
in 001-IntroToKubernetes/Student/Resources/Challenge 7/content-web-v2/public/js
108 13
respond.js
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Scripts
220 13
provisionComposer.js
in 030-ConversationalAI/Coach/Solutions/Bot Composer Project/FSIBotWTH_2/scripts
552 12
StoreManagerController.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Areas/Admin/Controllers
165 11
StaticController.cs
in 044-DevOpswithGithubActions/Student/Resources/src/Contoso.Web/Controllers
80 11
sessions.js
in 001-IntroToKubernetes/Student/Resources/Challenge 1/content-web/public/js/viewmodels
80 10
sessions.js
in 001-IntroToKubernetes/Student/Resources/Challenge 7/content-web-v2/public/js/viewmodels
80 10
VisionServiceHelper.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-1.1-Computer-Vision/Code/Finished-ImageProcessing/ProcessingLibrary/ServiceHelpers
96 10
VisionServiceHelper.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-1.1-Computer-Vision/Code/Starting-ImageProcessing/ProcessingLibrary/ServiceHelpers
96 10
RegExpRecognizerMiddleware.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-2.2-Building-Bots/Code/FinishedPictureBot-Part1/PictureBot/PictureBot/Middleware
172 10
RegExpRecognizerMiddleware.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-2.2-Building-Bots/Code/FinishedPictureBot-Part2/PictureBot/PictureBot/Middleware
172 10
Files With Long Lines (Top 20)

There are 372 files with lines longer than 120 characters. In total, there are 4709 long lines.

File# lines# units# long lines
10-K-FY16.html
in 002-IntroToAzureAI/Student/Resources/LUIS-Data/SampleFilesCognitiveSearch
21671 - 2974
dbc
NYCTaxi-All.dbc
in 003-DrivingMissData/Coach/Solutions/Challenge02
860 - 220
w3.css
in 030-ConversationalAI/Student/Resources/wwwroot/css
229 - 60
app.css
in 001-IntroToKubernetes/Student/Resources/Challenge 1/content-web/public/stylesheets
8524 - 59
app.css
in 001-IntroToKubernetes/Student/Resources/Challenge 7/content-web-v2/public/stylesheets
8524 - 59
bootstrap.bundle.js
in 009-MicroservicesInAzure/Coach/Solutions/Code/Host.MVC.Core/wwwroot/lib/bootstrap/js
4026 208 55
PartsUnlimitedDbInitializer.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Utils
323 2 40
04-installLanguagePacks.ps1
in 037-AzureVirtualDesktop/Coach/Solutions
85 - 32
sql_api.py
in 039-AKSEnterpriseGrade/Student/Resources/api
542 25 30
Configure.ps1
in 027-FHIRPoweredHealthcare/Coach/Solutions/Challenge06/node-patient-search-app/AppCreationScripts
223 - 22
Create-FhirServerSamplesAuthConfig.ps1
in 027-FHIRPoweredHealthcare/Student/Resources/fhir-server-samples/deploy/scripts
221 - 20
deployhl72fhir.bash
in 027-FHIRPoweredHealthcare/Student/Resources/heath-architectures/HL7Conversion
264 - 20
MockConnectorFactory.cs
in 002-IntroToAzureAI/Coach/Solutions/Challenge-2.4-Testing-Bots/Code/EchoBot/EchoBotTests
125 5 18
MockConnectorFactory.cs
in 002-IntroToAzureAI/Student/Resources/Challenge-2.4-Testing-Bots/code/EchoBot/EchoBotTests
125 5 18
05-LoadData-Yellow.scala
in 003-DrivingMissData/Coach/Solutions/Challenge02
251 2 17
Deploy-AzureResourceGroup.ps1
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/Environments
101 - 17
AccountController.cs
in 006-AppModernization/Student/Resources/OnPremApp/IaaS2PaaSWeb/PartsUnlimitedWebsite/Controllers
385 25 14
Create-FhirServerSamplesEnvironment.ps1
in 027-FHIRPoweredHealthcare/Student/Resources/fhir-server-samples/deploy/scripts
162 - 14
deployhl7ingest.bash
in 027-FHIRPoweredHealthcare/Student/Resources/heath-architectures/HL7Conversion
163 - 14
CosmosDBProvider.cs
in 009-MicroservicesInAzure/Coach/Solutions/Code/Application/Data/CosmosSQL
57 5 12