<commit_before>module WildlandDevTools
  # :nodoc:
  module Updater
    class << self
      def reset_database
        system('rake db:drop')
        system('rake db:create')
        system('rake db:migrate')
        system('annotate') if system('which annotate > /dev/null 2>&1')
      end

      def reseed_database
        system('rake db:seed')
        system('rake demo:seed')
      end

      def ruby_version_up_to_date?(needed_ruby_version)
        ruby_version = `ruby -v`
        ruby_version.include?(needed_ruby_version)
      end

      def update_ruby(version)
        case
        when system('which rvm > /dev/null 2>&1')
          update_ruby_with_rvm(version)
        when system('which rbenv > /dev/null 2>&1')
          update_ruby_with_rbenv(version)<commit_msg>Added fix for newline in .ruby-version file<commit_after>module WildlandDevTools
  # :nodoc:
  module Updater
    class << self
      def reset_database
        system('rake db:drop')
        system('rake db:create')
        system('rake db:migrate')
        system('annotate') if system('which annotate > /dev/null 2>&1')
      end

      def reseed_database
        system('rake db:seed')
        system('rake demo:seed')
      end

      def ruby_version_up_to_date?(needed_ruby_version)
        ruby_version = `ruby -v`
        ruby_version.include?(needed_ruby_version.strip)
      end

      def update_ruby(version)
        case
        when system('which rvm > /dev/null 2>&1')
          update_ruby_with_rvm(version)
        when system('which rbenv > /dev/null 2>&1')
          update_ruby_with_rbenv(version)
{'fraction_non_alphanumeric': 0.10299625468164794, 'fraction_numerical': 0.00749063670411985, 'mean_word_length': 2.484782608695652, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '2955862', 'n_tokens_mistral': 526, 'n_tokens_neox': 495, 'n_words': 107}