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

  version "2021.2.15f1,3b8567f665bb"

  if Hardware::CPU.intel?
    sha256 "d2065ed79e97297c7465127383608d3cd80932be05bc20000cec21f13d6cb4fb"
  else
    sha256 "c48028986f30205cc274ca66b12a8709825f874ccea3385356561e06cad16000"
  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|
        "#{match[1]},#{match[0]}"
      end
    end
  end<commit_msg>Update unity from 2021.2.15f1 to 2021.2.16f1 (#120635)<commit_after>cask "unity" do
  arch = Hardware::CPU.intel? ? "" : "Arm64"

  version "2021.2.16f1,559fc0ec6670"

  if Hardware::CPU.intel?
    sha256 "33618330ef35fa17a3b8c5d5f7b477c3ef08c2a76f4523aa8b09106304c4bc4c"
  else
    sha256 "199e8ae59e687c2d680dac84172c72322b4a1a4d8b6d459e4570dd51ffbd03f7"
  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|
        "#{match[1]},#{match[0]}"
      end
    end
  end
{'fraction_non_alphanumeric': 0.1584640346133045, 'fraction_numerical': 0.1368307193077339, 'mean_word_length': 4.182072829131653, '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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1492446', 'n_tokens_mistral': 901, 'n_tokens_neox': 764, 'n_words': 95}