<commit_before>class Syncthing < Formula
  desc "Open source continuous file synchronization application"
  homepage "https://syncthing.net/"
  url "https://github.com/syncthing/syncthing.git",
      :tag => "v0.14.21",
      :revision => "22a4d49ed0f4248239de45ca2e4ef4d46370bce3"

  head "https://github.com/syncthing/syncthing.git"

  bottle do
    sha256 "2a860e941f0a1a640f7b16c962fca799b158f4f081b50ffac794c588ed2ce94a" => :sierra
    sha256 "ae4b88fba6b5de1bc2667be163aaf39363dbe0f135db0a40c72d7ec8d56f8038" => :el_capitan
    sha256 "59737a484cf1969e7d964b1076fb0e6baeb94984846502f95ef9fd7645f33ff7" => :yosemite
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath/".syncthing-gopath"
    mkdir_p buildpath/".syncthing-gopath/src/github.com/syncthing"
    cp_r cached_download, buildpath/".syncthing-gopath/src/github.com/syncthing/syncthing"
    ENV.append_path "PATH", "#{ENV["GOPATH"]}/bin"
    cd buildpath/".syncthing-gopath/src/github.com/syncthing/syncthing"
    system "./build.sh", "noupgrade"
    bin.install "syncthing"
  end

  plist_options :manual => "syncthing"

  def plist; <<-EOS.undent
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><commit_msg>syncthing 0.14.22<commit_after>class Syncthing < Formula
  desc "Open source continuous file synchronization application"
  homepage "https://syncthing.net/"
  url "https://github.com/syncthing/syncthing.git",
      :tag => "v0.14.22",
      :revision => "9fda9642d328001651c49ef60f64a0bb714bc3de"

  head "https://github.com/syncthing/syncthing.git"

  bottle do
    sha256 "2a860e941f0a1a640f7b16c962fca799b158f4f081b50ffac794c588ed2ce94a" => :sierra
    sha256 "ae4b88fba6b5de1bc2667be163aaf39363dbe0f135db0a40c72d7ec8d56f8038" => :el_capitan
    sha256 "59737a484cf1969e7d964b1076fb0e6baeb94984846502f95ef9fd7645f33ff7" => :yosemite
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath/".syncthing-gopath"
    mkdir_p buildpath/".syncthing-gopath/src/github.com/syncthing"
    cp_r cached_download, buildpath/".syncthing-gopath/src/github.com/syncthing/syncthing"
    ENV.append_path "PATH", "#{ENV["GOPATH"]}/bin"
    cd buildpath/".syncthing-gopath/src/github.com/syncthing/syncthing"
    system "./build.sh", "noupgrade"
    bin.install "syncthing"
  end

  plist_options :manual => "syncthing"

  def plist; <<-EOS.undent
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
{'fraction_non_alphanumeric': 0.13650306748466257, 'fraction_numerical': 0.12653374233128833, 'mean_word_length': 4.435416666666667, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 2, '>': 21, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '726432', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1080, 'n_words': 142}