<commit_before><?php
$id = get_ID ();
if ($id !== null) {
	$list = new List_Data ( $id );
	if ($list->content_id !== null) {
		$entries = $list->filter ();
		if (count ( $entries ) > 0) {
			// Pagination
			$entries_count_total = count ( $entries );
			$use_pagination = $list->use_pagination;
			$start = 0;
			$limit = intval ( $list->limit );
			if ($limit > 0 and $use_pagination) {
				if (isset ( $_GET ["start"] )) {
					$start = intval ( $_GET ["start"] );
				}
				$entries = array_slice ( $entries, $start, $limit );
				$entries_count = count ( $entries );
			}
			
			$previous_start = $start - $limit;
			if($previous_start < 0){
				$previous_start = 0;
			}

			$next_start = $start + $limit;
			if($next_start > $entries_total_count){
				$previous_start = $entries_total_count - $limit;
			}
			?>
<ol class="ulicms-content-list">
	<?php
			
			foreach ( $entries as $entry ) {
				?>
	<li><a
		href="<?php Template::escape(buildSEOUrl($entry->systemname));?>"><?php Template::escape($entry->title)?></a></li>
	<?php }?>
	</ol>
<?php
		}
		
		?>
	<?php
	}
}<commit_msg>pagination funktioniert nun<commit_after><?php
$id = get_ID ();
if ($id !== null) {
	$list = new List_Data ( $id );
	if ($list->content_id !== null) {
		$entries = $list->filter ();
		if (count ( $entries ) > 0) {
			// Pagination
			$entries_count_total = count ( $entries );
			$use_pagination = $list->use_pagination;
			$start = 0;
			$limit = intval ( $list->limit );
			if ($limit > 0 and $use_pagination) {
				if (isset ( $_GET ["start"] )) {
					$start = intval ( $_GET ["start"] );
				}
				$entries = array_slice ( $entries, $start, $limit );
				$entries_count = count ( $entries );
			}
			
			$previous_start = $start - $limit;
			if ($previous_start < 0) {
				$previous_start = 0;
			}
			
			$next_start = $start + $limit;
			if ($next_start <= $entries_total_count) {
				$next_start = $start + $limit;
			}
			?>
<ol class="ulicms-content-list" start="<?php echo $start + 1;?>">
	<?php
			
			foreach ( $entries as $entry ) {
				?>
	<li><a
		href="<?php Template::escape(buildSEOUrl($entry->systemname));?>"><?php Template::escape($entry->title)?></a></li>
	<?php }?>
	</ol>
<?php if($use_pagination){?>
<div class="page_older_newer">
<?php if($start > 0 and $use_pagination){?>
<span class="blog_pagination_newer"><a
		href="<?php Template::escape(buildSEOUrl());?>?start=<?php echo $previous_start;?>"><?php Template::escape("<<");?></a></span>
<?php }?>
	<?php if($start + $limit < $entries_count_total and $use_pagination){?>
<span class="blog_pagination_older"><a
		href="<?php Template::escape(buildSEOUrl());?>?start=<?php echo $next_start;?>"><?php Template::escape(">>");?></a></span>

<?php }?>
</div>
<?php }?>
	<?php
		}
	}
}
{'fraction_non_alphanumeric': 0.21943231441048036, 'fraction_numerical': 0.004366812227074236, 'mean_word_length': 3.6991452991452993, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 69, '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': '2230978', 'n_tokens_mistral': 1149, 'n_tokens_neox': 1004, 'n_words': 202}