<commit_before>require 'formula'

class MPlayerPresented < Requirement
  fatal true
  default_formula 'mplayer'

  satisfy { which('mplayer') || which('mplayer2') }
end

class Mplayershell < Formula
  desc "Improved visual experience for MPlayer on OS X"
  homepage 'https://github.com/donmelton/MPlayerShell'
  url 'https://github.com/donmelton/MPlayerShell/archive/0.9.3.tar.gz'
  sha1 '22af911cfd379d34756c0a59b07fcdeaad77c493'

  head 'https://github.com/donmelton/MPlayerShell.git'

  bottle do
    cellar :any
    sha1 "5b280e20e9f690914906c41da02671b6c4667657" => :yosemite
    sha1 "e12cbcf444c89071bdc4a0d8cea731d222444817" => :mavericks
    sha1 "4993ca2b08d334843db0c31a35003424a4342a66" => :mountain_lion
  end

  depends_on MPlayerPresented
  depends_on :macos => :lion
  depends_on :xcode => :build

  def install
    xcodebuild "-project",
               "MPlayerShell.xcodeproj",
               "-target", "mps",
               "-configuration", "Release",
               "clean", "build",
               "SYMROOT=build",
               "DSTROOT=build"
    bin.install "build/Release/mps"
    man1.install "Source/mps.1"
  end

  test do
    system "#{bin}/mps"
  end
end
<commit_msg>mplayershell: cleanup requirement naming.<commit_after>require 'formula'

class MPlayerRequirement < Requirement
  fatal true
  default_formula 'mplayer'

  satisfy { which('mplayer') || which('mplayer2') }
end

class Mplayershell < Formula
  desc "Improved visual experience for MPlayer on OS X"
  homepage 'https://github.com/donmelton/MPlayerShell'
  url 'https://github.com/donmelton/MPlayerShell/archive/0.9.3.tar.gz'
  sha1 '22af911cfd379d34756c0a59b07fcdeaad77c493'

  head 'https://github.com/donmelton/MPlayerShell.git'

  bottle do
    cellar :any
    sha1 "5b280e20e9f690914906c41da02671b6c4667657" => :yosemite
    sha1 "e12cbcf444c89071bdc4a0d8cea731d222444817" => :mavericks
    sha1 "4993ca2b08d334843db0c31a35003424a4342a66" => :mountain_lion
  end

  depends_on MPlayerRequirement
  depends_on :macos => :lion
  depends_on :xcode => :build

  def install
    xcodebuild "-project",
               "MPlayerShell.xcodeproj",
               "-target", "mps",
               "-configuration", "Release",
               "clean", "build",
               "SYMROOT=build",
               "DSTROOT=build"
    bin.install "build/Release/mps"
    man1.install "Source/mps.1"
  end

  test do
    system "#{bin}/mps"
  end
end

{'fraction_non_alphanumeric': 0.10855263157894737, 'fraction_numerical': 0.09786184210526316, 'mean_word_length': 3.216637781629116, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '4204032', 'n_tokens_mistral': 1025, 'n_tokens_neox': 911, 'n_words': 161}