Skip to content

Commit 54ab542

Browse files
Merge branch 'stdlib-js:develop' into feat/rempio2f
2 parents c5a33c6 + 84a8fa9 commit 54ab542

File tree

354 files changed

+27021
-772
lines changed

Some content is hidden

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

354 files changed

+27021
-772
lines changed

.github/workflows/generate_pr_commit_message.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ jobs:
5656
# Pin action to full length commit SHA
5757
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5858
with:
59-
# Ensure we have access to the scripts directory:
59+
# Ensure we have access to the scripts directory and .mailmap file for generating the commit message:
6060
sparse-checkout: |
6161
.github/workflows/scripts
62+
.mailmap
6263
sparse-checkout-cone-mode: false
6364

6465
# Generate commit message:

.github/workflows/lint_random_files.yml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ jobs:
230230
\`\`\`
231231
$(cat lint_editorconfig_errors.txt | strip_ansi)
232232
\`\`\`
233+
234+
### Pull Request Instructions
235+
236+
- Please use the following PR title format:
237+
"chore: fix EditorConfig lint errors (issue #<ISSUE_NUMBER>)".
238+
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
233239
EOF
234240
235241
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
@@ -370,20 +376,26 @@ jobs:
370376
run: |
371377
BODY_FILE="$GITHUB_WORKSPACE/lint_issue_body.md"
372378
cat << EOF > "$BODY_FILE"
373-
## JavaScript Linting Failures
379+
## JavaScript Linting Failures
374380
375-
Linting failures were detected in the automated JavaScript lint workflow run.
381+
Linting failures were detected in the automated JavaScript lint workflow run.
376382
377-
### Workflow Details
383+
### Workflow Details
378384
379-
- Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
380-
- Type: JavaScript Linting
381-
- Date: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
385+
- Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
386+
- Type: JavaScript Linting
387+
- Date: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
382388
383-
### Error Details
384-
\`\`\`
385-
$(cat lint_javascript_errors.txt)
386-
\`\`\`
389+
### Error Details
390+
\`\`\`
391+
$(cat lint_javascript_errors.txt)
392+
\`\`\`
393+
394+
### Pull Request Instructions
395+
396+
- Please use the following PR title format:
397+
"chore: fix JavaScript lint errors (issue #<ISSUE_NUMBER>)".
398+
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
387399
EOF
388400
389401
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \
@@ -524,6 +536,12 @@ jobs:
524536
\`\`\`
525537
$(grep -B 1 -A 2 "style:\|warning:\|error:" "lint_c_errors.txt")
526538
\`\`\`
539+
540+
### Pull Request Instructions
541+
542+
- Please use the following PR title format:
543+
"chore: fix C lint errors (issue #<ISSUE_NUMBER>)".
544+
- Reference this issue in the "Related Issues" section of the PR body as "resolves #<ISSUE_NUMBER>".
527545
EOF
528546
529547
. "$GITHUB_WORKSPACE/.github/workflows/scripts/create_sub_issue" \

.github/workflows/scripts/create_address_commit_comments_issues

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,14 @@ Thank you for your help in reducing the project backlog and in improving the qua
411411
412412
## Notes
413413
414+
- When creating your pull request, please use the following format for the PR title:
415+
416+
\`\`\`
417+
chore: address commit comments for commit \`${short_sha}\` (issue #NNNN)
418+
\`\`\`
419+
420+
where \`NNNN\` is the issue number assigned to this issue.
421+
414422
- 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!
415423
416424
* * *

.github/workflows/scripts/rate_limit_contributions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ set -o pipefail
3838
pr_number="$1"
3939

4040
# Threshold of open "Good First PR"s above which to post comment:
41-
max_good_first_prs=5
41+
max_good_first_prs=10
4242

4343
# GitHub API base URL:
4444
github_api_url="https://api.github.com"
@@ -133,7 +133,7 @@ main() {
133133
pr_author=$(echo "${pr_details}" | jq -r '.user.login')
134134

135135
# Fetch other PRs of the same user:
136-
user_prs=$(github_api "GET" "/search/issues?q=repo%3A${repo_owner}%2F${repo_name}+state%3Aopen+author%3A${pr_author}+type%3Apr")
136+
user_prs=$(github_api "GET" "/search/issues?q=repo%3A${repo_owner}%2F${repo_name}+author%3A${pr_author}+type%3Apr")
137137

138138
# Count number of PRs labeled "Good First PR":
139139
num_good_first_prs=$(echo "${user_prs}" | jq -r '.items | map( select( .labels | any( .name == "Good First PR" ))) | length')

.github/workflows/slash_commands.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
await github.rest.issues.createComment({
8383
'owner': context.repo.owner,
8484
'repo': context.repo.repo,
85-
'issue_number': github.event.issue.number,
85+
'issue_number': context.issue.number,
8686
'body': `${quote}\n\n@${context.payload.comment.user.login}, slash command not recognized. Please use \`/stdlib help\` to view available commands.`
8787
});
8888
}
@@ -246,6 +246,25 @@ jobs:
246246
247247
# Define the job's steps:
248248
steps:
249+
# Check if any previous job failed and post a comment:
250+
- name: 'Notify of command failure'
251+
if: |
252+
contains(needs.*.result, 'failure')
253+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
254+
with:
255+
github-token: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
256+
script: |
257+
const commentBody = context.payload.comment.body.trim();
258+
const lines = commentBody.split( '\n' );
259+
const quote = lines.map( line => `> ${line}` ).join( '\n' );
260+
261+
await github.rest.issues.createComment({
262+
'owner': context.repo.owner,
263+
'repo': context.repo.repo,
264+
'issue_number': context.issue.number,
265+
'body': `${quote}\n\n@${context.payload.comment.user.login}, the slash command failed to complete. Please check the workflow logs for details.\n\n[View workflow run](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId})`
266+
});
267+
249268
- name: Remove in-progress label
250269
# Run the step regardless of the outcome of previous steps:
251270
if: always()

.mailmap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ Jaimin Godhani <112328542+Jai0401@users.noreply.github.com> Jai0401
8787

8888
James Gelok <jdgelok@gmail.com> James
8989

90+
Jay Soni <jaygsoni14@gmail.com> JaySoni1
91+
9092
Jaysukh Makvana <jaysukhmakvana2004@gmail.com> <111515433+Jaysukh-409@users.noreply.github.com>
9193

9294
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com> Jordan-Gallivan
@@ -185,6 +187,8 @@ Ryan Seal <splrk@users.noreply.github.com> Splrk
185187

186188
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com> the-r3aper7
187189

190+
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com> satansin123
191+
188192
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com> SarthakPaandey
189193

190194
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com> <123410790+Shashankss1205@users.noreply.github.com>

CONTRIBUTORS

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Aadish Jain <jain.aadishj@gmail.com>
66
Aayush Khanna <aayushiitbhu23@gmail.com>
77
Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
8+
Abdul Kaium <97376242+impawstarlight@users.noreply.github.com>
89
Abhay Punia <156515195+Hecker165@users.noreply.github.com>
910
Abhijit Raut <abhijitmraut8010@gmail.com>
1011
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
@@ -25,6 +26,7 @@ Anshu Kumar <contact.anshukumar@protonmail.com>
2526
Anudeep Sanapala <anudeep0306@gmail.com>
2627
Athan Reines <kgryte@gmail.com>
2728
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
29+
Bhavishy Agrawal <90029607+bhavishy2801@users.noreply.github.com>
2830
Brendan Graetz <bguiz@users.noreply.github.com>
2931
Bruno Fenzl <brunofenzl@gmail.com>
3032
Bryan Elee <rxbryn@gmail.com>
@@ -62,7 +64,7 @@ Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
6264
Jaison D Souza <123267719+jsndz@users.noreply.github.com>
6365
Jalaj Kumar <142599224+jalajk3004@users.noreply.github.com>
6466
James Gelok <jdgelok@gmail.com>
65-
JaySoni1 <jaygsoni14@gmail.com>
67+
Jay Soni <jaygsoni14@gmail.com>
6668
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
6769
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
6870
Jithin KS <jithinks112@gmail.com>
@@ -111,6 +113,7 @@ Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
111113
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
112114
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>
113115
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com>
116+
Rahul Kumar <132570066+rahulptl165@users.noreply.github.com>
114117
Raunak Kumar Gupta <raunakmodanwal321@gmail.com>
115118
Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
116119
Ricky Reusser <rsreusser@gmail.com>
@@ -125,6 +128,7 @@ Ryan Seal <splrk@users.noreply.github.com>
125128
Rylan Yang <137365285+rylany27@users.noreply.github.com>
126129
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
127130
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
131+
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
128132
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
129133
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
130134
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
@@ -165,4 +169,3 @@ pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
165169
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
166170
rainn <88160429+AmCodesLame@users.noreply.github.com>
167171
rei2hu <reimu@reimu.ws>
168-
satansin123 <122982233+satansin123@users.noreply.github.com>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"pattern": "**/package.json",
3-
"ignore": []
2+
"pattern": "**/package.json",
3+
"ignore": []
44
}

lib/node_modules/@stdlib/complex/base/wrap-function/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ declare function wrap( fcn: Nullary, nargs: 0, ctor: Constructor ): Nullary;
219219
*
220220
* @example
221221
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
222-
* var cidentityf = require( '@stdlib/math/base/special/cidentityf' );
222+
* var cidentityf = require( '@stdlib/complex/float32/base/identity' );
223223
* var realf = require( '@stdlib/complex/float32/real' );
224224
* var imagf = require( '@stdlib/complex/float32/imag' );
225225
*

lib/node_modules/@stdlib/math/base/special/cidentityf/README.md renamed to lib/node_modules/@stdlib/complex/float32/base/identity/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ f(z) = z
3333
```
3434

3535
<!-- <div class="equation" align="center" data-raw-text="f(z) = z" data-equation="eq:identity_function">
36-
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@79c18caa8e6697ecbe8bcf813a8d54a470168a75/lib/node_modules/@stdlib/math/base/special/cidentityf/docs/img/equation_identity_function.svg" alt="Identity function">
36+
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@79c18caa8e6697ecbe8bcf813a8d54a470168a75/lib/node_modules/@stdlib/complex/float32/base/identity/docs/img/equation_identity_function.svg" alt="Identity function">
3737
<br>
3838
</div> -->
3939

@@ -50,7 +50,7 @@ for all `z`.
5050
## Usage
5151

5252
```javascript
53-
var cidentityf = require( '@stdlib/math/base/special/cidentityf' );
53+
var cidentityf = require( '@stdlib/complex/float32/base/identity' );
5454
```
5555

5656
#### cidentityf( z )
@@ -85,7 +85,7 @@ var im = imag( v );
8585
```javascript
8686
var discreteUniform = require( '@stdlib/random/base/discrete-uniform' );
8787
var Complex64 = require( '@stdlib/complex/float32/ctor' );
88-
var cidentityf = require( '@stdlib/math/base/special/cidentityf' );
88+
var cidentityf = require( '@stdlib/complex/float32/base/identity' );
8989

9090
var z;
9191
var i;
@@ -122,17 +122,17 @@ for ( i = 0; i < 100; i++ ) {
122122
### Usage
123123

124124
```c
125-
#include "stdlib/math/base/special/cidentityf.h"
125+
#include "stdlib/complex/float32/base/identity.h"
126126
```
127127

128-
#### stdlib_base_cidentityf( z )
128+
#### stdlib_base_complex64_identity( z )
129129

130130
Evaluates the identity function for a single-precision complex floating-point number.
131131

132132
```c
133133
#include <complex.h>
134134

135-
float complex y = stdlib_base_cidentityf( 2.0f+2.0f*I );
135+
float complex y = stdlib_base_complex64_identity( 2.0f+2.0f*I );
136136
// returns 2.0f+2.0f*I
137137
```
138138

@@ -141,7 +141,7 @@ The function accepts the following arguments:
141141
- **z**: `[in] float complex` input value.
142142

143143
```c
144-
float complex stdlib_base_cidentityf( const float complex z );
144+
float complex stdlib_base_complex64_identity( const float complex z );
145145
```
146146
147147
</section>
@@ -163,7 +163,7 @@ float complex stdlib_base_cidentityf( const float complex z );
163163
### Examples
164164
165165
```c
166-
#include "stdlib/math/base/special/cidentityf.h"
166+
#include "stdlib/complex/float32/base/identity.h"
167167
#include <stdio.h>
168168
#include <complex.h>
169169
@@ -175,7 +175,7 @@ int main( void ) {
175175
int i;
176176
for ( i = 0; i < 4; i++ ) {
177177
v = x[ i ];
178-
y = stdlib_base_cidentityf( v );
178+
y = stdlib_base_complex64_identity( v );
179179
printf( "f(%f + %f) = %f + %f\n", crealf( v ), cimagf( v ), crealf( y ), cimagf( y ) );
180180
}
181181
}

0 commit comments

Comments
 (0)