635197de38f9d8f7ca37c96c6e13cd67bc62dc4c,src/infi/clickhouse_orm/models.py,ModelBase,__new__,#Any#Any#Any#Any#,50

Before Change


        fields = sorted(fields.items(), key=lambda item: item[1].creation_counter)

        // Build a list of constraints
        constraints.update({n: c for n, c in attrs.items() if isinstance(c, Constraint)})

        // Build a dictionary of default values
        defaults = {}
        has_funcs_as_defaults = False

After Change


                indexes.update(base._indexes)

        // Add fields, constraints and indexes from this class
        for n, obj in attrs.items():
            if isinstance(obj, Field):
                fields[n] = obj
            elif isinstance(obj, Constraint):
                constraints[n] = obj
            elif isinstance(obj, Index):
                indexes[n] = obj

        // Convert fields to a list of (name, field) tuples, in the order they were listed in the class
        fields = sorted(fields.items(), key=lambda item: item[1].creation_counter)

        // Build a dictionary of default values
        defaults = {}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: Infinidat/infi.clickhouse_orm
Commit Name: 635197de38f9d8f7ca37c96c6e13cd67bc62dc4c
Time: 2020-06-06
Author: itais@infinidat.com
File Name: src/infi/clickhouse_orm/models.py
Class Name: ModelBase
Method Name: __new__


Project Name: pantsbuild/pants
Commit Name: 3b9451ca512dcd204328c8547cdc3a1a986d8b6a
Time: 2015-02-23
Author: stuhood@gmail.com
File Name: src/python/pants/backend/jvm/tasks/ivy_resolve.py
Class Name: IvyResolve
Method Name: execute


Project Name: brian-team/brian2
Commit Name: 3245eece6e5951f3216d030f7fe3200c4caf3a6f
Time: 2014-01-15
Author: marcel.stimberg@ens.fr
File Name: brian2/devices/device.py
Class Name: Device
Method Name: code_object