<commit_before>class Ccat < Formula
  desc "Like cat but displays content with syntax highlighting"
  homepage "https://github.com/jingweno/ccat"
  url "https://github.com/jingweno/ccat/archive/v1.1.0.tar.gz"
  sha256 "b02d2c8d573f5d73595657c7854c9019d3bd2d9e6361b66ce811937ffd2bfbe1"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "2203ed8600403a7ebedf60ff3b1f7eac6bdd0793521d759c43f5a4c6ee0d0f42"
    sha256 cellar: :any_skip_relocation, big_sur:       "56555b8a3744a0af29b6bddcab2587457bb8622f78484b38fbbaceab88ea3f5b"
    sha256 cellar: :any_skip_relocation, catalina:      "aec38270a3b41a57fe6d05df08eea67042f2b65a2a5de30b2452afefd81a6d9d"
    sha256 cellar: :any_skip_relocation, mojave:        "0170dc610f0561cd562a2614f5bb0139cad5d37133a4181318a0edc08b3182c9"
    sha256 cellar: :any_skip_relocation, high_sierra:   "895c26dc74369ef72990fd79447e654f5266dda9c662d3bed2926caab7180678"
    sha256 cellar: :any_skip_relocation, sierra:        "aab86cfae41d1f4f9c93ad3a1680f21a5a0e9fad61190101582235174e4e214c"
    sha256 cellar: :any_skip_relocation, el_capitan:    "10eb7df98a05c968f006bbda2c6f690bd7d5053e4bb6d2c9c4a043616648a23b"
    sha256 cellar: :any_skip_relocation, yosemite:      "063b4cab434b5d16e8884aad6eb7d18068c33f9ec884fabf5ada3ad821428897"
    sha256 cellar: :any_skip_relocation, mavericks:     "04342b5be5ffffaa696799b006b592cad530b0fcd510514ad9c72bc70c5865ba"
  end

  depends_on "go" => :build

  conflicts_with "ccrypt", because: "both install `ccat` binaries"

  def install
    ENV["GOPATH"] = buildpath
    ENV["GO111MODULE"] = "auto"
    system "./script/build"
    bin.install "ccat"
  end

  test do
    (testpath/"test.txt").write <<~EOS<commit_msg>ccat: remove mavericks bottle.<commit_after>class Ccat < Formula
  desc "Like cat but displays content with syntax highlighting"
  homepage "https://github.com/jingweno/ccat"
  url "https://github.com/jingweno/ccat/archive/v1.1.0.tar.gz"
  sha256 "b02d2c8d573f5d73595657c7854c9019d3bd2d9e6361b66ce811937ffd2bfbe1"
  license "MIT"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "2203ed8600403a7ebedf60ff3b1f7eac6bdd0793521d759c43f5a4c6ee0d0f42"
    sha256 cellar: :any_skip_relocation, big_sur:       "56555b8a3744a0af29b6bddcab2587457bb8622f78484b38fbbaceab88ea3f5b"
    sha256 cellar: :any_skip_relocation, catalina:      "aec38270a3b41a57fe6d05df08eea67042f2b65a2a5de30b2452afefd81a6d9d"
    sha256 cellar: :any_skip_relocation, mojave:        "0170dc610f0561cd562a2614f5bb0139cad5d37133a4181318a0edc08b3182c9"
    sha256 cellar: :any_skip_relocation, high_sierra:   "895c26dc74369ef72990fd79447e654f5266dda9c662d3bed2926caab7180678"
    sha256 cellar: :any_skip_relocation, sierra:        "aab86cfae41d1f4f9c93ad3a1680f21a5a0e9fad61190101582235174e4e214c"
    sha256 cellar: :any_skip_relocation, el_capitan:    "10eb7df98a05c968f006bbda2c6f690bd7d5053e4bb6d2c9c4a043616648a23b"
    sha256 cellar: :any_skip_relocation, yosemite:      "063b4cab434b5d16e8884aad6eb7d18068c33f9ec884fabf5ada3ad821428897"
  end

  depends_on "go" => :build

  conflicts_with "ccrypt", because: "both install `ccat` binaries"

  def install
    ENV["GOPATH"] = buildpath
    ENV["GO111MODULE"] = "auto"
    system "./script/build"
    bin.install "ccat"
  end

  test do
    (testpath/"test.txt").write <<~EOS
{'fraction_non_alphanumeric': 0.07623049219687875, 'fraction_numerical': 0.24519807923169268, 'mean_word_length': 5.972803347280335, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6150429', 'n_tokens_mistral': 1918, 'n_tokens_neox': 1496, 'n_words': 183}