<commit_before>var $donorJSON = 'https://membership.texastribune.org/circle-members.json';

$.ajax({
  url: $donorJSON,
  type: 'GET',
  dataType: 'json',
  success: buildWall
});


//slugifies names for table row classes
var slug = function(str) {
    var $slug = '';
    var trimmed = $.trim(str);
    $slug = trimmed.replace(/[^a-z0-9-]/gi, '-').
    replace(/-+/g, '-').
    replace(/^-|-$/g, '');
    return $slug.toLowerCase();
};


function buildWall(data) {
	$.map(data, function(val, i) {
		slugCircles = slug(i);
		circleId = '#'+slugCircles;
		$(circleId).append('<h3 class="circle-title">' + i + '</h3>');
		$.map(val, function(name, index) {
			if (index == val.length-1) {
				$(circleId).append('<span class="circle-list">&nbsp;' + name + ' </span> ');
			} else {
				$(circleId).append('<span class="circle-list">&nbsp;' + name + ' <span class="yellow-star fa fa-star"></span></span> ');
			}
			
		});
	});
}<commit_msg>non breaking spaces for the last names in each list<commit_after>var $donorJSON = 'https://membership.texastribune.org/circle-members.json';

$.ajax({
  url: $donorJSON,
  type: 'GET',
  dataType: 'json',
  success: buildWall
});


//slugifies names for table row classes
var slug = function(str) {
    var $slug = '';
    var trimmed = $.trim(str);
    $slug = trimmed.replace(/[^a-z0-9-]/gi, '-').
    replace(/-+/g, '-').
    replace(/^-|-$/g, '');
    return $slug.toLowerCase();
};

function orphanRemover(string){
    var wordArray = string.split(" ");
    var finalTitle = "";
    for (i = 0; i <= wordArray.length - 1; i++) {
        finalTitle += wordArray[i];
        finalTitle += "&nbsp;";
    }
    return finalTitle;
}


function buildWall(data) {
	$.map(data, function(val, i) {
		slugCircles = slug(i);
		circleId = '#'+slugCircles;
		$(circleId).append('<h3 class="circle-title">' + i + '</h3>');
		$.map(val, function(name, index) {
			var prettyName = orphanRemover(name);
			if (index == val.length-1) {
				$(circleId).append('<span class="circle-list">' + prettyName + ' </span> ');
			} else {
				$(circleId).append('<span class="circle-list">' + name + ' <span class="yellow-star fa fa-star"></span></span> ');
			}
			
		});
	});
}
{'fraction_non_alphanumeric': 0.2255125284738041, 'fraction_numerical': 0.005466970387243736, 'mean_word_length': 3.280701754385965, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '3382009', 'n_tokens_mistral': 841, 'n_tokens_neox': 789, 'n_words': 158}