<commit_before>after "development:sites", "development:categories" do
  site1 = Site.find_by!(name: "site1")
  site1.posts.create!(
    title: "Hello",
    body: <<-EOS.strip_heredoc,
      # Hello
      hi !

      This is first post for site 1!
    EOS
    thumbnail: open(Rails.root.join("db/data/thumbnail.jpg")),
    published_at: Time.current,
    category: site1.categories.find_by!(slug: "category1"),
  )

  published_at = 3.minutes.from_now

  site1.posts.create!(
    title: "This post will appear at #{published_at}",
    body: <<-EOS.strip_heredoc,
      # Hello
      hi !

      This post will appear at #{published_at}
    EOS
    thumbnail: open(Rails.root.join("db/data/thumbnail.jpg")),
    published_at: published_at,
    category: site1.categories.find_by!(slug: "category2"),
  )

  100.times do |i|
    i += 100

    site1.posts.create!(
      title: "Post #{i}",
      body: <<~EOS,
        page 1

        <!--nextpage-->

        page 2

        <!--nextpage-->

        page 3
      EOS
      thumbnail: open(Rails.root.join("db/data/thumbnail.jpg")),
      published_at: Time.current,
      category: site1.categories.find_by!(slug: "category1"),
    )
  end
end<commit_msg>Add seed data `post.id != post.public_id`<commit_after>after "development:sites", "development:categories" do
  site1 = Site.find_by!(name: "site1")
  site1.posts.create!(
    title: "Hello",
    body: <<-EOS.strip_heredoc,
      # Hello
      hi !

      This is first post for site 1!
    EOS
    thumbnail: open(Rails.root.join("db/data/thumbnail.jpg")),
    published_at: Time.current,
    category: site1.categories.find_by!(slug: "category1"),
  )

  published_at = 3.minutes.from_now

  site1.posts.create!(
    title: "This post will appear at #{published_at}",
    body: <<-EOS.strip_heredoc,
      # Hello
      hi !

      This post will appear at #{published_at}
    EOS
    thumbnail: open(Rails.root.join("db/data/thumbnail.jpg")),
    published_at: published_at,
    category: site1.categories.find_by!(slug: "category2"),
  )

  50.times do |i|
    i += 100

    site1.posts.create!(
      title: "Post #{i}",
      body: <<~EOS,
        page 1

        <!--nextpage-->

        page 2

        <!--nextpage-->

        page 3
      EOS
      thumbnail: open(Rails.root.join("db/data/thumbnail.jpg")),
      published_at: Time.current,
      category: site1.categories.find_by!(slug: "category1"),
    )
  end

  # below records: id != public_id
  site1.posts.create!(
    title: "Hello",
    body: <<-EOS.strip_heredoc,
      # Hello
      hi !

      This is post `id != public_id`!
    EOS
    public_id: 100_000,
    thumbnail: open(Rails.root.join("db/data/thumbnail.jpg")),
    published_at: Time.current,
    category: site1.categories.find_by!(slug: "category2"),
  )

  50.times do |i|
    i += 100

    site1.posts.create!(
      title: "Post #{i}",
      body: <<~EOS,
        page 1

        <!--nextpage-->

        page 2

        <!--nextpage-->

        page 3
      EOS
      thumbnail: open(Rails.root.join("db/data/thumbnail.jpg")),
      published_at: Time.current,
      category: site1.categories.find_by!(slug: "category2"),
    )
  end
end
{'fraction_non_alphanumeric': 0.14838101226029551, 'fraction_numerical': 0.019805092738132662, 'mean_word_length': 2.42518837459634, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 9, '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': '5377271', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1093, 'n_words': 229}