d1ba26af204428fce463fe6a7bfd84f2f131037b,tests/test_enum_fields.py,,,#,69

Before Change


        self.assertEqual(results[0].enum_array, instance.enum_array)


Fruit = Enum("Fruit", u"apple banana orange")


class ModelWithEnum(Model):

After Change


        self.assertEqual(results[0].enum_array, instance.enum_array)


Fruit = Enum("Fruit", [("apple", 1), ("banana", 2), ("orange", 3), ("cherry", -7)])


class ModelWithEnum(Model):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: Infinidat/infi.clickhouse_orm
Commit Name: d1ba26af204428fce463fe6a7bfd84f2f131037b
Time: 2020-05-01
Author: itais@infinidat.com
File Name: tests/test_enum_fields.py
Class Name:
Method Name:


Project Name: tensorflow/tpu
Commit Name: 3758878f2852139f50eaa5078c3a0ee386ab36e0
Time: 2020-04-27
Author: pengchong@google.com
File Name: models/official/detection/modeling/architecture/nasfpn.py
Class Name:
Method Name:


Project Name: bokeh/bokeh
Commit Name: 9eb494242c4486661d021882f058d261ef105590
Time: 2015-12-07
Author: mattpap@gmail.com
File Name: bokeh/models/annotations.py
Class Name: Legend
Method Name: Legend_1


Project Name: pytorch/pytorch
Commit Name: 5e79b8e06d5489b6d89792f8a225ed19f317614a
Time: 2021-01-25
Author: ezyang@fb.com
File Name: tools/codegen/model.py
Class Name:
Method Name: