<commit_before>define(['marionette', 'views/dialog',
	'collections/datacollections',
	'models/datacollection',
	'modules/mc/views/dcdistl',
	'tpl!templates/dc/reprocess.html', 'tpl!templates/dc/reprocess_dc.html'], function(Marionette, DialogView,
		DataCollections, DataCollection, DCDistlView,
		template, dctemplate) {
	

	var IDDataCollection = DataCollection.extend({
		idAttribute: 'CID',
	})

	var IDDataCollections = DataCollections.extend({
		model: IDDataCollection,
	})

	var DCDistlViewLarge = DCDistlView.extend({
		template: dctemplate,
		intStatus: false,
		className: 'data_collection',

		ui: {
			cells: '.cells',
			a: '.a',
			b: '.bb',
			c: '.c',
			al: '.al',
			be: '.be',
			ga: '.ga',
			sel: '.selection',
		},

		events: {
			'click .cells': 'sendCell',
			'click a.add': 'clone',
			'click a.rem': 'rem',
		},

		rem: function(e) {
			e.preventDefault()
			this.model.collection.remove(this.model)
			this.model.destroy()
		},

		clone: function(e) {
			e.preventDefault()
			this.trigger('clone:dc', this.model)
		},

		setCell: function() {
            if (this.aps.length) {
                var e = this.aps.at(0)
                var c = e.get('CELL')

                this.ui.a.text(c['CELL_A'])
                this.ui.b.text(c['CELL_B'])
                this.ui.c.text(c['CELL_C'])
                this.ui.al.text(c['CELL_AL'])
                this.ui.be.text(c['CELL_BE'])
                this.ui.ga.text(c['CELL_GA'])
            }
        },

        setSelection: function(x1, x2) {
        	DCDistlView.prototype.setSelection.apply(this, arguments)<commit_msg>dont actually want to destroy this model server side<commit_after>define(['marionette', 'views/dialog',
	'collections/datacollections',
	'models/datacollection',
	'modules/mc/views/dcdistl',
	'tpl!templates/dc/reprocess.html', 'tpl!templates/dc/reprocess_dc.html'], function(Marionette, DialogView,
		DataCollections, DataCollection, DCDistlView,
		template, dctemplate) {
	

	var IDDataCollection = DataCollection.extend({
		idAttribute: 'CID',
	})

	var IDDataCollections = DataCollections.extend({
		model: IDDataCollection,
	})

	var DCDistlViewLarge = DCDistlView.extend({
		template: dctemplate,
		intStatus: false,
		className: 'data_collection',

		ui: {
			cells: '.cells',
			a: '.a',
			b: '.bb',
			c: '.c',
			al: '.al',
			be: '.be',
			ga: '.ga',
			sel: '.selection',
		},

		events: {
			'click .cells': 'sendCell',
			'click a.add': 'clone',
			'click a.rem': 'rem',
		},

		rem: function(e) {
			e.preventDefault()
			this.model.collection.remove(this.model)
		},

		clone: function(e) {
			e.preventDefault()
			this.trigger('clone:dc', this.model)
		},

		setCell: function() {
            if (this.aps.length) {
                var e = this.aps.at(0)
                var c = e.get('CELL')

                this.ui.a.text(c['CELL_A'])
                this.ui.b.text(c['CELL_B'])
                this.ui.c.text(c['CELL_C'])
                this.ui.al.text(c['CELL_AL'])
                this.ui.be.text(c['CELL_BE'])
                this.ui.ga.text(c['CELL_GA'])
            }
        },

        setSelection: function(x1, x2) {
        	DCDistlView.prototype.setSelection.apply(this, arguments)
{'fraction_non_alphanumeric': 0.16858475894245722, 'fraction_numerical': 0.0018662519440124418, 'mean_word_length': 2.5535911602209946, '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': '6599123', 'n_tokens_mistral': 1274, 'n_tokens_neox': 1148, 'n_words': 188}