9b0d7c57ab82f5507aeaa8f686b064b039b6cf77,modules/templates/CCC/controllers.py,register,__call__,#register#,619

Before Change


                                                                                   limitby = (0, 1)
                                                                                   ).first()

        districts_and_uk = copy.copy(districts)
        districts_and_uk[uk.id] = "Outside Cumbria"

        // Check Type of Registration
        agency = donor = existing = group = False

After Change


        districts = db((gtable.level == "L3") & (gtable.L2 == "Cumbria")).select(gtable.id,
                                                                                 gtable.name)
        districts = {d.id:d.name for d in districts}
        districts = OrderedDict(sorted(districts.items(), key=lambda t: t[1]))

        uk = db((gtable.level == "L0") & (gtable.name == "United Kingdom")).select(gtable.id,
                                                                                   limitby = (0, 1)
                                                                                   ).first()

        districts_and_uk = OrderedDict([(uk.id, "Outside Cumbria")])
        for key in districts:
            districts_and_uk[key] = districts[key]

        // Check Type of Registration
        agency = donor = existing = group = False

        def individual_formfields():
            
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: sahana/eden
Commit Name: 9b0d7c57ab82f5507aeaa8f686b064b039b6cf77
Time: 2019-10-19
Author: fran@aidiq.com
File Name: modules/templates/CCC/controllers.py
Class Name: register
Method Name: __call__


Project Name: allenai/allennlp
Commit Name: 606a61abf04e3108949022ae1bcea975b2adb560
Time: 2018-09-12
Author: joelgrus@gmail.com
File Name: allennlp/training/trainer.py
Class Name: Trainer
Method Name: train


Project Name: kmike/pymorphy2
Commit Name: c4537a1a3f223b5129862ae41f1fa955fc6acff9
Time: 2012-11-23
Author: kmike84@gmail.com
File Name: pymorphy2/tagset.py
Class Name: OpencorporaTag
Method Name: _init_restrictions