<commit_before>module Pwb
  class Seeder

    class << self
      # Call this from your +db/seeds.rb+ file with the `rake db:seed task'.
      #
      def seed!

        I18n.locale = :en
        # tag is used to group content for an admin page
        # key is camelcase (js style) - used client side to identify each item in a group of content
        unless Pwb::Content.where(tag: "landing-carousel").count > 1
          Pwb::Content.create!(
            [
              { key: 'landingPageHero',
                tag: 'landing-carousel',
                raw_es: '
                        <span class="subtitle-sm">Somos lo mejor.</span>
                        <ul class="list-carousel mb-20">
                          <li><i class="fa fa-check-square"></i>Nuestro equipo está formado por profesionales</li>
                        </ul>',
                raw_en: '
                        <span class="subtitle-sm">We are the best estate agents in our area.</span>
                        <ul class="list-carousel mb-20">
                          <li><i class="fa fa-check-square"></i> Professional staff</li>
                          <li><i class="fa fa-check-square"></i> We will find you the best property on the market</li>
                        </ul>' 
                }
          ])
        end


        # create_default_site
        # if create_root_page
        #   try_seed_pages
        # elsif page_seeds_file.file?
        #   desc "Seeding Alchemy pages"
        #   log "There are already pages present in your database. " \
        #       "Please use `rake db:reset' if you want to rebuild your database.", :skip<commit_msg>Fix check for existing content when seeding<commit_after>module Pwb
  class Seeder

    class << self
      # Call this from your +db/seeds.rb+ file with the `rake db:seed task'.
      #
      def seed!

        I18n.locale = :en
        # tag is used to group content for an admin page
        # key is camelcase (js style) - used client side to identify each item in a group of content
        unless Pwb::Content.where(tag: "landing-carousel").count > 0
          Pwb::Content.create!(
            [
              { key: 'landingPageHero',
                tag: 'landing-carousel',
                raw_es: '
                        <span class="subtitle-sm">Somos lo mejor.</span>
                        <ul class="list-carousel mb-20">
                          <li><i class="fa fa-check-square"></i>Nuestro equipo está formado por profesionales</li>
                        </ul>',
                raw_en: '
                        <span class="subtitle-sm">We are the best estate agents in our area.</span>
                        <ul class="list-carousel mb-20">
                          <li><i class="fa fa-check-square"></i> Professional staff</li>
                          <li><i class="fa fa-check-square"></i> We will find you the best property on the market</li>
                        </ul>' 
                }
          ])
        end


        # create_default_site
        # if create_root_page
        #   try_seed_pages
        # elsif page_seeds_file.file?
        #   desc "Seeding Alchemy pages"
        #   log "There are already pages present in your database. " \
        #       "Please use `rake db:reset' if you want to rebuild your database.", :skip
{'fraction_non_alphanumeric': 0.1014405762304922, 'fraction_numerical': 0.004201680672268907, 'mean_word_length': 1.4817572598659716, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 45, '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': '5854921', 'n_tokens_mistral': 928, 'n_tokens_neox': 893, 'n_words': 283}