<commit_before>require "formula"

class Cgdb < Formula
  homepage "https://cgdb.github.io/"
  url "http://cgdb.me/files/cgdb-0.6.8.tar.gz"
  sha1 "0892ae59358fa98264269cf6fe57928314ef7942"

  bottle do
    sha1 "ad041a0d959f9c78acbaf9e702028418f4fbaced" => :yosemite
    sha1 "49b22ef93ad50cc3189eab87c887aac4bf7d5be6" => :mavericks
    sha1 "4401a042175f6071740d1d87bb5993ebb3b76d2a" => :mountain_lion
  end

  head do
    url "https://github.com/cgdb/cgdb.git"

    depends_on "autoconf" => :build
    depends_on "automake" => :build
  end

  depends_on "help2man" => :build
  depends_on "readline"

  def install
    system "sh", "autogen.sh" if build.head?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-readline=#{Formula['readline'].opt_prefix}"
    system "make install"
  end
end<commit_msg>cgdb 0.6.8: Depends on flex for Linuxbrew<commit_after>require "formula"

class Cgdb < Formula
  homepage "https://cgdb.github.io/"
  url "http://cgdb.me/files/cgdb-0.6.8.tar.gz"
  sha1 "0892ae59358fa98264269cf6fe57928314ef7942"

  bottle do
    sha1 "ad041a0d959f9c78acbaf9e702028418f4fbaced" => :yosemite
    sha1 "49b22ef93ad50cc3189eab87c887aac4bf7d5be6" => :mavericks
    sha1 "4401a042175f6071740d1d87bb5993ebb3b76d2a" => :mountain_lion
  end

  head do
    url "https://github.com/cgdb/cgdb.git"

    depends_on "autoconf" => :build
    depends_on "automake" => :build
  end

  depends_on "flex" => :build unless OS.mac?
  depends_on "help2man" => :build
  depends_on "readline"

  def install
    system "sh", "autogen.sh" if build.head?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-readline=#{Formula['readline'].opt_prefix}"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.129101667563206, 'fraction_numerical': 0.1178052716514255, 'mean_word_length': 3.189189189189189, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '7521400', 'n_tokens_mistral': 838, 'n_tokens_neox': 735, 'n_words': 122}