<commit_before>require "boxen/preflight"

class Boxen::Preflight::OS < Boxen::Preflight
  def ok?
    `sw_vers -productVersion`.start_with? "10.8"
  end

  def run
    abort "You must be running OS X 10.8 (Mountain Lion)."
  end
end<commit_msg>Add 10.9 to list of supported OS X releases<commit_after>require "boxen/preflight"

class Boxen::Preflight::OS < Boxen::Preflight
  SUPPORTED_RELEASES = %w(10.8 10.9)

  def ok?
    osx? && supported_release?
  end

  def run
    abort "You must be running one of the following OS X versions: #{SUPPORTED_RELEASES.join(' ')}."
  end

  private

  def osx?
    `uname -s` == "Darwin"
  end

  def supported_release?
    SUPPORTED_RELEASES.any? do |r|
      current_release.starts_with? r
    end
  end

  def current_release
    @current_release ||= `sw_vers -productVersion`
  end
end
{'fraction_non_alphanumeric': 0.10507246376811594, 'fraction_numerical': 0.018115942028985508, 'mean_word_length': 3.456989247311828, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4521178', 'n_tokens_mistral': 315, 'n_tokens_neox': 298, 'n_words': 84}