prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [BUG][HOTFIX] Add deprecation warning for condition parameter names
  In 0.7 the drift checks were updated to add Cramer's V.
  Thus the previous parameter condition names ("max_psi...  "max_earthmovers...") were renamed.
  Previous parameters should still be re-added with deprecation warnings, for all relevant checks and conditions.
  
  
  </issue>
  <code>
  [start of deepchecks/vision/deprecation_warnings.py]
  1 # ----------------------------------------------------------------------------
  2 # Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com)
  3 #
  4 # This file is part of Deepchecks.
  5 # Deepchecks is distributed under the terms of the GNU Affero General
  6 # Public License (version 3 or later).
  7 # You should have received a copy of the GNU Affero General Public License
  8 # along with Deepchecks.  If not, see <http://www.gnu.org/licenses/>.
  9 # ----------------------------------------------------------------------------
  10 #
  11 """This file changes default 'ignore' action of DeprecationWarnings for specific deprecation messages."""
  12 import warnings
  13 
  14 # Added in version 0.6.2, deprecates max_num_categories in all drift checks
  15 warnings.filterwarnings(
  16     action='always',
  17     message=r'.*max_num_categories.*',
  18     category=DeprecationWarning,
  19     module=r'deepchecks.*'
  20 )
  21 
  22 # Added in 0.7 Warning filters for deprecated functions in deepchecks.tabular.checks
  23 # Should be removed in 0.8
  24 warnings.filterwarnings(
  25     action='once',
  26     message=r'deepchecks.vision.checks.performance is deprecated.*',
  27     category=DeprecationWarning,
  28     module=r'deepchecks.*'
  29 )
  30 
  31 warnings.filterwarnings(
  32     action='once',
  33     message=r'deepchecks.vision.checks.methodology is deprecated.*',
  34     category=DeprecationWarning,
  35     module=r'deepchecks.tabular.checks.methodology.*'
  36 )
  37 
  38 warnings.filterwarnings(
  39     action='once',
  40     message=r'deepchecks.vision.checks.distribution is deprecated.*',
  41     category=DeprecationWarning,
  42     module=r'deepchecks.*'
  43 )
  44 
  45 warnings.filterwarnings(
  46     action='always',
  47     message=r'the integrity_validation suite is deprecated.*',
  48     category=DeprecationWarning,
  49     module=r'deepchecks.*'
  50 )
  51
  [end of deepchecks/vision/deprecation_warnings.py]
  [start of deepchecks/tabular/deprecation_warnings.py]
  1 # ----------------------------------------------------------------------------
  2 # Copyright (C) 2021-2022 Deepchecks (https://www.deepchecks.com)
  3 #
  4 # This file is part of Deepchecks.
  5 # Deepchecks is distributed under the terms of the GNU Affero General
  6 # Public License (version 3 or later).
  7 # You should have received a copy of the GNU Affero General Public License
  8 # along with Deepchecks.  If not, see <http://www.gnu.org/licenses/>.
  9 # ----------------------------------------------------------------------------
  10 #
  11 """This file changes default 'ignore' action of DeprecationWarnings for specific deprecation messages."""
  12 import warnings
  13 
  14 # Added in version 0.6.2, deprecates max_num_categories in all drift checks
  15 warnings.filterwarnings(
  16     action='always',
  17     message=r'.*max_num_categories.*',
  18     category=DeprecationWarning,
  19     module=r'deepchecks.*'
  20 )
  21 
  22 # Added in 0.7 Warning filters for deprecated functions in deepchecks.tabular.checks
  23 # Should be removed in 0.8
  24 warnings.filterwarnings(
  25     action='once',
  26     message=r'deepchecks\.tabular\.checks\.performance is deprecated.*',
  27     category=DeprecationWarning,
  28     module=r'deepchecks.*'
  29 )
  30 
  31 warnings.filterwarnings(
  32     action='once',
  33     message=r'deepchecks.tabular.checks.overview is deprecated.*',
  34     category=DeprecationWarning,
  35     module=r'deepchecks.*'
  36 )
  37 
  38 warnings.filterwarnings(
  39     action='once',
  40     message=r'deepchecks.tabular.checks.methodology is deprecated.*',
  41     category=DeprecationWarning,
  42     module=r'deepchecks.tabular.checks.methodology.*'
  43 )
  44 
  45 warnings.filterwarnings(
  46     action='once',
  47     message=r'deepchecks.tabular.checks.distribution is deprecated.*',
  48     category=DeprecationWarning,
  49     module=r'deepchecks.*'
  50 )
  51 
  52 warnings.filterwarnings(
  53     action='always',
  54     message=r'the single_dataset_integrity suite is deprecated.*',
  55     category=DeprecationWarning,
  56     module=r'deepchecks.*'
  57 )
  58 
  59 warnings.filterwarnings(
  60     action='always',
  61     message=r'the train_test_leakage suite is deprecated.*',
  62     category=DeprecationWarning,
  63     module=r'deepchecks.*'
  64 )
  65
  [end of deepchecks/tabular/deprecation_warnings.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/deepchecks/tabular/deprecation_warnings.py b/deepchecks/tabular/deprecation_warnings.py
  --- a/deepchecks/tabular/deprecation_warnings.py
  +++ b/deepchecks/tabular/deprecation_warnings.py
  @@ -62,3 +62,20 @@
       category=DeprecationWarning,
       module=r'deepchecks.*'
   )
  +
  +# Added in 0.7 Warning filters for drift conditions
  +# Should be removed in 0.8
  +
  +warnings.filterwarnings(
  +    action='once',
  +    message=r'.*max_allowed_psi_score is deprecated.*',
  +    category=DeprecationWarning,
  +    module=r'deepchecks.*'
  +)
  +
  +warnings.filterwarnings(
  +    action='once',
  +    message=r'.*max_allowed_earth_movers_score is deprecated.*',
  +    category=DeprecationWarning,
  +    module=r'deepchecks.*'
  +)
  diff --git a/deepchecks/vision/deprecation_warnings.py b/deepchecks/vision/deprecation_warnings.py
  --- a/deepchecks/vision/deprecation_warnings.py
  +++ b/deepchecks/vision/deprecation_warnings.py
  @@ -48,3 +48,20 @@
       category=DeprecationWarning,
       module=r'deepchecks.*'
   )
  +
  +# Added in 0.7 Warning filters for drift conditions
  +# Should be removed in 0.8
  +
  +warnings.filterwarnings(
  +    action='once',
  +    message=r'.*max_allowed_psi_score is deprecated.*',
  +    category=DeprecationWarning,
  +    module=r'deepchecks.*'
  +)
  +
  +warnings.filterwarnings(
  +    action='once',
  +    message=r'.*max_allowed_earth_movers_score is deprecated.*',
  +    category=DeprecationWarning,
  +    module=r'deepchecks.*'
  +)
  
verification_info: {"golden_diff": "diff --git a/deepchecks/tabular/deprecation_warnings.py b/deepchecks/tabular/deprecation_warnings.py\n--- a/deepchecks/tabular/deprecation_warnings.py\n+++ b/deepchecks/tabular/deprecation_warnings.py\n@@ -62,3 +62,20 @@\n     category=DeprecationWarning,\n     module=r'deepchecks.*'\n )\n+\n+# Added in 0.7 Warning filters for drift conditions\n+# Should be removed in 0.8\n+\n+warnings.filterwarnings(\n+    action='once',\n+    message=r'.*max_allowed_psi_score is deprecated.*',\n+    category=DeprecationWarning,\n+    module=r'deepchecks.*'\n+)\n+\n+warnings.filterwarnings(\n+    action='once',\n+    message=r'.*max_allowed_earth_movers_score is deprecated.*',\n+    category=DeprecationWarning,\n+    module=r'deepchecks.*'\n+)\ndiff --git a/deepchecks/vision/deprecation_warnings.py b/deepchecks/vision/deprecation_warnings.py\n--- a/deepchecks/vision/deprecation_warnings.py\n+++ b/deepchecks/vision/deprecation_warnings.py\n@@ -48,3 +48,20 @@\n     category=DeprecationWarning,\n     module=r'deepchecks.*'\n )\n+\n+# Added in 0.7 Warning filters for drift conditions\n+# Should be removed in 0.8\n+\n+warnings.filterwarnings(\n+    action='once',\n+    message=r'.*max_allowed_psi_score is deprecated.*',\n+    category=DeprecationWarning,\n+    module=r'deepchecks.*'\n+)\n+\n+warnings.filterwarnings(\n+    action='once',\n+    message=r'.*max_allowed_earth_movers_score is deprecated.*',\n+    category=DeprecationWarning,\n+    module=r'deepchecks.*'\n+)\n", "issue": "[BUG][HOTFIX] Add deprecation warning for condition parameter names\nIn 0.7 the drift checks were updated to add Cramer's V.\r\nThus the previous parameter condition names (\"max_psi...  \"max_earthmovers...\") were renamed.\r\nPrevious parameters should still be re-added with deprecation warnings, for all relevant checks and conditions.\r\n\n", "before_files": [{"content": "# ----------------------------------------------------------------------------\n# Copyright (C) 2021-2022 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 <http://www.gnu.org/licenses/>.\n# ----------------------------------------------------------------------------\n#\n\"\"\"This file changes default 'ignore' action of DeprecationWarnings for specific deprecation messages.\"\"\"\nimport warnings\n\n# Added in version 0.6.2, deprecates max_num_categories in all drift checks\nwarnings.filterwarnings(\n    action='always',\n    message=r'.*max_num_categories.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.*'\n)\n\n# Added in 0.7 Warning filters for deprecated functions in deepchecks.tabular.checks\n# Should be removed in 0.8\nwarnings.filterwarnings(\n    action='once',\n    message=r'deepchecks.vision.checks.performance is deprecated.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.*'\n)\n\nwarnings.filterwarnings(\n    action='once',\n    message=r'deepchecks.vision.checks.methodology is deprecated.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.tabular.checks.methodology.*'\n)\n\nwarnings.filterwarnings(\n    action='once',\n    message=r'deepchecks.vision.checks.distribution is deprecated.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.*'\n)\n\nwarnings.filterwarnings(\n    action='always',\n    message=r'the integrity_validation suite is deprecated.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.*'\n)\n", "path": "deepchecks/vision/deprecation_warnings.py"}, {"content": "# ----------------------------------------------------------------------------\n# Copyright (C) 2021-2022 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 <http://www.gnu.org/licenses/>.\n# ----------------------------------------------------------------------------\n#\n\"\"\"This file changes default 'ignore' action of DeprecationWarnings for specific deprecation messages.\"\"\"\nimport warnings\n\n# Added in version 0.6.2, deprecates max_num_categories in all drift checks\nwarnings.filterwarnings(\n    action='always',\n    message=r'.*max_num_categories.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.*'\n)\n\n# Added in 0.7 Warning filters for deprecated functions in deepchecks.tabular.checks\n# Should be removed in 0.8\nwarnings.filterwarnings(\n    action='once',\n    message=r'deepchecks\\.tabular\\.checks\\.performance is deprecated.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.*'\n)\n\nwarnings.filterwarnings(\n    action='once',\n    message=r'deepchecks.tabular.checks.overview is deprecated.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.*'\n)\n\nwarnings.filterwarnings(\n    action='once',\n    message=r'deepchecks.tabular.checks.methodology is deprecated.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.tabular.checks.methodology.*'\n)\n\nwarnings.filterwarnings(\n    action='once',\n    message=r'deepchecks.tabular.checks.distribution is deprecated.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.*'\n)\n\nwarnings.filterwarnings(\n    action='always',\n    message=r'the single_dataset_integrity suite is deprecated.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.*'\n)\n\nwarnings.filterwarnings(\n    action='always',\n    message=r'the train_test_leakage suite is deprecated.*',\n    category=DeprecationWarning,\n    module=r'deepchecks.*'\n)\n", "path": "deepchecks/tabular/deprecation_warnings.py"}]}