microsoft / BotFramework-BlogSamples
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 222 files with 12,203 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 10 medium size files (3,274 lines of codeclsfd_ftr_w_mp_ins)
    • 23 small files (3,162 lines of code)
    • 189 very small files (5,767 lines of code)
0% | 0% | 26% | 25% | 47%
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% | 0% | 30% | 17% | 51%
js0% | 0% | 14% | 51% | 33%
xaml0% | 0% | 97% | 0% | 2%
ts0% | 0% | 0% | 60% | 39%
html0% | 0% | 0% | 28% | 71%
htm0% | 0% | 0% | 0% | 100%
asax0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
blog-samples/CSharp0% | 0% | 34% | 15% | 49%
SDKV4-Samples/dotnet_core0% | 0% | 46% | 10% | 42%
StackOverflow-Bot/StackBot0% | 0% | 34% | 37% | 28%
SDKV4-Samples/js0% | 0% | 0% | 64% | 35%
docs-samples/V40% | 0% | 0% | 92% | 7%
docs-samples/Node0% | 0% | 0% | 100% | 0%
StackOverflow-Bot/DialogAnalyzerFunc0% | 0% | 0% | 25% | 74%
docs-samples/CSharp0% | 0% | 0% | 58% | 41%
docs-samples/web-chat-speech0% | 0% | 0% | 100% | 0%
docs-samples/v3Node0% | 0% | 0% | 100% | 0%
blog-samples/Node0% | 0% | 0% | 0% | 100%
StackOverflow-Bot/StackCode0% | 0% | 0% | 0% | 100%
SDKV4-Samples0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Responses.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Runtime
455 25
TriviaDialog.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot
442 17
smalltalk.js
in StackOverflow-Bot/StackBot/lib
406 -
MainPage.xaml.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp
392 26
xaml
MainPage.xaml
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp
360 -
DialogInterruptionsBot.cs
in SDKV4-Samples/dotnet_core/DialogInterruptionsBot
324 11
Program.cs
in blog-samples/CSharp/BotStateExport/BotStateExport/BotStateExport
241 2
DocumentDbBotDataStore.cs
in blog-samples/CSharp/BotStateExport/BotStateExport/BotStateExport
234 9
DialogPromptBot.cs
in SDKV4-Samples/dotnet_core/DialogPromptBot
219 8
ComplexDialogBot.cs
in SDKV4-Samples/dotnet_core/ComplexDialogBot
201 9
attachments.js
in StackOverflow-Bot/StackBot/lib
193 -
luisbot.js
in docs-samples/V4/JS/contosocafebot-luis-dialogs/lib
181 7
TableBotDataStore.cs
in blog-samples/CSharp/BotStateExport/BotStateExport/BotStateExport
178 10
CustomPromptBot.cs
in SDKV4-Samples/dotnet_core/PromptUsersForInput
171 6
PrimaryBot.cs
in blog-samples/CSharp/FacebookHandover/Primary/Bots
170 10
luisbot.ts
in docs-samples/V4/JS/contosocafebot-luis-dialogs/src
167 6
SimpleNoteDialog.cs
in docs-samples/CSharp/Simple-LUIS-Notes-Sample/Simple-LUIS-Notes-Sample/Dialogs
166 15
index.js
in StackOverflow-Bot/StackBot
156 -
bot.js
in SDKV4-Samples/js/DialogPromptBot
142 8
ObservableDictionary.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/ViewModels
140 11
bot.js
in SDKV4-Samples/js/PromptUsersForInput
135 6
bot.js
in SDKV4-Samples/js/complexDialogBot
135 9
LuisEntity.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Luis
125 7
basicNote.js
in docs-samples/Node/basics-naturalLanguage
124 8
SqlBotDataEntity.cs
in blog-samples/CSharp/AzureSql-StateClient/Microsoft.Bot.Sample.AzureSql/SqlStateService
117 6
index.html
in docs-samples/web-chat-speech
117 -
basicNote-intentDialog.js
in docs-samples/Node/basics-naturalLanguage
116 9
DialogDataInterpreter.cs
in StackOverflow-Bot/DialogAnalyzerFunc/Clients
111 8
SecondaryBot.cs
in blog-samples/CSharp/FacebookHandover/Secondary/Bots
106 7
botadapter.js
in docs-samples/v3Node/startNewDialog
106 6
screenshot.js
in StackOverflow-Bot/StackBot/dialogs
103 -
SqlBotDataStore.cs
in blog-samples/CSharp/AzureSql-StateClient/Microsoft.Bot.Sample.AzureSql/SqlStateService
102 1
ComputerVisionService.cs
in StackOverflow-Bot/DialogAnalyzerFunc/Services
101 6
AnalyzeDialog.cs
in StackOverflow-Bot/DialogAnalyzerFunc
100 1
HttpClientUtility.cs
in StackOverflow-Bot/DialogAnalyzerFunc/Utilities
97 8
index.html
in blog-samples/Node/Blog-Redux-Bot/public
95 -
LuisIntent.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Luis
91 6
extension.ts
in StackOverflow-Bot/StackCode/src
83 2
App.xaml.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp
81 6
app.js
in blog-samples/Node/Blog-Qna-Attachments
81 2
bot.html
in StackOverflow-Bot/StackCode/out/src/bot
80 -
extension.js
in StackOverflow-Bot/StackCode/out/src
80 2
bot.html
in StackOverflow-Bot/StackCode/src/bot
80 -
QueryLuis.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Luis
80 3
Startup.cs
in SDKV4-Samples/dotnet_core/DialogPromptBot
79 1
CommonResponsesScorable.cs
in blog-samples/CSharp/Luis-Scorable-QnA/Luis-Scorable-Qna/Dialogs
78 6
FacebookThreadControlHelper.cs
in blog-samples/CSharp/FacebookHandover/FacebookModel
77 5
DialogAnalyzerClient.cs
in StackOverflow-Bot/DialogAnalyzerFunc/Clients
73 4
Startup.cs
in SDKV4-Samples/dotnet_core/ComplexDialogBot
69 1
Startup.cs
in SDKV4-Samples/dotnet_core/DialogInterruptionsBot
69 1
Files With Most Units (Top 20)
File# lines# units
MainPage.xaml.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp
392 26
Responses.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Runtime
455 25
TriviaDialog.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot
442 17
SimpleNoteDialog.cs
in docs-samples/CSharp/Simple-LUIS-Notes-Sample/Simple-LUIS-Notes-Sample/Dialogs
166 15
DialogInterruptionsBot.cs
in SDKV4-Samples/dotnet_core/DialogInterruptionsBot
324 11
ObservableDictionary.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp/ViewModels
140 11
TableBotDataStore.cs
in blog-samples/CSharp/BotStateExport/BotStateExport/BotStateExport
178 10
PrimaryBot.cs
in blog-samples/CSharp/FacebookHandover/Primary/Bots
170 10
ComplexDialogBot.cs
in SDKV4-Samples/dotnet_core/ComplexDialogBot
201 9
bot.js
in SDKV4-Samples/js/complexDialogBot
135 9
DocumentDbBotDataStore.cs
in blog-samples/CSharp/BotStateExport/BotStateExport/BotStateExport
234 9
basicNote-intentDialog.js
in docs-samples/Node/basics-naturalLanguage
116 9
DialogPromptBot.cs
in SDKV4-Samples/dotnet_core/DialogPromptBot
219 8
bot.js
in SDKV4-Samples/js/DialogPromptBot
142 8
DialogDataInterpreter.cs
in StackOverflow-Bot/DialogAnalyzerFunc/Clients
111 8
HttpClientUtility.cs
in StackOverflow-Bot/DialogAnalyzerFunc/Utilities
97 8
LuisDialog.cs
in blog-samples/CSharp/Luis-Scorable-QnA/Luis-Scorable-Qna/Dialogs
64 8
MockChannelController.cs
in blog-samples/CSharp/MockChannel/Controllers
69 8
basicNote.js
in docs-samples/Node/basics-naturalLanguage
124 8
SecondaryBot.cs
in blog-samples/CSharp/FacebookHandover/Secondary/Bots
106 7
Files With Long Lines (Top 20)

There are 87 files with lines longer than 120 characters. In total, there are 280 long lines.

File# lines# units# long lines
TriviaDialog.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot
442 17 20
PrimaryBot.cs
in blog-samples/CSharp/FacebookHandover/Primary/Bots
170 10 18
Responses.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaBot/Runtime
455 25 18
SecondaryBot.cs
in blog-samples/CSharp/FacebookHandover/Secondary/Bots
106 7 13
DocumentDbBotDataStore.cs
in blog-samples/CSharp/BotStateExport/BotStateExport/BotStateExport
234 9 10
ComputerVisionService.cs
in StackOverflow-Bot/DialogAnalyzerFunc/Services
101 6 9
AnalyzeDialog.cs
in StackOverflow-Bot/DialogAnalyzerFunc
100 1 8
HttpClientUtility.cs
in StackOverflow-Bot/DialogAnalyzerFunc/Utilities
97 8 8
Program.cs
in blog-samples/CSharp/BotStateExport/BotStateExport/BotStateExport
241 2 8
TableBotDataStore.cs
in blog-samples/CSharp/BotStateExport/BotStateExport/BotStateExport
178 10 8
ComplexDialogBot.cs
in SDKV4-Samples/dotnet_core/ComplexDialogBot
201 9 7
CustomPromptBot.cs
in SDKV4-Samples/dotnet_core/PromptUsersForInput
171 6 7
DialogAnalyzerClient.cs
in StackOverflow-Bot/DialogAnalyzerFunc/Clients
73 4 7
DialogDataInterpreter.cs
in StackOverflow-Bot/DialogAnalyzerFunc/Clients
111 8 7
FacebookThreadControlHelper.cs
in blog-samples/CSharp/FacebookHandover/FacebookModel
77 5 7
xaml
MainPage.xaml
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp
360 - 7
MainPage.xaml.cs
in blog-samples/CSharp/TriviaBotSpeechSample/TriviaApp
392 26 5
screenshot.js
in StackOverflow-Bot/StackBot/dialogs
103 - 4
SimpleNoteDialog.cs
in docs-samples/CSharp/Simple-LUIS-Notes-Sample/Simple-LUIS-Notes-Sample/Dialogs
166 15 4
luisbot.js
in docs-samples/V4/JS/contosocafebot-luis-dialogs/lib
181 7 4