<commit_before>require "language/node"

class Kibana < Formula
  desc "Analytics and search dashboard for Elasticsearch"
  homepage "https://www.elastic.co/products/kibana"
  url "https://github.com/elastic/kibana.git",
      :tag => "v5.3.0",
      :revision => "ce7908cdac87af1e3b02ac4038fc3985602cf95a"
  head "https://github.com/elastic/kibana.git"

  bottle do
    sha256 "d8b6ffb613c4ed5d693ea5f573e053a79db5edceef482f55da162281d07fe043" => :sierra
    sha256 "951fe3873fdfd6680a782a4e3d64c12a4a6f602e020a618230d3480d67db09a7" => :el_capitan
    sha256 "a4ebfa26082bc70303afa9e3a6e03ec2c1b87622d8ba95a684fbedfaa85d056e" => :yosemite
  end

  resource "node" do
    url "https://nodejs.org/dist/v6.9.5/node-v6.9.5.tar.xz"
    sha256 "d7fed1a354b29503f3e176d7fdb90b1a9de248e0ce9b3eb56cc26bb1f3d5b6b3"
  end

  def install
    resource("node").stage do
      system "./configure", "--prefix=#{libexec}/node"
      system "make", "test"
      system "make", "install"
    end

    # do not build packages for other platforms
    platforms = Set.new(["darwin-x64", "linux-x64", "linux-x86", "windows-x86"])
    if MacOS.prefer_64_bit?
      platform = "darwin-x64"
    else
      raise "Installing Kibana via Homebrew is only supported on macOS x86_64"
    end
    platforms.delete(platform)<commit_msg>kibana 5.3.1<commit_after>require "language/node"

class Kibana < Formula
  desc "Analytics and search dashboard for Elasticsearch"
  homepage "https://www.elastic.co/products/kibana"
  url "https://github.com/elastic/kibana.git",
      :tag => "v5.3.1",
      :revision => "b7417c4d48eb56df8d5448a2eea14dd56356c28a"
  head "https://github.com/elastic/kibana.git"

  bottle do
    sha256 "d8b6ffb613c4ed5d693ea5f573e053a79db5edceef482f55da162281d07fe043" => :sierra
    sha256 "951fe3873fdfd6680a782a4e3d64c12a4a6f602e020a618230d3480d67db09a7" => :el_capitan
    sha256 "a4ebfa26082bc70303afa9e3a6e03ec2c1b87622d8ba95a684fbedfaa85d056e" => :yosemite
  end

  resource "node" do
    url "https://nodejs.org/dist/v6.10.2/node-v6.10.2.tar.xz"
    sha256 "80aa11333da99813973a99646e2113c6be5b63f665c0731ed14ecb94cbe846b6"
  end

  def install
    resource("node").stage do
      system "./configure", "--prefix=#{libexec}/node"
      system "make", "test"
      system "make", "install"
    end

    # do not build packages for other platforms
    platforms = Set.new(["darwin-x64", "linux-x64", "linux-x86", "windows-x86"])
    if MacOS.prefer_64_bit?
      platform = "darwin-x64"
    else
      raise "Installing Kibana via Homebrew is only supported on macOS x86_64"
    end
    platforms.delete(platform)
{'fraction_non_alphanumeric': 0.11345343043311613, 'fraction_numerical': 0.16443081640475277, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '6565513', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1076, 'n_words': 172}