<commit_before>class DhallLspServer < Formula
  desc "Language Server Protocol (LSP) server for Dhall"
  homepage "https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server"
  url "https://hackage.haskell.org/package/dhall-lsp-server-1.0.7/dhall-lsp-server-1.0.7.tar.gz"
  sha256 "81b85964ef2865b76fdfa494e241090da3dbd00fac3b2f1b530ee9e35354de22"
  head "https://github.com/dhall-lang/dhall-haskell.git"
  revision 1

  bottle do
    cellar :any_skip_relocation
    sha256 "aa2331904e073fe567115b621b2b18867842c41f2f2d32caee6423581cb964f4" => :catalina
    sha256 "2ef359ec11d4c99e2bc7606c3c826c205d82b9a576915b4e7ae2c0160a3f2cd3" => :mojave
    sha256 "9a679543497b8bbca84828122a9dfb6c15149d772756db73c9b3a9b02b6a0aff" => :high_sierra
  end

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

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

  test do
    input =
      "Content-Length: 152\r\n" \<commit_msg>dhall-lsp-server: fix components order.<commit_after>class DhallLspServer < Formula
  desc "Language Server Protocol (LSP) server for Dhall"
  homepage "https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server"
  url "https://hackage.haskell.org/package/dhall-lsp-server-1.0.7/dhall-lsp-server-1.0.7.tar.gz"
  sha256 "81b85964ef2865b76fdfa494e241090da3dbd00fac3b2f1b530ee9e35354de22"
  revision 1
  head "https://github.com/dhall-lang/dhall-haskell.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "aa2331904e073fe567115b621b2b18867842c41f2f2d32caee6423581cb964f4" => :catalina
    sha256 "2ef359ec11d4c99e2bc7606c3c826c205d82b9a576915b4e7ae2c0160a3f2cd3" => :mojave
    sha256 "9a679543497b8bbca84828122a9dfb6c15149d772756db73c9b3a9b02b6a0aff" => :high_sierra
  end

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

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

  test do
    input =
      "Content-Length: 152\r\n" \
{'fraction_non_alphanumeric': 0.10760118460019744, 'fraction_numerical': 0.18756169792694966, 'mean_word_length': 4.742209631728045, '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': '5294842', 'n_tokens_mistral': 1103, 'n_tokens_neox': 919, 'n_words': 115}