<commit_before>'use strict';

var app = require('app');
var dribbbleapi = require('./dribbbleapi');

var mainWindow = null;
var dribbbleData = null;

var menubar = require('menubar')

var mb = menubar({
  frame: true,
  index: 'file://' + __dirname + '/app/index.html',
  width: 400,
  'max-width': 400,
  'min-height': 300,
  height: 700
});

app.on('window-all-closed', function() {
  app.quit();
});<commit_msg>Wire up message sending from main thread to render.<commit_after>'use strict';

var app = require('app');
var dribbbleapi = require('./dribbbleapi');

var mainWindow = null;
var dribbbleData = null;

var menubar = require('menubar')

var mb = menubar({
  frame: true,
  index: 'file://' + __dirname + '/app/index.html',
  width: 400,
  'max-width': 400,
  'min-height': 300,
  height: 700,
  preloadWindow: true
});

app.on('window-all-closed', function() {
  app.quit();
});


mb.on('show', function(){
  mb.window.webContents.send('focus');
//  mb.window.openDevTools();
});
{'fraction_non_alphanumeric': 0.19292929292929292, 'fraction_numerical': 0.024242424242424242, 'mean_word_length': 4.18848167539267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4237304', 'n_tokens_mistral': 391, 'n_tokens_neox': 362, 'n_words': 88}