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: 5

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: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0eba1df6d5f9922674e9a705f09995d57824e5cd
Time: 2021-02-26
Author: chriswilkes@google.com
File Name: perfkitbenchmarker/linux_benchmarks/omb_benchmark.py
Class Name:
Method Name: _GetBenchmarks


Project Name: matplotlib/matplotlib
Commit Name: d520128e9440274835e92efabfce2c87996b0d45
Time: 2018-03-04
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_svg.py
Class Name: XMLWriter
Method Name: start