microsoft / botbuilder-js
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,094 files with 76,257 lines of code.
    • 7 very long files (12,310 lines of code)
    • 12 long files (8,202 lines of code)
    • 54 medium size files (16,814 lines of codeclsfd_ftr_w_mp_ins)
    • 80 small files (11,010 lines of code)
    • 941 very small files (27,921 lines of code)
16% | 10% | 22% | 14% | 36%
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
ts11% | 10% | 25% | 14% | 37%
js37% | 14% | 5% | 10% | 32%
g40% | 0% | 44% | 20% | 34%
html0% | 0% | 85% | 0% | 14%
tpl0% | 0% | 100% | 0% | 0%
cmd0% | 0% | 0% | 90% | 9%
ps10% | 0% | 0% | 88% | 11%
yml0% | 0% | 0% | 0% | 100%
MD0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tools/resourceManagement55% | 15% | 5% | 2% | 20%
libraries/botframework-connector51% | 0% | 15% | 13% | 19%
libraries/botbuilder25% | 12% | 31% | 15% | 14%
libraries/botbuilder-dialogs-adaptive11% | 9% | 10% | 16% | 51%
libraries/botbuilder-lg0% | 47% | 26% | 11% | 14%
libraries/adaptive-expressions0% | 10% | 26% | 6% | 56%
libraries/botframework-schema0% | 50% | 40% | 6% | 2%
libraries/botbuilder-core0% | 14% | 41% | 15% | 27%
tools/framework0% | 76% | 0% | 0% | 23%
libraries/botbuilder-ai0% | 0% | 69% | 5% | 24%
libraries/botbuilder-dialogs0% | 0% | 28% | 34% | 36%
libraries/botbuilder-azure0% | 0% | 94% | 0% | 5%
build/AnalyzeDependencies0% | 0% | 77% | 22% | 0%
libraries/botbuilder-dialogs-adaptive-runtime0% | 0% | 74% | 0% | 25%
libraries/botbuilder-ai-orchestrator0% | 0% | 93% | 0% | 6%
generators/generator-botbuilder0% | 0% | 10% | 19% | 69%
libraries/botframework-config0% | 0% | 25% | 19% | 55%
tools/scripts0% | 0% | 0% | 78% | 21%
libraries/botbuilder-dialogs-adaptive-testing0% | 0% | 0% | 18% | 81%
libraries/botframework-streaming0% | 0% | 0% | 10% | 89%
libraries/botbuilder-dialogs-declarative0% | 0% | 0% | 44% | 55%
libraries/botbuilder-dialogs-adaptive-runtime-integration-azure-functions0% | 0% | 0% | 100% | 0%
libraries/botbuilder-azure-blobs0% | 0% | 0% | 58% | 41%
libraries/botbuilder-dialogs-adaptive-runtime-integration-express0% | 0% | 0% | 100% | 0%
libraries/botbuilder-dialogs-adaptive-runtime-core0% | 0% | 0% | 90% | 9%
testing/skills0% | 0% | 0% | 43% | 56%
libraries/botbuilder-dialogs-adaptive-runtime-integration-restify0% | 0% | 0% | 100% | 0%
libraries/botbuilder-repo-utils0% | 0% | 0% | 44% | 55%
tools/util0% | 0% | 0% | 46% | 53%
testing/testbot0% | 0% | 0% | 20% | 79%
testing/streaming-e2e0% | 0% | 0% | 22% | 77%
testing/functional0% | 0% | 0% | 62% | 37%
libraries/botbuilder-applicationinsights0% | 0% | 0% | 69% | 30%
testing/browser-functional0% | 0% | 0% | 0% | 100%
build/yaml0% | 0% | 0% | 0% | 100%
libraries/botbuilder-testing0% | 0% | 0% | 0% | 100%
libraries/swagger0% | 0% | 0% | 0% | 100%
testing/consumer-test0% | 0% | 0% | 0% | 100%
libraries/botbuilder-stdlib0% | 0% | 0% | 0% | 100%
libraries/botbuilder-azure-queues0% | 0% | 0% | 0% | 100%
libraries/adaptive-expressions-ie110% | 0% | 0% | 0% | 100%
build/scripts0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
libraries/botbuilder-ai-luis0% | 0% | 0% | 0% | 100%
libraries/botbuilder-ai-qna0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
mappers.ts
in libraries/botframework-connector/src/connectorApi/models
2652 -
resources.js
in tools/resourceManagement/lib/resource/operations
2470 61
mappers.ts
in libraries/botframework-connector/src/teams/models
2002 -
deployments.js
in tools/resourceManagement/lib/resource/operations
1631 34
resourceGroups.js
in tools/resourceManagement/lib/resource/operations
1279 28
botFrameworkAdapter.ts
in libraries/botbuilder/src
1149 62
adaptiveDialog.ts
in libraries/botbuilder-dialogs-adaptive/src
1127 42
multiLanguageLG.ts
in libraries/botbuilder-lg/src
924 3
languagePolicy.ts
in libraries/botbuilder-dialogs-adaptive/src
896 3
tags.js
in tools/resourceManagement/lib/resource/operations
823 19
index.ts
in libraries/botframework-schema/src
799 24
providers.js
in tools/resourceManagement/lib/resource/operations
699 16
expander.ts
in libraries/botbuilder-lg/src
640 21
evaluator.ts
in libraries/botbuilder-lg/src
621 20
testAdapter.ts
in libraries/botbuilder-core/src
598 49
teamsActivityHandler.ts
in libraries/botbuilder/src
576 57
timeZoneConverter.ts
in libraries/adaptive-expressions/src
558 12
suite-base.js
in tools/framework
554 35
functionUtils.ts
in libraries/adaptive-expressions/src
514 44
index.ts
in libraries/botbuilder-dialogs-adaptive-runtime/src
497 16
conversations.ts
in libraries/botframework-connector/src/connectorApi/operations
496 1
deploymentOperations.js
in tools/resourceManagement/lib/resource/operations
483 10
templatesParser.ts
in libraries/botbuilder-lg/src
469 27
qnaMakerDialog.ts
in libraries/botbuilder-ai/src
461 10
templates.ts
in libraries/botbuilder-lg/src
422 33
dialogStateManager.ts
in libraries/botbuilder-dialogs/src/memory
403 21
trigger.ts
in libraries/adaptive-expressions/src/triggerTrees
393 15
index.ts
in libraries/botframework-schema/src/teams
385 -
datetimeFormatConverter.ts
in libraries/adaptive-expressions/src
380 1
parameterizedBotFrameworkAuthentication.ts
in libraries/botframework-connector/src/auth
366 16
localeInfo.ts
in libraries/adaptive-expressions/src
363 -
activityFactory.ts
in libraries/botbuilder-core/src
352 17
staticChecker.ts
in libraries/botbuilder-lg/src
351 11
luisRecognizer.ts
in libraries/botbuilder-ai/src
344 13
oauthPrompt.ts
in libraries/botbuilder-dialogs/src/prompts
339 17
inputDialog.ts
in libraries/botbuilder-dialogs-adaptive/src/input
337 11
g4
CommonRegex.g4
in libraries/adaptive-expressions/src
335 -
InterdependencyGraph.html
in build/AnalyzeDependencies
331 -
orchestratorRecognizer.ts
in libraries/botbuilder-ai-orchestrator/src
329 5
luisRecognizerOptionsV2.ts
in libraries/botbuilder-ai/src
327 15
inspectionMiddleware.ts
in libraries/botbuilder/src
313 25
channelServiceRoutes.ts
in libraries/botbuilder/src
312 16
azureBlobTranscriptStore.ts
in libraries/botbuilder-azure/src
308 17
cloudAdapterBase.ts
in libraries/botbuilder-core/src
299 15
luisRecognizerOptionsV3.ts
in libraries/botbuilder-ai/src
297 16
functionUtils.internal.ts
in libraries/adaptive-expressions/src
296 18
cosmosDbStorage.ts
in libraries/botbuilder-azure/src
293 4
activityHandler.ts
in libraries/botbuilder-core/src
289 49
userToken.ts
in libraries/botframework-connector/src/tokenApi/operations
288 1
tpl
deps.html.tpl
in build/AnalyzeDependencies
287 -
Files With Most Units (Top 20)
File# lines# units
botFrameworkAdapter.ts
in libraries/botbuilder/src
1149 62
resources.js
in tools/resourceManagement/lib/resource/operations
2470 61
teamsActivityHandler.ts
in libraries/botbuilder/src
576 57
activityHandler.ts
in libraries/botbuilder-core/src
289 49
testAdapter.ts
in libraries/botbuilder-core/src
598 49
functionUtils.ts
in libraries/adaptive-expressions/src
514 44
adaptiveDialog.ts
in libraries/botbuilder-dialogs-adaptive/src
1127 42
activityEx.ts
in libraries/botframework-schema/src
252 38
suite-base.js
in tools/framework
554 35
deployments.js
in tools/resourceManagement/lib/resource/operations
1631 34
templates.ts
in libraries/botbuilder-lg/src
422 33
turnContext.ts
in libraries/botbuilder-core/src
285 29
resourceGroups.js
in tools/resourceManagement/lib/resource/operations
1279 28
templatesParser.ts
in libraries/botbuilder-lg/src
469 27
inspectionMiddleware.ts
in libraries/botbuilder/src
313 25
channelServiceHandlerBase.ts
in libraries/botbuilder/src
253 24
index.ts
in libraries/botframework-schema/src
799 24
dialogStateManager.ts
in libraries/botbuilder-dialogs/src/memory
403 21
expander.ts
in libraries/botbuilder-lg/src
640 21
evaluator.ts
in libraries/botbuilder-lg/src
621 20
Files With Long Lines (Top 20)

There are 104 files with lines longer than 120 characters. In total, there are 568 long lines.

File# lines# units# long lines
resources.js
in tools/resourceManagement/lib/resource/operations
2470 61 102
deployments.js
in tools/resourceManagement/lib/resource/operations
1631 34 54
conversations.ts
in libraries/botframework-connector/src/connectorApi/operations
496 1 45
resourceGroups.js
in tools/resourceManagement/lib/resource/operations
1279 28 41
providers.js
in tools/resourceManagement/lib/resource/operations
699 16 24
tags.js
in tools/resourceManagement/lib/resource/operations
823 19 24
templateErrors.ts
in libraries/botbuilder-lg/src
67 - 20
suite-base.js
in tools/framework
554 35 18
tpl
deps.html.tpl
in build/AnalyzeDependencies
287 - 14
deploymentOperations.js
in tools/resourceManagement/lib/resource/operations
483 10 14
README.MD
in libraries/botbuilder-lg
88 - 10
model_fixes.js
in libraries/swagger
86 1 7
parentBot.js
in testing/skills/skillparent
136 5 7
README.MD
in libraries/adaptive-expressions
13 - 6
botFrameworkAdapter.ts
in libraries/botbuilder/src
1149 62 6
attachments.ts
in libraries/botframework-connector/src/connectorApi/operations
77 1 6
botSignIn.ts
in libraries/botframework-connector/src/tokenApi/operations
76 1 6
mainDialog.js
in generators/generator-botbuilder/generators/app/templates/core/dialogs
93 6 5
mainDialog.ts
in generators/generator-botbuilder/generators/app/templates/core/dialogs
102 6 5
mainDialog.js
in testing/browser-functional/browser-echo-bot/src/dialogs
87 6 5