<commit_before>require 'formula'

class Surfraw <Formula
  url 'http://surfraw.alioth.debian.org/dist/surfraw-2.2.7.tar.gz'
  homepage 'http://surfraw.alioth.debian.org/'
  md5 '213010e9b7c8478827e8903530cf7787'

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--sysconfdir=#{etc}",
                          "--with-graphical-browser=open"
    system "make"
    ENV.j1 # Install using 1 job, or fails on Mac Pro
    system "make install"
  end
end<commit_msg>surfraw: Add HEAD build<commit_after>require 'formula'

class Surfraw <Formula
  url 'http://surfraw.alioth.debian.org/dist/surfraw-2.2.7.tar.gz'
  head 'git://git.debian.org/surfraw/surfraw.git'
  homepage 'http://surfraw.alioth.debian.org/'
  md5 '213010e9b7c8478827e8903530cf7787'

  def install
    system "./prebuild" if ARGV.build_head?
    system "./configure", "--prefix=#{prefix}",
                          "--sysconfdir=#{etc}",
                          "--with-graphical-browser=open"
    system "make"
    ENV.j1 # Install using 1 job, or fails on Mac Pro
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.14014466546112117, 'fraction_numerical': 0.05786618444846293, 'mean_word_length': 2.5254777070063694, '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': '6480360', 'n_tokens_mistral': 427, 'n_tokens_neox': 385, 'n_words': 78}