<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.2.0-a.tar.gz"
  sha256 "5b30a163027b248bf2d96c766c3bcf1f4fe50466e368a3844b3c4e0a2491d8c4"

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

  bottle do
    root_url "https://homebrew.bintray.com/bottles-science"
    sha256 "1062de33a9f763da8b0c5831a57fb242522fee537a738b7e041f4dad0096f81f" => :yosemite
    sha256 "50d914fb564f32f4b14a71f66f4613e022f51a62722265575819b71d3a05b2d8" => :mavericks
    sha256 "43c1b07fb07133830d554d775eb9e7feeae3c73b8ce34599ad7fa742a2f30f47" => :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",<commit_msg>megahit: fix version<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"
  version "0.2.0-a"
  sha256 "5b30a163027b248bf2d96c766c3bcf1f4fe50466e368a3844b3c4e0a2491d8c4"

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

  bottle do
    root_url "https://homebrew.bintray.com/bottles-science"
    sha256 "1062de33a9f763da8b0c5831a57fb242522fee537a738b7e041f4dad0096f81f" => :yosemite
    sha256 "50d914fb564f32f4b14a71f66f4613e022f51a62722265575819b71d3a05b2d8" => :mavericks
    sha256 "43c1b07fb07133830d554d775eb9e7feeae3c73b8ce34599ad7fa742a2f30f47" => :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",
{'fraction_non_alphanumeric': 0.10284573140289566, 'fraction_numerical': 0.1982026959560659, 'mean_word_length': 4.01, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 8, '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': '1291169', 'n_tokens_mistral': 1123, 'n_tokens_neox': 909, 'n_words': 123}