<commit_before>require "formula"

class Swrcfit < Formula
  homepage "http://swrcfit.sourceforge.net/"
  url "https://github.com/sekika/swrcfit/archive/v1.3.tar.gz"
  sha1 "48c6fdcd76adfe49177ebabdf0bd95e88c31286b"

  head "https://github.com/sekika/swrcfit.git"

  depends_on "octave"
  depends_on "wget"

  def install
    (share / "swrcfit/example").install "swrc.txt"
    system "mkdir", bin
    system "./Install.sh", bin
  end

  test do
    system "#{bin}/swrcfit", share / "swrcfit/example/swrc.txt"
  end
end<commit_msg>swrcfit 2.0<commit_after>require "formula"

class Swrcfit < Formula
  desc "Fitting of soil water retention curve"
  homepage "http://swrcfit.sourceforge.net/"
  url "https://github.com/sekika/swrcfit/archive/v2.0.tar.gz"
  sha256 "7497393aa35a54c126dc1149cbf4f60e9ff798c30a2c77b887dc3524317a6127"

  head "https://github.com/sekika/swrcfit.git"

  depends_on "octave"
  depends_on "wget"

  def install
    (share / "swrcfit/example").install "swrc.txt"
    system "./Install.sh", bin
  end

  test do
    system "#{bin}/swrcfit", share / "swrcfit/example/swrc.txt"
  end
end
{'fraction_non_alphanumeric': 0.1339366515837104, 'fraction_numerical': 0.0669683257918552, 'mean_word_length': 3.787878787878788, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7001357', 'n_tokens_mistral': 485, 'n_tokens_neox': 438, 'n_words': 78}