Skip to content

Commit

Permalink
Update artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Mar 16, 2024
1 parent 7b4a7bf commit a993bdf
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 77 deletions.
1 change: 1 addition & 0 deletions array/base/count-same-value-zero/coverage.ndjson
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[210,212,99.0566,15,16,93.75,4,4,100,210,212,99.0566,"30112b7202358710becc8ea77f4261dd3e7459f3","2024-02-27 20:12:29 -0500"]
[210,212,99.0566,15,16,93.75,4,4,100,210,212,99.0566,"5cfd0a8712299d680aff7f9d8fca0c0ac69de56b","2024-03-02 20:24:19 -0500"]
[213,213,100,20,20,100,4,4,100,213,213,100,"e5717aded383e2202efcba9b9fb83f641f28fa91","2024-03-15 18:08:16 -0700"]
30 changes: 15 additions & 15 deletions array/base/count-same-value-zero/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ <h1><a href="../../../../index.html">All files</a> array/base/count-same-value-z
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">99.05% </span>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>210/212</span>
<span class='fraction'>213/213</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">93.75% </span>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>15/16</span>
<span class='fraction'>20/20</span>
</div>


Expand All @@ -44,9 +44,9 @@ <h1><a href="../../../../index.html">All files</a> array/base/count-same-value-z


<div class='fl pad1y space-right2'>
<span class="strong">99.05% </span>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>210/212</span>
<span class='fraction'>213/213</span>
</div>


Expand Down Expand Up @@ -95,17 +95,17 @@ <h1><a href="../../../../index.html">All files</a> array/base/count-same-value-z

<tr>
<td class="file high" data-value="main.js"><a href="main.js.html">main.js</a></td>
<td data-value="98.82" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 98%"></div><div class="cover-empty" style="width: 2%"></div></div>
<td data-value="100" class="pic high">
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="98.82" class="pct high">98.82%</td>
<td data-value="170" class="abs high">168/170</td>
<td data-value="93.33" class="pct high">93.33%</td>
<td data-value="15" class="abs high">14/15</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="171" class="abs high">171/171</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="19" class="abs high">19/19</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="4" class="abs high">4/4</td>
<td data-value="98.82" class="pct high">98.82%</td>
<td data-value="170" class="abs high">168/170</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="171" class="abs high">171/171</td>
</tr>

</tbody>
Expand All @@ -116,7 +116,7 @@ <h1><a href="../../../../index.html">All files</a> array/base/count-same-value-z
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-03-03T01:25:57.300Z
at 2024-03-16T01:10:01.552Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
4 changes: 2 additions & 2 deletions array/base/count-same-value-zero/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
'use strict';
&nbsp;
/**
* Count the number of elements that are equal to a given value in an array.
* Count the number of elements in an array that are equal to a specified value.
*
* @module @stdlib/array/base/count-same-value-zero
*
Expand Down Expand Up @@ -196,7 +196,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-03-03T01:25:57.300Z
at 2024-03-16T01:10:01.552Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
105 changes: 54 additions & 51 deletions array/base/count-same-value-zero/main.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">98.82% </span>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>168/170</span>
<span class='fraction'>171/171</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">93.33% </span>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>14/15</span>
<span class='fraction'>19/19</span>
</div>


Expand All @@ -44,9 +44,9 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/


<div class='fl pad1y space-right2'>
<span class="strong">98.82% </span>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>168/170</span>
<span class='fraction'>171/171</span>
</div>


Expand Down Expand Up @@ -233,7 +233,8 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<a name='L168'></a><a href='#L168'>168</a>
<a name='L169'></a><a href='#L169'>169</a>
<a name='L170'></a><a href='#L170'>170</a>
<a name='L171'></a><a href='#L171'>171</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<a name='L171'></a><a href='#L171'>171</a>
<a name='L172'></a><a href='#L172'>172</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -343,33 +344,29 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">13x</span>
<span class="cline-any cline-yes">13x</span>
<span class="cline-any cline-yes">10x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">13x</span>
<span class="cline-any cline-yes">8x</span>
<span class="cline-any cline-yes">8x</span>
<span class="cline-any cline-yes">13x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand All @@ -389,15 +386,20 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">13x</span>
<span class="cline-any cline-yes">13x</span>
<span class="cline-any cline-yes">7x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">6x</span>
<span class="cline-any cline-yes">12x</span>
<span class="cline-any cline-yes">13x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
Expand Down Expand Up @@ -438,12 +440,12 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
// FUNCTIONS //
&nbsp;
/**
* Counts the number of elements that are equal to a given value in an indexed array.
* Counts the number of elements in an indexed array that are equal to a specified value.
*
* @private
* @param {Collection} x - input array
* @param {*} value - given value
* @returns {NonNegativeInteger} number of elements that are equal to the given value
* @param {*} value - search value
* @returns {NonNegativeInteger} number of elements that are equal to a specified value
*
* @example
* var x = [ 0, 0, 1, 0, 1 ];
Expand All @@ -465,12 +467,12 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
}
&nbsp;
/**
* Counts the number of elements that are equal to a given value in an accessor array.
* Counts the number of elements in an accessor array that are equal to a specified value.
*
* @private
* @param {Collection} x - input array
* @param {*} value - given value
* @returns {NonNegativeInteger} number of elements that are equal to the given value
* @param {*} value - search value
* @returns {NonNegativeInteger} number of elements that are equal to a specified value
*
* @example
* var toAccessorArray = require( '@stdlib/array/base/to-accessor-array' );
Expand All @@ -497,16 +499,16 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
}
&nbsp;
/**
* Counts the number of elements that are equal to a given value in a complex array.
* Counts the number of elements in a complex array that are equal to a specified value.
*
* @private
* @param {Collection} x - input array
* @param {*} value - given value
* @returns {NonNegativeInteger} number of elements that are equal to the given value
* @param {*} value - search value
* @returns {NonNegativeInteger} number of elements that are equal to a specified value
*
* @example
* var Complex128 = require( '@stdlib/complex/float64' );
* var Complex128Array = require( '@stdlib/array/complex128' );
* var Complex128 = require( '@stdlib/complex/float64' );
*
* var x = new Complex128Array( [ 1.0, 2.0, 0.0, 0.0, 3.0, 4.0, 0.0, 0.0 ] );
*
Expand All @@ -520,21 +522,17 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
var n;
var i;
&nbsp;
if ( !isComplexLike( value ) ) <span class="branch-0 cbranch-no" title="branch not covered" >{</span>
<span class="cstat-no" title="statement not covered" > return 0;</span>
<span class="cstat-no" title="statement not covered" > }</span>
&nbsp;
if ( !isComplexLike( value ) ) {
return 0;
}
re = real( value );
im = imag( value );
&nbsp;
view = reinterpret( x, 0 );
&nbsp;
n = 0;
for ( i = 0; i &lt; view.length; i += 2 ) {
if (
isSameValueZero( view[ i ], re ) &amp;&amp;
isSameValueZero( view[ i + 1 ], im )
) {
if ( isSameValueZero( view[ i ], re ) &amp;&amp; isSameValueZero( view[ i+1 ], im ) ) { // eslint-disable-line max-len
n += 1;
}
}
Expand All @@ -545,11 +543,16 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
// MAIN //
&nbsp;
/**
* Counts the number of elements that are equal to a given value in an array.
* Counts the number of elements in an array that are equal to a specified value.
*
* ## Notes
*
* - The function uses the SameValueZero Algorithm used by `TypedArray` and `ArrayBuffer` constructors, `Map` and `Set` operations, `String.prototype.includes`, and `Array.prototype.includes` since ES2016.
* - In contrast to an implementation based on the strict equality operator `===`, the function treats `NaNs` as the same value.
*
* @param {Collection} x - input array
* @param {*} value - given value
* @returns {NonNegativeInteger} number of elements that are equal to the given value
* @param {*} value - search value
* @returns {NonNegativeInteger} number of elements that are equal to a specified value
*
* @example
* var countSameValueZero = require( '@stdlib/array/base/count-same-value-zero' );
Expand Down Expand Up @@ -580,7 +583,7 @@ <h1><a href="../../../../index.html">All files</a> / <a href="index.html">array/
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-03-03T01:25:57.300Z
at 2024-03-16T01:10:01.552Z
</div>
<script src="../../../../prettify.js"></script>
<script>
Expand Down
1 change: 1 addition & 0 deletions array/base/coverage.ndjson
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@
[1500,1500,100,1,1,100,0,0,100,1500,1500,100,"0adcae51386086e2ef5fb5d78402389cff776deb","2024-02-21 15:38:30 -0800"]
[1500,1500,100,1,1,100,0,0,100,1500,1500,100,"39b81766b9d8a5e89ba4a26e5ea07f6413b46973","2024-02-21 15:39:52 -0800"]
[1509,1509,100,1,1,100,0,0,100,1509,1509,100,"254835955084e4104fde8e72cecaab36ca08f6eb","2024-03-15 17:31:09 -0700"]
[1518,1518,100,1,1,100,0,0,100,1518,1518,100,"e5717aded383e2202efcba9b9fb83f641f28fa91","2024-03-15 18:08:16 -0700"]
10 changes: 5 additions & 5 deletions array/base/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1><a href="../../../index.html">All files</a> array/base/lib</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>1509/1509</span>
<span class='fraction'>1518/1518</span>
</div>


Expand All @@ -46,7 +46,7 @@ <h1><a href="../../../index.html">All files</a> array/base/lib</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>1509/1509</span>
<span class='fraction'>1518/1518</span>
</div>


Expand Down Expand Up @@ -84,13 +84,13 @@ <h1><a href="../../../index.html">All files</a> array/base/lib</h1>
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1509" class="abs high">1509/1509</td>
<td data-value="1518" class="abs high">1518/1518</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">0/0</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1509" class="abs high">1509/1509</td>
<td data-value="1518" class="abs high">1518/1518</td>
</tr>

</tbody>
Expand All @@ -101,7 +101,7 @@ <h1><a href="../../../index.html">All files</a> array/base/lib</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2024-03-16T00:33:01.099Z
at 2024-03-16T01:10:04.177Z
</div>
<script src="../../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit a993bdf

Please sign in to comment.