facebookresearch / hydra
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 (24 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 24 components.
  • 199 files, 11,984 lines of code (64.9% vs. main code).
  • "hydra/_internal" is biggest, containing 30.91% of code.
  • "website/versioned_docs" is smallest, containing 0.35% of code.


hydra/_internal3704 LOC (20%) 25 files
hydra/core1928 LOC (10%) 15 files
plugins/hydra_ray_launcher892 LOC (4%) 15 files
plugins/hydra_optuna_sweeper527 LOC (2%) 11 files
ROOT488 LOC (2%) 5 files
plugins/hydra_ax_sweeper476 LOC (2%) 10 files
hydra/plugins408 LOC (2%) 7 files
tools/configen400 LOC (2%) 10 files
plugins/hydra_nevergrad_sweeper350 LOC (1%) 9 files
website/src301 LOC (1%) 6 files
website296 LOC (1%) 2 files
hydra294 LOC (1%) 7 files
plugins/hydra_rq_launcher281 LOC (1%) 9 files
plugins/hydra_submitit_launcher253 LOC (1%) 8 files
tools/release232 LOC (1%) 14 files
plugins/hydra_joblib_launcher229 LOC (1%) 9 files
hydra/conf201 LOC (1%) 13 files
build_helpers167 LOC (<1%) 2 files
hydra/grammar130 LOC (<1%) 3 files
plugins/hydra_colorlog125 LOC (<1%) 10 files
hydra/experimental119 LOC (<1%) 4 files
hydra/extra82 LOC (<1%) 1 files
tools/ci59 LOC (<1%) 1 files
website/versioned_docs42 LOC (<1%) 3 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-25 19:43