93099361c1cb1eed27743a3db7c68ddf5db3bfa5
[WebKit-https.git] / Tools / Scripts / webkitpy / common / config / committers.py
1 # Copyright (c) 2011, Apple Inc. All rights reserved.
2 # Copyright (c) 2009, 2011, 2012 Google Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 #     * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 #     * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 #     * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30 # WebKit's Python module for committer and reviewer validation.
31
32 from webkitpy.common.editdistance import edit_distance
33 import fnmatch
34
35
36 class Contributor(object):
37     def __init__(self, name, email_or_emails, irc_nickname_or_nicknames=None):
38         assert(name)
39         assert(email_or_emails)
40         self.full_name = name
41         if isinstance(email_or_emails, str):
42             self.emails = [email_or_emails]
43         else:
44             self.emails = email_or_emails
45         self.emails = map(lambda email: email.lower(), self.emails)  # Emails are case-insensitive.
46         if isinstance(irc_nickname_or_nicknames, str):
47             self.irc_nicknames = [irc_nickname_or_nicknames]
48         else:
49             self.irc_nicknames = irc_nickname_or_nicknames
50         self.can_commit = False
51         self.can_review = False
52
53     def bugzilla_email(self):
54         # FIXME: We're assuming the first email is a valid bugzilla email,
55         # which might not be right.
56         return self.emails[0]
57
58     def __str__(self):
59         return '"%s" <%s>' % (self.full_name, self.emails[0])
60
61     def contains_string(self, search_string):
62         string = search_string.lower()
63         if string in self.full_name.lower():
64             return True
65         if self.irc_nicknames:
66             for nickname in self.irc_nicknames:
67                 if string in nickname.lower():
68                     return True
69         for email in self.emails:
70             if string in email:
71                 return True
72         return False
73
74     def matches_glob(self, glob_string):
75         if fnmatch.fnmatch(self.full_name, glob_string):
76             return True
77         if self.irc_nicknames:
78             for nickname in self.irc_nicknames:
79                 if fnmatch.fnmatch(nickname, glob_string):
80                     return True
81         for email in self.emails:
82             if fnmatch.fnmatch(email, glob_string):
83                 return True
84         return False
85
86
87 class Committer(Contributor):
88     def __init__(self, name, email_or_emails, irc_nickname=None):
89         Contributor.__init__(self, name, email_or_emails, irc_nickname)
90         self.can_commit = True
91
92
93 class Reviewer(Committer):
94     def __init__(self, name, email_or_emails, irc_nickname=None):
95         Committer.__init__(self, name, email_or_emails, irc_nickname)
96         self.can_review = True
97
98
99
100 # This is a list of people (or bots) who are neither committers nor reviewers, but get
101 # frequently CC'ed by others on Bugzilla bugs, so their names should be
102 # supported by autocomplete. No review needed to add to the list.
103
104
105 contributors_who_are_not_committers = [
106     Contributor("Adobe Bug Tracker", "WebkitBugTracker@adobe.com"),
107     Contributor("Aharon Lanin", "aharon@google.com"),
108     Contributor("Alan Cutter", "alancutter@chromium.org", "alancutter"),
109     Contributor("Alan Stearns", "stearns@adobe.com", "astearns"),
110     Contributor("Alejandro Pineiro", "apinheiro@igalia.com"),
111     Contributor("Alexey Marinichev", ["amarinichev@chromium.org", "amarinichev@google.com"], "amarinichev"),
112     Contributor("Andras Piroska", "pandras@inf.u-szeged.hu", "andris88"),
113     Contributor("Anne van Kesteren", "annevk@annevk.nl", "annevk"),
114     Contributor("Annie Sullivan", "sullivan@chromium.org", "annie"),
115     Contributor("Anton Vayvod", "avayvod@chromium.org", "avayvod"),
116     Contributor("Aryeh Gregor", "ayg@aryeh.name", "AryehGregor"),
117     Contributor("Balazs Ankes", "bank@inf.u-szeged.hu", "abalazs"),
118     Contributor("Bem Jones-Bey", "bjonesbe@adobe.com", "bemjb"),
119     Contributor("Brian Salomon", "bsalomon@google.com"),
120     Contributor("Christian Biesinger", "cbiesinger@chromium.org", "cbiesinger"),
121     Contributor("Commit Queue", "commit-queue@webkit.org"),
122     Contributor("Daniel Sievers", "sievers@chromium.org"),
123     Contributor("David Dorwin", "ddorwin@chromium.org", "ddorwin"),
124     Contributor("David Reveman", "reveman@chromium.org", "reveman"),
125     Contributor("Dongsung Huang", "luxtella@company100.net", "Huang"),
126     Contributor("Douglas Davidson", "ddavidso@apple.com"),
127     Contributor("Douglas Stockwell", "dstockwell@chromium.org", "dstockwell"),
128     Contributor("Edward O'Connor", "eoconnor@apple.com", "hober"),
129     Contributor("Eric Penner", "epenner@chromium.org", "epenner"),
130     Contributor("Felician Marton", ["felician@inf.u-szeged.hu", "marton.felician.zoltan@stud.u-szeged.hu"], "Felician"),
131     Contributor("Finnur Thorarinsson", ["finnur@chromium.org", "finnur.webkit@gmail.com"], "finnur"),
132     Contributor("Forms Bugs", "forms-bugs@chromium.org"),
133     Contributor("Gabor Ballabas", "gaborb@inf.u-szeged.hu", "bgabor"),
134     Contributor("Grace Kloba", "klobag@chromium.org", "klobag"),
135     Contributor("Greg Simon", "gregsimon@chromium.org", "gregsimon"),
136     Contributor("Hao Zheng", "zhenghao@chromium.org"),
137     Contributor("Harald Alvestrand", "hta@google.com", "hta"),
138     Contributor("Ian Hickson", "ian@hixie.ch", "hixie"),
139     Contributor("Jae Hyun Park", "jae.park@company100.net", "jaepark"),
140     Contributor("James Craig", "james@cookiecrook.com", "jcraig"),
141     Contributor("Jonathan Backer", "backer@chromium.org", "backer"),
142     Contributor("Jeff Timanus", ["twiz@chromium.org", "twiz@google.com"], "twiz"),
143     Contributor("Jing Zhao", "jingzhao@chromium.org"),
144     Contributor("John Bates", ["jbates@google.com", "jbates@chromium.org"], "jbates"),
145     Contributor("John Bauman", ["jbauman@chromium.org", "jbauman@google.com"], "jbauman"),
146     Contributor("John Mellor", "johnme@chromium.org", "johnme"),
147     Contributor("Kulanthaivel Palanichamy", "kulanthaivel@codeaurora.org", "kvel"),
148     Contributor("Koji Hara", "kojih@chromium.org", "kojih"),
149     Contributor("Koji Ishii", "kojiishi@gmail.com"),
150     Contributor("Michael Pruett", "michael@68k.org", "mpruett"),
151     Contributor("Mihai Balan", "mibalan@adobe.com", "miChou"),
152     Contributor("Mihai Maerean", "mmaerean@adobe.com", "mmaerean"),
153     Contributor("Min Qin", "qinmin@chromium.org"),
154     Contributor("Nandor Huszka", "hnandor@inf.u-szeged.hu", "hnandor"),
155     Contributor("Nils Barth", "nbarth@chromium.org", "nbarth"),
156     Contributor("Oliver Varga", ["voliver@inf.u-szeged.hu", "Varga.Oliver@stud.u-szeged.hu"], "TwistO"),
157     Contributor("Peter Gal", "galpeter@inf.u-szeged.hu", "elecro"),
158     Contributor("Peter Linss", "peter.linss@hp.com", "plinss"),
159     Contributor("Radar WebKit Bug Importer", "webkit-bug-importer@group.apple.com"),
160     Contributor("Raul Hudea", "rhudea@adobe.com", "rhudea"),
161     Contributor("Roland Takacs", "rtakacs@inf.u-szeged.hu", "rtakacs"),
162     Contributor("Tab Atkins", ["tabatkins@google.com", "jackalmage@gmail.com"], "tabatkins"),
163     Contributor("Tamas Czene", ["tczene@inf.u-szeged.hu", "Czene.Tamas@stud.u-szeged.hu"], "tczene"),
164     Contributor("Tien-Ren Chen", "trchen@chromium.org", "trchen"),
165     Contributor("Tim 'mithro' Ansell", "mithro@mithis.com", "mithro"),
166     Contributor("Tim Volodine", "timvolodine@chromium.org", "timvolodine"),
167     Contributor("WebKit Review Bot", "webkit.review.bot@gmail.com", "sheriff-bot"),
168     Contributor("Web Components Team", "webcomponents-bugzilla@chromium.org"),
169     Contributor("Wyatt Carss", ["wcarss@chromium.org", "wcarss@google.com"], "wcarss"),
170     Contributor("Zeev Lieber", "zlieber@chromium.org"),
171     Contributor("Zsolt Feher", "feherzs@inf.u-szeged.hu", "Smith"),
172 ]
173
174
175 # This is intended as a canonical, machine-readable list of all non-reviewer
176 # committers for WebKit.  If your name is missing here and you are a committer,
177 # please add it.  No review needed.  All reviewers are committers, so this list
178 # is only of committers who are not reviewers.
179
180
181 committers_unable_to_review = [
182     Committer("Aaron Boodman", "aa@chromium.org", "aboodman"),
183     Committer("Aaron Colwell", "acolwell@chromium.org", "acolwell"),
184     Committer("Adam Bergkvist", "adam.bergkvist@ericsson.com", "adambe"),
185     Committer("Adam Kallai", "kadam@inf.u-szeged.hu", "kadam"),
186     Committer("Adam Klein", "adamk@chromium.org", "aklein"),
187     Committer("Adam Langley", "agl@chromium.org", "agl"),
188     Committer("Ademar de Souza Reis Jr", ["ademar.reis@gmail.com", "ademar@webkit.org"], "ademar"),
189     Committer("Albert J. Wong", "ajwong@chromium.org"),
190     Committer("Alec Flett", ["alecflett@chromium.org", "alecflett@google.com"], "alecf"),
191     Committer(u"Alexander F\u00e6r\u00f8y", ["ahf@0x90.dk", "alexander.faeroy@nokia.com"], "ahf"),
192     Committer("Alexander Kellett", ["lypanov@mac.com", "a-lists001@lypanov.net", "lypanov@kde.org"], "lypanov"),
193     Committer("Alexandre Elias", ["aelias@chromium.org", "aelias@google.com"], "aelias"),
194     Committer("Alexandru Chiculita", "achicu@adobe.com", "achicu"),
195     Committer("Alice Boxhall", "aboxhall@chromium.org", "aboxhall"),
196     Committer("Alok Priyadarshi", "alokp@chromium.org", "alokp"),
197     Committer("Ami Fischman", ["fischman@chromium.org", "fischman@google.com"], "fischman"),
198     Committer("Amruth Raj", "amruthraj@motorola.com", "amruthraj"),
199     Committer("Andre Boule", "aboule@apple.com"),
200     Committer("Andrei Bucur", "abucur@adobe.com", "abucur"),
201     Committer("Andrei Popescu", "andreip@google.com", "andreip"),
202     Committer("Andrew Wellington", ["andrew@webkit.org", "proton@wiretapped.net"], "proton"),
203     Committer("Andrew Scherkus", "scherkus@chromium.org", "scherkus"),
204     Committer("Andrey Adaykin", "aandrey@chromium.org", "aandrey"),
205     Committer("Andrey Kosyakov", "caseq@chromium.org", "caseq"),
206     Committer("Andras Becsi", ["abecsi@webkit.org", "andras.becsi@digia.com"], "bbandix"),
207     Committer("Andy Wingo", "wingo@igalia.com", "wingo"),
208     Committer("Anna Cavender", "annacc@chromium.org", "annacc"),
209     Committer("Anthony Ricaud", "rik@webkit.org", "rik"),
210     Committer("Antoine Labour", "piman@chromium.org", "piman"),
211     Committer("Antoine Quint", "graouts@apple.com", "graouts"),
212     Committer("Anton D'Auria", "adauria@apple.com", "antonlefou"),
213     Committer("Anton Muhin", "antonm@chromium.org", "antonm"),
214     Committer("Arko Saha", "arko@motorola.com", "arkos"),
215     Committer("Arvid Nilsson", ["anilsson@blackberry.com", "anilsson@rim.com"], "anilsson"),
216     Committer("Balazs Kelemen", "kbalazs@webkit.org", "kbalazs"),
217     Committer("Bear Travis", "betravis@adobe.com", "betravis"),
218     Committer("Ben Murdoch", "benm@google.com", "benm"),
219     Committer("Ben Wells", "benwells@chromium.org", "benwells"),
220     Committer("Benjamin C Meyer", ["ben@meyerhome.net", "ben@webkit.org"], "icefox"),
221     Committer("Benjamin Kalman", ["kalman@chromium.org", "kalman@google.com"], "kalman"),
222     Committer("Benjamin Otte", ["otte@gnome.org", "otte@webkit.org"], "otte"),
223     Committer("Bill Budge", ["bbudge@chromium.org", "bbudge@gmail.com"], "bbudge"),
224     Committer("Brett Wilson", "brettw@chromium.org", "brettx"),
225     Committer("Bruno de Oliveira Abinader", ["bruno.abinader@basyskom.com", "brunoabinader@gmail.com"], "abinader"),
226     Committer("Byungwoo Lee", ["bw80.lee@samsung.com", "bw80.lee@gmail.com"], "byungwoo"),
227     Committer("Cameron McCormack", ["cam@mcc.id.au", "cam@webkit.org"], "heycam"),
228     Committer("Carol Szabo", ["carol@webkit.org", "carol.szabo@nokia.com"], "cszabo1"),
229     Committer("Cary Clark", ["caryclark@google.com", "caryclark@chromium.org"], "caryclark"),
230     Committer("Charles Reis", "creis@chromium.org", "creis"),
231     Committer("Charles Wei", ["charles.wei@torchmobile.com.cn"], "cswei"),
232     Committer("Chris Evans", ["cevans@google.com", "cevans@chromium.org"]),
233     Committer("Chris Guillory", ["ctguil@chromium.org", "chris.guillory@google.com"], "ctguil"),
234     Committer("Chris Petersen", "cpetersen@apple.com", "cpetersen"),
235     Committer("Christian Dywan", ["christian@twotoasts.de", "christian@webkit.org", "christian@lanedo.com"]),
236     Committer("Christophe Dumez", ["dchris@gmail.com", "ch.dumez@sisa.samsung.com"], "cdumez"),
237     Committer("Claudio Saavedra", "csaavedra@igalia.com", "claudio___"),
238     Committer("Collin Jackson", "collinj@webkit.org", "collinjackson"),
239     Committer("Cris Neckar", "cdn@chromium.org", "cneckar"),
240     Committer("Dan Winship", "danw@gnome.org", "danw"),
241     Committer("Dana Jansens", "danakj@chromium.org", "danakj"),
242     Committer("Daniel Cheng", "dcheng@chromium.org", "dcheng"),
243     Committer("Dave Barton", "dbarton@mathscribe.com", "davebarton"),
244     Committer("Dave Tharp", "dtharp@codeaurora.org", "dtharp"),
245     Committer("David Michael Barr", ["davidbarr@chromium.org", "davidbarr@google.com", "b@rr-dav.id.au"], "barrbrain"),
246     Committer("David Grogan", ["dgrogan@chromium.org", "dgrogan@google.com"], "dgrogan"),
247     Committer("David Smith", ["catfish.man@gmail.com", "dsmith@webkit.org"], "catfishman"),
248     Committer("Diego Gonzalez", ["diegohcg@webkit.org", "diego.gonzalez@openbossa.org"], "diegohcg"),
249     Committer("Dinu Jacob", "dinu.s.jacob@intel.com", "dsjacob"),
250     Committer("Dmitry Gorbik", "dgorbik@apple.com", "dgorbik"),
251     Committer("Dmitry Lomov", ["dslomov@google.com", "dslomov@chromium.org"], "dslomov"),
252     Committer("Dominic Cooney", ["dominicc@chromium.org", "dominicc@google.com"], "dominicc"),
253     Committer("Dominic Mazzoni", ["dmazzoni@google.com", "dmazzoni@chromium.org"], "dmazzoni"),
254     Committer(u"Dominik R\u00f6ttsches", ["dominik.rottsches@intel.com", "d-r@roettsches.de"], "drott"),
255     Committer("Dongwoo Joshua Im", ["dw.im@samsung.com", "dwim79@gmail.com"], "dwim"),
256     Committer("Drew Wilson", "atwilson@chromium.org", "atwilson"),
257     Committer("Eli Fidler", ["efidler@blackberry.com", "efidler@rim.com"], "efidler"),
258     Committer("Elliot Poger", "epoger@chromium.org", "epoger"),
259     Committer("Erik Arvidsson", "arv@chromium.org", "arv"),
260     Committer("Eric Roman", "eroman@chromium.org", "eroman"),
261     Committer("Eric Uhrhane", "ericu@chromium.org", "ericu"),
262     Committer("Eugene Klyuchnikov", "eustas@chromium.org", "eustas"),
263     Committer("Evan Martin", "evan@chromium.org", "evmar"),
264     Committer("Evan Stade", "estade@chromium.org", "estade"),
265     Committer("Fady Samuel", "fsamuel@chromium.org", "fsamuel"),
266     Committer("Feng Qian", "feng@chromium.org"),
267     Committer("Florin Malita", ["fmalita@chromium.org", "fmalita@google.com"], "fmalita"),
268     Committer("Fumitoshi Ukai", "ukai@chromium.org", "ukai"),
269     Committer("Gabor Loki", "loki@webkit.org", "loki04"),
270     Committer("Gabor Rapcsanyi", ["rgabor@webkit.org", "rgabor@inf.u-szeged.hu"], "rgabor"),
271     Committer("Gavin Peters", ["gavinp@chromium.org", "gavinp@webkit.org", "gavinp@google.com"], "gavinp"),
272     Committer("Girish Ramakrishnan", ["girish@forwardbias.in", "ramakrishnan.girish@gmail.com"], "girishr"),
273     Committer("Glenn Adams", "glenn@skynav.com", "gasubic"),
274     Committer("Graham Dennis", ["Graham.Dennis@gmail.com", "gdennis@webkit.org"]),
275     Committer("Greg Bolsinga", "bolsinga@apple.com"),
276     Committer("Gregg Tavares", ["gman@chromium.org", "gman@google.com"], "gman"),
277     Committer("Grzegorz Czajkowski", "g.czajkowski@samsung.com", "grzegorz"),
278     Committer("Hans Muller", "giles_joplin@yahoo.com", "hansmuller"),
279     Committer("Hans Wennborg", "hans@chromium.org", "hwennborg"),
280     Committer("Hayato Ito", "hayato@chromium.org", "hayato"),
281     Committer("Hironori Bono", "hbono@chromium.org", "hbono"),
282     Committer("Helder Correia", "helder.correia@nokia.com", "helder"),
283     Committer("Hin-Chung Lam", ["hclam@google.com", "hclam@chromium.org"]),
284     Committer("Hugo Parente Lima", "hugo.lima@openbossa.org", "hugopl"),
285     Committer("Ian Vollick", "vollick@chromium.org", "vollick"),
286     Committer("Igor Trindade Oliveira", ["igor.oliveira@webkit.org", "igor.o@sisa.samsung.com"], "igoroliveira"),
287     Committer("Ilya Sherman", "isherman@chromium.org", "isherman"),
288     Committer("Ilya Tikhonovsky", "loislo@chromium.org", "loislo"),
289     Committer("Ivan Krsti\u0107", "ike@apple.com"),
290     Committer("Jacky Jiang", ["jkjiang@webkit.org", "zkjiang008@gmail.com", "zhajiang@blackberry.com", "zhajiang@rim.com"], "jkjiang"),
291     Committer("Jakob Petsovits", ["jpetsovits@blackberry.com", "jpetsovits@rim.com", "jpetso@gmx.at"], "jpetso"),
292     Committer("Jakub Wieczorek", "jwieczorek@webkit.org", "fawek"),
293     Committer("James Hawkins", ["jhawkins@chromium.org", "jhawkins@google.com"], "jhawkins"),
294     Committer("James Kozianski", ["koz@chromium.org", "koz@google.com"], "koz"),
295     Committer("James Simonsen", "simonjam@chromium.org", "simonjam"),
296     Committer("Janos Badics", "jbadics@inf.u-szeged.hu", "dicska"),
297     Committer("Jarred Nicholls", ["jarred@webkit.org", "jarred@sencha.com"], "jarrednicholls"),
298     Committer("Jason Liu", ["jason.liu@torchmobile.com.cn", "jasonliuwebkit@gmail.com"], "jasonliu"),
299     Committer("Jay Civelli", "jcivelli@chromium.org", "jcivelli"),
300     Committer("Jeff Miller", "jeffm@apple.com", "jeffm7"),
301     Committer("Jeffrey Pfau", "jpfau@apple.com", "jpfau"),
302     Committer("Jenn Braithwaite", "jennb@chromium.org", "jennb"),
303     Committer("Jens Alfke", ["snej@chromium.org", "jens@apple.com"]),
304     Committer("Jeremy Moskovich", ["playmobil@google.com", "jeremy@chromium.org"], "jeremymos"),
305     Committer("Jesus Sanchez-Palencia", ["jesus@webkit.org", "jesus.palencia@openbossa.org"], "jeez_"),
306     Committer("Jia Pu", "jpu@apple.com"),
307     Committer("Joanmarie Diggs", "jdiggs@igalia.com", "joanie"),
308     Committer("Joe Thomas", "joethomas@motorola.com", "joethomas"),
309     Committer("John Abd-El-Malek", "jam@chromium.org", "jam"),
310     Committer("John Gregg", ["johnnyg@google.com", "johnnyg@chromium.org"], "johnnyg"),
311     Committer("John Knottenbelt", "jknotten@chromium.org", "jknotten"),
312     Committer("Johnny Ding", ["jnd@chromium.org", "johnnyding.webkit@gmail.com"], "johnnyding"),
313     Committer("Jon Lee", "jonlee@apple.com", "jonlee"),
314     Committer("Jonathan Dong", ["jonathan.dong.webkit@gmail.com"], "jondong"),
315     Committer("Joone Hur", ["joone@webkit.org", "joone.hur@intel.com"], "joone"),
316     Committer("Joost de Valk", ["joost@webkit.org", "webkit-dev@joostdevalk.nl"], "Altha"),
317     Committer("Joshua Bell", ["jsbell@chromium.org", "jsbell@google.com"], "jsbell"),
318     Committer("Julie Parent", ["jparent@google.com", "jparent@chromium.org"], "jparent"),
319     Committer("Jungshik Shin", "jshin@chromium.org"),
320     Committer("Justin Novosad", ["junov@google.com", "junov@chromium.org"], "junov"),
321     Committer("Justin Schuh", "jschuh@chromium.org", "jschuh"),
322     Committer("Kangil Han", ["kangil.han@samsung.com", "kangil.han@gmail.com"], "kangil"),
323     Committer("Karen Grunberg", "kareng@chromium.org", "kareng"),
324     Committer("Kaustubh Atrawalkar", ["kaustubh@motorola.com"], "silverroots"),
325     Committer("Keishi Hattori", "keishi@webkit.org", "keishi"),
326     Committer("Kelly Norton", "knorton@alum.mit.edu"),
327     Committer("Ken Buchanan", "kenrb@chromium.org", "kenrb"),
328     Committer("Kenichi Ishibashi", "bashi@chromium.org", "bashi"),
329     Committer("Kenji Imasaki", "imasaki@chromium.org", "imasaki"),
330     Committer("Kent Hansen", "kent.hansen@nokia.com", "khansen"),
331     Committer("Kihong Kwon", "kihong.kwon@samsung.com", "kihong"),
332     Committer(u"Kim Gr\u00f6nholm", "kim.1.gronholm@nokia.com"),
333     Committer("Kimmo Kinnunen", ["kimmo.t.kinnunen@nokia.com", "kimmok@iki.fi", "ktkinnun@webkit.org"], "kimmok"),
334     Committer("Kinuko Yasuda", "kinuko@chromium.org", "kinuko"),
335     Committer("Kiran Muppala", "cmuppala@apple.com", "kiranm"),
336     Committer("Konrad Piascik", ["kpiascik@blackberry.com", "kpiascik@rim.com"], "kpiascik"),
337     Committer("Kristof Kosztyo", "kkristof@inf.u-szeged.hu", "kkristof"),
338     Committer("Krzysztof Kowalczyk", "kkowalczyk@gmail.com"),
339     Committer("Kwang Yul Seo", ["skyul@company100.net", "kseo@webkit.org"], "kseo"),
340     Committer("Lauro Neto", "lauro.neto@openbossa.org", "lmoura"),
341     Committer("Leandro Gracia Gil", "leandrogracia@chromium.org", "leandrogracia"),
342     Committer("Leandro Pereira", ["leandro@profusion.mobi", "leandro@webkit.org"], "acidx"),
343     Committer("Leo Yang", ["leoyang@blackberry.com", "leoyang@rim.com", "leoyang@webkit.org", "leoyang.webkit@gmail.com"], "leoyang"),
344     Committer("Li Yin", ["li.yin@intel.com"], "liyin"),
345     Committer("Lucas De Marchi", ["demarchi@webkit.org", "lucas.demarchi@profusion.mobi"], "demarchi"),
346     Committer("Lucas Forschler", ["lforschler@apple.com"], "lforschler"),
347     Committer("Luciano Wolf", "luciano.wolf@openbossa.org", "luck"),
348     Committer("Luke Macpherson", ["macpherson@chromium.org", "macpherson@google.com"], "macpherson"),
349     Committer("Mads Ager", "ager@chromium.org"),
350     Committer("Mahesh Kulkarni", ["mahesh.kulkarni@nokia.com", "maheshk@webkit.org"], "maheshk"),
351     Committer("Marcus Voltis Bulach", "bulach@chromium.org"),
352     Committer("Mario Sanchez Prada", ["mario@webkit.org", "mario.prada@samsung.com"], "msanchez"),
353     Committer("Mark Lam", "mark.lam@apple.com", "mlam"),
354     Committer("Mark Pilgrim", "pilgrim@chromium.org", "pilgrim_google"),
355     Committer("Mary Wu", ["mary.wu@torchmobile.com.cn", "wwendy2007@gmail.com"], "marywu"),
356     Committer("Matt Delaney", "mdelaney@apple.com"),
357     Committer("Matt Falkenhagen", "falken@chromium.org", "falken"),
358     Committer("Matt Lilek", ["mlilek@apple.com", "webkit@mattlilek.com", "pewtermoose@webkit.org"], "pewtermoose"),
359     Committer("Matt Perry", "mpcomplete@chromium.org"),
360     Committer("Max Vujovic", ["mvujovic@adobe.com", "maxvujovic@gmail.com"], "mvujovic"),
361     Committer("Maxime Britto", ["maxime.britto@gmail.com", "britto@apple.com"]),
362     Committer("Maxime Simon", ["simon.maxime@gmail.com", "maxime.simon@webkit.org"], "maxime.simon"),
363     Committer(u"Michael Br\u00fcning", ["michael.bruning@digia.com", "michaelbruening@gmail.com"], "mibrunin"),
364     Committer("Michael Nordman", "michaeln@google.com", "michaeln"),
365     Committer("Michelangelo De Simone", "michelangelo@webkit.org", "michelangelo"),
366     Committer("Mihnea Ovidenie", "mihnea@adobe.com", "mihnea"),
367     Committer("Mike Belshe", ["mbelshe@chromium.org", "mike@belshe.com"]),
368     Committer("Mike Fenton", ["mifenton@blackberry.com", "mifenton@rim.com", "mike.fenton@torchmobile.com"], "mfenton"),
369     Committer("Mike Lawther", "mikelawther@chromium.org", "mikelawther"),
370     Committer("Mike Reed", "reed@google.com", "reed"),
371     Committer("Mike Thole", ["mthole@mikethole.com", "mthole@apple.com"]),
372     Committer("Mike West", ["mkwst@chromium.org", "mike@mikewest.org"], "mkwst"),
373     Committer("Mikhail Naganov", "mnaganov@chromium.org"),
374     Committer("Mikhail Pozdnyakov", "mikhail.pozdnyakov@intel.com", "MPozdnyakov"),
375     Committer("Naoki Takano", ["honten@chromium.org", "takano.naoki@gmail.com"], "honten"),
376     Committer("Nat Duca", ["nduca@chromium.org", "nduca@google.com"], "nduca"),
377     Committer("Nayan Kumar K", ["nayankk@motorola.com", "nayankk@gmail.com"], "xc0ffee"),
378     Committer("Nima Ghanavatian", ["nghanavatian@blackberry.com", "nghanavatian@rim.com", "nima.ghanavatian@gmail.com"], "nghanavatian"),
379     Committer("Noel Gordon", ["noel.gordon@gmail.com", "noel@chromium.org", "noel@google.com"], "noel"),
380     Committer("Pablo Flouret", ["pablof@motorola.com", "pf@parb.es"], "pablof"),
381     Committer("Pam Greene", "pam@chromium.org", "pamg"),
382     Committer("Patrick Gansterer", ["paroga@paroga.com", "paroga@webkit.org"], "paroga"),
383     Committer("Pavel Podivilov", "podivilov@chromium.org", "podivilov"),
384     Committer("Peter Beverloo", ["peter@chromium.org", "peter@webkit.org", "beverloo@google.com"], "beverloo"),
385     Committer("Peter Kasting", ["pkasting@google.com", "pkasting@chromium.org"], "pkasting"),
386     Committer("Peter Varga", ["pvarga@webkit.org", "pvarga@inf.u-szeged.hu"], "stampho"),
387     Committer("Pierre d'Herbemont", ["pdherbemont@free.fr", "pdherbemont@apple.com"], "pdherbemont"),
388     Committer("Pierre-Olivier Latour", "pol@apple.com", "pol"),
389     Committer("Pierre Rossi", "pierre.rossi@gmail.com", "elproxy"),
390     Committer("Pratik Solanki", "psolanki@apple.com", "psolanki"),
391     Committer("Pravin D", ["pravind@webkit.org", "pravin.d@samsung.com"], "pravind"),
392     Committer("Qi Zhang", "qi.zhang02180@gmail.com", "qi"),
393     Committer("Rafael Antognolli", "antognolli@profusion.mobi", "antognolli"),
394     Committer("Rafael Brandao", "rafael.lobo@openbossa.org", "rafaelbrandao"),
395     Committer("Rafael Weinstein", "rafaelw@chromium.org", "rafaelw"),
396     Committer("Raphael Kubo da Costa", ["rakuco@webkit.org", "rakuco@FreeBSD.org", "raphael.kubo.da.costa@intel.com"], "rakuco"),
397     Committer("Ravi Kasibhatla", "ravi.kasibhatla@motorola.com", "kphanee"),
398     Committer("Raymond Toy", ["rtoy@google.com", "rtoy@chromium.org"], "rtoy"),
399     Committer("Renata Hodovan", "reni@webkit.org", "reni"),
400     Committer("Robert Hogan", ["robert@webkit.org", "robert@roberthogan.net", "lists@roberthogan.net"], "rhogan"),
401     Committer("Robert Kroeger", "rjkroege@chromium.org", "rjkroege"),
402     Committer("Roger Fong", "roger_fong@apple.com", "rfong"),
403     Committer("Roland Steiner", "rolandsteiner@chromium.org"),
404     Committer("Ryuan Choi", ["ryuan.choi@samsung.com", "ryuan.choi@gmail.com"],"ryuan"),
405     Committer("Sadrul Habib Chowdhury", "sadrul@chromium.org", ["sadrul", "sadrulhc"]),
406     Committer(u"Sami Ky\u00f6stil\u00e4", "skyostil@chromium.org", "skyostil"),
407     Committer("Satish Sampath", "satish@chromium.org"),
408     Committer("Scott Violet", "sky@chromium.org", "sky"),
409     Committer("Sergio Villar Senin", ["svillar@igalia.com", "sergio@webkit.org"], "svillar"),
410     Committer("Shawn Singh", "shawnsingh@chromium.org", "shawnsingh"),
411     Committer("Shinya Kawanaka", "shinyak@chromium.org", "shinyak"),
412     Committer("Siddharth Mathur", "siddharth.mathur@nokia.com", "simathur"),
413     Committer("Silvia Pfeiffer", "silviapf@chromium.org", "silvia"),
414     Committer("Simon Pena", "spena@igalia.com", "spenap"),
415     Committer("Steve Lacey", "sjl@chromium.org", "stevela"),
416     Committer("Sudarsana Nagineni", ["naginenis@gmail.com", "sudarsana.nagineni@linux.intel.com", "sudarsana.nagineni@intel.com"], "babu"),
417     Committer("Szilard Ledan-Muntean", "szledan@inf.u-szeged.hu", "szledan"),
418     Committer("Taiju Tsuiki", "tzik@chromium.org", "tzik"),
419     Committer("Takashi Sakamoto", "tasak@google.com", "tasak"),
420     Committer("Takashi Toyoshima", ["toyoshim@chromium.org", "toyoshim+watchlist@chromium.org"], "toyoshim"),
421     Committer("Terry Anderson", "tdanderson@chromium.org", "tdanderson"),
422     Committer("Thiago Marcos P. Santos", ["tmpsantos@gmail.com", "thiago.santos@intel.com"], "tmpsantos"),
423     Committer("Thomas Sepez", "tsepez@chromium.org", "tsepez"),
424     Committer("Tom Hudson", ["tomhudson@google.com", "tomhudson@chromium.org"], "tomhudson"),
425     Committer("Tom Zakrajsek", "tomz@codeaurora.org", "tomz"),
426     Committer("Tommy Widenflycht", "tommyw@google.com", "tommyw"),
427     Committer("Trey Matteson", "trey@usa.net", "trey"),
428     Committer("Tristan O'Tierney", ["tristan@otierney.net", "tristan@apple.com"]),
429     Committer("Vangelis Kokkevis", "vangelis@chromium.org", "vangelis"),
430     Committer("Viatcheslav Ostapenko", ["ostap73@gmail.com", "v.ostapenko@samsung.com", "v.ostapenko@sisa.samsung.com"], "ostap"),
431     Committer("Victor Carbune", ["vcarbune@chromium.org", "victor@rosedu.org"], "vcarbune"),
432     Committer("Victor Wang", "victorw@chromium.org", "victorw"),
433     Committer("Victoria Kirst", ["vrk@chromium.org", "vrk@google.com"], "vrk"),
434     Committer("Vincent Scheib", "scheib@chromium.org", "scheib"),
435     Committer("Vineet Chaudhary", "rgf748@motorola.com", "vineetc"),
436     Committer("Vitaly Repeshko", "vitalyr@chromium.org"),
437     Committer("Vivek Galatage", ["vivekg@webkit.org", "vivek.vg@samsung.com"], "vivekg"),
438     Committer("William Siegrist", "wsiegrist@apple.com", "wms"),
439     Committer("W. James MacLean", "wjmaclean@chromium.org", "seumas"),
440     Committer("Xianzhu Wang", ["wangxianzhu@chromium.org", "phnixwxz@gmail.com", "wangxianzhu@google.com"], "wangxianzhu"),
441     Committer("Xiaohai Wei", ["james.wei@intel.com", "wistoch@chromium.org"], "wistoch"),
442     Committer("Xiaomei Ji", "xji@chromium.org", "xji"),
443     Committer("Xingnan Wang", "xingnan.wang@intel.com", "xingnan"),
444     Committer("Yael Aharon", "yael@webkit.org", "yael"),
445     Committer("Yaar Schnitman", ["yaar@chromium.org", "yaar@google.com"]),
446     Committer("Yi Shen", ["max.hong.shen@gmail.com", "yi.shen@sisa.samsung.com", "yi.4.shen@nokia.com"]),
447     Committer("Yongjun Zhang", ["yongjun_zhang@apple.com", "yongjun.zhang@nokia.com"]),
448     Committer("Yoshifumi Inoue", "yosin@chromium.org", "yosin"),
449     Committer("Yuqiang Xian", "yuqiang.xian@intel.com"),
450     Committer("Yuzo Fujishima", "yuzo@google.com", "yuzo"),
451     Committer("Zalan Bujtas", ["zalan@apple.com", "zbujtas@gmail.com", "zalan.bujtas@nokia.com"], "zalan"),
452     Committer("Zeno Albisser", ["zeno@webkit.org", "zeno.albisser@nokia.com"], "zalbisser"),
453     Committer("Zhenyao Mo", "zmo@google.com", "zhenyao"),
454     Committer("Zoltan Arvai", "zarvai@inf.u-szeged.hu", "azbest_hu"),
455     Committer("Zoltan Horvath", ["zoltan@webkit.org", "hzoltan@inf.u-szeged.hu", "horvath.zoltan.6@stud.u-szeged.hu"], "zoltan"),
456     Committer(u"\u017dan Dober\u0161ek", "zandobersek@gmail.com", "zdobersek"),
457 ]
458
459
460 # This is intended as a canonical, machine-readable list of all reviewers for
461 # WebKit.  If your name is missing here and you are a reviewer, please add it.
462 # No review needed.
463
464
465 reviewers_list = [
466     Reviewer("Abhishek Arya", "inferno@chromium.org", "inferno-sec"),
467     Reviewer("Ada Chan", "adachan@apple.com", "chanada"),
468     Reviewer("Adam Barth", "abarth@webkit.org", "abarth"),
469     Reviewer("Adam Roben", ["aroben@webkit.org", "aroben@apple.com"], "aroben"),
470     Reviewer("Adam Treat", ["treat@kde.org", "treat@webkit.org"], "manyoso"),
471     Reviewer("Adele Peterson", "adele@apple.com", "adele"),
472     Reviewer("Adrienne Walker", ["enne@google.com", "enne@chromium.org"], "enne"),
473     Reviewer("Alejandro G. Castro", ["alex@igalia.com", "alex@webkit.org"], "alexg__"),
474     Reviewer("Alexander Pavlov", ["apavlov@chromium.org", "pavlov81@gmail.com"], "apavlov"),
475     Reviewer("Alexey Proskuryakov", ["ap@webkit.org", "ap@apple.com"], "ap"),
476     Reviewer("Alexis Menard", ["alexis@webkit.org", "menard@kde.org"], "darktears"),
477     Reviewer("Alice Liu", "alice.liu@apple.com", "aliu"),
478     Reviewer("Allan Sandfeld Jensen", ["allan.jensen@digia.com", "kde@carewolf.com", "sandfeld@kde.org", "allan.jensen@nokia.com"], "carewolf"),
479     Reviewer("Alp Toker", ["alp@nuanti.com", "alp@atoker.com", "alp@webkit.org"], "alp"),
480     Reviewer("Anders Carlsson", ["andersca@apple.com", "acarlsson@apple.com"], "andersca"),
481     Reviewer("Andreas Kling", ["akling@apple.com", "kling@webkit.org", "awesomekling@apple.com", "andreas.kling@nokia.com"], "kling"),
482     Reviewer("Andy Estes", "aestes@apple.com", "estes"),
483     Reviewer("Antonio Gomes", ["tonikitoo@webkit.org", "a1.gomes@sisa.samsung.com", "antonio.netto@samsung.com", "antonio.gomes@openbossa.org"], "tonikitoo"),
484     Reviewer("Antti Koivisto", ["koivisto@iki.fi", "antti@apple.com", "antti.j.koivisto@nokia.com"], "anttik"),
485     Reviewer("Ariya Hidayat", ["ariya.hidayat@gmail.com", "ariya@sencha.com", "ariya@webkit.org"], "ariya"),
486     Reviewer("Benjamin Poulain", ["benjamin@webkit.org", "benjamin.poulain@nokia.com", "ikipou@gmail.com"], "benjaminp"),
487     Reviewer("Beth Dakin", "bdakin@apple.com", "dethbakin"),
488     Reviewer("Brady Eidson", "beidson@apple.com", "bradee-oh"),
489     Reviewer("Brent Fulgham", "bfulgham@webkit.org", "bfulgham"),
490     Reviewer("Brian Weinstein", "bweinstein@apple.com", "bweinstein"),
491     Reviewer("Caio Marcelo de Oliveira Filho", ["cmarcelo@webkit.org", "cmarcelo@gmail.com", "caio.oliveira@openbossa.org"], "cmarcelo"),
492     Reviewer("Cameron Zwarich", ["zwarich@apple.com", "cwzwarich@apple.com", "cwzwarich@webkit.org"]),
493     Reviewer("Carlos Garcia Campos", ["cgarcia@igalia.com", "carlosgc@gnome.org", "carlosgc@webkit.org"], "KaL"),
494     Reviewer("Chang Shu", ["cshu@webkit.org", "c.shu@sisa.samsung.com"], "cshu"),
495     Reviewer("Chris Blumenberg", "cblu@apple.com", "cblu"),
496     Reviewer("Chris Marrin", "cmarrin@apple.com", "cmarrin"),
497     Reviewer("Chris Fleizach", "cfleizach@apple.com", "cfleizach"),
498     Reviewer("Chris Jerdonek", "cjerdonek@webkit.org", "cjerdonek"),
499     Reviewer("Chris Rogers", "crogers@google.com", "crogers"),
500     Reviewer(u"Csaba Osztrogon\u00e1c", "ossy@webkit.org", "ossy"),
501     Reviewer("Dan Bernstein", ["mitz@webkit.org", "mitz@apple.com"], "mitzpettel"),
502     Reviewer("Daniel Bates", "dbates@webkit.org", "dydz"),
503     Reviewer("Darin Adler", "darin@apple.com", "darin"),
504     Reviewer("Darin Fisher", ["fishd@chromium.org", "darin@chromium.org"], "fishd"),
505     Reviewer("David Harrison", "harrison@apple.com", "harrison"),
506     Reviewer("David Hyatt", "hyatt@apple.com", ["dhyatt", "hyatt"]),
507     Reviewer("David Kilzer", ["ddkilzer@webkit.org", "ddkilzer@apple.com"], "ddkilzer"),
508     Reviewer("David Levin", "levin@chromium.org", "dave_levin"),
509     Reviewer("Dean Jackson", "dino@apple.com", "dino"),
510     Reviewer("Dimitri Glazkov", "dglazkov@chromium.org", "dglazkov"),
511     Reviewer("Dirk Pranke", "dpranke@chromium.org", "dpranke"),
512     Reviewer("Dirk Schulze", "krit@webkit.org", "krit"),
513     Reviewer("Dmitry Titov", "dimich@chromium.org", "dimich"),
514     Reviewer("Don Melton", "gramps@apple.com", "gramps"),
515     Reviewer("Dumitru Daniliuc", "dumi@chromium.org", "dumi"),
516     Reviewer("Elliott Sprehn", ["esprehn@chromium.org", "esprehn+autocc@chromium.org"], "esprehn"),
517     Reviewer("Emil A Eklund", "eae@chromium.org", "eae"),
518     Reviewer("Enrica Casucci", "enrica@apple.com", "enrica"),
519     Reviewer("Eric Carlson", "eric.carlson@apple.com", "eric_carlson"),
520     Reviewer("Eric Seidel", "eric@webkit.org", "eseidel"),
521     Reviewer("Filip Pizlo", "fpizlo@apple.com", "pizlo"),
522     Reviewer("Gavin Barraclough", "barraclough@apple.com", "gbarra"),
523     Reviewer("Geoffrey Garen", "ggaren@apple.com", "ggaren"),
524     Reviewer("George Staikos", ["staikos@kde.org", "staikos@webkit.org"]),
525     Reviewer("Gustavo Noronha Silva", ["gns@gnome.org", "kov@webkit.org", "gustavo.noronha@collabora.co.uk", "gustavo.noronha@collabora.com"], "kov"),
526     Reviewer("Gyuyoung Kim", ["gyuyoung.kim@samsung.com", "gyuyoung.kim@webkit.org"], "gyuyoung"),
527     Reviewer("Hajime Morrita", ["morrita@google.com", "morrita@chromium.org"], "morrita"),
528     Reviewer("Holger Freyther", ["zecke@selfish.org", "zecke@webkit.org"], "zecke"),
529     Reviewer("James Robinson", ["jamesr@chromium.org", "jamesr@google.com"], "jamesr"),
530     Reviewer("Jan Alonzo", ["jmalonzo@gmail.com", "jmalonzo@webkit.org"], "janm"),
531     Reviewer("Jer Noble", "jer.noble@apple.com", "jernoble"),
532     Reviewer("Jeremy Orlow", ["jorlow@webkit.org", "jorlow@chromium.org"], "jorlow"),
533     Reviewer("Jessie Berlin", ["jberlin@webkit.org", "jberlin@apple.com"], "jessieberlin"),
534     Reviewer("Jian Li", "jianli@chromium.org", "jianli"),
535     Reviewer("Jocelyn Turcotte", ["jocelyn.turcotte@digia.com", "jocelyn.turcotte@nokia.com"], "jturcotte"),
536     Reviewer("Jochen Eisinger", "jochen@chromium.org", "jochen__"),
537     Reviewer("John Sullivan", "sullivan@apple.com", "sullivan"),
538     Reviewer("Jon Honeycutt", "jhoneycutt@apple.com", "jhoneycutt"),
539     Reviewer("Joseph Pecoraro", ["joepeck@webkit.org", "pecoraro@apple.com"], "JoePeck"),
540     Reviewer("Julien Chaffraix", ["jchaffraix@webkit.org", "julien.chaffraix@gmail.com", "jchaffraix@google.com", "jchaffraix@codeaurora.org"], "jchaffraix"),
541     Reviewer("Justin Garcia", "justin.garcia@apple.com", "justing"),
542     Reviewer("Ken Kocienda", "kocienda@apple.com"),
543     Reviewer("Kenneth Rohde Christiansen", ["kenneth@webkit.org", "kenneth.r.christiansen@intel.com", "kenneth.christiansen@gmail.com"], ["kenneth_", "kenneth", "kenne"]),
544     Reviewer("Kenneth Russell", ["kbr@google.com", "kbr@chromium.org"], ["kbr_google", "kbrgg"]),
545     Reviewer("Kent Tamura", ["tkent@chromium.org", "tkent@google.com"], "tkent"),
546     Reviewer("Kentaro Hara", ["haraken@chromium.org"], "haraken"),
547     Reviewer("Kevin Decker", "kdecker@apple.com", "superkevin"),
548     Reviewer("Kevin McCullough", "kmccullough@apple.com", "maculloch"),
549     Reviewer("Kevin Ollivier", ["kevino@theolliviers.com", "kevino@webkit.org"], "kollivier"),
550     Reviewer("Lars Knoll", ["lars@trolltech.com", "lars@kde.org", "lars.knoll@nokia.com"], "lars"),
551     Reviewer("Laszlo Gombos", ["laszlo.gombos@webkit.org", "l.gombos@samsung.com", "laszlo.gombos@gmail.com", "laszlo.1.gombos@nokia.com"], "lgombos"),
552     Reviewer("Levi Weintraub", ["leviw@chromium.org", "leviw@google.com", "lweintraub@apple.com"], "leviw"),
553     Reviewer("Luiz Agostini", ["luiz@webkit.org", "luiz.agostini@openbossa.org"], "lca"),
554     Reviewer("Maciej Stachowiak", "mjs@apple.com", "othermaciej"),
555     Reviewer("Mark Hahnenberg", "mhahnenberg@apple.com", "mhahnenberg"),
556     Reviewer("Mark Rowe", "mrowe@apple.com", "bdash"),
557     Reviewer("Martin Robinson", ["mrobinson@webkit.org", "mrobinson@igalia.com", "martin.james.robinson@gmail.com"], "mrobinson"),
558     Reviewer("Michael Saboff", "msaboff@apple.com", "msaboff"),
559     Reviewer("Mihai Parparita", "mihaip@chromium.org", "mihaip"),
560     Reviewer("Nate Chapin", "japhet@chromium.org", ["japhet", "natechapin"]),
561     Reviewer("Nico Weber", ["thakis@chromium.org", "thakis@google.com"], "thakis"),
562     Reviewer("Nikolas Zimmermann", ["zimmermann@kde.org", "zimmermann@physik.rwth-aachen.de", "zimmermann@webkit.org", "nzimmermann@blackberry.com", "nzimmermann@rim.com"], "wildfox"),
563     Reviewer("Noam Rosenthal", ["noam@webkit.org", "noam.rosenthal@nokia.com"], "noamr"),
564     Reviewer("Ojan Vafai", ["ojan@chromium.org", "ojan.autocc@gmail.com"], "ojan"),
565     Reviewer("Oliver Hunt", "oliver@apple.com", "olliej"),
566     Reviewer("Pavel Feldman", ["pfeldman@chromium.org", "pfeldman@google.com"], "pfeldman"),
567     Reviewer("Philip Rogers", ["pdr@google.com", "pdr@chromium.org"], "pdr"),
568     Reviewer("Philippe Normand", ["pnormand@igalia.com", "philn@webkit.org", "philn@igalia.com"], "philn"),
569     Reviewer("Richard Williamson", "rjw@apple.com", "rjw"),
570     Reviewer("Rob Buis", ["rwlbuis@gmail.com", "rwlbuis@webkit.org", "rbuis@blackberry.com", "rbuis@rim.com"], "rwlbuis"),
571     Reviewer("Ryosuke Niwa", "rniwa@webkit.org", "rniwa"),
572     Reviewer("Sam Weinig", ["sam@webkit.org", "weinig@apple.com"], "weinig"),
573     Reviewer("Shinichiro Hamaji", "hamaji@chromium.org", "hamaji"),
574     Reviewer("Simon Fraser", "simon.fraser@apple.com", "smfr"),
575     Reviewer("Simon Hausmann", ["hausmann@webkit.org", "hausmann@kde.org", "simon.hausmann@digia.com"], "tronical"),
576     Reviewer("Stephanie Lewis", "slewis@apple.com", "sundiamonde"),
577     Reviewer("Stephen Chenney", "schenney@chromium.org", "schenney"),
578     Reviewer("Stephen White", "senorblanco@chromium.org", "senorblanco"),
579     Reviewer("Steve Block", ["steveblock@chromium.org", "steveblock@google.com"], "steveblock"),
580     Reviewer("Steve Falkenburg", "sfalken@apple.com", "sfalken"),
581     Reviewer("Tim Omernick", "timo@apple.com"),
582     Reviewer("Timothy Hatcher", ["timothy@apple.com", "timothy@hatcher.name"], "xenon"),
583     Reviewer("Tim Horton", "timothy_horton@apple.com", "thorton"),
584     Reviewer("Tony Chang", "tony@chromium.org", "tony^work"),
585     Reviewer("Tony Gentilcore", "tonyg@chromium.org", "tonyg-cr"),
586     Reviewer(u"Tor Arne Vestb\u00f8", ["vestbo@webkit.org", "tor.arne.vestbo@nokia.com"], "torarne"),
587     Reviewer("Vicki Murley", "vicki@apple.com"),
588     Reviewer("Vsevolod Vlasov", "vsevik@chromium.org", "vsevik"),
589     Reviewer("Xan Lopez", ["xan.lopez@gmail.com", "xan@gnome.org", "xan@webkit.org", "xlopez@igalia.com"], "xan"),
590     Reviewer("Yong Li", ["yong.li.webkit@outlook.com"], "yoli"),
591     Reviewer("Yury Semikhatsky", "yurys@chromium.org", "yurys"),
592     Reviewer("Yuta Kitamura", "yutak@chromium.org", "yutak"),
593     Reviewer("Zack Rusin", "zack@kde.org", "zackr"),
594     Reviewer("Zoltan Herczeg", ["zherczeg@webkit.org", "zherczeg@inf.u-szeged.hu"], "zherczeg"),
595 ]
596
597 class CommitterList(object):
598
599     # Committers and reviewers are passed in to allow easy testing
600     def __init__(self,
601                  committers=committers_unable_to_review,
602                  reviewers=reviewers_list,
603                  contributors=contributors_who_are_not_committers):
604         self._contributors = contributors + committers + reviewers
605         self._committers = committers + reviewers
606         self._reviewers = reviewers
607         self._contributors_by_name = {}
608         self._accounts_by_email = {}
609         self._accounts_by_login = {}
610
611     def contributors(self):
612         return self._contributors
613
614     def committers(self):
615         return self._committers
616
617     def reviewers(self):
618         return self._reviewers
619
620     def _name_to_contributor_map(self):
621         if not len(self._contributors_by_name):
622             for contributor in self._contributors:
623                 assert(contributor.full_name)
624                 assert(contributor.full_name.lower() not in self._contributors_by_name)  # We should never have duplicate names.
625                 self._contributors_by_name[contributor.full_name.lower()] = contributor
626         return self._contributors_by_name
627
628     def _email_to_account_map(self):
629         if not len(self._accounts_by_email):
630             for account in self._contributors:
631                 for email in account.emails:
632                     assert(email not in self._accounts_by_email)  # We should never have duplicate emails.
633                     self._accounts_by_email[email] = account
634         return self._accounts_by_email
635
636     def _login_to_account_map(self):
637         if not len(self._accounts_by_login):
638             for account in self._contributors:
639                 if account.emails:
640                     login = account.bugzilla_email()
641                     assert(login not in self._accounts_by_login)  # We should never have duplicate emails.
642                     self._accounts_by_login[login] = account
643         return self._accounts_by_login
644
645     def _committer_only(self, record):
646         if record and not record.can_commit:
647             return None
648         return record
649
650     def _reviewer_only(self, record):
651         if record and not record.can_review:
652             return None
653         return record
654
655     def committer_by_name(self, name):
656         return self._committer_only(self.contributor_by_name(name))
657
658     def contributor_by_irc_nickname(self, irc_nickname):
659         for contributor in self.contributors():
660             # FIXME: This should do case-insensitive comparison or assert that all IRC nicknames are in lowercase
661             if contributor.irc_nicknames and irc_nickname in contributor.irc_nicknames:
662                 return contributor
663         return None
664
665     def contributors_by_search_string(self, string):
666         glob_matches = filter(lambda contributor: contributor.matches_glob(string), self.contributors())
667         return glob_matches or filter(lambda contributor: contributor.contains_string(string), self.contributors())
668
669     def contributors_by_email_username(self, string):
670         string = string + '@'
671         result = []
672         for contributor in self.contributors():
673             for email in contributor.emails:
674                 if email.startswith(string):
675                     result.append(contributor)
676                     break
677         return result
678
679     def _contributor_name_shorthands(self, contributor):
680         if ' ' not in contributor.full_name:
681             return []
682         split_fullname = contributor.full_name.split()
683         first_name = split_fullname[0]
684         last_name = split_fullname[-1]
685         return first_name, last_name, first_name + last_name[0], first_name + ' ' + last_name[0]
686
687     def _tokenize_contributor_name(self, contributor):
688         full_name_in_lowercase = contributor.full_name.lower()
689         tokens = [full_name_in_lowercase] + full_name_in_lowercase.split()
690         if contributor.irc_nicknames:
691             return tokens + [nickname.lower() for nickname in contributor.irc_nicknames if len(nickname) > 5]
692         return tokens
693
694     def contributors_by_fuzzy_match(self, string):
695         string_in_lowercase = string.lower()
696
697         # 1. Exact match for fullname, email and irc_nicknames
698         account = self.contributor_by_name(string_in_lowercase) or self.contributor_by_email(string_in_lowercase) or self.contributor_by_irc_nickname(string_in_lowercase)
699         if account:
700             return [account], 0
701
702         # 2. Exact match for email username (before @)
703         accounts = self.contributors_by_email_username(string_in_lowercase)
704         if accounts and len(accounts) == 1:
705             return accounts, 0
706
707         # 3. Exact match for first name, last name, and first name + initial combinations such as "Dan B" and "Tim H"
708         accounts = [contributor for contributor in self.contributors() if string in self._contributor_name_shorthands(contributor)]
709         if accounts and len(accounts) == 1:
710             return accounts, 0
711
712         # 4. Finally, fuzzy-match using edit-distance
713         string = string_in_lowercase
714         contributorWithMinDistance = []
715         minDistance = len(string) / 2 - 1
716         for contributor in self.contributors():
717             tokens = self._tokenize_contributor_name(contributor)
718             editdistances = [edit_distance(token, string) for token in tokens if abs(len(token) - len(string)) <= minDistance]
719             if not editdistances:
720                 continue
721             distance = min(editdistances)
722             if distance == minDistance:
723                 contributorWithMinDistance.append(contributor)
724             elif distance < minDistance:
725                 contributorWithMinDistance = [contributor]
726                 minDistance = distance
727         if not len(contributorWithMinDistance):
728             return [], len(string)
729         return contributorWithMinDistance, minDistance
730
731     def contributor_by_email(self, email):
732         return self._email_to_account_map().get(email.lower()) if email else None
733
734     def contributor_by_name(self, name):
735         return self._name_to_contributor_map().get(name.lower()) if name else None
736
737     def committer_by_email(self, email):
738         return self._committer_only(self.contributor_by_email(email))
739
740     def reviewer_by_email(self, email):
741         return self._reviewer_only(self.contributor_by_email(email))