microsoft / MentalHealthPlatform
Components & Dependencies

An overview of source code logical components.

Intro

Logical decomposition is a representation of the organization of the main source code, where every and each file is put in exactly one logical component.

  • A software system can have one or more logical decompositions.
  • A logical decomposition can be defined in two ways in Sokrates.
  • First approach is based on the folders structure. Components are mapped to folders at defined folder depth relative to the source code root.
  • Second approach is based on explicit definition of each component. In such explicit definitions, components are explicitly named and their files are selected based on explicitly defined path and content filters.
  • A logical decomposition is considered invalid if a file is selected into two or more components.This constraint is introduced in order to facilitate measuring of dependencies among components.
  • Files not assigned to any component are put into a special "Unclassified" component.
Learn more...
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (31 components)

Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure (relative to the source code root), with automatically defined folder depth to have at least 10 components.

Bubble Chart | Tree Map
Components
The "primary" logical decomposition has 31 components.
  • 87 files, 3,600 lines of code (39.3% vs. main code).
  • "server/requests/get-requests" is biggest, containing 9.61% of code.
  • "client/src" is smallest, containing 0.42% of code.


server/requests/get-requests346 LOC (3%) 9 files
client/src/Components/SignupLogin316 LOC (3%) 3 files
client/src/Components/Chat267 LOC (2%) 3 files
client/src/Components/CreateChat185 LOC (2%) 3 files
client/src/Components155 LOC (1%) 4 files
client/src/Components/Topics151 LOC (1%) 3 files
server/requests/post-requests146 LOC (1%) 5 files
client/src/Components/CreateForm138 LOC (1%) 4 files
client/src/Components/Contacts137 LOC (1%) 3 files
client/src/util134 LOC (1%) 3 files
client/src/Components/Events125 LOC (1%) 4 files
client/src/Components/Messages121 LOC (1%) 2 files
client/src/Components/Forum116 LOC (1%) 3 files
client/src/Components/Crisis115 LOC (1%) 2 files
client/src/Components/DataCard115 LOC (1%) 2 files
client/src/Components/TrendingPostsPreview113 LOC (1%) 3 files
client/src/Components/TrendingKeywordsPreview96 LOC (1%) 3 files
client/src/Components/Dashboard93 LOC (1%) 2 files
client/src/Components/InfoCard89 LOC (<1%) 2 files
client/src/Components/CrisisPreview87 LOC (<1%) 2 files
client/src/Components/Navigation81 LOC (<1%) 2 files
client/src/Components/Topic64 LOC (<1%) 2 files
server63 LOC (<1%) 2 files
client/src/Components/DashboardTileButton62 LOC (<1%) 2 files
client/src/Components/SearchBar59 LOC (<1%) 2 files
client/src/Components/DashboardTile51 LOC (<1%) 2 files
client/src/Components/Icon49 LOC (<1%) 2 files
client/src/Components/LoadingBubbles41 LOC (<1%) 2 files
client/src/Components/SearchPage36 LOC (<1%) 2 files
server/requests34 LOC (<1%) 2 files
client/src15 LOC (<1%) 2 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-30 15:42