Skip to content

Commit 7e9f632

Browse files
Update stats, plus adjust graphs
1 parent 7cf5815 commit 7e9f632

4 files changed

Lines changed: 20 additions & 2 deletions

File tree

.stats/data/stats.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3808,5 +3808,12 @@
38083808
"num_md_files": 483,
38093809
"num_words": 323661,
38103810
"version": 2
3811+
},
3812+
"7cf5815df5ddfb9edcf85c8563f90479e5f8a114": {
3813+
"timestamp": "2026-03-18T17:03:19-04:00",
3814+
"num_files": 2582,
3815+
"num_md_files": 484,
3816+
"num_words": 328777,
3817+
"version": 2
38113818
}
38123819
}

.stats/render_commit_stats.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@ def render_commit_stats():
111111
plt.xlabel("Timestamp")
112112
plt.ylabel("Word Count")
113113

114+
# Set y limit to nearest 50k above the max word count to make the graph easier to read
115+
max_words = df_stats.num_words.max()
116+
y_limit = ((max_words // 50_000) + 1) * 50_000
117+
plt.ylim(0, y_limit)
118+
114119
plt.yticks(
115-
ticks=[n for n in range(50_000, 301_000, 50_000)],
116-
labels=[f"{n}k" for n in range(50, 301, 50)],
120+
ticks=[n for n in range(50_000, y_limit + 1, 50_000)],
121+
labels=[f"{n}k" for n in range(50, (y_limit // 1_000) + 1, 50)],
117122
)
118123

119124
plt.savefig(WORDCOUNT_IMAGE_FILE)
@@ -124,6 +129,12 @@ def render_commit_stats():
124129
plt.title("File Count over Time")
125130
plt.xlabel("Timestamp")
126131
plt.ylabel("File Count")
132+
133+
# Set y limit to nearest 500 above the max file count to make the graph easier to read
134+
max_files = df_stats.num_files.max()
135+
y_limit = ((max_files // 500) + 1) * 500
136+
plt.ylim(0, y_limit)
137+
127138
plt.savefig(FILECOUNT_IMAGE_FILE)
128139

129140

images/rendered/filecount.png

581 Bytes
Loading

images/rendered/wordcount.png

953 Bytes
Loading

0 commit comments

Comments
 (0)