<commit_before>require 'formula'

class Libdvdread < Formula
  homepage 'http://dvdnav.mplayerhq.hu/'
  url 'http://dvdnav.mplayerhq.hu/releases/libdvdread-4.2.0.tar.bz2'
  head 'svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread'
  md5 'ab7a19d3ab1a437ae754ef477d6231a4'

  depends_on 'libdvdcss' => :optional

  depends_on :automake
  depends_on :libtool

  def install
    if Formula.factory("libdvdcss").installed?
      ENV.append "CFLAGS", "-DHAVE_DVDCSS_DVDCSS_H"
      ENV.append "LDFLAGS", "-ldvdcss"
    end

    system "./autogen.sh", "--disable-debug", "--disable-dependency-tracking",
                           "--prefix=#{prefix}"
    system "make install"
  end
end
<commit_msg>libdvdread: style nits<commit_after>require 'formula'

class Libdvdread < Formula
  homepage 'http://dvdnav.mplayerhq.hu/'
  url 'http://dvdnav.mplayerhq.hu/releases/libdvdread-4.2.0.tar.bz2'
  sha1 '431bc92195f27673bfdd2be67ce0f58338da8d3b'

  head 'svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread'

  depends_on 'libdvdcss' => :optional

  depends_on :automake
  depends_on :libtool

  def install
    if Formula.factory("libdvdcss").installed?
      ENV.append "CFLAGS", "-DHAVE_DVDCSS_DVDCSS_H"
      ENV.append "LDFLAGS", "-ldvdcss"
    end

    system "./autogen.sh", "--disable-dependency-tracking",
                           "--prefix=#{prefix}"
    system "make install"
  end
end

{'fraction_non_alphanumeric': 0.13695652173913042, 'fraction_numerical': 0.03840579710144928, 'mean_word_length': 3.2623456790123457, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2825601', 'n_tokens_mistral': 578, 'n_tokens_neox': 529, 'n_words': 83}