<commit_before>class Fclones < Formula
  desc "Efficient Duplicate File Finder"
  homepage "https://github.com/pkolaczk/fclones"
  url "https://github.com/pkolaczk/fclones/archive/refs/tags/v0.27.3.tar.gz"
  sha256 "77281f9c3dead007b427b827cedcafab4ad8de2e6692b2cf67415afe9b817e0e"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "e408a1c73177742571a1fee62907dbe626f89517acb7d017af97dd6332f9b0ec"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "bc7f42aacab8536facc6012e9403dab3c8313cd6c086bb25191171225c40b57d"
    sha256 cellar: :any_skip_relocation, monterey:       "5c9cebcf5607ebd55e18bc6a4b87ef6152b6b45dd50125bb8d4d119f9b9c5c27"
    sha256 cellar: :any_skip_relocation, big_sur:        "f7aa9b7276f36cb8f827af8d4419556344ab0df9d04340929cc6f9edbeb43e0e"
    sha256 cellar: :any_skip_relocation, catalina:       "074641dd55c2124c59ec75c32acea70dcb4e53aebe8612f61b8b58f4b2a1f5af"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "3ca9dbeb870b74dfaf58154ff3657d5a808e9892100ce8bd870ceac4d42a731b"
  end

  depends_on "rust" => :build

  def install
    system "cargo", "install", *std_cargo_args
  end

  test do
    (testpath/"foo1.txt").write "foo"
    (testpath/"foo2.txt").write "foo"
    (testpath/"foo3.txt").write "foo"
    (testpath/"bar1.txt").write "bar"
    (testpath/"bar2.txt").write "bar"
    output = shell_output("fclones group #{testpath}")
    assert_match "Redundant: 9 B (9 B) in 3 files", output<commit_msg>fclones: update 0.27.3 bottle.<commit_after>class Fclones < Formula
  desc "Efficient Duplicate File Finder"
  homepage "https://github.com/pkolaczk/fclones"
  url "https://github.com/pkolaczk/fclones/archive/refs/tags/v0.27.3.tar.gz"
  sha256 "77281f9c3dead007b427b827cedcafab4ad8de2e6692b2cf67415afe9b817e0e"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "a40ebe6b456bcd3c453acee8782b45a1c938f79fdc15a899a5e9a68ad28b68df"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "9b52e31ee371aba9a36cf0901a3b9d653976726f6f6d530c437e04901b291aae"
    sha256 cellar: :any_skip_relocation, monterey:       "b01898f45a81dbb32284647e57bba47faa42b3955e900db52912d19c2a283d3e"
    sha256 cellar: :any_skip_relocation, big_sur:        "8ce95b40bbd14f2495cf87899ab0329db00fe52da24142b31070a67e7f6cb952"
    sha256 cellar: :any_skip_relocation, catalina:       "d7c6eb71f74148765e7df38480bdb7159f1df5c263b8a8ff570640d3520983fa"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "b500d8a8656bce36d07ec9a7a3adf4a47724df443ca160c308d59c405c127e3c"
  end

  depends_on "rust" => :build

  def install
    system "cargo", "install", *std_cargo_args
  end

  test do
    (testpath/"foo1.txt").write "foo"
    (testpath/"foo2.txt").write "foo"
    (testpath/"foo3.txt").write "foo"
    (testpath/"bar1.txt").write "bar"
    (testpath/"bar2.txt").write "bar"
    output = shell_output("fclones group #{testpath}")
    assert_match "Redundant: 9 B (9 B) in 3 files", output
{'fraction_non_alphanumeric': 0.09568417530946804, 'fraction_numerical': 0.20809635329541654, 'mean_word_length': 5.571428571428571, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '5478667', 'n_tokens_mistral': 1641, 'n_tokens_neox': 1325, 'n_words': 172}