<commit_before>class Cppcheck < Formula
  homepage "http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page"
  url "https://github.com/danmar/cppcheck/archive/1.68.tar.gz"
  sha1 "f08ef07f750f92fafe4f960166072e9d1088d74e"

  head "https://github.com/danmar/cppcheck.git"

  bottle do
    revision 1
    sha256 "fd979cd455c04c543bdb81be9c98d265cdab3a451302f1b506a5225c4b5d4bef" => :yosemite
    sha256 "aa2e66721ab0f605c706c6366c0e92d50b6d1281c2f1656f0f25301b6db29d66" => :mavericks
  end

  option "without-rules", "Build without rules (no pcre dependency)"
  option "with-gui", "Build the cppcheck gui (requires Qt)"

  deprecated_option "no-rules" => "without-rules"

  depends_on "pcre" if build.with? "rules"
  depends_on "qt" if build.with? "gui"

  # Upstream patches for OS X + Clang compilation
  patch do
    url "https://github.com/danmar/cppcheck/commit/141a071.diff"
    sha1 "4ccc8d814709d0e221c533a5556da4b1aa5fbead"
  end

  def install
    # Man pages aren't installed as they require docbook schemas.

    # Pass to make variables.
    if build.with? "rules"<commit_msg>cppcheck: Fix head build<commit_after>class Cppcheck < Formula
  homepage "http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page"

  stable do
    url "https://github.com/danmar/cppcheck/archive/1.68.tar.gz"
    sha1 "f08ef07f750f92fafe4f960166072e9d1088d74e"

    # Upstream patches for OS X + Clang compilation
    patch do
      url "https://github.com/danmar/cppcheck/commit/141a071.diff"
      sha1 "4ccc8d814709d0e221c533a5556da4b1aa5fbead"
    end
  end

  head "https://github.com/danmar/cppcheck.git"

  bottle do
    revision 1
    sha256 "fd979cd455c04c543bdb81be9c98d265cdab3a451302f1b506a5225c4b5d4bef" => :yosemite
    sha256 "aa2e66721ab0f605c706c6366c0e92d50b6d1281c2f1656f0f25301b6db29d66" => :mavericks
  end

  option "without-rules", "Build without rules (no pcre dependency)"
  option "with-gui", "Build the cppcheck gui (requires Qt)"

  deprecated_option "no-rules" => "without-rules"

  depends_on "pcre" if build.with? "rules"
  depends_on "qt" if build.with? "gui"


  def install
    # Man pages aren't installed as they require docbook schemas.

    # Pass to make variables.
    if build.with? "rules"
{'fraction_non_alphanumeric': 0.0989791389258766, 'fraction_numerical': 0.12960497114957834, 'mean_word_length': 4.2540792540792545, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2458634', 'n_tokens_mistral': 1045, 'n_tokens_neox': 888, 'n_words': 171}