<commit_before>define([
	'topic',
	'toolsmodel'
], function (topic, ToolsModel) {
	'use strict';

	var _slider;

	var Controller = {

		show: function () {
			var self = this;
			// If slider has not been initialized, do so now
			if (_slider === undefined) {
				_slider = $("#tree-cover-slider").ionRangeSlider({
				    values: [0, 10, 15, 20, 25, 30, 50, 75, 100],
				    from_min: 1,
				    from_max: 7,
				    grid: true,
				    from: 5,
				    onFinish: self.updateTCDValue
				});
			}

			$('.tree-cover-dialog').addClass('active');
		},

		hide: function () {
			$('.tree-cover-dialog').removeClass('active');
		},

		/**
		* Update a value in the model
		* @param {object} data - Data object from the sliders onFinish method
		*/
		updateTCDValue: function (data) {
			var model = ToolsModel.getVM();<commit_msg>formatting fix<commit_after>define([
	'topic',
	'toolsmodel'
], function (topic, ToolsModel) {
	'use strict';

	var _slider;

	var Controller = {

		show: function () {
			var self = this;
			// If slider has not been initialized, do so now
			if (_slider === undefined) {
				_slider = $("#tree-cover-slider").ionRangeSlider({
					values: [0, 10, 15, 20, 25, 30, 50, 75, 100],
					from_min: 1,
					from_max: 7,
					grid: true,
					from: 5,
					onFinish: self.updateTCDValue
				});
			}

			$('.tree-cover-dialog').addClass('active');
		},

		hide: function () {
			$('.tree-cover-dialog').removeClass('active');
		},

		/**
		* Update a value in the model
		* @param {object} data - Data object from the sliders onFinish method
		*/
		updateTCDValue: function (data) {
			var model = ToolsModel.getVM();
{'fraction_non_alphanumeric': 0.15985356924954242, 'fraction_numerical': 0.025625381330079317, 'mean_word_length': 2.7962962962962963, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7481007', 'n_tokens_mistral': 701, 'n_tokens_neox': 540, 'n_words': 154}