<commit_before>var TopNavBar = require('../views/topbar_view');

Controller = {

	app : {
		layout : function() {
			var topnavbar = new TopNavBar();
			$('#navigation-container').append(topnavbar.render().el);
		}
	},

	graph : {
		view : function() {
			var GraphView = require('../views/graph_view');
			var graphView = new GraphView();
			 	$('#mainDiv').html(graphView.render().el);
    			graphView.renderGraph();
		}
	},

	twod : {
		view : function() {
			var TwoD = require('../views/2D_Distribution_view');
			var twoDView = new TwoD();
			$('#mainDiv').html(twoDView.render().el);
		}
	},

	home : {
		view : function() {
			var HomeView = require('../views/home_view');
			var homeView = new HomeView();
			$('#mainDiv').html(homeView.render().el);
		}	
	},

};

module.exports = Controller;<commit_msg>adding controller for drawing 2d<commit_after>var TopNavBar = require('../views/topbar_view');

Controller = {

	app : {
		layout : function() {
			var topnavbar = new TopNavBar();
			$('#navigation-container').append(topnavbar.render().el);
		}
	},

	graph : {
		view : function() {
			var GraphView = require('../views/graph_view');
			var graphView = new GraphView();
			 	$('#mainDiv').html(graphView.render().el);
    			graphView.renderGraph();
		}
	},

	twod : {
		view : function(label1,label2) {
			var TwoD = require('../views/2D_Distribution_view');
			var FL = require('../models/featureList');

			var fl = new FL({websvc: '/endpoints/filter_by_id?filepath=%2Ffeature_matrices%2F2012_09_18_0835__cons.fm&IDs=',
						feature_list : [label1, label2]});
			var twoDView = new TwoD({collection: fl});
			fl.fetch();
			$('#mainDiv').html(twoDView.render().el);
		}
	},

	home : {
		view : function() {
			var HomeView = require('../views/home_view');
			var homeView = new HomeView();
			$('#mainDiv').html(homeView.render().el);
		}	
	},


};

module.exports = Controller;
{'fraction_non_alphanumeric': 0.19336143308746048, 'fraction_numerical': 0.011064278187565859, 'mean_word_length': 3.5, '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': '6137951', 'n_tokens_mistral': 750, 'n_tokens_neox': 652, 'n_words': 112}