<commit_before>var tellduscore = require('./build/Release/telldus-core-js');

(function (exports, global) {
  exports.getDevices = function() { return tellduscore.getDevices(); };
  exports.turnOn = function(id) { return tellduscore.turnOn(id); };
  exports.turnOff = function(id) { return tellduscore.turnOff(id); };
  exports.dim = function(id, levl) { return tellduscore.dim(id, levl); };
  exports.addDeviceEventListener = function(callback) { return tellduscore.addDeviceEventListener(callback); };
  exports.addSensorEventListener = function(callback) { return tellduscore.addSensorEventListener(callback); };
  exports.addRawDeviceEventListener = function(callback) { return tellduscore.addRawDeviceEventListener(callback); };
  exports.removeEventListener = function(id) { return tellduscore.removeEventListener(id); };<commit_msg>Added support for tdAddDevice, tdRemoveDevice and tdGetErrorString<commit_after>var tellduscore = require('./build/Release/telldus-core-js');

(function (exports, global) {
  exports.getDevices = function() { return tellduscore.getDevices(); };
  exports.addDevice = function() { return tellduscore.addDevice(); };
  exports.removeDevice = function(id) { return tellduscore.removeDevice(id); };
  exports.turnOn = function(id) { return tellduscore.turnOn(id); };
  exports.turnOff = function(id) { return tellduscore.turnOff(id); };
  exports.dim = function(id, levl) { return tellduscore.dim(id, levl); };
  exports.addDeviceEventListener = function(callback) { return tellduscore.addDeviceEventListener(callback); };
  exports.addSensorEventListener = function(callback) { return tellduscore.addSensorEventListener(callback); };
  exports.addRawDeviceEventListener = function(callback) { return tellduscore.addRawDeviceEventListener(callback); };
  exports.removeEventListener = function(id) { return tellduscore.removeEventListener(id); };
  exports.getErrorString = function(id) { return tellduscore.getErrorString(id); };
{'fraction_non_alphanumeric': 0.1292620865139949, 'fraction_numerical': 0.0, 'mean_word_length': 6.92741935483871, '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': '7263656', 'n_tokens_mistral': 567, 'n_tokens_neox': 568, 'n_words': 98}