<commit_before>cask 'goland' do
  version '2020.1.1,201.7223.36'
  sha256 '69a72a207a04e03c5adde97650da48ab61dd7b5efd61a322e19404f4a2a342d7'

  url "https://download.jetbrains.com/go/goland-#{version.before_comma}.dmg"
  appcast 'https://data.services.jetbrains.com/products/releases?code=GO&latest=true&type=release'
  name 'Goland'
  homepage 'https://www.jetbrains.com/go/'

  auto_updates true

  app 'GoLand.app'

  uninstall_postflight do
    ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'goland') }.each { |path| File.delete(path) if File.exist?(path) && File.readlines(path).grep(%r{# see com.intellij.idea.SocketLock for the server side of this interface}).any? }
  end

  zap trash: [
               '~/Library/Application Support/GoLand',
               "~/Library/Application Support/GoLand#{version.major_minor}",
               "~/Library/Caches/GoLand#{version.major_minor}",
               "~/Library/Logs/GoLand#{version.major_minor}",
               "~/Library/Preferences/GoLand#{version.major_minor}",
               '~/Library/Preferences/com.jetbrains.goland.plist',
               '~/Library/Saved Application State/com.jetbrains.goland.SavedState',<commit_msg>Update goland to 2020.1.2,201.7223.97 (#82037)<commit_after>cask 'goland' do
  version '2020.1.2,201.7223.97'
  sha256 '2c56d21a289c31933d217e5b2ebeb933491a4c0e2b77bc120d15fdfbad59752b'

  url "https://download.jetbrains.com/go/goland-#{version.before_comma}.dmg"
  appcast 'https://data.services.jetbrains.com/products/releases?code=GO&latest=true&type=release'
  name 'Goland'
  homepage 'https://www.jetbrains.com/go/'

  auto_updates true

  app 'GoLand.app'

  uninstall_postflight do
    ENV['PATH'].split(File::PATH_SEPARATOR).map { |path| File.join(path, 'goland') }.each { |path| File.delete(path) if File.exist?(path) && File.readlines(path).grep(%r{# see com.intellij.idea.SocketLock for the server side of this interface}).any? }
  end

  zap trash: [
               '~/Library/Application Support/GoLand',
               "~/Library/Application Support/GoLand#{version.major_minor}",
               "~/Library/Caches/GoLand#{version.major_minor}",
               "~/Library/Logs/GoLand#{version.major_minor}",
               "~/Library/Preferences/GoLand#{version.major_minor}",
               '~/Library/Preferences/com.jetbrains.goland.plist',
               '~/Library/Saved Application State/com.jetbrains.goland.SavedState',
{'fraction_non_alphanumeric': 0.15108207431604737, 'fraction_numerical': 0.05471621069824418, 'mean_word_length': 3.5623836126629422, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '2171820', 'n_tokens_mistral': 966, 'n_tokens_neox': 846, 'n_words': 111}