<commit_before>class AbyssExplorer < Formula
  desc "Visualize genome sequence assemblies"
  homepage "http://www.bcgsc.ca/platform/bioinfo/software/abyss-explorer"
  # doi "10.1109/TVCG.2009.116"
  # tag "bioinformatics"

  url "http://www.bcgsc.ca/downloads/abyss-explorer/abyss-explorer-1.3.4/abyss-explorer-1.3.4.zip"
  sha256 "fa4197c985ae9e66a01b4d3db4e6211f4e84444bc31deaf4c1aa352431ae6491"

  bottle do
    cellar :any
    sha256 "137b53b687eda6799a2cd2d36c6ac71b10c430e95340a89805f0cf3b4aada01b" => :yosemite
    sha256 "f8939d4e7d31f8f8e8c8167761760276bd4bfbc9aa3ae9885e76a977c1d19f37" => :mavericks
    sha256 "b22ed1f840798813fb9e405cbc6047ca50d5aa3fe967da228d33c80d6bef4606" => :mountain_lion
  end

  def install
    libexec.install "AbyssExplorer.jar", "lib"
    (bin / "abyss-explorer").write <<-EOS.undent
      #!/bin/sh
      set -eu
      exec java -jar #{libexec}/AbyssExplorer.jar "$@"
    EOS
  end
end<commit_msg>abyss-explorer: add a test<commit_after>class AbyssExplorer < Formula
  desc "Visualize genome sequence assemblies"
  homepage "http://www.bcgsc.ca/platform/bioinfo/software/abyss-explorer"
  # doi "10.1109/TVCG.2009.116"
  # tag "bioinformatics"

  url "http://www.bcgsc.ca/downloads/abyss-explorer/abyss-explorer-1.3.4/abyss-explorer-1.3.4.zip"
  sha256 "fa4197c985ae9e66a01b4d3db4e6211f4e84444bc31deaf4c1aa352431ae6491"
  revision 1

  bottle do
    cellar :any
    sha256 "137b53b687eda6799a2cd2d36c6ac71b10c430e95340a89805f0cf3b4aada01b" => :yosemite
    sha256 "f8939d4e7d31f8f8e8c8167761760276bd4bfbc9aa3ae9885e76a977c1d19f37" => :mavericks
    sha256 "b22ed1f840798813fb9e405cbc6047ca50d5aa3fe967da228d33c80d6bef4606" => :mountain_lion
  end

  def install
    libexec.install "AbyssExplorer.jar", "lib"
    (bin / "abyss-explorer").write <<-EOS.undent
      #!/bin/sh
      set -eu
      exec java -jar #{libexec}/AbyssExplorer.jar "$@"
    EOS
  end

  test do
    system "abyss-explorer", "--version"
  end
end
{'fraction_non_alphanumeric': 0.10725229826353422, 'fraction_numerical': 0.19356486210418794, 'mean_word_length': 4.337874659400545, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4579105', 'n_tokens_mistral': 1079, 'n_tokens_neox': 875, 'n_words': 110}