<commit_before>cask "mat" do
  version "1.13.0.20220615"
  sha256 "5e866ce672f2d800b902f017edc266406ef1c895e6defde0aac5d895d7966b98"

  url "https://download.eclipse.org/mat/#{version.major_minor_patch}/rcp/MemoryAnalyzer-#{version}-macosx.cocoa.x86_64.dmg"
  name "Eclipse Memory Analyzer"
  desc "Java heap analyzer"
  homepage "https://www.eclipse.org/mat/"

  livecheck do
    url "https://www.eclipse.org/mat/downloads.php"
    regex(/href=.*?MemoryAnalyzer-(\d+(?:\.\d+)*).*?\.dmg/i)
  end

  app "mat.app"
end<commit_msg>Add Apple silicon support for mat (#128825)<commit_after>cask "mat" do
  arch = Hardware::CPU.intel? ? "x86_64" : "aarch64"

  version "1.13.0.20220615"

  if Hardware::CPU.intel?
    sha256 "5e866ce672f2d800b902f017edc266406ef1c895e6defde0aac5d895d7966b98"
  else
    sha256 "55a7113181a5aea34d83a471752f81f27988720e2f58edc090e6e2565f020532"
  end

  url "https://download.eclipse.org/mat/#{version.major_minor_patch}/rcp/MemoryAnalyzer-#{version}-macosx.cocoa.#{arch}.dmg"
  name "Eclipse Memory Analyzer"
  desc "Java heap analyzer"
  homepage "https://www.eclipse.org/mat/"

  livecheck do
    url "https://www.eclipse.org/mat/downloads.php"
    regex(/href=.*?MemoryAnalyzer-(\d+(?:\.\d+)*).*?\.dmg/i)
  end

  app "mat.app"
end
{'fraction_non_alphanumeric': 0.1578112609040444, 'fraction_numerical': 0.1379857256145916, 'mean_word_length': 4.3931623931623935, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1396752', 'n_tokens_mistral': 641, 'n_tokens_neox': 532, 'n_words': 71}