prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Fixing some warnings and errors in the sample content.
  The current sample content is not up-to-date with the current Pelican mechanism.
  
  This will help new comers to understand better how Pelican works.
  
  * More valid articles.
  * More translations.
  * Images are now correctly displayed.
  
  </issue>
  <code>
  [start of samples/pelican.conf.py]
  1 # -*- coding: utf-8 -*-
  2 
  3 AUTHOR = 'Alexis Métaireau'
  4 SITENAME = "Alexis' log"
  5 SITESUBTITLE = 'A personal blog.'
  6 SITEURL = 'http://blog.notmyidea.org'
  7 TIMEZONE = "Europe/Paris"
  8 
  9 # can be useful in development, but set to False when you're ready to publish
  10 RELATIVE_URLS = True
  11 
  12 GITHUB_URL = 'http://github.com/ametaireau/'
  13 DISQUS_SITENAME = "blog-notmyidea"
  14 REVERSE_CATEGORY_ORDER = True
  15 LOCALE = "C"
  16 DEFAULT_PAGINATION = 4
  17 DEFAULT_DATE = (2012, 3, 2, 14, 1, 1)
  18 
  19 FEED_ALL_RSS = 'feeds/all.rss.xml'
  20 CATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml'
  21 
  22 LINKS = (('Biologeek', 'http://biologeek.org'),
  23          ('Filyb', "http://filyb.info/"),
  24          ('Libert-fr', "http://www.libert-fr.com"),
  25          ('N1k0', "http://prendreuncafe.com/blog/"),
  26          ('Tarek Ziadé', "http://ziade.org/blog"),
  27          ('Zubin Mithra', "http://zubin71.wordpress.com/"),)
  28 
  29 SOCIAL = (('twitter', 'http://twitter.com/ametaireau'),
  30           ('lastfm', 'http://lastfm.com/user/akounet'),
  31           ('github', 'http://github.com/ametaireau'),)
  32 
  33 # global metadata to all the contents
  34 DEFAULT_METADATA = {'yeah': 'it is'}
  35 
  36 # path-specific metadata
  37 EXTRA_PATH_METADATA = {
  38     'extra/robots.txt': {'path': 'robots.txt'},
  39     }
  40 
  41 # static paths will be copied without parsing their contents
  42 STATIC_PATHS = [
  43     'pictures',
  44     'extra/robots.txt',
  45     ]
  46 
  47 # custom page generated with a jinja2 template
  48 TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
  49 
  50 # code blocks with line numbers
  51 PYGMENTS_RST_OPTIONS = {'linenos': 'table'}
  52 
  53 # foobar will not be used, because it's not in caps. All configuration keys
  54 # have to be in caps
  55 foobar = "barbaz"
  56
  [end of samples/pelican.conf.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/samples/pelican.conf.py b/samples/pelican.conf.py
  --- a/samples/pelican.conf.py
  +++ b/samples/pelican.conf.py
  @@ -40,13 +40,16 @@
   
   # static paths will be copied without parsing their contents
   STATIC_PATHS = [
  -    'pictures',
  +    'images',
       'extra/robots.txt',
       ]
   
   # custom page generated with a jinja2 template
   TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
   
  +# there is no other HTML content
  +READERS = {'html': None}
  +
   # code blocks with line numbers
   PYGMENTS_RST_OPTIONS = {'linenos': 'table'}
  
verification_info: {"golden_diff": "diff --git a/samples/pelican.conf.py b/samples/pelican.conf.py\n--- a/samples/pelican.conf.py\n+++ b/samples/pelican.conf.py\n@@ -40,13 +40,16 @@\n \n # static paths will be copied without parsing their contents\n STATIC_PATHS = [\n-    'pictures',\n+    'images',\n     'extra/robots.txt',\n     ]\n \n # custom page generated with a jinja2 template\n TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}\n \n+# there is no other HTML content\n+READERS = {'html': None}\n+\n # code blocks with line numbers\n PYGMENTS_RST_OPTIONS = {'linenos': 'table'}\n", "issue": "Fixing some warnings and errors in the sample content.\nThe current sample content is not up-to-date with the current Pelican mechanism.\r\n\r\nThis will help new comers to understand better how Pelican works.\r\n\r\n* More valid articles.\r\n* More translations.\r\n* Images are now correctly displayed.\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\nAUTHOR = 'Alexis M\u00e9taireau'\nSITENAME = \"Alexis' log\"\nSITESUBTITLE = 'A personal blog.'\nSITEURL = 'http://blog.notmyidea.org'\nTIMEZONE = \"Europe/Paris\"\n\n# can be useful in development, but set to False when you're ready to publish\nRELATIVE_URLS = True\n\nGITHUB_URL = 'http://github.com/ametaireau/'\nDISQUS_SITENAME = \"blog-notmyidea\"\nREVERSE_CATEGORY_ORDER = True\nLOCALE = \"C\"\nDEFAULT_PAGINATION = 4\nDEFAULT_DATE = (2012, 3, 2, 14, 1, 1)\n\nFEED_ALL_RSS = 'feeds/all.rss.xml'\nCATEGORY_FEED_RSS = 'feeds/{slug}.rss.xml'\n\nLINKS = (('Biologeek', 'http://biologeek.org'),\n         ('Filyb', \"http://filyb.info/\"),\n         ('Libert-fr', \"http://www.libert-fr.com\"),\n         ('N1k0', \"http://prendreuncafe.com/blog/\"),\n         ('Tarek Ziad\u00e9', \"http://ziade.org/blog\"),\n         ('Zubin Mithra', \"http://zubin71.wordpress.com/\"),)\n\nSOCIAL = (('twitter', 'http://twitter.com/ametaireau'),\n          ('lastfm', 'http://lastfm.com/user/akounet'),\n          ('github', 'http://github.com/ametaireau'),)\n\n# global metadata to all the contents\nDEFAULT_METADATA = {'yeah': 'it is'}\n\n# path-specific metadata\nEXTRA_PATH_METADATA = {\n    'extra/robots.txt': {'path': 'robots.txt'},\n    }\n\n# static paths will be copied without parsing their contents\nSTATIC_PATHS = [\n    'pictures',\n    'extra/robots.txt',\n    ]\n\n# custom page generated with a jinja2 template\nTEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}\n\n# code blocks with line numbers\nPYGMENTS_RST_OPTIONS = {'linenos': 'table'}\n\n# foobar will not be used, because it's not in caps. All configuration keys\n# have to be in caps\nfoobar = \"barbaz\"\n", "path": "samples/pelican.conf.py"}]}