<commit_before>#!/usr/bin/env ruby

layout = ARGV[0]
user = User.find_by(username: "Kappa")

unless layout.nil?
  if layout == 'default'
    user.update!(layout: nil)
  else
    user.update!(layout: layout)
  end
end

Message.find_by(id: 4).update!(unread: true)

post = Post.find_by(id: 33)
post.mark_read(user, (post.replies.first.created_at - 5.seconds), true)

FlatPost.find_by(post_id: 3).update!(updated_at: "2012-09-13 02:00:00")
NewsView.find_by(user: user)&.destroy!
Post.find_by(id: 2).mark_read(user, "2019-06-22 07:40:11", true)
<commit_msg>Set recent ReportView in setup script<commit_after>#!/usr/bin/env ruby

layout = ARGV[0]
user = User.find_by(username: "Kappa")

unless layout.nil?
  if layout == 'default'
    user.update!(layout: nil)
  else
    user.update!(layout: layout)
  end
end

Message.find_by(id: 4).update!(unread: true)

post = Post.find_by(id: 33)
post.mark_read(user, (post.replies.first.created_at - 5.seconds), true)

FlatPost.find_by(post_id: 3).update!(updated_at: "2012-09-13 02:00:00")
NewsView.find_by(user: user)&.destroy!
Post.find_by(id: 2).mark_read(user, "2019-06-22 07:40:11", true)
ReportView.find_or_create_by!(user_id: 3).update!(read_at: 3.days.ago.to_date)

{'fraction_non_alphanumeric': 0.17121588089330025, 'fraction_numerical': 0.05955334987593052, 'mean_word_length': 5.237113402061856, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4408230', 'n_tokens_mistral': 547, 'n_tokens_neox': 490, 'n_words': 88}