<commit_before>cask 'programmer-dvorak' do
  version '1.2b9'
  sha256 '36e51a0ee3ece99de99f2983e14beb415f74d9ae4726093cb60463cc206295e9'

  url "http://www.kaufmann.no/downloads/macos/ProgrammerDvorak-#{version.gsub('.','_')}.pkg.zip"
  name '<NAME>'
  homepage 'http://kaufmann.no/roland/dvorak/'
  license :oss

  pkg "Programmer Dvorak v#{version.sub(%r{b.*},'')}.pkg"

  if MacOS.release >= :mavericks
    postflight do
      # clear the layout cache before new layouts are recognized
      File.delete(*Dir.glob('/System/Library/Caches/com.apple.IntlDataCache.le*'))
    end
  end

  uninstall :pkgutil => 'com.apple.keyboardlayout.Programmer Dvorak',
            :delete => [
                         '/Library/Keyboard Layouts/Programmer Dvorak.bundle/',
                         # todo expand/glob for '/Library/Caches/com.apple.IntlDataCache*',
                         # todo expand/glob for '/System/Library/Caches/com.apple.IntlDataCache.le*',
                         # todo expand/glob for '/private/var/folders/*/*/-Caches-/com.apple.IntlDataCache.le*',
                       ]
end<commit_msg>programmer-dvorak.rb: RuboCop (master), RuboCop-cask (master) auto-correct<commit_after>cask 'programmer-dvorak' do
  version '1.2b9'
  sha256 '36e51a0ee3ece99de99f2983e14beb415f74d9ae4726093cb60463cc206295e9'

  url "http://www.kaufmann.no/downloads/macos/ProgrammerDvorak-#{version.gsub('.', '_')}.pkg.zip"
  name '<NAME>'
  homepage 'http://kaufmann.no/roland/dvorak/'
  license :oss

  pkg "Programmer Dvorak v#{version.sub(%r{b.*}, '')}.pkg"

  if MacOS.release >= :mavericks
    postflight do
      # clear the layout cache before new layouts are recognized
      File.delete(*Dir.glob('/System/Library/Caches/com.apple.IntlDataCache.le*'))
    end
  end

  uninstall :pkgutil => 'com.apple.keyboardlayout.Programmer Dvorak',
            :delete  => [
                          '/Library/Keyboard Layouts/Programmer Dvorak.bundle/',
                          # TODO: expand/glob for '/Library/Caches/com.apple.IntlDataCache*',
                          # todo expand/glob for '/System/Library/Caches/com.apple.IntlDataCache.le*',
                          # todo expand/glob for '/private/var/folders/*/*/-Caches-/com.apple.IntlDataCache.le*',
                        ]
end
{'fraction_non_alphanumeric': 0.14029720279720279, 'fraction_numerical': 0.04108391608391608, 'mean_word_length': 2.5654205607476634, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1521332', 'n_tokens_mistral': 838, 'n_tokens_neox': 776, 'n_words': 120}