94f092ae5dc64ad0c4e196ab17e7b5d84b219899,theano/gof/type.py,EnumList,__init__,#EnumList#,942
Before Change
def __init__(self, *args):
if len(args) > len(set(args)):
raise AttributeError("EnumList: some constants names are duplicated.")
super(EnumList, self).__init__(**{const_name: const_rank for (const_rank, const_name) in enumerate(args)})
After Change
ctype = kwargs.pop("ctype", "int")
if len(args) > len(set(args)):
raise AttributeError(type(self).__name__ + ": some constants names are duplicated.")
kwargs = {const_name: const_rank for (const_rank, const_name) in enumerate(args)}
kwargs.update(ctype=ctype)
super(EnumList, self).__init__(**kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: Theano/Theano
Commit Name: 94f092ae5dc64ad0c4e196ab17e7b5d84b219899
Time: 2017-04-05
Author: stevenbocco@gmail.com
File Name: theano/gof/type.py
Class Name: EnumList
Method Name: __init__
Project Name: lingpy/lingpy
Commit Name: d26ef4be642ac38d7bb8a85f899dcff0c8a8cd14
Time: 2013-03-29
Author: mattis.list@posteo.de
File Name: lingpy/basic/wordlist.py
Class Name: Wordlist
Method Name: __getattr__
Project Name: Theano/Theano
Commit Name: 94f092ae5dc64ad0c4e196ab17e7b5d84b219899
Time: 2017-04-05
Author: stevenbocco@gmail.com
File Name: theano/gof/type.py
Class Name: EnumType
Method Name: __init__