prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Make Typescript code Prettier
  We should add automated formatting for our typescript files. I think https://prettier.io/ is pretty good, but the choice is open for discussion. The formatting should be done in `manage.py format` and be checked in CI.
  
  </issue>
  <code>
  [start of evap/evaluation/management/commands/format.py]
  1 import subprocess  # nosec
  2 
  3 from django.core.management.base import BaseCommand
  4 
  5 
  6 class Command(BaseCommand):
  7     args = ""
  8     help = "Runs the code formatter"
  9     requires_migrations_checks = False
  10 
  11     def handle(self, *args, **options):
  12         subprocess.run(["black", "evap"], check=False)  # nosec
  13         subprocess.run(["isort", "."], check=False)  # nosec
  14
  [end of evap/evaluation/management/commands/format.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/evap/evaluation/management/commands/format.py b/evap/evaluation/management/commands/format.py
  --- a/evap/evaluation/management/commands/format.py
  +++ b/evap/evaluation/management/commands/format.py
  @@ -11,3 +11,4 @@
       def handle(self, *args, **options):
           subprocess.run(["black", "evap"], check=False)  # nosec
           subprocess.run(["isort", "."], check=False)  # nosec
  +        subprocess.run(["npx", "prettier", "--write", "evap/static/ts/src"], check=False)  # nosec
  
verification_info: {"golden_diff": "diff --git a/evap/evaluation/management/commands/format.py b/evap/evaluation/management/commands/format.py\n--- a/evap/evaluation/management/commands/format.py\n+++ b/evap/evaluation/management/commands/format.py\n@@ -11,3 +11,4 @@\n     def handle(self, *args, **options):\n         subprocess.run([\"black\", \"evap\"], check=False)  # nosec\n         subprocess.run([\"isort\", \".\"], check=False)  # nosec\n+        subprocess.run([\"npx\", \"prettier\", \"--write\", \"evap/static/ts/src\"], check=False)  # nosec\n", "issue": "Make Typescript code Prettier\nWe should add automated formatting for our typescript files. I think https://prettier.io/ is pretty good, but the choice is open for discussion. The formatting should be done in `manage.py format` and be checked in CI.\n", "before_files": [{"content": "import subprocess  # nosec\n\nfrom django.core.management.base import BaseCommand\n\n\nclass Command(BaseCommand):\n    args = \"\"\n    help = \"Runs the code formatter\"\n    requires_migrations_checks = False\n\n    def handle(self, *args, **options):\n        subprocess.run([\"black\", \"evap\"], check=False)  # nosec\n        subprocess.run([\"isort\", \".\"], check=False)  # nosec\n", "path": "evap/evaluation/management/commands/format.py"}]}