<commit_before>/*
	@TODO:
		1. Optimize variables (i.e. go back to putting JSON vars in JS vars).
		2. Add comments, Micky style.
		3. ...
*/
;(function($, window, document, undefined) {
	
	"use strict";
	
	var console = window.console || { log : function() {}, warn : function() {} },
	
	defaults = {
		
		api     : 'http://advertising.registerguard.com/manager/',
		parent  : '',
		section : '',
		page    : '',
		cb      : (Math.round(Math.random() * 10000000000000000)),
		
		// Should we move these to the JSON?
		units : {
			
			mobile : {
				
				'mobile-banner'      : '#mobile_banner-top',
				'medium-rectangle-1' : '#medium_rectangle_1-mobile',
				'medium-rectangle-2' : '#medium_rectangle_2-mobile',
				'homepage-block-1'   : '#homepage_block_1-mobile',
				'homepage-block-2'   : '#homepage_block_2-mobile',
				'homepage-block-3'   : '#homepage_block_3-mobile',
				'ros_column-block'   : '#column_block-mobile',
				'ros_mobile-banner'  : '#mobile_banner-bottom'
				
			},
			
			desktop : {
				
				'leaderboard'        : '#leaderboard-top',
				'medium-rectangle-1' : '#medium_rectangle_1-desktop',
				'medium-rectangle-2' : '#medium_rectangle_2-desktop',
				'homepage-block-1'   : '#homepage_block_1-desktop',
				'homepage-block-2'   : '#homepage_block_2-desktop',
				'homepage-block-3'   : '#homepage_block_3-desktop',
				'ros_column-block'   : '#column_block-desktop',
				'ros_leaderboard'    : '#leaderboard-bottom',
				'ros_button-1'       : '#button_1'
				
			},
			
			ros : {
				
				'custom-1' : '#custom_1',
				'button-2' : '#button_2'
				
			}
			
		}
		
	},
	
	methods = {
		
		init : function(options) {
			
			var settings = $.extend({}, defaults, options);
			
			if (settings.api && settings.section) {
				
				// Add '&cache=busted' to the end of the uri for testing newly added ads
				
				var uri = settings.api + (settings.parent ? settings.parent + ':' : '') + settings.section + '/' + (settings.page ? settings.page + '/' : '') + '?callback=?&cache=busted';
				
				if ($.jsonp) {
					<commit_msg>Removed "cache=busted" query string from JS plugin.<commit_after>/*
	@TODO:
		1. Optimize variables (i.e. go back to putting JSON vars in JS vars).
		2. Add comments, Micky style.
		3. ...
*/
;(function($, window, document, undefined) {
	
	"use strict";
	
	var console = window.console || { log : function() {}, warn : function() {} },
	
	defaults = {
		
		api     : 'http://advertising.registerguard.com/manager/',
		parent  : '',
		section : '',
		page    : '',
		cb      : (Math.round(Math.random() * 10000000000000000)),
		
		// Should we move these to the JSON?
		units : {
			
			mobile : {
				
				'mobile-banner'      : '#mobile_banner-top',
				'medium-rectangle-1' : '#medium_rectangle_1-mobile',
				'medium-rectangle-2' : '#medium_rectangle_2-mobile',
				'homepage-block-1'   : '#homepage_block_1-mobile',
				'homepage-block-2'   : '#homepage_block_2-mobile',
				'homepage-block-3'   : '#homepage_block_3-mobile',
				'ros_column-block'   : '#column_block-mobile',
				'ros_mobile-banner'  : '#mobile_banner-bottom'
				
			},
			
			desktop : {
				
				'leaderboard'        : '#leaderboard-top',
				'medium-rectangle-1' : '#medium_rectangle_1-desktop',
				'medium-rectangle-2' : '#medium_rectangle_2-desktop',
				'homepage-block-1'   : '#homepage_block_1-desktop',
				'homepage-block-2'   : '#homepage_block_2-desktop',
				'homepage-block-3'   : '#homepage_block_3-desktop',
				'ros_column-block'   : '#column_block-desktop',
				'ros_leaderboard'    : '#leaderboard-bottom',
				'ros_button-1'       : '#button_1'
				
			},
			
			ros : {
				
				'custom-1' : '#custom_1',
				'button-2' : '#button_2'
				
			}
			
		}
		
	},
	
	methods = {
		
		init : function(options) {
			
			var settings = $.extend({}, defaults, options);
			
			if (settings.api && settings.section) {
				
				// Add '&cache=busted' to the end of the uri for testing newly added ads
				
				var uri = settings.api + (settings.parent ? settings.parent + ':' : '') + settings.section + '/' + (settings.page ? settings.page + '/' : '') + '?callback=?';
				
				if ($.jsonp) {
					
{'fraction_non_alphanumeric': 0.17298864460014496, 'fraction_numerical': 0.02222759120560522, 'mean_word_length': 2.5751295336787563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '2134258', 'n_tokens_mistral': 1818, 'n_tokens_neox': 1426, 'n_words': 260}