Skip to content

Commit e5453d6

Browse files
Merge branch 'develop' into add-quantile
Signed-off-by: Neeraj Pathak <[email protected]>
2 parents 214d52c + 0258691 commit e5453d6

File tree

11,007 files changed

+538824
-100991
lines changed

Some content is hidden

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

11,007 files changed

+538824
-100991
lines changed

.clang-format

Lines changed: 1844 additions & 0 deletions
Large diffs are not rendered by default.

.editorconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ indent_style = tab
8686
[*.{f,f.txt}]
8787
indent_style = space
8888
indent_size = 2
89-
insert_final_newline = false
9089

9190
# Set properties for shell files:
9291
[*.{sh,sh.txt}]
@@ -121,7 +120,7 @@ indent_style = tab
121120
[*.{md,md.txt}]
122121
indent_style = space
123122
indent_size = 4
124-
trim_trailing_whitespace = false
123+
trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim.
125124
126125
# Set properties for `usage.txt` files:
127126
[usage.txt]

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,5 @@ body:
117117
options:
118118
- label: Read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
119119
required: true
120-
- label: Searched for existing issues and pull requests.
120+
- label: Searched for existing issues and pull requests.
121121
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
contact_links:
2020
- name: 👩‍🏫 Frequently Asked Questions
21-
url: https://github.com/stdlib-js/stdlib/blob/develop/FAQ.md
21+
url: https://github.com/stdlib-js/stdlib/blob/develop/FAQ.md
2222
about: Consult the FAQ in case we have already answered your question there.
2323
- name: 💬 Question
24-
url: https://gitter.im/stdlib-js/stdlib
24+
url: https://gitter.im/stdlib-js/stdlib
2525
about: Got a (non-bug related) question we haven't already answered? Ask us on Gitter! 🤗
2626
- name: 👏 Support Us
2727
url: https://github.com/stdlib-js/stdlib/blob/develop/docs/support_the_project.md

.github/labeler.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,15 @@ LAPACK:
2727
Math:
2828
- changed-files:
2929
- any-glob-to-all-files: '**/math/**/*'
30+
31+
REPL:
32+
- changed-files:
33+
- any-glob-to-all-files: '**/repl/**/*'
34+
35+
Statistics:
36+
- changed-files:
37+
- any-glob-to-all-files: '**/stats/**/*'
38+
39+
Tools:
40+
- changed-files:
41+
- any-glob-to-all-files: '**/_tools/**/*'

.github/workflows/autoclose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: 'Close pull request'
5353
run: gh pr close "$NUMBER" --comment "$BODY"
5454
env:
55-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
55+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
5656
GH_REPO: ${{ github.repository }}
5757
NUMBER: ${{ github.event.pull_request.number }}
5858
BODY: |
@@ -88,7 +88,7 @@ jobs:
8888
- name: 'Close pull request'
8989
run: gh pr close "$NUMBER" --comment "$BODY"
9090
env:
91-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
91+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
9292
GH_REPO: ${{ github.repository }}
9393
NUMBER: ${{ github.event.pull_request.number }}
9494
BODY: |
@@ -124,7 +124,7 @@ jobs:
124124
- name: 'Close pull request'
125125
run: gh pr close "$NUMBER" --comment "$BODY"
126126
env:
127-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
127+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
128128
GH_REPO: ${{ github.repository }}
129129
NUMBER: ${{ github.event.pull_request.number }}
130130
BODY: |
@@ -164,7 +164,7 @@ jobs:
164164
- name: 'Close pull request'
165165
run: gh pr close "$NUMBER" --comment "$BODY"
166166
env:
167-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
167+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
168168
GH_REPO: ${{ github.repository }}
169169
NUMBER: ${{ github.event.pull_request.number }}
170170
BODY: |
@@ -176,7 +176,7 @@ jobs:
176176
- name: 'Lock conversation'
177177
run: gh pr lock "$NUMBER" --reason spam
178178
env:
179-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
179+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
180180
GH_REPO: ${{ github.repository }}
181181
NUMBER: ${{ github.event.pull_request.number }}
182182

@@ -204,7 +204,7 @@ jobs:
204204
- name: 'Close pull request'
205205
run: gh pr close "$NUMBER" --comment "$BODY"
206206
env:
207-
GH_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
207+
GH_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
208208
GH_REPO: ${{ github.repository }}
209209
NUMBER: ${{ github.event.pull_request.number }}
210210
BODY: |

.github/workflows/check_contributing_guidelines_acceptance.yml

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
# Checkout the repository:
7373
- name: 'Checkout repository'
7474
# Pin action to full length commit SHA
75-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
75+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7676
with:
7777
# Specify whether to remove untracked files before checking out the repository:
7878
clean: true
@@ -87,7 +87,7 @@ jobs:
8787
# Check contributing guidelines acceptance:
8888
- name: 'Check contributing guidelines acceptance'
8989
env:
90-
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
90+
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
9191
PR_NUMBER: ${{ github.event.pull_request.number || inputs.pull_request_number }}
9292
run: |
9393
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_contributing_guidelines_acceptance" $PR_NUMBER

.github/workflows/check_licenses.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
# Checkout the repository:
6060
- name: 'Checkout repository'
6161
# Pin action to full length commit SHA
62-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
62+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6363
with:
6464
# Specify whether to remove untracked files before checking out the repository:
6565
clean: false
@@ -81,7 +81,7 @@ jobs:
8181
# Install Node.js:
8282
- name: 'Install Node.js'
8383
# Pin action to full length commit SHA
84-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
84+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
8585
with:
8686
node-version: '20' # 'lts/*'
8787
timeout-minutes: 5
@@ -128,7 +128,7 @@ jobs:
128128
# Upload the log file:
129129
- name: 'Upload log file'
130130
# Pin action to full length commit SHA
131-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
131+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
132132
if: always()
133133
with:
134134
# Define a name for the uploaded artifact:

.github/workflows/check_required_files.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,14 @@ jobs:
7373
# Get list of added files:
7474
- name: 'Get list of added files'
7575
id: added-files
76+
env:
77+
GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
78+
PR_NUMBER: ${{ inputs.pull_request_number }}
7679
run: |
7780
page=1
7881
files=""
7982
while true; do
80-
new_files=$(curl -s -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer ${{ secrets.STDLIB_BOT_GITHUB_TOKEN
81-
}}" "https://api.github.com/repos/stdlib-js/stdlib/pulls/${{ inputs.pull_request_number }}/files?page=$page&per_page=100" | jq -r '.[] | select(.status == "added") | .filename')
83+
new_files=$(curl -s -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/stdlib-js/stdlib/pulls/$PR_NUMBER/files?page=$page&per_page=100" | jq -r '.[] | select(.status == "added") | .filename')
8284
if [ -z "$new_files" ]; then
8385
break
8486
fi

.github/workflows/cleanup_coverage.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
# Delete the 'pr-<number>' branch from the 'stdlib-js/www-test-code-coverage' repository:
4444
- name: 'Delete coverage branch for PR'
4545
env:
46-
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
46+
REPO_GITHUB_TOKEN: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
4747
PR_NUMBER: ${{ github.event.pull_request.number }}
4848
run: |
4949
curl -X DELETE -H "Authorization: token $REPO_GITHUB_TOKEN" \
@@ -55,23 +55,23 @@ jobs:
5555
# Pin action to full length commit SHA
5656
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5757
with:
58-
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
58+
github-token: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
5959
script: |
6060
const prNumber = context.payload.pull_request.number;
6161
const { data: comments } = await github.rest.issues.listComments({
62-
owner: context.repo.owner,
63-
repo: context.repo.repo,
64-
issue_number: prNumber,
62+
'owner': context.repo.owner,
63+
'repo': context.repo.repo,
64+
'issue_number': prNumber
6565
});
6666
const coverageComment = comments.find( comment => comment.body && comment.body.includes( '## Coverage Report' ) );
6767
if ( coverageComment ) {
6868
// Replace URLs with plain text in the coverage report comment body:
6969
const updatedBody = coverageComment.body.replace( /<a href="[^"]+">([^<]+)<\/a>/g, '$1' );
7070
await github.rest.issues.updateComment({
71-
owner: context.repo.owner,
72-
repo: context.repo.repo,
73-
comment_id: coverageComment.id,
74-
body: updatedBody,
71+
'owner': context.repo.owner,
72+
'repo': context.repo.repo,
73+
'comment_id': coverageComment.id,
74+
'body': updatedBody
7575
});
7676
} else {
7777
console.log( 'No Coverage Report comment found.' );

0 commit comments

Comments
 (0)