<commit_before>class Swiftlint < Formula
  desc "Tool to enforce Swift style and conventions"
  homepage "https://github.com/realm/SwiftLint"
  url "https://github.com/realm/SwiftLint.git",
      :tag => "0.24.1",
      :revision => "7ad77df690a756079d84be35c0ca6407551a35c6"
  head "https://github.com/realm/SwiftLint.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "e589a00e4e2120cfc4d439c4ef94754f91030932186885c9d72f2e7b11ce0c51" => :high_sierra
    sha256 "4fa6eb6f19b72fbb40d2f5e600692a85b416e111faca5790c25c032fdf67ac68" => :sierra
  end

  depends_on :xcode => ["8.0", :run]
  depends_on :xcode => ["9.0", :build]

  def install
    system "make", "prefix_install", "PREFIX=#{prefix}", "TEMPORARY_FOLDER=#{buildpath}/SwiftLint.dst"
  end

  test do<commit_msg>swiftlint 0.24.2<commit_after>class Swiftlint < Formula
  desc "Tool to enforce Swift style and conventions"
  homepage "https://github.com/realm/SwiftLint"
  url "https://github.com/realm/SwiftLint.git",
      :tag => "0.24.2",
      :revision => "7bf32346cc1f0b3f9c48d222ac5070e89e6d30ce"
  head "https://github.com/realm/SwiftLint.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "e589a00e4e2120cfc4d439c4ef94754f91030932186885c9d72f2e7b11ce0c51" => :high_sierra
    sha256 "4fa6eb6f19b72fbb40d2f5e600692a85b416e111faca5790c25c032fdf67ac68" => :sierra
  end

  depends_on :xcode => ["8.0", :run]
  depends_on :xcode => ["9.0", :build]

  def install
    system "make", "prefix_install", "PREFIX=#{prefix}", "TEMPORARY_FOLDER=#{buildpath}/SwiftLint.dst"
  end

  test do
{'fraction_non_alphanumeric': 0.12651757188498403, 'fraction_numerical': 0.15782747603833866, 'mean_word_length': 4.8, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '5962011', 'n_tokens_mistral': 794, 'n_tokens_neox': 661, 'n_words': 100}