<commit_before><?php

defined('BASEPATH') OR exit('No direct script access allowed');


class Migration_upconfigtitlehead extends CI_Migration {

	function up()
	{
		$this->em = $this->doctrine->em;
		$initData = array();

		$confelement = $this->em->getRepository("models\Preferences")->findOneBy(array('name'=>'titleheader'));
		if(empty($breadcrumbs))
		{
			$c = new models\Preferences();
			$c->setName('titleheader');
			$c->setCategory('page');
			$c->setDescname('show title/subtitle on page');
			$c->setDescription('option allows to show/hide title on the page');
			$c->setDisabled();
			$c->setType('bool');
			$c->setValue('');
			$this->em->persist($c);
		}
		else
		{
			$breadcrumbs->setCategory('page');
			$breadcrumbs->setType('bool');
			$this->em->persist($confelement);
		}

		try{
			$this->em->flush();
		}
		catch(Exception $e)
		{
			log_message('error',__METHOD__.' :: '. $e);
			return false;
		}


	}

	function down()<commit_msg>minor fix<commit_after><?php

defined('BASEPATH') OR exit('No direct script access allowed');


class Migration_upconfigtitlehead extends CI_Migration {

	function up()
	{
		$this->em = $this->doctrine->em;
		$initData = array();

		$confelement = $this->em->getRepository("models\Preferences")->findOneBy(array('name'=>'titleheader'));
		if(empty($breadcrumbs))
		{
			$c = new models\Preferences();
			$c->setName('titleheader');
			$c->setCategory('page');
			$c->setDescname('show title/subtitle on page');
			$c->setDescription('option allows to show/hide title on the page');
			$c->setEnabled();
			$c->setType('bool');
			$c->setValue('');
			$this->em->persist($c);
		}
		else
		{
			$breadcrumbs->setCategory('page');
			$breadcrumbs->setType('bool');
			$this->em->persist($confelement);
		}

		try{
			$this->em->flush();
		}
		catch(Exception $e)
		{
			log_message('error',__METHOD__.' :: '. $e);
			return false;
		}


	}

	function down()
{'fraction_non_alphanumeric': 0.20386826973340302, 'fraction_numerical': 0.0, 'mean_word_length': 4.172972972972973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 47, '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': '7652376', 'n_tokens_mistral': 767, 'n_tokens_neox': 673, 'n_words': 112}