<commit_before>'use strict';

// var connect = require('sensorjs');
var connect = require('../sensorjs/index');
var sensorDriver = connect.sensor;
var log4js = require('log4js');
var _ = require('lodash');
var ip = require('ip');
var moment = require('moment')();

log4js.configure(__dirname + '/log4js_config.json');

var log = log4js.getLogger('WoT');
var app,
    sensors = {},
    sensorList = [];

var RECOMMENDED_INTERVAL = 1000,
        MAX_VALUES_LENGTH = 10;

var wpxAddress = 'http://172.16.17.32:9090/wpx';
var request = require('request');
var port;
var things = [];
var resources = [];
var currentThingId;

/**
 * Initialize WoT.js
 * 
 * @param  {http.Server}   appServer http.Server instance.<commit_msg>* require('sensorjs') 수정<commit_after>'use strict';

var connect = require('sensorjs');
var sensorDriver = connect.sensor;
var log4js = require('log4js');
var _ = require('lodash');
var ip = require('ip');
var moment = require('moment')();

log4js.configure(__dirname + '/log4js_config.json');

var log = log4js.getLogger('WoT');
var app,
    sensors = {},
    sensorList = [];

var RECOMMENDED_INTERVAL = 1000,
        MAX_VALUES_LENGTH = 10;

var wpxAddress = 'http://172.16.17.32:9090/wpx';
var request = require('request');
var port;
var things = [];
var resources = [];
var currentThingId;

/**
 * Initialize WoT.js
 * 
 * @param  {http.Server}   appServer http.Server instance.
{'fraction_non_alphanumeric': 0.1701067615658363, 'fraction_numerical': 0.03416370106761566, 'mean_word_length': 4.407692307692308, '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': '2569022', 'n_tokens_mistral': 514, 'n_tokens_neox': 473, 'n_words': 112}