prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  little typo on The Bureau page
  http://beta.consumerfinance.gov/the-bureau/
  
  "Organizaitonal structure and leadership >"
  
  should be Organizational
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `_lib/wordpress_post_processor.py`
  Content:
  ```
  1 import sys
  2 import json
  3 import os.path
  4 import requests
  5 from string import Template
  6 
  7 import dateutil.parser
  8 
  9 def posts_at_url(url):
  10     
  11     current_page = 1
  12     max_page = sys.maxint
  13 
  14     while current_page <= max_page:
  15 
  16         url = os.path.expandvars(url)
  17         resp = requests.get(url, params={'page':current_page, 'count': '-1'})
  18         results = json.loads(resp.content) 
  19         current_page += 1
  20         max_page = results['pages']
  21         total = 0
  22         for p in results['posts']:
  23             total += 1
  24             yield p
  25 
  26 def documents(name, url, **kwargs):
  27     
  28     for post in posts_at_url(url):
  29         yield process_post(post)
  30 
  31 
  32 def process_post(post, newsroom = False):
  33     del post['comments']
  34     post['_id'] = post['slug']
  35     # remove fields we're not interested in
  36     if post['type'] == 'cfpb_newsroom':
  37         post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_cfpb_newsroom_cat_taxonomy']]
  38     elif post['type'] == 'post':
  39         post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_fj_category']]
  40     if post['type'] == 'watchroom':
  41         post['author'] = [post['author']['name']]
  42         # convert watchroom_data_x into a proper list
  43         links = []
  44         for x in xrange(0,10):
  45             custom_fields = post['custom_fields']
  46             key = 'watchroom_data_%s_link' % x
  47             if key in custom_fields:
  48                 links.append(custom_fields[key])
  49         post['links'] = links
  50     else:
  51         post['tags'] = [tag['title'] for tag in post['taxonomy_fj_tag']]
  52         post['author'] = [author['title'] for author in
  53             post['taxonomy_fj_author'] if 'Press Release' not in
  54             post['category']]
  55     if newsroom and post['type'] == 'post':
  56         post['category'][0] = "Blog"
  57     author_template = Template("$first_name $last_name")
  58     dt = dateutil.parser.parse(post['date'])
  59     dt_string = dt.strftime('%Y-%m-%dT%H:%M:%SZ')
  60     post['date'] = dt_string
  61     if 'twtr_text' in post['custom_fields']:
  62         post['twtr_text'] = post['custom_fields']['twtr_text'][0]
  63     if 'twtr_lang' in post['custom_fields']:
  64         post['twtr_lang'] = post['custom_fields']['twtr_lang'][0]
  65     if 'twtr_rel' in post['custom_fields']:
  66         post['twtr_rel'] = post['custom_fields']['twtr_rel'][0]
  67     if 'twtr_hash' in post['custom_fields']:
  68         post['twtr_hash'] = post['custom_fields']['twtr_hash'][0]
  69     return post
  70
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/_lib/wordpress_post_processor.py b/_lib/wordpress_post_processor.py
  --- a/_lib/wordpress_post_processor.py
  +++ b/_lib/wordpress_post_processor.py
  @@ -37,13 +37,13 @@
           post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_cfpb_newsroom_cat_taxonomy']]
       elif post['type'] == 'post':
           post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_fj_category']]
  -    if post['type'] == 'watchroom':
  +    if post['type'] == 'featured_topic':
           post['author'] = [post['author']['name']]
  -        # convert watchroom_data_x into a proper list
  +        # convert featured_topic_data_x into a proper list
           links = []
           for x in xrange(0,10):
               custom_fields = post['custom_fields']
  -            key = 'watchroom_data_%s_link' % x
  +            key = 'featured_topic_data_%s_link' % x
               if key in custom_fields:
                   links.append(custom_fields[key])
           post['links'] = links
  
verification_info: {"golden_diff": "diff --git a/_lib/wordpress_post_processor.py b/_lib/wordpress_post_processor.py\n--- a/_lib/wordpress_post_processor.py\n+++ b/_lib/wordpress_post_processor.py\n@@ -37,13 +37,13 @@\n         post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_cfpb_newsroom_cat_taxonomy']]\n     elif post['type'] == 'post':\n         post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_fj_category']]\n-    if post['type'] == 'watchroom':\n+    if post['type'] == 'featured_topic':\n         post['author'] = [post['author']['name']]\n-        # convert watchroom_data_x into a proper list\n+        # convert featured_topic_data_x into a proper list\n         links = []\n         for x in xrange(0,10):\n             custom_fields = post['custom_fields']\n-            key = 'watchroom_data_%s_link' % x\n+            key = 'featured_topic_data_%s_link' % x\n             if key in custom_fields:\n                 links.append(custom_fields[key])\n         post['links'] = links\n", "issue": "little typo on The Bureau page\nhttp://beta.consumerfinance.gov/the-bureau/\n\n\"Organizaitonal structure and leadership >\"\n\nshould be Organizational\n\n", "before_files": [{"content": "import sys\nimport json\nimport os.path\nimport requests\nfrom string import Template\n\nimport dateutil.parser\n\ndef posts_at_url(url):\n    \n    current_page = 1\n    max_page = sys.maxint\n\n    while current_page <= max_page:\n\n        url = os.path.expandvars(url)\n        resp = requests.get(url, params={'page':current_page, 'count': '-1'})\n        results = json.loads(resp.content) \n        current_page += 1\n        max_page = results['pages']\n        total = 0\n        for p in results['posts']:\n            total += 1\n            yield p\n\ndef documents(name, url, **kwargs):\n    \n    for post in posts_at_url(url):\n        yield process_post(post)\n\n\ndef process_post(post, newsroom = False):\n    del post['comments']\n    post['_id'] = post['slug']\n    # remove fields we're not interested in\n    if post['type'] == 'cfpb_newsroom':\n        post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_cfpb_newsroom_cat_taxonomy']]\n    elif post['type'] == 'post':\n        post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_fj_category']]\n    if post['type'] == 'watchroom':\n        post['author'] = [post['author']['name']]\n        # convert watchroom_data_x into a proper list\n        links = []\n        for x in xrange(0,10):\n            custom_fields = post['custom_fields']\n            key = 'watchroom_data_%s_link' % x\n            if key in custom_fields:\n                links.append(custom_fields[key])\n        post['links'] = links\n    else:\n        post['tags'] = [tag['title'] for tag in post['taxonomy_fj_tag']]\n        post['author'] = [author['title'] for author in\n            post['taxonomy_fj_author'] if 'Press Release' not in\n            post['category']]\n    if newsroom and post['type'] == 'post':\n        post['category'][0] = \"Blog\"\n    author_template = Template(\"$first_name $last_name\")\n    dt = dateutil.parser.parse(post['date'])\n    dt_string = dt.strftime('%Y-%m-%dT%H:%M:%SZ')\n    post['date'] = dt_string\n    if 'twtr_text' in post['custom_fields']:\n        post['twtr_text'] = post['custom_fields']['twtr_text'][0]\n    if 'twtr_lang' in post['custom_fields']:\n        post['twtr_lang'] = post['custom_fields']['twtr_lang'][0]\n    if 'twtr_rel' in post['custom_fields']:\n        post['twtr_rel'] = post['custom_fields']['twtr_rel'][0]\n    if 'twtr_hash' in post['custom_fields']:\n        post['twtr_hash'] = post['custom_fields']['twtr_hash'][0]\n    return post\n", "path": "_lib/wordpress_post_processor.py"}], "after_files": [{"content": "import sys\nimport json\nimport os.path\nimport requests\nfrom string import Template\n\nimport dateutil.parser\n\ndef posts_at_url(url):\n    \n    current_page = 1\n    max_page = sys.maxint\n\n    while current_page <= max_page:\n\n        url = os.path.expandvars(url)\n        resp = requests.get(url, params={'page':current_page, 'count': '-1'})\n        results = json.loads(resp.content) \n        current_page += 1\n        max_page = results['pages']\n        total = 0\n        for p in results['posts']:\n            total += 1\n            yield p\n\ndef documents(name, url, **kwargs):\n    \n    for post in posts_at_url(url):\n        yield process_post(post)\n\n\ndef process_post(post, newsroom = False):\n    del post['comments']\n    post['_id'] = post['slug']\n    # remove fields we're not interested in\n    if post['type'] == 'cfpb_newsroom':\n        post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_cfpb_newsroom_cat_taxonomy']]\n    elif post['type'] == 'post':\n        post['category'] = [cat['title'].replace('&amp;', '&') for cat in post['taxonomy_fj_category']]\n    if post['type'] == 'featured_topic':\n        post['author'] = [post['author']['name']]\n        # convert featured_topic_data_x into a proper list\n        links = []\n        for x in xrange(0,10):\n            custom_fields = post['custom_fields']\n            key = 'featured_topic_data_%s_link' % x\n            if key in custom_fields:\n                links.append(custom_fields[key])\n        post['links'] = links\n    else:\n        post['tags'] = [tag['title'] for tag in post['taxonomy_fj_tag']]\n        post['author'] = [author['title'] for author in\n            post['taxonomy_fj_author'] if 'Press Release' not in\n            post['category']]\n    if newsroom and post['type'] == 'post':\n        post['category'][0] = \"Blog\"\n    author_template = Template(\"$first_name $last_name\")\n    dt = dateutil.parser.parse(post['date'])\n    dt_string = dt.strftime('%Y-%m-%dT%H:%M:%SZ')\n    post['date'] = dt_string\n    if 'twtr_text' in post['custom_fields']:\n        post['twtr_text'] = post['custom_fields']['twtr_text'][0]\n    if 'twtr_lang' in post['custom_fields']:\n        post['twtr_lang'] = post['custom_fields']['twtr_lang'][0]\n    if 'twtr_rel' in post['custom_fields']:\n        post['twtr_rel'] = post['custom_fields']['twtr_rel'][0]\n    if 'twtr_hash' in post['custom_fields']:\n        post['twtr_hash'] = post['custom_fields']['twtr_hash'][0]\n    return post\n", "path": "_lib/wordpress_post_processor.py"}]}