Skip to content

Commit da3a4a2

Browse files
committed
Standardize workspace: Justfile migration and A2ML directive cleanup
1 parent d381541 commit da3a4a2

6 files changed

Lines changed: 1677 additions & 0 deletions

File tree

docs/figures/fnirs-analogy.mmd

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
```mermaid
2+
graph LR
3+
subgraph fNIRS
4+
A[Cortical Region] --> B[Blood Oxygenation]
5+
A --> C[Neural Activation Density]
6+
A --> D[Hemodynamic Response]
7+
A --> E[Optode Placement]
8+
A --> F[Functional Connectivity Channel]
9+
A --> G[Functional Map]
10+
A --> H[Time Series]
11+
end
12+
subgraph mass-panic
13+
A2[Repository] --> B2[Health Score]
14+
A2 --> C2[Weak-Point Density]
15+
A2 --> D2[Change Velocity]
16+
A2 --> E2[Scanner Coverage]
17+
A2 --> F2[Dependency Edge]
18+
A2 --> G2[SystemImage]
19+
A2 --> H2[Temporal Snapshot Sequence]
20+
end
21+
A -->|Analogy| A2
22+
B -->|Analogy| B2
23+
C -->|Analogy| C2
24+
D -->|Analogy| D2
25+
E -->|Analogy| E2
26+
F -->|Analogy| F2
27+
G -->|Analogy| G2
28+
H -->|Analogy| H2
29+
```

docs/figures/generate_histogram.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env python3
2+
"""
3+
Generate a risk distribution histogram for the mass-panic paper.
4+
"""
5+
import matplotlib.pyplot as plt
6+
import numpy as np
7+
8+
# Risk distribution data (from paper)
9+
categories = ['Healthy', 'Low', 'Moderate', 'High', 'Critical']
10+
counts = [200, 50, 30, 15, 8] # Example counts (adjust as needed)
11+
colors = ['#4CAF50', '#8BC34A', '#FFC107', '#FF9800', '#F44336']
12+
13+
# Create histogram
14+
plt.figure(figsize=(10, 6))
15+
bars = plt.bar(categories, counts, color=colors, edgecolor='black', linewidth=1.5)
16+
17+
# Add labels and title
18+
plt.xlabel('Risk Category', fontsize=12, fontweight='bold')
19+
plt.ylabel('Number of Repositories', fontsize=12, fontweight='bold')
20+
plt.title('Risk Distribution Across 303 Repositories', fontsize=14, fontweight='bold')
21+
22+
# Add value labels on top of bars
23+
for bar in bars:
24+
height = bar.get_height()
25+
plt.text(bar.get_x() + bar.get_width() / 2, height + 0.5, f'{int(height)}',
26+
ha='center', va='bottom', fontweight='bold')
27+
28+
# Save as high-resolution PNG and SVG
29+
plt.savefig('/var/mnt/eclipse/repos/games-ecosystem/panic-attacker/docs/figures/risk-distribution.png',
30+
dpi=300, bbox_inches='tight')
31+
plt.savefig('/var/mnt/eclipse/repos/games-ecosystem/panic-attacker/docs/figures/risk-distribution.svg',
32+
bbox_inches='tight')
33+
34+
print("Histogram generated successfully!")

docs/figures/risk-distribution.png

109 KB
Loading

0 commit comments

Comments
 (0)