prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Uvicorn Windows message points to wrong flag
  ```2022-06-30T19:52:16.704167Z [warning  ] Add ff.start_uvicorn: True to your meltano.yml to supress this waring```
  
  Should point to
  
  ff.enable_uvicorn [env: MELTANO_FF_ENABLE_UVICORN] current value: False (default)
  
  Should be an easy one!
  
  </issue>
  <code>
  [start of src/meltano/api/workers/api_worker.py]
  1 """Starts WSGI Webserver that will run the API App for a Meltano Project."""
  2 import logging
  3 import platform
  4 import threading
  5 
  6 from meltano.core.meltano_invoker import MeltanoInvoker
  7 from meltano.core.project import Project
  8 from meltano.core.project_settings_service import ProjectSettingsService
  9 from meltano.core.settings_service import FeatureFlags
  10 from meltano.core.utils.pidfile import PIDFile
  11 
  12 
  13 class APIWorker(threading.Thread):
  14     """The Base APIWorker Class."""
  15 
  16     def __init__(self, project: Project, reload=False):
  17         """Initialize the API Worker class with the project config.
  18 
  19         Args:
  20             project: Project class.
  21             reload: Boolean.
  22         """
  23         super().__init__()
  24 
  25         self.project = project
  26         self.reload = reload
  27         self.pid_file = PIDFile(self.project.run_dir("gunicorn.pid"))
  28         self.settings_service = ProjectSettingsService(self.project.find())
  29 
  30     def run(self):
  31         """Run the initalized API Workers with the App Server requested."""
  32         with self.settings_service.feature_flag(
  33             FeatureFlags.ENABLE_UVICORN, raise_error=False
  34         ) as allow:
  35 
  36             enable_uvicorn = allow
  37 
  38             # Use Uvicorn when on Windows
  39             if platform.system() == "Windows":
  40                 if enable_uvicorn:
  41                     logging.debug("ff.enable_uvicorn enabled, starting uvicorn.")
  42                 else:
  43                     logging.warning(
  44                         "Windows OS detected auto setting ff.enable_uvicorn"
  45                     )
  46                     logging.warning(
  47                         "Add ff.start_uvicorn: True to your meltano.yml to supress this waring"
  48                     )
  49                     enable_uvicorn = True
  50 
  51             # Start uvicorn to serve API and Ui
  52             if enable_uvicorn:
  53                 settings_for_apiworker = self.settings_service
  54 
  55                 arg_bind_host = str(settings_for_apiworker.get("ui.bind_host"))
  56                 arg_bind_port = str(settings_for_apiworker.get("ui.bind_port"))
  57                 arg_loglevel = str(settings_for_apiworker.get("cli.log_level"))
  58                 arg_forwarded_allow_ips = str(
  59                     settings_for_apiworker.get("ui.forwarded_allow_ips")
  60                 )
  61 
  62                 # If windows and 127.0.0.1 only allowed changing bind host to accomidate
  63                 if platform.system() == "Windows":
  64                     if (
  65                         arg_forwarded_allow_ips == "127.0.0.1"
  66                         and arg_bind_host == "0.0.0.0"  # noqa: S104
  67                     ):
  68                         # If left at 0.0.0.0 the server will respond to any request receieved on any interface
  69                         arg_bind_host = "127.0.0.1"
  70 
  71                 # Setup args for uvicorn using bind info from the project setings service
  72                 args = [
  73                     "--host",
  74                     arg_bind_host,
  75                     "--port",
  76                     arg_bind_port,
  77                     "--loop",
  78                     "asyncio",
  79                     "--interface",
  80                     "wsgi",
  81                     "--log-level",
  82                     arg_loglevel,
  83                     "--forwarded-allow-ips",
  84                     arg_forwarded_allow_ips,
  85                     "--timeout-keep-alive",
  86                     "600",
  87                 ]
  88 
  89                 # Add reload argument if reload is true
  90                 if self.reload:
  91 
  92                     args += [
  93                         "--reload",
  94                     ]
  95 
  96                 # Add the Meltano API app, factory create_app function combo to the args
  97                 args += [
  98                     "--factory",
  99                     "meltano.api.app:create_app",
  100                 ]
  101 
  102                 # Start uvicorn using the MeltanoInvoker
  103                 MeltanoInvoker(self.project).invoke(args, command="uvicorn")
  104 
  105             else:
  106                 # Use Gunicorn when feature flag start_uvicorn is not set
  107 
  108                 args = [
  109                     "--config",
  110                     "python:meltano.api.wsgi",
  111                     "--pid",
  112                     str(self.pid_file),
  113                 ]
  114 
  115                 if self.reload:
  116                     args += ["--reload"]
  117 
  118                 args += ["meltano.api.app:create_app()"]
  119 
  120                 MeltanoInvoker(self.project).invoke(args, command="gunicorn")
  121 
  122     def pid_path(self):
  123         """Give the path name of the projects gunicorn.pid file location.
  124 
  125         Returns:
  126             Path object that gives the direct locationo of the gunicorn.pid file.
  127         """
  128         return self.project.run_dir("gunicorn.pid")
  129 
  130     def stop(self):
  131         """Terminnate active gunicorn workers that have placed a PID in the project's gunicorn.pid file."""
  132         self.pid_file.process.terminate()
  133
  [end of src/meltano/api/workers/api_worker.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/src/meltano/api/workers/api_worker.py b/src/meltano/api/workers/api_worker.py
  --- a/src/meltano/api/workers/api_worker.py
  +++ b/src/meltano/api/workers/api_worker.py
  @@ -44,7 +44,7 @@
                           "Windows OS detected auto setting ff.enable_uvicorn"
                       )
                       logging.warning(
  -                        "Add ff.start_uvicorn: True to your meltano.yml to supress this waring"
  +                        "Add ff.enable_uvicorn: True to your meltano.yml to supress this waring"
                       )
                       enable_uvicorn = True
  
verification_info: {"golden_diff": "diff --git a/src/meltano/api/workers/api_worker.py b/src/meltano/api/workers/api_worker.py\n--- a/src/meltano/api/workers/api_worker.py\n+++ b/src/meltano/api/workers/api_worker.py\n@@ -44,7 +44,7 @@\n                         \"Windows OS detected auto setting ff.enable_uvicorn\"\n                     )\n                     logging.warning(\n-                        \"Add ff.start_uvicorn: True to your meltano.yml to supress this waring\"\n+                        \"Add ff.enable_uvicorn: True to your meltano.yml to supress this waring\"\n                     )\n                     enable_uvicorn = True\n", "issue": "Uvicorn Windows message points to wrong flag\n```2022-06-30T19:52:16.704167Z [warning  ] Add ff.start_uvicorn: True to your meltano.yml to supress this waring```\r\n\r\nShould point to\r\n\r\nff.enable_uvicorn [env: MELTANO_FF_ENABLE_UVICORN] current value: False (default)\r\n\r\nShould be an easy one!\n", "before_files": [{"content": "\"\"\"Starts WSGI Webserver that will run the API App for a Meltano Project.\"\"\"\nimport logging\nimport platform\nimport threading\n\nfrom meltano.core.meltano_invoker import MeltanoInvoker\nfrom meltano.core.project import Project\nfrom meltano.core.project_settings_service import ProjectSettingsService\nfrom meltano.core.settings_service import FeatureFlags\nfrom meltano.core.utils.pidfile import PIDFile\n\n\nclass APIWorker(threading.Thread):\n    \"\"\"The Base APIWorker Class.\"\"\"\n\n    def __init__(self, project: Project, reload=False):\n        \"\"\"Initialize the API Worker class with the project config.\n\n        Args:\n            project: Project class.\n            reload: Boolean.\n        \"\"\"\n        super().__init__()\n\n        self.project = project\n        self.reload = reload\n        self.pid_file = PIDFile(self.project.run_dir(\"gunicorn.pid\"))\n        self.settings_service = ProjectSettingsService(self.project.find())\n\n    def run(self):\n        \"\"\"Run the initalized API Workers with the App Server requested.\"\"\"\n        with self.settings_service.feature_flag(\n            FeatureFlags.ENABLE_UVICORN, raise_error=False\n        ) as allow:\n\n            enable_uvicorn = allow\n\n            # Use Uvicorn when on Windows\n            if platform.system() == \"Windows\":\n                if enable_uvicorn:\n                    logging.debug(\"ff.enable_uvicorn enabled, starting uvicorn.\")\n                else:\n                    logging.warning(\n                        \"Windows OS detected auto setting ff.enable_uvicorn\"\n                    )\n                    logging.warning(\n                        \"Add ff.start_uvicorn: True to your meltano.yml to supress this waring\"\n                    )\n                    enable_uvicorn = True\n\n            # Start uvicorn to serve API and Ui\n            if enable_uvicorn:\n                settings_for_apiworker = self.settings_service\n\n                arg_bind_host = str(settings_for_apiworker.get(\"ui.bind_host\"))\n                arg_bind_port = str(settings_for_apiworker.get(\"ui.bind_port\"))\n                arg_loglevel = str(settings_for_apiworker.get(\"cli.log_level\"))\n                arg_forwarded_allow_ips = str(\n                    settings_for_apiworker.get(\"ui.forwarded_allow_ips\")\n                )\n\n                # If windows and 127.0.0.1 only allowed changing bind host to accomidate\n                if platform.system() == \"Windows\":\n                    if (\n                        arg_forwarded_allow_ips == \"127.0.0.1\"\n                        and arg_bind_host == \"0.0.0.0\"  # noqa: S104\n                    ):\n                        # If left at 0.0.0.0 the server will respond to any request receieved on any interface\n                        arg_bind_host = \"127.0.0.1\"\n\n                # Setup args for uvicorn using bind info from the project setings service\n                args = [\n                    \"--host\",\n                    arg_bind_host,\n                    \"--port\",\n                    arg_bind_port,\n                    \"--loop\",\n                    \"asyncio\",\n                    \"--interface\",\n                    \"wsgi\",\n                    \"--log-level\",\n                    arg_loglevel,\n                    \"--forwarded-allow-ips\",\n                    arg_forwarded_allow_ips,\n                    \"--timeout-keep-alive\",\n                    \"600\",\n                ]\n\n                # Add reload argument if reload is true\n                if self.reload:\n\n                    args += [\n                        \"--reload\",\n                    ]\n\n                # Add the Meltano API app, factory create_app function combo to the args\n                args += [\n                    \"--factory\",\n                    \"meltano.api.app:create_app\",\n                ]\n\n                # Start uvicorn using the MeltanoInvoker\n                MeltanoInvoker(self.project).invoke(args, command=\"uvicorn\")\n\n            else:\n                # Use Gunicorn when feature flag start_uvicorn is not set\n\n                args = [\n                    \"--config\",\n                    \"python:meltano.api.wsgi\",\n                    \"--pid\",\n                    str(self.pid_file),\n                ]\n\n                if self.reload:\n                    args += [\"--reload\"]\n\n                args += [\"meltano.api.app:create_app()\"]\n\n                MeltanoInvoker(self.project).invoke(args, command=\"gunicorn\")\n\n    def pid_path(self):\n        \"\"\"Give the path name of the projects gunicorn.pid file location.\n\n        Returns:\n            Path object that gives the direct locationo of the gunicorn.pid file.\n        \"\"\"\n        return self.project.run_dir(\"gunicorn.pid\")\n\n    def stop(self):\n        \"\"\"Terminnate active gunicorn workers that have placed a PID in the project's gunicorn.pid file.\"\"\"\n        self.pid_file.process.terminate()\n", "path": "src/meltano/api/workers/api_worker.py"}]}