<commit_before>'use strict';

blurAdminApp.directive('amChart', function () {
  return {
    restrict: 'E',
    controller: ['$scope', function ($scope) {
      var chartData = [
        { date: new Date(2012, 11), value: 0},
        { date: new Date(2013, 0), value: 15000},
        { date: new Date(2013, 1), value: 30000},


        { date: new Date(2013, 2), value: 25000},
        { date: new Date(2013, 3), value: 21000},
        { date: new Date(2013, 4), value: 24000},
        { date: new Date(2013, 5), value: 31000},
        { date: new Date(2013, 6), value: 40000},
        { date: new Date(2013, 7), value: 37000},
        { date: new Date(2013, 8), value: 18000},
        { date: new Date(2013, 9), value: 5000},
        { date: new Date(2013, 10), value: 40000},
        { date: new Date(2013, 11), value: 20000},
        { date: new Date(2014, 0), value: 5000},

        { date: new Date(2014, 1), value: 3000},
        { date: new Date(2014, 2), value: 1800},
        { date: new Date(2014, 3), value: 10400},
        { date: new Date(2014, 4), value: 25500},
        { date: new Date(2014, 5), value: 2100},
        { date: new Date(2014, 6), value: 6500},
        { date: new Date(2014, 7), value: 1100},
        { date: new Date(2014, 8), value: 17200},
        { date: new Date(2014, 9), value: 26900},
        { date: new Date(2014, 10), value: 14100},
        { date: new Date(2014, 11), value: 35300},
        { date: new Date(2015, 0), value: 54800},
        { date: new Date(2015, 1), value: 49800}
      ];

      var chart = AmCharts.makeChart('amchart', {
        type: 'serial',
        theme: 'blur',
        marginTop: 15,
        marginRight: 15,
        dataProvider: chartData,
        valueAxes: [
          {
            minVerticalGap: 50,
            gridAlpha: 0
          }
        ],
        graphs: [
          {
            id: 'g1',
            bullet: 'none',
            //bulletSize: 8,
            useLineColorForBulletBorder: true,
            lineColor: colorPrimary,
            lineThickness: 1,
            negativeLineColor: colorDanger,
            type: 'smoothedLine',
            valueField: 'value',
            fillAlphas: 1,
            fillColorsField: 'lineColor'
          }
        ],
/*        chartScrollbar: {
          graph: 'g1',
          gridAlpha: 0,
          color: '#FF0000',
          scrollbarHeight: 55,
          backgroundAlpha: 0,
          selectedBackgroundAlpha: 0.1,
          selectedBackgroundColor: '#ffffff',
          graphFillAlpha: 0,
          autoGridCount: true,
          selectedGraphFillAlpha: 0,
          graphLineAlpha: 0.2,
          graphLineColor: '#c2c2c2',
          selectedGraphLineColor: '#888888',<commit_msg>fix(dashboard): add another chart for revenue<commit_after>'use strict';

blurAdminApp.directive('amChart', function () {
  return {
    restrict: 'E',
    controller: ['$scope', function ($scope) {
      var chartData = [
        { date: new Date(2012, 11), value: 0, value0: 0 },
        { date: new Date(2013, 0), value: 15000, value0: 19000},
        { date: new Date(2013, 1), value: 30000, value0: 20000},


        { date: new Date(2013, 2), value: 25000, value0: 22000},
        { date: new Date(2013, 3), value: 21000, value0: 25000},
        { date: new Date(2013, 4), value: 24000, value0: 29000},
        { date: new Date(2013, 5), value: 31000, value0: 26000},
        { date: new Date(2013, 6), value: 40000, value0: 25000},
        { date: new Date(2013, 7), value: 37000, value0: 20000},
        { date: new Date(2013, 8), value: 18000, value0: 22000},
        { date: new Date(2013, 9), value: 5000, value0: 26000},
        { date: new Date(2013, 10), value: 40000, value0: 30000},
        { date: new Date(2013, 11), value: 20000, value0: 25000},
        { date: new Date(2014, 0), value: 5000, value0: 13000},

        { date: new Date(2014, 1), value: 3000, value0: 13000},
        { date: new Date(2014, 2), value: 1800, value0: 13000},
        { date: new Date(2014, 3), value: 10400, value0: 13000},
        { date: new Date(2014, 4), value: 25500, value0: 13000},
        { date: new Date(2014, 5), value: 2100, value0: 13000},
        { date: new Date(2014, 6), value: 6500, value0: 13000},
        { date: new Date(2014, 7), value: 1100, value0: 13000},
        { date: new Date(2014, 8), value: 17200, value0: 13000},
        { date: new Date(2014, 9), value: 26900, value0: 13000},
        { date: new Date(2014, 10), value: 14100, value0: 13000},
        { date: new Date(2014, 11), value: 35300, value0: 13000},
        { date: new Date(2015, 0), value: 54800, value0: 13000},
        { date: new Date(2015, 1), value: 49800, value0: 13000}
      ];

      var chart = AmCharts.makeChart('amchart', {
        type: 'serial',
        theme: 'blur',
        marginTop: 15,
        marginRight: 15,
        dataProvider: chartData,
        valueAxes: [
          {
            minVerticalGap: 50,
            gridAlpha: 0
          }
        ],
        graphs: [
          {
            id: 'g0',
            bullet: 'none',
            useLineColorForBulletBorder: true,
            lineColor: colorDefault,
            lineThickness: 1,
            negativeLineColor: colorDanger,
            type: 'smoothedLine',
            valueField: 'value0',
            fillAlphas: 1,
            fillColorsField: 'lineColor'
          },
          {
            id: 'g1',
            bullet: 'none',
            useLineColorForBulletBorder: true,
            lineColor: colorPrimary,
            lineThickness: 1,
            negativeLineColor: colorDanger,
            type: 'smoothedLine',
            valueField: 'value',
            fillAlphas: 1,
            fillColorsField: 'lineColor'
          }
        ],
/*        chartScrollbar: {
          graph: 'g1',
          gridAlpha: 0,
          color: '#FF0000',
          scrollbarHeight: 55,
          backgroundAlpha: 0,
          selectedBackgroundAlpha: 0.1,
          selectedBackgroundColor: '#ffffff',
          graphFillAlpha: 0,
          autoGridCount: true,
          selectedGraphFillAlpha: 0,
          graphLineAlpha: 0.2,
          graphLineColor: '#c2c2c2',
          selectedGraphLineColor: '#888888',
{'fraction_non_alphanumeric': 0.13911225474429076, 'fraction_numerical': 0.1220649726600193, 'mean_word_length': 1.9543942992874108, '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': '6265640', 'n_tokens_mistral': 2527, 'n_tokens_neox': 1932, 'n_words': 562}