7c0c307a2a8fbdb9b0eb82c275ca8c977aae90f3,decensor.py,Decensor,decensor_all_images_in_folder,#Decensor#,42

Before Change


                            found_valid = True
                            ori_img = Image.open(ori_file_path)
                            self.decensor_image(ori_img, colored_img, file_name)
                            continue
                    if not found_valid:
                        print("Corresponding original, uncolored image not found in {ori_file_path}. \nCheck if it exists and is in the PNG or JPG format.".format(ori_file_path = ori_file_path))
                else:
                    self.decensor_image(colored_img, colored_img, file_name)

After Change


                            break
                    else: //for...else, i.e if the loop finished without encountering break
                        print("Corresponding original, uncolored image not found in {}.".format(ori_file_path))
                        print("Check if it exists and is in the PNG or JPG format.")
                else:
                    self.decensor_image(colored_img, colored_img, file_name)
        print("--------------------------------------------------------------------------")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deeppomf/DeepCreamPy
Commit Name: 7c0c307a2a8fbdb9b0eb82c275ca8c977aae90f3
Time: 2018-10-30
Author: harjit@harjit.moe
File Name: decensor.py
Class Name: Decensor
Method Name: decensor_all_images_in_folder


Project Name: OpenNMT/OpenNMT-py
Commit Name: fc9eb2a1d52e456543eb5c592932acc40180af87
Time: 2017-04-25
Author: jean.senellart@systrangroup.com
File Name: preprocess.py
Class Name:
Method Name: makeData


Project Name: deeppomf/DeepCreamPy
Commit Name: 6b1468956dd574a34041f782101f9a5cc3bb173c
Time: 2019-06-18
Author: donald.carlsson@paranta.se
File Name: decensor.py
Class Name: Decensor
Method Name: decensor_image