prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Code provided for students contain python code not compatible with python 3
  At least one file in the `code` directory, e.g., `gen_inflammation.py` fails when running it with python 3. The [problem is the "division" not giving an integer](https://github.com/swcarpentry/python-novice-inflammation/blob/11643f14d31726f2f60873c4ca1230fff0bbf108/code/gen_inflammation.py#L19). It needs to be changed to
  ```diff
  - upper / 4
  + upper // 4
  ```
  
  This was spotted by a student trying to check their installation and running different files.
  Other files may have similar errors. I'd suggest running and testing via CI everything we provide to the students.
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `code/gen_inflammation.py`
  Content:
  ```
  1 #!/usr/bin/env python
  2 
  3 """
  4 Generate pseudo-random patient inflammation data for use in Python lessons.
  5 """
  6 
  7 import random
  8 
  9 n_patients = 60
  10 n_days = 40
  11 n_range = 20
  12 
  13 middle = n_days / 2
  14 
  15 for p in range(n_patients):
  16     vals = []
  17     for d in range(n_days):
  18         upper = max(n_range - abs(d - middle), 0)
  19         vals.append(random.randint(upper/4, upper))
  20     print(','.join([str(v) for v in vals]))
  21
  ```
  --- 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/code/gen_inflammation.py b/code/gen_inflammation.py
  --- a/code/gen_inflammation.py
  +++ b/code/gen_inflammation.py
  @@ -16,5 +16,5 @@
       vals = []
       for d in range(n_days):
           upper = max(n_range - abs(d - middle), 0)
  -        vals.append(random.randint(upper/4, upper))
  +        vals.append(random.randint(upper//4, upper))
       print(','.join([str(v) for v in vals]))
  
verification_info: {"golden_diff": "diff --git a/code/gen_inflammation.py b/code/gen_inflammation.py\n--- a/code/gen_inflammation.py\n+++ b/code/gen_inflammation.py\n@@ -16,5 +16,5 @@\n     vals = []\n     for d in range(n_days):\n         upper = max(n_range - abs(d - middle), 0)\n-        vals.append(random.randint(upper/4, upper))\n+        vals.append(random.randint(upper//4, upper))\n     print(','.join([str(v) for v in vals]))\n", "issue": "Code provided for students contain python code not compatible with python 3\nAt least one file in the `code` directory, e.g., `gen_inflammation.py` fails when running it with python 3. The [problem is the \"division\" not giving an integer](https://github.com/swcarpentry/python-novice-inflammation/blob/11643f14d31726f2f60873c4ca1230fff0bbf108/code/gen_inflammation.py#L19). It needs to be changed to\r\n```diff\r\n- upper / 4\r\n+ upper // 4\r\n```\r\n\r\nThis was spotted by a student trying to check their installation and running different files.\r\nOther files may have similar errors. I'd suggest running and testing via CI everything we provide to the students.\r\n\n", "before_files": [{"content": "#!/usr/bin/env python\n\n\"\"\"\nGenerate pseudo-random patient inflammation data for use in Python lessons.\n\"\"\"\n\nimport random\n\nn_patients = 60\nn_days = 40\nn_range = 20\n\nmiddle = n_days / 2\n\nfor p in range(n_patients):\n    vals = []\n    for d in range(n_days):\n        upper = max(n_range - abs(d - middle), 0)\n        vals.append(random.randint(upper/4, upper))\n    print(','.join([str(v) for v in vals]))\n", "path": "code/gen_inflammation.py"}], "after_files": [{"content": "#!/usr/bin/env python\n\n\"\"\"\nGenerate pseudo-random patient inflammation data for use in Python lessons.\n\"\"\"\n\nimport random\n\nn_patients = 60\nn_days = 40\nn_range = 20\n\nmiddle = n_days / 2\n\nfor p in range(n_patients):\n    vals = []\n    for d in range(n_days):\n        upper = max(n_range - abs(d - middle), 0)\n        vals.append(random.randint(upper//4, upper))\n    print(','.join([str(v) for v in vals]))\n", "path": "code/gen_inflammation.py"}]}