<commit_before><commit_msg>plan9port 20140123 (new formula)<commit_after>require "formula"

class Plan9port < Formula
  homepage "http://swtch.com/plan9port/"
  url "https://plan9port.googlecode.com/files/plan9port-20140123.tgz"
  sha1 "0b207cdaac9df2dd1ae7f8e156c4ffcc625d594c"

  def install
    ENV["PLAN9_TARGET"] = libexec
    system "./INSTALL"

    libexec.install Dir["*"]
    bin.install_symlink Dir["#{libexec}/bin/9"]
    Dir["#{libexec}/mac/*.app"].each {|path| mv path, prefix }
  end

  test do
    (testpath/"test.c").write <<-EOS.undent
      #include <u.h>
      #include <libc.h>
      #include <stdio.h>

      int main(void) {
        return printf("Hello World\\n");
      }
    EOS
    system "#{bin}/9", "9c", "test.c"
    system "#{bin}/9", "9l", "-o", "test", "test.o"
    assert_equal "Hello World\n", `./test`
  end
end
{'fraction_non_alphanumeric': 0.17612293144208038, 'fraction_numerical': 0.05555555555555555, 'mean_word_length': 3.131707317073171, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 6, 'https://': 1, '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': '6483549', 'n_tokens_mistral': 355, 'n_tokens_neox': 324, 'n_words': 62}