27bbd9f3ce1e908415aafc54eb5c49c934326f5e,modules/templates/UCCE/controllers.py,dc_TargetReport,apply_method,#dc_TargetReport#Any#,1232

Before Change


                // No need to check for "read" permission within single-record methods, as that has already been checked

                current.response.view = "simple.html"
                output = {"item": "tbc"}

            elif r.representation == "pdf":
                raise NotImplementedError

After Change


        if r.name == "target":
            // No need to check for "read" permission within single-record methods, as that has already been checked
            if r.interactive:
                data = self.extract(r)
                return self.html(data)

            elif r.representation == "pdf":
                data = self.extract(r)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: sahana/eden
Commit Name: 27bbd9f3ce1e908415aafc54eb5c49c934326f5e
Time: 2019-08-30
Author: fran@aidiq.com
File Name: modules/templates/UCCE/controllers.py
Class Name: dc_TargetReport
Method Name: apply_method


Project Name: thoughtworksarts/EmoPy
Commit Name: 053e4fa8886f106d41f670a65b3352af96265243
Time: 2017-12-19
Author: aperez@thoughtworks.com
File Name: neuralnets/main.py
Class Name:
Method Name:


Project Name: arviz-devs/arviz
Commit Name: 86b670cf47e4442af93bfe1621ca4a9ef1220757
Time: 2018-07-31
Author: ari.hartikainen@aalto.fi
File Name: arviz/utils/xarray_utils.py
Class Name: PyStanToXarray
Method Name: to_xarray