twitter / the-algorithm
Static Component 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.

Learn more...
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

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 23 components.
  • 5,739 files, 433,772 LOC (100.0% vs. main code).
  • "src" is biggest, containing 30.97% of LOC.
  • "science" is smallest, containing 0.11% of LOC.


src134340 LOC (30%) 1,280 files
tweetypie42121 LOC (9%) 506 files
product-mixer38389 LOC (8%) 1,147 files
pushservice33300 LOC (7%) 293 files
visibilitylib26642 LOC (6%) 201 files
home-mixer25323 LOC (5%) 384 files
cr-mixer20984 LOC (4%) 261 files
ann20582 LOC (4%) 303 files
follow-recommendations-service20286 LOC (4%) 430 files
twml19741 LOC (4%) 209 files
navi12000 LOC (2%) 120 files
timelineranker9879 LOC (2%) 159 files
unified_user_actions8222 LOC (1%) 141 files
timelines4609 LOC (1%) 66 files
topic-social-proof2676 LOC (<1%) 38 files
representation-manager2526 LOC (<1%) 24 files
recos-injector2462 LOC (<1%) 35 files
trust_and_safety_models2244 LOC (<1%) 19 files
user-signal-service2243 LOC (<1%) 38 files
graph-feature-service1686 LOC (<1%) 30 files
representation-scorer1678 LOC (<1%) 24 files
simclusters-ann1349 LOC (<1%) 27 files
science490 LOC (<1%) 4 files
Static Dependencies
Dependencies among components are static code dependencies among files in different components.
  • Analyzed system has 36 links (arrows) between components.
  • The number on the arrow represents the number of files from referring component that depend on files in referred component.
  • These 36 links contain 885 dependencies.
  • There are 2 places (4 links) with cyclic dependencies (83 file dependencies).
G ann ann product-mixer product-mixer product-mixer->ann 2 tweetypie tweetypie product-mixer->tweetypie 13 twml twml simclusters-ann simclusters-ann representation-manager representation-manager simclusters-ann->representation-manager 1 src src simclusters-ann->src 8 representation-manager->tweetypie 4 representation-manager->src 7 science science visibilitylib visibilitylib visibilitylib->tweetypie 54 pushservice pushservice pushservice->product-mixer 2 pushservice->tweetypie 7 pushservice->src 1 navi navi cr-mixer cr-mixer cr-mixer->ann 2 cr-mixer->product-mixer 2 cr-mixer->tweetypie 5 cr-mixer->src 77 follow-recommendations-service follow-recommendations-service follow-recommendations-service->product-mixer 134 follow-recommendations-service->tweetypie 7 timelines timelines timelines->src 8 user-signal-service user-signal-service user-signal-service->src 9 timelineranker timelineranker timelineranker->tweetypie 65 representation-scorer representation-scorer representation-scorer->representation-manager 2 representation-scorer->src 8 recos-injector recos-injector recos-injector->tweetypie 4 trust_and_safety_models trust_and_safety_models tweetypie->visibilitylib 6 graph-feature-service graph-feature-service graph-feature-service->tweetypie 2 graph-feature-service->src 1 topic-social-proof topic-social-proof topic-social-proof->tweetypie 4 topic-social-proof->src 13 home-mixer home-mixer home-mixer->product-mixer 316 home-mixer->timelines 17 home-mixer->tweetypie 30 home-mixer->src 24 unified_user_actions unified_user_actions unified_user_actions->tweetypie 10 src->ann 1 src->timelines 15 src->tweetypie 23 src->unified_user_actions 1


Download: SVG DOT (open online Graphviz editor)

Open 2D force graph...
Open 3D force graph...

Show more details about dependencies...






2025-01-17 12:02