prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  disk quota on Account commands page errors
  When trying to check disk quota usage on the commands page (https://www.ocf.berkeley.edu/account/commands/)
  this error appears
  
  `quota: Bad output format units for human readable output: vQ`
  
  ![image](https://user-images.githubusercontent.com/50010165/212457900-d267910d-2452-4483-9a05-291ee91a08f8.png)
  
  
  </issue>
  <code>
  [start of ocfweb/account/commands.py]
  1 from django import forms
  2 from django.forms import widgets
  3 from django.http import HttpRequest
  4 from django.http import HttpResponse
  5 from django.shortcuts import render
  6 from paramiko import AuthenticationException
  7 from paramiko import SSHClient
  8 from paramiko.hostkeys import HostKeyEntry
  9 
  10 from ocfweb.component.forms import Form
  11 
  12 
  13 def commands(request: HttpRequest) -> HttpResponse:
  14     command_to_run = ''
  15     output = ''
  16     error = ''
  17     if request.method == 'POST':
  18         form = CommandForm(request.POST)
  19         if form.is_valid():
  20             username = form.cleaned_data['username']
  21             password = form.cleaned_data['password']
  22 
  23             command_to_run = form.cleaned_data['command_to_run']
  24 
  25             ssh = SSHClient()
  26 
  27             host_keys = ssh.get_host_keys()
  28             entry = HostKeyEntry.from_line(
  29                 'ssh.ocf.berkeley.edu ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqMkHVVoMl8md25iky7e2Xe3ARaC4H1PbIpv5Y+xT4KOT17gGvFSmfjGyW9P8ZTyqxq560iWdyELIn7efaGPbkUo9retcnT6WLmuh9nRIYwb6w7BGEEvlblBmH27Fkgt7JQ6+1sr5teuABfIMg22WTQAeDQe1jg0XsPu36OjbC7HjA3BXsiNBpxKDolYIXWzOD+r9FxZLP0lawh8dl//O5FW4ha1IbHklq2i9Mgl79wAH3jxf66kQJTvLmalKnQ0Dbp2+vYGGhIjVFXlGSzKsHAVhuVD6TBXZbxWOYoXanS7CC43MrEtBYYnc6zMn/k/rH0V+WeRhuzTnr/OZGJbBBw==',  # noqa
  30             )
  31             assert entry is not None  # should never be none as we are passing a static string above
  32             host_keys.add(
  33                 'ssh.ocf.berkeley.edu',
  34                 'ssh-rsa',
  35                 entry.key,
  36             )
  37 
  38             try:
  39                 ssh.connect(
  40                     'ssh.ocf.berkeley.edu',
  41                     username=username,
  42                     password=password,
  43                 )
  44             except AuthenticationException:
  45                 error = 'Authentication failed. Did you type the wrong username or password?'
  46 
  47             if not error:
  48                 _, ssh_stdout, ssh_stderr = ssh.exec_command(command_to_run, get_pty=True)
  49                 output = ssh_stdout.read().decode()
  50                 error = ssh_stderr.read().decode()
  51     else:
  52         form = CommandForm()
  53 
  54     return render(
  55         request,
  56         'account/commands/index.html', {
  57             'title': 'Account commands',
  58             'form': form,
  59             'command': command_to_run,
  60             'output': output,
  61             'error': error,
  62         },
  63     )
  64 
  65 
  66 class CommandForm(Form):
  67     username = forms.CharField(
  68         label='OCF username',
  69         min_length=3,
  70         max_length=16,
  71     )
  72     password = forms.CharField(
  73         widget=forms.PasswordInput,
  74         label='Password',
  75         min_length=8,
  76         max_length=256,
  77     )
  78 
  79     COMMAND_CHOICES = (
  80         (
  81             '/opt/share/utils/bin/paper',
  82             'paper quota -- how many pages you have remaining this semester',
  83         ),
  84         (
  85             '/usr/bin/quota -svQ',
  86             'disk quota -- how much disk space you have used and how much you ' +
  87             'have left',
  88         ),
  89         (
  90             '/opt/share/utils/bin/makehttp',
  91             'makehttp -- set up the web space for your OCF account',
  92         ),
  93         (
  94             'echo yes | /opt/share/utils/bin/makemysql',
  95             'makemysql -- reset your MySQL database password, or create a new ' +
  96             'MySQL database (copy down the password somewhere secure)',
  97         ),
  98     )
  99 
  100     command_to_run = forms.ChoiceField(
  101         choices=COMMAND_CHOICES,
  102         label='Command to run',
  103         widget=widgets.RadioSelect,
  104     )
  105
  [end of ocfweb/account/commands.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/ocfweb/account/commands.py b/ocfweb/account/commands.py
  --- a/ocfweb/account/commands.py
  +++ b/ocfweb/account/commands.py
  @@ -82,7 +82,7 @@
               'paper quota -- how many pages you have remaining this semester',
           ),
           (
  -            '/usr/bin/quota -svQ',
  +            '/usr/bin/quota -vQs',
               'disk quota -- how much disk space you have used and how much you ' +
               'have left',
           ),
  
verification_info: {"golden_diff": "diff --git a/ocfweb/account/commands.py b/ocfweb/account/commands.py\n--- a/ocfweb/account/commands.py\n+++ b/ocfweb/account/commands.py\n@@ -82,7 +82,7 @@\n             'paper quota -- how many pages you have remaining this semester',\n         ),\n         (\n-            '/usr/bin/quota -svQ',\n+            '/usr/bin/quota -vQs',\n             'disk quota -- how much disk space you have used and how much you ' +\n             'have left',\n         ),\n", "issue": "disk quota on Account commands page errors\nWhen trying to check disk quota usage on the commands page (https://www.ocf.berkeley.edu/account/commands/)\r\nthis error appears\r\n\r\n`quota: Bad output format units for human readable output: vQ`\r\n\r\n![image](https://user-images.githubusercontent.com/50010165/212457900-d267910d-2452-4483-9a05-291ee91a08f8.png)\r\n\n", "before_files": [{"content": "from django import forms\nfrom django.forms import widgets\nfrom django.http import HttpRequest\nfrom django.http import HttpResponse\nfrom django.shortcuts import render\nfrom paramiko import AuthenticationException\nfrom paramiko import SSHClient\nfrom paramiko.hostkeys import HostKeyEntry\n\nfrom ocfweb.component.forms import Form\n\n\ndef commands(request: HttpRequest) -> HttpResponse:\n    command_to_run = ''\n    output = ''\n    error = ''\n    if request.method == 'POST':\n        form = CommandForm(request.POST)\n        if form.is_valid():\n            username = form.cleaned_data['username']\n            password = form.cleaned_data['password']\n\n            command_to_run = form.cleaned_data['command_to_run']\n\n            ssh = SSHClient()\n\n            host_keys = ssh.get_host_keys()\n            entry = HostKeyEntry.from_line(\n                'ssh.ocf.berkeley.edu ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqMkHVVoMl8md25iky7e2Xe3ARaC4H1PbIpv5Y+xT4KOT17gGvFSmfjGyW9P8ZTyqxq560iWdyELIn7efaGPbkUo9retcnT6WLmuh9nRIYwb6w7BGEEvlblBmH27Fkgt7JQ6+1sr5teuABfIMg22WTQAeDQe1jg0XsPu36OjbC7HjA3BXsiNBpxKDolYIXWzOD+r9FxZLP0lawh8dl//O5FW4ha1IbHklq2i9Mgl79wAH3jxf66kQJTvLmalKnQ0Dbp2+vYGGhIjVFXlGSzKsHAVhuVD6TBXZbxWOYoXanS7CC43MrEtBYYnc6zMn/k/rH0V+WeRhuzTnr/OZGJbBBw==',  # noqa\n            )\n            assert entry is not None  # should never be none as we are passing a static string above\n            host_keys.add(\n                'ssh.ocf.berkeley.edu',\n                'ssh-rsa',\n                entry.key,\n            )\n\n            try:\n                ssh.connect(\n                    'ssh.ocf.berkeley.edu',\n                    username=username,\n                    password=password,\n                )\n            except AuthenticationException:\n                error = 'Authentication failed. Did you type the wrong username or password?'\n\n            if not error:\n                _, ssh_stdout, ssh_stderr = ssh.exec_command(command_to_run, get_pty=True)\n                output = ssh_stdout.read().decode()\n                error = ssh_stderr.read().decode()\n    else:\n        form = CommandForm()\n\n    return render(\n        request,\n        'account/commands/index.html', {\n            'title': 'Account commands',\n            'form': form,\n            'command': command_to_run,\n            'output': output,\n            'error': error,\n        },\n    )\n\n\nclass CommandForm(Form):\n    username = forms.CharField(\n        label='OCF username',\n        min_length=3,\n        max_length=16,\n    )\n    password = forms.CharField(\n        widget=forms.PasswordInput,\n        label='Password',\n        min_length=8,\n        max_length=256,\n    )\n\n    COMMAND_CHOICES = (\n        (\n            '/opt/share/utils/bin/paper',\n            'paper quota -- how many pages you have remaining this semester',\n        ),\n        (\n            '/usr/bin/quota -svQ',\n            'disk quota -- how much disk space you have used and how much you ' +\n            'have left',\n        ),\n        (\n            '/opt/share/utils/bin/makehttp',\n            'makehttp -- set up the web space for your OCF account',\n        ),\n        (\n            'echo yes | /opt/share/utils/bin/makemysql',\n            'makemysql -- reset your MySQL database password, or create a new ' +\n            'MySQL database (copy down the password somewhere secure)',\n        ),\n    )\n\n    command_to_run = forms.ChoiceField(\n        choices=COMMAND_CHOICES,\n        label='Command to run',\n        widget=widgets.RadioSelect,\n    )\n", "path": "ocfweb/account/commands.py"}]}