<commit_before><?php

$_app = 'pc_frontend';
$_env = 'test';
$_taskConfig = array('--application='.$_app, '--env='.$_env);

$configuration = ProjectConfiguration::getApplicationConfiguration($_app, $_env, true);
new sfDatabaseManager($configuration);

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

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

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

$task = new sfDoctrineLoadDataTask($configuration->getEventDispatcher(), new sfFormatter());
$task->run(array_merge($_taskConfig, array('--dir='.dirname(__FILE__).'/../fixtures')));
<commit_msg>fixed loading data in test bootstrap file (refs #140)<commit_after><?php

$_app = 'pc_frontend';
$_env = 'test';

$configuration = ProjectConfiguration::getApplicationConfiguration($_app, $_env, true);
new sfDatabaseManager($configuration);

$task = new sfDoctrineBuildTask($configuration->getEventDispatcher(), new sfFormatter());
$task->setConfiguration($configuration);
$task->run(array(), array(
  'no-confirmation' => true,
  'db'              => true,
  'and-load'        => dirname(__FILE__).'/../fixtures',
));

{'fraction_non_alphanumeric': 0.18328445747800587, 'fraction_numerical': 0.0021994134897360706, 'mean_word_length': 7.53125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '4122880', 'n_tokens_mistral': 400, 'n_tokens_neox': 389, 'n_words': 73}