<commit_before>require 'formula'

class Libmikmod < Formula
  homepage 'http://mikmod.raphnet.net/'
  url 'https://github.com/mistydemeo/libmikmod.git', :tag => '446324a45a6d165b1941a4758f6cd221301b479e'
  version '3.2.0b2'

  def options
    [[ '--with-debug', 'Enable debugging symbols and build without optimization']]
  end

  def patches
    # When aclocal is run on configure.in, it is told to use a macro AM_PATH_ESD that
    # only exists if esound is installed.  Here CoreAudio is used not esound.
    DATA unless Formula.factory('esound').installed?
  end

  if MacOS.xcode_version >= "4.3"
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  def install
    ENV.no_optimization if ARGV.include? '--with-debug'  # leave code unoptimzed 4 debug
    ENV['LIBTOOLIZE'] = 'glibtoolize'           # system libtoolize for autoreconf<commit_msg>libmikmod: style nits<commit_after>require 'formula'

class Libmikmod < Formula
  homepage 'http://mikmod.raphnet.net/'
  url 'https://github.com/mistydemeo/libmikmod.git', :tag => '446324a45a6d165b1941a4758f6cd221301b479e'
  version '3.2.0b2'

  def options
    [[ '--with-debug', 'Enable debugging symbols and build without optimization']]
  end

  if MacOS.xcode_version >= "4.3"
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  # When aclocal is run on configure.in, it is told to use a macro AM_PATH_ESD that
  # only exists if esound is installed.  Here CoreAudio is used not esound.
  def patches
    DATA unless Formula.factory('esound').installed?
  end

  def install
    ENV.no_optimization if ARGV.include? '--with-debug'  # leave code unoptimzed 4 debug
    ENV['LIBTOOLIZE'] = 'glibtoolize'           # system libtoolize for autoreconf
{'fraction_non_alphanumeric': 0.10421412300683372, 'fraction_numerical': 0.04214123006833713, 'mean_word_length': 3.611548556430446, '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': '747059', 'n_tokens_mistral': 658, 'n_tokens_neox': 597, 'n_words': 169}