Skip to content

Commit 1dbb549

Browse files
committed
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into develop
2 parents fa04128 + fd84d3b commit 1dbb549

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/scripts/run_tests_coverage

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,14 @@ main() {
173173
pkg_functions_cov_fraction=${pkg_cov_fractions[2]}
174174
pkg_lines_cov_fraction=${pkg_cov_fractions[3]}
175175

176-
old_cov_report=$(curl -s --fail "https://coverage.stdlib.io/${pkg}/lib/index.html" 2>/dev/null)
177-
status=$?
178-
if [ $status -ne 0 ]; then
176+
old_cov_report=$(curl -s --fail "https://coverage.stdlib.io/${pkg}/lib/index.html" 2>/dev/null || true)
177+
if [ -z "$old_cov_report" ]; then
179178
old_statements_cov=0
180179
old_branches_cov=0
181180
old_functions_cov=0
182181
old_lines_cov=0
183182
else
184-
old_cov_values=$(echo "$old_cov_report" | grep "fraction" | grep -oP '\d+/\d+' | awk -F'/' '{print $1/$2}')
183+
old_cov_values=($(echo "$old_cov_report" | grep "fraction" | grep -oP '\d+/\d+' | awk -F'/' '{print $1/$2}'))
185184
old_statements_cov=${old_cov_values[0]}
186185
old_branches_cov=${old_cov_values[1]}
187186
old_functions_cov=${old_cov_values[2]}
@@ -193,7 +192,6 @@ main() {
193192
cov_change_functions=$(compare_cov "$old_functions_cov" "$pkg_functions_cov")
194193
cov_change_lines=$(compare_cov "$old_lines_cov" "$pkg_lines_cov")
195194

196-
echo $pkg_statements_cov_fraction
197195
pkg_cov="| $pkg_statements_cov_fraction$cov_change_statements) | $pkg_branches_cov_fraction$cov_change_branches) | $pkg_functions_cov_fraction$cov_change_functions) | $pkg_lines_cov_fraction$cov_change_lines) |"
198196

199197
pkg_url="https://github.com/${github_repo}/tree/${github_ref}/${package}"

lib/node_modules/@stdlib/random/base/box-muller/lib/main.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ var factory = require( './factory.js' );
4343
*
4444
* - As two uniform random variates are mapped to two standard normal random variates, one of the random variates is cached and returned upon the following invocation.
4545
*
46-
*
4746
* ## Notes
4847
*
4948
* - The minimum and maximum pseudorandom numbers which can be generated are dependent on the number of bits an underlying uniform pseudorandom number generator (PRNG) uses. For instance, if a PRNG uses \\( 32 \\) bits, the smallest non-zero number that can be generated is \\( 2^{-32}). When \\( U_1 \\) equals this value and \\( U_2 \\) equals \\( 0 \\),
@@ -60,7 +59,6 @@ var factory = require( './factory.js' );
6059
*
6160
* <!-- </note> -->
6261
*
63-
*
6462
* ## References
6563
*
6664
* - Box, G. E. P., and Mervin E. Muller. 1958. "A Note on the Generation of Random Normal Deviates." _The Annals of Mathematical Statistics_ 29 (2). The Institute of Mathematical Statistics: 610–11. doi:[10.1214/aoms/1177706645](http://dx.doi.org/10.1214/aoms/1177706645).
@@ -69,7 +67,6 @@ var factory = require( './factory.js' );
6967
* - Marsaglia, G., and T. A. Bray. 1964. "A Convenient Method for Generating Normal Variables." _SIAM Review_ 6 (3). Society for Industrial; Applied Mathematics: 260–64. doi:[10.1137/1006063](http://dx.doi.org/10.1137/1006063).
7068
* - Thomas, David B., Wayne Luk, Philip H.W. Leong, and John D. Villasenor. 2007. "Gaussian Random Number Generators." _ACM Computing Surveys_ 39 (4). New York, NY, USA: ACM. doi:[10.1145/1287620.1287622](http://dx.doi.org/10.1145/1287620.1287622).
7169
*
72-
*
7370
* @name randn
7471
* @type {PRNG}
7572
* @returns {number} pseudorandom number

0 commit comments

Comments
 (0)