<commit_before><?php
class GoogleReaderKeys extends Plugin {

	private $link;
	private $host;

	function about() {
		return array(1.0,
			"Keyboard hotkeys like Google Reader",
			"markwaters");
	}

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

		$host->add_hook($host::HOOK_HOTKEY_MAP, $this);
	}

	function hook_hotkey_map($hotkeys) {

		$hotkeys["j"] = "next_article_noscroll";
		$hotkeys["N"] = "next_feed";
		$hotkeys["k"] = "prev_article_noscroll";
		$hotkeys["P"] = "prev_feed";
		$hotkeys["v"] = "open_in_new_window";
		$hotkeys["(32)|space"] = "next_article";
		$hotkeys["r"] = "feed_refresh";

		return $hotkeys;

	}
}
?>
<commit_msg>Added requested article_scroll_up and article_scroll_down keys.<commit_after><?php
class GoogleReaderKeys extends Plugin {

	private $link;
	private $host;

	function about() {
		return array(1.0,
			"Keyboard hotkeys emulate Google Reader",
			"markwaters");
	}

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

		$host->add_hook($host::HOOK_HOTKEY_MAP, $this);
	}

	function hook_hotkey_map($hotkeys) {

		$hotkeys["j"]		= "next_article_noscroll";
		$hotkeys["k"]		= "prev_article_noscroll";
		$hotkeys["N"]		= "next_feed";
		$hotkeys["P"]		= "prev_feed";
		$hotkeys["v"]		= "open_in_new_window";
		$hotkeys["r"]		= "feed_refresh";
		$hotkeys["(32)|space"]	= "next_article";
		$hotkeys["(38)|up"]	= "article_scroll_up";
		$hotkeys["(40)|down"]	= "article_scroll_down";

		return $hotkeys;

	}
}
?>

{'fraction_non_alphanumeric': 0.19075907590759075, 'fraction_numerical': 0.007920792079207921, 'mean_word_length': 5.039840637450199, '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': '952260', 'n_tokens_mistral': 654, 'n_tokens_neox': 597, 'n_words': 99}