<commit_before>class Xquartz < Cask
  url 'https://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.6.dmg'
  homepage 'http://xquartz.macosforge.org/'
  appcast 'http://xquartz-dl.macosforge.org/sparkle/release.xml'
  version '2.7.6'
  sha256 '02aa3268af0bd7dcd5dfbc10d673f5c6834bba6371a928d2a3fc44a8039b194e'
  install 'XQuartz.pkg'

  after_install do
    Pathname.new(Dir.home).join('Library', 'Logs').mkpath

    # Set default path to X11 = avoid the need of manual setup
    system '/usr/bin/defaults', 'write', 'com.apple.applescript', 'ApplicationMap', '-dict-add', 'X11', 'file://localhost/Applications/Utilities/XQuartz.app/'

    # Load & start XServer = avoid the need of relogin
    system '/bin/launchctl', 'load', '/Library/LaunchAgents/org.macosforge.xquartz.startx.plist'
  end

  uninstall :quit => 'org.macosforge.xquartz.X11',
            :launchctl => 'org.macosforge.xquartz.startx',
            :pkgutil => 'org.macosforge.xquartz.pkg'
end<commit_msg>Reformat xquartz.rb according to readability conventions<commit_after>class Xquartz < Cask
  version '2.7.6'
  sha256 '02aa3268af0bd7dcd5dfbc10d673f5c6834bba6371a928d2a3fc44a8039b194e'

  url 'https://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.6.dmg'
  appcast 'http://xquartz-dl.macosforge.org/sparkle/release.xml'
  homepage 'http://xquartz.macosforge.org/'

  install 'XQuartz.pkg'

  after_install do
    Pathname.new(Dir.home).join('Library', 'Logs').mkpath

    # Set default path to X11 = avoid the need of manual setup
    system '/usr/bin/defaults', 'write', 'com.apple.applescript', 'ApplicationMap', '-dict-add', 'X11', 'file://localhost/Applications/Utilities/XQuartz.app/'

    # Load & start XServer = avoid the need of relogin
    system '/bin/launchctl', 'load', '/Library/LaunchAgents/org.macosforge.xquartz.startx.plist'
  end

  uninstall :quit => 'org.macosforge.xquartz.X11',
            :launchctl => 'org.macosforge.xquartz.startx',
            :pkgutil => 'org.macosforge.xquartz.pkg'
end
{'fraction_non_alphanumeric': 0.14328808446455504, 'fraction_numerical': 0.05228758169934641, 'mean_word_length': 3.9625935162094765, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3574303', 'n_tokens_mistral': 846, 'n_tokens_neox': 751, 'n_words': 122}