<commit_before>class Syncthing < Formula
  desc "Open source continuous file synchronization application"
  homepage "https://syncthing.net/"
  url "https://github.com/syncthing/syncthing/archive/v1.15.0.tar.gz"
  sha256 "ed477d4e447f82ec93e933c4f97c89c03e502b615710e8d0c140e5ab8a86f043"
  license "MPL-2.0"
  head "https://github.com/syncthing/syncthing.git", branch: "main"

  livecheck do
    url :stable
    strategy :github_latest
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "d057b8e3a78c9bbde9c157a8471617c277f597b807b4500e40df08ee2e423d81"
    sha256 cellar: :any_skip_relocation, big_sur:       "fadba4b02a3eca9c139d63fc0c4d39f532d661173dc8aeb051341ee95740b9c4"
    sha256 cellar: :any_skip_relocation, catalina:      "1cb21024817c5748c84584f38d4c280ed62c9d7f922b7ed14a50dfd213a75cac"
    sha256 cellar: :any_skip_relocation, mojave:        "28af70d131ed01d114889fd35ae808ce54bc0e035602c3f33d5fbfd0e4e2eda1"
  end

  depends_on "go" => :build

  def install
    build_version = build.head? ? "v0.0.0-#{version}" : "v#{version}"
    system "go", "run", "build.go", "--version", build_version, "--no-upgrade", "tar"
    bin.install "syncthing"

    man1.install Dir["man/*.1"]
    man5.install Dir["man/*.5"]
    man7.install Dir["man/*.7"]
  end

  plist_options manual: "syncthing"

  def plist<commit_msg>syncthing 1.15.1<commit_after>class Syncthing < Formula
  desc "Open source continuous file synchronization application"
  homepage "https://syncthing.net/"
  url "https://github.com/syncthing/syncthing/archive/v1.15.1.tar.gz"
  sha256 "ad7276cec428f1b680a660179a29708a68d4214d58c73043453b5a164e316c92"
  license "MPL-2.0"
  head "https://github.com/syncthing/syncthing.git", branch: "main"

  livecheck do
    url :stable
    strategy :github_latest
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "d057b8e3a78c9bbde9c157a8471617c277f597b807b4500e40df08ee2e423d81"
    sha256 cellar: :any_skip_relocation, big_sur:       "fadba4b02a3eca9c139d63fc0c4d39f532d661173dc8aeb051341ee95740b9c4"
    sha256 cellar: :any_skip_relocation, catalina:      "1cb21024817c5748c84584f38d4c280ed62c9d7f922b7ed14a50dfd213a75cac"
    sha256 cellar: :any_skip_relocation, mojave:        "28af70d131ed01d114889fd35ae808ce54bc0e035602c3f33d5fbfd0e4e2eda1"
  end

  depends_on "go" => :build

  def install
    build_version = build.head? ? "v0.0.0-#{version}" : "v#{version}"
    system "go", "run", "build.go", "--version", build_version, "--no-upgrade", "tar"
    bin.install "syncthing"

    man1.install Dir["man/*.1"]
    man5.install Dir["man/*.5"]
    man7.install Dir["man/*.7"]
  end

  plist_options manual: "syncthing"

  def plist
{'fraction_non_alphanumeric': 0.11139992573338285, 'fraction_numerical': 0.17489788340141108, 'mean_word_length': 4.731914893617021, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3995777', 'n_tokens_mistral': 1373, 'n_tokens_neox': 1133, 'n_words': 166}