<commit_before>(function (angular) {

  angular.module('angular-keenio.directives')

    .directive('tbkKeenMetric', [function () {
      var d = {
        scope: {
          query: '=',
          title: '@',
          width: '@',
          height: '@',
          chartOptions: '=?',
          colors: '=?'
        },
        template:
        '<div data-tbk-keen-chart="metric" ' +
        ' title="{{title}}" ' +
        ' query="query" ' +
        ' height="{{height}}" ' +
        ' width="{{width}}" ' +
        ' chart-options="chartOptions" ' +<commit_msg>Fixed the Keen metric chart colors value<commit_after>(function (angular) {

  angular.module('angular-keenio.directives')

    .directive('tbkKeenMetric', [function () {
      var d = {
        scope: {
          query: '=',
          title: '@',
          width: '@',
          height: '@',
          chartOptions: '=?',
          colors: '=?'
        },
        controller: ['$scope', function($scope) {
          $scope.colors = $scope.colors || [];
        }],
        template:
        '<div data-tbk-keen-chart="metric" ' +
        ' title="{{title}}" ' +
        ' query="query" ' +
        ' height="{{height}}" ' +
        ' width="{{width}}" ' +
        ' chart-options="chartOptions" ' +
{'fraction_non_alphanumeric': 0.1988906497622821, 'fraction_numerical': 0.0, 'mean_word_length': 1.7758241758241757, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4430470', 'n_tokens_mistral': 386, 'n_tokens_neox': 383, 'n_words': 55}