<commit_before>'use strict';

var noe = require('nr-of-episodes');
var notification = require('./notifications');
var list = require('./list');

list(function(e, data) {
  data = data.filter(function(show) {
    return show.stillWatching;
  });

  setInterval(function(){
    data.forEach(checkShow);
  }, 2000);
});

var checked = [];
var checkShow = function(show) {
  if (checked.indexOf(show.title) === -1) {
    noe(show.title, function(e, d) {
      if (d && !e && d > show.episodes) {
        notification(show.title);
        checked.push(show.title);
      }
    });
  }
}<commit_msg>:older_man: lint fixes<commit_after>'use strict';

var noe = require('nr-of-episodes');
var notification = require('./notifications');
var list = require('./list');

list(function(e, data) {
  data = data.filter(function(show) {
    return show.stillWatching;
  });

  setInterval(function(){
    data.forEach(checkShow);
  }, 2000);
});

var checked = [];
var checkShow = function(show) {
  if (checked.indexOf(show.title) === -1) {
    noe(show.title, function(e, d) {
      if (d && !e && d > show.episodes) {
        notification(show.title);
        checked.push(show.title);
      }
    });
  }
};
{'fraction_non_alphanumeric': 0.18979933110367894, 'fraction_numerical': 0.008361204013377926, 'mean_word_length': 3.2903225806451615, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6831886', 'n_tokens_mistral': 418, 'n_tokens_neox': 403, 'n_words': 78}