prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Use cleaner solution for non-truncating division in python 2
  Prefer `from __future__ import division` to `1.*x/y`
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py`
  Content:
  ```
  1 from typing import Optional
  2 
  3 from great_expectations.core import (
  4     ExpectationConfiguration,
  5     ExpectationValidationResult,
  6 )
  7 from great_expectations.expectations.expectation import (
  8     ColumnMapExpectation,
  9     InvalidExpectationConfigurationError,
  10     render_evaluation_parameter_string,
  11 )
  12 from great_expectations.render import LegacyRendererType
  13 from great_expectations.render.renderer.renderer import renderer
  14 from great_expectations.render.util import substitute_none_for_missing
  15 
  16 
  17 class ExpectColumnValuesToNotMatchLikePattern(ColumnMapExpectation):
  18     """Expect the column entries to be strings that do NOT match a given like pattern expression.
  19 
  20     expect_column_values_to_not_match_like_pattern is a \
  21     [Column Map Expectation](https://docs.greatexpectations.io/docs/guides/expectations/creating_custom_expectations/how_to_create_custom_column_map_expectations).
  22 
  23     Args:
  24         column (str): \
  25             The column name.
  26         like_pattern (str): \
  27             The like pattern expression the column entries should NOT match.
  28 
  29     Keyword Args:
  30         mostly (None or a float between 0 and 1): \
  31             Successful if at least mostly fraction of values match the expectation. \
  32             For more detail, see [mostly](https://docs.greatexpectations.io/docs/reference/expectations/standard_arguments/#mostly).
  33 
  34     Other Parameters:
  35         result_format (str or None): \
  36             Which output mode to use: BOOLEAN_ONLY, BASIC, COMPLETE, or SUMMARY. \
  37             For more detail, see [result_format](https://docs.greatexpectations.io/docs/reference/expectations/result_format).
  38         include_config (boolean): \
  39             If True, then include the expectation config as part of the result object.
  40         catch_exceptions (boolean or None): \
  41             If True, then catch exceptions and include them as part of the result object. \
  42             For more detail, see [catch_exceptions](https://docs.greatexpectations.io/docs/reference/expectations/standard_arguments/#catch_exceptions).
  43         meta (dict or None): \
  44             A JSON-serializable dictionary (nesting allowed) that will be included in the output without \
  45             modification. For more detail, see [meta](https://docs.greatexpectations.io/docs/reference/expectations/standard_arguments/#meta).
  46 
  47     Returns:
  48         An [ExpectationSuiteValidationResult](https://docs.greatexpectations.io/docs/terms/validation_result)
  49 
  50         Exact fields vary depending on the values passed to result_format, include_config, catch_exceptions, and meta.
  51 
  52     See Also:
  53         [expect_column_values_to_match_regex](https://greatexpectations.io/expectations/expect_column_values_to_match_regex)
  54         [expect_column_values_to_match_regex_list](https://greatexpectations.io/expectations/expect_column_values_to_match_regex_list)
  55         [expect_column_values_to_not_match_regex](https://greatexpectations.io/expectations/expect_column_values_to_not_match_regex)
  56         [expect_column_values_to_not_match_regex_list](https://greatexpectations.io/expectations/expect_column_values_to_not_match_regex_list)
  57         [expect_column_values_to_match_like_pattern](https://greatexpectations.io/expectations/expect_column_values_to_match_like_pattern)
  58         [expect_column_values_to_match_like_pattern_list](https://greatexpectations.io/expectations/expect_column_values_to_match_like_pattern_list)
  59         [expect_column_values_to_not_match_like_pattern_list](https://greatexpectations.io/expectations/expect_column_values_to_not_match_like_pattern_list)
  60     """
  61 
  62     library_metadata = {
  63         "maturity": "production",
  64         "tags": ["core expectation", "column map expectation"],
  65         "contributors": [
  66             "@great_expectations",
  67         ],
  68         "requirements": [],
  69         "has_full_test_suite": True,
  70         "manually_reviewed_code": True,
  71     }
  72 
  73     map_metric = "column_values.not_match_like_pattern"
  74     success_keys = (
  75         "mostly",
  76         "like_pattern",
  77     )
  78     default_kwarg_values = {
  79         "like_pattern": None,
  80         "row_condition": None,
  81         "condition_parser": None,  # we expect this to be explicitly set whenever a row_condition is passed
  82         "mostly": 1,
  83         "result_format": "BASIC",
  84         "include_config": True,
  85         "catch_exceptions": True,
  86     }
  87     args_keys = (
  88         "column",
  89         "like_pattern",
  90     )
  91 
  92     def validate_configuration(
  93         self, configuration: Optional[ExpectationConfiguration] = None
  94     ) -> None:
  95         super().validate_configuration(configuration)
  96         configuration = configuration or self.configuration
  97         try:
  98             assert "like_pattern" in configuration.kwargs, "Must provide like_pattern"
  99             assert isinstance(
  100                 configuration.kwargs.get("like_pattern"), (str, dict)
  101             ), "like_pattern must be a string"
  102             if isinstance(configuration.kwargs.get("like_pattern"), dict):
  103                 assert "$PARAMETER" in configuration.kwargs.get(
  104                     "like_pattern"
  105                 ), 'Evaluation Parameter dict for like_pattern kwarg must have "$PARAMETER" key.'
  106         except AssertionError as e:
  107             raise InvalidExpectationConfigurationError(str(e))
  108 
  109     @classmethod
  110     @renderer(renderer_type=LegacyRendererType.PRESCRIPTIVE)
  111     @render_evaluation_parameter_string
  112     def _prescriptive_renderer(
  113         cls,
  114         configuration: Optional[ExpectationConfiguration] = None,
  115         result: Optional[ExpectationValidationResult] = None,
  116         runtime_configuration: Optional[dict] = None,
  117         **kwargs
  118     ) -> None:
  119         runtime_configuration = runtime_configuration or {}
  120         _ = False if runtime_configuration.get("include_column_name") is False else True
  121         _ = runtime_configuration.get("styling")
  122         params = substitute_none_for_missing(  # noqa: F841 # unused
  123             configuration.kwargs,
  124             ["column", "mostly", "row_condition", "condition_parser"],
  125         )
  126
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py b/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py
  --- a/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py
  +++ b/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py
  @@ -92,13 +92,28 @@
       def validate_configuration(
           self, configuration: Optional[ExpectationConfiguration] = None
       ) -> None:
  +        """
  +        Validates the configuration of an Expectation.
  +
  +        For `expect_column_values_to_not_match_like_pattern` it is required that:
  +            - configuration's kwargs contains a key 'like_pattern' of type str or dict
  +            - if 'like_pattern' is dict, assert key "$PARAMETER" is present
  +
  +        Args:
  +            configuration: An `ExpectationConfiguration` to validate. If no configuration is provided, it will be pulled
  +                                  from the configuration attribute of the Expectation instance.
  +
  +        Raises:
  +            `InvalidExpectationConfigurationError`: The configuration does not contain the values required by the
  +                                  Expectation."
  +        """
           super().validate_configuration(configuration)
           configuration = configuration or self.configuration
           try:
               assert "like_pattern" in configuration.kwargs, "Must provide like_pattern"
               assert isinstance(
                   configuration.kwargs.get("like_pattern"), (str, dict)
  -            ), "like_pattern must be a string"
  +            ), "like_pattern must be a string or dict"
               if isinstance(configuration.kwargs.get("like_pattern"), dict):
                   assert "$PARAMETER" in configuration.kwargs.get(
                       "like_pattern"
  
verification_info: {"golden_diff": "diff --git a/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py b/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py\n--- a/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py\n+++ b/great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py\n@@ -92,13 +92,28 @@\n     def validate_configuration(\n         self, configuration: Optional[ExpectationConfiguration] = None\n     ) -> None:\n+        \"\"\"\n+        Validates the configuration of an Expectation.\n+\n+        For `expect_column_values_to_not_match_like_pattern` it is required that:\n+            - configuration's kwargs contains a key 'like_pattern' of type str or dict\n+            - if 'like_pattern' is dict, assert key \"$PARAMETER\" is present\n+\n+        Args:\n+            configuration: An `ExpectationConfiguration` to validate. If no configuration is provided, it will be pulled\n+                                  from the configuration attribute of the Expectation instance.\n+\n+        Raises:\n+            `InvalidExpectationConfigurationError`: The configuration does not contain the values required by the\n+                                  Expectation.\"\n+        \"\"\"\n         super().validate_configuration(configuration)\n         configuration = configuration or self.configuration\n         try:\n             assert \"like_pattern\" in configuration.kwargs, \"Must provide like_pattern\"\n             assert isinstance(\n                 configuration.kwargs.get(\"like_pattern\"), (str, dict)\n-            ), \"like_pattern must be a string\"\n+            ), \"like_pattern must be a string or dict\"\n             if isinstance(configuration.kwargs.get(\"like_pattern\"), dict):\n                 assert \"$PARAMETER\" in configuration.kwargs.get(\n                     \"like_pattern\"\n", "issue": "Use cleaner solution for non-truncating division in python 2\nPrefer `from __future__ import division` to `1.*x/y`\n", "before_files": [{"content": "from typing import Optional\n\nfrom great_expectations.core import (\n    ExpectationConfiguration,\n    ExpectationValidationResult,\n)\nfrom great_expectations.expectations.expectation import (\n    ColumnMapExpectation,\n    InvalidExpectationConfigurationError,\n    render_evaluation_parameter_string,\n)\nfrom great_expectations.render import LegacyRendererType\nfrom great_expectations.render.renderer.renderer import renderer\nfrom great_expectations.render.util import substitute_none_for_missing\n\n\nclass ExpectColumnValuesToNotMatchLikePattern(ColumnMapExpectation):\n    \"\"\"Expect the column entries to be strings that do NOT match a given like pattern expression.\n\n    expect_column_values_to_not_match_like_pattern is a \\\n    [Column Map Expectation](https://docs.greatexpectations.io/docs/guides/expectations/creating_custom_expectations/how_to_create_custom_column_map_expectations).\n\n    Args:\n        column (str): \\\n            The column name.\n        like_pattern (str): \\\n            The like pattern expression the column entries should NOT match.\n\n    Keyword Args:\n        mostly (None or a float between 0 and 1): \\\n            Successful if at least mostly fraction of values match the expectation. \\\n            For more detail, see [mostly](https://docs.greatexpectations.io/docs/reference/expectations/standard_arguments/#mostly).\n\n    Other Parameters:\n        result_format (str or None): \\\n            Which output mode to use: BOOLEAN_ONLY, BASIC, COMPLETE, or SUMMARY. \\\n            For more detail, see [result_format](https://docs.greatexpectations.io/docs/reference/expectations/result_format).\n        include_config (boolean): \\\n            If True, then include the expectation config as part of the result object.\n        catch_exceptions (boolean or None): \\\n            If True, then catch exceptions and include them as part of the result object. \\\n            For more detail, see [catch_exceptions](https://docs.greatexpectations.io/docs/reference/expectations/standard_arguments/#catch_exceptions).\n        meta (dict or None): \\\n            A JSON-serializable dictionary (nesting allowed) that will be included in the output without \\\n            modification. For more detail, see [meta](https://docs.greatexpectations.io/docs/reference/expectations/standard_arguments/#meta).\n\n    Returns:\n        An [ExpectationSuiteValidationResult](https://docs.greatexpectations.io/docs/terms/validation_result)\n\n        Exact fields vary depending on the values passed to result_format, include_config, catch_exceptions, and meta.\n\n    See Also:\n        [expect_column_values_to_match_regex](https://greatexpectations.io/expectations/expect_column_values_to_match_regex)\n        [expect_column_values_to_match_regex_list](https://greatexpectations.io/expectations/expect_column_values_to_match_regex_list)\n        [expect_column_values_to_not_match_regex](https://greatexpectations.io/expectations/expect_column_values_to_not_match_regex)\n        [expect_column_values_to_not_match_regex_list](https://greatexpectations.io/expectations/expect_column_values_to_not_match_regex_list)\n        [expect_column_values_to_match_like_pattern](https://greatexpectations.io/expectations/expect_column_values_to_match_like_pattern)\n        [expect_column_values_to_match_like_pattern_list](https://greatexpectations.io/expectations/expect_column_values_to_match_like_pattern_list)\n        [expect_column_values_to_not_match_like_pattern_list](https://greatexpectations.io/expectations/expect_column_values_to_not_match_like_pattern_list)\n    \"\"\"\n\n    library_metadata = {\n        \"maturity\": \"production\",\n        \"tags\": [\"core expectation\", \"column map expectation\"],\n        \"contributors\": [\n            \"@great_expectations\",\n        ],\n        \"requirements\": [],\n        \"has_full_test_suite\": True,\n        \"manually_reviewed_code\": True,\n    }\n\n    map_metric = \"column_values.not_match_like_pattern\"\n    success_keys = (\n        \"mostly\",\n        \"like_pattern\",\n    )\n    default_kwarg_values = {\n        \"like_pattern\": None,\n        \"row_condition\": None,\n        \"condition_parser\": None,  # we expect this to be explicitly set whenever a row_condition is passed\n        \"mostly\": 1,\n        \"result_format\": \"BASIC\",\n        \"include_config\": True,\n        \"catch_exceptions\": True,\n    }\n    args_keys = (\n        \"column\",\n        \"like_pattern\",\n    )\n\n    def validate_configuration(\n        self, configuration: Optional[ExpectationConfiguration] = None\n    ) -> None:\n        super().validate_configuration(configuration)\n        configuration = configuration or self.configuration\n        try:\n            assert \"like_pattern\" in configuration.kwargs, \"Must provide like_pattern\"\n            assert isinstance(\n                configuration.kwargs.get(\"like_pattern\"), (str, dict)\n            ), \"like_pattern must be a string\"\n            if isinstance(configuration.kwargs.get(\"like_pattern\"), dict):\n                assert \"$PARAMETER\" in configuration.kwargs.get(\n                    \"like_pattern\"\n                ), 'Evaluation Parameter dict for like_pattern kwarg must have \"$PARAMETER\" key.'\n        except AssertionError as e:\n            raise InvalidExpectationConfigurationError(str(e))\n\n    @classmethod\n    @renderer(renderer_type=LegacyRendererType.PRESCRIPTIVE)\n    @render_evaluation_parameter_string\n    def _prescriptive_renderer(\n        cls,\n        configuration: Optional[ExpectationConfiguration] = None,\n        result: Optional[ExpectationValidationResult] = None,\n        runtime_configuration: Optional[dict] = None,\n        **kwargs\n    ) -> None:\n        runtime_configuration = runtime_configuration or {}\n        _ = False if runtime_configuration.get(\"include_column_name\") is False else True\n        _ = runtime_configuration.get(\"styling\")\n        params = substitute_none_for_missing(  # noqa: F841 # unused\n            configuration.kwargs,\n            [\"column\", \"mostly\", \"row_condition\", \"condition_parser\"],\n        )\n", "path": "great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py"}], "after_files": [{"content": "from typing import Optional\n\nfrom great_expectations.core import (\n    ExpectationConfiguration,\n    ExpectationValidationResult,\n)\nfrom great_expectations.expectations.expectation import (\n    ColumnMapExpectation,\n    InvalidExpectationConfigurationError,\n    render_evaluation_parameter_string,\n)\nfrom great_expectations.render import LegacyRendererType\nfrom great_expectations.render.renderer.renderer import renderer\nfrom great_expectations.render.util import substitute_none_for_missing\n\n\nclass ExpectColumnValuesToNotMatchLikePattern(ColumnMapExpectation):\n    \"\"\"Expect the column entries to be strings that do NOT match a given like pattern expression.\n\n    expect_column_values_to_not_match_like_pattern is a \\\n    [Column Map Expectation](https://docs.greatexpectations.io/docs/guides/expectations/creating_custom_expectations/how_to_create_custom_column_map_expectations).\n\n    Args:\n        column (str): \\\n            The column name.\n        like_pattern (str): \\\n            The like pattern expression the column entries should NOT match.\n\n    Keyword Args:\n        mostly (None or a float between 0 and 1): \\\n            Successful if at least mostly fraction of values match the expectation. \\\n            For more detail, see [mostly](https://docs.greatexpectations.io/docs/reference/expectations/standard_arguments/#mostly).\n\n    Other Parameters:\n        result_format (str or None): \\\n            Which output mode to use: BOOLEAN_ONLY, BASIC, COMPLETE, or SUMMARY. \\\n            For more detail, see [result_format](https://docs.greatexpectations.io/docs/reference/expectations/result_format).\n        include_config (boolean): \\\n            If True, then include the expectation config as part of the result object.\n        catch_exceptions (boolean or None): \\\n            If True, then catch exceptions and include them as part of the result object. \\\n            For more detail, see [catch_exceptions](https://docs.greatexpectations.io/docs/reference/expectations/standard_arguments/#catch_exceptions).\n        meta (dict or None): \\\n            A JSON-serializable dictionary (nesting allowed) that will be included in the output without \\\n            modification. For more detail, see [meta](https://docs.greatexpectations.io/docs/reference/expectations/standard_arguments/#meta).\n\n    Returns:\n        An [ExpectationSuiteValidationResult](https://docs.greatexpectations.io/docs/terms/validation_result)\n\n        Exact fields vary depending on the values passed to result_format, include_config, catch_exceptions, and meta.\n\n    See Also:\n        [expect_column_values_to_match_regex](https://greatexpectations.io/expectations/expect_column_values_to_match_regex)\n        [expect_column_values_to_match_regex_list](https://greatexpectations.io/expectations/expect_column_values_to_match_regex_list)\n        [expect_column_values_to_not_match_regex](https://greatexpectations.io/expectations/expect_column_values_to_not_match_regex)\n        [expect_column_values_to_not_match_regex_list](https://greatexpectations.io/expectations/expect_column_values_to_not_match_regex_list)\n        [expect_column_values_to_match_like_pattern](https://greatexpectations.io/expectations/expect_column_values_to_match_like_pattern)\n        [expect_column_values_to_match_like_pattern_list](https://greatexpectations.io/expectations/expect_column_values_to_match_like_pattern_list)\n        [expect_column_values_to_not_match_like_pattern_list](https://greatexpectations.io/expectations/expect_column_values_to_not_match_like_pattern_list)\n    \"\"\"\n\n    library_metadata = {\n        \"maturity\": \"production\",\n        \"tags\": [\"core expectation\", \"column map expectation\"],\n        \"contributors\": [\n            \"@great_expectations\",\n        ],\n        \"requirements\": [],\n        \"has_full_test_suite\": True,\n        \"manually_reviewed_code\": True,\n    }\n\n    map_metric = \"column_values.not_match_like_pattern\"\n    success_keys = (\n        \"mostly\",\n        \"like_pattern\",\n    )\n    default_kwarg_values = {\n        \"like_pattern\": None,\n        \"row_condition\": None,\n        \"condition_parser\": None,  # we expect this to be explicitly set whenever a row_condition is passed\n        \"mostly\": 1,\n        \"result_format\": \"BASIC\",\n        \"include_config\": True,\n        \"catch_exceptions\": True,\n    }\n    args_keys = (\n        \"column\",\n        \"like_pattern\",\n    )\n\n    def validate_configuration(\n        self, configuration: Optional[ExpectationConfiguration] = None\n    ) -> None:\n        \"\"\"\n        Validates the configuration of an Expectation.\n\n        For `expect_column_values_to_not_match_like_pattern` it is required that:\n            - configuration's kwargs contains a key 'like_pattern' of type str or dict\n            - if 'like_pattern' is dict, assert key \"$PARAMETER\" is present\n\n        Args:\n            configuration: An `ExpectationConfiguration` to validate. If no configuration is provided, it will be pulled\n                                  from the configuration attribute of the Expectation instance.\n\n        Raises:\n            `InvalidExpectationConfigurationError`: The configuration does not contain the values required by the\n                                  Expectation.\"\n        \"\"\"\n        super().validate_configuration(configuration)\n        configuration = configuration or self.configuration\n        try:\n            assert \"like_pattern\" in configuration.kwargs, \"Must provide like_pattern\"\n            assert isinstance(\n                configuration.kwargs.get(\"like_pattern\"), (str, dict)\n            ), \"like_pattern must be a string or dict\"\n            if isinstance(configuration.kwargs.get(\"like_pattern\"), dict):\n                assert \"$PARAMETER\" in configuration.kwargs.get(\n                    \"like_pattern\"\n                ), 'Evaluation Parameter dict for like_pattern kwarg must have \"$PARAMETER\" key.'\n        except AssertionError as e:\n            raise InvalidExpectationConfigurationError(str(e))\n\n    @classmethod\n    @renderer(renderer_type=LegacyRendererType.PRESCRIPTIVE)\n    @render_evaluation_parameter_string\n    def _prescriptive_renderer(\n        cls,\n        configuration: Optional[ExpectationConfiguration] = None,\n        result: Optional[ExpectationValidationResult] = None,\n        runtime_configuration: Optional[dict] = None,\n        **kwargs\n    ) -> None:\n        runtime_configuration = runtime_configuration or {}\n        _ = False if runtime_configuration.get(\"include_column_name\") is False else True\n        _ = runtime_configuration.get(\"styling\")\n        params = substitute_none_for_missing(  # noqa: F841 # unused\n            configuration.kwargs,\n            [\"column\", \"mostly\", \"row_condition\", \"condition_parser\"],\n        )\n", "path": "great_expectations/expectations/core/expect_column_values_to_not_match_like_pattern.py"}]}