From d9fbc86fe3e02c3e95a04af2927fc6843f6b384c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 5 Aug 2026 13:36:50 +0000 Subject: [PATCH 1/2] bench: update import in `array/bool` benchmark Propagates fix from cf6c136 ("test: update import") to the sibling `array/bool` benchmark which still imported the permissive `is-boolean` utility while asserting a primitive boolean return value. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019QgequPdX81fkqyxWXaLB6 --- lib/node_modules/@stdlib/array/bool/benchmark/benchmark.get.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/array/bool/benchmark/benchmark.get.js b/lib/node_modules/@stdlib/array/bool/benchmark/benchmark.get.js index 27c7dce8ad7f..7d5f162a280a 100644 --- a/lib/node_modules/@stdlib/array/bool/benchmark/benchmark.get.js +++ b/lib/node_modules/@stdlib/array/bool/benchmark/benchmark.get.js @@ -21,7 +21,7 @@ // MODULES // var bench = require( '@stdlib/bench' ); -var isBoolean = require( '@stdlib/assert/is-boolean' ); +var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive; var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var BooleanArray = require( './../lib' ); From 345c3a6d37f93e2cd0a7229bc8fae099e96e091d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 5 Aug 2026 13:36:58 +0000 Subject: [PATCH 2/2] build: insert `sort` before `uniq -c` in per-day git stats scripts Propagates fix from e7c2c09 ("build: replace `uniq` with `sort -u` to deduplicate directories in CI workflows") to `tools/git/scripts` relying on the same adjacency assumption. `uniq` only collapses adjacent duplicate lines, and `git log` author dates are not monotonic, so daily totals were fragmented across multiple count rows. Only order-insensitive consumers (`median.awk`, `mode.awk`, `tabulate.awk`) are affected by the inserted `sort`; scripts whose row ordering is user-visible were left unchanged. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019QgequPdX81fkqyxWXaLB6 --- tools/git/scripts/median_commits_per_day | 6 ++++-- tools/git/scripts/mode_commits_per_day | 6 ++++-- tools/git/scripts/tabulate_total_commits_per_day | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/tools/git/scripts/median_commits_per_day b/tools/git/scripts/median_commits_per_day index 8ce2339e05e0..88ba4498c3d5 100755 --- a/tools/git/scripts/median_commits_per_day +++ b/tools/git/scripts/median_commits_per_day @@ -30,12 +30,14 @@ median="${root}/tools/awk/median.awk" # - Extract the line which begins with `Date` from each log. # * `awk '{}'` # - From each date line, extract the month (`$3`), day (`$4`), and year (`$6`). +# * `sort` +# - Sort in lexicographic order. # * `uniq -c` -# - Given that same day commits are on consecutive lines, we can remove repeated lines and count the repeats to compute daily totals. +# - Remove repeated lines and count the repeats to compute daily totals. # * `awk '{}'` # - Extract the total from each line. # * `awk '{}'` # - Compute the median number of commits per day. -git log | grep Date | awk '{print $3 OFS $4 OFS $6}' | uniq -c | awk '{print $1}' | "${median}" +git log | grep Date | awk '{print $3 OFS $4 OFS $6}' | sort | uniq -c | awk '{print $1}' | "${median}" # FIXME: does not include days in which no commits are made! diff --git a/tools/git/scripts/mode_commits_per_day b/tools/git/scripts/mode_commits_per_day index 95ea0d41a920..bef530804625 100755 --- a/tools/git/scripts/mode_commits_per_day +++ b/tools/git/scripts/mode_commits_per_day @@ -30,12 +30,14 @@ mode="${root}/tools/awk/mode.awk" # - Extract the line which begins with `Date` from each log. # * `awk '{}'` # - From each date line, extract the month (`$3`), day (`$4`), and year (`$6`). +# * `sort` +# - Sort in lexicographic order. # * `uniq -c` -# - Given that same day commits are on consecutive lines, we can remove repeated lines and count the repeats to compute daily totals. +# - Remove repeated lines and count the repeats to compute daily totals. # * `awk '{}'` # - Extract the total from each line. # * `awk '{}'` # - Compute the most frequent number of commits per day. -git log | grep Date | awk '{print $3 OFS $4 OFS $6}' | uniq -c | awk '{print $1}' | "${mode}" +git log | grep Date | awk '{print $3 OFS $4 OFS $6}' | sort | uniq -c | awk '{print $1}' | "${mode}" # FIXME: does not include days in which no commits are made! diff --git a/tools/git/scripts/tabulate_total_commits_per_day b/tools/git/scripts/tabulate_total_commits_per_day index a2f5e641f813..2650a7754750 100755 --- a/tools/git/scripts/tabulate_total_commits_per_day +++ b/tools/git/scripts/tabulate_total_commits_per_day @@ -30,14 +30,16 @@ tabulate="${root}/tools/awk/tabulate.awk" # - Extract the line which begins with `Date` from each log. # * `awk '{}'` # - From each date line, extract the month (`$3`), day (`$4`), and year (`$6`). +# * `sort` +# - Sort in lexicographic order. # * `uniq -c` -# - Given that same day commits are on consecutive lines, we can remove repeated lines and count the repeats to compute daily totals. +# - Remove repeated lines and count the repeats to compute daily totals. # * `awk '{}'` # - Extract the total from each line. # * `awk '{}'` # - Generate a frequency table. # * `sort -n` # - Sort in numeric order. -git log | grep Date | awk '{print $3 OFS $4 OFS $6}' | uniq -c | awk '{print $1}' | "${tabulate}" | sort -n +git log | grep Date | awk '{print $3 OFS $4 OFS $6}' | sort | uniq -c | awk '{print $1}' | "${tabulate}" | sort -n # FIXME: does not include days in which no commits are made!