<commit_before><?php
	Class extension_gcse extends Extension{
	
		public function about(){
			return array('name' => 'Google Custom Search Engine',
						 'version' => '2.2',
						 'release-date' => '2008-12-18',
						 'author' => array('name' => '<NAME>',
										   'website' => 'http://ahwayakchih.neoni.net',
										   'email' => '<EMAIL>'),
						 'description' => 'Use Google AJAX Search API as data source in Symphony.'
				 		);
		}

		function install(){
			$this->_Parent->Configuration->set('size', '4', 'gcse');
			$this->_Parent->Configuration->set('safe', 'moderate', 'gcse');
			return $this->_Parent->saveConfig();
		}

		function uninstall(){
			$this->_Parent->Configuration->remove('gcse');
			return $this->_Parent->saveConfig();
		}

		function enable(){
			if (!$this->_Parent->Configuration->get('safe', 'gcse'))
				return $this->install();
			return true;
		}

		function update($previousVersion=false){
			$needSave = true;
			switch ($previousVersion) {
				case false:
				case 0:
				case 2.0:
				case 2.1:<commit_msg>Bump version because changes are not backwards compatible (it will not work on Symphony 2.0.2).<commit_after><?php
	Class extension_gcse extends Extension{
	
		public function about(){
			return array('name' => 'Google Custom Search Engine',
						 'version' => '2.3',
						 'release-date' => '2009-06-25',
						 'author' => array('name' => '<NAME>',
										   'website' => 'http://ahwayakchih.neoni.net',
										   'email' => '<EMAIL>'),
						 'description' => 'Use Google AJAX Search API as data source in Symphony.'
				 		);
		}

		function install(){
			$this->_Parent->Configuration->set('size', '4', 'gcse');
			$this->_Parent->Configuration->set('safe', 'moderate', 'gcse');
			return $this->_Parent->saveConfig();
		}

		function uninstall(){
			$this->_Parent->Configuration->remove('gcse');
			return $this->_Parent->saveConfig();
		}

		function enable(){
			if (!$this->_Parent->Configuration->get('safe', 'gcse'))
				return $this->install();
			return true;
		}

		function update($previousVersion=false){
			$needSave = true;
			switch ($previousVersion) {
				case false:
				case 0:
				case 2.0:
				case 2.1:
{'fraction_non_alphanumeric': 0.18385036496350365, 'fraction_numerical': 0.015967153284671534, 'mean_word_length': 3.2011494252873565, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 57, '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': '2316755', 'n_tokens_mistral': 876, 'n_tokens_neox': 661, 'n_words': 161}