diff --git a/.github/workflows/snyk-scan.yaml b/.github/workflows/snyk-scan.yaml index 51fa73cd..dbf84f6c 100644 --- a/.github/workflows/snyk-scan.yaml +++ b/.github/workflows/snyk-scan.yaml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.10' - name: Check changed Deps files uses: tj-actions/changed-files@v35 @@ -42,12 +42,12 @@ jobs: sed '/^\.\//d; /^https:\/\//d; /^flake8/d; /^black==/d' requirements.txt > t.txt \ && mv t.txt requirements.txt - python3.8 -m pip install -r requirements.txt && cd $topdir + python3.10 -m pip install -r requirements.txt && cd $topdir snyk test \ -d \ --file=$file \ - --command=python3.8 \ + --command=python3.10 \ --skip-unresolved \ --package-manager=pip done @@ -66,7 +66,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.10' - name: Monitor Python dependencies env: @@ -80,12 +80,12 @@ jobs: sed '/^\.\//d; /^https:\/\//d; /^flake8/d; /^black==/d' requirements.txt > t.txt \ && mv t.txt requirements.txt - python3.8 -m pip install -r requirements.txt && cd $topdir + python3.10 -m pip install -r requirements.txt && cd $topdir snyk monitor \ -d \ --file=$file \ - --command=python3.8 \ + --command=python3.10 \ --skip-unresolved \ --package-manager=pip \ --remote-repo-url=wave-apps/${{ steps.extract_ref.outputs.ref }} \ diff --git a/churn-risk/.snyk b/churn-risk/.snyk new file mode 100644 index 00000000..1fe908a7 --- /dev/null +++ b/churn-risk/.snyk @@ -0,0 +1,9 @@ +ignore: + SNYK-PYTHON-H2O-6125908: + - "*": + reason: Not fixed version for h2o yet + expires: 2025-01-01T00:00:00.000Z + snyk:lic:pip:certifi:MPL-2.0: + - "*": + reason: False positive + expires: 2025-01-01T00:00:00.000Z diff --git a/churn-risk/app.toml b/churn-risk/app.toml index da714259..00248a2d 100644 --- a/churn-risk/app.toml +++ b/churn-risk/app.toml @@ -1,6 +1,6 @@ [App] Name = "ai.h2o.wave.churn-risk" -Version = "1.1.0" +Version = "1.2.0" Title = "Telco Churn Risk" Description = "Demo to predict churn risk of telco customers and display top reason codes." LongDescription = "about.md" diff --git a/churn-risk/requirements.txt b/churn-risk/requirements.txt index 8cb2308d..d8e68b5d 100644 --- a/churn-risk/requirements.txt +++ b/churn-risk/requirements.txt @@ -1,8 +1,9 @@ -pandas==1.1.0 -pygments==2.7.1 +pandas==1.5.3 +pygments==2.17.2 h2o-wave<1.0 h2o-wave-ml>=0.7.0 https://h2o-release.s3.amazonaws.com/h2o/rel-zizler/7/Python/h2o-3.34.0.7-py2.py3-none-any.whl +setuptools==65.5.1 black==20.8b1 flake8-black==0.2.1 diff --git a/credit-risk/.snyk b/credit-risk/.snyk new file mode 100644 index 00000000..1fe908a7 --- /dev/null +++ b/credit-risk/.snyk @@ -0,0 +1,9 @@ +ignore: + SNYK-PYTHON-H2O-6125908: + - "*": + reason: Not fixed version for h2o yet + expires: 2025-01-01T00:00:00.000Z + snyk:lic:pip:certifi:MPL-2.0: + - "*": + reason: False positive + expires: 2025-01-01T00:00:00.000Z diff --git a/credit-risk/app.toml b/credit-risk/app.toml index a7d4d65e..5065adf8 100644 --- a/credit-risk/app.toml +++ b/credit-risk/app.toml @@ -1,6 +1,6 @@ [App] Name = "ai.h2o.wave.credit-risk" -Version = "1.1.0" +Version = "1.2.0" Title = "Credit Card Risk" Description = "Demo for business users to review and update model predictions." LongDescription = "about.md" diff --git a/credit-risk/requirements.txt b/credit-risk/requirements.txt index 61ec1d4a..c7663bf9 100644 --- a/credit-risk/requirements.txt +++ b/credit-risk/requirements.txt @@ -1,11 +1,12 @@ -numpy==1.19.1 -pandas==1.1.0 +numpy==1.26.4 +pandas==1.5.3 plotly==4.10.0 -pygments==2.7.1 +pygments==2.17.2 h2o-wave<1.0 h2o-wave-ml>=0.7.0 -requests -tabulate +requests==2.31.0 +tabulate==0.9.0 colorama>=0.3.8 -future +future==0.18.3 +setuptools==65.5.1 https://h2o-release.s3.amazonaws.com/h2o/rel-zizler/7/Python/h2o-3.34.0.7-py2.py3-none-any.whl diff --git a/credit-risk/src/app.py b/credit-risk/src/app.py index 5c7e93e2..54e9374f 100644 --- a/credit-risk/src/app.py +++ b/credit-risk/src/app.py @@ -160,7 +160,7 @@ async def render_customer_page(q: Q): ) # summary - top_feature = contribs.idxmin(axis=1) if approve else contribs.idxmax(axis=1) + top_feature = contribs.idxmin(axis=0) if approve else contribs.idxmax(axis=0) explanation_data = { 'will_or_will_not': 'will' if approve else 'will not', 'top_contributing_feature': top_feature, diff --git a/explaining-ratings/.snyk b/explaining-ratings/.snyk new file mode 100644 index 00000000..041b3462 --- /dev/null +++ b/explaining-ratings/.snyk @@ -0,0 +1,5 @@ +ignore: + snyk:lic:pip:certifi:MPL-2.0: + - "*": + reason: False positive + expires: 2025-01-01T00:00:00.000Z diff --git a/explaining-ratings/app.toml b/explaining-ratings/app.toml index 96caa819..3a90e64e 100644 --- a/explaining-ratings/app.toml +++ b/explaining-ratings/app.toml @@ -1,6 +1,6 @@ [App] Name = "ai.h2o.wave.explaining-ratings" -Version = "1.1.0" +Version = "1.2.0" Title = "Explainable Hotel Ratings" Description = "Demo to visually explore and compare predictions from text data." LongDescription = "about.md" diff --git a/explaining-ratings/requirements.txt b/explaining-ratings/requirements.txt index 2e822ec0..efe15539 100644 --- a/explaining-ratings/requirements.txt +++ b/explaining-ratings/requirements.txt @@ -1,4 +1,6 @@ -pandas==1.1.0 +pandas==1.5.3 h2o-wave<1.0 -matplotlib -wordcloud \ No newline at end of file +matplotlib==3.8.3 +wordcloud==1.9.3 +numpy==1.26.4 +setuptools==65.5.1 \ No newline at end of file diff --git a/guess-the-number/.snyk b/guess-the-number/.snyk new file mode 100644 index 00000000..041b3462 --- /dev/null +++ b/guess-the-number/.snyk @@ -0,0 +1,5 @@ +ignore: + snyk:lic:pip:certifi:MPL-2.0: + - "*": + reason: False positive + expires: 2025-01-01T00:00:00.000Z diff --git a/guess-the-number/app.toml b/guess-the-number/app.toml index 5e1773a4..a801fb61 100644 --- a/guess-the-number/app.toml +++ b/guess-the-number/app.toml @@ -1,6 +1,6 @@ [App] Name = "ai.h2o.wave.h2o-guess-the-number" -Version = "1.1.0" +Version = "1.2.0" Title = "Guess the Number" Description = "Prove you’re smarter than AI with this simple game." LongDescription = "about.md" diff --git a/guess-the-number/requirements.txt b/guess-the-number/requirements.txt index 52d0f8e5..79dce6cd 100644 --- a/guess-the-number/requirements.txt +++ b/guess-the-number/requirements.txt @@ -1,12 +1,2 @@ -certifi==2020.12.5; python_version >= "3.6" and python_full_version >= "3.6.1" -click==7.1.2; python_full_version >= "3.6.1" -h11==0.11.0; python_version >= "3.6" and python_full_version >= "3.6.1" +certifi==2024.2.2 h2o-wave<1.0 -httpcore==0.12.2; python_version >= "3.6" and python_full_version >= "3.6.1" -httpx==0.16.1; python_version >= "3.6" and python_full_version >= "3.6.1" -idna==2.10; python_version >= "3.6" and python_full_version >= "3.6.1" -rfc3986==1.4.0; python_version >= "3.6" and python_full_version >= "3.6.1" -sniffio==1.2.0; python_version >= "3.6" and python_full_version >= "3.6.1" -starlette==0.13.8; python_version >= "3.6" and python_full_version >= "3.6.1" -typing-extensions==3.7.4.3; python_version < "3.8" and python_full_version >= "3.6.1" -uvicorn==0.12.2; python_full_version >= "3.6.1" diff --git a/insurance-churn-risk/.snyk b/insurance-churn-risk/.snyk new file mode 100644 index 00000000..1fe908a7 --- /dev/null +++ b/insurance-churn-risk/.snyk @@ -0,0 +1,9 @@ +ignore: + SNYK-PYTHON-H2O-6125908: + - "*": + reason: Not fixed version for h2o yet + expires: 2025-01-01T00:00:00.000Z + snyk:lic:pip:certifi:MPL-2.0: + - "*": + reason: False positive + expires: 2025-01-01T00:00:00.000Z diff --git a/insurance-churn-risk/app.toml b/insurance-churn-risk/app.toml index 0e339b58..a57d4d30 100644 --- a/insurance-churn-risk/app.toml +++ b/insurance-churn-risk/app.toml @@ -1,6 +1,6 @@ [App] Name = "ai.h2o.wave.insurance-churn-risk" -Version = "1.1.0" +Version = "1.2.0" Title = "Home Insurance Churn Risk" Description = "Demo to predict churn risk of insurance customers and display top factors." LongDescription = "about.md" diff --git a/insurance-churn-risk/requirements.txt b/insurance-churn-risk/requirements.txt index d5ccb6ff..7c899018 100644 --- a/insurance-churn-risk/requirements.txt +++ b/insurance-churn-risk/requirements.txt @@ -1,7 +1,10 @@ -pandas==1.1.0 -pygments==2.7.1 +certifi==2024.2.2 +pandas==1.5.3 +pygments==2.17.2 h2o-wave<1.0 h2o-wave-ml>=0.6.0 +numpy==1.26.4 +setuptools==65.5.1 https://h2o-release.s3.amazonaws.com/h2o/rel-zizler/7/Python/h2o-3.34.0.7-py2.py3-none-any.whl black==20.8b1 diff --git a/sales-forecasting/.snyk b/sales-forecasting/.snyk new file mode 100644 index 00000000..041b3462 --- /dev/null +++ b/sales-forecasting/.snyk @@ -0,0 +1,5 @@ +ignore: + snyk:lic:pip:certifi:MPL-2.0: + - "*": + reason: False positive + expires: 2025-01-01T00:00:00.000Z diff --git a/sales-forecasting/requirements.txt b/sales-forecasting/requirements.txt index 325f33da..be5cb20a 100644 --- a/sales-forecasting/requirements.txt +++ b/sales-forecasting/requirements.txt @@ -1,22 +1,22 @@ boto3==1.16.23 botocore==1.19.23 -certifi==2020.11.8; python_version >= "3.6" and python_full_version >= "3.6.1" -click==7.1.2; python_full_version >= "3.6.1" -h11==0.11.0; python_version >= "3.6" and python_full_version >= "3.6.1" -h2o-wave<1.0; python_full_version >= "3.6.1" -httpcore==0.12.2; python_version >= "3.6" and python_full_version >= "3.6.1" -httpx==0.16.1; python_version >= "3.6" and python_full_version >= "3.6.1" -idna==2.10; python_version >= "3.6" and python_full_version >= "3.6.1" -jmespath==0.10.0; python_version >= "2.6" and python_full_version < "3.0.0" or python_full_version >= "3.3.0" -numpy==1.19.4; python_version >= "3.6" and python_full_version >= "3.6.1" -pandas==1.1.4; python_full_version >= "3.6.1" -python-dateutil==2.8.1; python_full_version >= "3.6.1" -pytz==2020.4; python_full_version >= "3.6.1" -rfc3986==1.4.0; python_version >= "3.6" and python_full_version >= "3.6.1" +certifi==2024.2.2; python_version >= "3.10" and python_full_version >= "3.10.10" +click==7.1.2; python_full_version >= "3.10.10" +h11==0.11.0; python_version >= "3.10" and python_full_version >= "3.10.10" +h2o-wave<1.0; python_full_version >= "3.10.10" +httpcore==0.15.0; python_version >= "3.10" and python_full_version >= "3.10.10" +httpx==0.23.0; python_version >= "3.10" and python_full_version >= "3.10.10" +idna==2.10; python_version >= "3.10" and python_full_version >= "3.10.10" +jmespath==0.10.0; python_version >= "3.10" and python_full_version >= "3.10.10" +numpy==1.26.4; python_version >= "3.10" and python_full_version >= "3.10.10" +pandas==1.5.3; python_version >= "3.10" and python_full_version >= "3.10.10" +python-dateutil==2.8.1; python_full_version >= "3.10.10" +pytz==2020.4; python_full_version >= "3.10.1" +rfc3986==1.4.0; python_version >= "3.10" and python_full_version >= "3.10.10" s3transfer==0.3.3 -six==1.15.0; python_full_version >= "3.6.1" -sniffio==1.2.0; python_version >= "3.6" and python_full_version >= "3.6.1" -starlette==0.13.8; python_version >= "3.6" and python_full_version >= "3.6.1" -typing-extensions==3.7.4.3; python_version < "3.8" and python_full_version >= "3.6.1" -urllib3==1.26.2; python_version >= "2.7" and python_full_version < "3.0.0" and python_version != "3.4" or python_full_version >= "3.5.0" and python_version < "4" and python_version != "3.4" -uvicorn==0.12.2; python_full_version >= "3.6.1" +six==1.15.0; python_full_version >= "3.10.10" +sniffio==1.2.0; python_version >= "3.10" and python_full_version >= "3.10.10" +starlette==0.37.1; python_version >= "3.10" and python_full_version >= "3.10.10" +typing-extensions==3.10.0; python_version >= "3.10" and python_full_version >= "3.10.10" +urllib3==1.26.18 +uvicorn==0.12.3 diff --git a/shopping-cart-recommendations/.snyk b/shopping-cart-recommendations/.snyk new file mode 100644 index 00000000..041b3462 --- /dev/null +++ b/shopping-cart-recommendations/.snyk @@ -0,0 +1,5 @@ +ignore: + snyk:lic:pip:certifi:MPL-2.0: + - "*": + reason: False positive + expires: 2025-01-01T00:00:00.000Z diff --git a/shopping-cart-recommendations/app.toml b/shopping-cart-recommendations/app.toml index 0106665d..09ca31e7 100644 --- a/shopping-cart-recommendations/app.toml +++ b/shopping-cart-recommendations/app.toml @@ -1,6 +1,6 @@ [App] Name = "ai.h2o.wave.shopping-cart-recommendations" -Version = "1.1.0" +Version = "1.2.0" Title = "Shopping Cart Recommendations" Description = "Demo of a recommendation engine on groceries items." LongDescription="about.md" diff --git a/shopping-cart-recommendations/requirements.txt b/shopping-cart-recommendations/requirements.txt index 62f4f724..c5a20202 100644 --- a/shopping-cart-recommendations/requirements.txt +++ b/shopping-cart-recommendations/requirements.txt @@ -1,2 +1,5 @@ +certifi==2024.2.2 h2o-wave<1.0 -pandas==1.1.4 +pandas==1.5.3 +numpy==1.26.4 +urllib3==1.26.18 diff --git a/template-explore-binary-classification/.snyk b/template-explore-binary-classification/.snyk new file mode 100644 index 00000000..041b3462 --- /dev/null +++ b/template-explore-binary-classification/.snyk @@ -0,0 +1,5 @@ +ignore: + snyk:lic:pip:certifi:MPL-2.0: + - "*": + reason: False positive + expires: 2025-01-01T00:00:00.000Z diff --git a/template-explore-binary-classification/requirements.txt b/template-explore-binary-classification/requirements.txt index 0468ec28..720c4807 100644 --- a/template-explore-binary-classification/requirements.txt +++ b/template-explore-binary-classification/requirements.txt @@ -1,5 +1,11 @@ -h2o_wave==0.20.0 +certifi==2024.2.2 +h2o_wave==0.26.3 toml==0.10.2 loguru==0.6.0 -pandas==1.4.1 -matplotlib==3.5.1 \ No newline at end of file +pandas==1.5.3 +matplotlib==3.5.1 +starlette==0.37.1 +typing-extensions==3.10.0 +httpcore==0.15.0 +httpx==0.23.0 +setuptools==65.5.1 diff --git a/twitter-sentiment/app.toml b/twitter-sentiment/app.toml index d8585c03..d5e212bc 100644 --- a/twitter-sentiment/app.toml +++ b/twitter-sentiment/app.toml @@ -1,6 +1,6 @@ [App] Name = "ai.h2o.wave.twitter-sentiment" -Version = "1.1.0" +Version = "1.2.0" Title = "Twitter Sentiment" Description = "Search keywords on twitter and see the sentiments of the latest tweets." LongDescription="about.md"