<commit_before>var SpecialFolderView = Backbone.View.extend({
	tagName: "li",
	template: _.template($('#tmpl-special-folder').html(), null, {variable:'folder'}),
	events: {
		'click .folderTitle' : 'selectFolder'
	},
	initialize: function() {
		_.bindAll(this);
		this.listenTo(this.model, 'change', this.render);
		this.listenTo(this.model, 'destroy', this.remove);
	},
	render: function() {
		this.$el.html(this.template(this.model.attributes));
		return this;
	},
	selectFolder: function() {
		router.navigate(this.model.get('route'), {trigger: true});
	}<commit_msg>Switch the special folder view to Marionette.ItemView<commit_after>var SpecialFolderView = Backbone.Marionette.ItemView.extend({
	tagName: "li",
	template: '#tmpl-special-folder',
	events: {
		'click .folderTitle' : 'selectFolder'
	},
	modelEvents: {
		'change': 'render',
		'destroy': 'remove'
	},
	serializeData: function() {
		return {'folder': this.model.attributes};
    },

	selectFolder: function() {
		router.navigate(this.model.get('route'), {trigger: true});
	}
{'fraction_non_alphanumeric': 0.1834774255523535, 'fraction_numerical': 0.0, 'mean_word_length': 5.315151515151515, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5877843', 'n_tokens_mistral': 362, 'n_tokens_neox': 347, 'n_words': 64}