def copy_into_project(self, project):
        uuid_string = ", ".join(["0x%02X" % ord(b) for b in uuid.uuid4().bytes])
        for resource in self.resources.all():
            new_resource = ResourceFile.objects.create(project=project, file_name=resource.file_name, kind=resource.kind)
            for variant in resource.variants.all():
                new_variant = ResourceVariant.objects.create(resource_file=new_resource, tags=variant.tags)
                new_variant.save_string(variant.get_contents())
            for i in resource.identifiers.all():
                ResourceIdentifier.objects.create(
                    resource_file=new_resource,
                    resource_id=i.resource_id,
                    character_regex=i.character_regex,
                    tracking=i.tracking,
                    compatability=i.compatibility,
                    target_platforms=i.target_platforms,
                    memory_format=i.memory_format,
                    storage_format=i.storage_format,
                    space_optmization=i.space_optimisation
                )

        for source_file in self.source_files.all():
            new_file = SourceFile.objects.create(project=project, file_name=source_file.file_name)
            new_file.save_file(source_file.get_contents().replace("__UUID_GOES_HERE__", uuid_string))

        # Copy over relevant project properties.
        # NOTE: If new, relevant properties are added, they must be copied here.
        # todo: can we do better than that? Maybe we could reuse the zip import mechanism or something...
        project.app_capabilities = self.app_capabilities
        project.app_is_watchface = self.app_is_watchface
        project.app_is_hidden = self.app_is_hidden
        project.app_is_shown_on_communication = self.app_is_shown_on_communication
        project.app_keys = self.app_keys
        project.app_jshint = self.app_jshint
        project.app_modern_multi_js = self.app_modern_multi_js
        project.save()
dataset/ETHPy150Open pebble/cloudpebble/ide/models/project.py/TemplateProject.copy_into_project/original