<commit_before>class Specinfra::Helper::DetectOs::Freebsd < Specinfra::Helper::DetectOs
  def detect
    if ( uname = run_command('uname -sr').stdout ) && uname =~ /FreeBSD/i
      if uname =~ /10./
        { :family => 'freebsd', :release => 10 }
      else
        { :family => 'freebsd', :release => nil }
      end
    end<commit_msg>detect_os/freebsd: Make release check more universally applicable<commit_after>class Specinfra::Helper::DetectOs::Freebsd < Specinfra::Helper::DetectOs
  def detect
    if ( uname = run_command('uname -sr').stdout ) && uname =~ /FreeBSD/i
      if uname =~ /(\d+)\./
        { :family => 'freebsd', :release => $1 }
      else
        { :family => 'freebsd', :release => nil }
      end
    end
{'fraction_non_alphanumeric': 0.16393442622950818, 'fraction_numerical': 0.006830601092896175, 'mean_word_length': 2.857894736842105, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4428555', 'n_tokens_mistral': 254, 'n_tokens_neox': 232, 'n_words': 55}