<commit_before>require 'formula'

class Mkvtomp4 < Formula
  homepage 'https://github.com/gavinbeatty/mkvtomp4/'
  url 'https://github.com/gavinbeatty/mkvtomp4/archive/mkvtomp4-v1.3.tar.gz'
  sha1 'eab345f40a2d6f30847300f8e2880354e08356d2'

  depends_on 'gpac'
  depends_on 'ffmpeg' => :recommended
  depends_on 'mkvtoolnix'
  depends_on :python

  def install
    system "make"
    system "python", "setup.py", "install", "--prefix=#{prefix}"
    mv bin/'mkvtomp4.py', bin/'mkvtomp4'<commit_msg>mkvtomp4: fix PYTHONPATH handling.<commit_after>require 'formula'

class Mkvtomp4 < Formula
  homepage 'https://github.com/gavinbeatty/mkvtomp4/'
  url 'https://github.com/gavinbeatty/mkvtomp4/archive/mkvtomp4-v1.3.tar.gz'
  sha1 'eab345f40a2d6f30847300f8e2880354e08356d2'

  depends_on 'gpac'
  depends_on 'ffmpeg' => :recommended
  depends_on 'mkvtoolnix'
  depends_on :python

  def install
    ENV.prepend_create_path 'PYTHONPATH', lib+'python2.7/site-packages'

    system "make"
    system "python", "setup.py", "install", "--prefix=#{prefix}"

    mv bin/'mkvtomp4.py', bin/'mkvtomp4'
    bin.env_script_all_files(libexec+'bin', :PYTHONPATH => ENV['PYTHONPATH'])
{'fraction_non_alphanumeric': 0.1407725321888412, 'fraction_numerical': 0.06781115879828326, 'mean_word_length': 4.800995024875622, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 4, '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': '7086817', 'n_tokens_mistral': 517, 'n_tokens_neox': 479, 'n_words': 72}