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

  livecheck do
    url :stable
    strategy :github_latest
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "ff35014f46450b749e94a23c0f819194d5dfd6813dd6bdf865e7dc38658dc69a"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "b875a7c15c8326bd03e35337e26ee8693f4dcbc6fa690958587c3626e3db618e"
    sha256 cellar: :any_skip_relocation, monterey:       "c6a59a1480ad722dccc204fccc91b2b39c84dd7c89e4e534521e04b5b7850d54"
    sha256 cellar: :any_skip_relocation, big_sur:        "017c69b6ea4dbe57989d5d86c8e995e8c1682de19353b40d0c9caa9d0fd69bef"
    sha256 cellar: :any_skip_relocation, catalina:       "db11c2392c904767eb29b5846ab8d7b23e6b3de994d141b2293c4b923851f7cd"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "e467c82c955232206f0c80f5f8690db9ccfcdebe8588ca78b71b55b89412866c"
  end

  depends_on "go" => :build

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

  test do
    ENV["DOLT_ROOT_PATH"] = testpath

    mkdir "state-populations" do
      system bin/"dolt", "init", "--name", "test", "--email", "test"
      system bin/"dolt", "sql", "-q", "create table state_populations ( state varchar(14), primary key (state) )"
      assert_match "state_populations", shell_output("#{bin}/dolt sql -q 'show tables'")
    end
  end
end
<commit_msg>dolt 0.34.8<commit_after>class Dolt < Formula
  desc "Git for Data"
  homepage "https://github.com/dolthub/dolt"
  url "https://github.com/dolthub/dolt/archive/v0.34.8.tar.gz"
  sha256 "ee00ac61a427fe9d150431ca9b67c2b5a4140b714f8f92f29125e55144e6d13b"
  license "Apache-2.0"

  livecheck do
    url :stable
    strategy :github_latest
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "ff35014f46450b749e94a23c0f819194d5dfd6813dd6bdf865e7dc38658dc69a"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "b875a7c15c8326bd03e35337e26ee8693f4dcbc6fa690958587c3626e3db618e"
    sha256 cellar: :any_skip_relocation, monterey:       "c6a59a1480ad722dccc204fccc91b2b39c84dd7c89e4e534521e04b5b7850d54"
    sha256 cellar: :any_skip_relocation, big_sur:        "017c69b6ea4dbe57989d5d86c8e995e8c1682de19353b40d0c9caa9d0fd69bef"
    sha256 cellar: :any_skip_relocation, catalina:       "db11c2392c904767eb29b5846ab8d7b23e6b3de994d141b2293c4b923851f7cd"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "e467c82c955232206f0c80f5f8690db9ccfcdebe8588ca78b71b55b89412866c"
  end

  depends_on "go" => :build

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

  test do
    ENV["DOLT_ROOT_PATH"] = testpath

    mkdir "state-populations" do
      system bin/"dolt", "init", "--name", "test", "--email", "test"
      system bin/"dolt", "sql", "-q", "create table state_populations ( state varchar(14), primary key (state) )"
      assert_match "state_populations", shell_output("#{bin}/dolt sql -q 'show tables'")
    end
  end
end

{'fraction_non_alphanumeric': 0.11241610738255034, 'fraction_numerical': 0.18176733780760626, 'mean_word_length': 4.695859872611465, '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': '177894', 'n_tokens_mistral': 1893, 'n_tokens_neox': 1543, 'n_words': 237}