8000 Merge remote-tracking branch 'origin/production' into deno · stdlib-js/ndarray-base-every@01033e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 01033e0

Browse files
committed
Merge remote-tracking branch 'origin/production' into deno
2 parents 8b21a7c + 336ba3e commit 01033e0

File tree

332 files changed

+173894
-8
lines changed
  • .github
  • benchmark
  • dist
  • docs
  • examples
  • include/stdlib/ndarray/base
  • lib
  • scripts
  • src
  • Some content is hidden

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

    332 files changed

    +173894
    -8
    lines changed

    .editorconfig

    Lines changed: 180 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,180 @@
    1+
    #/
    2+
    # @license Apache-2.0
    3+
    #
    4+
    # Copyright (c) 2017 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+
    # EditorConfig configuration file (see <http://editorconfig.org/>).
    20+
    21+
    # Indicate that this file is a root-level configuration file:
    22+
    root = true
    23+
    24+
    # Set properties for all files:
    25+
    [*]
    26+
    end_of_line = lf
    27+
    charset = utf-8
    28+
    trim_trailing_whitespace = true
    29+
    insert_final_newline = true
    30+
    31+
    # Set properties for JavaScript files:
    32+
    [*.{js,js.txt}]
    33+
    indent_style = tab
    34+
    35+
    # Set properties for JavaScript ES module files:
    36+
    [*.{mjs,mjs.txt}]
    37+
    indent_style = tab
    38+
    39+
    # Set properties for JavaScript CommonJS files:
    40+
    [*.{cjs,cjs.txt}]
    41+
    indent_style = tab
    42+
    43+
    # Set properties for JSON files:
    44+
    [*.{json,json.txt}]
    45+
    indent_style = space
    46+
    indent_size = 2
    47+
    48+
    # Set properties for `cli_opts.json` files:
    49+
    [cli_opts.json]
    50+
    indent_style = tab
    51+
    52+
    # Set properties for TypeScript files:
    53+
    [*.ts]
    54+
    indent_style = tab
    55+
    56+
    # Set properties for Python files:
    57+
    [*.{py,py.txt}]
    58+
    indent_style = space
    59+
    indent_size = 4
    60+
    61+
    # Set properties for Julia files:
    62+
    [*.{jl,jl.txt}]
    63+
    indent_style = tab
    64+
    65+
    # Set properties for R files:
    66+
    [*.{R,R.txt}]
    67+
    indent_style = tab
    68+
    69+
    # Set properties for C files:
    70+
    [*.{c,c.txt}]
    71+
    indent_style = tab
    72+
    73+
    # Set properties for C header files:
    74+
    [*.{h,h.txt}]
    75+
    indent_style = tab
    76+
    77+
    # Set properties for C++ files:
    78+
    [*.{cpp,cpp.txt}]
    79+
    indent_style = tab
    80+
    81+
    # Set properties for C++ header files:
    82+
    [*.{hpp,hpp.txt}]
    83+
    indent_style = tab
    84+
    85+
    # Set properties for Fortran files:
    86+
    [*.{f,f.txt}]
    87+
    indent_style = space
    88+
    indent_size = 2
    89+
    90+
    # Set properties for shell files:
    91+
    [*.{sh,sh.txt}]
    92+
    indent_style = tab
    93+
    94+
    # Set properties for AWK files:
    95+
    [*.{awk,awk.txt}]
    96+
    indent_style = tab
    97+
    98+
    # Set properties for HTML files:
    99+
    [*.{html,html.txt}]
    100+
    indent_style = tab
    101+
    tab_width = 2
    102+
    103+
    # Set properties for XML files:
    104+
    [*.{xml,xml.txt}]
    105+
    indent_style = tab
    106+
    tab_width = 2
    107+
    108+
    # Set properties for CSS files:
    109+
    [*.{css,css.txt}]
    110+
    indent_style = tab
    111+
    112+
    # Set properties for Makefiles:
    113+
    [Makefile]
    114+
    indent_style = tab
    115+
    116+
    [*.{mk,mk.txt}]
    117+
    indent_style = tab
    118+
    119+
    # Set properties for Markdown files:
    120+
    [*.{md,md.txt}]
    121+
    indent_style = space
    122+
    indent_size = 4
    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.
    124+
    125+
    # Set properties for `usage.txt` files:
    126+
    [usage.txt]
    127+
    indent_style = space
    128+
    indent_size = 2
    129+
    130+
    # Set properties for `repl.txt` files:
    131+
    [repl.txt]
    132+
    indent_style = space
    133+
    indent_size = 4
    134+
    135+
    # Set properties for `package.json` files:
    136+
    [package.{json,json.txt}]
    137+
    indent_style = space
    138+
    indent_size = 2
    139+
    140+
    # Set properties for `datapackage.json` files:
    141+
    [datapackage.json]
    142+
    indent_style = space
    143+
    indent_size = 2
    144+
    145+
    # Set properties for `manifest.json` files:
    146+
    [manifest.json]
    147+
    indent_style = space
    148+
    indent_size = 2
    149+
    150+
    # Set properties for `tsconfig.json` files:
    151+
    [tsconfig.json]
    152+
    indent_style = space
    153+
    indent_size = 2
    154+
    155+
    # Set properties for LaTeX files:
    156+
    [*.{tex,tex.txt}]
    157+
    indent_style = tab
    158+
    159+
    # Set properties for LaTeX Bibliography files:
    160+
    [*.{bib,bib.txt}]
    161+
    indent_style = tab
    162+
    163+
    # Set properties for YAML files:
    164+
    [*.{yml,yml.txt}]
    165+
    indent_style = space
    166+
    indent_size = 2
    167+
    168+
    # Set properties for GYP files:
    169+
    [binding.gyp]
    170+
    indent_style = space
    171+
    indent_size = 2
    172+
    173+
    [*.gypi]
    174+
    indent_style = space
    175+
    indent_size = 2
    176+
    177+
    # Set properties for citation files:
    178+
    [*.{cff,cff.txt}]
    179+
    indent_style = space
    180+
    indent_size = 2

    .eslintrc.js

    Lines changed: 1 addition & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1 @@
    1+
    /* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */

    .gitattributes

    Lines changed: 66 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,66 @@
    1+
    #/
    2+
    # @license Apache-2.0
    3+
    #
    4+
    # Copyright (c) 2017 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+
    # Configuration file which assigns attributes to pathnames.
    20+
    #
    21+
    # [1]: https://git-scm.com/docs/gitattributes
    22+
    23+
    # Automatically normalize the line endings of any committed text files:
    24+
    * text=auto
    25+
    26+
    # Override line endings for certain files on checkout:
    27+
    *.crlf.csv text eol=crlf
    28+
    29+
    # Denote that certain files are binary and should not be modified:
    30+
    *.png binary
    31+
    *.jpg binary
    32+
    *.jpeg binary
    33+
    *.gif binary
    34+
    *.ico binary
    35+
    *.gz binary
    36+
    *.zip binary
    37+
    *.7z binary
    38+
    *.mp3 binary
    39+
    *.mp4 binary
    40+
    *.mov binary
    41+
    42+
    # Override what is considered "vendored" by GitHub's linguist:
    43+
    /lib/node_modules/** -linguist-vendored -linguist-generated
    44+
    45+
    # Configure directories which should *not* be included in GitHub language statistics:
    46+
    /deps/** linguist-vendored
    47+
    /dist/** linguist-generated
    48+
    /workshops/** linguist-vendored
    49+
    50+
    benchmark/** linguist-vendored
    51+
    docs/* linguist-documentation
    52+
    etc/** linguist-vendored
    53+
    examples/** linguist-documentation
    54+
    scripts/** linguist-vendored
    55+
    test/** linguist-vendored
    56+
    tools/** linguist-vendored
    57+
    58+
    # Configure files which should *not* be included in GitHub language statistics:
    59+
    Makefile linguist-vendored
    60+
    *.mk linguist-vendored
    61+
    *.jl linguist-vendored
    62+
    *.py linguist-vendored
    63+
    *.R linguist-vendored
    64+
    65+
    # Configure files which should be included in GitHub language statistics:
    66+
    docs/types/*.d.ts -linguist-documentation

    .github/PULL_REQUEST_TEMPLATE.md

    Lines changed: 7 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,7 @@
    1+
    <!-- ----------^ Click "Preview"! -->
    2+
    3+
    We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/every) of the main repository where we’ll review and provide feedback.
    4+
    5+
    If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib.
    6+
    7+
    We look forward to receiving your contribution! :smiley:

    .github/workflows/benchmark.yml

    Lines changed: 64 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,64 @@
    1+
    #/
    2+
    # @license Apache-2.0
    3+
    #
    4+
    # Copyright (c) 2021 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: benchmark
    21+
    22+
    # Workflow triggers:
    23+
    on:
    24+
    # Allow the workflow to be manually run:
    25+
    workflow_dispatch:
    26+
    27+
    # Workflow jobs:
    28+
    jobs:
    29+
    30+
    # Define a job to run benchmarks:
    31+
    benchmark:
    32+
    33+
    # Define a display name:
    34+
    name: 'Run benchmarks'
    35+
    36+
    # Define the type of virtual host machine:
    37+
    runs-on: 'ubuntu-latest'
    38+
    39+
    # Define the sequence of job steps...
    40+
    steps:
    41+
    42+
    # Checkout the repository:
    43+
    - name: 'Checkout repository'
    44+
    # Pin action to full length commit SHA
    45+
    uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
    46+
    47+
    # Install Node.js:
    48+
    - name: 'Install Node.js'
    49+
    # Pin action to full length commit SHA
    50+
    uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
    51+
    with:
    52+
    node-version: 20
    53+
    timeout-minutes: 5
    54+
    55+
    # Install dependencies:
    56+
    - name: 'Install production and development dependencies'
    57+
    run: |
    58+
    npm install || npm install || npm install
    59+
    timeout-minutes: 15
    60+
    61+
    # Run benchmarks:
    62+
    - name: 'Run benchmarks'
    63+
    run: |
    64+
    npm run benchmark

    .github/workflows/cancel.yml

    Lines changed: 57 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -0,0 +1,57 @@
    1+
    #/
    2+
    # @license Apache-2.0
    3+
    #
    4+
    # Copyright (c) 2021 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: cancel
    21+
    22+
    # Workflow triggers:
    23+
    on:
    24+
    # Allow the workflow to be manually run:
    25+
    workflow_dispatch:
    26+
    27+
    # Workflow jobs:
    28+
    jobs:
    29+
    30+
    # Define a job to cancel existing workflow runs:
    31+
    cancel:
    32+
    33+
    # Define a display name:
    34+
    name: 'Cancel workflow runs'
    35+
    36+
    # Define the type of virtual host machine:
    37+
    runs-on: 'ubuntu-latest'
    38+
    39+
    # Time limit:
    40+
    timeout-minutes: 3
    41+
    42+
    # Define the sequence of job steps...
    43+
    steps:
    44+
    45+
    # Cancel existing workflow runs:
    46+
    - name: 'Cancel existing workflow runs'
    47+
    # Pin action to full length commit SHA
    48+
    uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1
    49+
    with:
    50+
    workflow_id: >-
    51+
    benchmark.yml,
    52+
    examples.yml,
    53+
    test.yml,
    54+
    test_coverage.yml,
    55+
    test_install.yml,
    56+
    publish.yml
    57+
    access_token: ${{ github.token }}

    0 commit comments

    Comments
     (0)
    0