<commit_before>import React from 'react';
import { Pagination } from 'react-bootstrap';

const AdvancedPagination = props => (
  <Pagination
    prev
    next
    first
    last
    ellipsis
    boundaryLinks
    items={props.pages}
    maxButtons={5}
    activePage={props.page}
    onSelect={props.changePage}
  />
);
<commit_msg>Minor<commit_after>import React from 'react';
import { Pagination } from 'react-bootstrap';

const AdvancedPagination = props => {
  if (props.pages < 1) {
    return null;
  }

  return (
    <Pagination
      prev
      next
      first
      last
      ellipsis
      boundaryLinks
      items={props.pages}
      maxButtons={5}
      activePage={props.page}
      onSelect={props.changePage}
    />
  );
};

{'fraction_non_alphanumeric': 0.11036339165545088, 'fraction_numerical': 0.004037685060565276, 'mean_word_length': 2.576923076923077, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, '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': '2631521', 'n_tokens_mistral': 236, 'n_tokens_neox': 237, 'n_words': 50}