<commit_before>require 'rack/ssl'
require 'sinatra/base'

require 'config/init'

# First define the base controller class.
module Pod
  module TrunkApp
    class AppController < Sinatra::Base
      configure do
        set :root, ROOT
      end

      configure :development, :production do
        enable :logging
      end

      use Rack::SSL
    end
  end
end

# Now load subclass controllers.
require 'app/controllers/api_controller'
require 'app/controllers/manage_controller'
require 'app/controllers/travis_notification_controller'

# And assemble base routes to controllers map.
module Pod
  module TrunkApp
    App = Rack::URLMap.new(
      '/api/v1' => APIController,
      '/manage' => ManageController,
      '/travis' => TravisNotificationController
    )
  end
end<commit_msg>Don’t use SSL in development.<commit_after>require 'rack/ssl'
require 'sinatra/base'

require 'config/init'

# First define the base controller class.
module Pod
  module TrunkApp
    class AppController < Sinatra::Base
      configure do
        set :root, ROOT
      end

      configure :development, :production do
        enable :logging
      end

      use Rack::SSL unless ENV['RACK_ENV'] == 'development'
    end
  end
end

# Now load subclass controllers.
require 'app/controllers/api_controller'
require 'app/controllers/manage_controller'
require 'app/controllers/travis_notification_controller'

# And assemble base routes to controllers map.
module Pod
  module TrunkApp
    App = Rack::URLMap.new(
      '/api/v1' => APIController,
      '/manage' => ManageController,
      '/travis' => TravisNotificationController
    )
  end
end
{'fraction_non_alphanumeric': 0.08547008547008547, 'fraction_numerical': 0.001221001221001221, 'mean_word_length': 3.2682291666666665, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2115536', 'n_tokens_mistral': 493, 'n_tokens_neox': 477, 'n_words': 142}