<commit_before>require 'rulers/version'
require 'rulers/routing'

module Rulers
  class Application
    def call(env)
      klass, act = get_controller_and_action(env)
      controller = klass.new(env)
      text = controller.send(act)
      #`echo debug > debug.txt`;
      [200, {'Content-Type' => 'text/html'},
        [text]]
    end
  end
<commit_msg>hacky favicon error fix<commit_after>require 'rulers/version'
require 'rulers/routing'

module Rulers
  class Application
    def call(env)
      if env['PATH_INFO'] == '/favicon.ico'
        return [404,
          {'Content-Type' => 'text/html'},[]]
      end
      klass, act = get_controller_and_action(env)
      controller = klass.new(env)
      text = controller.send(act)
      #`echo debug > debug.txt`;
      [200, {'Content-Type' => 'text/html'},
        [text]]
    end
  end

{'fraction_non_alphanumeric': 0.1376037959667853, 'fraction_numerical': 0.010676156583629894, 'mean_word_length': 2.734513274336283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3338760', 'n_tokens_mistral': 290, 'n_tokens_neox': 288, 'n_words': 63}