<commit_before>Checklist.SAPIAdapter = DS.Adapter.extend({
  findAll: function(store, type) {
    var url = this.url + type.collectionUrl;
    jQuery.getJSON(url, {format: 'json', jsoncallback: '?'}, function(data) {
      // data is an Array of Hashes in the same order as the original
      // Array of IDs. If your server returns a root, simply do something
      // like:
      // store.loadMany(type, ids, data.people)
      store.loadMany(type, data);
    });
  },
  findQuery: function(store, type, query, modelArray) {
    var url = this.url + type.collectionUrl;
    jQuery.getJSON(url, query, function(data) {
        // data is expected to be an Array of Hashes, in an order
        // determined by the server. This order may be specified in
        // the query, and will be reflected in the view.
        //
        // If your server returns a root, simply do something like:
        // modelArray.load(data.people)
        modelArray.load(data);
    });
  }
});<commit_msg>added alternative request method for IE<commit_after>Checklist.SAPIAdapter = DS.Adapter.extend({
  findAll: function(store, type) {
    var url = this.url + type.collectionUrl;
/*
    jQuery.getJSON(url, {format: 'json', jsoncallback: '?'}, function(data) {
      // data is an Array of Hashes in the same order as the original
      // Array of IDs. If your server returns a root, simply do something
      // like:
      // store.loadMany(type, ids, data.people)
      store.loadMany(type, data);
    });
*/

    if($.browser.msie && window.XDomainRequest) {
      alert('hello');
      // Use Microsoft XDR
      var xdr = new XDomainRequest();
      xdr.open("get", url);
      xdr.onerror = function(){
        alert('error');
      }
      xdr.onload = function () {
        var JSON = $.parseJSON(xdr.responseText);
        if (JSON == null || typeof (JSON) == 'undefined')
        {
            JSON = $.parseJSON(data.firstChild.textContent);
        }
        store.loadMany(type, JSON);
      };
      xdr.send();
    } else {
      $.ajax({
        type : "GET",
        url : url,
        dataType : "json",
        data : {
          format : 'json',
          jsoncallback : '?'
        },
        //cache: false, // don't cache the result
        //contentType: "application/json", //tell the server we're looking for json
        success : function(data) {
          store.loadMany(type, data);
        },
        error : function(xhr, status, error) {
          alert(xhr.status);
        }
      });
    }

  },
  findQuery: function(store, type, query, modelArray) {
    var url = this.url + type.collectionUrl;
    jQuery.getJSON(url, $.extend(query, {format: 'json', jsoncallback: '?'}), function(data) {
        // data is expected to be an Array of Hashes, in an order
        // determined by the server. This order may be specified in
        // the query, and will be reflected in the view.
        //
        // If your server returns a root, simply do something like:
        // modelArray.load(data.people)
        modelArray.load(data);
    });
  }
});
{'fraction_non_alphanumeric': 0.131227613155324, 'fraction_numerical': 0.0, 'mean_word_length': 2.154004106776181, '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': '3373588', 'n_tokens_mistral': 897, 'n_tokens_neox': 889, 'n_words': 275}