<commit_before>function updatePodcastList() {
	var podcastListElement = $('#podcastList');

	var bgPage = chrome.extension.getBackgroundPage();

	var listHTML = '';

	bgPage.podcastManager.podcastList.forEach(function(podcast) {
		listHTML += renderPodcast(podcast);
	});

	podcastListElement.html(listHTML);
}

function storageChanged(changes, areaName) {
	if(areaName === 'sync')
	{
		updatePodcastList();
	}
}

$( document ).ready( function() {
	var bgPage = chrome.extension.getBackgroundPage();

	$('#addRSS').click( function() {
		// addRSS($('#entryBox').val());
		bgPage.podcastManager.addPodcast($('#entryBox').val(), updatePodcastList);
	});

	$('#removeAllRSS').click( function() {
		// removeAllRSS();
		bgPage.podcastManager.deleteAllPodcasts();
	});

	// chrome.storage.onChanged.addListener(storageChanged)

	updatePodcastList();
});<commit_msg>Update podcast list when Remove All is pressed<commit_after>function updatePodcastList() {
	var podcastListElement = $('#podcastList');

	var bgPage = chrome.extension.getBackgroundPage();

	var listHTML = '';

	bgPage.podcastManager.podcastList.forEach(function(podcast) {
		listHTML += renderPodcast(podcast);
	});

	podcastListElement.html(listHTML);
}

function storageChanged(changes, areaName) {
	if(areaName === 'sync')
	{
		updatePodcastList();
	}
}

$( document ).ready( function() {
	var bgPage = chrome.extension.getBackgroundPage();

	$('#addRSS').click( function() {
		// addRSS($('#entryBox').val());
		bgPage.podcastManager.addPodcast($('#entryBox').val(), updatePodcastList);
	});

	$('#removeAllRSS').click( function() {
		bgPage.podcastManager.deleteAllPodcasts();
		updatePodcastList();
	});

	// chrome.storage.onChanged.addListener(storageChanged)

	updatePodcastList();
});
{'fraction_non_alphanumeric': 0.1754985754985755, 'fraction_numerical': 0.0, 'mean_word_length': 5.886274509803922, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4907308', 'n_tokens_mistral': 591, 'n_tokens_neox': 558, 'n_words': 81}