<commit_before>
var loadFlickrPhotos = function(templeItem) {
  var templeName = templeItem.firstChild.innerHTML.split(" ")

  for (var i=0; i<templeName.length; i++){
    templeName[i] += "+"
  }

  var searchTerm = templeName.join("") + "LDS"

  var apiKey = "<KEY>"

  var searchURL = 'https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=' + apiKey + '&text=' + searchTerm + '&format=json&nojsoncallback=1'

  $.ajax({
    type: "GET",
    url: searchURL,
    dataType: "json",
    success: function(serverResponse){

      $.each(serverResponse.photos.photo, function(i, item) {

        var photoURL = 'https://farm' + item.farm + '.staticflickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_b.jpg'

        $(templeItem).append('<a class="photo" href="' + photoURL + '" data-lightbox="' + templeItem.firstChild.innerHTML + '" data-title=' + item.title + '>' + item.title + '</a>')
      })

    }
  })
}<commit_msg>fixes truncated Flickr photo title bug<commit_after>
var loadFlickrPhotos = function(templeItem) {
  var templeName = templeItem.firstChild.innerHTML.split(" ")

  for (var i=0; i<templeName.length; i++){
    templeName[i] += "+"
  }

  var searchTerm = templeName.join("") + "LDS"
  console.log(searchTerm)

  var apiKey = "<KEY>"

  var searchURL = 'https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=' + apiKey + '&text=' + searchTerm + '&format=json&nojsoncallback=1'

  console.log(searchURL)

  $.ajax({
    type: "GET",
    url: searchURL,
    dataType: "json",
    success: function(serverResponse){
      console.log(serverResponse)

      $.each(serverResponse.photos.photo, function(i, item) {
        console.log(item.title)
        var photoURL = 'https://farm' + item.farm + '.staticflickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_b.jpg'

        $(templeItem).append('<a class="photo" href="' + photoURL + '" data-lightbox="' + templeItem.firstChild.innerHTML + '" data-title="' + item.title + '">' + item.title + '</a>')
      })
    }
  })
}
{'fraction_non_alphanumeric': 0.19008264462809918, 'fraction_numerical': 0.0019445794846864365, 'mean_word_length': 3.493449781659389, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '2928578', 'n_tokens_mistral': 736, 'n_tokens_neox': 696, 'n_words': 125}