Skip to content

Update REPL namespace #1077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2023
Merged
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
5 changes: 4 additions & 1 deletion lib/node_modules/@stdlib/repl/code-blocks/data/data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2352,7 +2352,7 @@ CDC_NCHS_US_BIRTHS_1994_2003,"var data = CDC_NCHS_US_BIRTHS_1994_2003()\n"
CDC_NCHS_US_INFANT_MORTALITY_BW_1915_2013,"var data = CDC_NCHS_US_INFANT_MORTALITY_BW_1915_2013()\n"
chdir,"var err = chdir( '/path/to/current/working/directory' )\n"
chi2gof,"var x = [ 89, 37, 30, 28, 2 ];\nvar p = [ 0.40, 0.20, 0.20, 0.15, 0.05 ];\nvar out = chi2gof( x, p );\nvar o = out.toJSON()\nout.toString()\nvar opts = { 'alpha': 0.01 };\nout = chi2gof( x, p, opts );\nout.toString()\nx = [ 89, 37, 30, 28, 2 ];\np = [ 0.40, 0.20, 0.20, 0.15, 0.05 ];\nopts = { 'simulate': true, 'iterations': 1000 };\nout = chi2gof( x, p, opts );\nout.toString()\nvar lambda = 3.0;\nvar rpois = base.random.poisson.factory( lambda );\nvar len = 400;\nx = [];\nfor ( var i = 0; i < len; i++ ) { x.push( rpois() ); };\nvar freqs = new Int32Array( len );\nfor ( i = 0; i < len; i++ ) { freqs[ x[ i ] ] += 1; };\nout = chi2gof( freqs, 'poisson', lambda );\nout.toString()\n"
chi2test,"var x = [ [ 20, 30 ], [ 30, 20 ] ];\nvar out = chi2test( x )\nout.print()\nvar opts = { 'alpha': 0.1 };\nout = chi2test( x, opts )\nout.print()\nopts = { 'correct': false };\nout = chi2test( x, opts )\n"
chi2test,"var x = [ [ 20, 30 ], [ 30, 20 ] ];\nvar out = chi2test( x );\nvar o = out.toJSON()\nout.toString()\nvar opts = { 'alpha': 0.1 };\nout = chi2test( x, opts );\no = out.toJSON()\nout.toString()\nopts = { 'correct': false };\nout = chi2test( x, opts );\nout.toString()\n"
circarray2iterator,"var it = circarray2iterator( [ 1, 2, 3, 4 ] );\nvar v = it.next().value\nv = it.next().value\n"
circularArrayStream,"function fcn( chunk ) { console.log( chunk.toString() ); };\nvar opts = { 'iter': 15 };\nvar s = circularArrayStream( [ 1, 2, 3 ], opts );\nvar o = inspectSinkStream( fcn );\ns.pipe( o );\n"
circularArrayStream.factory,"var opts = { 'objectMode': true, 'highWaterMark': 64 };\nvar createStream = circularArrayStream.factory( opts );\n"
Expand Down Expand Up @@ -2664,6 +2664,7 @@ getPrototypeOf,"var proto = getPrototypeOf( {} )\n"
getuid,"var uid = getuid()\n"
GLAISHER,"GLAISHER\n"
graphemeClusters2iterator,"var it = graphemeClusters2iterator( '🌷🍕' );\nvar v = it.next().value\nv = it.next().value\nvar bool = it.next().done\n"
graphemeClusters2iteratorRight,"var it = graphemeClusters2iteratorRight( '🌷🍕' );\nvar v = it.next().value\nv = it.next().value\nvar bool = it.next().done\n"
group,"var collection = [ 'beep', 'boop', 'foo', 'bar' ];\nvar groups = [ 'b', 'b', 'f', 'b' ];\nvar out = group( collection, groups )\ngroups = [ 1, 1, 2, 1 ];\nout = group( collection, groups )\ngroups = [ 'b', 'b', 'f', 'b' ];\nvar opts = { 'returns': 'indices' };\nout = group( collection, opts, groups )\nopts = { 'returns': '*' };\nout = group( collection, opts, groups )\n"
groupBy,"function indicator( v ) {\n if ( v[ 0 ] === 'b' ) {\n return 'b';\n }\n return 'other';\n };\nvar collection = [ 'beep', 'boop', 'foo', 'bar' ];\nvar out = groupBy( collection, indicator )\nvar opts = { 'returns': 'indices' };\nout = groupBy( collection, opts, indicator )\nopts = { 'returns': '*' };\nout = groupBy( collection, opts, indicator )\n"
groupByAsync,"function indicator( value, index, next ) {\n setTimeout( onTimeout, value );\n function onTimeout() {\n console.log( value );\n next( null, ( index%2 === 0 ) );\n }\n };\nfunction done( error, result ) {\n if ( error ) {\n throw error;\n }\n console.log( result );\n };\nvar arr = [ 3000, 2500, 1000 ];\ngroupByAsync( arr, indicator, done )\nvar opts = { 'returns': 'indices' };\ngroupByAsync( arr, opts, indicator, done )\nopts = { 'returns': '*' };\ngroupByAsync( arr, opts, indicator, done )\nfunction indicator( value, index, next ) {\n setTimeout( onTimeout, value );\n function onTimeout() {\n console.log( value );\n next( null, ( index%2 === 0 ) );\n }\n };\nfunction done( error, result ) {\n if ( error ) {\n throw error;\n }\n console.log( result );\n };\nvar opts = { 'limit': 2 };\nvar arr = [ 3000, 2500, 1000 ];\ngroupByAsync( arr, opts, indicator, done )\nfunction indicator( value, index, next ) {\n setTimeout( onTimeout, value );\n function onTimeout() {\n console.log( value );\n next( null, ( index%2 === 0 ) );\n }\n };\nfunction done( error, result ) {\n if ( error ) {\n throw error;\n }\n console.log( result );\n };\nvar opts = { 'series': true };\nvar arr = [ 3000, 2500, 1000 ];\ngroupByAsync( arr, opts, indicator, done )\n"
Expand All @@ -2682,6 +2683,7 @@ hasBigInt64ArraySupport,"var bool = hasBigInt64ArraySupport()\n"
hasBigIntSupport,"var bool = hasBigIntSupport()\n"
hasBigUint64ArraySupport,"var bool = hasBigUint64ArraySupport()\n"
hasClassSupport,"var bool = hasClassSupport()\n"
hasDataViewSupport,"var bool = hasDataViewSupport()\n"
hasDefinePropertiesSupport,"var bool = hasDefinePropertiesSupport()\n"
hasDefinePropertySupport,"var bool = hasDefinePropertySupport()\n"
hasFloat32ArraySupport,"var bool = hasFloat32ArraySupport()\n"
Expand Down Expand Up @@ -3008,6 +3010,7 @@ isASCII,"var str = 'beep boop';\nvar bool = isASCII( str )\nbool = isASCII( from
isBetween,"var bool = isBetween( 3.14, 3.0, 4.0 )\nbool = isBetween( 3.0, 3.0, 4.0 )\nbool = isBetween( 4.0, 3.0, 4.0 )\nbool = isBetween( 3.0, 3.14, 4.0 )\nbool = isBetween( 3.14, 3.14, 4.0, 'open', 'closed' )\nbool = isBetween( 3.14, 3.0, 3.14, 'closed', 'open' )\n"
isBetweenArray,"var arr = [ 3.0, 3.14, 4.0 ];\nvar bool = isBetweenArray( arr, 3.0, 4.0 )\nbool = isBetweenArray( arr, 3.14, 4.0 )\nbool = isBetweenArray( arr, 3.0, 3.14 )\nbool = isBetweenArray( arr, 3.0, 4.0, 'open', 'closed' )\nbool = isBetweenArray( arr, 3.0, 4.0, 'closed', 'open' )\n"
isBigInt,"var bool = isBigInt( BigInt( '1' ) )\nbool = isBigInt( Object( BigInt( '1' ) ) )\nbool = isBigInt( {} )\nbool = isBigInt( null )\nbool = isBigInt( true )\n"
isBigInt64Array,"var bool = isBigInt64Array( new BigInt64Array( 10 ) )\nbool = isBigInt64Array( [] )\n"
isBigUint64Array,"var bool = isBigUint64Array( new BigUint64Array( 10 ) )\nbool = isBigUint64Array( [] )\n"
isBinaryString,"var bool = isBinaryString( '1000101' )\nbool = isBinaryString( 'beep' )\nbool = isBinaryString( '' )\n"
isBlankString,"var bool = isBlankString( ' ' )\nbool = isBlankString( 'beep' )\nbool = isBlankString( null )\n"
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/repl/code-blocks/data/data.json

Large diffs are not rendered by default.

Loading