# barna154/mima architecture

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

- Interactive diagram: https://gitdiagram.com/barna154/mima
- Repository: https://github.com/barna154/mima

## Overview

This repository is a set of standalone Python analyses of Hungary’s passenger-car fleet, not a single application pipeline. Users run an individual script to read a CSV (or use embedded regional figures), calculate or filter indicators, and display a chart; `projekt.py` additionally explores correlations, trains classifiers, and fits a regression model. The scripts do not call one another. The README documents the main analytical capabilities; the graph reflects the shown script excerpts and does not imply a shared runtime or data flow between analyses.

Main entry points: [`adatbazisok`](https://github.com/barna154/mima/tree/main/adatbazisok) (Statistical CSVs), [`teljes_allomany.py`](https://github.com/barna154/mima/blob/main/teljes_allomany.py) (Total fleet), [`junius_allomany.py`](https://github.com/barna154/mima/blob/main/junius_allomany.py) (June fleet), [`atlageletkor.py`](https://github.com/barna154/mima/blob/main/atlageletkor.py) (Average age)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fleet["Fleet trends"]
  node_fleet_total["Total fleet<br/>[teljes_allomany.py]"]
  node_fleet_june["June fleet<br/>[junius_allomany.py]"]
  node_fleet_age["Average age<br/>[atlageletkor.py]"]
end

subgraph group_regional["Regional indicators"]
  node_county_fleet["County fleet<br/>[megyek_allomany.py]"]
  node_population["County population<br/>[lakossag.py]"]
  node_per_capita["Cars per capita<br/>[fejenkent.py]"]
end

subgraph group_models["Correlation and models"]
  node_model_analysis["Correlation and models<br/>[projekt.py]"]
end

subgraph group_data["Source data"]
  node_csv_data["Statistical CSVs"]
  node_annual_data["Annual analysis CSVs"]
end

node_user(("Analyst"))

node_user -->|"runs"| node_fleet_total
node_user -->|"runs"| node_fleet_june
node_user -->|"runs"| node_fleet_age
node_user -->|"runs"| node_county_fleet
node_user -->|"runs"| node_population
node_user -->|"runs"| node_per_capita
node_user -->|"runs"| node_model_analysis
node_fleet_total -->|"reads"| node_csv_data
node_fleet_june -->|"reads"| node_csv_data
node_fleet_age -->|"reads"| node_csv_data
node_county_fleet -->|"reads"| node_csv_data
node_population -->|"reads"| node_csv_data
node_model_analysis -->|"reads"| node_annual_data

click node_fleet_total "https://github.com/barna154/mima/blob/main/teljes_allomany.py"
click node_fleet_june "https://github.com/barna154/mima/blob/main/junius_allomany.py"
click node_fleet_age "https://github.com/barna154/mima/blob/main/atlageletkor.py"
click node_county_fleet "https://github.com/barna154/mima/blob/main/megyek_allomany.py"
click node_population "https://github.com/barna154/mima/blob/main/lakossag.py"
click node_per_capita "https://github.com/barna154/mima/blob/main/fejenkent.py"
click node_model_analysis "https://github.com/barna154/mima/blob/main/projekt.py"
click node_csv_data "https://github.com/barna154/mima/tree/main/adatbazisok"
click node_annual_data "https://github.com/barna154/mima/tree/main/adatbazisok"

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_fleet_total,node_fleet_june,node_fleet_age toneBlue
class node_county_fleet,node_population,node_per_capita toneAmber
class node_model_analysis toneMint
class node_csv_data,node_annual_data toneRose
class node_user toneIndigo
```

## Components

### Fleet trends

- [Total fleet](https://github.com/barna154/mima/blob/main/teljes_allomany.py): `teljes_allomany.py`
- [June fleet](https://github.com/barna154/mima/blob/main/junius_allomany.py): `junius_allomany.py`
- [Average age](https://github.com/barna154/mima/blob/main/atlageletkor.py): `atlageletkor.py`

### Regional indicators

- [County fleet](https://github.com/barna154/mima/blob/main/megyek_allomany.py): `megyek_allomany.py`
- [County population](https://github.com/barna154/mima/blob/main/lakossag.py): `lakossag.py`
- [Cars per capita](https://github.com/barna154/mima/blob/main/fejenkent.py): `fejenkent.py`

### Correlation and models

- [Correlation and models](https://github.com/barna154/mima/blob/main/projekt.py): `projekt.py`

### Source data

- [Statistical CSVs](https://github.com/barna154/mima/tree/main/adatbazisok): `adatbazisok`
- [Annual analysis CSVs](https://github.com/barna154/mima/tree/main/adatbazisok): `adatbazisok`

### Other components

- **Analyst**

## Connections

- Analyst → Total fleet: runs (evidence: `README.md`)
- Analyst → June fleet: runs (evidence: `README.md`)
- Analyst → Average age: runs (evidence: `README.md`)
- Analyst → County fleet: runs (evidence: `README.md`)
- Analyst → County population: runs (evidence: `README.md`)
- Analyst → Cars per capita: runs (evidence: `README.md`)
- Analyst → Correlation and models: runs (evidence: `README.md`)
- Total fleet → Statistical CSVs: reads (evidence: `teljes_allomany.py`)
- June fleet → Statistical CSVs: reads (evidence: `junius_allomany.py`)
- Average age → Statistical CSVs: reads (evidence: `atlageletkor.py`)
- County fleet → Statistical CSVs: reads (evidence: `megyek_allomany.py`)
- County population → Statistical CSVs: reads (evidence: `lakossag.py`)
- Correlation and models → Annual analysis CSVs: reads (evidence: `projekt.py`)
