<commit_before>/* jshint node:true */

var cloak = require('./cloak');

cloak.events({

  room: {

    init: function() {
      this.data.lastReportedAge = 0;
    },

    pulse: function() {
      var age = this.age();
      if (this.data.lastReportedAge + 1000 > age) {
        this.messageMembers('room age ' + age);
        this.data.lastReportedAge = age;
      }
    },

    close: function() {
      this.messageMembers('you have left ' + this.name);<commit_msg>not bad for a days work<commit_after>/* jshint node:true */

var cloak = require('./cloak');

cloak.events({

  room: {

    init: function() {
      this.data.lastReportedAge = 0;
    },

    pulse: function() {
      var age = this.age();
      if (this.data.lastReportedAge + 1000 < age) {
        this.messageMembers('room age ' + Math.round(age / 1000));
        this.data.lastReportedAge = age;
      }
    },

    close: function() {
      this.messageMembers('you have left ' + this.name);
{'fraction_non_alphanumeric': 0.15544041450777202, 'fraction_numerical': 0.014507772020725389, 'mean_word_length': 2.3541666666666665, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6397486', 'n_tokens_mistral': 346, 'n_tokens_neox': 311, 'n_words': 69}