<commit_before>// Load in dependencies
var gui = require('nw.gui');

// Generate a window for Google Music
var win = gui.Window.get(window.open('https://play.google.com/music'));

// Set up minification
// Modified from https://github.com/rogerwang/node-webkit/wiki/Minimize-to-tray

// Create our tray icon
// DEV: Icon via http://lorempixel.com/32/32/abstract/3/
var tray = new gui.Tray({icon: 'icon.png'});

// When the tray icon is clicked, show the window
// TODO: Should be a toggle
tray.on('click', function maximizeFromTray () {
  win.restore();
});

// When we minimize our window, hide it
win.on('minimize', function minimizeToTray () {
  win.minimize();
});
<commit_msg>Added TODOs for later<commit_after>// Load in dependencies
var gui = require('nw.gui');

// Generate a window for Google Music
var win = gui.Window.get(window.open('https://play.google.com/music'));

// TODO: Create class for managing application state that emits events
// TODO: Set up `tray.tooltip` to update on song change
// TODO: Add methods for play/pause/forward/next/shuffle/repeat that we can bind to menus and media keys
// TODO: Fill out package.json in full
// TODO: Add tray menu for all methods we want

// Set up minification
// Modified from https://github.com/rogerwang/node-webkit/wiki/Minimize-to-tray

// Create our tray icon
// DEV: Icon via http://lorempixel.com/32/32/abstract/3/
var tray = new gui.Tray({icon: 'icon.png'});

// When the tray icon is clicked, show the window
// TODO: Should be a toggle
tray.on('click', function maximizeFromTray () {
  win.restore();
});

// When we minimize our window, hide it
win.on('minimize', function minimizeToTray () {
  win.minimize();
});

{'fraction_non_alphanumeric': 0.14446417998815866, 'fraction_numerical': 0.005920663114268798, 'mean_word_length': 3.7338935574229692, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2506493', 'n_tokens_mistral': 553, 'n_tokens_neox': 527, 'n_words': 179}