<commit_before>class Bnfc < Formula
  desc "BNF Converter"
  homepage "https://bnfc.digitalgrammars.com/"
  url "https://github.com/BNFC/bnfc/archive/v2.9.1.tar.gz"
  sha256 "d79125168636fdcf0acd64a9b83ea620c311b16dcada0848d8a577aa8aeddec4"
  license "BSD-3-Clause"
  head "https://github.com/BNFC/bnfc.git"

  bottle do
    rebuild 1
    sha256 cellar: :any_skip_relocation, big_sur:  "196fbc36c44e6627bf8c39d852f5f75defbff9c344cfa65f04a89e04c72b6b4a"
    sha256 cellar: :any_skip_relocation, catalina: "62c0fb84159e25aab115a74ef6b0b24d728528ce7a7ad7ebc92601d25f3ae96f"
    sha256 cellar: :any_skip_relocation, mojave:   "b5cc8d548edc6e6a48a3f150f6c20937f9466d6bfec4b64e04a1f56a2c418979"
  end

  depends_on "cabal-install" => [:build, :test]
  depends_on "ghc" => [:build, :test]
  depends_on "sphinx-doc" => :build
  depends_on "antlr" => :test
  depends_on "openjdk" => :test

  uses_from_macos "bison" => :test
  uses_from_macos "flex" => :test

  def install
    cd "source" do
      system "cabal", "v2-update"
      system "cabal", "v2-install", *std_cabal_v2_args
      doc.install "CHANGELOG.md"
      doc.install "src/BNFC.cf" => "BNFC.cf"
    end
    cd "docs" do
      system "make", "text", "man", "SPHINXBUILD=#{Formula["sphinx-doc"].bin/"sphinx-build"}"
      cd "_build" do
        doc.install "text" => "manual"
        man1.install "man/1/bnfc.1" => "bnfc.1"
      end
    end
    doc.install %w[README.md examples]
  end
<commit_msg>bnfc: revert "fix sphinx-docs 4.0+ man directory"<commit_after>class Bnfc < Formula
  desc "BNF Converter"
  homepage "https://bnfc.digitalgrammars.com/"
  url "https://github.com/BNFC/bnfc/archive/v2.9.1.tar.gz"
  sha256 "d79125168636fdcf0acd64a9b83ea620c311b16dcada0848d8a577aa8aeddec4"
  license "BSD-3-Clause"
  head "https://github.com/BNFC/bnfc.git"

  bottle do
    rebuild 1
    sha256 cellar: :any_skip_relocation, big_sur:  "196fbc36c44e6627bf8c39d852f5f75defbff9c344cfa65f04a89e04c72b6b4a"
    sha256 cellar: :any_skip_relocation, catalina: "62c0fb84159e25aab115a74ef6b0b24d728528ce7a7ad7ebc92601d25f3ae96f"
    sha256 cellar: :any_skip_relocation, mojave:   "b5cc8d548edc6e6a48a3f150f6c20937f9466d6bfec4b64e04a1f56a2c418979"
  end

  depends_on "cabal-install" => [:build, :test]
  depends_on "ghc" => [:build, :test]
  depends_on "sphinx-doc" => :build
  depends_on "antlr" => :test
  depends_on "openjdk" => :test

  uses_from_macos "bison" => :test
  uses_from_macos "flex" => :test

  def install
    cd "source" do
      system "cabal", "v2-update"
      system "cabal", "v2-install", *std_cabal_v2_args
      doc.install "CHANGELOG.md"
      doc.install "src/BNFC.cf" => "BNFC.cf"
    end
    cd "docs" do
      system "make", "text", "man", "SPHINXBUILD=#{Formula["sphinx-doc"].bin/"sphinx-build"}"
      cd "_build" do
        doc.install "text" => "manual"
        man1.install "man/bnfc.1" => "bnfc.1"
      end
    end
    doc.install %w[README.md examples]
  end

{'fraction_non_alphanumeric': 0.12959183673469388, 'fraction_numerical': 0.11734693877551021, 'mean_word_length': 3.9679054054054053, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '3046621', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1314, 'n_words': 206}