<commit_before>cask "unity" do
  arch = Hardware::CPU.intel? ? "" : "Arm64"

  version "2022.1.8f1,2961e8c2b463"

  if Hardware::CPU.intel?
    sha256 "5c20f9c2b39bbfd45bed62fd1163172c8bbd45b3877ab28601b8d1e169467e48"
  else
    sha256 "39cba3ea22199d27fac7c7d091441142f7bd901ecdc2f13b16203e15be3fb565"
  end

  url "https://download.unity3d.com/download_unity/#{version.csv.second}/MacEditorInstaller#{arch}/Unity-#{version.csv.first}.pkg",
      verified: "download.unity3d.com/download_unity/"
  name "Unity Editor"
  desc "Platform for 3D content"
  homepage "https://unity.com/products"

  livecheck do
    url "https://public-cdn.cloud.unity3d.com/hub/prod/releases-darwin.json"
    strategy :page_match do |page|
      page.scan(%r{/download_unity/(\h+)/MacEditorInstaller/Unity-(\d+(?:\.\d+)+[a-z]*\d*)\.pkg}i).map do |match|<commit_msg>unity 2022.1.9f1,07e076b6d414<commit_after>cask "unity" do
  arch = Hardware::CPU.intel? ? "" : "Arm64"

  version "2022.1.9f1,07e076b6d414"

  if Hardware::CPU.intel?
    sha256 "8c002e12a83ddb4bbf761e0ae3502673081db81939ccdffa9cbf250c20143435"
  else
    sha256 "006362a8ce65935aa2264d88872fcbc13ed3269c30de42829b8bf7dba7d93c00"
  end

  url "https://download.unity3d.com/download_unity/#{version.csv.second}/MacEditorInstaller#{arch}/Unity-#{version.csv.first}.pkg",
      verified: "download.unity3d.com/download_unity/"
  name "Unity Editor"
  desc "Platform for 3D content"
  homepage "https://unity.com/products"

  livecheck do
    url "https://public-cdn.cloud.unity3d.com/hub/prod/releases-darwin.json"
    strategy :page_match do |page|
      page.scan(%r{/download_unity/(\h+)/MacEditorInstaller/Unity-(\d+(?:\.\d+)+[a-z]*\d*)\.pkg}i).map do |match|
{'fraction_non_alphanumeric': 0.1541617819460727, 'fraction_numerical': 0.13599062133645956, 'mean_word_length': 4.652317880794702, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 11, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7006710', 'n_tokens_mistral': 833, 'n_tokens_neox': 707, 'n_words': 82}