prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Helptext for supported file formats is not up-to-date
  
  
  </issue>
  <code>
  [start of app/grandchallenge/cases/forms.py]
  1 from typing import List
  2 
  3 from crispy_forms.helper import FormHelper
  4 from crispy_forms.layout import Submit
  5 from django import forms
  6 from django.conf import settings
  7 from django.core.exceptions import ValidationError
  8 
  9 from grandchallenge.cases.models import RawImageFile, RawImageUploadSession
  10 from grandchallenge.jqfileupload.widgets import uploader
  11 from grandchallenge.jqfileupload.widgets.uploader import (
  12     StagedAjaxFile,
  13     UploadedAjaxFileList,
  14 )
  15 
  16 
  17 class UploadRawImagesForm(forms.ModelForm):
  18     files = UploadedAjaxFileList(
  19         widget=uploader.AjaxUploadWidget(multifile=True, auto_commit=False),
  20         label="Image files",
  21         help_text=(
  22             "The total size of all files uploaded in a single session "
  23             "cannot exceed 10 GB.<br>"
  24             "The following file formats are supported: "
  25             ".mha, .mhd, .raw, .zraw, .dcm, .tiff, .png, .jpeg and .jpg."
  26         ),
  27     )
  28 
  29     def __init__(self, *args, user, linked_task=None, **kwargs):
  30         super().__init__(*args, **kwargs)
  31         self.helper = FormHelper()
  32         self.helper.add_input(Submit("save", "Submit"))
  33         self.fields["files"].widget.user = user
  34         self._linked_task = linked_task
  35 
  36     def clean_files(self):
  37         files = self.cleaned_data["files"]
  38 
  39         if len({f.name for f in files}) != len(files):
  40             raise ValidationError("Filenames must be unique.")
  41 
  42         if sum([f.size for f in files]) > settings.UPLOAD_SESSION_MAX_BYTES:
  43             raise ValidationError(
  44                 "Total size of all files exceeds the upload limit."
  45             )
  46 
  47         return files
  48 
  49     def save(self, commit=True):
  50         instance = super().save(commit=False)  # type: RawImageUploadSession
  51 
  52         # Create links between the created session and all uploaded files
  53         uploaded_files = self.cleaned_data[
  54             "files"
  55         ]  # type: List[StagedAjaxFile]
  56 
  57         raw_files = [
  58             RawImageFile(
  59                 upload_session=instance,
  60                 filename=uploaded_file.name,
  61                 staged_file_id=uploaded_file.uuid,
  62             )
  63             for uploaded_file in uploaded_files
  64         ]
  65 
  66         if commit:
  67             instance.save()
  68             RawImageFile.objects.bulk_create(raw_files)
  69             instance.process_images(linked_task=self._linked_task)
  70 
  71         return instance
  72 
  73     class Meta:
  74         model = RawImageUploadSession
  75         fields = ["files"]
  76
  [end of app/grandchallenge/cases/forms.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/app/grandchallenge/cases/forms.py b/app/grandchallenge/cases/forms.py
  --- a/app/grandchallenge/cases/forms.py
  +++ b/app/grandchallenge/cases/forms.py
  @@ -22,7 +22,10 @@
               "The total size of all files uploaded in a single session "
               "cannot exceed 10 GB.<br>"
               "The following file formats are supported: "
  -            ".mha, .mhd, .raw, .zraw, .dcm, .tiff, .png, .jpeg and .jpg."
  +            ".mha, .mhd, .raw, .zraw, .dcm, .tiff, .png, .jpeg and .jpg.<br>"
  +            "The following file formats can be uploaded and will be converted to "
  +            "tif: Aperio(.svs), Hamamatsu(.vms, .vmu, .ndpi), Leica(.scn), MIRAX"
  +            "(.mrxs) and Ventana(.bif)."
           ),
       )
  
verification_info: {"golden_diff": "diff --git a/app/grandchallenge/cases/forms.py b/app/grandchallenge/cases/forms.py\n--- a/app/grandchallenge/cases/forms.py\n+++ b/app/grandchallenge/cases/forms.py\n@@ -22,7 +22,10 @@\n             \"The total size of all files uploaded in a single session \"\n             \"cannot exceed 10 GB.<br>\"\n             \"The following file formats are supported: \"\n-            \".mha, .mhd, .raw, .zraw, .dcm, .tiff, .png, .jpeg and .jpg.\"\n+            \".mha, .mhd, .raw, .zraw, .dcm, .tiff, .png, .jpeg and .jpg.<br>\"\n+            \"The following file formats can be uploaded and will be converted to \"\n+            \"tif: Aperio(.svs), Hamamatsu(.vms, .vmu, .ndpi), Leica(.scn), MIRAX\"\n+            \"(.mrxs) and Ventana(.bif).\"\n         ),\n     )\n", "issue": "Helptext for supported file formats is not up-to-date\n\n", "before_files": [{"content": "from typing import List\n\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Submit\nfrom django import forms\nfrom django.conf import settings\nfrom django.core.exceptions import ValidationError\n\nfrom grandchallenge.cases.models import RawImageFile, RawImageUploadSession\nfrom grandchallenge.jqfileupload.widgets import uploader\nfrom grandchallenge.jqfileupload.widgets.uploader import (\n    StagedAjaxFile,\n    UploadedAjaxFileList,\n)\n\n\nclass UploadRawImagesForm(forms.ModelForm):\n    files = UploadedAjaxFileList(\n        widget=uploader.AjaxUploadWidget(multifile=True, auto_commit=False),\n        label=\"Image files\",\n        help_text=(\n            \"The total size of all files uploaded in a single session \"\n            \"cannot exceed 10 GB.<br>\"\n            \"The following file formats are supported: \"\n            \".mha, .mhd, .raw, .zraw, .dcm, .tiff, .png, .jpeg and .jpg.\"\n        ),\n    )\n\n    def __init__(self, *args, user, linked_task=None, **kwargs):\n        super().__init__(*args, **kwargs)\n        self.helper = FormHelper()\n        self.helper.add_input(Submit(\"save\", \"Submit\"))\n        self.fields[\"files\"].widget.user = user\n        self._linked_task = linked_task\n\n    def clean_files(self):\n        files = self.cleaned_data[\"files\"]\n\n        if len({f.name for f in files}) != len(files):\n            raise ValidationError(\"Filenames must be unique.\")\n\n        if sum([f.size for f in files]) > settings.UPLOAD_SESSION_MAX_BYTES:\n            raise ValidationError(\n                \"Total size of all files exceeds the upload limit.\"\n            )\n\n        return files\n\n    def save(self, commit=True):\n        instance = super().save(commit=False)  # type: RawImageUploadSession\n\n        # Create links between the created session and all uploaded files\n        uploaded_files = self.cleaned_data[\n            \"files\"\n        ]  # type: List[StagedAjaxFile]\n\n        raw_files = [\n            RawImageFile(\n                upload_session=instance,\n                filename=uploaded_file.name,\n                staged_file_id=uploaded_file.uuid,\n            )\n            for uploaded_file in uploaded_files\n        ]\n\n        if commit:\n            instance.save()\n            RawImageFile.objects.bulk_create(raw_files)\n            instance.process_images(linked_task=self._linked_task)\n\n        return instance\n\n    class Meta:\n        model = RawImageUploadSession\n        fields = [\"files\"]\n", "path": "app/grandchallenge/cases/forms.py"}]}