<commit_before>class Dust < Formula
  desc "More intuitive version of du in rust"
  homepage "https://github.com/bootandy/dust"
  url "https://github.com/bootandy/dust/archive/v0.8.2.tar.gz"
  sha256 "890972fbf1a7f0a336c0f20e1e9ecc756c62d3debd75d22b596af993a3d8af01"
  license "Apache-2.0"
  head "https://github.com/bootandy/dust.git", branch: "master"

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "5757e9fd044750fe69b85a45006cb01a5f15303df1b9fd5a5c15e5b295bacc86"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "3c56c62f9792c2e05ba693941e7c8e01b59c990246651ea01e8992ced236bb2c"
    sha256 cellar: :any_skip_relocation, monterey:       "07d1a0f50138bb3b27cbd7753ad0ccc6f5cbe253d114441d54616bacef0a9173"
    sha256 cellar: :any_skip_relocation, big_sur:        "04bd25cca9751adc20bb632037a34fe8f7a8fec8e5a58921dda4a8ace8437441"
    sha256 cellar: :any_skip_relocation, catalina:       "380058259f2a13e39066b5725a976cdc9ea29c2ac6f16fd14fc5fbd8c1f3848d"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "53f0b28a72f091b733af5547ca47e304eaa4f0b058170b3fc6996879e6c4ccae"
  end

  depends_on "rust" => :build

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

  test do
    assert_match(/\d+.+?\./, shell_output("#{bin}/dust -n 1"))
  end<commit_msg>dust: add shell completions<commit_after>class Dust < Formula
  desc "More intuitive version of du in rust"
  homepage "https://github.com/bootandy/dust"
  url "https://github.com/bootandy/dust/archive/v0.8.2.tar.gz"
  sha256 "890972fbf1a7f0a336c0f20e1e9ecc756c62d3debd75d22b596af993a3d8af01"
  license "Apache-2.0"
  revision 1
  head "https://github.com/bootandy/dust.git", branch: "master"

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "5757e9fd044750fe69b85a45006cb01a5f15303df1b9fd5a5c15e5b295bacc86"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "3c56c62f9792c2e05ba693941e7c8e01b59c990246651ea01e8992ced236bb2c"
    sha256 cellar: :any_skip_relocation, monterey:       "07d1a0f50138bb3b27cbd7753ad0ccc6f5cbe253d114441d54616bacef0a9173"
    sha256 cellar: :any_skip_relocation, big_sur:        "04bd25cca9751adc20bb632037a34fe8f7a8fec8e5a58921dda4a8ace8437441"
    sha256 cellar: :any_skip_relocation, catalina:       "380058259f2a13e39066b5725a976cdc9ea29c2ac6f16fd14fc5fbd8c1f3848d"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "53f0b28a72f091b733af5547ca47e304eaa4f0b058170b3fc6996879e6c4ccae"
  end

  depends_on "rust" => :build

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

    bash_completion.install "completions/dust.bash"
    fish_completion.install "completions/dust.fish"
    zsh_completion.install "completions/_dust"
  end

  test do
    assert_match(/\d+.+?\./, shell_output("#{bin}/dust -n 1"))
  end
{'fraction_non_alphanumeric': 0.09839972761321075, 'fraction_numerical': 0.21144024514811033, 'mean_word_length': 5.318279569892473, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3254048', 'n_tokens_mistral': 1640, 'n_tokens_neox': 1308, 'n_words': 168}