# namonaki1234/wsl architecture

> Architecture diagram of the GitHub repository namonaki1234/wsl, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-11-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/namonaki1234/wsl
- Repository: https://github.com/namonaki1234/wsl

## Overview

##### Project type and purpose
- This is not a single full-stack web app or microservice; it’s a monolithic “code vault” or “monorepo” that lives under WSL, used to store and sync:
- Competitive programming solutions (AtCoder, Paiza, Codeforces, etc.)
- Scientific or simulation code (Fortran projects, grid generation, flow solvers)
- Python utilities and notebooks (data processing, Shogi and Sudoku camera recognition, playlist fetch, etc.)
- Shell scripts and helpers (count_file.sh, disc_volume.sh, test.sh)
- The README simply says “WSLのディレクトリ – どのデバイスでも同期できる！” (A WSL directory that can be synced across devices), confirming the goal is cross-device code synchronization.

##### File structure
- Top‐level folders group by domain or contest platform:
- atcoder/ – All AtCoder problem source files, organized by contest and problem
- paiza/ – Paiza problem solutions by category
- fortran/ – Various Fortran exercises, solvers, grid-generation tools; often with nested folders per assignment
- python/ – Python scripts, Jupyter notebooks, and two major sub‐projects:
– shogi-camera/ – CLI, data, models, Docker containers for GPU/CPU image recognition of Shogi boards
– sudoku-camera/ – Equivalent structure for Sudoku
- Other miscellaneous scripts at the root (e.g., anilist conversion scripts, playlist fetcher, helper .sh scripts)
- Nested configuration/build files, e.g., Dockerfiles under containers, setup.py in camera modules, .vscode settings in atcoder/.

##### README
- Python (scripts, .py, .ipynb, .h5 models)
- Fortran (.f90)
- C/C++ (some .cpp)
- Shell scripts
- Docker for containerizing camera projects

##### Elements
- Blue for Competitive Programming folders
- Green for Fortran/Scientific code
- Orange for Python Utilities
- Yellow for Containers

## Diagram (Mermaid)

```mermaid
graph TB
    %% Root
    subgraph "WSL Monorepo Root"
        direction TB
        Repo["WSL Monorepo Root"]:::root

        %% Competitive Programming
        subgraph "Competitive Programming Module"
            direction TB
            AtCoder["AtCoder Solutions\n(atcoder/)"]:::cp
            Paiza["Paiza Solutions\n(paiza/)"]:::cp
        end

        %% Fortran
        subgraph "Scientific/Simulation Module"
            direction TB
            Fortran["Fortran CFD Solvers\n(fortran/)"]:::fortran
        end

        %% Python Utilities
        subgraph "Python Utilities Module"
            direction TB
            PyUtils["General Scripts & Notebooks\n(python/)"]:::python
            ASP["asp_converter.py"]:::python
            PLT["plt.py"]:::python
            NB["sapu_plt.ipynb"]:::python
            YT["yotube_playlist_fetch.py"]:::python
            AN1["anilist_completed_diff_to_csv.py"]:::python
            AN2["anilist_completed_diff_to_csv.mjs"]:::python
        end

        %% Shogi Camera
        subgraph "Shogi-Camera Submodule"
            direction TB
            ShogiBase["python/shogi-camera/"]:::python
            CLI_S["cli.py"]:::python
            Core_S["shogicam package"]:::python
            Pre_S["preprocess"]:::python
            Learn_S["learn"]:::python
            Predict_S["predict"]:::python
            Data_S["data"]:::data
            Templates_S["templates & templates_auto"]:::data
            RawImg_S["raw_img"]:::data
            Models_S["models (.h5)"]:::models
            Containers_S["containers"]:::container
            Notebooks_S["notebooks"]:::python
            Setup_S["setup.py"]:::python
        end

        %% Sudoku Camera
        subgraph "Sudoku-Camera Submodule"
            direction TB
            SudokuBase["python/sudoku-camera/"]:::python
            CLI_D["cli.py"]:::python
            Core_D["shogicam package"]:::python
            Pre_D["preprocess"]:::python
            Learn_D["learn"]:::python
            Predict_D["predict"]:::python
            Data_D["data"]:::data
            Templates_D["templates & templates_auto"]:::data
            RawImg_D["raw_img"]:::data
            Models_D["models (.h5)"]:::models
            Containers_D["containers"]:::container
            Notebooks_D["notebooks"]:::python
            RunAll_D["run_all.sh"]:::python
            Setup_D["setup.py"]:::python
        end

        %% Misc Scripts
        subgraph "Miscellaneous Shell Helpers"
            direction TB
            Count["count_file.sh"]:::shell
            Disc["disc_volume.sh"]:::shell
            TestSh["test.sh"]:::shell
        end

    end

    %% Relationships
    CLI_S -->|calls| Pre_S -->|calls| Learn_S -->|calls| Predict_S -->|reads| Models_S -->|outputs| ShogiBase
    CLI_D -->|calls| Pre_D -->|calls| Learn_D -->|calls| Predict_D -->|reads| Models_D -->|outputs| SudokuBase

    %% Filesystem sync dashed boundary
    Repo -.-> AtCoder
    Repo -.-> Paiza
    Repo -.-> Fortran
    Repo -.-> PyUtils
    Repo -.-> ShogiBase
    Repo -.-> SudokuBase
    Repo -.-> Count

    %% Click Events
    click AtCoder "https://github.com/namonaki1234/wsl/tree/master/atcoder/"
    click Paiza "https://github.com/namonaki1234/wsl/tree/master/paiza/"
    click Fortran "https://github.com/namonaki1234/wsl/tree/master/fortran/"
    click PyUtils "https://github.com/namonaki1234/wsl/tree/master/python/"
    click ASP "https://github.com/namonaki1234/wsl/blob/master/python/asp_converter.py"
    click PLT "https://github.com/namonaki1234/wsl/blob/master/python/plt.py"
    click NB "https://github.com/namonaki1234/wsl/blob/master/python/sapu_plt.ipynb"
    click YT "https://github.com/namonaki1234/wsl/blob/master/python/yotube_playlist_fetch.py"
    click AN1 "https://github.com/namonaki1234/wsl/blob/master/anilist_completed_diff_to_csv.py"
    click AN2 "https://github.com/namonaki1234/wsl/blob/master/anilist_completed_diff_to_csv.mjs"
    click ShogiBase "https://github.com/namonaki1234/wsl/tree/master/python/shogi-camera/"
    click CLI_S "https://github.com/namonaki1234/wsl/blob/master/python/shogi-camera/cli.py"
    click Core_S "https://github.com/namonaki1234/wsl/tree/master/python/shogi-camera/shogicam/"
    click Data_S "https://github.com/namonaki1234/wsl/tree/master/python/shogi-camera/data/"
    click Templates_S "https://github.com/namonaki1234/wsl/tree/master/python/shogi-camera/templates/"
    click RawImg_S "https://github.com/namonaki1234/wsl/tree/master/python/shogi-camera/raw_img/"
    click Models_S "https://github.com/namonaki1234/wsl/tree/master/python/shogi-camera/models/"
    click Containers_S "https://github.com/namonaki1234/wsl/tree/master/python/shogi-camera/containers/"
    click Notebooks_S "https://github.com/namonaki1234/wsl/tree/master/python/shogi-camera/notebooks/"
    click Setup_S "https://github.com/namonaki1234/wsl/blob/master/python/shogi-camera/setup.py"
    click SudokuBase "https://github.com/namonaki1234/wsl/tree/master/python/sudoku-camera/"
    click CLI_D "https://github.com/namonaki1234/wsl/blob/master/python/sudoku-camera/cli.py"
    click Core_D "https://github.com/namonaki1234/wsl/tree/master/python/sudoku-camera/shogicam/"
    click Data_D "https://github.com/namonaki1234/wsl/tree/master/python/sudoku-camera/data/"
    click Templates_D "https://github.com/namonaki1234/wsl/tree/master/python/sudoku-camera/templates/"
    click RawImg_D "https://github.com/namonaki1234/wsl/tree/master/python/sudoku-camera/raw_img/"
    click Models_D "https://github.com/namonaki1234/wsl/tree/master/python/sudoku-camera/models/"
    click Containers_D "https://github.com/namonaki1234/wsl/tree/master/python/sudoku-camera/containers/"
    click Notebooks_D "https://github.com/namonaki1234/wsl/tree/master/python/sudoku-camera/notebooks/"
    click RunAll_D "https://github.com/namonaki1234/wsl/blob/master/python/sudoku-camera/run_all.sh"
    click Setup_D "https://github.com/namonaki1234/wsl/blob/master/python/sudoku-camera/setup.py"
    click Count "https://github.com/namonaki1234/wsl/blob/master/count_file.sh"
    click Disc "https://github.com/namonaki1234/wsl/blob/master/disc_volume.sh"
    click TestSh "https://github.com/namonaki1234/wsl/blob/master/test.sh"

    %% Styles
    classDef root fill:#ffffff,stroke:#333,stroke-width:2px;
    classDef cp fill:#cce5ff,stroke:#004085;
    classDef fortran fill:#d4edda,stroke:#155724;
    classDef python fill:#ffe5b4,stroke:#cc8400;
    classDef container fill:#fff3cd,stroke:#856404;
    classDef data fill:#f5c6cb,stroke:#721c24;
    classDef models fill:#d1ecf1,stroke:#0c5460;
    classDef shell fill:#e2e3e5,stroke:#6c757d;
```
