<commit_before>class DemoController < ApplicationController

  def new
    if user_signed_in?
      flash[:notice] = "You need to be logged out for this"
    else
      pass = <PASSWORD>(8)
      user = User.create!(:name => "Demo User", :email => SecureRandom.hex(8) + "@demoaccount.com", :password => <PASSWORD>, :password_confirmation => <PASSWORD>)
      user.create_demo_data<commit_msg>Set newsletter to false for demo users.<commit_after>class DemoController < ApplicationController

  def new
    if user_signed_in?
      flash[:notice] = "You need to be logged out for this"
    else
      pass = <PASSWORD>(8)
      user = User.create!(:name => "Demo User", :email => SecureRandom.hex(8) + "@demoaccount.com", :password => <PASSWORD>, :password_confirmation => <PASSWORD>, :newsletter => false)
      user.create_demo_data
{'fraction_non_alphanumeric': 0.12860576923076922, 'fraction_numerical': 0.004807692307692308, 'mean_word_length': 3.9880239520958085, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 18, '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': '3084305', 'n_tokens_mistral': 252, 'n_tokens_neox': 244, 'n_words': 69}