<commit_before>---
---

// RSS Module
var rssFeedCreator = function() {
	var numberOfParagraphs = {{ site.blog_paragraphs }};
	
	var parseRSS = function(url, successCallback, errorCallback) {
	  $.ajax({
	    url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url),
	    dataType: 'json',
	    success: function(data) {
	      	successCallback(data.responseData.feed);
	    },
	    error: function(er) {
	    	errorCallback();
	    }
	  });
	}
	
	var renderContent = function(entry, content) {
		$('#blog-content').html(content);
		$('#blog-title').html("<div class='blog-title'><h3>" + entry.title +
									"</h3><small>" + entry.publishedDate.split(" ").slice(0,4).join(" ") +
									"</small></div>"
									);
		$('#blog-footer').html("<div class='blog-footer'><a href='" + 
									entry.link +
									"'>...continue reading on <em>AstroSynergistics</em>, the astrology blog of <NAME></a></div>"
									);
	}
	
	var renderError = function() {
		$('.blog-content').html(
			"<p>Can't load blog content. View more posts here: " +
			"<a href='https://nikiastro.wordpress.com/'>Astrosynergistics</a></p>"
			);
	}
	
	return {
		render: function() {
			parseRSS('https://nikiastro.wordpress.com/feed/', function(feed) {
				var lastEntry = feed.entries[0];
				var $entryContent = $(lastEntry.content);
				var $blogContent= $entryContent.filter("p, ul").slice(0,numberOfParagraphs);
				renderContent(lastEntry, $blogContent);
			}, function() {
				renderError();
			});
		}
	}
};

$(function() {
	rssFeedCreator().render();
});
<commit_msg>replace http with https in rss feed to prevent mixed content warnings<commit_after>---
---

// RSS Module
var rssFeedCreator = function() {
	var numberOfParagraphs = {{ site.blog_paragraphs }};
	
	var parseRSS = function(url, successCallback, errorCallback) {
	  $.ajax({
	    url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url),
	    dataType: 'json',
	    success: function(data) {
	      	successCallback(data.responseData.feed);
	    },
	    error: function(er) {
	    	errorCallback();
	    }
	  });
	}
	
	var renderContent = function(entry, content) {
		$('#blog-content').html(content);
		$('#blog-title').html("<div class='blog-title'><h3>" + entry.title +
									"</h3><small>" + entry.publishedDate.split(" ").slice(0,4).join(" ") +
									"</small></div>"
									);
		$('#blog-footer').html("<div class='blog-footer'><a href='" + 
									entry.link +
									"'>...continue reading on <em>AstroSynergistics</em>, the astrology blog of <NAME></a></div>"
									);
	}
	
	var renderError = function() {
		$('.blog-content').html(
			"<p>Can't load blog content. View more posts here: " +
			"<a href='https://nikiastro.wordpress.com/'>Astrosynergistics</a></p>"
			);
	}
	
	return {
		render: function() {
			parseRSS('https://nikiastro.wordpress.com/feed/', function(feed) {
				var lastEntry = feed.entries[0];
				var $entryContent = $(lastEntry.content.replace(/http:/g, 'https:'));
				var $blogContent= $entryContent.filter("p, ul").slice(0,numberOfParagraphs);
				renderContent(lastEntry, $blogContent);
			}, function() {
				renderError();
			});
		}
	}
};

$(function() {
	rssFeedCreator().render();
});

{'fraction_non_alphanumeric': 0.19880597014925372, 'fraction_numerical': 0.005970149253731343, 'mean_word_length': 3.3406735751295336, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '6312243', 'n_tokens_mistral': 1322, 'n_tokens_neox': 1108, 'n_words': 186}