-
-
Notifications
You must be signed in to change notification settings - Fork 914
Description
This commit has 9 comment(s) from core contributors that require attention.
Commit: d8cd158e02fea1c4dbaf2f75a7000ac32c52479c
Comments:
-
Line 145: @stdlib-bot Line L145-148 need to move to L241.
stdlib/lib/node_modules/@stdlib/stats/base/dists/normal/pdf/README.md
Lines 142 to 148 in d8cd158
<!-- /.examples --> <!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. --> <section class="references"> -
Line 240: @stdlib-bot We are missing a closing
</section>
and trailing comment to pair with the<section class="c">
above. See other similar packages for what we are looking for.stdlib/lib/node_modules/@stdlib/stats/base/dists/normal/pdf/README.md
Lines 237 to 243 in d8cd158
} } ``` </section> <!-- /.references --> -
Line 217: @stdlib-bot This header is not used and can be removed.
stdlib/lib/node_modules/@stdlib/stats/base/dists/normal/pdf/README.md
Lines 214 to 220 in d8cd158
#include "stdlib/constants/float64/eps.h" #include <stdlib.h> #include <stdio.h> #include <time.h> static double random_uniform( const double min, const double max ) { double v = (double)rand() / ( (double)RAND_MAX + 1.0 ); -
Line 63: @stdlib-bot Missing space between
]
and)
.stdlib/lib/node_modules/@stdlib/stats/base/dists/normal/pdf/benchmark/benchmark.native.js
Lines 60 to 66 in d8cd158
b.tic(); for ( i = 0; i < b.iterations; i++ ) { y = pdf( x[ i % len ], mu[ i % len ], sigma[ i % len ]); if ( isnan( y ) ) { b.fail( 'should not return NaN' ); } -
Line 43: @stdlib-bot This should be
pkg+'::native'
stdlib/lib/node_modules/@stdlib/stats/base/dists/normal/pdf/benchmark/benchmark.native.js
Lines 40 to 46 in d8cd158
// MAIN // bench( pkg, opts, function benchmark( b ) { var sigma; var len; var mu; -
Line 30: @stdlib-bot This line should be removed.
stdlib/lib/node_modules/@stdlib/stats/base/dists/normal/pdf/benchmark/c/benchmark.c
Lines 27 to 33 in d8cd158
#define NAME "normal-pdf" #define ITERATIONS 1000000 #define REPEATS 3 #define LEN 100 /** * Prints the TAP version. -
Line 98: @stdlib-bot All instances of
LEN
should be replaced with100
.stdlib/lib/node_modules/@stdlib/stats/base/dists/normal/pdf/benchmark/c/benchmark.c
Lines 95 to 101 in d8cd158
*/ static double benchmark( void ) { double elapsed; double x[ LEN ]; double mu[ LEN ]; double sigma[ LEN ]; double y; -
Line 100: @stdlib-bot Variable declarations should be ordered by length.
stdlib/lib/node_modules/@stdlib/stats/base/dists/normal/pdf/benchmark/c/benchmark.c
Lines 97 to 103 in d8cd158
double elapsed; double x[ LEN ]; double mu[ LEN ]; double sigma[ LEN ]; double y; double t; int i; -
Line 23: @stdlib-bot This header is not used and can be removed.
stdlib/lib/node_modules/@stdlib/stats/base/dists/normal/pdf/examples/c/example.c
Lines 20 to 26 in d8cd158
#include "stdlib/constants/float64/eps.h" #include <stdlib.h> #include <stdio.h> #include <time.h> static double random_uniform( const double min, const double max ) { double v = (double)rand() / ( (double)RAND_MAX + 1.0 );
Interested in helping improve the project? If you are, the comment linked to above has 9 comment(s) from core contributors that could use your attention.
What do you need to do?
- Open the above linked comments mentioning @stdlib-bot.
- Review the suggested changes or follow-up tasks (e.g., formatting improvements, small refactorings, or clean-up).
- If you are a first-time contributor, follow the contributing and development guides to setup your local environment for contributing to stdlib. If you are already a seasoned stdlib contributor, create a new branch on your local fork for making the changes.
- Make all the desired changes and commit those changes to a local branch.
- Push the changes to GitHub and open a new pull request against the
develop
branch of the main stdlib development repository.
Once you've opened a pull request, a stdlib maintainer will review your work and suggest any follow-up changes.
And that's it!
Thank you for your help in reducing the project backlog and in improving the quality of stdlib. 🙌
Notes
- For older commits, there is a chance that comments will have been already been addressed due to other refactorings. If you find that to be true, don't worry! Just move on to addressing the next comment, and, when opening your pull request and describing your proposed changes, be sure to link to the comment and mention that it has been addressed. This will help reviewers when reviewing your code!
This issue was created automatically to address commit comments tagging @stdlib-bot.