<commit_before>require "language/node"

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

  bottle do
    sha256 "99b3b0138eb805e328808b791620da709ab55a0c0e33f4a36cd7f64441890368" => :high_sierra
    sha256 "9848a1ea4f1ac846679d4cff0af914234686b926df35d370b0f062381f5daecc" => :sierra
    sha256 "b2aac664eb5076a5d58955d35ce1e294a8e2d42a3bcf4f72ef4ee0982249d78d" => :el_capitan
  end

  keg_only :versioned_formula

  resource "node" do
    url "https://nodejs.org/dist/v6.14.0/node-v6.14.0.tar.xz"
    sha256 "21ab08323dfd082e60fefa5e1af99b086c6154a6675ad265a42462621c35d599"
  end

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

    # do not build packages for other platforms
    inreplace buildpath/"tasks/config/platforms.js", /('(linux-x64|windows-x64)',?(?!;))/, "// \\1"

    # trick the build into thinking we've already downloaded the Node.js binary
    mkdir_p buildpath/".node_binaries/#{resource("node").version}/darwin-x64"

    # set npm env and fix cache edge case (https://github.com/Homebrew/brew/pull/37#issuecomment-208840366)
    ENV.prepend_path "PATH", prefix/"libexec/node/bin"
    system "npm", "install", "-ddd", "--build-from-source", "--#{Language::Node.npm_cache_config}"
    system "npm", "run", "build", "--", "--release", "--skip-os-packages", "--skip-archives"
<commit_msg>kibana@5.6: update 5.6.10 bottle.<commit_after>require "language/node"

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

  bottle do
    sha256 "987d307c3a4182210ffd292cf82ddc38b3158db3b6cd903150c5d5c44fb5bca8" => :high_sierra
    sha256 "851e882438e30448d6f387872b4d486c22ca0aa11160997d2f2927ceb8d47973" => :sierra
    sha256 "20db54484305a164ecb9411bcdc4b04a1c3ed4528f8989f59b484273a2d13935" => :el_capitan
  end

  keg_only :versioned_formula

  resource "node" do
    url "https://nodejs.org/dist/v6.14.0/node-v6.14.0.tar.xz"
    sha256 "21ab08323dfd082e60fefa5e1af99b086c6154a6675ad265a42462621c35d599"
  end

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

    # do not build packages for other platforms
    inreplace buildpath/"tasks/config/platforms.js", /('(linux-x64|windows-x64)',?(?!;))/, "// \\1"

    # trick the build into thinking we've already downloaded the Node.js binary
    mkdir_p buildpath/".node_binaries/#{resource("node").version}/darwin-x64"

    # set npm env and fix cache edge case (https://github.com/Homebrew/brew/pull/37#issuecomment-208840366)
    ENV.prepend_path "PATH", prefix/"libexec/node/bin"
    system "npm", "install", "-ddd", "--build-from-source", "--#{Language::Node.npm_cache_config}"
    system "npm", "run", "build", "--", "--release", "--skip-os-packages", "--skip-archives"

{'fraction_non_alphanumeric': 0.1454979129397734, 'fraction_numerical': 0.1449016100178891, 'mean_word_length': 4.225856697819315, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4472304', 'n_tokens_mistral': 1574, 'n_tokens_neox': 1297, 'n_words': 211}