facebookresearch / CrypTen
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 (21 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 21 components.
  • 84 files, 11,524 lines of code (100.0% vs. main code).
  • "crypten" is biggest, containing 19.03% of code.
  • "configs" is smallest, containing 0.3% of code.


crypten2193 LOC (19%) 5 files
crypten/nn2166 LOC (18%) 9 files
crypten/mpc1860 LOC (16%) 18 files
crypten/common1314 LOC (11%) 14 files
benchmarks/dash_app811 LOC (7%) 4 files
benchmarks734 LOC (6%) 6 files
crypten/communicator550 LOC (4%) 4 files
crypten/cuda479 LOC (4%) 2 files
scripts314 LOC (2%) 2 files
website/pages219 LOC (1%) 1 files
tutorials142 LOC (1%) 1 files
pycon-workshop-2020117 LOC (1%) 2 files
crypten/models117 LOC (1%) 1 files
crypten/debug103 LOC (<1%) 2 files
crypten/optim95 LOC (<1%) 3 files
website/static90 LOC (<1%) 2 files
crypten/config57 LOC (<1%) 2 files
ROOT51 LOC (<1%) 2 files
website43 LOC (<1%) 1 files
website/core35 LOC (<1%) 1 files
configs34 LOC (<1%) 2 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-25 19:44