<commit_before>require "language/haskell"

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

  desc "Dhall to JSON compiler and a Dhall to YAML compiler"
  homepage "https://github.com/Gabriel439/Haskell-Dhall-JSON-Library"
  url "https://hackage.haskell.org/package/dhall-json-1.2.6/dhall-json-1.2.6.tar.gz"
  sha256 "9989a705a780ccc8b40f242e5dcb8949ade590a0180ae9559bffa25d829d2838"
  head "https://github.com/Gabriel439/Haskell-Dhall-JSON-Library.git"
  revision 1 unless OS.mac?

  unless OS.mac?
    depends_on "ncurses"
    depends_on "zlib"
  end

  bottle do
    cellar :any_skip_relocation
    sha256 "6f11856cac3d2516d0e7d53db129f1b4cd273ee9e073f145a4cb167ec3e167a1" => :mojave
    sha256 "ad0fa0e553afa962b8a006a0c1bd715e321e5797193589f63f2b1185e7759adb" => :high_sierra
    sha256 "fb36ce25ef819842687865bd82f857998ce9ea1d4b133566d78fcf75b8c536f0" => :sierra
  end

  depends_on "cabal-install" => :build
  depends_on "ghc" => :build

  def install
    install_cabal_package
  end

  test do
    assert_match "1", pipe_output("#{bin}/dhall-to-json", "1", 0)
  end
end<commit_msg>dhall-json: Fix bottling for Linuxbrew<commit_after>require "language/haskell"

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

  desc "Dhall to JSON compiler and a Dhall to YAML compiler"
  homepage "https://github.com/Gabriel439/Haskell-Dhall-JSON-Library"
  url "https://hackage.haskell.org/package/dhall-json-1.2.6/dhall-json-1.2.6.tar.gz"
  sha256 "9989a705a780ccc8b40f242e5dcb8949ade590a0180ae9559bffa25d829d2838"
  head "https://github.com/Gabriel439/Haskell-Dhall-JSON-Library.git"
  revision 1 unless OS.mac?

  unless OS.mac?
    depends_on "ncurses"
    depends_on "zlib"
  end

  bottle do
    sha256 "6f11856cac3d2516d0e7d53db129f1b4cd273ee9e073f145a4cb167ec3e167a1" => :mojave
    sha256 "ad0fa0e553afa962b8a006a0c1bd715e321e5797193589f63f2b1185e7759adb" => :high_sierra
    sha256 "fb36ce25ef819842687865bd82f857998ce9ea1d4b133566d78fcf75b8c536f0" => :sierra
  end

  depends_on "cabal-install" => :build
  depends_on "ghc" => :build

  def install
    install_cabal_package
  end

  test do
    assert_match "1", pipe_output("#{bin}/dhall-to-json", "1", 0)
  end
end
{'fraction_non_alphanumeric': 0.10050022737608004, 'fraction_numerical': 0.17371532514779445, 'mean_word_length': 4.8201058201058204, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6678634', 'n_tokens_mistral': 1160, 'n_tokens_neox': 951, 'n_words': 141}