<commit_before>class Sourcekitten < Formula
  desc "Framework and command-line tool for interacting with SourceKit"
  homepage "https://github.com/jpsim/SourceKitten"
  url "https://github.com/jpsim/SourceKitten.git",
      tag:      "0.31.1",
      revision: "558628392eb31d37cb251cfe626c53eafd330df6"
  license "MIT"
  head "https://github.com/jpsim/SourceKitten.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "dc5c0a2647f3166425adeeba110c59d1585a06265f4a38a237110c3555ef0c41"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "9e286e85a138ce17306a41cd4685c33a1bdfdd8108f3a42b34975b30a2746cc9"
    sha256 cellar: :any_skip_relocation, monterey:       "5bf5604b6d2db07359075d874960a2fc7d28c0fa365c015b1cc6a7cf4def133e"
    sha256 cellar: :any_skip_relocation, big_sur:        "bd867aad2393c0817d7e34f33d6873c540d1bef3fe0223dd2106c7412f10a818"
    sha256 cellar: :any_skip_relocation, catalina:       "32a08155e2e970e2c56dfe6007d1937366aac7e53f42dbbca2dbba5a5b799506"
  end

  depends_on xcode: ["11.4", :build]
  depends_on :macos
  depends_on xcode: "6.0"

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

  test do
    # Rewrite test after sandbox issues investigated.
    # https://github.com/Homebrew/homebrew/pull/50211
    system "#{bin}/sourcekitten", "version"
  end
end<commit_msg>sourcekitten 0.32.0<commit_after>class Sourcekitten < Formula
  desc "Framework and command-line tool for interacting with SourceKit"
  homepage "https://github.com/jpsim/SourceKitten"
  url "https://github.com/jpsim/SourceKitten.git",
      tag:      "0.32.0",
      revision: "817dfa6f2e09b0476f3a6c9dbc035991f02f0241"
  license "MIT"
  head "https://github.com/jpsim/SourceKitten.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "dc5c0a2647f3166425adeeba110c59d1585a06265f4a38a237110c3555ef0c41"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "9e286e85a138ce17306a41cd4685c33a1bdfdd8108f3a42b34975b30a2746cc9"
    sha256 cellar: :any_skip_relocation, monterey:       "5bf5604b6d2db07359075d874960a2fc7d28c0fa365c015b1cc6a7cf4def133e"
    sha256 cellar: :any_skip_relocation, big_sur:        "bd867aad2393c0817d7e34f33d6873c540d1bef3fe0223dd2106c7412f10a818"
    sha256 cellar: :any_skip_relocation, catalina:       "32a08155e2e970e2c56dfe6007d1937366aac7e53f42dbbca2dbba5a5b799506"
  end

  depends_on xcode: ["12.0", :build]
  depends_on :macos
  depends_on xcode: "6.0"

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

  test do
    system "#{bin}/sourcekitten", "version"
    return if MacOS::Xcode.version < 13

    ENV["IN_PROCESS_SOURCEKIT"] = "YES"
    system "#{bin}/sourcekitten", "syntax", "--text", "import Foundation // Hello World"
  end
end
{'fraction_non_alphanumeric': 0.0985576923076923, 'fraction_numerical': 0.1813186813186813, 'mean_word_length': 5.264516129032258, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 3, 'https://': 7, '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': '6237936', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1212, 'n_words': 177}