<commit_before>require 'formula'

class Exodriver <Formula
  url  'https://github.com/labjack/exodriver/tarball/98cf1f83ff65ab7a317f4310d46081a476ae939c'
  homepage 'http://labjack.com/support/linux-and-mac-os-x-drivers'
  md5 'ec227347ccaf0772d175d3a2cf557105'
  version '2.0-0-98cf1f8'

  head 'https://github.com/labjack/exodriver.git', :using => :git

  depends_on 'libusb'

  def install
    cd 'liblabjackusb'
    mv 'Makefile.MacOSX', 'Makefile'

    inreplace 'Makefile' do |s|
      s.change_make_var! 'DESTINATION', lib
      s.change_make_var! 'HEADER_DESTINATION', include
    end

    system "make"
    system "make install"
  end
end<commit_msg>added --universal option to exodriver formula<commit_after>require 'formula'

class Exodriver <Formula
  url  'https://github.com/labjack/exodriver/tarball/98cf1f83ff65ab7a317f4310d46081a476ae939c'
  homepage 'http://labjack.com/support/linux-and-mac-os-x-drivers'
  md5 'ec227347ccaf0772d175d3a2cf557105'
  version '2.0-0-98cf1f8'

  head 'https://github.com/labjack/exodriver.git', :using => :git

  depends_on 'libusb'

  def options
    [["--universal", "Build a universal binary."]]
  end

  def install
    cd 'liblabjackusb'
    mv 'Makefile.MacOSX', 'Makefile'

    inreplace 'Makefile' do |s|
      s.change_make_var! 'DESTINATION', lib
      s.change_make_var! 'HEADER_DESTINATION', include
      ENV.universal_binary if ARGV.include? "--universal"
    end

    system "make"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.1195945945945946, 'fraction_numerical': 0.07432432432432433, 'mean_word_length': 3.8398692810457518, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3351799', 'n_tokens_mistral': 643, 'n_tokens_neox': 569, 'n_words': 104}