<commit_before>module Rda
  module Rails
    def self.app_name
      IO.foreach(File.join(Dir.pwd, 'config.ru')) do |l|
        if l =~ /run\s+(.*)::Application/
          return $1.underscore.dasherize
        end
      end
      #::Rails.application.class.to_s.split('::').first.underscore.dasherize
    end
<commit_msg>Cached the name of the app<commit_after>module Rda
  module Rails
    def self.app_name
      @app_name ||= IO.foreach(File.join(Dir.pwd, 'config.ru')) do |l|
                      if l =~ /run\s+(.*)::Application/
                        return $1.underscore.dasherize
                      end
                    end
    end

{'fraction_non_alphanumeric': 0.12923076923076923, 'fraction_numerical': 0.003076923076923077, 'mean_word_length': 1.7820512820512822, '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': '6092003', 'n_tokens_mistral': 219, 'n_tokens_neox': 212, 'n_words': 43}