We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update pydoc for Messages (/var/log/messages)
Correct the examples: https://github.com/RedHatInsights/insights-core/blob/master/insights/parsers/messages.py#L32

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `insights/parsers/messages.py`
Content:
```
1 """
2 Messages file ``/var/log/messages``
3 ===================================
4 """
5 
6 from .. import Syslog, parser
7 from insights.specs import Specs
8 
9 
10 @parser(Specs.messages)
11 class Messages(Syslog):
12     """
13     Read the ``/var/log/messages`` file.
14 
15     .. note::
16         Please refer to its super-class :class:`insights.core.Syslog` for more
17         details.
18 
19     Sample log lines::
20 
21         May 18 15:13:34 lxc-rhel68-sat56 jabberd/sm[11057]: session started: jid=rhn-dispatcher-sat@lxc-rhel6-sat56.redhat.com/superclient
22         May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: --> Wrapper Started as Daemon
23         May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: Launching a JVM...
24         May 18 15:24:28 lxc-rhel68-sat56 yum[11597]: Installed: lynx-2.8.6-27.el6.x86_64
25         May 18 15:36:19 lxc-rhel68-sat56 yum[11954]: Updated: sos-3.2-40.el6.noarch
26 
27     .. note::
28         Because /var/log/messages timestamps by default have no year,
29         the year of the logs will be inferred from the year in your timestamp.
30         This will also work around December/January crossovers.
31 
32     Examples:
33         >>> Messages.filters.append('wrapper')
34         >>> Messages.token_scan('daemon_start', 'Wrapper Started as Daemon')
35         >>> msgs = shared[Messages]
36         >>> len(msgs.lines)
37         >>> wrapper_msgs = msgs.get('wrapper') # Can only rely on lines filtered being present
38         >>> wrapper_msgs[0]
39         {'timestamp': 'May 18 15:13:36', 'hostname': 'lxc-rhel68-sat56',
40          'procname': wrapper[11375]', 'message': '--> Wrapper Started as Daemon',
41          'raw_message': 'May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: --> Wrapper Started as Daemon'
42         }
43         >>> msgs.daemon_start # Token set if matching lines present in logs
44         True
45     """
46     pass
47
```
--- 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()

```

diff --git a/insights/parsers/messages.py b/insights/parsers/messages.py
--- a/insights/parsers/messages.py
+++ b/insights/parsers/messages.py
@@ -30,17 +30,14 @@
         This will also work around December/January crossovers.
 
     Examples:
-        >>> Messages.filters.append('wrapper')
         >>> Messages.token_scan('daemon_start', 'Wrapper Started as Daemon')
-        >>> msgs = shared[Messages]
+        >>> type(msgs)
+        <class 'insights.parsers.messages.Messages'>
         >>> len(msgs.lines)
+        9
         >>> wrapper_msgs = msgs.get('wrapper') # Can only rely on lines filtered being present
-        >>> wrapper_msgs[0]
-        {'timestamp': 'May 18 15:13:36', 'hostname': 'lxc-rhel68-sat56',
-         'procname': wrapper[11375]', 'message': '--> Wrapper Started as Daemon',
-         'raw_message': 'May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: --> Wrapper Started as Daemon'
-        }
-        >>> msgs.daemon_start # Token set if matching lines present in logs
+        >>> result = {'raw_message': 'May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: --> Wrapper Started as Daemon', 'message': '--> Wrapper Started as Daemon', 'timestamp': 'May 18 15:13:36', 'hostname': 'lxc-rhel68-sat56', 'procname': 'wrapper[11375]'}
+        >>> wrapper_msgs[0] == result
         True
     """
     pass

{"golden_diff": "diff --git a/insights/parsers/messages.py b/insights/parsers/messages.py\n--- a/insights/parsers/messages.py\n+++ b/insights/parsers/messages.py\n@@ -30,17 +30,14 @@\n         This will also work around December/January crossovers.\n \n     Examples:\n-        >>> Messages.filters.append('wrapper')\n         >>> Messages.token_scan('daemon_start', 'Wrapper Started as Daemon')\n-        >>> msgs = shared[Messages]\n+        >>> type(msgs)\n+        <class 'insights.parsers.messages.Messages'>\n         >>> len(msgs.lines)\n+        9\n         >>> wrapper_msgs = msgs.get('wrapper') # Can only rely on lines filtered being present\n-        >>> wrapper_msgs[0]\n-        {'timestamp': 'May 18 15:13:36', 'hostname': 'lxc-rhel68-sat56',\n-         'procname': wrapper[11375]', 'message': '--> Wrapper Started as Daemon',\n-         'raw_message': 'May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: --> Wrapper Started as Daemon'\n-        }\n-        >>> msgs.daemon_start # Token set if matching lines present in logs\n+        >>> result = {'raw_message': 'May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: --> Wrapper Started as Daemon', 'message': '--> Wrapper Started as Daemon', 'timestamp': 'May 18 15:13:36', 'hostname': 'lxc-rhel68-sat56', 'procname': 'wrapper[11375]'}\n+        >>> wrapper_msgs[0] == result\n         True\n     \"\"\"\n     pass\n", "issue": "Update pydoc for Messages (/var/log/messages)\nCorrect the examples: https://github.com/RedHatInsights/insights-core/blob/master/insights/parsers/messages.py#L32\n", "before_files": [{"content": "\"\"\"\nMessages file ``/var/log/messages``\n===================================\n\"\"\"\n\nfrom .. import Syslog, parser\nfrom insights.specs import Specs\n\n\n@parser(Specs.messages)\nclass Messages(Syslog):\n    \"\"\"\n    Read the ``/var/log/messages`` file.\n\n    .. note::\n        Please refer to its super-class :class:`insights.core.Syslog` for more\n        details.\n\n    Sample log lines::\n\n        May 18 15:13:34 lxc-rhel68-sat56 jabberd/sm[11057]: session started: jid=rhn-dispatcher-sat@lxc-rhel6-sat56.redhat.com/superclient\n        May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: --> Wrapper Started as Daemon\n        May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: Launching a JVM...\n        May 18 15:24:28 lxc-rhel68-sat56 yum[11597]: Installed: lynx-2.8.6-27.el6.x86_64\n        May 18 15:36:19 lxc-rhel68-sat56 yum[11954]: Updated: sos-3.2-40.el6.noarch\n\n    .. note::\n        Because /var/log/messages timestamps by default have no year,\n        the year of the logs will be inferred from the year in your timestamp.\n        This will also work around December/January crossovers.\n\n    Examples:\n        >>> Messages.filters.append('wrapper')\n        >>> Messages.token_scan('daemon_start', 'Wrapper Started as Daemon')\n        >>> msgs = shared[Messages]\n        >>> len(msgs.lines)\n        >>> wrapper_msgs = msgs.get('wrapper') # Can only rely on lines filtered being present\n        >>> wrapper_msgs[0]\n        {'timestamp': 'May 18 15:13:36', 'hostname': 'lxc-rhel68-sat56',\n         'procname': wrapper[11375]', 'message': '--> Wrapper Started as Daemon',\n         'raw_message': 'May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: --> Wrapper Started as Daemon'\n        }\n        >>> msgs.daemon_start # Token set if matching lines present in logs\n        True\n    \"\"\"\n    pass\n", "path": "insights/parsers/messages.py"}], "after_files": [{"content": "\"\"\"\nMessages file ``/var/log/messages``\n===================================\n\"\"\"\n\nfrom .. import Syslog, parser\nfrom insights.specs import Specs\n\n\n@parser(Specs.messages)\nclass Messages(Syslog):\n    \"\"\"\n    Read the ``/var/log/messages`` file.\n\n    .. note::\n        Please refer to its super-class :class:`insights.core.Syslog` for more\n        details.\n\n    Sample log lines::\n\n        May 18 15:13:34 lxc-rhel68-sat56 jabberd/sm[11057]: session started: jid=rhn-dispatcher-sat@lxc-rhel6-sat56.redhat.com/superclient\n        May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: --> Wrapper Started as Daemon\n        May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: Launching a JVM...\n        May 18 15:24:28 lxc-rhel68-sat56 yum[11597]: Installed: lynx-2.8.6-27.el6.x86_64\n        May 18 15:36:19 lxc-rhel68-sat56 yum[11954]: Updated: sos-3.2-40.el6.noarch\n\n    .. note::\n        Because /var/log/messages timestamps by default have no year,\n        the year of the logs will be inferred from the year in your timestamp.\n        This will also work around December/January crossovers.\n\n    Examples:\n        >>> Messages.token_scan('daemon_start', 'Wrapper Started as Daemon')\n        >>> type(msgs)\n        <class 'insights.parsers.messages.Messages'>\n        >>> len(msgs.lines)\n        9\n        >>> wrapper_msgs = msgs.get('wrapper') # Can only rely on lines filtered being present\n        >>> result = {'raw_message': 'May 18 15:13:36 lxc-rhel68-sat56 wrapper[11375]: --> Wrapper Started as Daemon', 'message': '--> Wrapper Started as Daemon', 'timestamp': 'May 18 15:13:36', 'hostname': 'lxc-rhel68-sat56', 'procname': 'wrapper[11375]'}\n        >>> wrapper_msgs[0] == result\n        True\n    \"\"\"\n    pass\n", "path": "insights/parsers/messages.py"}]}