<commit_before>this.GobiertoBudgets.ReceiptController = (function() {

  function ReceiptController() {}

  ReceiptController.prototype.show = function(options){
    _receiptCalculator(options);
    _budgetLinesMenu();
  };

  function _budgetLinesMenu() {
    $('.bill_row').on('click', function() {
      $(this)
      .toggleClass('toggled')
      .find('.fa').toggleClass('fa-plus fa-minus')
      .parent().siblings('.children').toggleClass('hidden');
    }).find('.children').click(function(e) {
      return false;
    });
  }

  function _receiptCalculator(options) {
    var app = new Vue({
      el: '#taxes_receipt',
      name: 'taxes-receipt',
      data: function() {
        return {
          locale: I18n.locale,
          data: options.receiptConfiguration.budgets_simulation_sections || [],
          selected: []
        }
      },
      mounted: function() {
        this.selected = Array(this.data.length).fill(0);
      },
      computed: {
        total () {
          return _.sum(this.selected);
        }
      },
      methods: {<commit_msg>ES5 syntax<commit_after>this.GobiertoBudgets.ReceiptController = (function() {

  function ReceiptController() {}

  ReceiptController.prototype.show = function(options){
    _receiptCalculator(options);
    _budgetLinesMenu();
  };

  function _budgetLinesMenu() {
    $('.bill_row').on('click', function() {
      $(this)
      .toggleClass('toggled')
      .find('.fa').toggleClass('fa-plus fa-minus')
      .parent().siblings('.children').toggleClass('hidden');
    }).find('.children').click(function(e) {
      return false;
    });
  }

  function _receiptCalculator(options) {
    var app = new Vue({
      el: '#taxes_receipt',
      name: 'taxes-receipt',
      data: function() {
        return {
          locale: I18n.locale,
          data: options.receiptConfiguration.budgets_simulation_sections || [],
          selected: []
        }
      },
      mounted: function() {
        this.selected = Array(this.data.length).fill(0);
      },
      computed: {
        total: function() {
          return _.sum(this.selected);
        }
      },
      methods: {
{'fraction_non_alphanumeric': 0.1571828358208955, 'fraction_numerical': 0.0032649253731343282, 'mean_word_length': 2.482142857142857, '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': '2407441', 'n_tokens_mistral': 675, 'n_tokens_neox': 642, 'n_words': 96}