<commit_before>get '/' do
  erb :index
end

post '/' do
  require 'pony'
  name = params[:name]
  email = params[:email]
  phone = params[:phone]
  message = params[:message]
  Pony.mail({
    :from => params[:name] + "<" + params[:email] + ">",
    :to => '<EMAIL>',
    :subject => params[:name] + " has contacted you from Perfect Picture Artistry",
    :html_body =>"<h4>Name: #{name}</h4><h4>Phone number: #{phone}</h4><h4>Email: #{email}</h4><h4>Message: #{message}</h4>",
    ,
    :body =>
    "Name: " + params[:name] + " | " +
    "Phone number: " + params[:phone] + " | " +
    "Email: " + params[:email] + " | " +
    "Message: " + params[:message],

    :via => :smtp,
    :via_options => {
      :address              => 'smtp.gmail.com',
      :port                 => '587',
      :enable_starttls_auto => true,
      :user_name            => LOGIN,
      :password             => PASSWORD,
      :authentication       => :plain
    }
    })
  redirect '/'
end


  #    get('/success') do
  # @notification = "Thanks for your email. I'll be in touch soon."
  # erb :index, :layout => :layout
# end


# Pony.mail(:to => '<EMAIL>', :html_body => '<h1>Hello there!</h1>', :body => "In case you can't read html, Hello there.")
<commit_msg>reverting<commit_after>get '/' do
  erb :index
end

post '/' do
  require 'pony'
  name = params[:name]
  email = params[:email]
  phone = params[:phone]
  message = params[:message]
  Pony.mail({
    :from => params[:name] + "<" + params[:email] + ">",
    :to => '<EMAIL>',
    :subject => params[:name] + " has contacted you from Perfect Picture Artistry",
    # :html_body => "<h4>Name: #{name}</h4><h4>Phone number: #{phone}</h4><h4>Email: #{email}</h4><h4>Message: #{message}</h4>",
    :body => "Name: " + params[:name] + " | " + "Phone number: " + params[:phone] + " | " + "Email: " + params[:email] + " | " + "Message: " + params[:message],

    :via => :smtp,
    :via_options => {
      :address              => 'smtp.gmail.com',
      :port                 => '587',
      :enable_starttls_auto => true,
      :user_name            => LOGIN,
      :password             => PASSWORD,
      :authentication       => :plain
    }
    })
  redirect '/'
end


  #    get('/success') do
  # @notification = "Thanks for your email. I'll be in touch soon."
  # erb :index, :layout => :layout
# end


# Pony.mail(:to => '<EMAIL>', :html_body => '<h1>Hello there!</h1>', :body => "In case you can't read html, Hello there.")

{'fraction_non_alphanumeric': 0.20750908356883327, 'fraction_numerical': 0.010496568429551878, 'mean_word_length': 2.560344827586207, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 63, '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': '1039297', 'n_tokens_mistral': 868, 'n_tokens_neox': 852, 'n_words': 194}