<commit_before><?php
class GoogleReaderTheme extends Plugin {

	private $link;
	private $host;

	function about() {
		return array(1.0,
			"Make tt-rss look similar to Google Reader",
			"levito");
	}

	function init($host) {
		$this->link = $host->get_link();
		$this->host = $host;

		// force-enable combined mode
		set_pref($this->link, "COMBINED_DISPLAY_MODE", true);
	}

	function get_css() {
		return file_get_contents(dirname(__FILE__) . "/init.css");
	}
}
?><commit_msg>googlereadertheme: check for UID being present<commit_after><?php
class GoogleReaderTheme extends Plugin {

	private $link;
	private $host;

	function about() {
		return array(1.0,
			"Make tt-rss look similar to Google Reader",
			"levito");
	}

	function init($host) {
		$this->link = $host->get_link();
		$this->host = $host;

		if ($_SESSION["uid"]) {
			// force-enable combined mode
			set_pref($this->link, "COMBINED_DISPLAY_MODE", true, $_SESSION["uid"]);
		}
	}

	function get_css() {
		return file_get_contents(dirname(__FILE__) . "/init.css");
	}
}
?>
{'fraction_non_alphanumeric': 0.16138328530259366, 'fraction_numerical': 0.0038424591738712775, 'mean_word_length': 4.1330049261083746, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '3849090', 'n_tokens_mistral': 404, 'n_tokens_neox': 360, 'n_words': 84}