prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [site_list.py] change numbering to reduce commit size
  letting the markdown renderer do the counting lets us reduce commit size and avoide possible merge conflicts.
  
  ---
  
  ```
  1.
  1.
  1.
  ```
  renders to:
  
  1.
  1.
  1.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `site_list.py`
  Content:
  ```
  1 """Sherlock: Supported Site Listing
  2 This module generates the listing of supported sites
  3 which can be found in sites.md
  4 It also organizes all the sites in alphanumeric order
  5 """
  6 import json
  7 
  8 pool = list()
  9 
  10 with open("sherlock/resources/data.json", "r", encoding="utf-8") as data_file:
  11     data = json.load(data_file)
  12 
  13 with open("sites.md", "w") as site_file:
  14     data_length = len(data)
  15     site_file.write(f'## List Of Supported Sites ({data_length} Sites In Total!)\n')
  16 
  17     for social_network in data:
  18         url_main = data.get(social_network).get("urlMain")
  19         pool.append((social_network, url_main))
  20 
  21     index = 1
  22     for social_network, url_main in pool:
  23         site_file.write(f'{index}. [{social_network}]({url_main})\n')
  24         index = index + 1
  25 
  26 
  27 sorted_json_data = json.dumps(data, indent=2, sort_keys=True)
  28 
  29 with open("sherlock/resources/data.json", "w") as data_file:
  30     data_file.write(sorted_json_data)
  31 
  32 print("Finished updating supported site listing!")
  33
  ```
  --- 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/site_list.py b/site_list.py
  --- a/site_list.py
  +++ b/site_list.py
  @@ -18,11 +18,8 @@
           url_main = data.get(social_network).get("urlMain")
           pool.append((social_network, url_main))
   
  -    index = 1
       for social_network, url_main in pool:
  -        site_file.write(f'{index}. [{social_network}]({url_main})\n')
  -        index = index + 1
  -
  +        site_file.write(f'1. [{social_network}]({url_main})\n')
   
   sorted_json_data = json.dumps(data, indent=2, sort_keys=True)
  
verification_info: {"golden_diff": "diff --git a/site_list.py b/site_list.py\n--- a/site_list.py\n+++ b/site_list.py\n@@ -18,11 +18,8 @@\n         url_main = data.get(social_network).get(\"urlMain\")\n         pool.append((social_network, url_main))\n \n-    index = 1\n     for social_network, url_main in pool:\n-        site_file.write(f'{index}. [{social_network}]({url_main})\\n')\n-        index = index + 1\n-\n+        site_file.write(f'1. [{social_network}]({url_main})\\n')\n \n sorted_json_data = json.dumps(data, indent=2, sort_keys=True)\n", "issue": "[site_list.py] change numbering to reduce commit size\nletting the markdown renderer do the counting lets us reduce commit size and avoide possible merge conflicts.\r\n\r\n---\r\n\r\n```\r\n1.\r\n1.\r\n1.\r\n```\r\nrenders to:\r\n\r\n1.\r\n1.\r\n1.\n", "before_files": [{"content": "\"\"\"Sherlock: Supported Site Listing\nThis module generates the listing of supported sites\nwhich can be found in sites.md\nIt also organizes all the sites in alphanumeric order\n\"\"\"\nimport json\n\npool = list()\n\nwith open(\"sherlock/resources/data.json\", \"r\", encoding=\"utf-8\") as data_file:\n    data = json.load(data_file)\n\nwith open(\"sites.md\", \"w\") as site_file:\n    data_length = len(data)\n    site_file.write(f'## List Of Supported Sites ({data_length} Sites In Total!)\\n')\n\n    for social_network in data:\n        url_main = data.get(social_network).get(\"urlMain\")\n        pool.append((social_network, url_main))\n\n    index = 1\n    for social_network, url_main in pool:\n        site_file.write(f'{index}. [{social_network}]({url_main})\\n')\n        index = index + 1\n\n\nsorted_json_data = json.dumps(data, indent=2, sort_keys=True)\n\nwith open(\"sherlock/resources/data.json\", \"w\") as data_file:\n    data_file.write(sorted_json_data)\n\nprint(\"Finished updating supported site listing!\")\n", "path": "site_list.py"}], "after_files": [{"content": "\"\"\"Sherlock: Supported Site Listing\nThis module generates the listing of supported sites\nwhich can be found in sites.md\nIt also organizes all the sites in alphanumeric order\n\"\"\"\nimport json\n\npool = list()\n\nwith open(\"sherlock/resources/data.json\", \"r\", encoding=\"utf-8\") as data_file:\n    data = json.load(data_file)\n\nwith open(\"sites.md\", \"w\") as site_file:\n    data_length = len(data)\n    site_file.write(f'## List Of Supported Sites ({data_length} Sites In Total!)\\n')\n\n    for social_network in data:\n        url_main = data.get(social_network).get(\"urlMain\")\n        pool.append((social_network, url_main))\n\n    for social_network, url_main in pool:\n        site_file.write(f'1. [{social_network}]({url_main})\\n')\n\nsorted_json_data = json.dumps(data, indent=2, sort_keys=True)\n\nwith open(\"sherlock/resources/data.json\", \"w\") as data_file:\n    data_file.write(sorted_json_data)\n\nprint(\"Finished updating supported site listing!\")\n", "path": "site_list.py"}]}