<commit_before>
function getImageDataListFromJSON(json) {
	var imageDataList = [];
	for (var i = 0, k = i + 1, l = json.feed.entry.length; i < l; i = i + 2) {
		var thisTitle = json.feed.entry[i].content.$t;
		var thisImageURL = json.feed.entry[k].content.$t;
		var imageData = {
			title: thisTitle,
			imageURL: thisImageURL
		};
		imageDataList.push(imageData);
	}
	console.log(imageDataList);
	return imageDataList;
}

function setImageList(anImageList) {
	var latte = $('.latte');
	for (var i = 0, l = anImageList.length; i < l; i++) {
		cloneEntry(i);
	};
	function cloneEntry(listOrder) {
		var clonedEntry = $(latte).clone(true);
		clonedEntry.insertAfter(latte);
		clonedEntry.children('.entryImageBlock').children('.entryImage').attr('src', anImageList[listOrder].imageURL);
		clonedEntry.children('.entryTitle').text(anImageList[listOrder].title);	
	}
}

// var URL = 'https://spreadsheets.google.com/feeds/list/0Ak1KvWLO65McdGtaMC05dGh5andQWHpiNHpLX1VxZnc/od6/public/basic?alt=json'
var URL = 'https://spreadsheets.google.com/feeds/cells/0Ak1KvWLO65McdGtaMC05dGh5andQWHpiNHpLX1VxZnc/od6/public/basic?alt=json'

function mainAfterGetJson(data) {
	var imageList = getImageDataListFromJSON(data);
	setImageList(imageList);
}

function main() {
	$.getJSON(URL, mainAfterGetJson);	
}<commit_msg>use find<commit_after>
function getImageDataListFromJSON(json) {
	var imageDataList = [];
	for (var i = 0, k = i + 1, l = json.feed.entry.length; i < l; i = i + 2) {
		var thisTitle = json.feed.entry[i].content.$t;
		var thisImageURL = json.feed.entry[k].content.$t;
		var imageData = {
			title: thisTitle,
			imageURL: thisImageURL
		};
		imageDataList.push(imageData);
	}
	console.log(imageDataList);
	return imageDataList;
}

function setImageList(anImageList) {
	var latte = $('.latte');
	for (var i = 0, l = anImageList.length; i < l; i++) {
		cloneEntry(i);
	};
	function cloneEntry(listOrder) {
		var clonedEntry = $(latte).clone(true);
		clonedEntry.insertAfter(latte);
		clonedEntry.find('.entryImage').attr('src', anImageList[listOrder].imageURL);
		clonedEntry.find('.entryTitle').text(anImageList[listOrder].title);	
	}
}

// var URL = 'https://spreadsheets.google.com/feeds/list/0Ak1KvWLO65McdGtaMC05dGh5andQWHpiNHpLX1VxZnc/od6/public/basic?alt=json'
var URL = 'https://spreadsheets.google.com/feeds/cells/0Ak1KvWLO65McdGtaMC05dGh5andQWHpiNHpLX1VxZnc/od6/public/basic?alt=json'

function mainAfterGetJson(data) {
	var imageList = getImageDataListFromJSON(data);
	setImageList(imageList);
}

function main() {
	$.getJSON(URL, mainAfterGetJson);	
}
{'fraction_non_alphanumeric': 0.1522248243559719, 'fraction_numerical': 0.01717408274785324, 'mean_word_length': 5.220873786407767, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '5601544', 'n_tokens_mistral': 1052, 'n_tokens_neox': 984, 'n_words': 151}