<commit_before>
var PolicyBarChartView = BaseChartView.extend({
  initialize : function() {
    this.initialize_defaults();
  },

  render : function() {
    this.clear_container();

    InitializePolicyBar(this.model.get("container"), 
      this.result_serie1(), 
      this.result_serie2(), 
      this.ticks(), 
      this.model.series.length, 
      this.parsed_unit(), 
      this.axis_scale(),
      this.model.colors(), 
      this.model.labels());
  },

  result_serie1 : function() {
    return _.flatten(this.model.value_pairs());
  },

  result_serie2 : function() {
    return _.map(this.result_serie1(), function(r) {
      return 100 - r;
    });
  },

  ticks : function() {
    var ticks = [];
    this.model.series.each(function(serie) {
      // RD: when updating jqplot to version 720+ the ticks should not be in an array!
      ticks.push([ serie.result()[0][0] ]);
      ticks.push([ serie.result()[1][0] ]);
    });
    return ticks;
  } 
});<commit_msg>updated policy bar to new jqplot version<commit_after>
var PolicyBarChartView = BaseChartView.extend({
  initialize : function() {
    this.initialize_defaults();
  },

  render : function() {
    this.clear_container();

    InitializePolicyBar(this.model.get("container"), 
      this.result_serie1(), 
      this.result_serie2(), 
      this.ticks(), 
      this.model.series.length, 
      this.parsed_unit(), 
      this.axis_scale(),
      this.model.colors(), 
      this.model.labels());
  },

  result_serie1 : function() {
    return _.flatten(this.model.value_pairs());
  },

  result_serie2 : function() {
    return _.map(this.result_serie1(), function(r) {
      return 100 - r;
    });
  },

  ticks : function() {
    var ticks = [];
    this.model.series.each(function(serie) {
      ticks.push(serie.result()[0][0]);
      ticks.push(serie.result()[1][0]);
    });
    return ticks;
  } 
});
{'fraction_non_alphanumeric': 0.1627783669141039, 'fraction_numerical': 0.014316012725344645, 'mean_word_length': 2.781563126252505, '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': '523601', 'n_tokens_mistral': 637, 'n_tokens_neox': 617, 'n_words': 103}