<commit_before>'use strict';

/**
 * @ngdoc directive
 * @name midjaApp.directive:googlechart
 * @description
 * # googlechart
 */
angular.module('midjaApp')
  .directive('googlechart', function(dataService) {
    return {
      template: '<div style="height:{{ minHeight }}px;"></div>',
      restrict: 'E',
      link: link,
      replace: true,
      scope: {
        data: '=',
        chartobj: '='
      }
    };

    function link(scope, element, attrs) {

      var minHeight = 500;

      // export a chartobj back for triggers
      scope.chartobj = {};

      activate();

      scope.chartobj.redraw = redraw;

      function activate() {
        scope.minHeight = minHeight;
        scope.$watch('data', drawStuff);<commit_msg>Remove unneeded import of dataService<commit_after>'use strict';

/**
 * @ngdoc directive
 * @name midjaApp.directive:googlechart
 * @description
 * # googlechart
 */
angular.module('midjaApp')
  .directive('googlechart', function() {
    return {
      template: '<div style="height:{{ minHeight }}px;"></div>',
      restrict: 'E',
      link: link,
      replace: true,
      scope: {
        data: '=',
        chartobj: '='
      }
    };

    function link(scope, element, attrs) {

      var minHeight = 500;

      // export a chartobj back for triggers
      scope.chartobj = {};

      activate();

      scope.chartobj.redraw = redraw;

      function activate() {
        scope.minHeight = minHeight;
        scope.$watch('data', drawStuff);
{'fraction_non_alphanumeric': 0.14735432016075017, 'fraction_numerical': 0.004018754186202277, 'mean_word_length': 2.4663573085846866, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1350398', 'n_tokens_mistral': 463, 'n_tokens_neox': 445, 'n_words': 101}