anthropics / orjson
Components

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.
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (7 components)

Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure at level 1 (relative to the source code root).

Bubble Chart | Tree Map
Component Sizes (Lines of Code)
The "primary" logical decomposition has 7 components.
  • 87 files, 20,185 LOC (100.0% vs. main code).
  • "include" is biggest, containing 55.87% of LOC.
  • "ci" is smallest, containing 0.06% of LOC.


include11277 LOC (55%) 2 files
src8674 LOC (42%) 73 files
ROOT71 LOC (<1%) 1 file
bench67 LOC (<1%) 5 files
pysrc58 LOC (<1%) 2 files
integration25 LOC (<1%) 2 files
ci13 LOC (<1%) 2 files
Component Commits
Components ordered by number of commits
Total Commits per Component
All commits, some commits may include files from multiple components.
src269 commits (34%)
ROOT50 commits (6%)
bench25 commits (3%)
include16 commits (2%)
integration10 commits (1%)
pysrc9 commits (1%)
ci5 commits (<1%)
Yearly File Updates Trend per Components
The number of file changes in commits
animated commit history: all time cumulative | 12 months window
2026 2025 2024 2023 2022 2021 2020 2019 2018
src
19
34
36
46
22
27
44
28
13
ROOT
5
12
12
6
8
4
3
pysrc
5
2
2
bench
2
3
2
2
1
3
8
4
integration
1
2
1
2
1
2
1
include
1
1
2
9
3
ci
2
1
2


Dependencies between components in same commits (past 180 days)
The number on the lines shows the number of shared commits.
See detailed temporal dependencies report...

flowchart TB
    n0["src"]
    n1["ROOT"]
    n2["pysrc"]
    n3["bench"]
    n4["integration"]
    n5["include"]
    n0 ---|"18"| n0
    n1 ---|"5"| n0
    n0 ---|"5"| n2
    n3 ---|"2"| n3
    n0 ---|"2"| n3
    n1 ---|"2"| n2
    n4 ---|"1"| n0
    n0 ---|"1"| n5
    n3 ---|"1"| n2
    n4 ---|"1"| n4
    n4 ---|"1"| n1
    n4 ---|"1"| n3
    n3 ---|"1"| n1
    n2 ---|"1"| n2
    n4 ---|"1"| n2
    n5 ---|"1"| n1
    classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    linkStyle 0 stroke:#a0a0a0FF,stroke-width:10px
    linkStyle 1 stroke:#00688b70,stroke-width:2px
    linkStyle 2 stroke:#00688b70,stroke-width:2px
    linkStyle 3 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 4 stroke:#00688b5E,stroke-width:1px
    linkStyle 5 stroke:#00688b5E,stroke-width:1px
    linkStyle 6 stroke:#00688b4C,stroke-width:1px
    linkStyle 7 stroke:#00688b4C,stroke-width:1px
    linkStyle 8 stroke:#00688b4C,stroke-width:1px
    linkStyle 9 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 10 stroke:#00688b4C,stroke-width:1px
    linkStyle 11 stroke:#00688b4C,stroke-width:1px
    linkStyle 12 stroke:#00688b4C,stroke-width:1px
    linkStyle 13 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 14 stroke:#00688b4C,stroke-width:1px
    linkStyle 15 stroke:#00688b4C,stroke-width:1px



2026-06-24 10:45