<commit_before><?php
	class Pagination
	{
		public function getNombrePage($data, $division)
		{
			$taille = sizeof($data);
	        $nbpage = $taille / $division;
	        $reste = $taille % $division;
	        
	        if($reste != 0)  
	        	$nbpage++;
	        
	        return $nbpage;
		}

		public function getDebut($numeroPage, $taille)
		{
	        $debut = 1;
	        $i = 1;
	        $tmp = $taille - 1;

	        if($numeroPage > 1){
	           	$debut = $numeroPage;
	            while($i < $numeroPage){
	                $debut += $tmp;
	                $i++;<commit_msg>fix pagination<commit_after><?php
	class Pagination
	{
		public function getNombrePage($data, $division)
		{
			$taille = sizeof($data);
	        $nbpage = $taille / $division;
	        $reste = $taille % $division;
	        
	        if($reste != 0)  
	        	$nbpage++;
	        
	        return $nbpage;
		}

		public function getDebut($numeroPage, $taille)
		{
	        $debut = 1;
	        $i = 1;
	        $tmp = intval($taille - 1);

	        if($numeroPage > 1){
	           	$debut = $numeroPage;
	            while($i < $numeroPage){
	                $debut += $tmp;
	                $i++;
{'fraction_non_alphanumeric': 0.14082145850796313, 'fraction_numerical': 0.008382229673093043, 'mean_word_length': 1.4771784232365146, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '507010', 'n_tokens_mistral': 465, 'n_tokens_neox': 392, 'n_words': 80}