<commit_before>require 'formula'

class Lastfmlib < Formula
  homepage 'http://code.google.com/p/lastfmlib/'
  url 'https://lastfmlib.googlecode.com/files/lastfmlib-0.4.0.tar.gz'
  sha1 'b9e15e4eb42a9ccd9b3c5373054b0bd51a406fdd'

  depends_on 'pkg-config' => :build

  fails_with :clang do
    cause <<-EOS.undent
      lastfmlib/utils/stringoperations.h:62:16: error: no viable conversion from
            '__string_type' (aka 'basic_string<wchar_t, std::char_traits<wchar_t>,
            std::allocator<wchar_t> >') to 'std::string' (aka 'basic_string<char>')
      EOS
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end<commit_msg>lastfmlib: add 0.4.0 bottle.<commit_after>require 'formula'

class Lastfmlib < Formula
  homepage 'http://code.google.com/p/lastfmlib/'
  url 'https://lastfmlib.googlecode.com/files/lastfmlib-0.4.0.tar.gz'
  sha1 'b9e15e4eb42a9ccd9b3c5373054b0bd51a406fdd'

  bottle do
    cellar :any
    sha1 "eebec974f31e94d6987e108127e1ab1af606f176" => :mavericks
    sha1 "4807c28f6d74217022fd9230adee4d3ad0ca858a" => :mountain_lion
    sha1 "981967e12bb1511b82b145d17e5ac68f3aef1f5f" => :lion
  end

  depends_on 'pkg-config' => :build

  fails_with :clang do
    cause <<-EOS.undent
      lastfmlib/utils/stringoperations.h:62:16: error: no viable conversion from
            '__string_type' (aka 'basic_string<wchar_t, std::char_traits<wchar_t>,
            std::allocator<wchar_t> >') to 'std::string' (aka 'basic_string<char>')
      EOS
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.12650948821161587, 'fraction_numerical': 0.08108108108108109, 'mean_word_length': 3.4050632911392404, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 16, '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': '2823712', 'n_tokens_mistral': 743, 'n_tokens_neox': 671, 'n_words': 110}