<commit_before>require "language/node"

class GitlabCiLocal < Formula
  desc "Run gitlab pipelines locally as shell executor or docker executor"
  homepage "https://github.com/firecow/gitlab-ci-local"
  url "https://registry.npmjs.org/gitlab-ci-local/-/gitlab-ci-local-4.28.2.tgz"
  sha256 "c416d15ad86da61c49f0ef3d33c475d0ad02f24db7a1371704eba2127c9c9ab9"
  license "MIT"
  head "https://github.com/firecow/gitlab-ci-local.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "a8c71429bc8f7db9a1d9794d64189d7c612eff196ba017a53823eb3beffd9607"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "a8c71429bc8f7db9a1d9794d64189d7c612eff196ba017a53823eb3beffd9607"
    sha256 cellar: :any_skip_relocation, monterey:       "7972aca63dc2bad87962f4a970b80daafe7571972feed4e18c634b83fa947f6a"
    sha256 cellar: :any_skip_relocation, big_sur:        "7972aca63dc2bad87962f4a970b80daafe7571972feed4e18c634b83fa947f6a"
    sha256 cellar: :any_skip_relocation, catalina:       "7972aca63dc2bad87962f4a970b80daafe7571972feed4e18c634b83fa947f6a"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "a8c71429bc8f7db9a1d9794d64189d7c612eff196ba017a53823eb3beffd9607"
  end

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
    (testpath/".gitlab-ci.yml").write <<~YML
      ---
      stages:
        - build
        - tag
      variables:
        HELLO: world
      build:
        stage: build<commit_msg>gitlab-ci-local 4.29.0<commit_after>require "language/node"

class GitlabCiLocal < Formula
  desc "Run gitlab pipelines locally as shell executor or docker executor"
  homepage "https://github.com/firecow/gitlab-ci-local"
  url "https://registry.npmjs.org/gitlab-ci-local/-/gitlab-ci-local-4.29.0.tgz"
  sha256 "266b308d29e0a9099d0ba8e5a0fd88479930e465a87dec0c783cd8d5b616848f"
  license "MIT"
  head "https://github.com/firecow/gitlab-ci-local.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "a8c71429bc8f7db9a1d9794d64189d7c612eff196ba017a53823eb3beffd9607"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "a8c71429bc8f7db9a1d9794d64189d7c612eff196ba017a53823eb3beffd9607"
    sha256 cellar: :any_skip_relocation, monterey:       "7972aca63dc2bad87962f4a970b80daafe7571972feed4e18c634b83fa947f6a"
    sha256 cellar: :any_skip_relocation, big_sur:        "7972aca63dc2bad87962f4a970b80daafe7571972feed4e18c634b83fa947f6a"
    sha256 cellar: :any_skip_relocation, catalina:       "7972aca63dc2bad87962f4a970b80daafe7571972feed4e18c634b83fa947f6a"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "a8c71429bc8f7db9a1d9794d64189d7c612eff196ba017a53823eb3beffd9607"
  end

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
    (testpath/".gitlab-ci.yml").write <<~YML
      ---
      stages:
        - build
        - tag
      variables:
        HELLO: world
      build:
        stage: build
{'fraction_non_alphanumeric': 0.09030206677265501, 'fraction_numerical': 0.19268680445151035, 'mean_word_length': 4.617857142857143, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '6687444', 'n_tokens_mistral': 1643, 'n_tokens_neox': 1303, 'n_words': 170}