<commit_before><?php 
include(dirname(__FILE__).'/../../bootstrap/Doctrine.php');
$t = new lime_test(17, new lime_output_color());

$t->info('distinct SubGroup()');
$sgroups= Doctrine::getTable('TagGroups')->getDistinctSubGroups('administrative area');
$t->is(count($sgroups),3, 'Get all administrative sub groups');
$t->is($sgroups['country'],'country', 'Country is set');

$sgroups= Doctrine::getTable('TagGroups')->getDistinctSubGroups('brol');

$t->is(count($sgroups),1, 'Get administrative sub groups for this unused');
$t->is($sgroups[''],'', 'thre is only the empty');

$t->info('getPropositions');

$props = Doctrine::getTable('TagGroups')->getPropositions('brussels');
$t->is(count($props),4, 'We got 4 props');
$t->is(count($props[0]),3, 'With 3 property in each');
$t->is($props[0]['tag'],'Big White Mountain', 'Purpose from all groups is showed');


$props = Doctrine::getTable('TagGroups')->getPropositions('Bruselo');
$t->is(count($props),1, 'Got 1 prop');
$t->is($props[0]['tag'],'Brussels', 'Brussels is showed');


$props = Doctrine::getTable('TagGroups')->getPropositions('brussels','administrative area', 'city');<commit_msg>Test corrected<commit_after><?php 
include(dirname(__FILE__).'/../../bootstrap/Doctrine.php');
$t = new lime_test(17, new lime_output_color());

$t->info('distinct SubGroup()');
$sgroups= Doctrine::getTable('TagGroups')->getDistinctSubGroups('administrative area');
$t->is(count($sgroups),3, 'Get all administrative sub groups');
$t->is($sgroups['country'],'country', 'Country is set');

$sgroups= Doctrine::getTable('TagGroups')->getDistinctSubGroups('brol');

$t->is(count($sgroups),1, 'Get administrative sub groups for this unused');
$t->is($sgroups[''],'', 'thre is only the empty');

$t->info('getPropositions');

$props = Doctrine::getTable('TagGroups')->getPropositions('brussels');
$t->is(count($props),4, 'We got 4 props');
$t->is(count($props[0]),4, 'With 4 property in each');
$t->is($props[0]['tag'],'Big White Mountain', 'Purpose from all groups is showed');


$props = Doctrine::getTable('TagGroups')->getPropositions('Bruselo');
$t->is(count($props),2, 'Got 2 prop');
$t->is($props[0]['tag'],'Brussels', 'Brussels is showed');


$props = Doctrine::getTable('TagGroups')->getPropositions('brussels','administrative area', 'city');
{'fraction_non_alphanumeric': 0.23416339012669288, 'fraction_numerical': 0.011358671909130624, 'mean_word_length': 8.956521739130435, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '5885790', 'n_tokens_mistral': 788, 'n_tokens_neox': 751, 'n_words': 150}