<commit_before>require 'formula'

class Novoalign < Formula
  homepage 'http://www.novocraft.com/'
  version '3.00.05'
  url 'http://www.novocraft.com/homebrew/novocraftV%s.%s.tar.gz' %
    [version, if MACOS then 'MacOSX' else 'gcc' end]
  sha1(if MACOS then 'fde9f3e0d5aeb0fd6b7ac81e61c4a0163c19b2d7'
    else 'e3856070e91a86e693f14d36c16b478f4cc4b80d' end)

  def install
    bin.install %w[isnovoindex novo2maq novo2paf novoalign novobarcode
      novoindex novomethyl novope2bed.pl novorun.pl novosort novoutil]
    # Conflicts with samtools
    #bin.install 'novo2sam.pl'
    doc.install Dir['*.pdf', '*.txt']
  end

  test do
    system 'novoalign --version 2>&1 |grep -q Novoalign'
  end
end
<commit_msg>novoalign: Use `OS.mac?` rather than `MACOS`<commit_after>require 'formula'

class Novoalign < Formula
  homepage 'http://www.novocraft.com/'
  version '3.00.05'
  url 'http://www.novocraft.com/homebrew/novocraftV%s.%s.tar.gz' %
    [version, if OS.mac? then 'MacOSX' else 'gcc' end]
  sha1(if OS.mac? then 'fde9f3e0d5aeb0fd6b7ac81e61c4a0163c19b2d7'
    else 'e3856070e91a86e693f14d36c16b478f4cc4b80d' end)

  def install
    bin.install %w[isnovoindex novo2maq novo2paf novoalign novobarcode
      novoindex novomethyl novope2bed.pl novorun.pl novosort novoutil]
    # Conflicts with samtools
    #bin.install 'novo2sam.pl'
    doc.install Dir['*.pdf', '*.txt']
  end

  test do
    system 'novoalign --version 2>&1 |grep -q Novoalign'
  end
end

{'fraction_non_alphanumeric': 0.11446196024674435, 'fraction_numerical': 0.08087731322823852, 'mean_word_length': 3.9491525423728815, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5776611', 'n_tokens_mistral': 677, 'n_tokens_neox': 610, 'n_words': 125}