<commit_before>cask "origin" do
  version "10.5.95.47231"
  sha256 "63e8ad69682e286cbeb835c3e43f6345de220cbdf2f8696c997b417e578cfc2b"

  url "https://origin-a.akamaihd.net/Origin-Client-Download/origin/mac/live/OriginUpdate_#{version.dots_to_underscores}.zip",
      verified: "origin-a.akamaihd.net/"
  appcast "https://api1.origin.com/autopatch/2/upgradeFrom/#{version}/en_US/PROD?platform=MAC&osVersion=10.14.0"
  name "Origin"
  homepage "https://www.origin.com/"

  auto_updates true

  app "Origin.app"

  preflight do
    # There is no enclosing .app folder, just the 'Contents' of the app in the appcast download
    FileUtils.mv(staged_path.children, staged_path.join("Origin.app").tap(&:mkpath))
  end

  zap trash: [
    "~/Library/Application Support/Origin",
    "~/Library/Saved Application State/com.ea.Origin.savedState",
    "~/Library/LaunchAgents/com.ea.origin.WebHelper.plist",
    "~/Library/Caches/com.ea.Origin",
    "~/Library/Caches/Origin",
  ]
end<commit_msg>Update origin from 10.5.95.47231 to 10.5.102.48654 (#109294)<commit_after>cask "origin" do
  version "10.5.102.48654"
  sha256 :no_check

  url "https://origin-a.akamaihd.net/Origin-Client-Download/origin/mac/live/Origin.dmg",
      verified: "origin-a.akamaihd.net/Origin-Client-Download/"
  name "Origin"
  desc "Play PC games and connect with your friends"
  homepage "https://www.origin.com/"

  livecheck do
    url :url
    strategy :extract_plist
  end

  auto_updates true

  app "Origin.app"

  zap trash: [
    "~/Library/Application Support/Origin",
    "~/Library/Caches/com.ea.Origin",
    "~/Library/Caches/Origin",
    "~/Library/LaunchAgents/com.ea.origin.WebHelper.plist",
    "~/Library/Saved Application State/com.ea.Origin.savedState",
  ]
end
{'fraction_non_alphanumeric': 0.1452258433390509, 'fraction_numerical': 0.05717552887364208, 'mean_word_length': 3.8209366391184574, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 4, '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': '5725647', 'n_tokens_mistral': 719, 'n_tokens_neox': 638, 'n_words': 104}