<commit_before>var APILightbox = window.APILightbox ? window.APILightbox : {};

// function called by eval-ing response from Flickr
function jsonFlickrApi(response) {
  if(response.stat == 'ok') {
    APILightbox.populateResults(response);
  }
}

APILightbox = {
  flickrApiKey:      '7b491816b7ce18f1f848e52962352ee7',
  flickrRestUrlBase: 'https://www.flickr.com/services/rest/',
  searchText:        'delphinium',
  currentPhotoIndex: 0,
  maxPhotoIndex:     24,
  photos:            {},

  utils: {
    ajax: function(method, url, data, callback) {
      var xhr = new XMLHttpRequest();
      xhr.onreadystatechange = readystatechange;
      xhr.open(method, url);<commit_msg>Add type to ajax function.<commit_after>var APILightbox = window.APILightbox ? window.APILightbox : {};

// function called by eval-ing response from Flickr
function jsonFlickrApi(response) {
  if(response.stat == 'ok') {
    APILightbox.populateResults(response);
  }
}

APILightbox = {
  flickrApiKey:      '7b491816b7ce18f1f848e52962352ee7',
  flickrRestUrlBase: 'https://www.flickr.com/services/rest/',
  searchText:        'delphinium',
  currentPhotoIndex: 0,
  maxPhotoIndex:     24,
  photos:            {},

  utils: {
    ajax: function(method, url, data, callback, type) {
      var xhr = new XMLHttpRequest();
      xhr.onreadystatechange = readystatechange;
      xhr.responseType = type ? type : "";
      xhr.open(method, url);
{'fraction_non_alphanumeric': 0.12165963431786217, 'fraction_numerical': 0.03656821378340366, 'mean_word_length': 3.4889589905362777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6237229', 'n_tokens_mistral': 527, 'n_tokens_neox': 489, 'n_words': 91}