<commit_before>function runFriendLogListFeature(){
	var resultDisplay = $("div.CacheDetailNavigation"),
		friendLogList = $("<ul id='friendLogList'>");

	friendLogList.append("<img id='friendLogListSpinner' src='"+chrome.extension.getURL("img/friendLogList/spinner.gif")+"'>");
	resultDisplay.append(friendLogList);

	injectCodeToReadUserToken();
	loadFriendLogs(1);
	removeInjectedScriptFromDom();

	function loadFriendLogs(page){
		var userToken = friendLogList.attr('data-userToken');
		$.getJSON('/seek/geocache.logbook', {
	        tkn: userToken,
	        idx: page,
	        num: 100,
	        sp: false,
	        sf: true,
	        decrypt: false
	    }).done(function(response) {
	    	if (response.status != 'success') {
	    		imDoneLoading();
	        	friendLogList.text("Error while loading friend logs");
	        } else {
	        	if(response.pageInfo.idx < response.pageInfo.totalPages){
	        		// load more friends if there are pages left
	        		loadFriendLogs(++page);
	        	} else {
	        		imDoneLoading();
	        		addDomElementsBasedOnResponse(response.data);
			    }
		    }
	    });
	}

	function addDomElementsBasedOnResponse(data){
		if(data.length === 0){
			friendLogList.text("No friend logs");
		} else {
	        $.each(data, function (index, value){
	        	
	        	var popup = Common.getInstance().createGeocachingUtilsPopup("logDetailPopup"),
					avatar = (value.AvatarImage === "") ? "/images/default_avatar.png" : "https://img.geocaching.com/user/avatar/" + value.AvatarImage,
	        		userImage = $("<img class='friendAvatar' src='" + avatar + "'>"),
	        		logDetailTable = $("<table><tr><td><img src='/images/logtypes/" + value.LogTypeImage + "'> " + value.Visited + "</td></tr><tr><td><a class='friendName' href='https://www.geocaching.com/profile/?guid=" + value.AccountGuid + "'>" + value.UserName + "</a></td></tr></table>"),
	        		newFriendLogEntry;

	        	popup.getPopupContentContainer().append("<div class='hoverBridge'/>" + value.LogText);<commit_msg>Reformatted code<commit_after>function runFriendLogListFeature(){
	var resultDisplay = $("div.CacheDetailNavigation"),
		friendLogList = $("<ul id='friendLogList'>");

	friendLogList.append("<img id='friendLogListSpinner' src='" 
		+ chrome.extension.getURL("img/friendLogList/spinner.gif") + "'>");
	resultDisplay.append(friendLogList);

	injectCodeToReadUserToken();
	loadFriendLogs(1);
	removeInjectedScriptFromDom();

	function loadFriendLogs(page){
		var userToken = friendLogList.attr('data-userToken');
		$.getJSON('/seek/geocache.logbook', {
	        tkn: userToken,
	        idx: page,
	        num: 100,
	        sp: false,
	        sf: true,
	        decrypt: false
	    }).done(function(response) {
	    	if (response.status != 'success') {
	    		imDoneLoading();
	        	friendLogList.text("Error while loading friend logs");
	        } else {
	        	if(response.pageInfo.idx < response.pageInfo.totalPages){
	        		// load more friends if there are pages left
	        		loadFriendLogs(++page);
	        	} else {
	        		imDoneLoading();
	        		addDomElementsBasedOnResponse(response.data);
			    }
		    }
	    });
	}

	function addDomElementsBasedOnResponse(data){
		if(data.length === 0){
			friendLogList.text("No friend logs");
		} else {
	        $.each(data, function (index, value){
	        	
	        	var popup = Common.getInstance().createGeocachingUtilsPopup("logDetailPopup"),
					avatar = (value.AvatarImage === "") ? "/images/default_avatar.png" : "https://img.geocaching.com/user/avatar/" + value.AvatarImage,
	        		userImage = $("<img class='friendAvatar' src='" + avatar + "'>"),
	        		logDetailTable = $("<table><tr><td><img src='/images/logtypes/" + value.LogTypeImage 
	        			+ "'> " + value.Visited
	        			+ "</td></tr><tr><td><a class='friendName' href='https://www.geocaching.com/profile/?guid="
	        			+ value.AccountGuid + "'>" + value.UserName + "</a></td></tr></table>"),
	        		newFriendLogEntry;

	        	popup.getPopupContentContainer().append("<div class='hoverBridge'/>" + value.LogText);
{'fraction_non_alphanumeric': 0.1628301429609886, 'fraction_numerical': 0.00242306760358614, 'mean_word_length': 3.0790513833992095, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 37, 'https://': 4, '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': '346153', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1271, 'n_words': 197}