aws-samples / amazon-personalize-immersion-day
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 (32 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 32 components.
  • 61 files, 2,510 lines of code (12.1% vs. main code).
  • "automation/ml_ops" is biggest, containing 53.47% of code.
  • "automation/ml_ops/lambdas/delete-tracker" is smallest, containing 0.36% of code.


automation/ml_ops1342 LOC (6%) 2 files
automation/streaming_events411 LOC (1%) 1 files
ROOT87 LOC (<1%) 1 files
notebooks/Automated-Media70 LOC (<1%) 1 files
automation/ml_ops/lambdas/create-dataset61 LOC (<1%) 2 files
automation/streaming_events/lambdas/putevents45 LOC (<1%) 1 files
automation/ml_ops/lambdas/create-campaign44 LOC (<1%) 2 files
automation/ml_ops/lambdas/create-solution38 LOC (<1%) 2 files
automation/ml_ops/lambdas/import-data35 LOC (<1%) 2 files
automation/ml_ops/shared/python30 LOC (<1%) 3 files
automation/ml_ops/lambdas/s3lambda29 LOC (<1%) 2 files
automation/ml_ops/lambdas/event-tracker28 LOC (<1%) 2 files
automation/ml_ops/lambdas/create-datasetgroup26 LOC (<1%) 2 files
automation/streaming_events/lambdas/getRecommendations24 LOC (<1%) 2 files
automation/ml_ops/lambdas/notify-delete19 LOC (<1%) 2 files
automation/ml_ops/lambdas/list-solutions16 LOC (<1%) 2 files
automation/ml_ops/lambdas/list-solution-versions16 LOC (<1%) 2 files
automation/ml_ops/lambdas/list-datasets16 LOC (<1%) 2 files
automation/ml_ops/lambdas/list-campaigns16 LOC (<1%) 2 files
automation/ml_ops/lambdas/list-trackers16 LOC (<1%) 2 files
automation/ml_ops/lambdas/notify14 LOC (<1%) 2 files
automation/ml_ops/lambdas/delete-campaign13 LOC (<1%) 2 files
automation/ml_ops/lambdas/delete-datasetgroup13 LOC (<1%) 2 files
automation/ml_ops/lambdas/delete-solution13 LOC (<1%) 2 files
automation/ml_ops/lambdas/delete-dataset13 LOC (<1%) 2 files
automation/ml_ops/lambdas/wait-delete-datasetgroup11 LOC (<1%) 2 files
automation/ml_ops/lambdas/wait-delete-dataset11 LOC (<1%) 2 files
automation/ml_ops/lambdas/wait-delete-solution11 LOC (<1%) 2 files
automation/ml_ops/lambdas/wait-delete-campaign11 LOC (<1%) 2 files
automation/ml_ops/lambdas/wait-solution-version11 LOC (<1%) 2 files
automation/ml_ops/lambdas/wait-delete-tracker11 LOC (<1%) 2 files
automation/ml_ops/lambdas/delete-tracker9 LOC (<1%) 2 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-31 17:01