<commit_before>require "formula"

class Flow < Formula
  homepage "http://flowtype.org/"
  url "https://github.com/facebook/flow/archive/v0.9.2.tar.gz"
  sha1 "33147962ebbcc60535af17e18a01cc5c38d81a11"
  head "https://github.com/facebook/flow.git"

  bottle do
    cellar :any
    sha256 "ada4689cf2b5276e9da9f57bbffb4c87651e5752e37dfb98d24032d620e53d46" => :yosemite
    sha256 "4db477d04f37b4721fb480c63d179d410180c21007065e613abcf9c015b4a2a1" => :mavericks
    sha256 "2ceabc8ce8d38b675abb18bf8147a54d893f9faa6c29bdc4dae8f0cc657c81d5" => :mountain_lion
  end

  depends_on "objective-caml" => :build

  def install
    system "make"
    bin.install "bin/flow"
    (share/"flow").install "bin/examples"
  end

  test do
    output = `#{bin}/flow single #{share}/flow/examples/01_HelloWorld`<commit_msg>flow: update 0.9.2 bottle.<commit_after>require "formula"

class Flow < Formula
  homepage "http://flowtype.org/"
  url "https://github.com/facebook/flow/archive/v0.9.2.tar.gz"
  sha1 "33147962ebbcc60535af17e18a01cc5c38d81a11"
  head "https://github.com/facebook/flow.git"

  bottle do
    cellar :any
    sha256 "792de6ff4fd77d93fafd4223218e5d34ef3f6384b703db44bfba14dfdf938a2d" => :yosemite
    sha256 "14d1c1262fab9928b942cd464b3997175d5d6fb1c74c5999cadca9fe89f05ede" => :mavericks
    sha256 "44267cdec47e7b17486687276bb6c0fbb77925c3d5801d5729b21338c823cc46" => :mountain_lion
  end

  depends_on "objective-caml" => :build

  def install
    system "make"
    bin.install "bin/flow"
    (share/"flow").install "bin/examples"
  end

  test do
    output = `#{bin}/flow single #{share}/flow/examples/01_HelloWorld`
{'fraction_non_alphanumeric': 0.11104256631708821, 'fraction_numerical': 0.19617520049352252, 'mean_word_length': 4.731448763250883, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '2190078', 'n_tokens_mistral': 858, 'n_tokens_neox': 697, 'n_words': 92}