<commit_before><commit_msg>New formula: ocp (open-cubic-player)<commit_after>require "formula"

class Ocp < Formula
  url "http://downloads.sourceforge.net/project/opencubicplayer/ocp-0.1.21/ocp-0.1.21.tar.bz2"
  md5 '558a6eacfadfd9c60c97a6e9c7f83f47'
  homepage "http://sourceforge.net/p/opencubicplayer/home/"

  depends_on "mad" unless ARGV.include? "--without-mad"
  depends_on "flac" unless ARGV.include? "--without-flac"
  depends_on "adplug" if ARGV.include? "--with-adplug"

  def options
    [
      ["--without-mad", "disable mad mpeg audio support"],
      ["--without-flac", "disable FLAC support"],
      ["--with-adplug", "enable adplug support"],
    ]
  end

  def install
    ENV.deparallelize

    args = ["--prefix=#{prefix}",
            "--without-x11",
            "--without-sdl",
            "--without-desktop_file_install"]

    if ARGV.include? "--without-mad"
      args << "--without-mad"
    elsif ARGV.include? "--without-flac"
      args << "--without-flac"
    elsif ARGV.include? "--with-adplug"
      args << "--with-adplug"
    end

    system "./configure", *args
    system "make"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.1637781629116118, 'fraction_numerical': 0.024263431542461005, 'mean_word_length': 2.7138263665594855, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7169395', 'n_tokens_mistral': 433, 'n_tokens_neox': 407, 'n_words': 80}