Skip to content

Commit

Permalink
style: add missing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Jul 7, 2024
1 parent a78f7d1 commit 659f752
Show file tree
Hide file tree
Showing 66 changed files with 129 additions and 129 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var isComplex64Array = require('@stdlib/assert/is-complex64array');
var isComplex64Array = require( '@stdlib/assert/is-complex64array' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var isIteratorLike = require('@stdlib/assert/is-iterator-like');
var isIteratorLike = require( '@stdlib/assert/is-iterator-like' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' );
var isComplex64Array = require( '@stdlib/assert/is-complex64array' );
var realf = require( '@stdlib/complex/realf' );
var imagf = require( '@stdlib/complex/imagf' );
var Complex64 = require('@stdlib/complex/float32/ctor');
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

var bench = require( '@stdlib/bench' );
var caddf = require( '@stdlib/math/base/ops/caddf' );
var isComplexLike = require('@stdlib/assert/is-complex-like');
var isComplexLike = require( '@stdlib/assert/is-complex-like' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var caddf = require( '@stdlib/math/base/ops/caddf' );
var isComplexLike = require('@stdlib/assert/is-complex-like');
var isComplexLike = require( '@stdlib/assert/is-complex-like' );
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var pow = require( '@stdlib/math/base/special/pow' );
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var isIteratorLike = require('@stdlib/assert/is-iterator-like');
var isIteratorLike = require( '@stdlib/assert/is-iterator-like' );
var pkg = require( './../package.json' ).name;
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ tape( 'the method supports providing an execution context', function test( t ) {
bool = arr.every( predicate, ctx );

t.strictEqual( bool, true, 'returns expected value' );
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value' );

t.end();

Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/array/complex64/test/test.find.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ tape( 'the method supports providing an execution context', function test( t ) {
arr = new Complex64Array( [ 1.0, -1.0, 2.0, -2.0, 3.0, 3.0 ] );
z = arr.find( predicate, ctx );

t.strictEqual( realf( z ), 3, 'returns expected value');
t.strictEqual( imagf( z ), 3, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( realf( z ), 3, 'returns expected value' );
t.strictEqual( imagf( z ), 3, 'returns expected value' );
t.strictEqual( ctx.count, 3, 'returns expected value' );

t.end();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ tape( 'the method supports providing an execution context', function test( t ) {
arr = new Complex64Array( [ 1.0, -1.0, 2.0, -2.0, 3.0, 3.0 ] );
z = arr.findLast( predicate, ctx );

t.strictEqual( realf( z ), 3, 'returns expected value');
t.strictEqual( imagf( z ), 3, 'returns expected value');
t.strictEqual( ctx.count, 1, 'returns expected value');
t.strictEqual( realf( z ), 3, 'returns expected value' );
t.strictEqual( imagf( z ), 3, 'returns expected value' );
t.strictEqual( ctx.count, 1, 'returns expected value' );

t.end();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var tape = require( 'tape' );
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
var isFunction = require( '@stdlib/assert/is-function' );
var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' );
var isComplex64 = require('@stdlib/assert/is-complex64');
var isComplex64 = require( '@stdlib/assert/is-complex64' );
var Complex64Array = require( './../lib' );


Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/complex64/test/test.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var reinterpret64 = require( '@stdlib/strided/base/reinterpret-complex64' );
var instanceOf = require( '@stdlib/assert/instance-of' );
var realf = require( '@stdlib/complex/realf' );
var imagf = require( '@stdlib/complex/imagf' );
var Complex64 = require('@stdlib/complex/float32/ctor');
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var Float32Array = require( '@stdlib/array/float32' );
var Complex64Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var caddf = require( '@stdlib/math/base/ops/caddf' );
var instanceOf = require( '@stdlib/assert/instance-of' );
var realf = require( '@stdlib/complex/realf' );
var imagf = require( '@stdlib/complex/imagf' );
var Complex64 = require('@stdlib/complex/float32/ctor');
var Complex64 = require( '@stdlib/complex/float32/ctor' );
var Complex64Array = require( './../lib' );


Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/complex64/test/test.some.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ tape( 'the method supports providing an execution context', function test( t ) {
bool = arr.some( predicate, ctx );

t.strictEqual( bool, true, 'returns expected value' );
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value' );

t.end();

Expand All @@ -186,7 +186,7 @@ tape( 'the method stops executing upon encountering the first element which pass
bool = arr.some( predicate, ctx );

t.strictEqual( bool, true, 'returns expected value' );
t.strictEqual( ctx.count, 1, 'returns expected value');
t.strictEqual( ctx.count, 1, 'returns expected value' );

t.end();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@

'use strict';

var NINF = require('@stdlib/constants/float64/ninf');
var NINF = require( '@stdlib/constants/float64/ninf' );
var isNonPositiveFinite = require( './../lib' );

console.log( isNonPositiveFinite( -2 ));
console.log( isNonPositiveFinite( -2 ) );
// => true

console.log( isNonPositiveFinite( -2.99 ));
console.log( isNonPositiveFinite( -2.99 ) );
// => true

console.log( isNonPositiveFinite( NINF ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

// MODULES //

var NINF = require('@stdlib/constants/float64/ninf');
var NINF = require( '@stdlib/constants/float64/ninf' );
var isPrimitive = require( './primitive.js' );
var isObject = require( './object.js' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var tape = require( 'tape' );
var NINF = require('@stdlib/constants/float64/ninf');
var NINF = require( '@stdlib/constants/float64/ninf' );
var Number = require( '@stdlib/number/ctor' );
var isNonPositiveFinite = require( './../lib/main.js' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

// MODULES //

var isString = require('@stdlib/assert/is-string');
var isWellFormed = require('./iswellformed.js');
var isString = require( '@stdlib/assert/is-string' );
var isWellFormed = require( './iswellformed.js' );


// MAIN //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// MODULES //

var isWellFormed = require('./iswellformed.js');
var isWellFormed = require( './iswellformed.js' );


// MAIN //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var addon = require( './../src/addon.node' );
* var typedarray = require( '@stdlib/array/typed' );
*
* var x = typedarray( 10, 'float64' );
* var y = typedarray( x.length, 'float64');
* var y = typedarray( x.length, 'float64' );
*
* wrapper( x, y );
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/blas/base/sdsdot/lib/sdsdot.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
// MODULES //

var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
var stride2offset = require('@stdlib/strided/base/stride2offset');
var ndarray = require('./ndarray.js');
var stride2offset = require( '@stdlib/strided/base/stride2offset' );
var ndarray = require( './ndarray.js' );


// MAIN //
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/srot/lib/srot.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var stride2offset = require( '@stdlib/strided/base/stride2offset' );
var ndarray = require('./ndarray.js');
var ndarray = require( './ndarray.js' );


// MAIN //
Expand Down
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/blas/base/srotg/test/test.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ tape( 'the function supports providing a positive stride', function test(t) {

actual = srotg( 0.3, 0.4, out, 2, 0 );
t.strictEqual( actual, out, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value');
t.deepEqual( actual, expected, 'returns expected value' );
t.end();
});

Expand All @@ -121,7 +121,7 @@ tape( 'the function supports providing a negative stride', function test(t) {

actual = srotg( 0.3, 0.4, out, -2, 6 );
t.strictEqual( actual, out, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value');
t.deepEqual( actual, expected, 'returns expected value' );
t.end();
});

Expand All @@ -135,7 +135,7 @@ tape( 'the function supports providing an offset', function test(t) {

actual = srotg( 0.3, 0.4, out, 1, 1 );
t.strictEqual( actual, out, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value');
t.deepEqual( actual, expected, 'returns expected value' );
t.end();
});

Expand All @@ -149,6 +149,6 @@ tape( 'the function supports providing both a stride and offset', function test(

actual = srotg( 0.3, 0.4, out, 2, 2 );
t.strictEqual( actual, out, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value');
t.deepEqual( actual, expected, 'returns expected value' );
t.end();
});
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/srotm/lib/srotm.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var stride2offset = require( '@stdlib/strided/base/stride2offset' );
var ndarray = require('./ndarray.js');
var ndarray = require( './ndarray.js' );


// MAIN //
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/blas/base/sswap/lib/sswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

// MODULES //

var stride2offset = require('@stdlib/strided/base/stride2offset');
var ndarray = require('./ndarray.js');
var stride2offset = require( '@stdlib/strided/base/stride2offset' );
var ndarray = require( './ndarray.js' );


// MAIN //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

'use strict';

var discreteUniform = require('@stdlib/random/base/discrete-uniform');
var bernoulli = require('@stdlib/random/base/bernoulli');
var filledarrayBy = require('@stdlib/array/filled-by');
var dnansumkbn2 = require('./../lib');
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
var bernoulli = require( '@stdlib/random/base/bernoulli' );
var filledarrayBy = require( '@stdlib/array/filled-by' );
var dnansumkbn2 = require( './../lib' );

function clbk() {
if ( bernoulli( 0.7 ) > 0 ) {
Expand Down
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/complex/base/parse/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ function parse( str ) {
str = replace( str, ' ', '' );
for ( i = 0; i < str.length; i++ ) {
if ( (str[i] === '+' || str[i] === '-') && i !== 0 && str[i - 1] !== 'e' ) {
parts.push(currentToken);
parts.push( currentToken );
currentToken = '';
} else if ( i === str.length - 1 ) {
currentToken += str[i];
parts.push(currentToken);
currentToken += str[ i ];
parts.push( currentToken );
}
currentToken += str[i];
currentToken += str[ i ];
}

for ( i = 0; i < parts.length; i++ ) { // Check for invalid parts...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ tape( 'the function will parse a string representation of a complex number', fun
w = parseComplex64( '5 + 12i' );

t.ok( isComplex64( w ), 'is an instance' );
t.ok( isSameComplex64( w, z ), 'has expected property value');
t.ok( isSameComplex64( w, z ), 'has expected property value' );

t.end();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ tape( 'the function will parse a string representation of a complex number', fun
w = parseComplex128( '5 + 12i' );

t.ok( isComplex128( w ), 'is an instance' );
t.ok( isSameComplex128( w, z ), 'has expected property value');
t.ok( isSameComplex128( w, z ), 'has expected property value' );

t.end();
});
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/fs/append-file/test/test.cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ tape( 'the command-line interface appends data received from `stdin` to a file',
t.strictEqual( stderr.toString(), '', 'does not print to `stderr`' );
}
actual = readFileSync( FILE, 'utf8' );
t.strictEqual(actual, expected, 'file contains expected contents');
t.strictEqual( actual, expected, 'file contains expected contents' );

restore();
t.end();
Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/iter/do-while-each/examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ var it = iterDoWhileEach( rand, predicate, assert );

// Iterate over the iterator:
var r;
while (true) {
while ( true ) {
r = it.next();
if (r.done) {
if ( r.done ) {
break;
}
console.log(r.value);
console.log( r.value );
}
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/math/base/special/acosd/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

// MODULES //

var rad2deg = require('@stdlib/math/base/special/rad2deg');
var acos = require('@stdlib/math/base/special/acos');
var rad2deg = require( '@stdlib/math/base/special/rad2deg' );
var acos = require( '@stdlib/math/base/special/acos' );


// MAIN //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@

// MODULES //

var resolve = require('path').resolve;
var bench = require('@stdlib/bench');
var randu = require('@stdlib/random/base/randu');
var isnan = require('@stdlib/math/base/assert/is-nan');
var tryRequire = require('@stdlib/utils/try-require');
var pkg = require('./../package.json').name;
var resolve = require( 'path' ).resolve;
var bench = require( '@stdlib/bench' );
var randu = require( '@stdlib/random/base/randu' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
var pkg = require( './../package.json' ).name;


// VARIABLES //

var asec = tryRequire(resolve(__dirname, './../lib/native.js'));
var asec = tryRequire( resolve( __dirname, './../lib/native.js' ) );
var opts = {
'skip': (asec instanceof Error)
'skip': ( asec instanceof Error )
};


// MAIN //

bench(pkg + '::native', opts, function benchmark(b) {
bench( pkg + '::native', opts, function benchmark( b ) {
var y;
var i;
var x;
Expand Down
Loading

0 comments on commit 659f752

Please sign in to comment.