<commit_before>require 'formula'

class VowpalWabbit < Formula
  homepage 'https://github.com/JohnLangford/vowpal_wabbit'
  url 'https://github.com/JohnLangford/vowpal_wabbit/archive/7.6.tar.gz'
  sha1 '854f6e54568f6c2e849d43b0f6cd1cc286ec965d'

  head do
    url 'https://github.com/JohnLangford/vowpal_wabbit.git'

    depends_on :autoconf
    depends_on :automake
    depends_on :libtool
  end

  depends_on 'boost' => :build

  def install
    if build.head?
      inreplace 'autogen.sh' do |s|
        s.gsub! '/usr/share/aclocal', "#{HOMEBREW_PREFIX}/share/aclocal"
      end
      system "./autogen.sh"
    end

    system "./configure", "--prefix=#{prefix}",
                          "--with-boost=#{Formula['boost'].opt_prefix}"
    system "make"
    system "make install"
  end
end<commit_msg>vowpal-wabbit: quotes<commit_after>require "formula"

class VowpalWabbit < Formula
  homepage "https://github.com/JohnLangford/vowpal_wabbit"
  url "https://github.com/JohnLangford/vowpal_wabbit/archive/7.6.tar.gz"
  sha1 "854f6e54568f6c2e849d43b0f6cd1cc286ec965d"

  head do
    url "https://github.com/JohnLangford/vowpal_wabbit.git"

    depends_on :autoconf
    depends_on :automake
    depends_on :libtool
  end

  depends_on "boost" => :build

  def install
    if build.head?
      inreplace "autogen.sh" do |s|
        s.gsub! "/usr/share/aclocal", "#{HOMEBREW_PREFIX}/share/aclocal"
      end
      system "./autogen.sh"
    end

    system "./configure", "--prefix=#{prefix}",
                          "--with-boost=#{Formula['boost'].opt_prefix}"
    system "make"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.1311881188118812, 'fraction_numerical': 0.034653465346534656, 'mean_word_length': 2.972972972972973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '5414280', 'n_tokens_mistral': 631, 'n_tokens_neox': 595, 'n_words': 102}