<commit_before>module Lokka
  module RedirectResources
    def self.registered(app)
      app.get '/resources/:filename' do |filename|
        site_url = "http://resources.portalshit.net"
        redirect "#{site_url}/#{filename}", 301
      end
    end
  end<commit_msg>made resource redirection case insensitive<commit_after>module Lokka
  module RedirectResources
    def self.registered(app)
      app.get %r|/resources/(.*?)$|i do
        site_url = "http://resources.portalshit.net"
        redirect "#{site_url}/#{$1}", 301
      end
    end
  end
{'fraction_non_alphanumeric': 0.12454873646209386, 'fraction_numerical': 0.01263537906137184, 'mean_word_length': 2.9928057553956835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7661422', 'n_tokens_mistral': 177, 'n_tokens_neox': 168, 'n_words': 38}