<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.6.4",
      :revision => "efd2403e605c9f695a87929083421ba09f3ac54e"
  head "https://github.com/elastic/kibana.git"

  bottle do
    sha256 "8bd71d71c346020941e81226c3cfb98f2d42ad60abc8e4fd2929cdf72454690e" => :high_sierra
    sha256 "24f7ef61fd3d28731e1f046b3f1e8ce65264449878d33c53129d13516d64220f" => :sierra
    sha256 "137533a3bde1309c371bc77539c440b2ec00b8ed58c3532c61935d2991d6b14b" => :el_capitan
  end

  resource "node" do
    url "https://nodejs.org/dist/v6.11.1/node-v6.11.1.tar.xz"
    sha256 "6f6655b85919aa54cb045a6d69a226849802fcc26491d0db4ce59873e41cc2b8"
  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
    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)<commit_msg>kibana: update 5.6.4 bottle.<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.6.4",
      :revision => "efd2403e605c9f695a87929083421ba09f3ac54e"
  head "https://github.com/elastic/kibana.git"

  bottle do
    sha256 "03120ced08aec4d50bc17219f8b8b41b0818b73cad3bde7fca9eab65701cef45" => :high_sierra
    sha256 "d9724cf4c3ba46ac82f53e3eba83c0676a1e0385a10d9c914eff0adbccc9e291" => :sierra
    sha256 "8dd4cd3cce5c705f2c0c0b4626185a24b0ca12ee118d3cf86d8b9d9b16a126e7" => :el_capitan
  end

  resource "node" do
    url "https://nodejs.org/dist/v6.11.1/node-v6.11.1.tar.xz"
    sha256 "6f6655b85919aa54cb045a6d69a226849802fcc26491d0db4ce59873e41cc2b8"
  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
    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)
{'fraction_non_alphanumeric': 0.12689460697920338, 'fraction_numerical': 0.16320056397603103, 'mean_word_length': 4.226519337016574, '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': '4578931', 'n_tokens_mistral': 1371, 'n_tokens_neox': 1126, 'n_words': 180}