<commit_before>class Vnstat < Formula
  desc "Console-based network traffic monitor"
  homepage "http://humdi.net/vnstat/"
  url "http://humdi.net/vnstat/vnstat-1.15.tar.gz"
  sha256 "c3814b5baa8b627198a8debfe1dce4b4346a342523818cc8668a5497971dbc39"
  head "https://github.com/vergoh/vnstat.git"

  bottle do
    cellar :any
    sha256 "f97af3169568feb1130b807bac177f94a93dfed626a2f96a1a9ad0f5523cba33" => :sierra
    sha256 "08583849278dc7be99a24d897abc738d21a5a50b8af1dbed8ec190847016a1ee" => :el_capitan
    sha256 "ff7523531fea5c19a5cc3cf96ae721f495874e3feba55a08a5e25529c716cd4a" => :yosemite
    sha256 "e21450b6f61b6ed35c6f5179d22921629e321366d06e451c29aeb8c462b0bc7c" => :mavericks
  end

  depends_on "gd"

  def install
    inreplace %w[src/cfg.c src/common.h man/vnstat.1 man/vnstatd.1 man/vnstati.1
                 man/vnstat.conf.5].each do |s|
      s.gsub! "/etc/vnstat.conf", "#{etc}/vnstat.conf", false
      s.gsub! "/var/", "#{var}/", false
      s.gsub! "var/lib", "var/db", false
      s.gsub! "\"eth0\"", "\"en0\"", false
    end

    system "./configure", "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}",
                          "--sysconfdir=#{etc}",
                          "--sbindir=#{bin}",
                          "--localstatedir=#{var}"
    system "make", "install"<commit_msg>vnstat 1.16<commit_after>class Vnstat < Formula
  desc "Console-based network traffic monitor"
  homepage "http://humdi.net/vnstat/"
  url "http://humdi.net/vnstat/vnstat-1.16.tar.gz"
  sha256 "420fec6c89229a100697f3189e824a1b81f7148dd651558f2ff03cc298308e8b"
  head "https://github.com/vergoh/vnstat.git"

  bottle do
    cellar :any
    sha256 "f97af3169568feb1130b807bac177f94a93dfed626a2f96a1a9ad0f5523cba33" => :sierra
    sha256 "08583849278dc7be99a24d897abc738d21a5a50b8af1dbed8ec190847016a1ee" => :el_capitan
    sha256 "ff7523531fea5c19a5cc3cf96ae721f495874e3feba55a08a5e25529c716cd4a" => :yosemite
    sha256 "e21450b6f61b6ed35c6f5179d22921629e321366d06e451c29aeb8c462b0bc7c" => :mavericks
  end

  depends_on "gd"

  def install
    inreplace %w[src/cfg.c src/common.h man/vnstat.1 man/vnstatd.1 man/vnstati.1
                 man/vnstat.conf.5].each do |s|
      s.gsub! "/etc/vnstat.conf", "#{etc}/vnstat.conf", false
      s.gsub! "/var/", "#{var}/", false
      s.gsub! "var/lib", "var/db", false
      s.gsub! "\"eth0\"", "\"en0\"", false
    end

    system "./configure", "--disable-dependency-tracking",
                          "--disable-silent-rules",
                          "--prefix=#{prefix}",
                          "--sysconfdir=#{etc}",
                          "--sbindir=#{bin}",
                          "--localstatedir=#{var}"
    system "make", "install"
{'fraction_non_alphanumeric': 0.13984263233190272, 'fraction_numerical': 0.16273247496423462, 'mean_word_length': 2.6851119894598154, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '1408653', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1131, 'n_words': 148}