<commit_before>require "formula"

class Bup < Formula
  homepage "https://github.com/bup/bup"
  head "https://github.com/bup/bup.git", :branch => "master"
  url "https://github.com/bup/bup/archive/0.26.tar.gz"
  sha1 "86e636818590fe40e1074c67545bb74de6e8306b"

  option "run-tests", "Run unit tests after compilation"

  def install
    system "make"
    system "make test" if build.include? "run-tests"
    system "make", "install", "DESTDIR=#{prefix}", "PREFIX="
  end
end
<commit_msg>bup: fix 10.10 build<commit_after>require "formula"

class Bup < Formula
  homepage "https://github.com/bup/bup"
  head "https://github.com/bup/bup.git", :branch => "master"
  url "https://github.com/bup/bup/archive/0.26.tar.gz"
  sha1 "86e636818590fe40e1074c67545bb74de6e8306b"

  option "run-tests", "Run unit tests after compilation"

  # Fix compilation on 10.10
  # https://github.com/bup/bup/commit/75d089e7cdb7a7eb4d69c352f56dad5ad3aa1f97
  patch do
    url "https://github.com/bup/bup/commit/75d089e7cdb7a7eb4d69c352f56dad5ad3aa1f97.diff"
    sha1 "a97d4292a7398d0bca2eb2ea0a99fb40a049c178"
  end

  def install
    system "make"
    system "make test" if build.include? "run-tests"
    system "make", "install", "DESTDIR=#{prefix}", "PREFIX="
  end
end

{'fraction_non_alphanumeric': 0.14091273018414732, 'fraction_numerical': 0.11289031224979984, 'mean_word_length': 4.208333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, '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': '5965187', 'n_tokens_mistral': 583, 'n_tokens_neox': 508, 'n_words': 93}