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 3903a00 commit a78f7d1
Show file tree
Hide file tree
Showing 68 changed files with 124 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
// MODULES //

var startsWith = require( '@stdlib/string/starts-with' );
var endsWith = require('@stdlib/string/ends-with');
var endsWith = require( '@stdlib/string/ends-with' );
var contains = require( '@stdlib/assert/contains' );


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var parseJSDoc = require( 'doctrine' ).parse;
var remark = require( 'remark' );
var remarkLint = require( 'remark-lint' );
var remarkPlugin = require( 'remark-lint-fenced-code-marker' );
var repeat = require('@stdlib/string/repeat');
var repeat = require( '@stdlib/string/repeat' );
var isObject = require( '@stdlib/assert/is-object' );
var findJSDoc = require( '@stdlib/_tools/eslint/utils/find-jsdoc' );

Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/_tools/scripts/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@

var logger = require( 'debug' );
var readFileSync = require( '@stdlib/fs/read-file' ).sync;
var startsWith = require('@stdlib/string/starts-with');
var contains = require('@stdlib/assert/contains');
var startsWith = require( '@stdlib/string/starts-with' );
var contains = require( '@stdlib/assert/contains' );
var replace = require( '@stdlib/string/replace' );
var pkg2id = require( '@stdlib/error/tools/pkg2id' );
var msg2id = require( '@stdlib/error/tools/msg2id');
var msg2id = require( '@stdlib/error/tools/msg2id' );
var ENV = require( '@stdlib/process/env' );


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 isArray = require( '@stdlib/assert/is-array' );
var filled = require('@stdlib/array/base/filled');
var filled = require( '@stdlib/array/base/filled' );
var pkg = require( './../package.json' ).name;
var cuany = 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 isArray = require( '@stdlib/assert/is-array' );
var filled = require('@stdlib/array/base/filled');
var filled = require( '@stdlib/array/base/filled' );
var pkg = require( './../package.json' ).name;
var cuany = 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 isArray = require( '@stdlib/assert/is-array' );
var filled = require('@stdlib/array/base/filled');
var filled = require( '@stdlib/array/base/filled' );
var pkg = require( './../package.json' ).name;
var cuevery = 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 isArray = require( '@stdlib/assert/is-array' );
var filled = require('@stdlib/array/base/filled');
var filled = require( '@stdlib/array/base/filled' );
var pkg = require( './../package.json' ).name;
var cuevery = 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 isArray = require( '@stdlib/assert/is-array' );
var filled = require('@stdlib/array/base/filled');
var filled = require( '@stdlib/array/base/filled' );
var pkg = require( './../package.json' ).name;
var cunone = require( './../lib' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/base/take-map/lib/assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function complexMap( x, indices, mode, out, stride, offset, clbk ) {
* function clbk( val ){
return val;
}
* var arr = assignMap( x, indices, 'throw', out, 1, 0, clbk);
* var arr = assignMap( x, indices, 'throw', out, 1, 0, clbk );
* // arr is [ 4, 2, 3, 1 ]
*
* var bool = ( arr === out );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
var pkg = require( './../package.json' ).name;
var BooleanArray = require('./../lib');
var BooleanArray = require( './../lib' );


// MAIN //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
var pkg = require( './../package.json' ).name;
var BooleanArray = require('./../lib');
var BooleanArray = require( './../lib' );


// MAIN //
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/bool/test/test.every.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,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, 4, 'returns expected value');
t.strictEqual( ctx.count, 4, 'returns expected value' );

t.end();

Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/bool/test/test.find.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ tape( 'the method supports providing an execution context', function test( t ) {
arr = new BooleanArray( [ true, true, false, true, false ] );
v = arr.find( predicate, ctx );

t.strictEqual( v, false, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( v, false, 'returns expected value' );
t.strictEqual( ctx.count, 3, 'returns expected value' );

t.end();

Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/bool/test/test.find_last.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ tape( 'the method supports providing an execution context', function test( t ) {
arr = new BooleanArray( [ true, true, false, true, false ] );
v = arr.findLast( predicate, ctx );

t.strictEqual( v, true, 'returns expected value');
t.strictEqual( ctx.count, 2, 'returns expected value');
t.strictEqual( v, true, 'returns expected value' );
t.strictEqual( ctx.count, 2, 'returns expected value' );

t.end();

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/bool/test/test.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var identity = require( '@stdlib/utils/identity-function' );
var reinterpretBool = require( '@stdlib/strided/base/reinterpret-boolean' );
var instanceOf = require( '@stdlib/assert/instance-of' );
var Uint8Array = require( '@stdlib/array/uint8' );
var BooleanArray = require('./../lib');
var BooleanArray = require( './../lib' );


// TESTS //
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/array/bool/test/test.some.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,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, 2, 'returns expected value');
t.strictEqual( ctx.count, 2, 'returns expected value' );

t.end();

Expand All @@ -184,7 +184,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, 2, 'returns expected value');
t.strictEqual( ctx.count, 2, 'returns expected value' );

t.end();

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 Complex128 = require( '@stdlib/complex/float64/ctor' );
var isComplex128Array = require('@stdlib/assert/is-complex128array');
var isComplex128Array = require( '@stdlib/assert/is-complex128array' );
var pkg = require( './../package.json' ).name;
var Complex128Array = 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 Complex128 = require( '@stdlib/complex/float64/ctor' );
var isIteratorLike = require('@stdlib/assert/is-iterator-like');
var isIteratorLike = require( '@stdlib/assert/is-iterator-like' );
var pkg = require( './../package.json' ).name;
var Complex128Array = 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 isComplex128Array = require( '@stdlib/assert/is-complex128array' );
var realf = require( '@stdlib/complex/realf' );
var imagf = require( '@stdlib/complex/imagf' );
var Complex128 = require('@stdlib/complex/float64/ctor');
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var pkg = require( './../package.json' ).name;
var Complex128Array = 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 Complex128 = require( '@stdlib/complex/float64/ctor' );
var isIteratorLike = require('@stdlib/assert/is-iterator-like');
var isIteratorLike = require( '@stdlib/assert/is-iterator-like' );
var pkg = require( './../package.json' ).name;
var Complex128Array = 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/complex128/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 Complex128Array( [ 1.0, -1.0, 2.0, -2.0, 3.0, 3.0 ] );
z = arr.find( predicate, ctx );

t.strictEqual( real( z ), 3.0, 'returns expected value');
t.strictEqual( imag( z ), 3.0, 'returns expected value');
t.strictEqual( ctx.count, 3, 'returns expected value');
t.strictEqual( real( z ), 3.0, 'returns expected value' );
t.strictEqual( imag( z ), 3.0, '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 Complex128Array( [ 1.0, -1.0, 2.0, -2.0, 3.0, 3.0 ] );
z = arr.findLast( predicate, ctx );

t.strictEqual( real( z ), 3.0, 'returns expected value');
t.strictEqual( imag( z ), 3.0, 'returns expected value');
t.strictEqual( ctx.count, 1, 'returns expected value');
t.strictEqual( real( z ), 3.0, 'returns expected value' );
t.strictEqual( imag( z ), 3.0, '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 reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' );
var isComplex128 = require('@stdlib/assert/is-complex128');
var isComplex128 = require( '@stdlib/assert/is-complex128' );
var Complex128Array = require( './../lib' );


Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/complex128/test/test.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var reinterpret128 = require( '@stdlib/strided/base/reinterpret-complex128' );
var instanceOf = require( '@stdlib/assert/instance-of' );
var real = require( '@stdlib/complex/real' );
var imag = require( '@stdlib/complex/imag' );
var Complex128 = require('@stdlib/complex/float64/ctor');
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var Float64Array = require( '@stdlib/array/float64' );
var Complex128Array = require( './../lib' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ tape( 'the function returns a linearly spaced array (real; dtype=float64)', func
t.strictEqual( actual, out, 'returns expected value' );
t.deepEqual( actual, expected, 'returns expected value' );

out = new Float64Array( 6);
out = new Float64Array( 6 );
actual = linspace( x1, x2, out, opts );
expected = new Float64Array( [ x1, -3.0, -1.0, 1.0, 3.0, x2 ] );
t.strictEqual( isFloat64Array( actual ), true, 'returns expected value' );
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/pool/benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var bench = require( '@stdlib/bench' );
var isTypedArray = require( '@stdlib/assert/is-typed-array' );
var isComplexTypedArray = require( '@stdlib/assert/is-complex-typed-array' );
var isBooleanArray = require('@stdlib/assert/is-booleanarray');
var isBooleanArray = require( '@stdlib/assert/is-booleanarray' );
var pkg = require( './../package.json' ).name;
var typedarray = require( './../lib' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/base/sdot/lib/sdot.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/math/base/special/acotd/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ var acot = require( '@stdlib/math/base/special/acot' );
* // returns NaN
*/
function acotd( x ) {
var rad = acot(x);
return rad2deg(rad);
var rad = acot( x );
return rad2deg( rad );
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var uniform = require( '@stdlib/random/base/uniform' );
var abs = require( '@stdlib/math/base/special/abs' );
var EPS = require( '@stdlib/constants/float32/eps' );
var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32');
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
var acscdf = require( './../lib' );


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
var uniform = require( '@stdlib/random/base/uniform' );
var abs = require( '@stdlib/math/base/special/abs' );
var EPS = require( '@stdlib/constants/float32/eps' );
var float64ToFloat32 = require('@stdlib/number/float64/base/to-float32');
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
var tryRequire = require( '@stdlib/utils/try-require' );


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function beta( a, b ) {
} else {
res *= pow( (agh*bgh)/(cgh*cgh), b );
}
res *= sqrt( E/bgh);
res *= sqrt( E/bgh );
return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ tape( 'main export is a function', function test( t ) {
tape( 'the function returns `NaN` if provided `NaN`', function test( t ) {
var b;

b = boxcox( NaN, 1.0);
b = boxcox( NaN, 1.0 );
t.equal( isnan( b ), true, 'returns NaN' );

b = boxcox( 1.0, NaN );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ tape( 'main export is a function', opts, function test( t ) {
tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) {
var b;

b = boxcox( NaN, 1.0);
b = boxcox( NaN, 1.0 );
t.equal( isnan( b ), true, 'returns NaN' );

b = boxcox( 1.0, NaN );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tape( 'main export is a function', function test( t ) {
tape( 'the function returns `NaN` if provided `NaN`', function test( t ) {
var b;

b = boxcox1p( NaN, 1.0);
b = boxcox1p( NaN, 1.0 );
t.equal( isnan( b ), true, 'returns NaN' );

b = boxcox1p( 1.0, NaN );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ tape( 'main export is a function', opts, function test( t ) {
tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) {
var b;

b = boxcox1p( NaN, 1.0);
b = boxcox1p( NaN, 1.0 );
t.equal( isnan( b ), true, 'returns NaN' );

b = boxcox1p( 1.0, NaN );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tape( 'main export is a function', function test( t ) {
tape( 'the function returns `NaN` if provided `NaN`', function test( t ) {
var b;

b = boxcox1pinv( NaN, 1.0);
b = boxcox1pinv( NaN, 1.0 );
t.equal( isnan( b ), true, 'returns NaN' );

b = boxcox1pinv( 1.0, NaN );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ tape( 'main export is a function', opts, function test( t ) {
tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) {
var b;

b = boxcox1pinv( NaN, 1.0);
b = boxcox1pinv( NaN, 1.0 );
t.equal( isnan( b ), true, 'returns NaN' );

b = boxcox1pinv( 1.0, NaN );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ tape( 'main export is a function', function test( t ) {
tape( 'the function returns `NaN` if provided `NaN`', function test( t ) {
var b;

b = boxcoxinv( NaN, 1.0);
b = boxcoxinv( NaN, 1.0 );
t.equal( isnan( b ), true, 'returns NaN' );

b = boxcoxinv( 1.0, NaN );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ tape( 'main export is a function', opts, function test( t ) {
tape( 'the function returns `NaN` if provided `NaN`', opts, function test( t ) {
var b;

b = boxcoxinv( NaN, 1.0);
b = boxcoxinv( NaN, 1.0 );
t.equal( isnan( b ), true, 'returns NaN' );

b = boxcoxinv( 1.0, NaN );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

// MODULES //

var Complex128 = require('@stdlib/complex/float64/ctor');
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var copysign = require( '@stdlib/math/base/special/copysign' );
var sincos = require( '@stdlib/math/base/special/sincos' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
Expand Down
Loading

0 comments on commit a78f7d1

Please sign in to comment.