<commit_before>module DeploYML
  module Frameworks
    module Rails3
      protected

      def install(shell)
        shell.run 'bundle', 'install'
      end

      def migrate(shell)
        task = case config.orm
               when :datamapper
                 'db:autoupgrade'
               else
                 'db:migrate'
               end

        shell.run 'rake', task, "ENV=#{config.environment}"<commit_msg>Set RAILS_ENV when running rake tasks on rails3 apps.<commit_after>module DeploYML
  module Frameworks
    module Rails3
      protected

      def install(shell)
        shell.run 'bundle', 'install'
      end

      def migrate(shell)
        task = case config.orm
               when :datamapper
                 'db:autoupgrade'
               else
                 'db:migrate'
               end

        shell.run 'rake', task, "RAILS_ENV=#{config.environment}"
{'fraction_non_alphanumeric': 0.0773542600896861, 'fraction_numerical': 0.0033632286995515697, 'mean_word_length': 1.5809248554913296, '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': '1862758', 'n_tokens_mistral': 252, 'n_tokens_neox': 242, 'n_words': 63}