<commit_before>class Minio < Formula
  desc "Amazon S3 compatible object storage server"
  homepage "https://github.com/minio/minio"
  url "https://github.com/minio/minio.git",
      :tag      => "RELEASE.2018-11-17T01-23-48Z",
      :revision => "7b579caf686110d96349ec4e90beacf7eed5af89"
  version "20181117012348"

  bottle do
    cellar :any_skip_relocation
    sha256 "a2a7409bbfe79c5c8a799da752132498fbf71106e400282d29b5aaec593314e9" => :mojave
    sha256 "9ae0f5ecffcd4d6222d24fad1300c77ea47e4b997da0e6ee40bb5659472c5b7b" => :high_sierra
    sha256 "354dc35b70fed4a4700ce9e966e7002d56cc3e4ec978742b122cfefe2a03fe71" => :sierra
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath

    clipath = buildpath/"src/github.com/minio/minio"
    clipath.install Dir["*"]

    cd clipath do
      if build.head?
        system "go", "build", "-o", buildpath/"minio"
      else
        release = `git tag --points-at HEAD`.chomp
        version = release.gsub(/RELEASE\./, "").chomp.gsub(/T(\d+)\-(\d+)\-(\d+)Z/, 'T\1:\2:\3Z')
        commit = `git rev-parse HEAD`.chomp
        proj = "github.com/minio/minio"

        system "go", "build", "-o", buildpath/"minio", "-ldflags", <<~EOS<commit_msg>minio 20181122025156<commit_after>class Minio < Formula
  desc "Amazon S3 compatible object storage server"
  homepage "https://github.com/minio/minio"
  url "https://github.com/minio/minio.git",
      :tag      => "RELEASE.2018-11-22T02-51-56Z",
      :revision => "eddf468aef34e14ba1fac0c911b2fc9b47789d88"
  version "20181122025156"

  bottle do
    cellar :any_skip_relocation
    sha256 "a2a7409bbfe79c5c8a799da752132498fbf71106e400282d29b5aaec593314e9" => :mojave
    sha256 "9ae0f5ecffcd4d6222d24fad1300c77ea47e4b997da0e6ee40bb5659472c5b7b" => :high_sierra
    sha256 "354dc35b70fed4a4700ce9e966e7002d56cc3e4ec978742b122cfefe2a03fe71" => :sierra
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath

    clipath = buildpath/"src/github.com/minio/minio"
    clipath.install Dir["*"]

    cd clipath do
      if build.head?
        system "go", "build", "-o", buildpath/"minio"
      else
        release = `git tag --points-at HEAD`.chomp
        version = release.gsub(/RELEASE\./, "").chomp.gsub(/T(\d+)\-(\d+)\-(\d+)Z/, 'T\1:\2:\3Z')
        commit = `git rev-parse HEAD`.chomp
        proj = "github.com/minio/minio"

        system "go", "build", "-o", buildpath/"minio", "-ldflags", <<~EOS
{'fraction_non_alphanumeric': 0.1445487954267048, 'fraction_numerical': 0.15067374438546347, 'mean_word_length': 3.406474820143885, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '6091523', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1007, 'n_words': 156}