<commit_before><commit_msg>style-check.rb for TeX<commit_after>require 'formula'

class StyleCheck < Formula
  url 'http://www.cs.umd.edu/~nspring/software/style-check-0.13.tar.gz'
  homepage 'http://www.cs.umd.edu/~nspring/software/style-check-readme.html'
  md5 '60eab1aa903217455dcd0f8997949c94'

  def install
    inreplace "Makefile" do |s|
      s.change_make_var! 'PREFIX', prefix
      s.change_make_var! 'SYSCONFDIR', (etc+'style-check.d')
    end
    inreplace "style-check.rb", '/etc/style-check.d/', (etc+'style-check.d/')

    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.15586690017513136, 'fraction_numerical': 0.04553415061295972, 'mean_word_length': 3.888888888888889, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4202589', 'n_tokens_mistral': 239, 'n_tokens_neox': 224, 'n_words': 35}