fbsamples / workplace-platform-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 75 files with 5,874 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (562 lines of code)
    • 3 medium size files (907 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,145 lines of code)
    • 55 very small files (2,260 lines of code)
0% | 9% | 15% | 36% | 38%
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
js0% | 31% | 13% | 26% | 29%
ps10% | 0% | 17% | 55% | 26%
py0% | 0% | 17% | 14% | 68%
css0% | 0% | 0% | 83% | 16%
ejs0% | 0% | 0% | 0% | 100%
php0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
SampleIntegrations/SampleBots/NodeJS0% | 38% | 16% | 24% | 21%
SupportScripts/Powershell/MigrateGroupContentToNewTenant0% | 0% | 100% | 0% | 0%
SupportScripts/Python/AccountManagement0% | 0% | 52% | 43% | 4%
SupportScripts/Powershell/ExportCampaignActivity0% | 0% | 0% | 100% | 0%
SupportScripts/Powershell/ExportPostActivity0% | 0% | 0% | 100% | 0%
SupportScripts/Powershell/CleanGroupMembers0% | 0% | 0% | 100% | 0%
SampleIntegrations/SamplePlatforms/NodeJS0% | 0% | 0% | 29% | 70%
SupportScripts/Powershell/DownloadGroupFeed0% | 0% | 0% | 100% | 0%
SupportScripts/Powershell/ExportUsersSCIM0% | 0% | 0% | 100% | 0%
SupportScripts/Powershell/MigrateUsersToPeopleSets0% | 0% | 0% | 100% | 0%
SupportScripts/Powershell/DeleteUserMessages0% | 0% | 0% | 97% | 2%
SampleIntegrations/SampleWebhooks/NodeJS0% | 0% | 0% | 100% | 0%
SupportScripts/Powershell/ChangeBulkObjectId0% | 0% | 0% | 100% | 0%
SupportScripts/Powershell/UpdateExternalIdFromAzureAd0% | 0% | 0% | 100% | 0%
SupportScripts/Powershell/ChangeBulkEmail0% | 0% | 0% | 100% | 0%
SupportScripts/Powershell/AnonymiseUserProfileData0% | 0% | 0% | 97% | 2%
SupportScripts/Python/ManageGroupMembers0% | 0% | 0% | 0% | 100%
SupportScripts/Powershell/ArchiveGroupsInBulk0% | 0% | 0% | 0% | 100%
SupportScripts/Python/GetGroupFeedWithDetails0% | 0% | 0% | 0% | 100%
SupportScripts/Powershell/BackupAllUsersGroups0% | 0% | 0% | 0% | 100%
SupportScripts/Powershell/ChangeBulkLocale0% | 0% | 0% | 0% | 100%
SupportScripts/Powershell/ExportGroupLastActivityDate0% | 0% | 0% | 0% | 100%
SupportScripts/Python/DownloadGroupFeed0% | 0% | 0% | 0% | 100%
SupportScripts/Powershell/RetrieveMessageInfo0% | 0% | 0% | 0% | 100%
SupportScripts/Powershell/ActivateInBulk0% | 0% | 0% | 0% | 100%
SupportScripts/Powershell/ExportUserDataWithInsights0% | 0% | 0% | 0% | 100%
SupportScripts/Python/GetKLCategoryInfo0% | 0% | 0% | 0% | 100%
SampleIntegrations/SampleWebhooks/PHP0% | 0% | 0% | 0% | 100%
SupportScripts/Powershell/ExportGroupMembers0% | 0% | 0% | 0% | 100%
SupportScripts/Python/GetGroupListWithDetails0% | 0% | 0% | 0% | 100%
SupportScripts/Python/RemoveMembersFromGroupUsingClaimDate0% | 0% | 0% | 0% | 100%
SupportScripts/Python/ExportUserDataWithInsights0% | 0% | 0% | 0% | 100%
SupportScripts/Python/RemoveInactiveMembersFromGroup0% | 0% | 0% | 0% | 100%
SupportScripts/Powershell/MessageUsersWithoutProfilePicture0% | 0% | 0% | 0% | 100%
SupportScripts/Python/DownloadMessagesFromMember0% | 0% | 0% | 0% | 100%
SupportScripts/Python/GetPostViewers0% | 0% | 0% | 0% | 100%
SupportScripts/Python/AccessQRCodes0% | 0% | 0% | 0% | 100%
SupportScripts/Python/RemoveGroupMembers0% | 0% | 0% | 0% | 100%
SupportScripts/Python/UpdateUserFrontlineStatus0% | 0% | 0% | 0% | 100%
SupportScripts/Python/AddUsersToGroup0% | 0% | 0% | 0% | 100%
SupportScripts/Python/ConnectivityTest0% | 0% | 0% | 0% | 100%
SupportScripts/Python/DeleteUsers0% | 0% | 0% | 0% | 100%
SupportScripts/Python/PromoteGroupMemberToAdmin0% | 0% | 0% | 0% | 100%
SupportScripts/Python/UpdateGroupDescription0% | 0% | 0% | 0% | 100%
SupportScripts/Python/UpdateUserEmails0% | 0% | 0% | 0% | 100%
SupportScripts/Python/BulkReactivateUsers0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
app.js
in SampleIntegrations/SampleBots/NodeJS/ExpenseBot
562 33
ps1
groupContentCloner.ps1
in SupportScripts/Powershell/MigrateGroupContentToNewTenant
434 -
app.js
in SampleIntegrations/SampleBots/NodeJS/EmployeeSurvey
242 8
scim_sdk.py
in SupportScripts/Python/AccountManagement
231 14
app.js
in SampleIntegrations/SampleBots/NodeJS/FileAnIssue
199 9
scim_agent.py
in SupportScripts/Python/AccountManagement
189 13
ps1
exportCampaignActivity.ps1
in SupportScripts/Powershell/ExportCampaignActivity
176 -
app.js
in SampleIntegrations/SampleBots/NodeJS/ThanksBot
161 1
ps1
exportPostActivity.ps1
in SupportScripts/Powershell/ExportPostActivity
151 -
ps1
cleanGroupMembers.ps1
in SupportScripts/Powershell/CleanGroupMembers
142 -
main.css
in SampleIntegrations/SamplePlatforms/NodeJS/wp-claim-portal/public/css
134 -
ps1
DownloadGroupFeed.ps1
in SupportScripts/Powershell/DownloadGroupFeed
130 -
ps1
exportUsersSCIM.ps1
in SupportScripts/Powershell/ExportUsersSCIM
115 -
ps1
groupMembersToPeopleSets.ps1
in SupportScripts/Powershell/MigrateUsersToPeopleSets
114 -
app.js
in SampleIntegrations/SampleWebhooks/NodeJS/BasicWebhooksExample
108 5
ps1
ChangeBulkObjectId.ps1
in SupportScripts/Powershell/ChangeBulkObjectId
108 -
ps1
DeleteUserMessages.ps1
in SupportScripts/Powershell/DeleteUserMessages
108 -
ps1
update_externalid_from_azuread.ps1
in SupportScripts/Powershell/UpdateExternalIdFromAzureAd
105 -
ps1
changeBulkEmail.ps1
in SupportScripts/Powershell/ChangeBulkEmail
104 -
ps1
anonymiseUserFromId.ps1
in SupportScripts/Powershell/AnonymiseUserProfileData
101 -
messages.js
in SampleIntegrations/SampleBots/NodeJS/FAQBot/utilities
98 4
ps1
archiveGroupsInBulk.ps1
in SupportScripts/Powershell/ArchiveGroupsInBulk
89 -
group_posts_detail.py
in SupportScripts/Python/GetGroupFeedWithDetails
85 12
ps1
backup_all_users_groups.ps1
in SupportScripts/Powershell/BackupAllUsersGroups
85 -
ps1
changeBulkLocale.ps1
in SupportScripts/Powershell/ChangeBulkLocale
84 -
ps1
ExportGroupLastActivityDate.ps1
in SupportScripts/Powershell/ExportGroupLastActivityDate
83 -
common.js
in SampleIntegrations/SamplePlatforms/NodeJS/wp-claim-portal/app/models
77 -
download.py
in SupportScripts/Python/DownloadGroupFeed
76 4
ps1
RetrieveMessageInfo.ps1
in SupportScripts/Powershell/RetrieveMessageInfo
74 -
ps1
activateInBulk.ps1
in SupportScripts/Powershell/ActivateInBulk
72 -
remove_members_from_group.py
in SupportScripts/Python/ManageGroupMembers
69 9
manage_groups.py
in SupportScripts/Python/ManageGroupMembers
67 9
ps1
exportUserData.ps1
in SupportScripts/Powershell/ExportUserDataWithInsights
66 -
ejs
home.ejs
in SampleIntegrations/SamplePlatforms/NodeJS/wp-claim-portal/app/views/pages
63 -
export_kl_category.py
in SupportScripts/Python/GetKLCategoryInfo
61 7
security_questions.js
in SampleIntegrations/SamplePlatforms/NodeJS/wp-claim-portal/app/controllers
60 2
webhook_deactivation_mod_user.php
in SampleIntegrations/SampleWebhooks/PHP/WebhookModifyEmailAfterUserDeactivation
60 2
ps1
exportGroupMembers.ps1
in SupportScripts/Powershell/ExportGroupMembers
60 -
export_groups.py
in SupportScripts/Python/GetGroupListWithDetails
57 6
remove_members_from_group_claim_date.py
in SupportScripts/Python/RemoveMembersFromGroupUsingClaimDate
55 5
clock.js
in SampleIntegrations/SampleBots/NodeJS/FeedPoster
51 2
export_user_data.py
in SupportScripts/Python/ExportUserDataWithInsights
51 6
remove_inactive_members_from_group.py
in SupportScripts/Python/RemoveInactiveMembersFromGroup
50 5
ps1
message_users_without_picture.ps1
in SupportScripts/Powershell/MessageUsersWithoutProfilePicture
43 -
messages_member.py
in SupportScripts/Python/DownloadMessagesFromMember
41 5
get_post_viewers.py
in SupportScripts/Python/GetPostViewers
38 4
account.js
in SampleIntegrations/SamplePlatforms/NodeJS/wp-claim-portal/app/models
35 -
ejs
thanks.ejs
in SampleIntegrations/SampleBots/NodeJS/ThanksBot/views/pages
35 -
accessQRCodes.py
in SupportScripts/Python/AccessQRCodes
31 -
express.js
in SampleIntegrations/SamplePlatforms/NodeJS/wp-claim-portal/config
28 1
Files With Most Units (Top 20)
File# lines# units
app.js
in SampleIntegrations/SampleBots/NodeJS/ExpenseBot
562 33
scim_sdk.py
in SupportScripts/Python/AccountManagement
231 14
scim_agent.py
in SupportScripts/Python/AccountManagement
189 13
group_posts_detail.py
in SupportScripts/Python/GetGroupFeedWithDetails
85 12
app.js
in SampleIntegrations/SampleBots/NodeJS/FileAnIssue
199 9
manage_groups.py
in SupportScripts/Python/ManageGroupMembers
67 9
remove_members_from_group.py
in SupportScripts/Python/ManageGroupMembers
69 9
app.js
in SampleIntegrations/SampleBots/NodeJS/EmployeeSurvey
242 8
export_kl_category.py
in SupportScripts/Python/GetKLCategoryInfo
61 7
export_user_data.py
in SupportScripts/Python/ExportUserDataWithInsights
51 6
export_groups.py
in SupportScripts/Python/GetGroupListWithDetails
57 6
app.js
in SampleIntegrations/SampleWebhooks/NodeJS/BasicWebhooksExample
108 5
messages_member.py
in SupportScripts/Python/DownloadMessagesFromMember
41 5
remove_inactive_members_from_group.py
in SupportScripts/Python/RemoveInactiveMembersFromGroup
50 5
remove_members_from_group_claim_date.py
in SupportScripts/Python/RemoveMembersFromGroupUsingClaimDate
55 5
messages.js
in SampleIntegrations/SampleBots/NodeJS/FAQBot/utilities
98 4
get_post_viewers.py
in SupportScripts/Python/GetPostViewers
38 4
download.py
in SupportScripts/Python/DownloadGroupFeed
76 4
graph-methods.js
in SampleIntegrations/SampleBots/NodeJS/FAQBot/quicklinks
28 3
webhook-validators.js
in SampleIntegrations/SampleBots/NodeJS/FAQBot/quicklinks
22 3
Files With Long Lines (Top 20)

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

File# lines# units# long lines
ps1
groupContentCloner.ps1
in SupportScripts/Powershell/MigrateGroupContentToNewTenant
434 - 39
ps1
exportCampaignActivity.ps1
in SupportScripts/Powershell/ExportCampaignActivity
176 - 24
ps1
cleanGroupMembers.ps1
in SupportScripts/Powershell/CleanGroupMembers
142 - 17
ps1
exportPostActivity.ps1
in SupportScripts/Powershell/ExportPostActivity
151 - 16
ps1
DownloadGroupFeed.ps1
in SupportScripts/Powershell/DownloadGroupFeed
130 - 16
ps1
exportUsersSCIM.ps1
in SupportScripts/Powershell/ExportUsersSCIM
115 - 13
scim_agent.py
in SupportScripts/Python/AccountManagement
189 13 11
ps1
groupMembersToPeopleSets.ps1
in SupportScripts/Powershell/MigrateUsersToPeopleSets
114 - 11
ps1
backup_all_users_groups.ps1
in SupportScripts/Powershell/BackupAllUsersGroups
85 - 11
ps1
changeBulkEmail.ps1
in SupportScripts/Powershell/ChangeBulkEmail
104 - 10
ps1
update_externalid_from_azuread.ps1
in SupportScripts/Powershell/UpdateExternalIdFromAzureAd
105 - 9
ps1
ChangeBulkObjectId.ps1
in SupportScripts/Powershell/ChangeBulkObjectId
108 - 9
ps1
archiveGroupsInBulk.ps1
in SupportScripts/Powershell/ArchiveGroupsInBulk
89 - 8
ps1
DeleteUserMessages.ps1
in SupportScripts/Powershell/DeleteUserMessages
108 - 8
ps1
RetrieveMessageInfo.ps1
in SupportScripts/Powershell/RetrieveMessageInfo
74 - 8
messages.js
in SampleIntegrations/SampleBots/NodeJS/FAQBot/utilities
98 4 7
ps1
exportGroupMembers.ps1
in SupportScripts/Powershell/ExportGroupMembers
60 - 7
ejs
home.ejs
in SampleIntegrations/SamplePlatforms/NodeJS/wp-claim-portal/app/views/pages
63 - 6
ps1
anonymiseUserFromId.ps1
in SupportScripts/Powershell/AnonymiseUserProfileData
101 - 6
ps1
exportUserData.ps1
in SupportScripts/Powershell/ExportUserDataWithInsights
66 - 5