d9858e310969497677ed6066566ef7df10311799,torcms/handlers/entity_handler.py,EntityHandler,add_pic,#EntityHandler#,136

Before Change


                              post_data["desc"] if "desc" in post_data else "",
                              kind=post_data["kind"] if "kind" in post_data else "1")

        self.redirect("/entity/{0}_m.jpg".format(sig_save))

    @tornado.web.authenticated
    def add_pdf(self, post_data):
        """

After Change


        if create_pic:
            output = {"path_save": path_save}
        else:
            output = {"path_save": ""}
        return json.dump(output, self)

    @tornado.web.authenticated
    def add_pdf(self, post_data):
        """
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: bukun/TorCMS
Commit Name: d9858e310969497677ed6066566ef7df10311799
Time: 2018-09-10
Author: lihy@g4
File Name: torcms/handlers/entity_handler.py
Class Name: EntityHandler
Method Name: add_pic


Project Name: bukun/TorCMS
Commit Name: d9858e310969497677ed6066566ef7df10311799
Time: 2018-09-10
Author: lihy@g4
File Name: torcms/handlers/entity_handler.py
Class Name: EntityHandler
Method Name: add_pdf


Project Name: comic/grand-challenge.org
Commit Name: 6789d0372044e4234d209710910f9a56efaaf586
Time: 2019-05-14
Author: code@jmsmkn.com
File Name: app/grandchallenge/profiles/views.py
Class Name:
Method Name: profile


Project Name: comic/grand-challenge.org
Commit Name: 6789d0372044e4234d209710910f9a56efaaf586
Time: 2019-05-14
Author: code@jmsmkn.com
File Name: app/grandchallenge/profiles/views.py
Class Name:
Method Name: profile_edit_redirect