<commit_before>class Duckscript < Formula
  desc "Simple, extendable and embeddable scripting language"
  homepage "https://sagiegurari.github.io/duckscript"
  url "https://github.com/sagiegurari/duckscript/archive/0.6.5.tar.gz"
  sha256 "5f80ec08476591697bc6c777452b6ab6f7c3700b2d0606384bf2b0f4090a9a8e"
  license "Apache-2.0"
  head "https://github.com/sagiegurari/duckscript.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "64360e8e5ad578b738f8da2cbb74f711a5de37901c15384091b931457014d50f" => :catalina
    sha256 "71b0a3a2cb1e931275b49509baafdce6ae35b6945efa521163233d87063b5b44" => :mojave
    sha256 "694be6568a521714bf1c7de78e9cf87d2f9a21fdfd0bebd2708397d26118501e" => :high_sierra
  end

  depends_on "rust" => :build

  def install
    cd "duckscript_cli" do
      system "cargo", "install", *std_cargo_args
    end
  end

  test do
    (testpath/"hello.ds").write <<~EOS
      out = set "Hello World"<commit_msg>duckscript: update 0.6.5 bottle.<commit_after>class Duckscript < Formula
  desc "Simple, extendable and embeddable scripting language"
  homepage "https://sagiegurari.github.io/duckscript"
  url "https://github.com/sagiegurari/duckscript/archive/0.6.5.tar.gz"
  sha256 "5f80ec08476591697bc6c777452b6ab6f7c3700b2d0606384bf2b0f4090a9a8e"
  license "Apache-2.0"
  head "https://github.com/sagiegurari/duckscript.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "00a4e4455a407edd5a85d66845ef84279f15da34551551624119fa9fa724adac" => :catalina
    sha256 "5a6f1da284a7c00ab22fc72e5a69eeac5247b28b99eaf1e8eee683491cdc1e46" => :mojave
    sha256 "255f427810a410144fb306aefd84a6d0f8161ffba4c2029565415390773101fc" => :high_sierra
  end

  depends_on "rust" => :build

  def install
    cd "duckscript_cli" do
      system "cargo", "install", *std_cargo_args
    end
  end

  test do
    (testpath/"hello.ds").write <<~EOS
      out = set "Hello World"
{'fraction_non_alphanumeric': 0.09422975119110641, 'fraction_numerical': 0.19851773425092642, 'mean_word_length': 4.924764890282131, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '1738171', 'n_tokens_mistral': 1005, 'n_tokens_neox': 824, 'n_words': 114}