Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,15 @@ function query( slug, id, options, clbk ) {
info = ratelimit( response.headers );
debug( 'Rate limit: %d', info.limit );
debug( 'Rate limit remaining: %d', info.remaining );
debug( 'Rate limit reset: %s', (new Date( info.reset*1000 )).toISOString() );

if ( error ) {
var reset;
reset = new Date( info.reset * 1000 );
if ( !isNaN( reset.getTime() ) ) {
debug( 'Rate limit reset: %s', reset.toISOString() );
} else {
debug( 'Rate limit reset: unknown' );
}

if ( error ) {
return clbk( error, info );
}
clbk( null, info );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

/* eslint-disable no-new-wrappers, no-empty-function */
/* eslint-disable no-empty-function */

'use strict';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,24 @@ tape( 'the function performs element-wise multiplication via a callback function
mulBy( x.length, x, 1, 0, y, 1, 0, z, 1, 0, accessor );
t.deepEqual( z, expected, 'deep equal' );

x = new Array( 5 ); // sparse array
y = new Array( 5 ); // sparse array
z = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
x = [];
x.length = 5; // sparse array
y = [];
y.length = 5; // sparse array
z = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

mulBy( x.length, x, 1, 0, y, 1, 0, z, 1, 0, accessor );
t.deepEqual( z, expected, 'deep equal' );

x = new Array( 5 ); // sparse array
x[ 2 ] = rand();
y = new Array( 5 ); // sparse array
y[ 2 ] = rand();
x = [];
x.length = 5; // sparse array
x[ 2 ] = rand();

y = [];
y.length = 5; // sparse array
y[ 2 ] = rand();
z = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

expected = z.slice();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var j;
TOTAL = 8 * 8 * 8 * 8;

// For each integer value (octal number), determine the symbolic notation equivalent to the value's binary representation...
masks = new Array( TOTAL );
masks = [];
for ( i = 0; i < TOTAL; i++ ) {
tmp = '';

Expand Down
6 changes: 2 additions & 4 deletions lib/node_modules/@stdlib/stats/strided/nanrangeabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ Computes the [range][range] of absolute values of a strided array, ignoring `NaN

```javascript
var x = [ 1.0, -2.0, NaN, 2.0 ];
var N = x.length;

var v = nanrangeabs( N, x, 1 );
var v = nanrangeabs( x.length, x, 1 );
// returns 1.0
```

Expand Down Expand Up @@ -85,9 +84,8 @@ Computes the [range][range] of absolute values of a strided array, ignoring `NaN

```javascript
var x = [ 1.0, -2.0, NaN, 2.0 ];
var N = x.length;

var v = nanrangeabs.ndarray( N, x, 1, 0 );
var v = nanrangeabs.ndarray( x.length, x, 1, 0 );
// returns 1.0
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
var pow = require( '@stdlib/math/base/special/pow' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var nanrangeabs = require( './../lib/main.js' );
var nanrangeabs = require( './../lib' );


// FUNCTIONS //
Expand Down