<commit_before><?php
/**
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright &copy; 2008, Telaxus LLC
 * @license MIT
 * @version 1.0
 * @package epesi-crm
 * @subpackage calendar
 */
defined("_VALID_ACCESS") || die('Direct access forbidden');

class CRM_CalendarInstall extends ModuleInstall {
	public function install() {
		Base_LangCommon::install_translations($this->get_type());
		Base_ThemeCommon::install_default_theme('CRM/Calendar');
		$this->add_aco('manage others','Employee Manager');
		$this->add_aco('access','Employee');
		Utils_WatchdogCommon::register_category('crm_calendar', array('CRM_CalendarCommon','watchdog_label'));
		DB::CreateTable('crm_calendar_custom_events_handlers',
						'id I4 AUTO KEY,'.
						'group_name C(64),'.
						'handler_callback C(128)',
						array('constraints'=>''));
		return true;
	}

	public function uninstall() {
		DB::DropTable('crm_calendar_custom_events_handlers');
		Base_ThemeCommon::uninstall_default_theme('CRM/Calendar');
		Utils_WatchdogCommon::unregister_category('crm_calendar');
		return true;
	}

	public function info() {
		return array('Author'=>'<a href="http://www.telaxus.com">Telaxus LLC</a>', 'Licence'=>'TL', 'Description'=>'Simple calendar and organiser.');
	}

	public function simple_setup() {
		return true;
	}
	
	public function requires($v) {
		return array(
			array('name'=>'Base/Lang', 'version'=>0),
			array('name'=>'Utils/Calendar','version'=>0),
			array('name'=>'Base/User/Settings','version'=>0),
			array('name'=>'Base/RegionalSettings','version'=>0),
			array('name'=>'CRM/Filters','version'=>0),
			array('name'=>'CRM/Calendar/Event','version'=>0),
			array('name'=>'Utils/Watchdog','version'=>0)
		);
	}
	public function version() {
		return array('0.1.0');
	}
}

?><commit_msg>leightbox prompt dependency...<commit_after><?php
/**
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright &copy; 2008, Telaxus LLC
 * @license MIT
 * @version 1.0
 * @package epesi-crm
 * @subpackage calendar
 */
defined("_VALID_ACCESS") || die('Direct access forbidden');

class CRM_CalendarInstall extends ModuleInstall {
	public function install() {
		Base_LangCommon::install_translations($this->get_type());
		Base_ThemeCommon::install_default_theme('CRM/Calendar');
		$this->add_aco('manage others','Employee Manager');
		$this->add_aco('access','Employee');
		Utils_WatchdogCommon::register_category('crm_calendar', array('CRM_CalendarCommon','watchdog_label'));
		DB::CreateTable('crm_calendar_custom_events_handlers',
						'id I4 AUTO KEY,'.
						'group_name C(64),'.
						'handler_callback C(128)',
						array('constraints'=>''));
		return true;
	}

	public function uninstall() {
		DB::DropTable('crm_calendar_custom_events_handlers');
		Base_ThemeCommon::uninstall_default_theme('CRM/Calendar');
		Utils_WatchdogCommon::unregister_category('crm_calendar');
		return true;
	}

	public function info() {
		return array('Author'=>'<a href="http://www.telaxus.com">Telaxus LLC</a>', 'Licence'=>'TL', 'Description'=>'Simple calendar and organiser.');
	}

	public function simple_setup() {
		return true;
	}
	
	public function requires($v) {
		return array(
			array('name'=>'Base/Lang', 'version'=>0),
			array('name'=>'Utils/Calendar','version'=>0),
			array('name'=>'Base/User/Settings','version'=>0),
			array('name'=>'Base/RegionalSettings','version'=>0),
			array('name'=>'CRM/Filters','version'=>0),
			array('name'=>'CRM/Calendar/Event','version'=>0),
			array('name'=>'Utils/Watchdog','version'=>0),
			array('name'=>'Utils/LeightboxPrompt','version'=>0)
		);
	}
	public function version() {
		return array('0.1.0');
	}
}

?>
{'fraction_non_alphanumeric': 0.1914246196403873, 'fraction_numerical': 0.012448132780082987, 'mean_word_length': 6.1603960396039605, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6426025', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1164, 'n_words': 187}