Skip to content

Commit b8a428c

Browse files
authored
Merge branch 'stdlib-js:develop' into refactor_stats/base/svariance
2 parents 87298ff + 4a70790 commit b8a428c

File tree

194 files changed

+466
-412
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+466
-412
lines changed

lib/node_modules/@stdlib/_tools/changelog/recommend-version-bump/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function recommendVersionBump( commits ) {
4949
if ( hasFeature ) {
5050
return 'minor';
5151
}
52-
if ( hasFix) {
52+
if ( hasFix ) {
5353
return 'patch';
5454
}
5555
return null;

lib/node_modules/@stdlib/_tools/eslint/rules/no-empty-comments/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var rule;
3131
* @param {Object} context - ESLint context
3232
* @returns {Object} validators
3333
*/
34-
function main(context) {
34+
function main( context ) {
3535
var comments;
3636
var visited;
3737
var source;
@@ -45,7 +45,7 @@ function main(context) {
4545
* @private
4646
* @param {Object} comment - comment node
4747
*/
48-
function report(comment) {
48+
function report( comment ) {
4949
context.report({
5050
'node': null,
5151
'message': 'Empty comments are not allowed',

lib/node_modules/@stdlib/_tools/eslint/rules/require-globals/test/fixtures/invalid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ test = {
134134
' var z;',
135135
'',
136136
' z = new Float64Array( m * m );',
137-
' for ( i = 0; i < m; i++) {',
137+
' for ( i = 0; i < m; i++ ) {',
138138
' for ( j = 0; j < m; j++ ) {',
139139
' s = 0;',
140140
' for ( k = 0; k < m; k++ ) {',

lib/node_modules/@stdlib/_tools/scripts/create_namespace_types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function create( fullPath ) {
235235
RE = new RegExp( 'setReadOnly\\( '+nsIdentifier+', \'([a-z0-9_]+)\', require\\( \'([^\']+)\' \\) \\)', 'ig' );
236236
match = RE.exec( indexFile );
237237
}
238-
while ( match !== null) {
238+
while ( match !== null ) {
239239
name = match[ 1 ];
240240
pkgPath = match[ 2 ];
241241

lib/node_modules/@stdlib/array/base/cuevery-by/lib/assign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function indexed( x, out, stride, offset, predicate, thisArg ) {
6161
io += stride;
6262
continue;
6363
}
64-
if ( !predicate.call( thisArg, x[ i ], i, x )) {
64+
if ( !predicate.call( thisArg, x[ i ], i, x ) ) {
6565
flg = false;
6666
}
6767
out[ io ] = flg;

lib/node_modules/@stdlib/array/base/take-map/lib/assign.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ var ind = require( '@stdlib/ndarray/base/ind' ).factory;
4747
* var out = [ 0, 0, 0, 0 ];
4848
*
4949
* function clbk( val ){
50-
return val;
51-
}
50+
* return val;
51+
* }
5252
*
5353
* var arr = takeMapIndexed( x, indices, 'throw', out, 1, 0, clbk );
5454
* // returns [ 4, 2, 3, 1 ]
@@ -73,7 +73,7 @@ function takeMapIndexed( x, indices, mode, out, stride, offset, clbk ) {
7373
out[ io ] = x[ j ];
7474
io += stride;
7575
}
76-
for (i = 0; i<out.length; i++) {
76+
for ( i = 0; i < out.length; i++ ) {
7777
// eslint-disable-next-line no-useless-call
7878
out[i] = clbk.call( null, out[i], i );
7979
}
@@ -137,7 +137,7 @@ function accessorsMap( x, indices, mode, out, stride, offset, clbk ) {
137137

138138
// Extract each desired element from the provided array...
139139
io = offset;
140-
for (i = 0; i < idata.length; i++) {
140+
for ( i = 0; i < idata.length; i++ ) {
141141
j = getIndex( iget( idata, i ), max );
142142

143143
// eslint-disable-next-line no-useless-call

lib/node_modules/@stdlib/array/base/unary5d-by/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ function identity( value: number ): number {
139139
unary5dBy( [ x, y ], [ 1, 1, 1, 2, 2 ] ); // $ExpectError
140140
unary5dBy( [ x, y ], [ 1, 1, 1, 2, 2 ], identity ); // $ExpectError
141141
unary5dBy( [ x, y ], [ 1, 1, 1, 2, 2 ], identity, identity, {}, {} ); // $ExpectError
142-
}
142+
}

lib/node_modules/@stdlib/array/fixed-endian-factory/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
610610
}
611611
buf = this._buffer;
612612
out = [];
613-
for ( i = 0; i < this._length; i++) {
613+
for ( i = 0; i < this._length; i++ ) {
614614
v = buf[ GETTER ]( i*BYTES_PER_ELEMENT, this._isLE );
615615
if ( predicate.call( thisArg, v, i, this ) ) {
616616
out.push( v );

lib/node_modules/@stdlib/assert/is-well-formed-string/lib/iswellformed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var RE_UTF16_HIGH_SURROGATE = /[\uD800-\uDBFF]/;
4040
* var bool = isWellFormed( new String( '\uDC00' ) );
4141
* // returns false
4242
*/
43-
function isWellFormed(str) {
43+
function isWellFormed( str ) {
4444
var i;
4545
for ( i = 0; i < str.length; i++ ) {
4646
// Checking if a low surrogate is present at the beginning

lib/node_modules/@stdlib/bench/harness/test/test.bench.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ tape( 'the function runs benchmarks (sync)', function test( t ) {
456456
function beep( b ) {
457457
var i;
458458
b.tic();
459-
for ( i = 0; i < b.iterations; i++) {
459+
for ( i = 0; i < b.iterations; i++ ) {
460460
b.ok( true, 'is okay' );
461461
}
462462
b.toc();
@@ -466,7 +466,7 @@ tape( 'the function runs benchmarks (sync)', function test( t ) {
466466
function boop( b ) {
467467
var i;
468468
b.tic();
469-
for ( i = 0; i < b.iterations; i++) {
469+
for ( i = 0; i < b.iterations; i++ ) {
470470
b.equal( true, true, 'is equal' );
471471
}
472472
b.toc();
@@ -591,7 +591,7 @@ tape( 'the function runs benchmarks (sync and async)', function test( t ) {
591591
function beep( b ) {
592592
var i;
593593
b.tic();
594-
for ( i = 0; i < b.iterations; i++) {
594+
for ( i = 0; i < b.iterations; i++ ) {
595595
b.ok( true, 'is okay' );
596596
}
597597
b.toc();
@@ -662,7 +662,7 @@ tape( 'if the `iterations` option is `null`, the function supports automatically
662662
t.strictEqual( b.iterations >= 1, true, 'iteration number is >= 1' );
663663

664664
b.tic();
665-
for ( i = 0; i < b.iterations; i++) {
665+
for ( i = 0; i < b.iterations; i++ ) {
666666
x = (randu()*100.0) - 50.0;
667667
y = cos( x );
668668
if ( y < -1.0 || y > 1.0 ) {
@@ -745,7 +745,7 @@ tape( 'by default, the `iterations` option is `null` and the number of repeats i
745745
t.strictEqual( b.iterations >= 1, true, 'iteration number is >= 1' );
746746

747747
b.tic();
748-
for ( i = 0; i < b.iterations; i++) {
748+
for ( i = 0; i < b.iterations; i++ ) {
749749
x = (randu()*100.0) - 50.0;
750750
y = cos( x );
751751
if ( y < -1.0 || y > 1.0 ) {
@@ -847,7 +847,7 @@ tape( 'if the `skip` option is `true`, the function skips a benchmark', function
847847
t.strictEqual( b.iterations >= 1, true, 'iteration number is >= 1' );
848848

849849
b.tic();
850-
for ( i = 0; i < b.iterations; i++) {
850+
for ( i = 0; i < b.iterations; i++ ) {
851851
x = (randu()*100.0) - 50.0;
852852
y = cos( x );
853853
if ( y < -1.0 || y > 1.0 ) {
@@ -994,7 +994,7 @@ tape( 'if `createStream` is called before providing adding one or more benchmark
994994
function beep( b ) {
995995
var i;
996996
b.tic();
997-
for ( i = 0; i < b.iterations; i++) {
997+
for ( i = 0; i < b.iterations; i++ ) {
998998
b.ok( true, 'is okay' );
999999
}
10001000
b.toc();
@@ -1004,7 +1004,7 @@ tape( 'if `createStream` is called before providing adding one or more benchmark
10041004
function boop( b ) {
10051005
var i;
10061006
b.tic();
1007-
for ( i = 0; i < b.iterations; i++) {
1007+
for ( i = 0; i < b.iterations; i++ ) {
10081008
b.equal( true, true, 'is equal' );
10091009
}
10101010
b.toc();

0 commit comments

Comments
 (0)