Skip to content

Commit a052fe3

Browse files
committed
feat: Update user statistics and configuration for improved accuracy
1 parent a017ec3 commit a052fe3

5 files changed

Lines changed: 46 additions & 45 deletions

File tree

.github/workflows/update-stats.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,24 @@ jobs:
4141
echo "Checking if README was modified:"
4242
git diff docs/README.md | head -20
4343
44-
- name: Extract user info from config
45-
id: user_info
44+
- name: Configure Git
4645
run: |
47-
if [ -f "src/config.json" ]; then
48-
USER_NAME=$(python3 -c "import json, sys; data=json.load(open('src/config.json')); print(data.get('USER_INFO', {}).get('name', '${{ github.actor }}'))" 2>/dev/null || echo "${{ github.actor }}")
49-
USER_EMAIL=$(python3 -c "import json, sys; data=json.load(open('src/config.json')); print(data.get('USER_INFO', {}).get('email', '${{ github.actor }}@users.noreply.github.com'))" 2>/dev/null || echo "${{ github.actor }}@users.noreply.github.com")
46+
# Try to get author info from src/config.json, fallback to defaults
47+
if [ -f src/config.json ]; then
48+
AUTHOR_NAME=$(python3 -c "import json; data=json.load(open('src/config.json')); print(data.get('USER_INFO', {}).get('name', 'GitHub Actions'))" 2>/dev/null || echo "GitHub Actions")
49+
AUTHOR_EMAIL=$(python3 -c "import json; data=json.load(open('src/config.json')); print(data.get('USER_INFO', {}).get('email', 'actions@github.com'))" 2>/dev/null || echo "actions@github.com")
5050
else
51-
USER_NAME="${{ github.actor }}"
52-
USER_EMAIL="${{ github.actor }}@users.noreply.github.com"
51+
AUTHOR_NAME="GitHub Actions"
52+
AUTHOR_EMAIL="actions@github.com"
5353
fi
54-
echo "user_name=$USER_NAME" >> $GITHUB_OUTPUT
55-
echo "user_email=$USER_EMAIL" >> $GITHUB_OUTPUT
54+
55+
echo "🔧 Configuring git with author: $AUTHOR_NAME <$AUTHOR_EMAIL>"
56+
git config --global user.name "$AUTHOR_NAME"
57+
git config --global user.email "$AUTHOR_EMAIL"
58+
echo "✅ Git configured successfully"
5659
5760
- name: Commit and push if changed
5861
run: |
59-
git config --global user.name '${{ steps.user_info.outputs.user_name }}'
60-
git config --global user.email '${{ steps.user_info.outputs.user_email }}'
6162
echo "Checking for changes..."
6263
git status
6364
git add docs/README.md data/last_known_counts.json .github/workflows/update-stats.yml

data/last_known_counts.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"counts": {
33
"CSES": 22,
4-
"Codeforces": 1582,
4+
"Codeforces": 2609,
55
"CodeChef": 126,
66
"AtCoder": 157,
77
"LeetCode": 412,
@@ -49,7 +49,7 @@
4949
},
5050
"usernames": {
5151
"CSES": "165802",
52-
"Codeforces": "ayon",
52+
"Codeforces": "MishkatIT",
5353
"AtCoder": "MishkatIT",
5454
"CodeChef": "MishkatIT",
5555
"LeetCode": "MishkatIT",
@@ -63,10 +63,10 @@
6363
},
6464
"ratings": {
6565
"Codeforces": {
66-
"current": 1135,
67-
"max": 1291,
68-
"rank": "newbie",
69-
"max_rank": "pupil"
66+
"current": 1330,
67+
"max": 1443,
68+
"rank": "pupil",
69+
"max_rank": "specialist"
7070
}
7171
}
7272
}

data/stats.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2+
"Codeforces": null,
3+
"LeetCode": null,
4+
"CodeChef": null,
5+
"AtCoder": null,
6+
"CSES": null,
7+
"HackerEarth": null,
28
"HackerRank": null,
3-
"CSES": 22,
4-
"LeetCode": 412,
5-
"AtCoder": 157,
6-
"CodeChef": 126,
7-
"Toph": 37,
8-
"SPOJ": null,
9-
"VJudge": 347,
10-
"Codeforces": 1582,
11-
"LightOJ": 31,
12-
"Uva": 7,
13-
"HackerEarth": 2
9+
"LightOJ": null,
10+
"Toph": null,
11+
"Uva": null,
12+
"VJudge": null,
13+
"SPOJ": null
1414
}

docs/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
<div align="center">
22

3-
<table align="center"><tr><td style="background: #E8F5E8; padding: 20px; border: 2px solid #81C784;" align="center">
4-
<h1 align="center" style="font-size: 2.5em; font-weight: bold; margin: 0; color: #2E7D32;">Problem Solving Statistics</h1>
3+
<table align="center"><tr><td style="background: #E0F2F1; padding: 20px; border: 2px solid #4DB6AC;" align="center">
4+
<h1 align="center" style="font-size: 2.5em; font-weight: bold; margin: 0; color: #00695C;">Problem Solving Statistics</h1>
55
</td></tr></table>
66

77
<!-- DYNAMIC_BADGES_START -->
88
![Last Updated](https://img.shields.io/badge/Last%20Updated-24%20January%202026-blue?style=for-the-badge)
9-
![Total Problems](https://img.shields.io/badge/Total%20Solved-2723-success?style=for-the-badge)
9+
![Total Problems](https://img.shields.io/badge/Total%20Solved-3750-success?style=for-the-badge)
1010
![Platforms](https://img.shields.io/badge/Platforms-10-orange?style=for-the-badge)
1111
<!-- DYNAMIC_BADGES_END -->
1212

1313
<!-- UPDATE_METADATA_START -->
14-
<p align="center"><strong>Updated:</strong> 24 January 2026 at 21:08:36 • Unknown</p>
14+
<p align="center"><strong>Updated:</strong> 24 January 2026 at 09:19:36 PM • Unknown</p>
1515
<!-- UPDATE_METADATA_END -->
1616

1717
<!-- AUTO_GENERATED_SECTION_START: STATS_TABLE -->
1818
| 🎯 Platform | 👤 Profile | ✅ Solved | 📈 Progress | 📅 Updated On | 🔄 Mode |
1919
|-------------|------------|-----------|-------------|---------------|----------|
20-
| <img src="https://www.google.com/s2/favicons?domain=codeforces.com&sz=16" width="16" height="16" alt="Codeforces logo"/> **Codeforces** | [ayon](https://codeforces.com/profile/ayon) | **1582** | ![Progress](https://img.shields.io/badge/Progress-58.1%25-AA0000?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
21-
| <img src="https://www.google.com/s2/favicons?domain=leetcode.com&sz=16" width="16" height="16" alt="LeetCode logo"/> **LeetCode** | [MishkatIT](https://leetcode.com/u/MishkatIT/) | **412** | ![Progress](https://img.shields.io/badge/Progress-15.1%25-FF3333?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
22-
| <img src="https://www.google.com/s2/favicons?domain=vjudge.net&sz=16" width="16" height="16" alt="VJudge logo"/> **VJudge** | [MishkatIT](https://vjudge.net/user/MishkatIT) | **347** | ![Progress](https://img.shields.io/badge/Progress-12.7%25-FF7777?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
23-
| <img src="https://www.google.com/s2/favicons?domain=atcoder.jp&sz=16" width="16" height="16" alt="AtCoder logo"/> **AtCoder** | [MishkatIT](https://atcoder.jp/users/MishkatIT) | **157** | ![Progress](https://img.shields.io/badge/Progress-5.8%25-FFBB55?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
24-
| <img src="https://www.google.com/s2/favicons?domain=www.codechef.com&sz=16" width="16" height="16" alt="CodeChef logo"/> **CodeChef** | [MishkatIT](https://www.codechef.com/users/MishkatIT) | **126** | ![Progress](https://img.shields.io/badge/Progress-4.6%25-FFCC88?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
25-
| <img src="https://www.google.com/s2/favicons?domain=toph.co&sz=16" width="16" height="16" alt="Toph logo"/> **Toph** | [MishkatIT](https://toph.co/u/MishkatIT) | **37** | ![Progress](https://img.shields.io/badge/Progress-1.4%25-FF88FF?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
26-
| <img src="https://www.google.com/s2/favicons?domain=lightoj.com&sz=16" width="16" height="16" alt="LightOJ logo"/> **LightOJ** | [mishkatit](https://lightoj.com/user/mishkatit) | **31** | ![Progress](https://img.shields.io/badge/Progress-1.1%25-AAAAFF?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
27-
| <img src="https://www.google.com/s2/favicons?domain=cses.fi&sz=16" width="16" height="16" alt="CSES logo"/> **CSES** | [165802](https://cses.fi/user/165802/) | **22** | ![Progress](https://img.shields.io/badge/Progress-0.8%25-90C3DD?style=flat-square) | 24 January 2026 | ![Manual](https://img.shields.io/badge/Manual-F44336?style=flat) |
28-
| <img src="https://www.google.com/s2/favicons?domain=uhunt.onlinejudge.org&sz=16" width="16" height="16" alt="Uva logo"/> **Uva** | [1615470](https://uhunt.onlinejudge.org/id/1615470) | **7** | ![Progress](https://img.shields.io/badge/Progress-0.3%25-77DDBB?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
20+
| <img src="https://www.google.com/s2/favicons?domain=codeforces.com&sz=16" width="16" height="16" alt="Codeforces logo"/> **Codeforces** | [MishkatIT](https://codeforces.com/profile/MishkatIT) | **2609** | ![Progress](https://img.shields.io/badge/Progress-69.6%25-AA0000?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
21+
| <img src="https://www.google.com/s2/favicons?domain=leetcode.com&sz=16" width="16" height="16" alt="LeetCode logo"/> **LeetCode** | [MishkatIT](https://leetcode.com/u/MishkatIT/) | **412** | ![Progress](https://img.shields.io/badge/Progress-11.0%25-FF3333?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
22+
| <img src="https://www.google.com/s2/favicons?domain=vjudge.net&sz=16" width="16" height="16" alt="VJudge logo"/> **VJudge** | [MishkatIT](https://vjudge.net/user/MishkatIT) | **347** | ![Progress](https://img.shields.io/badge/Progress-9.3%25-FF7777?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
23+
| <img src="https://www.google.com/s2/favicons?domain=atcoder.jp&sz=16" width="16" height="16" alt="AtCoder logo"/> **AtCoder** | [MishkatIT](https://atcoder.jp/users/MishkatIT) | **157** | ![Progress](https://img.shields.io/badge/Progress-4.2%25-FFBB55?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
24+
| <img src="https://www.google.com/s2/favicons?domain=www.codechef.com&sz=16" width="16" height="16" alt="CodeChef logo"/> **CodeChef** | [MishkatIT](https://www.codechef.com/users/MishkatIT) | **126** | ![Progress](https://img.shields.io/badge/Progress-3.4%25-FFCC88?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
25+
| <img src="https://www.google.com/s2/favicons?domain=toph.co&sz=16" width="16" height="16" alt="Toph logo"/> **Toph** | [MishkatIT](https://toph.co/u/MishkatIT) | **37** | ![Progress](https://img.shields.io/badge/Progress-1.0%25-FF88FF?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
26+
| <img src="https://www.google.com/s2/favicons?domain=lightoj.com&sz=16" width="16" height="16" alt="LightOJ logo"/> **LightOJ** | [mishkatit](https://lightoj.com/user/mishkatit) | **31** | ![Progress](https://img.shields.io/badge/Progress-0.8%25-AAAAFF?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
27+
| <img src="https://www.google.com/s2/favicons?domain=cses.fi&sz=16" width="16" height="16" alt="CSES logo"/> **CSES** | [165802](https://cses.fi/user/165802/) | **22** | ![Progress](https://img.shields.io/badge/Progress-0.6%25-90C3DD?style=flat-square) | 24 January 2026 | ![Manual](https://img.shields.io/badge/Manual-F44336?style=flat) |
28+
| <img src="https://www.google.com/s2/favicons?domain=uhunt.onlinejudge.org&sz=16" width="16" height="16" alt="Uva logo"/> **Uva** | [1615470](https://uhunt.onlinejudge.org/id/1615470) | **7** | ![Progress](https://img.shields.io/badge/Progress-0.2%25-77DDBB?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
2929
| <img src="https://www.google.com/s2/favicons?domain=www.hackerearth.com&sz=16" width="16" height="16" alt="HackerEarth logo"/> **HackerEarth** | [MishkatIT](https://www.hackerearth.com/@MishkatIT/) | **2** | ![Progress](https://img.shields.io/badge/Progress-0.1%25-77EE99?style=flat-square) | 24 January 2026 | ![Automatic](https://img.shields.io/badge/Automatic-2196F3?style=flat) |
30-
| 🎖️ **TOTAL** | | **2723** | **100%** | 24 January 2026 | |
30+
| 🎖️ **TOTAL** | | **3750** | **100%** | 24 January 2026 | |
3131

3232
---
3333

@@ -41,7 +41,7 @@
4141
| 🥇 Top Platform | 🎯 Main Focus | 📚 Platforms Active |
4242
|:---------------:|:-------------:|:------------------:|
4343
| **Codeforces** | **Competitive Programming** | **10** |
44-
| 1582 Problems | Algorithm Mastery | Multi-Platform |
44+
| 2609 Problems | Algorithm Mastery | Multi-Platform |
4545

4646
</div>
4747
<!-- AUTO_GENERATED_SECTION_END: KEY_HIGHLIGHTS -->

src/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"USER_CONFIG": {
3-
"Codeforces": "ayon",
3+
"Codeforces": "MishkatIT",
44
"LeetCode": "MishkatIT",
55
"CodeChef": "MishkatIT",
66
"AtCoder": "MishkatIT",
@@ -15,7 +15,7 @@
1515
},
1616
"PROFILE_DISPLAY_NAMES": {
1717
"CSES": "165802",
18-
"Codeforces": "ayon",
18+
"Codeforces": "MishkatIT",
1919
"AtCoder": "MishkatIT",
2020
"CodeChef": "MishkatIT",
2121
"SPOJ": "mishkatit",

0 commit comments

Comments
 (0)