<commit_before>require 'formula'

class GitHg < Formula
  head 'https://github.com/offbytwo/git-hg.git'
  homepage 'http://offbytwo.com/git-hg/'

  def install
    prefix.install Dir['*']
  end
end
<commit_msg>git-hg: Add warning if Mercurial isn't found.<commit_after>require 'formula'

class GitHg < Formula
  head 'https://github.com/offbytwo/git-hg.git'
  homepage 'http://offbytwo.com/git-hg/'

  def install
    unless `/usr/bin/which hg`.size > 0
      puts "You may need to install Mercurial before using this software:"
      puts "  brew install mercurial"
    end

    prefix.install Dir['*']
  end
end

{'fraction_non_alphanumeric': 0.1270358306188925, 'fraction_numerical': 0.0016286644951140066, 'mean_word_length': 3.2413793103448274, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '4578914', 'n_tokens_mistral': 224, 'n_tokens_neox': 211, 'n_words': 56}