<commit_before>test("Popcorn 0.3 TTXT Parser Plugin", function () {
  
  var expects = 8,
      count = 0,
      key,
      numSubs = 0,
      poppercorn = Popcorn( "#video" ),
      subs = { // Expected values
        "0": "",
        "3": "[Background Music Playing]",
        "6": "",
        "16": "Heay!!",
        "18": "",
        "26": "[Bird noises]",
        "31": ""
        }
      };
      
  function plus() {
    if ( ++count === expects ) {
      start();
    }
  }
  
  poppercorn.parseTTXT("data/data.ttxt");
  
  expect(expects);
  
  stop( 10000 );

  // Allow load time
  setTimeout(function () {
    Popcorn.forEach(poppercorn.getTrackEvents(), function(evt) {<commit_msg>Fix syntax error [#289]<commit_after>test("Popcorn 0.3 TTXT Parser Plugin", function () {
  
  var expects = 8,
      count = 0,
      key,
      numSubs = 0,
      poppercorn = Popcorn( "#video" ),
      subs = { // Expected values
        "0": "",
        "3": "[Background Music Playing]",
        "6": "",
        "16": "Heay!!",
        "18": "",
        "26": "[Bird noises]",
        "31": ""
      };
      
  function plus() {
    if ( ++count === expects ) {
      start();
    }
  }
  
  poppercorn.parseTTXT("data/data.ttxt");
  
  expect(expects);
  
  stop( 5000 );

  // Allow load time
  setTimeout(function () {
    Popcorn.forEach(poppercorn.getTrackEvents(), function(evt) {
{'fraction_non_alphanumeric': 0.1802451333813987, 'fraction_numerical': 0.03172314347512617, 'mean_word_length': 1.9221052631578948, 'pattern_counts': {'":': 14, '<': 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': '7310798', 'n_tokens_mistral': 514, 'n_tokens_neox': 475, 'n_words': 101}