<commit_before>require 'formula'

class YleDl < Formula
  homepage 'http://aajanki.github.com/yle-dl/'
  url 'https://github.com/downloads/aajanki/yle-dl/yle-dl-2.0.2.tar.gz'
  sha1 'c48866daf24e9f427184c8bc51a018d250a003cf'

  head 'https://github.com/aajanki/yle-dl.git'

  depends_on 'rtmpdump'
  depends_on LanguageModuleDependency.new :python, 'pycrypto', 'Crypto'

  def install
    system "make install SYS=darwin prefix=#{prefix} mandir=#{man}"
  end

  test do
    news = "yle-areena-uutiset.flv"
    system "yle-dl --latestepisode --resume -o #{news} http://areena.yle.fi/?q=uutiset"
    File.exists?(news)
  end
end<commit_msg>yle-dl: Style and test does not dl stuff<commit_after>require 'formula'

class YleDl < Formula
  homepage 'http://aajanki.github.com/yle-dl/'
  url 'https://github.com/downloads/aajanki/yle-dl/yle-dl-2.0.2.tar.gz'
  sha1 'c48866daf24e9f427184c8bc51a018d250a003cf'

  head 'https://github.com/aajanki/yle-dl.git'

  depends_on 'rtmpdump'
  depends_on LanguageModuleDependency.new :python, 'pycrypto', 'Crypto'

  def install
    system "make", "install", "SYS=darwin", "prefix=#{prefix}", "mandir=#{man}"
  end

  test do
    raise if (`#{bin}/yle-dl --help 2>&1` =~ /rtmpdump: This program dumps the media content streamed over RTMP/).nil?
  end
end
{'fraction_non_alphanumeric': 0.15151515151515152, 'fraction_numerical': 0.048174048174048176, 'mean_word_length': 4.03125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3275124', 'n_tokens_mistral': 551, 'n_tokens_neox': 511, 'n_words': 97}