<commit_before>require 'easy_auto/config_manager_wrapper'

module EasyAuto
  class EasySetup
    include ConfigManagerWrapper
    attr_accessor :email
    attr_accessor :password

    def run
      setup_message
      os_check
      check_git_install
      check_git_extras_install
      check_authorization
      success_message
    end

    def check_authorization
      Octokit::Client.new(login: config_manager.github_email, oauth_token: config_manager.github_token).user
    rescue
      puts "run easy-authorize to set up your github!"
      exit 1
    end

    def success_message
      puts "all set!"
    end

    def check_git_install
      check_install "git"
    end

    def check_git_extras_install
      check_install "git-extras"
    end

    def os_check
      puts "lets check your operating system..."
      if os != "Linux" || os != "Darwin"
        puts "Sorry, your OS isn't supported."
        exit 1
      end
      puts "you have an acceptable os!"
    end

    def setup_message
      puts "this will configure your computer for easy-auto."
    end
  end
end
<commit_msg>change boolean os check and include system helper to access the os check..<commit_after>require 'easy_auto/config_manager_wrapper'
require 'easy_auto/system_helper'

module EasyAuto
  class EasySetup
    include ConfigManagerWrapper
    include SystemHelper
    attr_accessor :email
    attr_accessor :password

    def run
      setup_message
      os_check
      check_git_install
      check_git_extras_install
      check_authorization
      success_message
    end

    def check_authorization
      Octokit::Client.new(login: config_manager.github_email, oauth_token: config_manager.github_token).user
    rescue
      puts "run easy-authorize to set up your github!"
      exit 1
    end

    def success_message
      puts "all set!"
    end

    def check_git_install
      check_install "git"
    end

    def check_git_extras_install
      check_install "git-extras"
    end

    def os_check
      puts "lets check your operating system..."
      if os == "Linux" || os == "Darwin"
        puts "you have an acceptable os!"
      else
        puts "Sorry, your OS isn't supported."
        exit 1
      end
    end

    def setup_message
      puts "this will check to make sure your computer is set up!"
    end
  end
end

{'fraction_non_alphanumeric': 0.051457975986277875, 'fraction_numerical': 0.0017152658662092624, 'mean_word_length': 2.5082706766917293, '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': '489069', 'n_tokens_mistral': 694, 'n_tokens_neox': 678, 'n_words': 215}