<commit_before>;(function() {
  
  var events = require('events');
  var _ = require('underscore');

  var emitter = new events.EventEmitter();

  var scriptText = '';

  var stats = {};
  var script = [];
  var scriptChunks = [];
  var imageList = [];

  var scriptCursorIndex = 1;
  var scriptImageCursorIndex = 0;

  var atomToChunk = {};
  var atomToBoard = {};

  var load = function(config) {
    var oldScriptText = scriptText;
    scriptText = config.script;
    emitter.emit('script:change', scriptText, oldScriptText);
    parseFountain(config.script);
  }

  var loadChange = function(text) {
    var oldScriptText = scriptText;
    scriptText = text;
    emitter.emit('script:change', scriptText, oldScriptText, true);
    parseFountain(text);
    storyboardState.saveScript();
  }

  var parseFountain = function (fountainText) {
    var tokens = "";
    fountain.parse(fountainText, true, function (output) {
      tokens = output.tokens;
    });

    paginator(tokens);
    script = createScript(tokens);
    
    timeline.buildUpdates();

    getUniqueLocations(script);

    outline = createOutline(script);
    
    characters = extractCharacters(script);

    $("#script").html(renderScript());

    $(".module.selectable img").click(imageClickHandler);

    $(".module.selectable").click(function(e){
      e.stopPropagation();
      var id = parseInt($(this).attr('id').split("-")[2]);
      selectChunk(atomToChunk[id].chunkIndex);
    });
<commit_msg>Removes paginator call which breaks some scripts<commit_after>;(function() {
  
  var events = require('events');
  var _ = require('underscore');

  var emitter = new events.EventEmitter();

  var scriptText = '';

  var stats = {};
  var script = [];
  var scriptChunks = [];
  var imageList = [];

  var scriptCursorIndex = 1;
  var scriptImageCursorIndex = 0;

  var atomToChunk = {};
  var atomToBoard = {};

  var load = function(config) {
    var oldScriptText = scriptText;
    scriptText = config.script;
    emitter.emit('script:change', scriptText, oldScriptText);
    parseFountain(config.script);
  }

  var loadChange = function(text) {
    var oldScriptText = scriptText;
    scriptText = text;
    emitter.emit('script:change', scriptText, oldScriptText, true);
    parseFountain(text);
    storyboardState.saveScript();
  }

  var parseFountain = function (fountainText) {
    var tokens = "";
    fountain.parse(fountainText, true, function (output) {
      tokens = output.tokens;
    });

    //paginator(tokens);
    script = createScript(tokens);
    
    timeline.buildUpdates();

    getUniqueLocations(script);

    outline = createOutline(script);
    
    characters = extractCharacters(script);

    $("#script").html(renderScript());

    $(".module.selectable img").click(imageClickHandler);

    $(".module.selectable").click(function(e){
      e.stopPropagation();
      var id = parseInt($(this).attr('id').split("-")[2]);
      selectChunk(atomToChunk[id].chunkIndex);
    });

{'fraction_non_alphanumeric': 0.14606365159128978, 'fraction_numerical': 0.0020100502512562816, 'mean_word_length': 3.5587786259541985, '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': '5309020', 'n_tokens_mistral': 928, 'n_tokens_neox': 889, 'n_words': 178}