<commit_before>require "formula"

class MediaInfo < Formula
  desc "Unified display of technical and tag data for audio/video"
  homepage "https://mediaarea.net/"
  url "https://mediaarea.net/download/binary/mediainfo/0.7.74/MediaInfo_CLI_0.7.74_GNU_FromSource.tar.bz2"
  version "0.7.74"
  sha1 "89cf4745e3d9725bf109976a933f36af2a3aa36a"

  bottle do
    cellar :any
    sha256 "a3fb613a28c28aab0a792bd3a13da9ad8715ef2d17421ebc9154f73ec82ae57d" => :yosemite
    sha256 "7f4f0ef118462e60579754016fa3a64ee81bd8d8f81fd776ff7225fa0a62c43c" => :mavericks
    sha256 "e69fce673bf6245f7eea82e8a47d39d08a708cdab9f1f1898e235c5e08c0b755" => :mountain_lion
  end

  depends_on "pkg-config" => :build
  # fails to build against Leopard's older libcurl
  depends_on "curl" if MacOS.version < :snow_leopard

  def install
    cd "ZenLib/Project/GNU/Library" do
      system "./configure", "--disable-debug", "--disable-dependency-tracking",
                            "--prefix=#{prefix}"
      system "make"
    end

    cd "MediaInfoLib/Project/GNU/Library" do
      args = ["--disable-debug",
              "--disable-dependency-tracking",
              "--with-libcurl",
              "--prefix=#{prefix}"]
      system "./configure", *args
      system "make install"
    end

    cd "MediaInfo/Project/GNU/CLI" do<commit_msg>mediainfo 0.7.75<commit_after>require "formula"

class MediaInfo < Formula
  desc "Unified display of technical and tag data for audio/video"
  homepage "https://mediaarea.net/"
  url "https://mediaarea.net/download/binary/mediainfo/0.7.75/MediaInfo_CLI_0.7.75_GNU_FromSource.tar.bz2"
  version "0.7.75"
  sha256 "98f3a7ba9daf77e3df2fd308811e20ef6f87c6471fce8d6fe611b56668623f0d"

  bottle do
    cellar :any
    sha256 "a3fb613a28c28aab0a792bd3a13da9ad8715ef2d17421ebc9154f73ec82ae57d" => :yosemite
    sha256 "7f4f0ef118462e60579754016fa3a64ee81bd8d8f81fd776ff7225fa0a62c43c" => :mavericks
    sha256 "e69fce673bf6245f7eea82e8a47d39d08a708cdab9f1f1898e235c5e08c0b755" => :mountain_lion
  end

  depends_on "pkg-config" => :build
  # fails to build against Leopard's older libcurl
  depends_on "curl" if MacOS.version < :snow_leopard

  def install
    cd "ZenLib/Project/GNU/Library" do
      system "./configure", "--disable-debug", "--disable-dependency-tracking",
                            "--prefix=#{prefix}"
      system "make"
    end

    cd "MediaInfoLib/Project/GNU/Library" do
      args = ["--disable-debug",
              "--disable-dependency-tracking",
              "--with-libcurl",
              "--prefix=#{prefix}"]
      system "./configure", *args
      system "make install"
    end

    cd "MediaInfo/Project/GNU/CLI" do
{'fraction_non_alphanumeric': 0.1124859392575928, 'fraction_numerical': 0.12973378327709037, 'mean_word_length': 3.2619808306709266, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6512918', 'n_tokens_mistral': 1195, 'n_tokens_neox': 1004, 'n_words': 166}