<commit_before>module CodeBuddy
  class App < Sinatra::Base
    set :views,  File.expand_path(File.dirname(__FILE__) + '/views')
    set :public, File.expand_path(File.dirname(__FILE__) + '/public')
     
    LOCALHOST   = [/^127\.0\.0\.\d{1,3}$/, "::1", /^0:0:0:0:0:0:0:1(%.*)?$/].freeze

    class << self
      attr_reader   :stack
      attr_accessor :path_prefix

      def exception=(exception)<commit_msg>workaround for public folder change in Sinatra 1.3<commit_after>module CodeBuddy
  class App < Sinatra::Base
    set :views,  File.expand_path(File.dirname(__FILE__) + '/views')
    if Sinatra.const_defined?("VERSION") && Gem::Version.new(Sinatra::VERSION) >= Gem::Version.new("1.3.0")
      set :public_folder, File.expand_path(File.dirname(__FILE__) + '/public')
    else
      set :public, File.expand_path(File.dirname(__FILE__) + '/public')
    end

    LOCALHOST   = [/^127\.0\.0\.\d{1,3}$/, "::1", /^0:0:0:0:0:0:0:1(%.*)?$/].freeze

    class << self
      attr_reader   :stack
      attr_accessor :path_prefix

      def exception=(exception)
{'fraction_non_alphanumeric': 0.18361581920903955, 'fraction_numerical': 0.03483992467043315, 'mean_word_length': 3.4476987447698746, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 4, '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': '7110760', 'n_tokens_mistral': 399, 'n_tokens_neox': 376, 'n_words': 66}