<commit_before>require 'sinatra'
require 'stripe'
require 'digest'

Stripe.api_key = ENV["STRIPE_API_SECRET_KEY"]

class Cashin < Sinatra::Base
  helpers do
    def h(text)
      Rack::Utils.escape_html(text)
    end
  end

  get '/' do
    md5 = Digest::MD5.new.update(ENV['USER_EMAIL'])
    erb :pay, locals: {admin_hash: md5.hexdigest}
  end

  get '/styles.css' do
    scss :styles, :style => :compressed
  end

  post '/charge' do
    charge = Stripe::Charge.create(
      :amount => params[:amount],
      :currency => "usd",
      :source => params[:stripeToken],
      :metadata => {
        'email' => params[:stripeEmail],
        'reason' => params[:reason]
      },
      :description => "Charge for <EMAIL>"
    )
    'success'
  end
end<commit_msg>Remove example description from Strip charge<commit_after>require 'sinatra'
require 'stripe'
require 'digest'

Stripe.api_key = ENV["STRIPE_API_SECRET_KEY"]

class Cashin < Sinatra::Base
  helpers do
    def h(text)
      Rack::Utils.escape_html(text)
    end
  end

  get '/' do
    md5 = Digest::MD5.new.update(ENV['USER_EMAIL'])
    erb :pay, locals: {admin_hash: md5.hexdigest}
  end

  get '/styles.css' do
    scss :styles, :style => :compressed
  end

  post '/charge' do
    charge = Stripe::Charge.create(
      :amount => params[:amount],
      :currency => "usd",
      :source => params[:stripeToken],
      :metadata => {
        'email' => params[:stripeEmail],
        'reason' => params[:reason]
      },
      :description => "Cashin Charge"
    )
    'success'
  end
end
{'fraction_non_alphanumeric': 0.14709677419354839, 'fraction_numerical': 0.003870967741935484, 'mean_word_length': 2.9265822784810127, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 20, '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': '3887165', 'n_tokens_mistral': 560, 'n_tokens_neox': 545, 'n_words': 121}