<commit_before>$:.unshift(File.dirname(__FILE__))

require 'config/environment'
require 'api/v1'
require 'rack/contrib'

ENV['RACK_ENV'] ||= 'development'
set :environment, ENV['RACK_ENV'].to_sym

map "/api/checkpoint/v1" do
  use Rack::PostBodyContentTypeParser
  use Rack::MethodOverride
  use Rack::Session::Cookie, :key => 'checkpoint.cookie',
    :secret => 'ice cream sandwich'

  use OmniAuth::Builder do
    provider :twitter, nil, nil, :setup => true
    provider :facebook, nil, :setup => true
    provider :origo, nil, nil, :setup => true
    provider :vanilla, nil, nil, :setup => true<commit_msg>Removed secret for non-sensitive cookie<commit_after>$:.unshift(File.dirname(__FILE__))

require 'config/environment'
require 'api/v1'
require 'rack/contrib'

ENV['RACK_ENV'] ||= 'development'
set :environment, ENV['RACK_ENV'].to_sym

map "/api/checkpoint/v1" do
  use Rack::PostBodyContentTypeParser
  use Rack::MethodOverride
  use Rack::Session::Cookie, :key => 'checkpoint.cookie'

  use OmniAuth::Builder do
    provider :twitter, nil, nil, :setup => true
    provider :facebook, nil, :setup => true
    provider :origo, nil, nil, :setup => true
    provider :vanilla, nil, nil, :setup => true
{'fraction_non_alphanumeric': 0.14664457332228667, 'fraction_numerical': 0.0033140016570008283, 'mean_word_length': 5.0703517587939695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '6659776', 'n_tokens_mistral': 403, 'n_tokens_neox': 395, 'n_words': 105}