<commit_before>'use strict';
angular.module('cm.controllers').controller('VisualisationCtrl', function($scope, $filter, dataFactory, config, teams) {
  var d = {};
  $scope.showDetailPane = function(item) {
    $scope.$apply(function() {
      if (!$scope.showDetailPanel)
        $scope.showDetailPanel = true;
      $scope.detailItem = item;
      console.log(item);
    });
  };

  $scope.data = {};
  dataFactory.getAllData().then(function(data){
    d = data;
    $scope.data = data;
  });

  $scope.config = {
    baseColor: config.colors[0]
    ,position: config.positions[0]
    ,metrics: {
      'barHeight': 'pm'
      ,'barColor': 'salary'
    }
  }

  $scope.$on('metricsUpdated', function(event, barHeight, barColor) {
    $scope.config.metrics = {
      'barHeight': barHeight.name<commit_msg>Removed unecessary clone of data<commit_after>'use strict';
angular.module('cm.controllers').controller('VisualisationCtrl', function($scope, $filter, dataFactory, config, teams) {
  $scope.showDetailPane = function(item) {
    $scope.$apply(function() {
      if (!$scope.showDetailPanel)
        $scope.showDetailPanel = true;
      $scope.detailItem = item;
      console.log(item);
    });
  };

  $scope.data = {};
  dataFactory.getAllData().then(function(data){
    $scope.data = data;
  });

  $scope.config = {
    baseColor: config.colors[0]
    ,position: config.positions[0]
    ,metrics: {
      'barHeight': 'pm'
      ,'barColor': 'salary'
    }
  }

  $scope.$on('metricsUpdated', function(event, barHeight, barColor) {
    $scope.config.metrics = {
      'barHeight': barHeight.name
{'fraction_non_alphanumeric': 0.16822429906542055, 'fraction_numerical': 0.0024922118380062306, 'mean_word_length': 3.412087912087912, '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': '4027442', 'n_tokens_mistral': 526, 'n_tokens_neox': 517, 'n_words': 85}