<commit_before>class Ormolu < Formula
  desc "Formatter for Haskell source code"
  homepage "https://github.com/tweag/ormolu"
  url "https://github.com/tweag/ormolu/archive/0.5.0.1.tar.gz"
  sha256 "589e7e93eb71ba12cdffed9c439025bfa8524d33d66ffd300c195af57720503a"
  license "BSD-3-Clause"
  head "https://github.com/tweag/ormolu.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "df90aba393f8c6738350da9930b186f7a94d90d7bf4723f07f9c111ed2d21adf"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "496a0fdc72406ebc4336b0b91f088d8ad4e4db327ccec95c294cebdcab1d9b64"
    sha256 cellar: :any_skip_relocation, ventura:        "9decb0aff648be0dccc073505ccea19bb086628b2662d3dfbce5be92986ade74"
    sha256 cellar: :any_skip_relocation, monterey:       "29ce357cf21e1666e2fc3acb8477cd84b51d2bb2b35a1873a4f94080e7c3340f"
    sha256 cellar: :any_skip_relocation, big_sur:        "528b1e653cb50a23bbc2c28db8b906a1d478f9ef91f49d381b2f649087ad2983"
    sha256 cellar: :any_skip_relocation, catalina:       "4bb90b51e6d9f945acdc4890b668aadbc0f6f777d22c07741a5d88b03c47d3fb"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "bc6fd8960d220e78df2cce92b53a8b9c4f487753e6301be1568ed6f6508c39bc"
  end

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

  def install
    system "cabal", "v2-update"
    system "cabal", "v2-install", "-f-fixity-th", *std_cabal_v2_args
  end

  test do<commit_msg>ormolu 0.5.1.0<commit_after>class Ormolu < Formula
  desc "Formatter for Haskell source code"
  homepage "https://github.com/tweag/ormolu"
  url "https://github.com/tweag/ormolu/archive/0.5.1.0.tar.gz"
  sha256 "889747cf0cd751dae2cc6ea607aeed85191a14c560fa9e3843bb73fc1f9d1675"
  license "BSD-3-Clause"
  head "https://github.com/tweag/ormolu.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "df90aba393f8c6738350da9930b186f7a94d90d7bf4723f07f9c111ed2d21adf"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "496a0fdc72406ebc4336b0b91f088d8ad4e4db327ccec95c294cebdcab1d9b64"
    sha256 cellar: :any_skip_relocation, ventura:        "9decb0aff648be0dccc073505ccea19bb086628b2662d3dfbce5be92986ade74"
    sha256 cellar: :any_skip_relocation, monterey:       "29ce357cf21e1666e2fc3acb8477cd84b51d2bb2b35a1873a4f94080e7c3340f"
    sha256 cellar: :any_skip_relocation, big_sur:        "528b1e653cb50a23bbc2c28db8b906a1d478f9ef91f49d381b2f649087ad2983"
    sha256 cellar: :any_skip_relocation, catalina:       "4bb90b51e6d9f945acdc4890b668aadbc0f6f777d22c07741a5d88b03c47d3fb"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "bc6fd8960d220e78df2cce92b53a8b9c4f487753e6301be1568ed6f6508c39bc"
  end

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

  def install
    system "cabal", "v2-update"
    system "cabal", "v2-install", "-f-fixity-th", *std_cabal_v2_args
  end

  test do
{'fraction_non_alphanumeric': 0.08427932576539388, 'fraction_numerical': 0.23632610939112486, 'mean_word_length': 5.973621103117506, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '1826852', 'n_tokens_mistral': 1696, 'n_tokens_neox': 1354, 'n_words': 156}