We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
dismiss a PR review?
Am I reading the docs correctly and understanding that there is no support for [dismissing a PR review](https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review)?

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `github/PullRequestReview.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 
3 ############################ Copyrights and license ############################
4 #                                                                              #
5 # Copyright 2017 Aaron Levine <allevin@sandia.gov>                             #
6 # Copyright 2017 Mike Miller <github@mikeage.net>                              #
7 # Copyright 2018 Darragh Bailey <daragh.bailey@gmail.com>                      #
8 # Copyright 2018 Wan Liuyang <tsfdye@gmail.com>                                #
9 # Copyright 2018 sfdye <tsfdye@gmail.com>                                      #
10 #                                                                              #
11 # This file is part of PyGithub.                                               #
12 # http://pygithub.readthedocs.io/                                              #
13 #                                                                              #
14 # PyGithub is free software: you can redistribute it and/or modify it under    #
15 # the terms of the GNU Lesser General Public License as published by the Free  #
16 # Software Foundation, either version 3 of the License, or (at your option)    #
17 # any later version.                                                           #
18 #                                                                              #
19 # PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY  #
20 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS    #
21 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
22 # details.                                                                     #
23 #                                                                              #
24 # You should have received a copy of the GNU Lesser General Public License     #
25 # along with PyGithub. If not, see <http://www.gnu.org/licenses/>.             #
26 #                                                                              #
27 ################################################################################
28 
29 import github.GithubObject
30 
31 import github.NamedUser
32 
33 
34 class PullRequestReview(github.GithubObject.CompletableGithubObject):
35     """
36     This class represents PullRequestReviews. The reference can be found here https://developer.github.com/v3/pulls/reviews/
37     """
38 
39     def __repr__(self):
40         return self.get__repr__({"id": self._id.value, "user": self._user.value})
41 
42     @property
43     def id(self):
44         """
45         :type: integer
46         """
47         self._completeIfNotSet(self._id)
48         return self._id.value
49 
50     @property
51     def user(self):
52         """
53         :type: :class:`github.NamedUser.NamedUser`
54         """
55         self._completeIfNotSet(self._user)
56         return self._user.value
57 
58     @property
59     def body(self):
60         """
61         :type: string
62         """
63         self._completeIfNotSet(self._body)
64         return self._body.value
65 
66     @property
67     def commit_id(self):
68         """
69         :type: string
70         """
71         self._completeIfNotSet(self._commit_id)
72         return self._commit_id.value
73 
74     @property
75     def state(self):
76         """
77         :type: string
78         """
79         self._completeIfNotSet(self._state)
80         return self._state.value
81 
82     @property
83     def url(self):
84         """
85         :type: string
86         """
87         self._completeIfNotSet(self._url)
88         return self._url.value
89 
90     @property
91     def html_url(self):
92         """
93         :type: string
94         """
95         self._completeIfNotSet(self._html_url)
96         return self._html_url.value
97 
98     @property
99     def pull_request_url(self):
100         """
101         :type: string
102         """
103         self._completeIfNotSet(self._pull_request_url)
104         return self._pull_request_url.value
105 
106     @property
107     def submitted_at(self):
108         """
109         :type: datetime.datetime
110         """
111         self._completeIfNotSet(self._submitted_at)
112         return self._submitted_at.value
113 
114     def _initAttributes(self):
115         self._id = github.GithubObject.NotSet
116         self._user = github.GithubObject.NotSet
117         self._body = github.GithubObject.NotSet
118         self._commit_id = github.GithubObject.NotSet
119         self._state = github.GithubObject.NotSet
120         self._url = github.GithubObject.NotSet
121         self._html_url = github.GithubObject.NotSet
122         self._pull_request_url = github.GithubObject.NotSet
123         self._submitted_at = github.GithubObject.NotSet
124 
125     def _useAttributes(self, attributes):
126         if "id" in attributes:  # pragma no branch
127             self._id = self._makeIntAttribute(attributes["id"])
128         if "user" in attributes:  # pragma no branch
129             self._user = self._makeClassAttribute(github.NamedUser.NamedUser, attributes["user"])
130         if "body" in attributes:  # pragma no branch
131             self._body = self._makeStringAttribute(attributes["body"])
132         if "commit_id" in attributes:  # pragma no branch
133             self._commit_id = self._makeStringAttribute(attributes["commit_id"])
134         if "state" in attributes:  # pragma no branch
135             self._state = self._makeStringAttribute(attributes["state"])
136         if "url" in attributes:  # pragma no branch
137             self._url = self._makeStringAttribute(attributes["url"])
138         if "html_url" in attributes:  # pragma no branch
139             self._html_url = self._makeStringAttribute(attributes["html_url"])
140         if "pull_request_url" in attributes:  # pragma no branch
141             self._pull_request_url = self._makeStringAttribute(attributes["pull_request_url"])
142         if "submitted_at" in attributes:  # pragma no branch
143             self._submitted_at = self._makeDatetimeAttribute(attributes["submitted_at"])
144
```
--- 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/github/PullRequestReview.py b/github/PullRequestReview.py
--- a/github/PullRequestReview.py
+++ b/github/PullRequestReview.py
@@ -111,6 +111,19 @@
         self._completeIfNotSet(self._submitted_at)
         return self._submitted_at.value
 
+    def dismiss(self, message):
+        """
+        :calls: `PUT /repos/:owner/:repo/pulls/:number/reviews/:review_id/dismissals <https://developer.github.com/v3/pulls/reviews/>`_
+        :rtype: None
+        """
+        assert isinstance(message, (str, unicode)), message
+        post_parameters = {'message': message}
+        headers, data = self._requester.requestJsonAndCheck(
+            "PUT",
+            self.pull_request_url + "/reviews/%s/dismissals" % self.id,
+            input=post_parameters
+        )
+
     def _initAttributes(self):
         self._id = github.GithubObject.NotSet
         self._user = github.GithubObject.NotSet

{"golden_diff": "diff --git a/github/PullRequestReview.py b/github/PullRequestReview.py\n--- a/github/PullRequestReview.py\n+++ b/github/PullRequestReview.py\n@@ -111,6 +111,19 @@\n         self._completeIfNotSet(self._submitted_at)\n         return self._submitted_at.value\n \n+    def dismiss(self, message):\n+        \"\"\"\n+        :calls: `PUT /repos/:owner/:repo/pulls/:number/reviews/:review_id/dismissals <https://developer.github.com/v3/pulls/reviews/>`_\n+        :rtype: None\n+        \"\"\"\n+        assert isinstance(message, (str, unicode)), message\n+        post_parameters = {'message': message}\n+        headers, data = self._requester.requestJsonAndCheck(\n+            \"PUT\",\n+            self.pull_request_url + \"/reviews/%s/dismissals\" % self.id,\n+            input=post_parameters\n+        )\n+\n     def _initAttributes(self):\n         self._id = github.GithubObject.NotSet\n         self._user = github.GithubObject.NotSet\n", "issue": "dismiss a PR review?\nAm I reading the docs correctly and understanding that there is no support for [dismissing a PR review](https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review)?\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n#                                                                              #\n# Copyright 2017 Aaron Levine <allevin@sandia.gov>                             #\n# Copyright 2017 Mike Miller <github@mikeage.net>                              #\n# Copyright 2018 Darragh Bailey <daragh.bailey@gmail.com>                      #\n# Copyright 2018 Wan Liuyang <tsfdye@gmail.com>                                #\n# Copyright 2018 sfdye <tsfdye@gmail.com>                                      #\n#                                                                              #\n# This file is part of PyGithub.                                               #\n# http://pygithub.readthedocs.io/                                              #\n#                                                                              #\n# PyGithub is free software: you can redistribute it and/or modify it under    #\n# the terms of the GNU Lesser General Public License as published by the Free  #\n# Software Foundation, either version 3 of the License, or (at your option)    #\n# any later version.                                                           #\n#                                                                              #\n# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY  #\n# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS    #\n# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #\n# details.                                                                     #\n#                                                                              #\n# You should have received a copy of the GNU Lesser General Public License     #\n# along with PyGithub. If not, see <http://www.gnu.org/licenses/>.             #\n#                                                                              #\n################################################################################\n\nimport github.GithubObject\n\nimport github.NamedUser\n\n\nclass PullRequestReview(github.GithubObject.CompletableGithubObject):\n    \"\"\"\n    This class represents PullRequestReviews. The reference can be found here https://developer.github.com/v3/pulls/reviews/\n    \"\"\"\n\n    def __repr__(self):\n        return self.get__repr__({\"id\": self._id.value, \"user\": self._user.value})\n\n    @property\n    def id(self):\n        \"\"\"\n        :type: integer\n        \"\"\"\n        self._completeIfNotSet(self._id)\n        return self._id.value\n\n    @property\n    def user(self):\n        \"\"\"\n        :type: :class:`github.NamedUser.NamedUser`\n        \"\"\"\n        self._completeIfNotSet(self._user)\n        return self._user.value\n\n    @property\n    def body(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._body)\n        return self._body.value\n\n    @property\n    def commit_id(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._commit_id)\n        return self._commit_id.value\n\n    @property\n    def state(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._state)\n        return self._state.value\n\n    @property\n    def url(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._url)\n        return self._url.value\n\n    @property\n    def html_url(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._html_url)\n        return self._html_url.value\n\n    @property\n    def pull_request_url(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._pull_request_url)\n        return self._pull_request_url.value\n\n    @property\n    def submitted_at(self):\n        \"\"\"\n        :type: datetime.datetime\n        \"\"\"\n        self._completeIfNotSet(self._submitted_at)\n        return self._submitted_at.value\n\n    def _initAttributes(self):\n        self._id = github.GithubObject.NotSet\n        self._user = github.GithubObject.NotSet\n        self._body = github.GithubObject.NotSet\n        self._commit_id = github.GithubObject.NotSet\n        self._state = github.GithubObject.NotSet\n        self._url = github.GithubObject.NotSet\n        self._html_url = github.GithubObject.NotSet\n        self._pull_request_url = github.GithubObject.NotSet\n        self._submitted_at = github.GithubObject.NotSet\n\n    def _useAttributes(self, attributes):\n        if \"id\" in attributes:  # pragma no branch\n            self._id = self._makeIntAttribute(attributes[\"id\"])\n        if \"user\" in attributes:  # pragma no branch\n            self._user = self._makeClassAttribute(github.NamedUser.NamedUser, attributes[\"user\"])\n        if \"body\" in attributes:  # pragma no branch\n            self._body = self._makeStringAttribute(attributes[\"body\"])\n        if \"commit_id\" in attributes:  # pragma no branch\n            self._commit_id = self._makeStringAttribute(attributes[\"commit_id\"])\n        if \"state\" in attributes:  # pragma no branch\n            self._state = self._makeStringAttribute(attributes[\"state\"])\n        if \"url\" in attributes:  # pragma no branch\n            self._url = self._makeStringAttribute(attributes[\"url\"])\n        if \"html_url\" in attributes:  # pragma no branch\n            self._html_url = self._makeStringAttribute(attributes[\"html_url\"])\n        if \"pull_request_url\" in attributes:  # pragma no branch\n            self._pull_request_url = self._makeStringAttribute(attributes[\"pull_request_url\"])\n        if \"submitted_at\" in attributes:  # pragma no branch\n            self._submitted_at = self._makeDatetimeAttribute(attributes[\"submitted_at\"])\n", "path": "github/PullRequestReview.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n#                                                                              #\n# Copyright 2017 Aaron Levine <allevin@sandia.gov>                             #\n# Copyright 2017 Mike Miller <github@mikeage.net>                              #\n# Copyright 2018 Darragh Bailey <daragh.bailey@gmail.com>                      #\n# Copyright 2018 Wan Liuyang <tsfdye@gmail.com>                                #\n# Copyright 2018 sfdye <tsfdye@gmail.com>                                      #\n#                                                                              #\n# This file is part of PyGithub.                                               #\n# http://pygithub.readthedocs.io/                                              #\n#                                                                              #\n# PyGithub is free software: you can redistribute it and/or modify it under    #\n# the terms of the GNU Lesser General Public License as published by the Free  #\n# Software Foundation, either version 3 of the License, or (at your option)    #\n# any later version.                                                           #\n#                                                                              #\n# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY  #\n# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS    #\n# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #\n# details.                                                                     #\n#                                                                              #\n# You should have received a copy of the GNU Lesser General Public License     #\n# along with PyGithub. If not, see <http://www.gnu.org/licenses/>.             #\n#                                                                              #\n################################################################################\n\nimport github.GithubObject\n\nimport github.NamedUser\n\n\nclass PullRequestReview(github.GithubObject.CompletableGithubObject):\n    \"\"\"\n    This class represents PullRequestReviews. The reference can be found here https://developer.github.com/v3/pulls/reviews/\n    \"\"\"\n\n    def __repr__(self):\n        return self.get__repr__({\"id\": self._id.value, \"user\": self._user.value})\n\n    @property\n    def id(self):\n        \"\"\"\n        :type: integer\n        \"\"\"\n        self._completeIfNotSet(self._id)\n        return self._id.value\n\n    @property\n    def user(self):\n        \"\"\"\n        :type: :class:`github.NamedUser.NamedUser`\n        \"\"\"\n        self._completeIfNotSet(self._user)\n        return self._user.value\n\n    @property\n    def body(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._body)\n        return self._body.value\n\n    @property\n    def commit_id(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._commit_id)\n        return self._commit_id.value\n\n    @property\n    def state(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._state)\n        return self._state.value\n\n    @property\n    def url(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._url)\n        return self._url.value\n\n    @property\n    def html_url(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._html_url)\n        return self._html_url.value\n\n    @property\n    def pull_request_url(self):\n        \"\"\"\n        :type: string\n        \"\"\"\n        self._completeIfNotSet(self._pull_request_url)\n        return self._pull_request_url.value\n\n    @property\n    def submitted_at(self):\n        \"\"\"\n        :type: datetime.datetime\n        \"\"\"\n        self._completeIfNotSet(self._submitted_at)\n        return self._submitted_at.value\n\n    def dismiss(self, message):\n        \"\"\"\n        :calls: `PUT /repos/:owner/:repo/pulls/:number/reviews/:review_id/dismissals <https://developer.github.com/v3/pulls/reviews/>`_\n        :rtype: None\n        \"\"\"\n        assert isinstance(message, (str, unicode)), message\n        post_parameters = {'message': message}\n        headers, data = self._requester.requestJsonAndCheck(\n            \"PUT\",\n            self.pull_request_url + \"/reviews/%s/dismissals\" % self.id,\n            input=post_parameters\n        )\n\n    def _initAttributes(self):\n        self._id = github.GithubObject.NotSet\n        self._user = github.GithubObject.NotSet\n        self._body = github.GithubObject.NotSet\n        self._commit_id = github.GithubObject.NotSet\n        self._state = github.GithubObject.NotSet\n        self._url = github.GithubObject.NotSet\n        self._html_url = github.GithubObject.NotSet\n        self._pull_request_url = github.GithubObject.NotSet\n        self._submitted_at = github.GithubObject.NotSet\n\n    def _useAttributes(self, attributes):\n        if \"id\" in attributes:  # pragma no branch\n            self._id = self._makeIntAttribute(attributes[\"id\"])\n        if \"user\" in attributes:  # pragma no branch\n            self._user = self._makeClassAttribute(github.NamedUser.NamedUser, attributes[\"user\"])\n        if \"body\" in attributes:  # pragma no branch\n            self._body = self._makeStringAttribute(attributes[\"body\"])\n        if \"commit_id\" in attributes:  # pragma no branch\n            self._commit_id = self._makeStringAttribute(attributes[\"commit_id\"])\n        if \"state\" in attributes:  # pragma no branch\n            self._state = self._makeStringAttribute(attributes[\"state\"])\n        if \"url\" in attributes:  # pragma no branch\n            self._url = self._makeStringAttribute(attributes[\"url\"])\n        if \"html_url\" in attributes:  # pragma no branch\n            self._html_url = self._makeStringAttribute(attributes[\"html_url\"])\n        if \"pull_request_url\" in attributes:  # pragma no branch\n            self._pull_request_url = self._makeStringAttribute(attributes[\"pull_request_url\"])\n        if \"submitted_at\" in attributes:  # pragma no branch\n            self._submitted_at = self._makeDatetimeAttribute(attributes[\"submitted_at\"])\n", "path": "github/PullRequestReview.py"}]}