<commit_before>require File.expand_path('../boot', __FILE__)

# Pick the frameworks you want:
require 'rails/all'
require 'dotenv'
Dotenv.load
require "active_record/railtie"
# require "active_model/railtie"
# require "action_controller/railtie"
# require "action_mailer/railtie"
# require "action_view/railtie"
# require "sprockets/railtie"
# require "rails/test_unit/railtie"
require "twilio-ruby"
require "rotp"
require "sucker_punch"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module HummingbirdRailsApi
  class Application < Rails::Application

    config.app_generators.scaffold_controller :responders_controller
    config.active_record.raise_in_transactional_callbacks = true

    # Added for Devise to work (https://github.com/rails-api/rails-api/issues/38)
    config.middleware.use config.session_store, config.session_options
    config.middleware.use Rack::MethodOverride
    config.middleware.use ActionDispatch::Cookies
    config.middleware.use ActionDispatch::Session::CookieStore<commit_msg>remove dotenv gem because it doesn't work with Heroku<commit_after>require File.expand_path('../boot', __FILE__)

# Pick the frameworks you want:
require 'rails/all'

require "active_record/railtie"
# require "active_model/railtie"
# require "action_controller/railtie"
# require "action_mailer/railtie"
# require "action_view/railtie"
# require "sprockets/railtie"
# require "rails/test_unit/railtie"
require "twilio-ruby"
require "rotp"
require "sucker_punch"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module HummingbirdRailsApi
  class Application < Rails::Application

    config.app_generators.scaffold_controller :responders_controller
    config.active_record.raise_in_transactional_callbacks = true

    # Added for Devise to work (https://github.com/rails-api/rails-api/issues/38)
    config.middleware.use config.session_store, config.session_options
    config.middleware.use Rack::MethodOverride
    config.middleware.use ActionDispatch::Cookies
    config.middleware.use ActionDispatch::Session::CookieStore
{'fraction_non_alphanumeric': 0.09830205540661305, 'fraction_numerical': 0.0017873100983020554, 'mean_word_length': 5.826219512195122, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5777365', 'n_tokens_mistral': 723, 'n_tokens_neox': 687, 'n_words': 152}