<commit_before>angular.module('dcs.directives').directive('cleanSidebarInspect', ['$rootScope', 'session', function($rootScope, session) {
	return {
		restrict: 'E',
		scope: true,
		templateUrl: "directives/clean.sidebar.inspect.html",
		link: function(scope, element, attr) {
			scope.$watch('selectedCells', function(newSelection, oldSelection)
			{
				scope.update();
			}, true);

			$rootScope.$watch('dataTypes', function(newVal, oldVal)
			{
				scope.update()
			}, true);

			scope.update = function()
			{
				if (scope.selectedCells != undefined) {
					scope.columnName = scope.columns[scope.selectedCells.columnStart];<commit_msg>Fix selecting a cell selects the whole column<commit_after>angular.module('dcs.directives').directive('cleanSidebarInspect', ['$rootScope', 'session', function($rootScope, session) {
	return {
		restrict: 'E',
		scope: true,
		templateUrl: "directives/clean.sidebar.inspect.html",
		link: function(scope, element, attr) {
			scope.$watch('selectedCells', function(newSelection, oldSelection)
			{
				scope.update();
			}, true);

			$rootScope.$watch('dataTypes', function(newVal, oldVal)
			{
				scope.update()
			}, true);

			scope.update = function()
			{
				console.log(scope.selectedCells)
				scope.shouldUpdate = typeof scope.selectedCells === 'object' ? scope.selectionIsColumn(scope.selectedCells) : false;
				if (scope.shouldUpdate) {
					scope.columnName = scope.columns[scope.selectedCells.columnStart];
{'fraction_non_alphanumeric': 0.15211459754433834, 'fraction_numerical': 0.0, 'mean_word_length': 4.708171206225681, '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': '2397225', 'n_tokens_mistral': 529, 'n_tokens_neox': 443, 'n_words': 78}