<commit_before>cask 'puppet-agent' do
  version '1.10.4-1'

  if MacOS.version == :yosemite
    sha256 'e9c2dd30c2a81cf004f168782e2cc49161e2bd4ea041e43116a7d0be5b854dfb'
  elsif MacOS.version == :el_capitan
    sha256 '37067d3a337492021895ca14a60e50be4eea82e0b9c431b63ecc95b63bf4876'
  else
    sha256 '32ff2b3dafbc9e98df979d4a3bb0ebc42963277430a5f5be7ae07e5123bbd143'
  end

  # downloads.puppetlabs.com was verified as official when first introduced to the cask
  url "https://downloads.puppetlabs.com/mac/#{MacOS.version}/PC1/x86_64/puppet-agent-#{version}.osx#{MacOS.version}.dmg"
  appcast 'https://downloads.puppetlabs.com/mac/10.12/PC1/x86_64/',
          checkpoint: 'e161485d3f785c7e10323b4a82db0034ac4b7b5899cfa077a55dd5401255c494'
  name 'Puppet Agent'
  homepage 'https://docs.puppet.com/puppet/4.5/about_agent.html'

  depends_on macos: '>= :yosemite'

  pkg "puppet-agent-#{version}-installer.pkg"

  uninstall launchctl: ['puppet', 'pxp-agent', 'mcollective'],
            pkgutil:   'com.puppetlabs.puppet-agent'<commit_msg>Checksum fix for puppet-agent in El Capitan (#37116)<commit_after>cask 'puppet-agent' do
  version '1.10.4-1'

  if MacOS.version == :yosemite
    sha256 'e9c2dd30c2a81cf004f168782e2cc49161e2bd4ea041e43116a7d0be5b854dfb'
  elsif MacOS.version == :el_capitan
    sha256 'e37067d3a337492021895ca14a60e50be4eea82e0b9c431b63ecc95b63bf4876'
  else
    sha256 '32ff2b3dafbc9e98df979d4a3bb0ebc42963277430a5f5be7ae07e5123bbd143'
  end

  # downloads.puppetlabs.com was verified as official when first introduced to the cask
  url "https://downloads.puppetlabs.com/mac/#{MacOS.version}/PC1/x86_64/puppet-agent-#{version}.osx#{MacOS.version}.dmg"
  appcast 'https://downloads.puppetlabs.com/mac/10.12/PC1/x86_64/',
          checkpoint: '349c8d077a54dc2d481626a58512f3be63d0287799928ce0fc6feaff5edf5baf'
  name 'Puppet Agent'
  homepage 'https://docs.puppet.com/puppet/4.5/about_agent.html'

  depends_on macos: '>= :yosemite'

  pkg "puppet-agent-#{version}-installer.pkg"

  uninstall launchctl: ['puppet', 'pxp-agent', 'mcollective'],
            pkgutil:   'com.puppetlabs.puppet-agent'
{'fraction_non_alphanumeric': 0.11509433962264151, 'fraction_numerical': 0.17877358490566037, 'mean_word_length': 4.974647887323943, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1738122', 'n_tokens_mistral': 1144, 'n_tokens_neox': 959, 'n_words': 112}