Skip to content

Commit b76b1ab

Browse files
Merge branch 'f/mode' of https://github.com/vivekmaurya001/stdlib into f/mode
2 parents 23f3fd8 + 8785e54 commit b76b1ab

File tree

148 files changed

+9624
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+9624
-84
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#/
2+
# @license Apache-2.0
3+
#
4+
# Copyright (c) 2024 The Stdlib Authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#/
18+
19+
# Workflow name:
20+
name: labeler_needs_changes
21+
22+
# Workflow triggers:
23+
on:
24+
pull_request_review:
25+
types: [submitted]
26+
27+
# Workflow jobs:
28+
jobs:
29+
30+
# Define a job which automatically labels pull requests as needing changes when a reviewer requests changes:
31+
add-needs-changes-label:
32+
33+
# Define job name:
34+
name: 'Add "Needs Changes" Label when Reviewer Requests Changes'
35+
36+
# Only run this job if the reviewer requested changes:
37+
if: ${{ github.event.review.state == 'changes_requested' }}
38+
39+
# Define job permissions:
40+
permissions:
41+
contents: read
42+
pull-requests: write
43+
44+
# Define the type of virtual host machine:
45+
runs-on: ubuntu-latest
46+
47+
# Define the sequence of job steps:
48+
steps:
49+
50+
# Add "Needs Changes" label:
51+
- name: 'Add "Needs Changes" label'
52+
# Pin action to a known commit SHA for reproducibility:
53+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
54+
with:
55+
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
56+
script: |
57+
await github.rest.issues.addLabels({
58+
'owner': context.repo.owner,
59+
'repo': context.repo.repo,
60+
'issue_number': context.payload.pull_request.number,
61+
'labels': [ 'Needs Changes' ]
62+
})

.github/workflows/run_tests_coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ jobs:
292292
BRANCH_NAME="pr-${{ github.event.pull_request.number }}"
293293
git fetch origin $BRANCH_NAME || true
294294
git checkout $BRANCH_NAME || git checkout -b $BRANCH_NAME
295+
296+
# Remove all files from the branch:
297+
git rm -rf .
295298
else
296299
BRANCH_NAME="main"
297300
fi

lib/node_modules/@stdlib/array/base/filled5d-by/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ out = filled5dBy( [ 1, 1, 1, 1, 3 ], constantFunction( void 0 ) );
134134

135135
<section class="related">
136136

137+
* * *
138+
139+
## See Also
140+
141+
- <span class="package-name">[`@stdlib/array/base/filled5d`][@stdlib/array/base/filled5d]</span><span class="delimiter">: </span><span class="description">create a filled five-dimensional nested array.</span>
142+
137143
</section>
138144

139145
<!-- /.related -->
@@ -142,6 +148,12 @@ out = filled5dBy( [ 1, 1, 1, 1, 3 ], constantFunction( void 0 ) );
142148

143149
<section class="links">
144150

151+
<!-- <related-links> -->
152+
153+
[@stdlib/array/base/filled5d]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/filled5d
154+
155+
<!-- </related-links> -->
156+
145157
</section>
146158

147159
<!-- /.links -->

lib/node_modules/@stdlib/array/base/flatten5d/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ out = flatten5d( x, [ 2, 2, 1, 2, 2 ], true );
154154

155155
<section class="related">
156156

157+
* * *
158+
159+
## See Also
160+
161+
- <span class="package-name">[`@stdlib/array/base/flatten5d-by`][@stdlib/array/base/flatten5d-by]</span><span class="delimiter">: </span><span class="description">flatten a five-dimensional nested array according to a callback function.</span>
162+
157163
</section>
158164

159165
<!-- /.related -->
@@ -162,6 +168,12 @@ out = flatten5d( x, [ 2, 2, 1, 2, 2 ], true );
162168

163169
<section class="links">
164170

171+
<!-- <related-links> -->
172+
173+
[@stdlib/array/base/flatten5d-by]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/flatten5d-by
174+
175+
<!-- </related-links> -->
176+
165177
</section>
166178

167179
<!-- /.links -->

lib/node_modules/@stdlib/assert/is-camelcase/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ false
169169

170170
<section class="related">
171171

172+
* * *
173+
174+
## See Also
175+
176+
- <span class="package-name">[`@stdlib/assert/is-string`][@stdlib/assert/is-string]</span><span class="delimiter">: </span><span class="description">test if a value is a string.</span>
177+
- <span class="package-name">[`@stdlib/assert/is-constantcase`][@stdlib/assert/is-constantcase]</span><span class="delimiter">: </span><span class="description">test if a value is a constant-case string.</span>
178+
172179
</section>
173180

174181
<!-- /.related -->
@@ -183,6 +190,10 @@ false
183190

184191
<!-- <related-links> -->
185192

193+
[@stdlib/assert/is-string]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/is-string
194+
195+
[@stdlib/assert/is-constantcase]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/assert/is-constantcase
196+
186197
<!-- </related-links> -->
187198

188199
</section>

lib/node_modules/@stdlib/iter/do-until-each/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@ while ( true ) {
223223

224224
<section class="related">
225225

226+
* * *
227+
228+
## See Also
229+
230+
- <span class="package-name">[`@stdlib/iter/do-while-each`][@stdlib/iter/do-while-each]</span><span class="delimiter">: </span><span class="description">create an iterator which, while a test condition is true, invokes a function for each iterated value before returning the iterated value.</span>
231+
- <span class="package-name">[`@stdlib/iter/until-each`][@stdlib/iter/until-each]</span><span class="delimiter">: </span><span class="description">create an iterator which, while a test condition is false, invokes a function for each iterated value before returning the iterated value.</span>
232+
- <span class="package-name">[`@stdlib/iter/while-each`][@stdlib/iter/while-each]</span><span class="delimiter">: </span><span class="description">create an iterator which, while a test condition is true, invokes a function for each iterated value before returning the iterated value.</span>
233+
226234
</section>
227235

228236
<!-- /.related -->
@@ -231,6 +239,16 @@ while ( true ) {
231239

232240
<section class="links">
233241

242+
<!-- <related-links> -->
243+
244+
[@stdlib/iter/do-while-each]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/iter/do-while-each
245+
246+
[@stdlib/iter/until-each]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/iter/until-each
247+
248+
[@stdlib/iter/while-each]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/iter/while-each
249+
250+
<!-- </related-links> -->
251+
234252
</section>
235253

236254
<!-- /.links -->

lib/node_modules/@stdlib/math/base/special/negalucasf/lib/main.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@
2323
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2424
var isIntegerf = require( '@stdlib/math/base/assert/is-integerf' );
2525
var absf = require( '@stdlib/math/base/special/absf' );
26+
var MAX_LUCAS = require( '@stdlib/constants/float32/max-safe-nth-lucas' );
2627
var NEGALUCAS = require( './negalucas.json' );
2728

2829

29-
// VARIABLES //
30-
31-
var MAX_LUCAS = 34;
32-
33-
3430
// MAIN //
3531

3632
/**

lib/node_modules/@stdlib/math/base/special/negalucasf/manifest.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"libpath": [],
3838
"dependencies": [
3939
"@stdlib/math/base/napi/unary",
40-
"@stdlib/math/base/special/labs"
40+
"@stdlib/math/base/special/labs",
41+
"@stdlib/constants/float32/max-safe-nth-lucas"
4142
]
4243
},
4344
{
@@ -51,7 +52,8 @@
5152
"libraries": [],
5253
"libpath": [],
5354
"dependencies": [
54-
"@stdlib/math/base/special/labs"
55+
"@stdlib/math/base/special/labs",
56+
"@stdlib/constants/float32/max-safe-nth-lucas"
5557
]
5658
},
5759
{
@@ -65,7 +67,8 @@
6567
"libraries": [],
6668
"libpath": [],
6769
"dependencies": [
68-
"@stdlib/math/base/special/labs"
70+
"@stdlib/math/base/special/labs",
71+
"@stdlib/constants/float32/max-safe-nth-lucas"
6972
]
7073
}
7174
]

lib/node_modules/@stdlib/math/base/special/negalucasf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "stdlib/math/base/special/negalucasf.h"
2020
#include "stdlib/math/base/special/labs.h"
21-
#define STDLIB_CONSTANT_FLOAT32_MAX_SAFE_NTH_LUCAS 34
21+
#include "stdlib/constants/float32/max_safe_nth_lucas.h"
2222

2323
static const int32_t negalucasf_value[ 35 ] = {
2424
2,

lib/node_modules/@stdlib/math/base/special/sqrtpif/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ int main( void ) {
182182

183183
<section class="links">
184184

185-
<!-- <related-links> -->
186-
187185
[@stdlib/math/base/special/sqrt]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/special/sqrt
188186

187+
<!-- <related-links> -->
188+
189189
<!-- </related-links> -->
190190

191191
</section>

0 commit comments

Comments
 (0)