<commit_before>'use strict';

// DEV TIME CODE
if (FAKE_SERVER) {
    require('fake');
}
// DEV TIME CODE

require('./index.scss');

var $ = require('$jquery');
var state = require('./state');
var repository = require('./repository');
var sections = require('./sections/section');

//var details = args.newData.hud;
var setup = state.current();

// only load things when we have the data ready to go
repository.getData(function(details) { 
	// generate the html needed for the sections
	var html = sections.render(details, setup);
	html = '<div class="glimpse"><div class="glimpse-icon"></div><div class="glimpse-hud">' + html + '</div></div>';
	
	// insert the html into the dom
	var holder = $(html).appendTo('body')
	
	// force the correct state from previous load
	state.setup(holder);
	
	// setup events that we need to listen to
	sections.postRender(holder);
});<commit_msg>Add click event to HUD glimpse logo to open the client<commit_after>'use strict';

// DEV TIME CODE
if (FAKE_SERVER) {
    require('fake');
}
// DEV TIME CODE

require('./index.scss');

var $ = require('$jquery');
var util = require('lib/util');
var state = require('./state');
var repository = require('./repository');
var sections = require('./sections/section');

//var details = args.newData.hud;
var setup = state.current();

// only load things when we have the data ready to go
repository.getData(function(details) { 
	// generate the html needed for the sections
	var html = sections.render(details, setup);
	html = '<div class="glimpse"><div class="glimpse-icon"></div><div class="glimpse-hud">' + html + '</div></div>';
	
	// insert the html into the dom
	var holder = $(html).appendTo('body')
	
	// force the correct state from previous load
	state.setup(holder);
	
	// setup events that we need to listen to
	sections.postRender(holder);
	
	// TODO: need to find a better place for this
	$('.glimpse-icon').click(function() {
		window.open(util.resolveClientUrl(), 'GlimpseClient');
	});
});
{'fraction_non_alphanumeric': 0.1649016641452345, 'fraction_numerical': 0.0, 'mean_word_length': 4.126614987080103, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '475445', 'n_tokens_mistral': 603, 'n_tokens_neox': 594, 'n_words': 195}