<commit_before>class Clip < Formula
  desc "Create high-quality charts from the command-line"
  homepage "https://clip-lang.org/"
  url "https://github.com/asmuth/clip/archive/v0.7.tar.gz"
  sha256 "f38f455cf3e9201614ac71d8a871e4ff94a6e4cf461fd5bf81bdf457ba2e6b3e"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "ea142f44aa36d839d13be1ffa7cb28e7823a02756e3df5c73f454723685de8e6"
    sha256 cellar: :any, big_sur:       "1f54104c2d751b61f7a206956a8fdf9ac636bcd88fe0e39bf397d2a38fa98308"
    sha256 cellar: :any, catalina:      "421298a9039ad6645a2ff605f1e3e3ccf5e0ee345e71195e41e67e4ed1f7cfdf"
    sha256 cellar: :any, mojave:        "3f4983068feacbb39d6238e33c0516ac4bdff11c19b8e12321d06c47e39c9107"
    sha256 cellar: :any, high_sierra:   "e62a216d1b86f6775f07c5484099e905943ee283d0ad51aef812be4089624171"
  end

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "cairo"
  depends_on "fmt"
  depends_on "freetype"
  depends_on "fribidi"
  depends_on "harfbuzz"

  def install
    system "cmake", ".", *std_cmake_args
    system "make"
    system "make", "install"
    pkgshare.install "test"
  end

  test do
    cp_r pkgshare/"test", testpath
    system "#{bin}/clip", "--export", "chart.svg",
           "test/examples/charts_basic_areachart.clp"
    assert_predicate testpath/"chart.svg", :exist?
  end
end<commit_msg>clip: fix build for Linux (#82425)<commit_after>class Clip < Formula
  desc "Create high-quality charts from the command-line"
  homepage "https://clip-lang.org/"
  url "https://github.com/asmuth/clip/archive/v0.7.tar.gz"
  sha256 "f38f455cf3e9201614ac71d8a871e4ff94a6e4cf461fd5bf81bdf457ba2e6b3e"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "ea142f44aa36d839d13be1ffa7cb28e7823a02756e3df5c73f454723685de8e6"
    sha256 cellar: :any, big_sur:       "1f54104c2d751b61f7a206956a8fdf9ac636bcd88fe0e39bf397d2a38fa98308"
    sha256 cellar: :any, catalina:      "421298a9039ad6645a2ff605f1e3e3ccf5e0ee345e71195e41e67e4ed1f7cfdf"
    sha256 cellar: :any, mojave:        "3f4983068feacbb39d6238e33c0516ac4bdff11c19b8e12321d06c47e39c9107"
    sha256 cellar: :any, high_sierra:   "e62a216d1b86f6775f07c5484099e905943ee283d0ad51aef812be4089624171"
  end

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "cairo"
  depends_on "fmt"
  depends_on "freetype"
  depends_on "fribidi"
  depends_on "harfbuzz"

  on_linux do
    depends_on "gcc" => :build # for C++17
  end

  fails_with gcc: "5"

  def install
    system "cmake", ".", *std_cmake_args
    system "make"
    system "make", "install"
    pkgshare.install "test"
  end

  test do
    cp_r pkgshare/"test", testpath
    system "#{bin}/clip", "--export", "chart.svg",
           "test/examples/charts_basic_areachart.clp"
    assert_predicate testpath/"chart.svg", :exist?
  end
end
{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.18745644599303135, 'mean_word_length': 4.531791907514451, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '4283686', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1258, 'n_words': 195}