<commit_before>require 'rails/generators'

class SkinnycmsImagesGenerator < Rails::Generators::Base

  desc "Appending SKINNYCMS images to application"

  def self.source_root
      @source_root ||= File.join(File.dirname(__FILE__), 'images')
  end

  def copy_images
    puts SkinnycmsImagesGenerator.start_description
    sleep(3)
    directory "admin", "public/images/skinnycms/admin"
    directory "sortable_icons", "public/images/skinnycms/sortable_icons"
    puts SkinnycmsImagesGenerator.end_description
  end

  def self.start_description
        <<-DESCRIPTION
*******************************************************************

  SKINNYCMS: Appending images ...

*******************************************************************
        DESCRIPTION
  end

  def self.end_description
        <<-DESCRIPTION
*******************************************************************

  Images successfully added!

*******************************************************************
        DESCRIPTION
  end
end<commit_msg>[#8938837] FOR ENGINE CONFIGURATION: fixed skinnycms_images generator<commit_after>require 'rails/generators'

class SkinnycmsImagesGenerator < Rails::Generators::Base

  desc "Appending SKINNYCMS images to application"

  def self.source_root
      @source_root ||= File.join(File.dirname(__FILE__), 'images')
  end

  def copy_images
    puts SkinnycmsImagesGenerator.start_description
    sleep(3)
    directory "admin", "public/images/skinnycms/admin" if Dir["public/images/skinnycms/admin"].blank?
    directory "sortable_icons", "public/images/skinnycms/sortable_icons" if Dir["public/images/skinnycms/sortable_icons"].blank?
    puts SkinnycmsImagesGenerator.end_description
  end

  def self.start_description
        <<-DESCRIPTION
*******************************************************************

  SKINNYCMS: Appending images ...

*******************************************************************
        DESCRIPTION
  end

  def self.end_description
        <<-DESCRIPTION
*******************************************************************

  Images successfully added!

*******************************************************************
        DESCRIPTION
  end
end
{'fraction_non_alphanumeric': 0.30637144148215095, 'fraction_numerical': 0.004066877541798464, 'mean_word_length': 5.417391304347826, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4625729', 'n_tokens_mistral': 593, 'n_tokens_neox': 516, 'n_words': 105}