prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Email confirmation email should be improved
  I couldn't find the text for the email, so I suspect it's from some library.
  
  Here is the content:
  
  ---
  
  Hello from **apps.nextcloud.com**!
  
  You're receiving this e-mail because user oparoz at apps.nextcloud.com has given **yours as an e-mail address to connect their account**.
  
  To confirm this is correct, go to https://apps.nextcloud.com/confirm-email/Mzc:1bZksL:Y8YI3zMQ0fOllevi3VhZ-dmiSMU/
  
  Thank you from **apps.nextcloud.com**!
  **apps.nextcloud.com**
  
  ---
  
  I've highlighted what should be altered.
  
  
  </issue>
  <code>
  [start of nextcloudappstore/core/management/commands/setupsocial.py]
  1 from allauth.socialaccount.models import SocialApp
  2 from django.contrib.sites.models import Site
  3 from django.core.management import BaseCommand
  4 
  5 
  6 class Command(BaseCommand):
  7     help = ('Updates the first site with the given domain and creates or '
  8             'updates the GitHub social login application')
  9 
  10     def add_arguments(self, parser):
  11         social_meta = SocialApp._meta
  12         parser.add_argument('--github-secret', required=True,
  13                             help=social_meta.get_field('secret').help_text)
  14         parser.add_argument('--github-client-id', required=True,
  15                             help=social_meta.get_field('client_id').help_text)
  16         site_meta = Site._meta
  17         parser.add_argument('--domain', required=True,
  18                             help=site_meta.get_field('domain').help_text)
  19 
  20     def handle(self, *args, **options):
  21         # set up site which is required for social login
  22         site = Site.objects.all()[0]
  23         site.domain = options['domain']
  24         site.name = options['domain']
  25         site.save()
  26         # set up github
  27         app, created = SocialApp.objects.get_or_create(provider='github')
  28         app.name = 'GitHub'
  29         app.secret = options['github_secret']
  30         app.client_id = options['github_client_id']
  31         app.sites.add(site)
  32         app.save()
  33 
  34         msg = 'Successfully initialized social accounts'
  35         self.stdout.write(self.style.SUCCESS(msg))
  36
  [end of nextcloudappstore/core/management/commands/setupsocial.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/nextcloudappstore/core/management/commands/setupsocial.py b/nextcloudappstore/core/management/commands/setupsocial.py
  --- a/nextcloudappstore/core/management/commands/setupsocial.py
  +++ b/nextcloudappstore/core/management/commands/setupsocial.py
  @@ -21,7 +21,7 @@
           # set up site which is required for social login
           site = Site.objects.all()[0]
           site.domain = options['domain']
  -        site.name = options['domain']
  +        site.name = 'Nextcloud App Store'
           site.save()
           # set up github
           app, created = SocialApp.objects.get_or_create(provider='github')
  
verification_info: {"golden_diff": "diff --git a/nextcloudappstore/core/management/commands/setupsocial.py b/nextcloudappstore/core/management/commands/setupsocial.py\n--- a/nextcloudappstore/core/management/commands/setupsocial.py\n+++ b/nextcloudappstore/core/management/commands/setupsocial.py\n@@ -21,7 +21,7 @@\n         # set up site which is required for social login\n         site = Site.objects.all()[0]\n         site.domain = options['domain']\n-        site.name = options['domain']\n+        site.name = 'Nextcloud App Store'\n         site.save()\n         # set up github\n         app, created = SocialApp.objects.get_or_create(provider='github')\n", "issue": "Email confirmation email should be improved\nI couldn't find the text for the email, so I suspect it's from some library.\n\nHere is the content:\n\n---\n\nHello from **apps.nextcloud.com**!\n\nYou're receiving this e-mail because user oparoz at apps.nextcloud.com has given **yours as an e-mail address to connect their account**.\n\nTo confirm this is correct, go to https://apps.nextcloud.com/confirm-email/Mzc:1bZksL:Y8YI3zMQ0fOllevi3VhZ-dmiSMU/\n\nThank you from **apps.nextcloud.com**!\n**apps.nextcloud.com**\n\n---\n\nI've highlighted what should be altered.\n\n", "before_files": [{"content": "from allauth.socialaccount.models import SocialApp\nfrom django.contrib.sites.models import Site\nfrom django.core.management import BaseCommand\n\n\nclass Command(BaseCommand):\n    help = ('Updates the first site with the given domain and creates or '\n            'updates the GitHub social login application')\n\n    def add_arguments(self, parser):\n        social_meta = SocialApp._meta\n        parser.add_argument('--github-secret', required=True,\n                            help=social_meta.get_field('secret').help_text)\n        parser.add_argument('--github-client-id', required=True,\n                            help=social_meta.get_field('client_id').help_text)\n        site_meta = Site._meta\n        parser.add_argument('--domain', required=True,\n                            help=site_meta.get_field('domain').help_text)\n\n    def handle(self, *args, **options):\n        # set up site which is required for social login\n        site = Site.objects.all()[0]\n        site.domain = options['domain']\n        site.name = options['domain']\n        site.save()\n        # set up github\n        app, created = SocialApp.objects.get_or_create(provider='github')\n        app.name = 'GitHub'\n        app.secret = options['github_secret']\n        app.client_id = options['github_client_id']\n        app.sites.add(site)\n        app.save()\n\n        msg = 'Successfully initialized social accounts'\n        self.stdout.write(self.style.SUCCESS(msg))\n", "path": "nextcloudappstore/core/management/commands/setupsocial.py"}]}