<commit_before>class Dsq < Formula
  desc "CLI tool for running SQL queries against JSON, CSV, Excel, Parquet, and more"
  homepage "https://github.com/multiprocessio/dsq"
  url "https://github.com/multiprocessio/dsq/archive/refs/tags/0.20.0.tar.gz"
  sha256 "ed35f324522021fc5c6122c9319552245f26e34a19029e87169f194113d2f864"
  license "Apache-2.0"
  head "https://github.com/multiprocessio/dsq.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "14146c9d7bfef782294b92c9265f7eeeaa6e2241ba65e4bf0e86798573c367b5"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "2f7787a54b615e89eeee6e411df31249bbad81151c5ab60bc79cc1e61e31de66"
    sha256 cellar: :any_skip_relocation, monterey:       "37b78e43b66547828be4871aa9b3aa8d8cb2352f1f4d397d12a01e09db1894cd"
    sha256 cellar: :any_skip_relocation, big_sur:        "622430f69e2bb031a9c0ff9b49ba5f066455ba7b1eb65e8059ca64da004bd61d"
    sha256 cellar: :any_skip_relocation, catalina:       "5fcfb9bb6d1f4894ac2b8d8bb46663fbe67bab0745f1494a6d5c0f16e2823e49"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "7ca4e898229d0db6591c897ff197c1568f080d198a398c4255f47e44ec92a846"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w -X main.Version=#{version}")

    pkgshare.install "testdata/userdata.json"
  end

  test do
    query = "\"SELECT count(*) as c FROM {} WHERE State = 'Maryland'\""
    output = shell_output("#{bin}/dsq #{pkgshare}/userdata.json #{query}")
    assert_match "[{\"c\":19}]", output
  end
end
<commit_msg>dsq: update 0.20.0 bottle.<commit_after>class Dsq < Formula
  desc "CLI tool for running SQL queries against JSON, CSV, Excel, Parquet, and more"
  homepage "https://github.com/multiprocessio/dsq"
  url "https://github.com/multiprocessio/dsq/archive/refs/tags/0.20.0.tar.gz"
  sha256 "ed35f324522021fc5c6122c9319552245f26e34a19029e87169f194113d2f864"
  license "Apache-2.0"
  head "https://github.com/multiprocessio/dsq.git", branch: "main"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "21b083246b6326fda39157894eee5a74c20d0f7ed1b1fbdcd720350f215ed541"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "091c521c0e59e4ecfdf3ce7e7c7dc36ed79bd493d34303554ae699d79e5c4a54"
    sha256 cellar: :any_skip_relocation, monterey:       "91e7a47f984d01be3eea27583d7fc556971c0fe86a786455fe2656f22ad80add"
    sha256 cellar: :any_skip_relocation, big_sur:        "4d3409c9b57e460230cfcfeb77533963c3806affd0c6a40a85a301812723bcb8"
    sha256 cellar: :any_skip_relocation, catalina:       "b0e9d644e0383824cf22b3cd9fc22c302cabf2877975f121bd678b487f093a67"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "e1c503abf0491d4bbc176fb171a837218c8a9d893f56b81e42e5c9f0d1d95887"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w -X main.Version=#{version}")

    pkgshare.install "testdata/userdata.json"
  end

  test do
    query = "\"SELECT count(*) as c FROM {} WHERE State = 'Maryland'\""
    output = shell_output("#{bin}/dsq #{pkgshare}/userdata.json #{query}")
    assert_match "[{\"c\":19}]", output
  end
end

{'fraction_non_alphanumeric': 0.10400252127324298, 'fraction_numerical': 0.20895052001260636, 'mean_word_length': 5.49079754601227, 'pattern_counts': {'":': 2, '<': 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': '3339629', 'n_tokens_mistral': 1716, 'n_tokens_neox': 1365, 'n_words': 199}