2010-12-02 Sergio Villar Senin <svillar@igalia.com>
[WebKit-https.git] / WebKitTools / Scripts / webkitpy / common / config / committers.py
1 # Copyright (c) 2009, Google Inc. All rights reserved.
2 #
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are
5 # met:
6 #
7 #     * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer.
9 #     * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer
11 # in the documentation and/or other materials provided with the
12 # distribution.
13 #     * Neither the name of Google Inc. nor the names of its
14 # contributors may be used to endorse or promote products derived from
15 # this software without specific prior written permission.
16 #
17 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 #
29 # WebKit's Python module for committer and reviewer validation
30
31
32 class Committer:
33
34     def __init__(self, name, email_or_emails, irc_nickname=None):
35         self.full_name = name
36         if isinstance(email_or_emails, str):
37             self.emails = [email_or_emails]
38         else:
39             self.emails = email_or_emails
40         self.irc_nickname = irc_nickname
41         self.can_review = False
42
43     def bugzilla_email(self):
44         # FIXME: We're assuming the first email is a valid bugzilla email,
45         # which might not be right.
46         return self.emails[0]
47
48     def __str__(self):
49         return '"%s" <%s>' % (self.full_name, self.emails[0])
50
51
52 class Reviewer(Committer):
53
54     def __init__(self, name, email_or_emails, irc_nickname=None):
55         Committer.__init__(self, name, email_or_emails, irc_nickname)
56         self.can_review = True
57
58
59 # This is intended as a canonical, machine-readable list of all non-reviewer
60 # committers for WebKit.  If your name is missing here and you are a committer,
61 # please add it.  No review needed.  All reviewers are committers, so this list
62 # is only of committers who are not reviewers.
63
64
65 committers_unable_to_review = [
66     Committer("Aaron Boodman", "aa@chromium.org", "aboodman"),
67     Committer("Abhishek Arya", "inferno@chromium.org", "inferno-sec"),
68     Committer("Adam Langley", "agl@chromium.org", "agl"),
69     Committer("Albert J. Wong", "ajwong@chromium.org"),
70     Committer("Alejandro G. Castro", ["alex@igalia.com", "alex@webkit.org"]),
71     Committer("Alexander Kellett", ["lypanov@mac.com", "a-lists001@lypanov.net", "lypanov@kde.org"], "lypanov"),
72     Committer("Alexander Pavlov", "apavlov@chromium.org", "apavlov"),
73     Committer("Andre Boule", "aboule@apple.com"),
74     Committer("Andrei Popescu", "andreip@google.com", "andreip"),
75     Committer("Andrew Wellington", ["andrew@webkit.org", "proton@wiretapped.net"], "proton"),
76     Committer("Andrey Kosyakov", "caseq@chromium.org", "caseq"),
77     Committer("Andras Becsi", ["abecsi@webkit.org", "abecsi@inf.u-szeged.hu"], "bbandix"),
78     Committer("Andy Estes", "aestes@apple.com", "estes"),
79     Committer("Anthony Ricaud", "rik@webkit.org", "rik"),
80     Committer("Anton Muhin", "antonm@chromium.org", "antonm"),
81     Committer("Balazs Kelemen", "kbalazs@webkit.org", "kbalazs"),
82     Committer("Ben Murdoch", "benm@google.com", "benm"),
83     Committer("Benjamin C Meyer", ["ben@meyerhome.net", "ben@webkit.org"], "icefox"),
84     Committer("Benjamin Otte", ["otte@gnome.org", "otte@webkit.org"], "otte"),
85     Committer("Benjamin Poulain", ["benjamin.poulain@nokia.com", "ikipou@gmail.com"]),
86     Committer("Brent Fulgham", "bfulgham@webkit.org", "bfulgham"),
87     Committer("Brett Wilson", "brettw@chromium.org", "brettx"),
88     Committer("Brian Weinstein", "bweinstein@apple.com", "bweinstein"),
89     Committer("Cameron McCormack", "cam@webkit.org", "heycam"),
90     Committer("Carol Szabo", "carol.szabo@nokia.com"),
91     Committer("Chang Shu", "Chang.Shu@nokia.com"),
92     Committer("Chris Evans", "cevans@google.com"),
93     Committer("Chris Petersen", "cpetersen@apple.com", "cpetersen"),
94     Committer("Chris Rogers", "crogers@google.com", "crogers"),
95     Committer("Christian Dywan", ["christian@twotoasts.de", "christian@webkit.org"]),
96     Committer("Collin Jackson", "collinj@webkit.org"),
97     Committer("David Smith", ["catfish.man@gmail.com", "dsmith@webkit.org"], "catfishman"),
98     Committer("Dean Jackson", "dino@apple.com", "dino"),
99     Committer("Diego Gonzalez", ["diegohcg@webkit.org", "diego.gonzalez@openbossa.org"], "diegohcg"),
100     Committer("Dirk Pranke", "dpranke@chromium.org"),
101     Committer("Drew Wilson", "atwilson@chromium.org", "atwilson"),
102     Committer("Eli Fidler", "eli@staikos.net", "QBin"),
103     Committer("Enrica Casucci", "enrica@apple.com"),
104     Committer("Erik Arvidsson", "arv@chromium.org", "arv"),
105     Committer("Eric Roman", "eroman@chromium.org", "eroman"),
106     Committer("Evan Martin", "evan@chromium.org", "evmar"),
107     Committer("Evan Stade", "estade@chromium.org", "estade"),
108     Committer("Fady Samuel", "fsamuel@chromium.org", "fsamuel"),
109     Committer("Feng Qian", "feng@chromium.org"),
110     Committer("Fumitoshi Ukai", "ukai@chromium.org", "ukai"),
111     Committer("Gabor Loki", "loki@webkit.org", "loki04"),
112     Committer("Girish Ramakrishnan", ["girish@forwardbias.in", "ramakrishnan.girish@gmail.com"]),
113     Committer("Graham Dennis", ["Graham.Dennis@gmail.com", "gdennis@webkit.org"]),
114     Committer("Greg Bolsinga", "bolsinga@apple.com"),
115     Committer("Gyuyoung Kim", ["gyuyoung.kim@samsung.com", "gyuyoung@gmail.com", "gyuyoung@webkit.org"], "gyuyoung"),
116     Committer("Hans Wennborg", "hans@chromium.org", "hwennborg"),
117     Committer("Hayato Ito", "hayato@chromium.org", "hayato"),
118     Committer("Hin-Chung Lam", ["hclam@google.com", "hclam@chromium.org"]),
119     Committer("Ilya Tikhonovsky", "loislo@chromium.org", "loislo"),
120     Committer("Jakob Petsovits", ["jpetsovits@rim.com", "jpetso@gmx.at"], "jpetso"),
121     Committer("Jakub Wieczorek", "jwieczorek@webkit.org", "fawek"),
122     Committer("James Hawkins", ["jhawkins@chromium.org", "jhawkins@google.com"], "jhawkins"),
123     Committer("Jay Civelli", "jcivelli@chromium.org", "jcivelli"),
124     Committer("Jens Alfke", ["snej@chromium.org", "jens@apple.com"]),
125     Committer("Jer Noble", "jer.noble@apple.com", "jernoble"),
126     Committer("Jeremy Moskovich", ["playmobil@google.com", "jeremy@chromium.org"], "jeremymos"),
127     Committer("Jessie Berlin", ["jberlin@webkit.org", "jberlin@apple.com"]),
128     Committer("Jesus Sanchez-Palencia", ["jesus@webkit.org", "jesus.palencia@openbossa.org"], "jeez_"),
129     Committer("Jocelyn Turcotte", "jocelyn.turcotte@nokia.com", "jturcotte"),
130     Committer("Jochen Eisinger", "jochen@chromium.org", "jochen__"),
131     Committer("John Abd-El-Malek", "jam@chromium.org", "jam"),
132     Committer("John Gregg", ["johnnyg@google.com", "johnnyg@chromium.org"], "johnnyg"),
133     Committer("Johnny Ding", ["jnd@chromium.org", "johnnyding.webkit@gmail.com"], "johnnyding"),
134     Committer("Joost de Valk", ["joost@webkit.org", "webkit-dev@joostdevalk.nl"], "Altha"),
135     Committer("Julie Parent", ["jparent@google.com", "jparent@chromium.org"], "jparent"),
136     Committer("Julien Chaffraix", ["jchaffraix@webkit.org", "julien.chaffraix@gmail.com"]),
137     Committer("Jungshik Shin", "jshin@chromium.org"),
138     Committer("Justin Schuh", "jschuh@chromium.org", "jschuh"),
139     Committer("Keishi Hattori", "keishi@webkit.org", "keishi"),
140     Committer("Kelly Norton", "knorton@google.com"),
141     Committer("Kent Hansen", "kent.hansen@nokia.com", "khansen"),
142     Committer("Kimmo Kinnunen", ["kimmo.t.kinnunen@nokia.com", "kimmok@iki.fi", "ktkinnun@webkit.org"], "kimmok"),
143     Committer("Kinuko Yasuda", "kinuko@chromium.org", "kinuko"),
144     Committer("Krzysztof Kowalczyk", "kkowalczyk@gmail.com"),
145     Committer("Kwang Yul Seo", ["kwangyul.seo@gmail.com", "skyul@company100.net", "kseo@webkit.org"], "kwangseo"),
146     Committer("Leandro Pereira", ["leandro@profusion.mobi", "leandro@webkit.org"], "acidx"),
147     Committer("Levi Weintraub", "lweintraub@apple.com"),
148     Committer("Lucas De Marchi", ["lucas.demarchi@profusion.mobi", "demarchi@webkit.org"], "demarchi"),
149     Committer("Luiz Agostini", ["luiz@webkit.org", "luiz.agostini@openbossa.org"], "lca"),
150     Committer("Mads Ager", "ager@chromium.org"),
151     Committer("Marcus Voltis Bulach", "bulach@chromium.org"),
152     Committer("Mario Sanchez Prada", ["msanchez@igalia.com", "mario@webkit.org"], "msanchez"),
153     Committer("Matt Delaney", "mdelaney@apple.com"),
154     Committer("Matt Lilek", ["webkit@mattlilek.com", "pewtermoose@webkit.org"]),
155     Committer("Matt Perry", "mpcomplete@chromium.org"),
156     Committer("Maxime Britto", ["maxime.britto@gmail.com", "britto@apple.com"]),
157     Committer("Maxime Simon", ["simon.maxime@gmail.com", "maxime.simon@webkit.org"], "maxime.simon"),
158     Committer("Michael Nordman", "michaeln@google.com", "michaeln"),
159     Committer("Michael Saboff", "msaboff@apple.com"),
160     Committer("Michelangelo De Simone", "michelangelo@webkit.org", "michelangelo"),
161     Committer("Mihai Parparita", "mihaip@chromium.org", "mihaip"),
162     Committer("Mike Belshe", ["mbelshe@chromium.org", "mike@belshe.com"]),
163     Committer("Mike Fenton", ["mifenton@rim.com", "mike.fenton@torchmobile.com"], "mfenton"),
164     Committer("Mike Thole", ["mthole@mikethole.com", "mthole@apple.com"]),
165     Committer("Mikhail Naganov", "mnaganov@chromium.org"),
166     Committer("MORITA Hajime", "morrita@google.com", "morrita"),
167     Committer("Nico Weber", ["thakis@chromium.org", "thakis@google.com"], "thakis"),
168     Committer("Noam Rosenthal", "noam.rosenthal@nokia.com", "noamr"),
169     Committer("Pam Greene", "pam@chromium.org", "pamg"),
170     Committer("Patrick Gansterer", ["paroga@paroga.com", "paroga@webkit.org"], "paroga"),
171     Committer("Pavel Podivilov", "podivilov@chromium.org", "podivilov"),
172     Committer("Peter Kasting", ["pkasting@google.com", "pkasting@chromium.org"], "pkasting"),
173     Committer("Philippe Normand", ["pnormand@igalia.com", "philn@webkit.org"], "philn-tp"),
174     Committer("Pierre d'Herbemont", ["pdherbemont@free.fr", "pdherbemont@apple.com"], "pdherbemont"),
175     Committer("Pierre-Olivier Latour", "pol@apple.com", "pol"),
176     Committer("Renata Hodovan", "reni@webkit.org", "reni"),
177     Committer("Robert Hogan", ["robert@webkit.org", "robert@roberthogan.net", "lists@roberthogan.net"], "mwenge"),
178     Committer("Roland Steiner", "rolandsteiner@chromium.org"),
179     Committer("Ryosuke Niwa", "rniwa@webkit.org", "rniwa"),
180     Committer("Satish Sampath", "satish@chromium.org"),
181     Committer("Scott Violet", "sky@chromium.org", "sky"),
182     Committer("Sergio Villar Senin", ["svillar@igalia.com", "sergio@webkit.org"], "svillar"),
183     Committer("Stephen White", "senorblanco@chromium.org", "senorblanco"),
184     Committer("Tony Gentilcore", "tonyg@chromium.org", "tonyg-cr"),
185     Committer("Trey Matteson", "trey@usa.net", "trey"),
186     Committer("Tristan O'Tierney", ["tristan@otierney.net", "tristan@apple.com"]),
187     Committer("Vangelis Kokkevis", "vangelis@chromium.org", "vangelis"),
188     Committer("Victor Wang", "victorw@chromium.org", "victorw"),
189     Committer("Vitaly Repeshko", "vitalyr@chromium.org"),
190     Committer("William Siegrist", "wsiegrist@apple.com", "wms"),
191     Committer("Xiaomei Ji", "xji@chromium.org", "xji"),
192     Committer("Yael Aharon", "yael.aharon@nokia.com"),
193     Committer("Yaar Schnitman", ["yaar@chromium.org", "yaar@google.com"]),
194     Committer("Yong Li", ["yong.li.webkit@gmail.com", "yong.li@torchmobile.com"], "yong"),
195     Committer("Yongjun Zhang", "yongjun.zhang@nokia.com"),
196     Committer("Yuta Kitamura", "yutak@chromium.org", "yutak"),
197     Committer("Yuzo Fujishima", "yuzo@google.com", "yuzo"),
198     Committer("Zhenyao Mo", "zmo@google.com", "zhenyao"),
199     Committer("Zoltan Herczeg", "zherczeg@webkit.org", "zherczeg"),
200     Committer("Zoltan Horvath", ["zoltan@webkit.org", "hzoltan@inf.u-szeged.hu", "horvath.zoltan.6@stud.u-szeged.hu"], "zoltan"),
201 ]
202
203
204 # This is intended as a canonical, machine-readable list of all reviewers for
205 # WebKit.  If your name is missing here and you are a reviewer, please add it.
206 # No review needed.
207
208
209 reviewers_list = [
210     Reviewer("Ada Chan", "adachan@apple.com", "chanada"),
211     Reviewer("Adam Barth", "abarth@webkit.org", "abarth"),
212     Reviewer("Adam Roben", "aroben@apple.com", "aroben"),
213     Reviewer("Adam Treat", ["treat@kde.org", "treat@webkit.org", "atreat@rim.com"], "manyoso"),
214     Reviewer("Adele Peterson", "adele@apple.com", "adele"),
215     Reviewer("Alexey Proskuryakov", ["ap@webkit.org", "ap@apple.com"], "ap"),
216     Reviewer("Alice Liu", "alice.liu@apple.com", "aliu"),
217     Reviewer("Alp Toker", ["alp@nuanti.com", "alp@atoker.com", "alp@webkit.org"], "alp"),
218     Reviewer("Anders Carlsson", ["andersca@apple.com", "acarlsson@apple.com"], "andersca"),
219     Reviewer("Andreas Kling", ["kling@webkit.org", "andreas.kling@nokia.com"], "kling"),
220     Reviewer("Antonio Gomes", ["tonikitoo@webkit.org", "agomes@rim.com"], "tonikitoo"),
221     Reviewer("Antti Koivisto", ["koivisto@iki.fi", "antti@apple.com", "antti.j.koivisto@nokia.com"], "anttik"),
222     Reviewer("Ariya Hidayat", ["ariya.hidayat@gmail.com", "ariya@sencha.com", "ariya@webkit.org"], "ariya"),
223     Reviewer("Beth Dakin", "bdakin@apple.com", "dethbakin"),
224     Reviewer("Brady Eidson", "beidson@apple.com", "bradee-oh"),
225     Reviewer("Cameron Zwarich", ["zwarich@apple.com", "cwzwarich@apple.com", "cwzwarich@webkit.org"]),
226     Reviewer("Chris Blumenberg", "cblu@apple.com", "cblu"),
227     Reviewer("Chris Marrin", "cmarrin@apple.com", "cmarrin"),
228     Reviewer("Chris Fleizach", "cfleizach@apple.com", "cfleizach"),
229     Reviewer("Chris Jerdonek", "cjerdonek@webkit.org", "cjerdonek"),
230     Reviewer(u"Csaba Osztrogon\u00e1c", "ossy@webkit.org", "ossy"),
231     Reviewer("Dan Bernstein", ["mitz@webkit.org", "mitz@apple.com"], "mitzpettel"),
232     Reviewer("Daniel Bates", "dbates@webkit.org", "dydz"),
233     Reviewer("Darin Adler", "darin@apple.com", "darin"),
234     Reviewer("Darin Fisher", ["fishd@chromium.org", "darin@chromium.org"], "fishd"),
235     Reviewer("David Harrison", "harrison@apple.com", "harrison"),
236     Reviewer("David Hyatt", "hyatt@apple.com", "hyatt"),
237     Reviewer("David Kilzer", ["ddkilzer@webkit.org", "ddkilzer@apple.com"], "ddkilzer"),
238     Reviewer("David Levin", "levin@chromium.org", "dave_levin"),
239     Reviewer("Dimitri Glazkov", "dglazkov@chromium.org", "dglazkov"),
240     Reviewer("Dirk Schulze", "krit@webkit.org", "krit"),
241     Reviewer("Dmitry Titov", "dimich@chromium.org", "dimich"),
242     Reviewer("Don Melton", "gramps@apple.com", "gramps"),
243     Reviewer("Dumitru Daniliuc", "dumi@chromium.org", "dumi"),
244     Reviewer("Eric Carlson", "eric.carlson@apple.com"),
245     Reviewer("Eric Seidel", "eric@webkit.org", "eseidel"),
246     Reviewer("Gavin Barraclough", "barraclough@apple.com", "gbarra"),
247     Reviewer("Geoffrey Garen", "ggaren@apple.com", "ggaren"),
248     Reviewer("George Staikos", ["staikos@kde.org", "staikos@webkit.org"]),
249     Reviewer("Gustavo Noronha Silva", ["gns@gnome.org", "kov@webkit.org", "gustavo.noronha@collabora.co.uk"], "kov"),
250     Reviewer("Holger Freyther", ["zecke@selfish.org", "zecke@webkit.org"], "zecke"),
251     Reviewer("James Robinson", ["jamesr@chromium.org", "jamesr@google.com"], "jamesr"),
252     Reviewer("Jan Alonzo", ["jmalonzo@gmail.com", "jmalonzo@webkit.org"], "janm"),
253     Reviewer("Jeremy Orlow", "jorlow@chromium.org", "jorlow"),
254     Reviewer("Jian Li", "jianli@chromium.org", "jianli"),
255     Reviewer("John Sullivan", "sullivan@apple.com", "sullivan"),
256     Reviewer("Jon Honeycutt", "jhoneycutt@apple.com", "jhoneycutt"),
257     Reviewer("Joseph Pecoraro", ["joepeck@webkit.org", "pecoraro@apple.com"], "JoePeck"),
258     Reviewer("Justin Garcia", "justin.garcia@apple.com", "justing"),
259     Reviewer("Ken Kocienda", "kocienda@apple.com"),
260     Reviewer("Kenneth Rohde Christiansen", ["kenneth@webkit.org", "kenneth.christiansen@openbossa.org", "kenneth.christiansen@gmail.com"], "kenne"),
261     Reviewer("Kenneth Russell", "kbr@google.com", "kbr_google"),
262     Reviewer("Kent Tamura", "tkent@chromium.org", "tkent"),
263     Reviewer("Kevin Decker", "kdecker@apple.com", "superkevin"),
264     Reviewer("Kevin McCullough", "kmccullough@apple.com", "maculloch"),
265     Reviewer("Kevin Ollivier", ["kevino@theolliviers.com", "kevino@webkit.org"], "kollivier"),
266     Reviewer("Lars Knoll", ["lars@trolltech.com", "lars@kde.org", "lars.knoll@nokia.com"], "lars"),
267     Reviewer("Laszlo Gombos", "laszlo.1.gombos@nokia.com", "lgombos"),
268     Reviewer("Maciej Stachowiak", "mjs@apple.com", "othermaciej"),
269     Reviewer("Mark Rowe", "mrowe@apple.com", "bdash"),
270     Reviewer("Martin Robinson", ["mrobinson@webkit.org", "mrobinson@igalia.com", "martin.james.robinson@gmail.com"], "mrobinson"),
271     Reviewer("Nate Chapin", "japhet@chromium.org", "japhet"),
272     Reviewer("Nikolas Zimmermann", ["zimmermann@kde.org", "zimmermann@physik.rwth-aachen.de", "zimmermann@webkit.org"], "wildfox"),
273     Reviewer("Ojan Vafai", "ojan@chromium.org", "ojan"),
274     Reviewer("Oliver Hunt", "oliver@apple.com", "olliej"),
275     Reviewer("Pavel Feldman", "pfeldman@chromium.org", "pfeldman"),
276     Reviewer("Richard Williamson", "rjw@apple.com", "rjw"),
277     Reviewer("Rob Buis", ["rwlbuis@gmail.com", "rwlbuis@webkit.org"], "rwlbuis"),
278     Reviewer("Sam Weinig", ["sam@webkit.org", "weinig@apple.com"], "weinig"),
279     Reviewer("Shinichiro Hamaji", "hamaji@chromium.org", "hamaji"),
280     Reviewer("Simon Fraser", "simon.fraser@apple.com", "smfr"),
281     Reviewer("Simon Hausmann", ["hausmann@webkit.org", "hausmann@kde.org", "simon.hausmann@nokia.com"], "tronical"),
282     Reviewer("Stephanie Lewis", "slewis@apple.com", "sundiamonde"),
283     Reviewer("Steve Block", "steveblock@google.com", "steveblock"),
284     Reviewer("Steve Falkenburg", "sfalken@apple.com", "sfalken"),
285     Reviewer("Tim Omernick", "timo@apple.com"),
286     Reviewer("Timothy Hatcher", ["timothy@apple.com", "timothy@hatcher.name"], "xenon"),
287     Reviewer("Tony Chang", "tony@chromium.org", "tony^work"),
288     Reviewer(u"Tor Arne Vestb\u00f8", ["vestbo@webkit.org", "tor.arne.vestbo@nokia.com"], "torarne"),
289     Reviewer("Vicki Murley", "vicki@apple.com"),
290     Reviewer("Xan Lopez", ["xan.lopez@gmail.com", "xan@gnome.org", "xan@webkit.org"], "xan"),
291     Reviewer("Yury Semikhatsky", "yurys@chromium.org", "yurys"),
292     Reviewer("Zack Rusin", "zack@kde.org", "zackr"),
293 ]
294
295
296 class CommitterList:
297
298     # Committers and reviewers are passed in to allow easy testing
299
300     def __init__(self,
301                  committers=committers_unable_to_review,
302                  reviewers=reviewers_list):
303         self._committers = committers + reviewers
304         self._reviewers = reviewers
305         self._committers_by_email = {}
306
307     def committers(self):
308         return self._committers
309
310     def reviewers(self):
311         return self._reviewers
312
313     def _email_to_committer_map(self):
314         if not len(self._committers_by_email):
315             for committer in self._committers:
316                 for email in committer.emails:
317                     self._committers_by_email[email] = committer
318         return self._committers_by_email
319
320     def committer_by_name(self, name):
321         # This could be made into a hash lookup if callers need it to be fast.
322         for committer in self.committers():
323             if committer.full_name == name:
324                 return committer
325
326     def committer_by_email(self, email):
327         return self._email_to_committer_map().get(email)
328
329     def reviewer_by_email(self, email):
330         committer = self.committer_by_email(email)
331         if committer and not committer.can_review:
332             return None
333         return committer