<commit_before>require 'formula'

class Zbar < Formula
  homepage 'http://zbar.sourceforge.net'
  url 'https://downloads.sourceforge.net/project/zbar/zbar/0.10/zbar-0.10.tar.bz2'
  sha1 '273b47c26788faba4325baecc34063e27a012963'
  revision 1

  depends_on :x11 => :optional
  depends_on 'pkg-config' => :build
  depends_on 'jpeg'
  depends_on 'imagemagick'
  depends_on 'ufraw'
  depends_on 'xz'

  # Fix JPEG handling using patch from
  # http://sourceforge.net/p/zbar/discussion/664596/thread/58b8d79b#8f67
  # already applied upstream but not present in the 0.10 release
  patch :DATA

  def install
    args = %W[<commit_msg>zbar: fix dependencies<commit_after>require 'formula'

class Zbar < Formula
  homepage 'http://zbar.sourceforge.net'
  url 'https://downloads.sourceforge.net/project/zbar/zbar/0.10/zbar-0.10.tar.bz2'
  sha1 '273b47c26788faba4325baecc34063e27a012963'
  revision 1

  depends_on :x11 => :optional
  depends_on 'pkg-config' => :build
  depends_on 'jpeg'
  depends_on 'imagemagick'
  depends_on 'ufraw'
  depends_on 'xz'
  depends_on 'freetype'
  depends_on 'libtool' => :run

  # Fix JPEG handling using patch from
  # http://sourceforge.net/p/zbar/discussion/664596/thread/58b8d79b#8f67
  # already applied upstream but not present in the 0.10 release
  patch :DATA

  def install
    args = %W[
{'fraction_non_alphanumeric': 0.11043872919818457, 'fraction_numerical': 0.0832072617246596, 'mean_word_length': 4.108108108108108, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '2846623', 'n_tokens_mistral': 578, 'n_tokens_neox': 516, 'n_words': 106}