<commit_before>require "vault-tools/version"

require 'sinatra/base'
require 'scrolls'
require 'rack/ssl-enforcer'
require 'heroku-api'
require 'honeybadger'

Honeybadger.configure do |config|
  config.api_key = ENV['HONEYBADGER_API_KEY']
end

module Vault
  #require bundler and the proper gems for the ENV
  def self.require
    Kernel.require 'bundler'
    $stderr.puts "Loading #{ENV['RACK_ENV']} environment..." if ENV['DEBUG']
    Bundler.require :default, ENV['RACK_ENV'].to_sym
  end

  # adds ./lib dir to the load path
  def self.load_path
    $stderr.puts "Adding './lib' to path..." if ENV['DEBUG']
    $LOAD_PATH.unshift(File.expand_path('./lib'))
  end

  # sets TZ to UTC and Sequel timezone to :utc
  def self.set_timezones
    $stderr.puts "Setting timezones to UTC..." if ENV['DEBUG']
    Sequel.default_timezone = :utc if defined? Sequel<commit_msg>keep the environment around<commit_after>require "vault-tools/version"

require 'sinatra/base'
require 'scrolls'
require 'rack/ssl-enforcer'
require 'heroku-api'
require 'honeybadger'

Honeybadger.configure do |config|
  config.api_key = ENV['HONEYBADGER_API_KEY']
end

module Vault
  #require bundler and the proper gems for the ENV
  def self.require
    Kernel.require 'bundler'
    $stderr.puts "Loading #{ENV['RACK_ENV']} environment..."
    Bundler.require :default, ENV['RACK_ENV'].to_sym
  end

  # adds ./lib dir to the load path
  def self.load_path
    $stderr.puts "Adding './lib' to path..." if ENV['DEBUG']
    $LOAD_PATH.unshift(File.expand_path('./lib'))
  end

  # sets TZ to UTC and Sequel timezone to :utc
  def self.set_timezones
    $stderr.puts "Setting timezones to UTC..." if ENV['DEBUG']
    Sequel.default_timezone = :utc if defined? Sequel
{'fraction_non_alphanumeric': 0.12341407151095732, 'fraction_numerical': 0.0, 'mean_word_length': 3.985632183908046, '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': '67042', 'n_tokens_mistral': 618, 'n_tokens_neox': 605, 'n_words': 168}