<commit_before>require 'greased-rails'

namespace :greased do
  namespace :env do
    task :dump => :environment do
      options   = Greased::Options.find(Rails.root)
      applicator  = Greased::Applicator.new(Rails.application, options)
      
      Greased.logger.debug ""
      Greased.logger.debug "## GREASED [#{applicator.env.upcase}] #{'#' * (55 - applicator.env.size)}"
      Greased.logger.debug "#                                                                   #"
      Greased.logger.debug "#            ... dumping variables to *.env files ...               #"
      Greased.logger.debug "#                                                                   #"
      Greased.logger.debug "#####################################################################"
      Greased.logger.debug ""
      
      environments  = ["development", "staging", "production"]
      longest       = environments.map(&:size).max
      
      environments.each do |env|
        path      = applicator.save_env_file(Rails.root, env)
        filename  = File.basename(path)
        
        Greased.logger.debug "   [#{env}]#{' ' * (longest - env.size)} filename: #{path}"
      end
      
      Greased.logger.debug ""
      Greased.logger.debug "#####################################################################"
      Greased.logger.debug ""
      
    end
  end
  
  namespace :heroku do
    task :deploy, [:env] => [:environment] do |t, args|
      
    end
  end
end<commit_msg>Output "test" environment `.env` file<commit_after>require 'greased-rails'

namespace :greased do
  namespace :env do
    task :dump do
      options     = Greased::Options.find(Rails.root)
      applicator  = Greased::Applicator.new(Rails.application, options)
      
      Greased.logger.debug ""
      Greased.logger.debug "## GREASED [#{applicator.env.upcase}] #{'#' * (55 - applicator.env.size)}"
      Greased.logger.debug "#                                                                   #"
      Greased.logger.debug "#            ... dumping variables to *.env files ...               #"
      Greased.logger.debug "#                                                                   #"
      Greased.logger.debug "#####################################################################"
      Greased.logger.debug ""
      
      environments  = %w{test development staging production}
      longest       = environments.map(&:size).max
      
      environments.each do |env|
        path      = applicator.save_env_file(Rails.root, env)
        filename  = File.basename(path)
        
        Greased.logger.debug "   [#{env}]#{' ' * (longest - env.size)} filename: #{path}"
      end
      
      Greased.logger.debug ""
      Greased.logger.debug "#####################################################################"
      Greased.logger.debug ""
      
    end
  end
end
{'fraction_non_alphanumeric': 0.2078690807799443, 'fraction_numerical': 0.001392757660167131, 'mean_word_length': 1.827755905511811, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7514159', 'n_tokens_mistral': 758, 'n_tokens_neox': 732, 'n_words': 135}