<commit_before>module Switchyard
  module Redirect
    class << self
      #def paths(rails_config)
      #  #redirect(Switchyard::Configuration)
      #  #Switchyard::Configuration::GenerateDefaults.new
      #  paths = rails_config.paths
      #end

      def reconfig(paths)
        path_hash = paths.instance_variable_get('@root')
        path_hash.each do |path_descriptor, rails_path_obj|
          path_arr = rails_path_obj.instance_variable_get('@paths')
          current_path = rails_path_obj.instance_variable_get('@current')
          return paths if path_descriptor != current_path

          rails_path_obj.instance_variable_set('@current', rails_paths[path_descriptor] + current_path)
          path_arr.map! do |path|
            path = rails_paths[path_descriptor] + path
          end
        end
        paths
      end

      def rails_paths 
        {
            "app"                      => "rails/",
            "app/assets"               => "rails/",
            "app/controllers"          => "rails/",
            "app/helpers"              => "rails/",
            "app/models"               => "rails/",
            "app/mailers"              => "rails/",
            "app/views"                => "rails/",

            "app/controllers/concerns" => "rails/",
            "app/models/concerns"      => "rails/",

            "lib"                      => "rails/",
            "lib/assets"               => "rails/",
            "lib/tasks"                => "rails/",
            "lib/templates"            => "rails/",

            "vendor"                   => "rails/",
            "vendor/assets"            => "rails/",
                     
            "log"                      => "rails/",

            "public"                   => "rails/",
            "public/javascripts"       => "rails/",
            "public/stylesheets"       => "rails/",
                     
            "tmp"                      => "rails/",

            "db"                       => "",
            "db/migrate"               => "",
            "db/seeds.rb"              => "",

            "config/environment"       => "",
            "config/environments"      => "",
            "config/database"          => "",

            "config"                   => "rails/",
            "config/initializers"      => "rails/",
            "config/locales"           => "rails/",
            "config/routes.rb"         => "rails/",
            "config/secrets"           => "rails/"
        }
      end
    end
  end
end<commit_msg>moved config/secrets.yml to root config directory for presentation and because I don't know how it's not being accessed correctly<commit_after>module Switchyard
  module Redirect
    class << self
      #def paths(rails_config)
      #  #redirect(Switchyard::Configuration)
      #  #Switchyard::Configuration::GenerateDefaults.new
      #  paths = rails_config.paths
      #end

      def reconfig(paths)
        path_hash = paths.instance_variable_get('@root')
        path_hash.each do |path_descriptor, rails_path_obj|
          path_arr = rails_path_obj.instance_variable_get('@paths')
          current_path = rails_path_obj.instance_variable_get('@current')
          return paths if path_descriptor != current_path

          rails_path_obj.instance_variable_set('@current', rails_paths[path_descriptor] + current_path)
          path_arr.map! do |path|
            path = rails_paths[path_descriptor] + path
          end
        end
        paths
      end

      def rails_paths 
        {
            "app"                      => "rails/",
            "app/assets"               => "rails/",
            "app/controllers"          => "rails/",
            "app/helpers"              => "rails/",
            "app/models"               => "rails/",
            "app/mailers"              => "rails/",
            "app/views"                => "rails/",

            "app/controllers/concerns" => "rails/",
            "app/models/concerns"      => "rails/",

            "lib"                      => "rails/",
            "lib/assets"               => "rails/",
            "lib/tasks"                => "rails/",
            "lib/templates"            => "rails/",

            "vendor"                   => "rails/",
            "vendor/assets"            => "rails/",
                     
            "log"                      => "rails/",

            "public"                   => "rails/",
            "public/javascripts"       => "rails/",
            "public/stylesheets"       => "rails/",
                     
            "tmp"                      => "rails/",

            "db"                       => "",
            "db/migrate"               => "",
            "db/seeds.rb"              => "",

            "config/environment"       => "",
            "config/environments"      => "",
            "config/database"          => "",
            "config/secrets"           => "",

            "config"                   => "rails/",
            "config/initializers"      => "rails/",
            "config/locales"           => "rails/",
            "config/routes.rb"         => "rails/"
        }
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.13196311947752593, 'fraction_numerical': 0.0, 'mean_word_length': 1.121841890790546, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 65, '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': '4907874', 'n_tokens_mistral': 1457, 'n_tokens_neox': 1339, 'n_words': 226}