prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Move to postgres
  That's the database of choice hasadna uses
  
  <!---
  @huboard:{"order":125.5,"milestone_order":81,"custom_state":""}
  -->
  
  
  </issue>
  <code>
  [start of config.py]
  1 import os
  2 
  3 #
  4 # This is the configuration file of the application
  5 #
  6 # Please make sure you don't store here any secret information and use environment
  7 # variables
  8 #
  9 
  10 
  11 SQLALCHEMY_DATABASE_URI = os.environ.get('CLEARDB_DATABASE_URL')
  12 SQLALCHEMY_POOL_RECYCLE = 60
  13 
  14 
  15 SECRET_KEY = 'aiosdjsaodjoidjioewnioewfnoeijfoisdjf'
  16 
  17 FACEBOOK_KEY = "157028231131213"
  18 FACEBOOK_SECRET = "0437ee70207dca46609219b990be0614"
  19
  [end of config.py]
  [start of mysqlshell.py]
  1 #!/usr/bin/env python
  2 import sys
  3 import os
  4 import urlparse
  5 
  6 def main():
  7     DATABASE_URI = os.getenv('CLEARDB_DATABASE_URL')
  8 
  9     if not DATABASE_URI:
  10         print >>sys.stderr, 'Environment CLEARDB_DATABASE_URL not set'
  11         sys.exit(1)
  12 
  13     db = urlparse.urlparse(DATABASE_URI)
  14     os.execlp('mysql', 'mysql', '-u', db.username, '-p' + db.password, '-h', db.hostname, db.path[1:])
  15 
  16 if __name__ == '__main__':
  17     main()
  18
  [end of mysqlshell.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/config.py b/config.py
  --- a/config.py
  +++ b/config.py
  @@ -8,7 +8,7 @@
   #
   
   
  -SQLALCHEMY_DATABASE_URI = os.environ.get('CLEARDB_DATABASE_URL')
  +SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL')
   SQLALCHEMY_POOL_RECYCLE = 60
   
   
  diff --git a/mysqlshell.py b/mysqlshell.py
  deleted file mode 100755
  --- a/mysqlshell.py
  +++ /dev/null
  @@ -1,17 +0,0 @@
  -#!/usr/bin/env python
  -import sys
  -import os
  -import urlparse
  -
  -def main():
  -    DATABASE_URI = os.getenv('CLEARDB_DATABASE_URL')
  -
  -    if not DATABASE_URI:
  -        print >>sys.stderr, 'Environment CLEARDB_DATABASE_URL not set'
  -        sys.exit(1)
  -
  -    db = urlparse.urlparse(DATABASE_URI)
  -    os.execlp('mysql', 'mysql', '-u', db.username, '-p' + db.password, '-h', db.hostname, db.path[1:])
  -
  -if __name__ == '__main__':
  -    main()
  
verification_info: {"golden_diff": "diff --git a/config.py b/config.py\n--- a/config.py\n+++ b/config.py\n@@ -8,7 +8,7 @@\n #\n \n \n-SQLALCHEMY_DATABASE_URI = os.environ.get('CLEARDB_DATABASE_URL')\n+SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL')\n SQLALCHEMY_POOL_RECYCLE = 60\n \n \ndiff --git a/mysqlshell.py b/mysqlshell.py\ndeleted file mode 100755\n--- a/mysqlshell.py\n+++ /dev/null\n@@ -1,17 +0,0 @@\n-#!/usr/bin/env python\n-import sys\n-import os\n-import urlparse\n-\n-def main():\n-    DATABASE_URI = os.getenv('CLEARDB_DATABASE_URL')\n-\n-    if not DATABASE_URI:\n-        print >>sys.stderr, 'Environment CLEARDB_DATABASE_URL not set'\n-        sys.exit(1)\n-\n-    db = urlparse.urlparse(DATABASE_URI)\n-    os.execlp('mysql', 'mysql', '-u', db.username, '-p' + db.password, '-h', db.hostname, db.path[1:])\n-\n-if __name__ == '__main__':\n-    main()\n", "issue": "Move to postgres\nThat's the database of choice hasadna uses\n\n<!---\n@huboard:{\"order\":125.5,\"milestone_order\":81,\"custom_state\":\"\"}\n-->\n\n", "before_files": [{"content": "import os\n\n#\n# This is the configuration file of the application\n#\n# Please make sure you don't store here any secret information and use environment\n# variables\n#\n\n\nSQLALCHEMY_DATABASE_URI = os.environ.get('CLEARDB_DATABASE_URL')\nSQLALCHEMY_POOL_RECYCLE = 60\n\n\nSECRET_KEY = 'aiosdjsaodjoidjioewnioewfnoeijfoisdjf'\n\nFACEBOOK_KEY = \"157028231131213\"\nFACEBOOK_SECRET = \"0437ee70207dca46609219b990be0614\"\n", "path": "config.py"}, {"content": "#!/usr/bin/env python\nimport sys\nimport os\nimport urlparse\n\ndef main():\n    DATABASE_URI = os.getenv('CLEARDB_DATABASE_URL')\n\n    if not DATABASE_URI:\n        print >>sys.stderr, 'Environment CLEARDB_DATABASE_URL not set'\n        sys.exit(1)\n\n    db = urlparse.urlparse(DATABASE_URI)\n    os.execlp('mysql', 'mysql', '-u', db.username, '-p' + db.password, '-h', db.hostname, db.path[1:])\n\nif __name__ == '__main__':\n    main()\n", "path": "mysqlshell.py"}]}