<commit_before>require 'formula'

class Gource < Formula
  homepage 'http://code.google.com/p/gource/'
  url 'http://gource.googlecode.com/files/gource-0.39.tar.gz'
  sha1 '1dd6476e56a197354ce93612c7be9aff8c1f8cd2'

  head 'https://github.com/acaudwell/Gource.git'

  if build.head?
    depends_on :automake
    depends_on :libtool
  end

  depends_on :freetype

  depends_on 'pkg-config' => :build
  depends_on 'glm' => :build

  depends_on 'boost'
  depends_on 'glew'
  depends_on 'jpeg'
  depends_on 'pcre'
  depends_on 'sdl'
  depends_on 'sdl_image'

  # configure fails to find boost libs on OS X;
  # merged upstream, should be in the next release
  # https://github.com/acaudwell/Gource/pull/17
  def patches; DATA; end unless build.head?

  def install
    # For non-/usr/local installs
    ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"<commit_msg>gource: use X11 if it's installed.<commit_after>require 'formula'

class Gource < Formula
  homepage 'http://code.google.com/p/gource/'
  url 'http://gource.googlecode.com/files/gource-0.39.tar.gz'
  sha1 '1dd6476e56a197354ce93612c7be9aff8c1f8cd2'

  head 'https://github.com/acaudwell/Gource.git'

  if build.head?
    depends_on :automake
    depends_on :libtool
  end

  depends_on :x11 if MacOS::X11.installed?
  depends_on :freetype

  depends_on 'pkg-config' => :build
  depends_on 'glm' => :build

  depends_on 'boost'
  depends_on 'glew'
  depends_on 'jpeg'
  depends_on 'pcre'
  depends_on 'sdl'
  depends_on 'sdl_image'

  # configure fails to find boost libs on OS X;
  # merged upstream, should be in the next release
  # https://github.com/acaudwell/Gource/pull/17
  def patches; DATA; end unless build.head?

  def install
    # For non-/usr/local installs
    ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"
{'fraction_non_alphanumeric': 0.11607142857142858, 'fraction_numerical': 0.036830357142857144, 'mean_word_length': 3.768617021276596, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6840296', 'n_tokens_mistral': 724, 'n_tokens_neox': 691, 'n_words': 152}