prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Upgrade @typescript-eslint/eslint-plugin
  `eslint-utils` is currently out of date, https://github.com/oppia/oppia/pull/7451 provides a temporary fix, but we need to upgrade the main package that requires `eslint-utils` to ensure that we have a long term fix. 
  
  When fixing this, please make sure that the lint tests run successfully.
  
  </issue>
  <code>
  [start of core/domain/feedback_jobs_one_off.py]
  1 # Copyright 2019 The Oppia Authors. All Rights Reserved.
  2 #
  3 # Licensed under the Apache License, Version 2.0 (the "License");
  4 # you may not use this file except in compliance with the License.
  5 # You may obtain a copy of the License at
  6 #
  7 #      http://www.apache.org/licenses/LICENSE-2.0
  8 #
  9 # Unless required by applicable law or agreed to in writing, software
  10 # distributed under the License is distributed on an "AS-IS" BASIS,
  11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 # See the License for the specific language governing permissions and
  13 # limitations under the License.
  14 
  15 """One-off jobs for feedback models."""
  16 
  17 from core import jobs
  18 from core.platform import models
  19 
  20 (feedback_models,) = models.Registry.import_models([models.NAMES.feedback])
  21 
  22 
  23 class GeneralFeedbackThreadUserOneOffJob(jobs.BaseMapReduceOneOffJobManager):
  24     """One-off job for setting user_id and thread_id for all
  25      GeneralFeedbackThreadUserModels.
  26     """
  27     @classmethod
  28     def entity_classes_to_map_over(cls):
  29         """Return a list of datastore class references to map over."""
  30         return [feedback_models.GeneralFeedbackThreadUserModel]
  31 
  32     @staticmethod
  33     def map(model_instance):
  34         """Implements the map function for this job."""
  35         user_id, thread_id = model_instance.id.split('.', 1)
  36         if model_instance.user_id is None:
  37             model_instance.user_id = user_id
  38         if model_instance.thread_id is None:
  39             model_instance.thread_id = thread_id
  40         model_instance.put(update_last_updated_time=False)
  41         yield ('SUCCESS', model_instance.id)
  42 
  43     @staticmethod
  44     def reduce(key, values):
  45         yield (key, len(values))
  46
  [end of core/domain/feedback_jobs_one_off.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/core/domain/feedback_jobs_one_off.py b/core/domain/feedback_jobs_one_off.py
  --- a/core/domain/feedback_jobs_one_off.py
  +++ b/core/domain/feedback_jobs_one_off.py
  @@ -13,6 +13,7 @@
   # limitations under the License.
   
   """One-off jobs for feedback models."""
  +from __future__ import absolute_import # pylint: disable=import-only-modules
   
   from core import jobs
   from core.platform import models
  
verification_info: {"golden_diff": "diff --git a/core/domain/feedback_jobs_one_off.py b/core/domain/feedback_jobs_one_off.py\n--- a/core/domain/feedback_jobs_one_off.py\n+++ b/core/domain/feedback_jobs_one_off.py\n@@ -13,6 +13,7 @@\n # limitations under the License.\n \n \"\"\"One-off jobs for feedback models.\"\"\"\n+from __future__ import absolute_import # pylint: disable=import-only-modules\n \n from core import jobs\n from core.platform import models\n", "issue": "Upgrade @typescript-eslint/eslint-plugin\n`eslint-utils` is currently out of date, https://github.com/oppia/oppia/pull/7451 provides a temporary fix, but we need to upgrade the main package that requires `eslint-utils` to ensure that we have a long term fix. \r\n\r\nWhen fixing this, please make sure that the lint tests run successfully.\n", "before_files": [{"content": "# Copyright 2019 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS-IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\"\"\"One-off jobs for feedback models.\"\"\"\n\nfrom core import jobs\nfrom core.platform import models\n\n(feedback_models,) = models.Registry.import_models([models.NAMES.feedback])\n\n\nclass GeneralFeedbackThreadUserOneOffJob(jobs.BaseMapReduceOneOffJobManager):\n    \"\"\"One-off job for setting user_id and thread_id for all\n     GeneralFeedbackThreadUserModels.\n    \"\"\"\n    @classmethod\n    def entity_classes_to_map_over(cls):\n        \"\"\"Return a list of datastore class references to map over.\"\"\"\n        return [feedback_models.GeneralFeedbackThreadUserModel]\n\n    @staticmethod\n    def map(model_instance):\n        \"\"\"Implements the map function for this job.\"\"\"\n        user_id, thread_id = model_instance.id.split('.', 1)\n        if model_instance.user_id is None:\n            model_instance.user_id = user_id\n        if model_instance.thread_id is None:\n            model_instance.thread_id = thread_id\n        model_instance.put(update_last_updated_time=False)\n        yield ('SUCCESS', model_instance.id)\n\n    @staticmethod\n    def reduce(key, values):\n        yield (key, len(values))\n", "path": "core/domain/feedback_jobs_one_off.py"}]}