# samy101/lead-dataset architecture

> Architecture diagram of the GitHub repository samy101/lead-dataset, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/samy101/lead-dataset
- Repository: https://github.com/samy101/lead-dataset

## Overview

This repository contains an R application named AnomalyAnnotator alongside a small LEAD dataset archive. The README describes LEAD as annotated smart-meter time series and documents a prediction competition, but does not explain how the application processes data. Source excerpts were unavailable, so the graph identifies components from their paths and names without asserting runtime connections or app behavior.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_annotator["Anomaly annotator"]
  node_app_entry["App entry<br/>[app.R]"]
  node_observers["Server observers<br/>[server-observers.R]"]
  node_anomaly_combiner["Anomaly combiner<br/>[combine_anomaly.R]"]
end

subgraph group_runtime["App runtime"]
  node_global_config["Global setup<br/>[global.R]"]
  node_data_init["Data initialization<br/>[initialize_data.R]"]
end

subgraph group_assets["Dataset assets"]
  node_lead_archive["LEAD sample data<br/>[lead1.0-small.zip]"]
end

node_annotator_user(("Annotator"))

click node_app_entry "https://github.com/samy101/lead-dataset/blob/main/AnomalyAnnotator/app.R"
click node_observers "https://github.com/samy101/lead-dataset/blob/main/AnomalyAnnotator/server-observers.R"
click node_anomaly_combiner "https://github.com/samy101/lead-dataset/blob/main/AnomalyAnnotator/combine_anomaly.R"
click node_global_config "https://github.com/samy101/lead-dataset/blob/main/AnomalyAnnotator/global.R"
click node_data_init "https://github.com/samy101/lead-dataset/blob/main/AnomalyAnnotator/initialize_data.R"
click node_lead_archive "https://github.com/samy101/lead-dataset/blob/main/data/lead1.0-small.zip"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_entry,node_observers,node_anomaly_combiner toneBlue
class node_global_config,node_data_init toneAmber
class node_lead_archive toneMint
class node_annotator_user toneIndigo
```

## Components

### Anomaly annotator

- [App entry](https://github.com/samy101/lead-dataset/blob/main/AnomalyAnnotator/app.R): `AnomalyAnnotator/app.R`
- [Server observers](https://github.com/samy101/lead-dataset/blob/main/AnomalyAnnotator/server-observers.R): `AnomalyAnnotator/server-observers.R`
- [Anomaly combiner](https://github.com/samy101/lead-dataset/blob/main/AnomalyAnnotator/combine_anomaly.R): `AnomalyAnnotator/combine_anomaly.R`

### App runtime

- [Global setup](https://github.com/samy101/lead-dataset/blob/main/AnomalyAnnotator/global.R): `AnomalyAnnotator/global.R`
- [Data initialization](https://github.com/samy101/lead-dataset/blob/main/AnomalyAnnotator/initialize_data.R): `AnomalyAnnotator/initialize_data.R`

### Dataset assets

- [LEAD sample data](https://github.com/samy101/lead-dataset/blob/main/data/lead1.0-small.zip): `data/lead1.0-small.zip`

### Other components

- **Annotator**
