prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  IL: Capture "Subject Matter" for `event`s
  IL events have a Subject Matter field on the legislature's website, which we should capture, probably as the `description` value for that `event` object.
  
  For example, look at one of the hearings linked from [here](http://www.ilga.gov/senate/committees/hearing.asp?CommitteeID=1927), like this:
  
  <img width="864" alt="screen shot 2017-04-23 at 00 19 37" src="https://cloud.githubusercontent.com/assets/4959135/25310740/bb6f24b8-27ba-11e7-96e3-9b102819581c.png">
  
  cc @jonrogoff, @justgosh
  
  </issue>
  <code>
  [start of openstates/il/events.py]
  1 import datetime as dt
  2 import re
  3 
  4 from openstates.utils import LXMLMixin
  5 from billy.scrape.events import Event, EventScraper
  6 
  7 import lxml.html
  8 import pytz
  9 
  10 urls = {
  11     "upper": "http://www.ilga.gov/senate/schedules/weeklyhearings.asp",
  12     "lower": "http://www.ilga.gov/house/schedules/weeklyhearings.asp"
  13 }
  14 
  15 
  16 class ILEventScraper(EventScraper, LXMLMixin):
  17     jurisdiction = 'il'
  18     _tz = pytz.timezone('US/Eastern')
  19 
  20     def scrape_page(self, url, session, chamber):
  21         page = self.lxmlize(url)
  22 
  23         ctty_name = page.xpath("//span[@class='heading']")[0].text_content()
  24 
  25         tables = page.xpath("//table[@cellpadding='3']")
  26         info = tables[0]
  27         rows = info.xpath(".//tr")
  28         metainf = {}
  29         for row in rows:
  30             tds = row.xpath(".//td")
  31             key = tds[0].text_content().strip()
  32             value = tds[1].text_content().strip()
  33             metainf[key] = value
  34 
  35         where = metainf['Location:']
  36         description = ctty_name
  37 
  38         datetime = metainf['Scheduled Date:']
  39         datetime = re.sub("\s+", " ", datetime)
  40         repl = {
  41             "AM": " AM",
  42             "PM": " PM"  # Space shim.
  43         }
  44         for r in repl:
  45             datetime = datetime.replace(r, repl[r])
  46         datetime = dt.datetime.strptime(datetime, "%b %d, %Y %I:%M %p")
  47 
  48         event = Event(session, datetime, 'committee:meeting',
  49                       description, location=where)
  50         event.add_source(url)
  51 
  52         if ctty_name.startswith('Hearing Notice For'):
  53             ctty_name.replace('Hearing Notice For', '')
  54         event.add_participant('host', ctty_name, 'committee', chamber=chamber)
  55 
  56         bills = tables[1]
  57         for bill in bills.xpath(".//tr")[1:]:
  58             tds = bill.xpath(".//td")
  59             if len(tds) < 4:
  60                 continue
  61             # First, let's get the bill ID:
  62             bill_id = tds[0].text_content()
  63             event.add_related_bill(bill_id,
  64                                    description=description,
  65                                    type='consideration')
  66 
  67         self.save_event(event)
  68 
  69     def scrape(self, chamber, session):
  70         try:
  71             url = urls[chamber]
  72         except KeyError:
  73             return  # Not for us.
  74         page = self.lxmlize(url)
  75         tables = page.xpath("//table[@width='550']")
  76         for table in tables:
  77             meetings = table.xpath(".//a")
  78             for meeting in meetings:
  79                 self.scrape_page(meeting.attrib['href'],
  80                                  session, chamber)
  81
  [end of openstates/il/events.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/openstates/il/events.py b/openstates/il/events.py
  --- a/openstates/il/events.py
  +++ b/openstates/il/events.py
  @@ -4,7 +4,6 @@
   from openstates.utils import LXMLMixin
   from billy.scrape.events import Event, EventScraper
   
  -import lxml.html
   import pytz
   
   urls = {
  @@ -20,8 +19,8 @@
       def scrape_page(self, url, session, chamber):
           page = self.lxmlize(url)
   
  -        ctty_name = page.xpath("//span[@class='heading']")[0].text_content()
  -
  +        ctty_name = page.xpath("//span[@class='heading']")[0].text_content().replace(
  +            "Hearing Notice For ", "")
           tables = page.xpath("//table[@cellpadding='3']")
           info = tables[0]
           rows = info.xpath(".//tr")
  @@ -33,7 +32,8 @@
               metainf[key] = value
   
           where = metainf['Location:']
  -        description = ctty_name
  +        subject_matter = metainf['Subject Matter:']
  +        description = "{}, {}".format(ctty_name, subject_matter)
   
           datetime = metainf['Scheduled Date:']
           datetime = re.sub("\s+", " ", datetime)
  
verification_info: {"golden_diff": "diff --git a/openstates/il/events.py b/openstates/il/events.py\n--- a/openstates/il/events.py\n+++ b/openstates/il/events.py\n@@ -4,7 +4,6 @@\n from openstates.utils import LXMLMixin\n from billy.scrape.events import Event, EventScraper\n \n-import lxml.html\n import pytz\n \n urls = {\n@@ -20,8 +19,8 @@\n     def scrape_page(self, url, session, chamber):\n         page = self.lxmlize(url)\n \n-        ctty_name = page.xpath(\"//span[@class='heading']\")[0].text_content()\n-\n+        ctty_name = page.xpath(\"//span[@class='heading']\")[0].text_content().replace(\n+            \"Hearing Notice For \", \"\")\n         tables = page.xpath(\"//table[@cellpadding='3']\")\n         info = tables[0]\n         rows = info.xpath(\".//tr\")\n@@ -33,7 +32,8 @@\n             metainf[key] = value\n \n         where = metainf['Location:']\n-        description = ctty_name\n+        subject_matter = metainf['Subject Matter:']\n+        description = \"{}, {}\".format(ctty_name, subject_matter)\n \n         datetime = metainf['Scheduled Date:']\n         datetime = re.sub(\"\\s+\", \" \", datetime)\n", "issue": "IL: Capture \"Subject Matter\" for `event`s\nIL events have a Subject Matter field on the legislature's website, which we should capture, probably as the `description` value for that `event` object.\r\n\r\nFor example, look at one of the hearings linked from [here](http://www.ilga.gov/senate/committees/hearing.asp?CommitteeID=1927), like this:\r\n\r\n<img width=\"864\" alt=\"screen shot 2017-04-23 at 00 19 37\" src=\"https://cloud.githubusercontent.com/assets/4959135/25310740/bb6f24b8-27ba-11e7-96e3-9b102819581c.png\">\r\n\r\ncc @jonrogoff, @justgosh\n", "before_files": [{"content": "import datetime as dt\nimport re\n\nfrom openstates.utils import LXMLMixin\nfrom billy.scrape.events import Event, EventScraper\n\nimport lxml.html\nimport pytz\n\nurls = {\n    \"upper\": \"http://www.ilga.gov/senate/schedules/weeklyhearings.asp\",\n    \"lower\": \"http://www.ilga.gov/house/schedules/weeklyhearings.asp\"\n}\n\n\nclass ILEventScraper(EventScraper, LXMLMixin):\n    jurisdiction = 'il'\n    _tz = pytz.timezone('US/Eastern')\n\n    def scrape_page(self, url, session, chamber):\n        page = self.lxmlize(url)\n\n        ctty_name = page.xpath(\"//span[@class='heading']\")[0].text_content()\n\n        tables = page.xpath(\"//table[@cellpadding='3']\")\n        info = tables[0]\n        rows = info.xpath(\".//tr\")\n        metainf = {}\n        for row in rows:\n            tds = row.xpath(\".//td\")\n            key = tds[0].text_content().strip()\n            value = tds[1].text_content().strip()\n            metainf[key] = value\n\n        where = metainf['Location:']\n        description = ctty_name\n\n        datetime = metainf['Scheduled Date:']\n        datetime = re.sub(\"\\s+\", \" \", datetime)\n        repl = {\n            \"AM\": \" AM\",\n            \"PM\": \" PM\"  # Space shim.\n        }\n        for r in repl:\n            datetime = datetime.replace(r, repl[r])\n        datetime = dt.datetime.strptime(datetime, \"%b %d, %Y %I:%M %p\")\n\n        event = Event(session, datetime, 'committee:meeting',\n                      description, location=where)\n        event.add_source(url)\n\n        if ctty_name.startswith('Hearing Notice For'):\n            ctty_name.replace('Hearing Notice For', '')\n        event.add_participant('host', ctty_name, 'committee', chamber=chamber)\n\n        bills = tables[1]\n        for bill in bills.xpath(\".//tr\")[1:]:\n            tds = bill.xpath(\".//td\")\n            if len(tds) < 4:\n                continue\n            # First, let's get the bill ID:\n            bill_id = tds[0].text_content()\n            event.add_related_bill(bill_id,\n                                   description=description,\n                                   type='consideration')\n\n        self.save_event(event)\n\n    def scrape(self, chamber, session):\n        try:\n            url = urls[chamber]\n        except KeyError:\n            return  # Not for us.\n        page = self.lxmlize(url)\n        tables = page.xpath(\"//table[@width='550']\")\n        for table in tables:\n            meetings = table.xpath(\".//a\")\n            for meeting in meetings:\n                self.scrape_page(meeting.attrib['href'],\n                                 session, chamber)\n", "path": "openstates/il/events.py"}]}