<commit_before>require "language/go"

class Mpdviz < Formula
  desc "Standalone console MPD visualizer"
  homepage "https://github.com/lucy/mpdviz"
  url "https://github.com/lucy/mpdviz/archive/0.4.6.tar.gz"
  sha256 "c34243ec3f3d91adbc36d608d5ba7082ff78870f2fd76a6650d5fb3218cc2ba3"

  bottle do
    sha256 "7bec2924c89ed7553aff5a5c8c0d1fe611024f8533fbb0f257ce244a262aec24" => :mojave
    sha256 "f05e8482d844ded6507acbc60440add0e9cffb93060e4c57d0735e20493fc8a1" => :high_sierra
    sha256 "f76523028928595c731469cfaecbf2ab9201a90290d7c21e176b2cfc4560956d" => :sierra
    sha256 "9ba7f88de1dec1c4c6d4bdbb2f45541d43ae56c5039b2193c92186202a74322c" => :el_capitan
    sha256 "a3ccae36bb636ebe51ef1c3f70bf582d1ca55053639c58aaefb7e48672191dcf" => :yosemite
    sha256 "063b1d5a369b91869c21ae8aa5dbfa96cd1e9b3c4d5091fc573c965e1b253493" => :mavericks
  end

  depends_on "pkg-config" => :build
  depends_on "go" => :build
  depends_on "fftw"

  go_resource "github.com/lucy/go-fftw" do
    url "https://github.com/lucy/go-fftw.git",
        :revision => "37bfa0d3053b133f7067e9524611a7a963294124"
  end

  go_resource "github.com/lucy/pflag" do
    url "https://github.com/lucy/pflag.git",
        :revision => "20db95b725d76759ba16e25ae6ae2ec67bf45216"
  end

  go_resource "github.com/lucy/termbox-go" do
    url "https://github.com/lucy/termbox-go.git",
        :revision => "a09edf97f26bd0a461d4660b5322236ecf9d4397"
  end

  go_resource "github.com/mattn/go-runewidth" do
    url "https://github.com/mattn/go-runewidth.git",
        :revision => "36f63b8223e701c16f36010094fb6e84ffbaf8e0"
  end

  def install
    ENV["GOPATH"] = buildpath
    Language::Go.stage_deps resources, buildpath/"src"

    system "go", "build", "-o", "mpdviz"
    bin.install "mpdviz"
  end
end
<commit_msg>mpdviz: fix dependency order<commit_after>require "language/go"

class Mpdviz < Formula
  desc "Standalone console MPD visualizer"
  homepage "https://github.com/lucy/mpdviz"
  url "https://github.com/lucy/mpdviz/archive/0.4.6.tar.gz"
  sha256 "c34243ec3f3d91adbc36d608d5ba7082ff78870f2fd76a6650d5fb3218cc2ba3"

  bottle do
    sha256 "7bec2924c89ed7553aff5a5c8c0d1fe611024f8533fbb0f257ce244a262aec24" => :mojave
    sha256 "f05e8482d844ded6507acbc60440add0e9cffb93060e4c57d0735e20493fc8a1" => :high_sierra
    sha256 "f76523028928595c731469cfaecbf2ab9201a90290d7c21e176b2cfc4560956d" => :sierra
    sha256 "9ba7f88de1dec1c4c6d4bdbb2f45541d43ae56c5039b2193c92186202a74322c" => :el_capitan
    sha256 "a3ccae36bb636ebe51ef1c3f70bf582d1ca55053639c58aaefb7e48672191dcf" => :yosemite
    sha256 "063b1d5a369b91869c21ae8aa5dbfa96cd1e9b3c4d5091fc573c965e1b253493" => :mavericks
  end

  depends_on "go" => :build
  depends_on "pkg-config" => :build
  depends_on "fftw"

  go_resource "github.com/lucy/go-fftw" do
    url "https://github.com/lucy/go-fftw.git",
        :revision => "37bfa0d3053b133f7067e9524611a7a963294124"
  end

  go_resource "github.com/lucy/pflag" do
    url "https://github.com/lucy/pflag.git",
        :revision => "20db95b725d76759ba16e25ae6ae2ec67bf45216"
  end

  go_resource "github.com/lucy/termbox-go" do
    url "https://github.com/lucy/termbox-go.git",
        :revision => "a09edf97f26bd0a461d4660b5322236ecf9d4397"
  end

  go_resource "github.com/mattn/go-runewidth" do
    url "https://github.com/mattn/go-runewidth.git",
        :revision => "36f63b8223e701c16f36010094fb6e84ffbaf8e0"
  end

  def install
    ENV["GOPATH"] = buildpath
    Language::Go.stage_deps resources, buildpath/"src"

    system "go", "build", "-o", "mpdviz"
    bin.install "mpdviz"
  end
end

{'fraction_non_alphanumeric': 0.10583635855906172, 'fraction_numerical': 0.226752303825747, 'mean_word_length': 4.814935064935065, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 12, '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': '2923069', 'n_tokens_mistral': 2075, 'n_tokens_neox': 1662, 'n_words': 189}