<commit_before>new Heidelberg($('#Heidelberg-example-1'), {
  previousButton: $('#previous'),
  nextButton: $('#next'),
  onPageTurn: function(el, els) {
  }
});

new Heidelberg($('#Heidelberg-example-2'), {
  canClose: true,
  arrowKeys: false,
  concurrentAnimations: 5
});<commit_msg>Add callback examples<commit_after>new Heidelberg($('#Heidelberg-example-1'), {
  previousButton: $('#previous'),
  nextButton: $('#next'),
  onPageTurn: function(el, els) {
    console.log('Page turned');
  },
  onSpreadSetup: function(el) {
    console.log('Spread setup');
  }
});

new Heidelberg($('#Heidelberg-example-2'), {
  canClose: true,
  arrowKeys: false,
  concurrentAnimations: 5
});

var progressIndicators = function(page, el){
  var indicators = el.parents('.book-module').find('.book-module-indicator');
  indicators.removeClass('filled');
  indicators.slice(0, page).addClass('filled');
};
{'fraction_non_alphanumeric': 0.19441340782122904, 'fraction_numerical': 0.00782122905027933, 'mean_word_length': 5.54014598540146, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5588439', 'n_tokens_mistral': 298, 'n_tokens_neox': 289, 'n_words': 52}