<commit_before><?php

$configuration = ProjectConfiguration::getApplicationConfiguration('pc_frontend', 'test', true);
new sfDatabaseManager($configuration);

$task = new sfDoctrineBuildAllReloadTask($configuration->getEventDispatcher(), new sfFormatter());
$task->run(array('--no-confirmation', '--dir='.dirname(__FILE__).'/../fixtures', '--skip-forms'));<commit_msg>fixed database.php for test, for optimization (fixes #134)<commit_after><?php

$configuration = ProjectConfiguration::getApplicationConfiguration('pc_frontend', 'test', true);
new sfDatabaseManager($configuration);

$task = new sfDoctrineDropDbTask($configuration->getEventDispatcher(), new sfFormatter());
$task->run(array('--no-confirmation'));

$task = new sfDoctrineBuildDbTask($configuration->getEventDispatcher(), new sfFormatter());
$task->run();

$task = new sfDoctrineInsertSqlTask($configuration->getEventDispatcher(), new sfFormatter());
$task->run();

$task = new sfDoctrineLoadDataTask($configuration->getEventDispatcher(), new sfFormatter());
$task->run(array('--dir='.dirname(__FILE__).'/../fixtures'));
{'fraction_non_alphanumeric': 0.18139963167587478, 'fraction_numerical': 0.0027624309392265192, 'mean_word_length': 9.656862745098039, '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': '3716001', 'n_tokens_mistral': 302, 'n_tokens_neox': 293, 'n_words': 52}