<commit_before>(function(){
    'use strict';
    var io = require('socket.io').listen(3030);
    var winston = require('winston');
    winston.add(winston.transports.File, { filename: 'wifi-device.log' });

    var DeviceMonitor = require('./lib/monitor.js');

    var monitor = new DeviceMonitor('http://192.168.1.254/xslt?PAGE=C_2_0');
    monitor.start();

    monitor.on(DeviceMonitor.START, function onDeviceStart(devices){
        winston.info('device monitoring starting', devices);
        io.sockets.emit('start', devices);
    });

    monitor.on(DeviceMonitor.END, function onMonitroEnd(){
        winston.info('device monitoring ending');
    });

    monitor.on(DeviceMonitor.ADD, function onDeviceAdd(device){
        winston.info('added', device);
        io.sockets.emit('add', device);
    });

    monitor.on(DeviceMonitor.REMOVE, function onDeviceRemove(device){
        winston.info('removed', device);
        io.sockets.emit('remove', device);
    });

    monitor.on(DeviceMonitor.ERROR, function onMonitorError(error){
        winston.error(error);
    });
})();<commit_msg>Changed log messages.<commit_after>(function(){
    'use strict';
    var io = require('socket.io').listen(3030);
    var winston = require('winston');
    winston.add(winston.transports.File, { filename: 'wifi-device.log' });

    var DeviceMonitor = require('./lib/monitor.js');

    var monitor = new DeviceMonitor('http://192.168.1.254/xslt?PAGE=C_2_0');
    monitor.start();

    monitor.on(DeviceMonitor.START, function onDeviceStart(devices){
        winston.info('device monitoring starting', devices);
        io.sockets.emit('start', devices);
    });

    monitor.on(DeviceMonitor.END, function onMonitroEnd(){
        winston.info('device monitoring ending');
    });

    monitor.on(DeviceMonitor.ADD, function onDeviceAdd(device){
        winston.info('add', device);
        io.sockets.emit('add', device);
    });

    monitor.on(DeviceMonitor.REMOVE, function onDeviceRemove(device){
        winston.info('remove', device);
        io.sockets.emit('remove', device);
    });

    monitor.on(DeviceMonitor.ERROR, function onMonitorError(error){
        winston.error(error);
    });
})();
{'fraction_non_alphanumeric': 0.16295960054471176, 'fraction_numerical': 0.014525646845211076, 'mean_word_length': 3.5163934426229506, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1809901', 'n_tokens_mistral': 685, 'n_tokens_neox': 647, 'n_words': 108}