<commit_before>(function(cloudStack, $, testData) {
  $.extend(window.cloudStack, testData, {
    home: 'dashboard',

    sectionPreFilter: function(args) {
      if(isAdmin()) {
        return ["dashboard", "instances", "storage", "network", "templates", "accounts", "domains", "events", "system", "global-settings", "configuration", "projects"];
      }
      else if(isDomainAdmin()) {
        return ["dashboard", "instances", "storage", "network", "templates", "accounts", "domains", "events", "projects"];
      }
      else { //normal user
        return ["dashboard", "instances", "storage", "network", "templates", "events", "projects"];
      }
    },
    sections: {
      /**
       * Dashboard
       */
      dashboard: {},
      //'dashboard-user': {},
      instances: {},
      storage: {},
      network: {},
      templates: {},
      accounts: {},
      domains: {},
      events: {},
      system: {},
      projects: {},
      'global-settings': {},
      configuration: {}
    }
  });

  $(function() {
    /**
     * Generic error handling
     */
    $.ajaxSetup({
      cache: false,
      error: function(data) {
        cloudStack.dialog.notice({ message: parseXMLHttpResponse(data) });
      }
    });<commit_msg>Set AJAX defaults to always use JSON and async<commit_after>(function(cloudStack, $, testData) {
  $.extend(window.cloudStack, testData, {
    home: 'dashboard',

    sectionPreFilter: function(args) {
      if(isAdmin()) {
        return ["dashboard", "instances", "storage", "network", "templates", "accounts", "domains", "events", "system", "global-settings", "configuration", "projects"];
      }
      else if(isDomainAdmin()) {
        return ["dashboard", "instances", "storage", "network", "templates", "accounts", "domains", "events", "projects"];
      }
      else { //normal user
        return ["dashboard", "instances", "storage", "network", "templates", "events", "projects"];
      }
    },
    sections: {
      /**
       * Dashboard
       */
      dashboard: {},
      //'dashboard-user': {},
      instances: {},
      storage: {},
      network: {},
      templates: {},
      accounts: {},
      domains: {},
      events: {},
      system: {},
      projects: {},
      'global-settings': {},
      configuration: {}
    }
  });

  $(function() {
    /**
     * Generic error handling
     */
    $.ajaxSetup({
      async: true,
      dataType: 'json',
      cache: false,
      error: function(data) {
        cloudStack.dialog.notice({ message: parseXMLHttpResponse(data) });
      }
    });
{'fraction_non_alphanumeric': 0.18984375, 'fraction_numerical': 0.0, 'mean_word_length': 2.446837146702557, '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': '3482331', 'n_tokens_mistral': 725, 'n_tokens_neox': 729, 'n_words': 156}