{#
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2025 The Linux Foundation
#}

{#- Section: Summary Statistics (Markdown) -#}
{#- Renders the summary section with global repository statistics -#}
{#-
    Context required:
        - summary (dict): Summary statistics
        - config (dict): Configuration options

    This section displays:
        - Global statistics table
        - Repository counts by activity status
        - Matches production format: 3 columns, "Gerrit Projects" terminology
-#}

{% if config.include_sections.summary %}
## 📈 Global Summary

**✅ Current** commits within last 365 days

**☑️ Active** commits between 365-1095 days

**🛑 Inactive** no commits in 1095+ days

| Metric | Count | Percentage |
| --- | --- | --- |
| Total {{ project.terminology.repositories }} | {{ summary.repositories_analyzed }} | 100% |
| Current {{ project.terminology.repositories }} | {{ summary.current_count }} | {{ (summary.current_percentage | default(0) | round(1)) }}% |
| Active {{ project.terminology.repositories }} | {{ summary.active_count }} | {{ (summary.active_percentage | default(0) | round(1)) }}% |
| Inactive {{ project.terminology.repositories }} | {{ summary.inactive_count }} | {{ (summary.inactive_percentage | default(0) | round(1)) }}% |
| No Apparent Commits | {{ summary.no_commit_count }} | {{ (summary.no_commit_percentage | default(0) | round(1)) }}% |
| Total Commits | {{ summary.total_commits_formatted }} | - |
| Total Lines of Code | {{ summary.net_lines_formatted }} | - |

---
{% endif %}
