<commit_before>var common = require('./common')
  , redis  = common.redis;

(function blpopSubscribe() {
  redis.blpop('stentor:subscribe', 0, function(err, data){
    console.log('stentor:subscribe blpop data', data);
    if (err) { return blpopSubscribe(); }
    common.models.Device.subscribe(data, blpopSubscribe);
  });
  console.log('listening to stentor:subscribe');
})();

(function blpopUnsubscribe() {
  redis.blpop('stentor:unsubscribe', 0, function(err, data){
    console.log('stentor:unsubscribe blpop data', data);
    if (err) { return blpopUnubscribe(); }
    common.models.Device.unsubscribe(data, blpopUnubscribe);
  });
  console.log('listening to stentor:unsubscribe');
})();

(function blpopNotify() {
  redis.blpop('stentor:notify', 0, function(err, data){
    console.log('stentor:notify blpop data', data);
    if (err) { return blpopNotify(); }
    common.models.Device.notify(data, blpopNotify);
  });
  console.log('listening to stentor:notify');
})();
<commit_msg>fixing typo<commit_after>var common = require('./common')
  , redis  = common.redis;

(function blpopSubscribe() {
  redis.blpop('stentor:subscribe', 0, function(err, data){
    console.log('stentor:subscribe blpop data', data);
    if (err) { return blpopSubscribe(); }
    common.models.Device.subscribe(data, blpopSubscribe);
  });
  console.log('listening to stentor:subscribe');
})();

(function blpopUnsubscribe() {
  redis.blpop('stentor:unsubscribe', 0, function(err, data){
    console.log('stentor:unsubscribe blpop data', data);
    if (err) { return blpopUnsubscribe(); }
    common.models.Device.unsubscribe(data, blpopUnsubscribe);
  });
  console.log('listening to stentor:unsubscribe');
})();

(function blpopNotify() {
  redis.blpop('stentor:notify', 0, function(err, data){
    console.log('stentor:notify blpop data', data);
    if (err) { return blpopNotify(); }
    common.models.Device.notify(data, blpopNotify);
  });
  console.log('listening to stentor:notify');
})();

{'fraction_non_alphanumeric': 0.17119838872104734, 'fraction_numerical': 0.0030211480362537764, 'mean_word_length': 5.132716049382716, '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': '990071', 'n_tokens_mistral': 676, 'n_tokens_neox': 661, 'n_words': 125}