<commit_before>class Xmlstarlet < Formula
  desc "XML command-line utilities"
  homepage "https://xmlstar.sourceforge.io/"
  url "https://downloads.sourceforge.net/project/xmlstar/xmlstarlet/1.6.1/xmlstarlet-1.6.1.tar.gz"
  sha256 "15d838c4f3375332fd95554619179b69e4ec91418a3a5296e7c631b7ed19e7ca"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "d654b90521d07ffc1304253fd2b927f9813effa5a65c3f6c43b67838077c009d"
    sha256 cellar: :any_skip_relocation, big_sur:       "bc3baa847a617f3d67000ff14e96126f9bbdf54e916b6c693a2c8bf633ca0bfa"
    sha256 cellar: :any_skip_relocation, catalina:      "2a679570811f553e345748516fa37c2d4b529a75533bdb73316077aaed5ab8f6"
    sha256 cellar: :any_skip_relocation, mojave:        "6e5d11ee1419a61a9f043663c1236d064ee692fd187ae15bf2114b42d8f0889e"
    sha256 cellar: :any_skip_relocation, high_sierra:   "56ce0e3190080e6e1111ebb31aa06aea53f16cde50359a356c24ff86a4df72b3"
    sha256 cellar: :any_skip_relocation, sierra:        "4958bf868beefb9a2b391c0fe05f5289b67a4cded708d71c4cc5fced130bac55"
    sha256 cellar: :any_skip_relocation, el_capitan:    "2d9a9b5f875b91c78378e7f3df12595528d8e4b9ec9e321131b7f9f78f30acd8"
    sha256 cellar: :any_skip_relocation, yosemite:      "525eafe6cab96cc6e04fef756e25316119b3c96cb61e5f7f51770cd062ad1bec"
  end

  uses_from_macos "libxslt"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make"
    system "make", "install"
    bin.install_symlink "xml" => "xmlstarlet"
  end

  test do
    system "#{bin}/xmlstarlet", "--version"<commit_msg>xmlstarlet: update 1.6.1 bottle.<commit_after>class Xmlstarlet < Formula
  desc "XML command-line utilities"
  homepage "https://xmlstar.sourceforge.io/"
  url "https://downloads.sourceforge.net/project/xmlstar/xmlstarlet/1.6.1/xmlstarlet-1.6.1.tar.gz"
  sha256 "15d838c4f3375332fd95554619179b69e4ec91418a3a5296e7c631b7ed19e7ca"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "d654b90521d07ffc1304253fd2b927f9813effa5a65c3f6c43b67838077c009d"
    sha256 cellar: :any_skip_relocation, big_sur:       "bc3baa847a617f3d67000ff14e96126f9bbdf54e916b6c693a2c8bf633ca0bfa"
    sha256 cellar: :any_skip_relocation, catalina:      "2a679570811f553e345748516fa37c2d4b529a75533bdb73316077aaed5ab8f6"
    sha256 cellar: :any_skip_relocation, mojave:        "6e5d11ee1419a61a9f043663c1236d064ee692fd187ae15bf2114b42d8f0889e"
    sha256 cellar: :any_skip_relocation, high_sierra:   "56ce0e3190080e6e1111ebb31aa06aea53f16cde50359a356c24ff86a4df72b3"
    sha256 cellar: :any_skip_relocation, sierra:        "4958bf868beefb9a2b391c0fe05f5289b67a4cded708d71c4cc5fced130bac55"
    sha256 cellar: :any_skip_relocation, el_capitan:    "2d9a9b5f875b91c78378e7f3df12595528d8e4b9ec9e321131b7f9f78f30acd8"
    sha256 cellar: :any_skip_relocation, yosemite:      "525eafe6cab96cc6e04fef756e25316119b3c96cb61e5f7f51770cd062ad1bec"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "6c682deca05e96d3b8d42c2ab783a36cf06f6a6e3733cc4830395f9db26d51b3"
  end

  uses_from_macos "libxslt"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make"
    system "make", "install"
    bin.install_symlink "xml" => "xmlstarlet"
  end

  test do
    system "#{bin}/xmlstarlet", "--version"
{'fraction_non_alphanumeric': 0.08409610983981694, 'fraction_numerical': 0.24113272311212813, 'mean_word_length': 4.998284734133791, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 15}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6137878', 'n_tokens_mistral': 1963, 'n_tokens_neox': 1525, 'n_words': 169}