<commit_before>class Fn < Formula
  desc "Command-line tool for the fn project"
  homepage "https://fnproject.io"
  url "https://github.com/fnproject/cli/archive/0.6.1.tar.gz"
  sha256 "31c35c8e73bcd45368c3d390297fb4fc076ccf819711d15a52a6fe21a2dd5f0f"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "8d6ce96f1b90a20005b7676a71e9cca0219b9b10eb0141962b7862a16c90bf33"
    sha256 cellar: :any_skip_relocation, big_sur:       "e493bdbe2d7f61000f4d92602789fd47850eb2c5f27be805888202880e81699b"
    sha256 cellar: :any_skip_relocation, catalina:      "deca08e83d8ff598ca73c0ef3fcf396f6ad20ec936c10bd0e2032595a0106d55"
    sha256 cellar: :any_skip_relocation, mojave:        "0bf5ce388e4c03334fec85b0b9733d9b270d38c8650223b591805c4bb3950b84"
  end

  depends_on "go" => :build

  def install
    system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", "#{bin}/fn"
    prefix.install_metafiles
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/fn --version")
    system "#{bin}/fn", "init", "--runtime", "go", "--name", "myfunc"
    assert_predicate testpath/"func.go", :exist?, "expected file func.go doesn't exist"<commit_msg>fn 0.6.2<commit_after>class Fn < Formula
  desc "Command-line tool for the fn project"
  homepage "https://fnproject.io"
  url "https://github.com/fnproject/cli/archive/0.6.2.tar.gz"
  sha256 "6a2d22f88e5267e9a7364adb75c95e9a59b84c5f46695a514edbe75218d328be"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "8d6ce96f1b90a20005b7676a71e9cca0219b9b10eb0141962b7862a16c90bf33"
    sha256 cellar: :any_skip_relocation, big_sur:       "e493bdbe2d7f61000f4d92602789fd47850eb2c5f27be805888202880e81699b"
    sha256 cellar: :any_skip_relocation, catalina:      "deca08e83d8ff598ca73c0ef3fcf396f6ad20ec936c10bd0e2032595a0106d55"
    sha256 cellar: :any_skip_relocation, mojave:        "0bf5ce388e4c03334fec85b0b9733d9b270d38c8650223b591805c4bb3950b84"
  end

  depends_on "go" => :build

  def install
    system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", "#{bin}/fn"
    prefix.install_metafiles
  end

  test do
    assert_match version.to_s, shell_output("#{bin}/fn --version")
    system "#{bin}/fn", "init", "--runtime", "go", "--name", "myfunc"
    assert_predicate testpath/"func.go", :exist?, "expected file func.go doesn't exist"
{'fraction_non_alphanumeric': 0.11957894736842105, 'fraction_numerical': 0.1957894736842105, 'mean_word_length': 5.030456852791878, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3772061', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1010, 'n_words': 156}