<commit_before>class Dolt < Formula
  desc "Git for Data"
  homepage "https://github.com/liquidata-inc/dolt"
  url "https://github.com/dolthub/dolt/archive/v0.22.5.tar.gz"
  sha256 "b96913cf793c62808cc7814278132f2579709355a31d4f75c0f27f5082d014fa"
  license "Apache-2.0"

  livecheck do
    url "https://github.com/liquidata-inc/dolt/releases/latest"
    regex(%r{href=.*?/tag/v?(\d+(?:\.\d+)+)["' >]}i)
  end

  bottle do
    cellar :any_skip_relocation
    sha256 "f7ce9411ed5bbc7f62d052132c076e44efb8dbab3652ca0123ffc6038971ec5b" => :big_sur
    sha256 "14410ac582aefd0b8e073e038bbaad8be03c47a32481290a0ec56d5dfd1ef208" => :catalina
    sha256 "2048911215e8d4d4e33410df2b4f055252e0531a4192f7a613490081293a639f" => :mojave
  end

  depends_on "go" => :build

  def install
    chdir "go" do
      system "go", "build", *std_go_args, "./cmd/dolt"
      system "go", "build", *std_go_args, "-o", bin/"git-dolt", "./cmd/git-dolt"
      system "go", "build", *std_go_args, "-o", bin/"git-dolt-smudge", "./cmd/git-dolt-smudge"
    end
  end

  test do
    ENV["DOLT_ROOT_PATH"] = testpath<commit_msg>dolt 0.22.6<commit_after>class Dolt < Formula
  desc "Git for Data"
  homepage "https://github.com/liquidata-inc/dolt"
  url "https://github.com/dolthub/dolt/archive/v0.22.6.tar.gz"
  sha256 "18c766b0de8502d52bc39a67274718cf31f56f9e4f8b8b000d2176c0f7129c59"
  license "Apache-2.0"

  livecheck do
    url "https://github.com/liquidata-inc/dolt/releases/latest"
    regex(%r{href=.*?/tag/v?(\d+(?:\.\d+)+)["' >]}i)
  end

  bottle do
    cellar :any_skip_relocation
    sha256 "f7ce9411ed5bbc7f62d052132c076e44efb8dbab3652ca0123ffc6038971ec5b" => :big_sur
    sha256 "14410ac582aefd0b8e073e038bbaad8be03c47a32481290a0ec56d5dfd1ef208" => :catalina
    sha256 "2048911215e8d4d4e33410df2b4f055252e0531a4192f7a613490081293a639f" => :mojave
  end

  depends_on "go" => :build

  def install
    chdir "go" do
      system "go", "build", *std_go_args, "./cmd/dolt"
      system "go", "build", *std_go_args, "-o", bin/"git-dolt", "./cmd/git-dolt"
      system "go", "build", *std_go_args, "-o", bin/"git-dolt-smudge", "./cmd/git-dolt-smudge"
    end
  end

  test do
    ENV["DOLT_ROOT_PATH"] = testpath
{'fraction_non_alphanumeric': 0.15145985401459855, 'fraction_numerical': 0.17335766423357665, 'mean_word_length': 4.123831775700935, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '7507801', 'n_tokens_mistral': 1211, 'n_tokens_neox': 996, 'n_words': 138}