Skip to content

Commit

Permalink
chore: minor clean-up
Browse files Browse the repository at this point in the history
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown
    status: passed
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: na
  - task: lint_javascript_src
    status: passed
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: na
  - task: lint_javascript_tests
    status: passed
  - task: lint_javascript_benchmarks
    status: passed
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: passed
  - task: lint_c_examples
    status: na
  - task: lint_c_benchmarks
    status: passed
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: na
  - task: lint_typescript_tests
    status: na
  - task: lint_license_headers
    status: passed
---
  • Loading branch information
Planeshifter committed Dec 24, 2024
1 parent ed5c4cc commit 2965f8f
Show file tree
Hide file tree
Showing 20 changed files with 72 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ static double random_uniform( const double min, const double max ) {
}
int main( void ) {
double x;
double sigma;
double x;
double y;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ static double random_uniform( const double min, const double max ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
double elapsed;
double x[ 100 ];
double sigma[ 100 ];
double x[ 100 ];
double elapsed;
double y;
double t;
int i;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ double stdlib_base_dists_rayleigh_cdf( const double x, const double sigma ) {
if ( sigma == 0.0 ) {
return ( x < 0.0 ) ? 0.0 : 1.0;
}
if ( x < 0.0) {
if ( x < 0.0 ) {
return 0.0;
}
s2 = stdlib_base_pow( sigma, 2.0 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ tape( 'the function evaluates the logpdf for `x` given small scale parameter `si
sigma = smallScale.sigma;
for ( i = 0; i < x.length; i++ ) {
y = logpdf( x[i], sigma[i] );
if ( expected[i] !== null) {
if ( expected[i] !== null ) {
if ( y === expected[i] ) {
t.equal( y, expected[i], 'x: '+x[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ tape( 'the function evaluates the pdf for `x` given small scale parameter `sigma
sigma = smallScale.sigma;
for ( i = 0; i < x.length; i++ ) {
y = pdf( x[i], sigma[i] );
if ( expected[i] !== null) {
if ( expected[i] !== null ) {
if ( y === expected[i] ) {
t.equal( y, expected[i], 'x: '+x[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ tape( 'the function evaluates the pdf for `x` given small scale parameter `sigma
sigma = smallScale.sigma;
for ( i = 0; i < x.length; i++ ) {
y = pdf( x[i], sigma[i] );
if ( expected[i] !== null) {
if ( expected[i] !== null ) {
if ( y === expected[i] ) {
t.equal( y, expected[i], 'x: '+x[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ tape( 'the function evaluates the quantile function at `p` given small scale par
sigma = smallScale.sigma;
for ( i = 0; i < p.length; i++ ) {
y = quantile( p[i], sigma[i] );
if ( expected[i] !== null) {
if ( expected[i] !== null ) {
if ( y === expected[i] ) {
t.equal( y, expected[i], 'p: '+p[i]+', sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ tape( 'the function evaluates the quantile function at `p` given `n` observation
n = data.n;
for ( i = 0; i < p.length; i++ ) {
y = quantile( p[i], n[i] );
if ( expected[i] !== null) {
if ( expected[i] !== null ) {
if ( y === expected[i] ) {
t.equal( y, expected[i], 'p: '+p[i]+', n: '+n[i]+', y: '+y+', expected: '+expected[i] );
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/kstest/lib/marsaglia.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function pKolmogorov( d, n ) {
var z;

z = new Float64Array( m * m );
for ( i = 0; i < m; i++) {
for ( i = 0; i < m; i++ ) {
for ( j = 0; j < m; j++ ) {
s = 0;
for ( k = 0; k < m; k++ ) {
Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/utils/any-in-by/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tape( 'the function throws an error if not provided an object', function test( t
/.*/,
new Date()
];
for (i =0; i < values.length; i++) {
for ( i =0; i < values.length; i++ ) {
t.throws( badValue( values ), TypeError, 'throws a type error when provided '+values[i] );
}
t.end();
Expand Down Expand Up @@ -79,7 +79,7 @@ tape( 'the function throws an error if not provided a predicate function', funct
/.*/,
new Date()
];
for (i =0; i < values.length; i++) {
for ( i =0; i < values.length; i++ ) {
t.throws( badValue( values ), TypeError, 'throws a type error when provided '+values[i] );
}
t.end();
Expand Down Expand Up @@ -108,7 +108,7 @@ tape( 'the function throws an error if predicate is not a function', function te
/.*/,
new Date()
];
for (i =0; i < values.length; i++) {
for ( i =0; i < values.length; i++ ) {
t.throws( badValue( values ), TypeError, 'throws a type error when provided '+values[i] );
}
t.end();
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/utils/curry-right/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ tape( 'the function returns a function', function test( t ) {
t.end();
});

tape( 'the function curries a function', function test( t) {
tape( 'the function curries a function', function test( t ) {
var fcn;
var f;

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/utils/curry/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ tape( 'the function returns a function', function test( t ) {
t.end();
});

tape( 'the function curries a function', function test( t) {
tape( 'the function curries a function', function test( t ) {
var fcn;
var f;

Expand Down
48 changes: 24 additions & 24 deletions lib/node_modules/@stdlib/utils/decorate-after/test/test.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ tape( 'the function returns a function (thisArg)', function test( t ) {
t.end();
});

tape( 'the function decorates a function (nullary, transform)', function test( t) {
tape( 'the function decorates a function (nullary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -240,7 +240,7 @@ tape( 'the function decorates a function (nullary, transform)', function test( t
}
});

tape( 'the function decorates a function (nullary, pass through)', function test( t) {
tape( 'the function decorates a function (nullary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -260,7 +260,7 @@ tape( 'the function decorates a function (nullary, pass through)', function test
}
});

tape( 'the function decorates a function (unary, transform)', function test( t) {
tape( 'the function decorates a function (unary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -284,7 +284,7 @@ tape( 'the function decorates a function (unary, transform)', function test( t)
}
});

tape( 'the function decorates a function (unary, pass through)', function test( t) {
tape( 'the function decorates a function (unary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -304,7 +304,7 @@ tape( 'the function decorates a function (unary, pass through)', function test(
}
});

tape( 'the function decorates a function (binary, transform)', function test( t) {
tape( 'the function decorates a function (binary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -324,7 +324,7 @@ tape( 'the function decorates a function (binary, transform)', function test( t)
}
});

tape( 'the function decorates a function (binary, pass through)', function test( t) {
tape( 'the function decorates a function (binary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -340,7 +340,7 @@ tape( 'the function decorates a function (binary, pass through)', function test(
t.end();
});

tape( 'the function decorates a function (ternary, transform)', function test( t) {
tape( 'the function decorates a function (ternary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -361,7 +361,7 @@ tape( 'the function decorates a function (ternary, transform)', function test( t
}
});

tape( 'the function decorates a function (ternary, pass through)', function test( t) {
tape( 'the function decorates a function (ternary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -378,7 +378,7 @@ tape( 'the function decorates a function (ternary, pass through)', function test
}
});

tape( 'the function decorates a function (quaternary, transform)', function test( t) {
tape( 'the function decorates a function (quaternary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -399,7 +399,7 @@ tape( 'the function decorates a function (quaternary, transform)', function test
}
});

tape( 'the function decorates a function (quaternary, pass through)', function test( t) {
tape( 'the function decorates a function (quaternary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -416,7 +416,7 @@ tape( 'the function decorates a function (quaternary, pass through)', function t
}
});

tape( 'the function decorates a function (quinary, transform)', function test( t) {
tape( 'the function decorates a function (quinary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -437,7 +437,7 @@ tape( 'the function decorates a function (quinary, transform)', function test( t
}
});

tape( 'the function decorates a function (quinary, pass through)', function test( t) {
tape( 'the function decorates a function (quinary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -454,7 +454,7 @@ tape( 'the function decorates a function (quinary, pass through)', function test
}
});

tape( 'the function decorates a function (senary, transform)', function test( t) {
tape( 'the function decorates a function (senary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -475,7 +475,7 @@ tape( 'the function decorates a function (senary, transform)', function test( t)
}
});

tape( 'the function decorates a function (senary, pass through)', function test( t) {
tape( 'the function decorates a function (senary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -492,7 +492,7 @@ tape( 'the function decorates a function (senary, pass through)', function test(
}
});

tape( 'the function decorates a function (septenary, transform)', function test( t) {
tape( 'the function decorates a function (septenary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -513,7 +513,7 @@ tape( 'the function decorates a function (septenary, transform)', function test(
}
});

tape( 'the function decorates a function (septenary, pass through)', function test( t) {
tape( 'the function decorates a function (septenary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -530,7 +530,7 @@ tape( 'the function decorates a function (septenary, pass through)', function te
}
});

tape( 'the function decorates a function (octonary, transform)', function test( t) {
tape( 'the function decorates a function (octonary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -551,7 +551,7 @@ tape( 'the function decorates a function (octonary, transform)', function test(
}
});

tape( 'the function decorates a function (octonary, pass through)', function test( t) {
tape( 'the function decorates a function (octonary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -568,7 +568,7 @@ tape( 'the function decorates a function (octonary, pass through)', function tes
}
});

tape( 'the function decorates a function (novenary, transform)', function test( t) {
tape( 'the function decorates a function (novenary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -589,7 +589,7 @@ tape( 'the function decorates a function (novenary, transform)', function test(
}
});

tape( 'the function decorates a function (novenary, pass through)', function test( t) {
tape( 'the function decorates a function (novenary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -606,7 +606,7 @@ tape( 'the function decorates a function (novenary, pass through)', function tes
}
});

tape( 'the function decorates a function (denary, transform)', function test( t) {
tape( 'the function decorates a function (denary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -627,7 +627,7 @@ tape( 'the function decorates a function (denary, transform)', function test( t)
}
});

tape( 'the function decorates a function (denary, pass through)', function test( t) {
tape( 'the function decorates a function (denary, pass through)', function test( t ) {
var fcn;
var v;

Expand All @@ -644,7 +644,7 @@ tape( 'the function decorates a function (denary, pass through)', function test(
}
});

tape( 'the function decorates a function (multary, transform)', function test( t) {
tape( 'the function decorates a function (multary, transform)', function test( t ) {
var fcn;
var v;

Expand All @@ -665,7 +665,7 @@ tape( 'the function decorates a function (multary, transform)', function test( t
}
});

tape( 'the function decorates a function (multary, pass through)', function test( t) {
tape( 'the function decorates a function (multary, pass through)', function test( t ) {
var fcn;
var v;

Expand Down
Loading

0 comments on commit 2965f8f

Please # to comment.