<commit_before>class Megahit < Formula
  homepage "https://github.com/voutcn/megahit"
  #doi "arXiv:1409.7208"
  #tag "bioinformatics"

  url "https://github.com/voutcn/megahit/archive/v0.1.3.tar.gz"
  sha1 "8a5d48f1a38ce352f3440b7795538679dafb0602"

  head "https://github.com/voutcn/megahit.git"

  bottle do
    root_url "https://downloads.sf.net/project/machomebrew/Bottles/science"
    cellar :any
    sha1 "98659f38c059b1196c92263440b25ee3e2b7f301" => :yosemite
    sha1 "045e00905aff83cabb3794e2f96940439a7c5caf" => :mavericks
    sha1 "d728fe0a0f9a1041822befe6875b7e3e4591bb7b" => :mountain_lion
  end

  # Fix error: 'omp.h' file not found
  needs :openmp

  def install
    system "make"
    bin.install "megahit"
    doc.install "ChangeLog.md", "README.md"
  end

  test do
    system "#{bin}/megahit --help 2>&1 |grep megahit"
  end
end
<commit_msg>megahit 0.2.0<commit_after>class Megahit < Formula
  homepage "https://github.com/voutcn/megahit"
  #doi "arXiv:1409.7208"
  #tag "bioinformatics"

  url "https://github.com/voutcn/megahit/archive/v0.2.0-a.tar.gz"
  sha256 "5b30a163027b248bf2d96c766c3bcf1f4fe50466e368a3844b3c4e0a2491d8c4"

  head "https://github.com/voutcn/megahit.git"

  bottle do
    root_url "https://downloads.sf.net/project/machomebrew/Bottles/science"
    cellar :any
    sha1 "98659f38c059b1196c92263440b25ee3e2b7f301" => :yosemite
    sha1 "045e00905aff83cabb3794e2f96940439a7c5caf" => :mavericks
    sha1 "d728fe0a0f9a1041822befe6875b7e3e4591bb7b" => :mountain_lion
  end

  fails_with :llvm do
    build 2336
    cause <<-EOS.undent
    llvm-g++ does not support -mpopcnt, -std=c++0x
    options
    EOS
  end

  # Fix error: 'omp.h' file not found
  needs :openmp

  def install
    system "make"
    bin.install ["megahit",
                 "megahit_assemble",
                 "megahit_iter_k124",
                 "megahit_iter_k61",
                 "megahit_iter_k92",
                 "sdbg_builder_cpu"]

    doc.install "ChangeLog.md", "README.md"
  end

  test do
    system "#{bin}/megahit --help 2>&1 |grep megahit"
  end
end

{'fraction_non_alphanumeric': 0.11453320500481232, 'fraction_numerical': 0.13426371511068336, 'mean_word_length': 3.2602459016393444, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, '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': '4277175', 'n_tokens_mistral': 1057, 'n_tokens_neox': 893, 'n_words': 140}