<commit_before><?php

class UpgradeNotificationPage extends LeftAndMain {

	static $url_segment = "upgrade";
	static $menu_title = UpgradeMenuTitle;
	static $menu_icon = UpgradeMenuIcon;
	static $menu_priority = 1000;
	static $allowed_actions = array ('upgrade');

	public function init() {
		parent::init();
		Requirements::css(UPGRADE_NOTE_DIR . '/css/custom.css');
		Requirements::javascript(UPGRADE_NOTE_DIR . '/javascript/custom.js');
	}

	public function getEditForm($id = null, $fields = null) {

		$fields = new FieldList();
		$fields->push(new LiteralField("Versions",'<div class="ss-upgrade-content"><h2>Installed Version: '. UpgradeMenuTitle .'</h2><h2>Latest Version: '. UpgradeMenuTitle .'</h2></div>'));
		if(UpgradeNotification::isCurrentVersion())
			$fields->push(new LiteralField("Message",'<div class="message success ss-upgrade-content"><p>Your SilverStripe is up to date.</p></div>'));
		else
			$fields->push(new LiteralField("Message",'<div class="message notice ss-upgrade-content"><p>Your SilverStripe is out of date.</p></div>'));
		$fields->push(new LiteralField("Status",'<div class="ss-upgrade-content"><p>Last checked: November 12, 2015. <button id="ss-version-check" class="ss-ui-button" type="button">Check again</button></p></div>'));
		$fields->push(new LiteralField("Content",'<div class="ss-upgrade-content"><p>Website maintenance is essential, but often neglected. Site “housekeeping” tasks like applying security patches or updating software is left on the backburner. However, this leaves your website vulnerable to security issues, and your team loses efficiency by missing out on new software features. </p><p>Contact your development team today to schedule an upgrade.</p></div>'));

		$actions = new FieldList();
		$form = new Form($this, "EditForm", $fields, $actions);
		$form->addExtraClass('cms-edit-form cms-panel-padded center ' . $this->BaseCSSClasses());
		$form->loadDataFrom($this->request->getVars());

		$this->extend('updateEditForm', $form);

		return $form;
	}

}<commit_msg>updating how versions are called<commit_after><?php

class UpgradeNotificationPage extends LeftAndMain {

	static $url_segment = "upgrade";
	static $menu_title = UpgradeMenuTitle;
	static $menu_icon = UpgradeMenuIcon;
	static $menu_priority = 1000;
	static $allowed_actions = array ('upgrade');

	public function init() {
		parent::init();
		Requirements::css(UPGRADE_NOTE_DIR . '/css/custom.css');
		Requirements::javascript(UPGRADE_NOTE_DIR . '/javascript/custom.js');
	}

	public function getEditForm($id = null, $fields = null) {
		$upgrade_notification = new UpgradeNotification();

		$fields = new FieldList();
		$fields->push(new LiteralField("Versions",'<div class="ss-upgrade-content"><h2>Installed Version: '. $upgrade_notification->getInstalledVersion() .'</h2><h2>Latest Version: '. $upgrade_notification->getLatestVersion() .'</h2></div>'));
		if(UpgradeNotification::isCurrentVersion())
			$fields->push(new LiteralField("Message",'<div class="message success ss-upgrade-content"><p>Your SilverStripe is up to date.</p></div>'));
		else
			$fields->push(new LiteralField("Message",'<div class="message notice ss-upgrade-content"><p>Your SilverStripe is out of date.</p></div>'));
		$fields->push(new LiteralField("Status",'<div class="ss-upgrade-content"><p>Last checked: November 12, 2015. <button id="ss-version-check" class="ss-ui-button" type="button">Check again</button></p></div>'));
		$fields->push(new LiteralField("Content",'<div class="ss-upgrade-content"><p>Website maintenance is essential, but often neglected. Site “housekeeping” tasks like applying security patches or updating software is left on the backburner. However, this leaves your website vulnerable to security issues, and your team loses efficiency by missing out on new software features. </p><p>Contact your development team today to schedule an upgrade.</p></div>'));

		$actions = new FieldList();
		$form = new Form($this, "EditForm", $fields, $actions);
		$form->addExtraClass('cms-edit-form cms-panel-padded center ' . $this->BaseCSSClasses());
		$form->loadDataFrom($this->request->getVars());

		$this->extend('updateEditForm', $form);

		return $form;
	}

}
{'fraction_non_alphanumeric': 0.16201383917919351, 'fraction_numerical': 0.006680983058935815, 'mean_word_length': 6.0691399662731875, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 79, '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': '7127524', 'n_tokens_mistral': 1344, 'n_tokens_neox': 1242, 'n_words': 313}