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' ); 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!