<commit_before>require 'formula'

class Arm < Formula
  homepage 'http://www.atagar.com/arm/'
  url 'http://www.atagar.com/arm/resources/arm-1.4.3.0.tar.bz2'
  sha256 'e543fcd75cdce8cf7bab3c50769d2a06d1ac8e8cc6927be7173a65a1e87abce0'

  def install
    (share+"arm").mkpath
    (share+"arm").install Dir["*"]

    (bin+'arm').write <<-EOS
#!/bin/sh
cd #{share}/arm; arm $@
    EOS
  end

  def caveats; <<-EOS.undent
    You'll need to enable the Tor Control Protocol in your torrc.
    See here for details: http://www.torproject.org/tor-manual.html.en

    To configure Arm, copy the sample configuration from
    #{share}/arm/armrc.sample
    to ~/.armrc, adjusting as needed.
    EOS
  end
end<commit_msg>arm: mkpath not needed before install<commit_after>require 'formula'

class Arm < Formula
  homepage 'http://www.atagar.com/arm/'
  url 'http://www.atagar.com/arm/resources/arm-1.4.3.0.tar.bz2'
  sha256 'e543fcd75cdce8cf7bab3c50769d2a06d1ac8e8cc6927be7173a65a1e87abce0'

  def install
    (share+"arm").install Dir["*"]

    (bin+'arm').write <<-EOS
#!/bin/sh
cd #{share}/arm; arm $@
    EOS
  end

  def caveats; <<-EOS.undent
    You'll need to enable the Tor Control Protocol in your torrc.
    See here for details: http://www.torproject.org/tor-manual.html.en

    To configure Arm, copy the sample configuration from
    #{share}/arm/armrc.sample
    to ~/.armrc, adjusting as needed.
    EOS
  end
end
{'fraction_non_alphanumeric': 0.13620324629498942, 'fraction_numerical': 0.05786873676781934, 'mean_word_length': 3.3496932515337425, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 2, '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': '4973230', 'n_tokens_mistral': 589, 'n_tokens_neox': 534, 'n_words': 123}