{"language": "Python", "id": 104, "repo_owner": "deepchecks", "repo_name": "deepchecks", "head_branch": "main", "workflow_name": "Code Style", "workflow_filename": "lint.yml", "workflow_path": ".github/workflows/lint.yml", "contributor": "manijhariya", "sha_fail": "31c3e1dfba76d6e90b5580da2f80fe4b12e6cb5c", "sha_success": "dabfee7048e94ef6a7c8a89159a7ddb887eeacbb", "workflow": "# ----------------------------------------------------------------------------\n# Copyright (C) 2021-2023 Deepchecks (https://www.deepchecks.com)\n#\n# This file is part of Deepchecks.\n# Deepchecks is distributed under the terms of the GNU Affero General\n# Public License (version 3 or later).\n# You should have received a copy of the GNU Affero General Public License\n# along with Deepchecks. If not, see .\n# ----------------------------------------------------------------------------\n#\nname: Code Style\n\non:\n push:\n branches: [ main ]\n pull_request: \n branches: [ main, nlp-base]\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}\n cancel-in-progress: true\n\nenv:\n DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: \"true\"\n\njobs:\n pylint:\n runs-on: ubuntu-latest\n\n\n steps:\n - uses: actions/checkout@v2\n - name: Set up Python 3.9\n uses: actions/setup-python@v2\n with:\n python-version: 3.9\n\n - name: Run Pylint\n run: make pylint\n - name: Check import order\n uses: jamescurtin/isort-action@master\n with:\n sortPaths: deepchecks/\n docstring:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v2\n - name: Set up Python 3.9\n uses: actions/setup-python@v2\n with:\n python-version: 3.9\n - name: Run Pydocstyle\n run: make docstring\n\n license-check:\n runs-on: ubuntu-latest\n \n needs: docstring\n \n steps:\n - uses: actions/checkout@v2\n - name: Set up Python 3.9\n uses: actions/setup-python@v2\n with:\n python-version: 3.9\n - name: Run License eye\n run: make license-check\n", "logs": [{"step_name": "pylint/5_Check import order.txt", "log": "##[group]Run jamescurtin/isort-action@master\nwith:\n sortPaths: deepchecks/\n isortVersion: latest\n configuration: --check-only --diff\nenv:\n DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: true\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n##[endgroup]\n##[group]Run $GITHUB_ACTION_PATH/bin/ensure_python\n\u001b[36;1m$GITHUB_ACTION_PATH/bin/ensure_python\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: true\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n##[endgroup]\n##[group]Run $GITHUB_ACTION_PATH/bin/install_packages latest \n\u001b[36;1m$GITHUB_ACTION_PATH/bin/install_packages latest \u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: true\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n##[endgroup]\n##[group]Install isort\nInstalling latest version of isort\nCollecting isort[pipfile_deprecated_finder,requirements_deprecated_finder]\n Downloading isort-5.12.0-py3-none-any.whl (91 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 91.2/91.2 kB 4.2 MB/s eta 0:00:00\nCollecting pip-api (from isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading pip_api-0.0.30-py3-none-any.whl (111 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 111.6/111.6 kB 8.3 MB/s eta 0:00:00\nCollecting pipreqs (from isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading pipreqs-0.4.13-py2.py3-none-any.whl (33 kB)\nCollecting pip-shims>=0.5.2 (from isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading pip_shims-0.7.3-py2.py3-none-any.whl (35 kB)\nCollecting requirementslib (from isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading requirementslib-3.0.0-py2.py3-none-any.whl.metadata (13 kB)\nRequirement already satisfied: pip>=20 in /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages (from pip-shims>=0.5.2->isort[pipfile_deprecated_finder,requirements_deprecated_finder]) (23.0.1)\nCollecting packaging (from pip-shims>=0.5.2->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading packaging-23.2-py3-none-any.whl.metadata (3.2 kB)\nRequirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages (from pip-shims>=0.5.2->isort[pipfile_deprecated_finder,requirements_deprecated_finder]) (58.1.0)\nCollecting wheel (from pip-shims>=0.5.2->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB)\nCollecting docopt (from pipreqs->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading docopt-0.6.2.tar.gz (25 kB)\n Installing build dependencies: started\n Installing build dependencies: finished with status 'done'\n Getting requirements to build wheel: started\n Getting requirements to build wheel: finished with status 'done'\n Preparing metadata (pyproject.toml): started\n Preparing metadata (pyproject.toml): finished with status 'done'\nCollecting yarg (from pipreqs->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading yarg-0.1.9-py2.py3-none-any.whl (19 kB)\nCollecting distlib>=0.2.8 (from requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading distlib-0.3.7-py2.py3-none-any.whl.metadata (5.1 kB)\nCollecting pep517>=0.5.0 (from requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading pep517-0.13.1-py3-none-any.whl.metadata (4.1 kB)\nCollecting pip>=20 (from pip-shims>=0.5.2->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading pip-23.3.1-py3-none-any.whl.metadata (3.5 kB)\nCollecting platformdirs (from requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading platformdirs-4.1.0-py3-none-any.whl.metadata (11 kB)\nCollecting plette[validation] (from requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading plette-0.4.4-py2.py3-none-any.whl (12 kB)\nCollecting pydantic (from requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading pydantic-2.5.2-py3-none-any.whl.metadata (65 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 65.2/65.2 kB 8.9 MB/s eta 0:00:00\nCollecting requests (from requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)\nCollecting tomlkit>=0.5.3 (from requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading tomlkit-0.12.3-py3-none-any.whl.metadata (2.7 kB)\nCollecting tomli>=1.1.0 (from pep517>=0.5.0->requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading tomli-2.0.1-py3-none-any.whl (12 kB)\nCollecting cerberus (from plette[validation]->requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading Cerberus-1.3.5-py3-none-any.whl.metadata (6.0 kB)\nCollecting annotated-types>=0.4.0 (from pydantic->requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)\nCollecting pydantic-core==2.14.5 (from pydantic->requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading pydantic_core-2.14.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.5 kB)\nCollecting typing-extensions>=4.6.1 (from pydantic->requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading typing_extensions-4.8.0-py3-none-any.whl.metadata (3.0 kB)\nCollecting charset-normalizer<4,>=2 (from requests->requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)\nCollecting idna<4,>=2.5 (from requests->requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB)\nCollecting urllib3<3,>=1.21.1 (from requests->requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB)\nCollecting certifi>=2017.4.17 (from requests->requirementslib->isort[pipfile_deprecated_finder,requirements_deprecated_finder])\n Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB)\nDownloading requirementslib-3.0.0-py2.py3-none-any.whl (96 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 96.7/96.7 kB 8.0 MB/s eta 0:00:00\nDownloading distlib-0.3.7-py2.py3-none-any.whl (468 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 468.9/468.9 kB 10.1 MB/s eta 0:00:00\nDownloading pep517-0.13.1-py3-none-any.whl (19 kB)\nDownloading pip-23.3.1-py3-none-any.whl (2.1 MB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 2.1/2.1 MB 17.3 MB/s eta 0:00:00\nDownloading tomlkit-0.12.3-py3-none-any.whl (37 kB)\nDownloading packaging-23.2-py3-none-any.whl (53 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 53.0/53.0 kB 15.6 MB/s eta 0:00:00\nDownloading platformdirs-4.1.0-py3-none-any.whl (17 kB)\nDownloading pydantic-2.5.2-py3-none-any.whl (381 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 381.9/381.9 kB 21.0 MB/s eta 0:00:00\nDownloading pydantic_core-2.14.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 2.1/2.1 MB 29.9 MB/s eta 0:00:00\nDownloading requests-2.31.0-py3-none-any.whl (62 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 62.6/62.6 kB 18.9 MB/s eta 0:00:00\nUsing cached wheel-0.42.0-py3-none-any.whl (65 kB)\nDownloading annotated_types-0.6.0-py3-none-any.whl (12 kB)\nDownloading certifi-2023.11.17-py3-none-any.whl (162 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 162.5/162.5 kB 33.6 MB/s eta 0:00:00\nDownloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 142.3/142.3 kB 36.6 MB/s eta 0:00:00\nDownloading idna-3.6-py3-none-any.whl (61 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 61.6/61.6 kB 19.5 MB/s eta 0:00:00\nDownloading typing_extensions-4.8.0-py3-none-any.whl (31 kB)\nDownloading urllib3-2.1.0-py3-none-any.whl (104 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 104.6/104.6 kB 29.6 MB/s eta 0:00:00\nDownloading Cerberus-1.3.5-py3-none-any.whl (30 kB)\nBuilding wheels for collected packages: docopt\n Building wheel for docopt (pyproject.toml): started\n Building wheel for docopt (pyproject.toml): finished with status 'done'\n Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13706 sha256=29c03dca51f57ce29e3477c3d0f4958f94387b06a456f0fb38fa4f2f840b837c\n Stored in directory: /home/runner/.cache/pip/wheels/70/4a/46/1309fc853b8d395e60bafaf1b6df7845bdd82c95fd59dd8d2b\nSuccessfully built docopt\nInstalling collected packages: docopt, distlib, cerberus, wheel, urllib3, typing-extensions, tomlkit, tomli, platformdirs, pip, packaging, isort, idna, charset-normalizer, certifi, annotated-types, requests, pydantic-core, plette, pip-shims, pip-api, pep517, yarg, pydantic, requirementslib, pipreqs\n Attempting uninstall: pip\n Found existing installation: pip 23.0.1\n Uninstalling pip-23.0.1:\n Successfully uninstalled pip-23.0.1\nSuccessfully installed annotated-types-0.6.0 cerberus-1.3.5 certifi-2023.11.17 charset-normalizer-3.3.2 distlib-0.3.7 docopt-0.6.2 idna-3.6 isort-5.12.0 packaging-23.2 pep517-0.13.1 pip-23.3.1 pip-api-0.0.30 pip-shims-0.7.3 pipreqs-0.4.13 platformdirs-4.1.0 plette-0.4.4 pydantic-2.5.2 pydantic-core-2.14.5 requests-2.31.0 requirementslib-3.0.0 tomli-2.0.1 tomlkit-0.12.3 typing-extensions-4.8.0 urllib3-2.1.0 wheel-0.42.0 yarg-0.1.9\n##[endgroup]\n##[group]Run echo \"::add-matcher::$GITHUB_ACTION_PATH/isort-matcher.json\"\n\u001b[36;1mecho \"::add-matcher::$GITHUB_ACTION_PATH/isort-matcher.json\"\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: true\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n##[endgroup]\n##[group]Run $GITHUB_ACTION_PATH/bin/run_isort --check-only --diff deepchecks/\n\u001b[36;1m$GITHUB_ACTION_PATH/bin/run_isort --check-only --diff deepchecks/\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n DISABLE_DEEPCHECKS_ANONYMOUS_TELEMETRY: true\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n##[endgroup]\nRunning isort --check-only --diff deepchecks/\n##[error]ERROR: /home/runner/work/deepchecks/deepchecks/deepchecks/nlp/utils/text_embeddings.py Imports are incorrectly sorted and/or formatted.\n##[error]Process completed with exit code 1.\n"}], "diff": "diff --git a/deepchecks/nlp/utils/text_embeddings.py b/deepchecks/nlp/utils/text_embeddings.py\nindex 758d3554b..85fc5ad47 100644\n--- a/deepchecks/nlp/utils/text_embeddings.py\n+++ b/deepchecks/nlp/utils/text_embeddings.py\n@@ -9,8 +9,8 @@\n # ----------------------------------------------------------------------------\n #\n \"\"\"Utils module for calculating embeddings for text.\"\"\"\n-import sys\n import re\n+import sys\n import warnings\n from itertools import islice\n from typing import Optional\n", "difficulty": 0, "changed_files": ["deepchecks/nlp/utils/text_embeddings.py"], "commit_link": "https://github.com/deepchecks/deepchecks/tree/31c3e1dfba76d6e90b5580da2f80fe4b12e6cb5c"}