<commit_before><?php

$this->require_acl ('admin', 'polls');

$page->layout = 'admin';
$page->title = __ ('Polls');

require_once ('apps/polls/lib/Functions.php');

$limit = 15;
$num = is_numeric($_GET['page']) ? $_GET['page'] : 0; // from the URL, e.g. /myapp/handler/#
$offset = $num * $limit;

$items = polls\Poll::query()
	->order('edited','desc')
	->fetch($limit, $offset);

$data = array (
	'limit' => $limit,
	'total' => polls\Poll::query()
		->order('id','desc')
		->count(),
	'items' => $items,
	'count' => count ($items),<commit_msg>Fixed bug that threw template error when no polls were found<commit_after><?php

$this->require_acl ('admin', 'polls');

$page->layout = 'admin';
$page->title = __ ('Polls');

require_once ('apps/polls/lib/Functions.php');

$limit = 15;
$num = is_numeric($_GET['page']) ? $_GET['page'] : 0; // from the URL, e.g. /myapp/handler/#
$offset = $num * $limit;

$items = polls\Poll::query()
	->order('edited','desc')
	->fetch($limit, $offset);
$items ? items : array();
$data = array (
	'limit' => $limit,
	'total' => polls\Poll::query()
		->order('id','desc')
		->count(),
	'items' => $items,
	'count' => count ($items),
{'fraction_non_alphanumeric': 0.25734024179620035, 'fraction_numerical': 0.0051813471502590676, 'mean_word_length': 4.70935960591133, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '5479365', 'n_tokens_mistral': 453, 'n_tokens_neox': 437, 'n_words': 96}