<commit_before>APP_ENV = ENV["LOTUS_ENV"] || "development"

require "bundler/setup"
Bundler.require(:default, APP_ENV)

module VoiceOver
  DATABASE = "sqlite://db/voiceover.db"
  VERSION = begin
    Dir.entries("/home/voiceover/www/releases").sort.last
  rescue Errno::ENOENT
    "1"
  end

  class Application < Lotus::Application
    configure do
      layout :application
      load_paths << "app"
      templates "app/templates"
      routes "config/routes"
    end
  end
end

Lotus::Controller.configure do
  handle_exceptions false
end

APP = VoiceOver::Application.new
require_relative "mapping"<commit_msg>Treat version numbers as integers<commit_after>APP_ENV = ENV["LOTUS_ENV"] || "development"

require "bundler/setup"
Bundler.require(:default, APP_ENV)

module VoiceOver
  DATABASE = "sqlite://db/voiceover.db"
  VERSION = begin
    Dir.entries("/home/voiceover/www/releases").map(&:to_i).sort.last
  rescue Errno::ENOENT
    "1"
  end

  class Application < Lotus::Application
    configure do
      layout :application
      load_paths << "app"
      templates "app/templates"
      routes "config/routes"
    end
  end
end

Lotus::Controller.configure do
  handle_exceptions false
end

APP = VoiceOver::Application.new
require_relative "mapping"
{'fraction_non_alphanumeric': 0.11031746031746031, 'fraction_numerical': 0.0015873015873015873, 'mean_word_length': 3.92578125, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1741227', 'n_tokens_mistral': 416, 'n_tokens_neox': 407, 'n_words': 89}