<commit_before>//Variable global avec tous les modules
var App = {}

// Configure le path pour les bower_components
requirejs.config({
  paths: {
    'localstorage': '../bower_components/local-storage-api/dist/storage.min',
    'jquery': '../bower_components/jquery/dist/jquery.min',
    'jquery-ui': '../bower_components/jquery-ui/jquery-ui.min',
    'vue': '../bower_components/vue/dist/vue.min',
    'jquery.ui.touch-punch': '../bower_components/jquery-ui-touch-punch-improved/jquery.ui.touch-punch-improved',
    'tablesorter': '../bower_components/tablesorter/jquery.tablesorter.min',
    'notify-me': '../bower_components/notify.me/dist/js/notify-me',
    'popup': '../bower_components/popupjs/dist/popup.min'
  }
})

// Charge les modules
requirejs([
  'localstorage',
  'jquery',
  'jquery-ui',
  'vue'
], function (ls, jq, ui, v) {
  App.Vue = v
  App.ls = new Storage()
  requirejs([
    'jquery.ui.touch-punch',
    'tablesorter',
    'notify-me',
    'popup'
  ], function () {
    requirejs(['loading', 'top-menu'], function () {
      App.Loading.hide()
    })
  })
})<commit_msg>app as a class<commit_after>function App () {
  var self = this
  // Configure le path pour les bower_components
  requirejs.config({
    paths: {
      'localstorage': '../bower_components/local-storage-api/dist/storage.min',
      'jquery': '../bower_components/jquery/dist/jquery.min',
      'jquery-ui': '../bower_components/jquery-ui/jquery-ui.min',
      'vue': '../bower_components/vue/dist/vue.min',
      'jquery.ui.touch-punch': '../bower_components/jquery-ui-touch-punch-improved/jquery.ui.touch-punch-improved',
      'tablesorter': '../bower_components/tablesorter/jquery.tablesorter.min',
      'notify-me': '../bower_components/notify.me/dist/js/notify-me',
      'popup': '../bower_components/popupjs/dist/popup.min'
    }
  })

  // Charge les modules
  requirejs([
    'localstorage',
    'jquery',
    'jquery-ui',
    'vue'
  ], function (ls, jq, ui, v) {
    self.Vue = v
    self.Storage = new Storage()
    requirejs([
      'jquery.ui.touch-punch',
      'tablesorter',
      'notify-me',
      'popup'
    ], function () {
      requirejs(['loading', 'top-menu'], function () {
        self.Loading.hide()

        $(window).bind('hashchange', function () {
          self.hash = document.location.hash.substring(1)
        })
      })
    })
  })
}

// Variable global avec tous les modules
var App = new App()
{'fraction_non_alphanumeric': 0.18477366255144034, 'fraction_numerical': 0.00041152263374485596, 'mean_word_length': 2.864864864864865, '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': '6478274', 'n_tokens_mistral': 824, 'n_tokens_neox': 814, 'n_words': 134}