prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN 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.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `core/domain/feedback_jobs_one_off.py`
  Content:
  ```
  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 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/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"}], "after_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.\"\"\"\nfrom __future__ import absolute_import # pylint: disable=import-only-modules\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"}]}