<commit_before>var _gaq = _gaq || [];
_gaq.push(['_setAccount', '##']);
_gaq.push(['_trackEvent', 'extension_version', chrome.app.getDetails().version]);
_gaq.push(['_trackPageview']);

(function () {
	var ga = document.createElement('script');
	ga.type = 'text/javascript';
	ga.async = true;
	ga.src = 'https://ssl.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0];
	s.parentNode.insertBefore(ga, s);
})();

var application = (function () {
	var
		defaultOptions = {
			'username': {
				'random': true,
				'constants': []
			},
			'password': {
				'random': false,
				'constant': 'enterhere'
			},
			'email': {
				'username_random': true,
				'username_constants': ['jack', 'sparrow', 'frodo', 'baggins'],
				'hostname_random': false,
				'hostname_constants': ['gmail.com', 'yahoo.com', 'live.com', 'hotmail.com']
			},
			'ignore_fields': ['captcha'],
			'field_types': {
				'confirm': ['confirm', 'reenter', 'retype'],
				'email': ['email'],
				'number': ['integer', 'number', 'numeric', 'price', 'qty', 'quantity', 'zip'],
				'telephone': ['phone', 'fax'],
				'website': ['website'],
				'date': ['date'],
				'day': ['day'],
				'month': ['month'],
				'year': ['year']
			}
		};

	return {
		getOptions: function () {
			var opt = localStorage['options'];
			if (!opt) {
				return defaultOptions;
			}
			else {
				return JSON.parse(opt);
			}
		},

		getDefaultOptions: function () {
			return defaultOptions;
		},

		setOptions: function (options) {
			localStorage['options'] = JSON.stringify(options);
		},

		showUpgradeMessage: function () {
			var
				previousVersion = localStorage['version'],
				currentVersion = chrome.app.getDetails().version;

			if (currentVersion != previousVersion) {
				if (typeof previousVersion == 'undefined') {
					localStorage['options'] = JSON.stringify(defaultOptions);
				} else {
					// Update<commit_msg>Added recaptcha to list of ignored fields.<commit_after>var _gaq = _gaq || [];
_gaq.push(['_setAccount', '##']);
_gaq.push(['_trackEvent', 'extension_version', chrome.app.getDetails().version]);
_gaq.push(['_trackPageview']);

(function () {
	var ga = document.createElement('script');
	ga.type = 'text/javascript';
	ga.async = true;
	ga.src = 'https://ssl.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0];
	s.parentNode.insertBefore(ga, s);
})();

var application = (function () {
	var
		defaultOptions = {
			'username': {
				'random': true,
				'constants': []
			},
			'password': {
				'random': false,
				'constant': 'enterhere'
			},
			'email': {
				'username_random': true,
				'username_constants': ['jack', 'sparrow', 'frodo', 'baggins'],
				'hostname_random': false,
				'hostname_constants': ['gmail.com', 'yahoo.com', 'live.com', 'hotmail.com']
			},
			'ignore_fields': ['captcha', 'hipinputtext'],
			'field_types': {
				'confirm': ['confirm', 'reenter', 'retype'],
				'email': ['email'],
				'number': ['integer', 'number', 'numeric', 'price', 'qty', 'quantity', 'zip'],
				'telephone': ['phone', 'fax'],
				'website': ['website'],
				'date': ['date'],
				'day': ['day'],
				'month': ['month'],
				'year': ['year']
			}
		};

	return {
		getOptions: function () {
			var opt = localStorage['options'];
			if (!opt) {
				return defaultOptions;
			}
			else {
				return JSON.parse(opt);
			}
		},

		getDefaultOptions: function () {
			return defaultOptions;
		},

		setOptions: function (options) {
			localStorage['options'] = JSON.stringify(options);
		},

		showUpgradeMessage: function () {
			var
				previousVersion = localStorage['version'],
				currentVersion = chrome.app.getDetails().version;

			if (currentVersion != previousVersion) {
				if (typeof previousVersion == 'undefined') {
					localStorage['options'] = JSON.stringify(defaultOptions);
				}
				else {
					// Update
{'fraction_non_alphanumeric': 0.20326678765880218, 'fraction_numerical': 0.0005185377236193933, 'mean_word_length': 3.7806691449814127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3591916', 'n_tokens_mistral': 1525, 'n_tokens_neox': 1264, 'n_words': 250}