<commit_before>cask "obs-beta" do
  arch arm: "arm64", intel: "x86_64"

  version "28.0.0-rc2"
  sha256 arm:   "18bf780a2f19538461f834c741dc920e16158b9a9cc07341b1c262ea8b8d9a58",
         intel: "ebba8bfd5fa79436e0f1477adab820cda136ca566e6d0b8121cfb601c39c24df"

  url "https://github.com/obsproject/obs-studio/releases/download/#{version}/obs-studio-#{version}-macos-#{arch}.dmg",
      verified: "github.com/obsproject/obs-studio/"
  name "OBS"
  desc "Open-source software for live streaming and screen recording"
  homepage "https://obsproject.com/forum/list/test-builds.20/"

  livecheck do
    url "https://github.com/obsproject/obs-studio/releases"
    strategy :page_match
    regex(/obs[._-]studio[._-](\d+(?:\.\d+)+[._-](?:beta|rc)\d*)[._-]macos[._-]#{arch}\.dmg/i)
  end

  auto_updates true
  conflicts_with cask: "obs"
  depends_on macos: ">= :catalina"

  app "OBS.app"

  uninstall delete: "/Library/CoreMediaIO/Plug-Ins/DAL/obs-mac-virtualcam.plugin"

  zap trash: [
    "~/Library/Application Support/obs-studio",<commit_msg>Update obs-beta from 28.0.0-rc2 to 28.1.0-rc1 (#14970)<commit_after>cask "obs-beta" do
  arch arm: "arm64", intel: "x86_64"

  version "28.1.0-rc1"
  sha256 arm:   "d86037a28b32a45537cf4aa546c66eaec1388a821bf098060183c99ea97e625a",
         intel: "93dd46eefde5304eb4f2f133586d5832b02d499dac8903704984cef61b68885a"

  url "https://github.com/obsproject/obs-studio/releases/download/#{version}/obs-studio-#{version}-macos-#{arch}.dmg",
      verified: "github.com/obsproject/obs-studio/"
  name "OBS"
  desc "Open-source software for live streaming and screen recording"
  homepage "https://obsproject.com/forum/list/test-builds.20/"

  livecheck do
    url "https://github.com/obsproject/obs-studio/releases?q=prerelease%3Atrue"
    regex(%r{href=["']?[^"' >]*?/tag/v?(\d+(?:\.\d+)+[^"' >]*)["' >]}i)
    strategy :page_match
  end

  auto_updates true
  conflicts_with cask: "obs"
  depends_on macos: ">= :catalina"

  app "OBS.app"

  uninstall delete: "/Library/CoreMediaIO/Plug-Ins/DAL/obs-mac-virtualcam.plugin"

  zap trash: [
    "~/Library/Application Support/obs-studio",
{'fraction_non_alphanumeric': 0.16729500471253533, 'fraction_numerical': 0.0994344957587182, 'mean_word_length': 4.203431372549019, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4071965', 'n_tokens_mistral': 997, 'n_tokens_neox': 869, 'n_words': 121}