<commit_before>/*!
 * Annotations Support for the Viewer - v0.3
 *
 * Copyright (c) 2013 <NAME>, http://bradfrostweb.com & <NAME>, http://dmolsen.com
 * Licensed under the MIT license
 *
 */

var annotationsViewer = {
	
	// set-up default sections
	commentsActive:          false,
	commentsViewAllActive:   true,
	targetOrigin:            (window.location.protocol === "file:") ? "*" : window.location.protocol+"//"+window.location.host,
	moveToOnInit:            0,
	
	/**
	* add the onclick handler to the annotations link in the main nav
	*/
	onReady: function() {
		
		// not sure this is used anymore...
		$('body').addClass('comments-ready');
		$('#sg-t-annotations').click(function(e) {
			
			e.preventDefault();
			
			// remove the class from the "eye" nav item
			$('#sg-t-toggle').removeClass('active');
			
			// turn the annotations section on and off
			annotationsViewer.toggleComments();
			
		});
		
		// initialize the annotations viewer
		annotationsViewer.commentContainerInit();
		
		// load the query strings in case code view has to show by default<commit_msg>making sure the view all annotations feature is off by default<commit_after>/*!
 * Annotations Support for the Viewer - v0.3
 *
 * Copyright (c) 2013 <NAME>, http://bradfrostweb.com & <NAME>, http://dmolsen.com
 * Licensed under the MIT license
 *
 */

var annotationsViewer = {
	
	// set-up default sections
	commentsActive:          false,
	commentsViewAllActive:   false,
	targetOrigin:            (window.location.protocol === "file:") ? "*" : window.location.protocol+"//"+window.location.host,
	moveToOnInit:            0,
	
	/**
	* add the onclick handler to the annotations link in the main nav
	*/
	onReady: function() {
		
		// not sure this is used anymore...
		$('body').addClass('comments-ready');
		$('#sg-t-annotations').click(function(e) {
			
			e.preventDefault();
			
			// remove the class from the "eye" nav item
			$('#sg-t-toggle').removeClass('active');
			
			// turn the annotations section on and off
			annotationsViewer.toggleComments();
			
		});
		
		// initialize the annotations viewer
		annotationsViewer.commentContainerInit();
		
		// load the query strings in case code view has to show by default
{'fraction_non_alphanumeric': 0.13435527502254282, 'fraction_numerical': 0.0063119927862939585, 'mean_word_length': 3.0126582278481013, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3205821', 'n_tokens_mistral': 724, 'n_tokens_neox': 622, 'n_words': 193}