<commit_before><?php

require 'init.php';
require 'database.php';

//For popup positioning to work correctly, table need to be inside a view segment.
$view = $app->add('View', ['ui' => 'basic segment']);
$g = $view->add(['Grid']);

$g->setModel(new Country($db));
$g->addFilterColumn();

$g->ipp = 20;<commit_msg>Added demo<commit_after><?php

require 'init.php';
require 'database.php';

//For popup positioning to work correctly, table need to be inside a view segment.
$view = $app->add('View', ['ui' => 'basic segment']);
$g = $view->add(['Grid']);

$m = new Country($db);
$m->addExpression('is_uk', 'if([iso] = "GB", 1, 0)')->type='boolean';

$g->setModel($m);
$g->addFilterColumn();

$g->ipp = 20;
{'fraction_non_alphanumeric': 0.23470839260312945, 'fraction_numerical': 0.008534850640113799, 'mean_word_length': 5.4, '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': '7181525', 'n_tokens_mistral': 254, 'n_tokens_neox': 244, 'n_words': 69}