prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Change name of chat room from Matrix/Riot to Element
  The name of the chat platform we are using has [changed from Matrix/Riot to Element](https://element.io/blog/the-world-is-changing/).  We should change the name of our chat room accordingly, including in our README file and possibly some places in our documentation.
  
  </issue>
  <code>
  [start of plasmapy/particles/isotopes.py]
  1 """
  2 Module for loading isotope data from :file:`plasmapy/particles/data/isotopes.json`.
  3 
  4 .. attention::
  5     This module only contains non-public functionality.  To learn more about the
  6     package functionality, then examine the code itself.
  7 """
  8 __all__ = []
  9 
  10 import astropy.units as u
  11 import json
  12 import pkgutil
  13 
  14 # this code was used to create the JSON file as per vn-ki on Riot:
  15 # https://matrix.to/#/!hkWCiyhQyxiYJlUtKF:matrix.org/
  16 #    $1554667515670438wIKlP:matrix.org?via=matrix.org&via=cadair.com
  17 #
  18 # def _isotope_default(obj):
  19 #     if isinstance(obj, u.Quantity):
  20 #         return {
  21 #             "unit": obj.unit.name,
  22 #             "value": obj.value,
  23 #         }
  24 # with open("isotopes.json", "w") as f:
  25 #     json.dump(_Isotopes, f, default=plasma_default, indent=2)
  26 
  27 
  28 def _isotope_obj_hook(obj):
  29     """An `object_hook` designed for `json.load` and `json.loads`."""
  30     if "unit" in obj:
  31         return obj["value"] * u.Unit(obj["unit"])
  32     return obj
  33 
  34 
  35 #: Dictionary of isotope data.
  36 _Isotopes = json.loads(
  37     pkgutil.get_data("plasmapy", "particles/data/isotopes.json"),
  38     object_hook=_isotope_obj_hook,
  39 )
  40
  [end of plasmapy/particles/isotopes.py]
  [start of plasmapy/particles/elements.py]
  1 """
  2 Module for loading atomic data for elements from
  3 :file:`plasmapy/particles/data/elements.json`.
  4 
  5 The periodic tabla data is from: http://periodic.lanl.gov/index.shtml
  6 
  7 .. attention::
  8     This module only contains non-public functionality.  To learn more about the
  9     package functionality, examine the code itself.
  10 """
  11 __all__ = []
  12 
  13 import astropy.units as u
  14 import collections
  15 import json
  16 import pkgutil
  17 
  18 _PeriodicTable = collections.namedtuple(
  19     "periodic_table", ["group", "category", "block", "period"]
  20 )
  21 
  22 
  23 def _element_obj_hook(obj):
  24     if "unit" in obj:
  25         return obj["value"] * u.Unit(obj["unit"])
  26     return obj
  27 
  28 
  29 # this code was used to create the JSON file as per vn-ki on Riot:
  30 # https://matrix.to/#/!hkWCiyhQyxiYJlUtKF:matrix.org/
  31 #    $1554667515670438wIKlP:matrix.org?via=matrix.org&via=cadair.com
  32 #
  33 # def plasma_default(obj):
  34 #     if isinstance(obj, u.Quantity):
  35 #         return {
  36 #             "unit": obj.unit.name,
  37 #             "value": obj.value,
  38 #         }
  39 #
  40 # with open("elements.json", "w") as f:
  41 #    json.dump(_Elements, f, default=plasma_default, indent=2)
  42 
  43 
  44 _Elements = json.loads(
  45     pkgutil.get_data("plasmapy", "particles/data/elements.json"),
  46     object_hook=_element_obj_hook,
  47 )
  48 
  49 
  50 _atomic_numbers_to_symbols = {
  51     elemdict["atomic number"]: symb for (symb, elemdict) in _Elements.items()
  52 }
  53 
  54 _element_names_to_symbols = {
  55     elemdict["element name"]: symb for (symb, elemdict) in _Elements.items()
  56 }
  57
  [end of plasmapy/particles/elements.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/plasmapy/particles/elements.py b/plasmapy/particles/elements.py
  --- a/plasmapy/particles/elements.py
  +++ b/plasmapy/particles/elements.py
  @@ -26,7 +26,7 @@
       return obj
   
   
  -# this code was used to create the JSON file as per vn-ki on Riot:
  +# this code was used to create the JSON file as per vn-ki on Matrix:
   # https://matrix.to/#/!hkWCiyhQyxiYJlUtKF:matrix.org/
   #    $1554667515670438wIKlP:matrix.org?via=matrix.org&via=cadair.com
   #
  diff --git a/plasmapy/particles/isotopes.py b/plasmapy/particles/isotopes.py
  --- a/plasmapy/particles/isotopes.py
  +++ b/plasmapy/particles/isotopes.py
  @@ -11,7 +11,7 @@
   import json
   import pkgutil
   
  -# this code was used to create the JSON file as per vn-ki on Riot:
  +# this code was used to create the JSON file as per vn-ki on Matrix:
   # https://matrix.to/#/!hkWCiyhQyxiYJlUtKF:matrix.org/
   #    $1554667515670438wIKlP:matrix.org?via=matrix.org&via=cadair.com
   #
  
verification_info: {"golden_diff": "diff --git a/plasmapy/particles/elements.py b/plasmapy/particles/elements.py\n--- a/plasmapy/particles/elements.py\n+++ b/plasmapy/particles/elements.py\n@@ -26,7 +26,7 @@\n     return obj\n \n \n-# this code was used to create the JSON file as per vn-ki on Riot:\n+# this code was used to create the JSON file as per vn-ki on Matrix:\n # https://matrix.to/#/!hkWCiyhQyxiYJlUtKF:matrix.org/\n #    $1554667515670438wIKlP:matrix.org?via=matrix.org&via=cadair.com\n #\ndiff --git a/plasmapy/particles/isotopes.py b/plasmapy/particles/isotopes.py\n--- a/plasmapy/particles/isotopes.py\n+++ b/plasmapy/particles/isotopes.py\n@@ -11,7 +11,7 @@\n import json\n import pkgutil\n \n-# this code was used to create the JSON file as per vn-ki on Riot:\n+# this code was used to create the JSON file as per vn-ki on Matrix:\n # https://matrix.to/#/!hkWCiyhQyxiYJlUtKF:matrix.org/\n #    $1554667515670438wIKlP:matrix.org?via=matrix.org&via=cadair.com\n #\n", "issue": "Change name of chat room from Matrix/Riot to Element\nThe name of the chat platform we are using has [changed from Matrix/Riot to Element](https://element.io/blog/the-world-is-changing/).  We should change the name of our chat room accordingly, including in our README file and possibly some places in our documentation.\n", "before_files": [{"content": "\"\"\"\nModule for loading isotope data from :file:`plasmapy/particles/data/isotopes.json`.\n\n.. attention::\n    This module only contains non-public functionality.  To learn more about the\n    package functionality, then examine the code itself.\n\"\"\"\n__all__ = []\n\nimport astropy.units as u\nimport json\nimport pkgutil\n\n# this code was used to create the JSON file as per vn-ki on Riot:\n# https://matrix.to/#/!hkWCiyhQyxiYJlUtKF:matrix.org/\n#    $1554667515670438wIKlP:matrix.org?via=matrix.org&via=cadair.com\n#\n# def _isotope_default(obj):\n#     if isinstance(obj, u.Quantity):\n#         return {\n#             \"unit\": obj.unit.name,\n#             \"value\": obj.value,\n#         }\n# with open(\"isotopes.json\", \"w\") as f:\n#     json.dump(_Isotopes, f, default=plasma_default, indent=2)\n\n\ndef _isotope_obj_hook(obj):\n    \"\"\"An `object_hook` designed for `json.load` and `json.loads`.\"\"\"\n    if \"unit\" in obj:\n        return obj[\"value\"] * u.Unit(obj[\"unit\"])\n    return obj\n\n\n#: Dictionary of isotope data.\n_Isotopes = json.loads(\n    pkgutil.get_data(\"plasmapy\", \"particles/data/isotopes.json\"),\n    object_hook=_isotope_obj_hook,\n)\n", "path": "plasmapy/particles/isotopes.py"}, {"content": "\"\"\"\nModule for loading atomic data for elements from\n:file:`plasmapy/particles/data/elements.json`.\n\nThe periodic tabla data is from: http://periodic.lanl.gov/index.shtml\n\n.. attention::\n    This module only contains non-public functionality.  To learn more about the\n    package functionality, examine the code itself.\n\"\"\"\n__all__ = []\n\nimport astropy.units as u\nimport collections\nimport json\nimport pkgutil\n\n_PeriodicTable = collections.namedtuple(\n    \"periodic_table\", [\"group\", \"category\", \"block\", \"period\"]\n)\n\n\ndef _element_obj_hook(obj):\n    if \"unit\" in obj:\n        return obj[\"value\"] * u.Unit(obj[\"unit\"])\n    return obj\n\n\n# this code was used to create the JSON file as per vn-ki on Riot:\n# https://matrix.to/#/!hkWCiyhQyxiYJlUtKF:matrix.org/\n#    $1554667515670438wIKlP:matrix.org?via=matrix.org&via=cadair.com\n#\n# def plasma_default(obj):\n#     if isinstance(obj, u.Quantity):\n#         return {\n#             \"unit\": obj.unit.name,\n#             \"value\": obj.value,\n#         }\n#\n# with open(\"elements.json\", \"w\") as f:\n#    json.dump(_Elements, f, default=plasma_default, indent=2)\n\n\n_Elements = json.loads(\n    pkgutil.get_data(\"plasmapy\", \"particles/data/elements.json\"),\n    object_hook=_element_obj_hook,\n)\n\n\n_atomic_numbers_to_symbols = {\n    elemdict[\"atomic number\"]: symb for (symb, elemdict) in _Elements.items()\n}\n\n_element_names_to_symbols = {\n    elemdict[\"element name\"]: symb for (symb, elemdict) in _Elements.items()\n}\n", "path": "plasmapy/particles/elements.py"}]}