<commit_before>class Arangodb < Formula
  desc "The Multi-Model NoSQL Database"
  homepage "https://www.arangodb.com/"
  url "https://download.arangodb.com/Source/ArangoDB-3.4.7.tar.gz"
  sha256 "4775030dd0640a7f84256ac0403e63d6236cb59e5d3d42bfd36e4d9ba545524b"
  head "https://github.com/arangodb/arangodb.git", :branch => "devel"

  bottle do
    sha256 "9b1bbe180a116bccfcce058d2f51669fa45e0644c7e97217886fadba73e991a4" => :mojave
    sha256 "8f61b3987be98b5d3cc317e6f9cb671881a7ea28485a851044260e6e12c99589" => :high_sierra
    sha256 "7c987ee3c27a17d28abf93876efb9939f0e0acfc737dfdccbe2d502dc56d06b6" => :sierra
  end

  depends_on "cmake" => :build
  depends_on "go" => :build
  depends_on :macos => :yosemite
  depends_on "openssl"

  # see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87665
  fails_with :gcc => "7"

  # the ArangoStarter is in a separate github repository;
  # it is used to easily start single server and clusters
  # with a unified CLI
  resource "starter" do
    url "https://github.com/arangodb-helper/arangodb.git",
      :revision => "1e8c10c8669495a6996cc8063b9956f3e99127bc"
  end

  def install
    ENV.cxx11

    resource("starter").stage do
      ENV.append "GOPATH", Dir.pwd + "/.gobuild"
      system "make", "deps"
      # use commit-id as projectBuild
      commit = `git rev-parse HEAD`.chomp
      system "go", "build", "-ldflags", "-X main.projectVersion=0.14.5 -X main.projectBuild=#{commit}",
                            "-o", "arangodb",
                            "github.com/arangodb-helper/arangodb"
      bin.install "arangodb"
    end<commit_msg>arangodb: update 3.4.7 bottle.<commit_after>class Arangodb < Formula
  desc "The Multi-Model NoSQL Database"
  homepage "https://www.arangodb.com/"
  url "https://download.arangodb.com/Source/ArangoDB-3.4.7.tar.gz"
  sha256 "4775030dd0640a7f84256ac0403e63d6236cb59e5d3d42bfd36e4d9ba545524b"
  head "https://github.com/arangodb/arangodb.git", :branch => "devel"

  bottle do
    sha256 "23ad200e20d181e21993d2f3721be8ea6c7c177289eeba407e7a784740a6ed3b" => :mojave
    sha256 "5b919fd78d0115a35510b87fd4b652a2af71ba8704f42a29ba151201d6f5e61d" => :high_sierra
    sha256 "545e7f811927874b6767132c933c05374147d40e78d7d7285b85706f12791ef3" => :sierra
  end

  depends_on "cmake" => :build
  depends_on "go" => :build
  depends_on :macos => :yosemite
  depends_on "openssl"

  # see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87665
  fails_with :gcc => "7"

  # the ArangoStarter is in a separate github repository;
  # it is used to easily start single server and clusters
  # with a unified CLI
  resource "starter" do
    url "https://github.com/arangodb-helper/arangodb.git",
      :revision => "1e8c10c8669495a6996cc8063b9956f3e99127bc"
  end

  def install
    ENV.cxx11

    resource("starter").stage do
      ENV.append "GOPATH", Dir.pwd + "/.gobuild"
      system "make", "deps"
      # use commit-id as projectBuild
      commit = `git rev-parse HEAD`.chomp
      system "go", "build", "-ldflags", "-X main.projectVersion=0.14.5 -X main.projectBuild=#{commit}",
                            "-o", "arangodb",
                            "github.com/arangodb-helper/arangodb"
      bin.install "arangodb"
    end
{'fraction_non_alphanumeric': 0.1150855365474339, 'fraction_numerical': 0.14059097978227061, 'mean_word_length': 3.485355648535565, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '5749452', 'n_tokens_mistral': 1546, 'n_tokens_neox': 1277, 'n_words': 222}