Skip to content

Commit

Permalink
ready for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
muyangye committed Sep 9, 2023
2 parents ce658e6 + 312b55b commit c0a2e1b
Show file tree
Hide file tree
Showing 60 changed files with 1,412 additions and 262 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cypress-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/osv-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Pull OSV Scanner Docker image
run: docker pull ghcr.io/google/osv-scanner:latest
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
Expand All @@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
Expand All @@ -64,7 +64,7 @@ jobs:
needs: [python-quality-checks, python-unit-tests, run-format-and-lint-ui]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
python-quality-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python v${{ matrix.python }}
uses: actions/setup-python@v4
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
python-doc-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: clone
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: create working branch & set GitHub config
run: |
Expand Down
7 changes: 4 additions & 3 deletions VULNERABILITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
| OSV URL | CVSS | Ecosystem | Package | Version | Source |
| --- | --- | --- | --- | --- | --- |
| https://osv.dev/GHSA-6mjq-h674-j845 | 6.5 | Maven | io.netty:netty-handler | 4.1.72.Final | pom.xml |
| https://osv.dev/GHSA-mjmj-j48q-9wg2 | 8.3 | Maven | org.yaml:snakeyaml | 1.33 | pom.xml |
| https://osv.dev/GHSA-w596-4wvx-j9j6<br/>https://osv.dev/PYSEC-2022-42969 | 7.5 | PyPI | py | 1.11.0 | streampipes-client-python/poetry.lock |
| https://osv.dev/GHSA-qppv-j76h-2rpx | | PyPI | tornado | 6.3.2 | streampipes-client-python/poetry.lock |
| https://osv.dev/GHSA-j8r2-6x86-q33q<br/>https://osv.dev/PYSEC-2023-74 | 6.1 | PyPI | requests | 2.24.0 | streampipes-wrapper-python/requirements.txt |
| https://osv.dev/GHSA-p8p7-x288-28g6 | 6.1 | npm | @cypress/request | 2.88.11 | ui/package-lock.json |
| https://osv.dev/GHSA-p8p7-x288-28g6 | 6.1 | npm | @cypress/request | 2.88.12 | ui/package-lock.json |
| https://osv.dev/GHSA-ww39-953v-wcq6 | 7.5 | npm | glob-parent | 3.1.0 | ui/package-lock.json |
| https://osv.dev/GHSA-4943-9vgg-gr5r | 6.1 | npm | quill | 1.3.7 | ui/package-lock.json |
| https://osv.dev/GHSA-72xf-g2v4-qvf3 | 6.5 | npm | tough-cookie | 2.5.0 | ui/package-lock.json |
| https://osv.dev/MAL-2022-6662 | | npm | tsconfig-package | 7.0.0 | ui/package-lock.json |
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<plexus-utils.version>3.5.0</plexus-utils.version>
<rdf4j.version>3.7.7</rdf4j.version> <!-- needs to be lower than 4.x.x, see https://github.com/apache/streampipes/issues/1495 -->
<rendersnake.version>1.9.0</rendersnake.version>
<roaster.version>2.28.0.Final</roaster.version>
<roaster.version>2.29.0.Final</roaster.version>
<siddhi.version>5.1.27</siddhi.version>
<simple-java-mail.version>7.8.0</simple-java-mail.version>
<slf4j.version>2.0.6</slf4j.version>
Expand Down Expand Up @@ -144,7 +144,7 @@
<bcprov.version>1.70</bcprov.version>
<bcpkix.version>1.69</bcpkix.version>
<classindex.version>3.9</classindex.version>
<checker-qual.version>3.28.0</checker-qual.version>
<checker-qual.version>3.38.0</checker-qual.version>
<commons-math3.version>3.6.1</commons-math3.version>
<commons-compress.version>1.23.0</commons-compress.version>
<commons-text.version>1.10.0</commons-text.version>
Expand Down Expand Up @@ -185,7 +185,6 @@
<!-- Connect Dependencies-->
<animal-sniffer-annotations.version>1.17</animal-sniffer-annotations.version>
<antlr4-runtime.version>4.13.0</antlr4-runtime.version>
<checker-qual.version>2.5.2</checker-qual.version>
<commons-collections4.version>4.4</commons-collections4.version>
<eclipse.milo.version>0.6.9</eclipse.milo.version>
<netty.version>4.1.72.Final</netty.version>
Expand Down
26 changes: 18 additions & 8 deletions streampipes-client-python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions streampipes-client-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ interrogate = { version = "1.5.0", extras = ["png"] }
isort = "5.12.0"
mypy = "1.5.0"
ruff = "0.0.280"
pre-commit = "3.3.0"
pre-commit = "3.4.0"
pytest = "7.4.0"
pytest-cov = "4.1.0"
pyupgrade = "3.10.1"
Expand All @@ -89,7 +89,7 @@ mkdocs-gen-files = "0.5.0"
mkdocs-jupyter = "0.24.0"
mkdocs-literate-nav = "0.6.0"
mkdocs-material = "9.2.5"
mkdocstrings = { version = "0.22.0", extras = ["python"] }
mkdocstrings = { version = "0.23.0", extras = ["python"] }
numpydoc = "1.5.0"
pytkdocs = { version = "0.16.1", extras = ["numpy-style"] }

Expand Down

This file was deleted.

Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@

## Description

This processor rounds numeric values to the given digit/precision.
This processor rounds numeric values to the given decimal places.
It supports multiple rounding strategies.

***

## Required input

This processor requires an event that provides numbers.
This processor requires an event that provides numerical properties.

***

Expand All @@ -44,13 +45,20 @@ Select which fields of the event should be rounded.

### Number of Digits

Specify the number of digits after the decimal point to round/keep, e.g., if number is 2.8935 and #digits is 3,
Specify the number of digits after the decimal point to round/keep, e.g., if number is 2.8935 and 'digits' is 3,
the result will be 2.894.

### Mode of Rounding

Specify the mode of rounding. All supported modes
are [here](https://docs.oracle.com/javase/8/docs/api/java/math/RoundingMode.html).
Specify the mode of rounding.
Supported rounding modes:
* `UP`: Rounding mode to round away from zero. Always increments the digit prior to a non-zero discarded fraction. Note that this rounding mode never decreases the magnitude of the calculated value.
* `DOWN`: Rounding mode to round towards zero. Never increments the digit prior to a discarded fraction (i.e., truncates). Note that this rounding mode never increases the magnitude of the calculated value.
* `CEILING`: Rounding mode to round towards positive infinity. If the result is positive, behaves as for `UP`; if negative, behaves as for `DOWN`. Note that this rounding mode never decreases the calculated value
* `FLOOR`: Rounding mode to round towards negative infinity. If the result is positive, behave as for `DOWN`; if negative, behave as for `UP`. Note that this rounding mode never increases the calculated value.
* `HALF_UP`: Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round up. Behaves as for `UP` if the discarded fraction is ≥ 0.5; otherwise, behaves as for `DOWN`.
* `HALF_DOWN`: Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round down. Behaves as for `UP` if the discarded fraction is > 0.5; otherwise, behaves as for `DOWN`.
* `HALF_EVEN`: Rounding mode to round towards the "nearest neighbor" unless both neighbors are equidistant, in which case, round towards the even neighbor. Behaves as for `HALF_UP` if the digit to the left of the discarded fraction is odd; behaves as for `HALF_DOWN` if it's even. Note that this is the rounding mode that statistically minimizes cumulative error when applied repeatedly over a sequence of calculations.

## Output

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c0a2e1b

Please sign in to comment.