prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [request] imguizmo/1.83
  ### Package Details
    * Package Name/Version: **imguizmo/1.83**
    * Changelog: **https://github.com/CedricGuillemet/ImGuizmo/releases/tag/1.83**
  
  The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.
  
  </issue>
  <code>
  [start of recipes/imguizmo/all/conanfile.py]
  1 import os
  2 import glob
  3 from conans import ConanFile, CMake, tools
  4 
  5 
  6 class ImGuizmoConan(ConanFile):
  7     name = "imguizmo"
  8     url = "https://github.com/conan-io/conan-center-index"
  9     homepage = "https://github.com/CedricGuillemet/ImGuizmo"
  10     description = "Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui"
  11     topics = ("conan", "imgui", "3d", "graphics", "guizmo")
  12     license = "MIT"
  13     settings = "os", "arch", "compiler", "build_type"
  14 
  15     exports_sources = ["CMakeLists.txt"]
  16     generators = "cmake"
  17     requires = "imgui/1.82"
  18 
  19     options = {
  20         "shared": [True, False],
  21          "fPIC": [True, False]
  22     }
  23     default_options = {
  24         "shared": False,
  25         "fPIC": True
  26     }
  27 
  28     _cmake = None
  29 
  30     @property
  31     def _source_subfolder(self):
  32         return "source_subfolder"
  33 
  34     def config_options(self):
  35         if self.settings.os == "Windows":
  36             del self.options.fPIC
  37 
  38     def configure(self):
  39         if self.options.shared:
  40             del self.options.fPIC
  41 
  42     def source(self):
  43         tools.get(**self.conan_data["sources"][self.version])
  44         extracted_dir = glob.glob("ImGuizmo-*/")[0]
  45         os.rename(extracted_dir, self._source_subfolder)
  46 
  47     def _configure_cmake(self):
  48         if self._cmake:
  49             return self._cmake
  50         self._cmake = CMake(self)
  51         self._cmake.configure()
  52         return self._cmake
  53 
  54     def build(self):
  55         cmake = self._configure_cmake()
  56         cmake.build()
  57 
  58     def package(self):
  59         self.copy(pattern="LICENSE", dst="licenses", src=self._source_subfolder)
  60         cmake = self._configure_cmake()
  61         cmake.install()
  62 
  63     def package_info(self):
  64         self.cpp_info.libs = ["imguizmo"]
  65
  [end of recipes/imguizmo/all/conanfile.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/recipes/imguizmo/all/conanfile.py b/recipes/imguizmo/all/conanfile.py
  --- a/recipes/imguizmo/all/conanfile.py
  +++ b/recipes/imguizmo/all/conanfile.py
  @@ -14,7 +14,6 @@
   
       exports_sources = ["CMakeLists.txt"]
       generators = "cmake"
  -    requires = "imgui/1.82"
   
       options = {
           "shared": [True, False],
  @@ -44,6 +43,12 @@
           extracted_dir = glob.glob("ImGuizmo-*/")[0]
           os.rename(extracted_dir, self._source_subfolder)
   
  +    def requirements(self):
  +        if self.version == "cci.20210223":
  +            self.requires("imgui/1.82")
  +        else:
  +            self.requires("imgui/1.83")
  +
       def _configure_cmake(self):
           if self._cmake:
               return self._cmake
  
verification_info: {"golden_diff": "diff --git a/recipes/imguizmo/all/conanfile.py b/recipes/imguizmo/all/conanfile.py\n--- a/recipes/imguizmo/all/conanfile.py\n+++ b/recipes/imguizmo/all/conanfile.py\n@@ -14,7 +14,6 @@\n \n     exports_sources = [\"CMakeLists.txt\"]\n     generators = \"cmake\"\n-    requires = \"imgui/1.82\"\n \n     options = {\n         \"shared\": [True, False],\n@@ -44,6 +43,12 @@\n         extracted_dir = glob.glob(\"ImGuizmo-*/\")[0]\n         os.rename(extracted_dir, self._source_subfolder)\n \n+    def requirements(self):\n+        if self.version == \"cci.20210223\":\n+            self.requires(\"imgui/1.82\")\n+        else:\n+            self.requires(\"imgui/1.83\")\n+\n     def _configure_cmake(self):\n         if self._cmake:\n             return self._cmake\n", "issue": "[request] imguizmo/1.83\n### Package Details\r\n  * Package Name/Version: **imguizmo/1.83**\r\n  * Changelog: **https://github.com/CedricGuillemet/ImGuizmo/releases/tag/1.83**\r\n\r\nThe above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.\n", "before_files": [{"content": "import os\nimport glob\nfrom conans import ConanFile, CMake, tools\n\n\nclass ImGuizmoConan(ConanFile):\n    name = \"imguizmo\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://github.com/CedricGuillemet/ImGuizmo\"\n    description = \"Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui\"\n    topics = (\"conan\", \"imgui\", \"3d\", \"graphics\", \"guizmo\")\n    license = \"MIT\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n\n    exports_sources = [\"CMakeLists.txt\"]\n    generators = \"cmake\"\n    requires = \"imgui/1.82\"\n\n    options = {\n        \"shared\": [True, False],\n         \"fPIC\": [True, False]\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True\n    }\n\n    _cmake = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    def config_options(self):\n        if self.settings.os == \"Windows\":\n            del self.options.fPIC\n\n    def configure(self):\n        if self.options.shared:\n            del self.options.fPIC\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        extracted_dir = glob.glob(\"ImGuizmo-*/\")[0]\n        os.rename(extracted_dir, self._source_subfolder)\n\n    def _configure_cmake(self):\n        if self._cmake:\n            return self._cmake\n        self._cmake = CMake(self)\n        self._cmake.configure()\n        return self._cmake\n\n    def build(self):\n        cmake = self._configure_cmake()\n        cmake.build()\n\n    def package(self):\n        self.copy(pattern=\"LICENSE\", dst=\"licenses\", src=self._source_subfolder)\n        cmake = self._configure_cmake()\n        cmake.install()\n\n    def package_info(self):\n        self.cpp_info.libs = [\"imguizmo\"]\n", "path": "recipes/imguizmo/all/conanfile.py"}]}