<commit_before>require "language/haskell"

class GitAnnex < Formula
  include Language::Haskell::Cabal

  desc "Manage files with git without checking in file contents"
  homepage "https://git-annex.branchable.com/"
  url "https://hackage.haskell.org/package/git-annex-6.20170520/git-annex-6.20170520.tar.gz"
  sha256 "f8cf9b44172ce1914c8be8134795c4197d02960b81a2ba596712cbd35e002717"
  revision 1
  head "git://git-annex.branchable.com/"

  bottle do
    sha256 "ae69e1189101b1e202dd3acfd097d5d2f69818f968639448354a3c0b4a11e220" => :sierra
    sha256 "8dfe6b78c9506a6738c03e7553ea98bf4ca555e04c65e3a46d355a3c6804c64c" => :el_capitan
    sha256 "dc6ce98bb7d0af37f7e0240439210b229f4b0e2c19f5e9ccebdcc363c9b545ac" => :yosemite
  end
<commit_msg>git-annex: apply upstream fix for QuickCheck 2.10<commit_after>require "language/haskell"

class GitAnnex < Formula
  include Language::Haskell::Cabal

  desc "Manage files with git without checking in file contents"
  homepage "https://git-annex.branchable.com/"
  revision 1
  head "git://git-annex.branchable.com/"

  stable do
    url "https://hackage.haskell.org/package/git-annex-6.20170520/git-annex-6.20170520.tar.gz"
    sha256 "f8cf9b44172ce1914c8be8134795c4197d02960b81a2ba596712cbd35e002717"

    # Fix "Utility/QuickCheck.hs:38:10: error: Duplicate instance declarations"
    # Upstream commit from 17 Jun 2017 "Fix build with QuickCheck 2.10."
    patch do
      url "http://source.git-annex.branchable.com/?p=source.git;a=patch;h=75cecbbe3fdafdb6652e95ac17cd755c28e67f20"
      sha256 "2d50b633b29895755c8cbe1b55262866f5c09fe346ee5d552edde5e141730de7"
    end

    # Fix two "git annex test" failures with QuickCheck 2.10
    # Upstream commit from 17 Jun 2017 "fix failing quickcheck properties"
    patch do
      url "http://source.git-annex.branchable.com/?p=source.git;a=patch;h=da8e84efe997fcbfcf489bc4fa9cc835ed131d3a"
      sha256 "3ab0dfe93e2f121818cce74dd76653a7acd8c2c97b34529b1684a640cabf79fc"
    end
  end

  bottle do
    sha256 "ae69e1189101b1e202dd3acfd097d5d2f69818f968639448354a3c0b4a11e220" => :sierra
    sha256 "8dfe6b78c9506a6738c03e7553ea98bf4ca555e04c65e3a46d355a3c6804c64c" => :el_capitan
    sha256 "dc6ce98bb7d0af37f7e0240439210b229f4b0e2c19f5e9ccebdcc363c9b545ac" => :yosemite
  end

{'fraction_non_alphanumeric': 0.08546255506607929, 'fraction_numerical': 0.23788546255506607, 'mean_word_length': 5.273480662983426, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '5245318', 'n_tokens_mistral': 1268, 'n_tokens_neox': 978, 'n_words': 137}