<commit_before>#!/usr/bin/env node

var program = require('commander');
var fs = require('fs');

var driverManager = require('../../driverManager');
var pwdSimulator = require('../carelinkSimulator.js');
var carelinkDriver = require('../../drivers/carelinkDriver');
var api = require('../../core/api.js');
var config = require('../../../.config.js');
var pkg = require('./../../../package.json');


/*
 * Load the given carelink file and then parse and send the data to the tp-platform
 */
function loadFile(filePath, tz) {
  fs.readFile(filePath, 'utf8', function(error, data) {
    console.log('Reading :: ', filePath);
    if (error) {
      console.log('Error reading carelink file ', error);
      return;
    }

    var drivers = {'Carelink': carelinkDriver(pwdSimulator, api)};
    var cfg = { 'Carelink': { filename: filePath, fileData: data, timezone: tz, version : pkg.name+' '+pkg.version } };<commit_msg>addition of groupId<commit_after>#!/usr/bin/env node

var program = require('commander');
var fs = require('fs');

var driverManager = require('../../driverManager');
var pwdSimulator = require('../carelinkSimulator.js');
var carelinkDriver = require('../../drivers/carelinkDriver');
var api = require('../../core/api.js');
var config = require('../../../.config.js');
var pkg = require('./../../../package.json');


/*
 * Load the given carelink file and then parse and send the data to the tp-platform
 */
function loadFile(filePath, tz) {
  fs.readFile(filePath, 'utf8', function(error, data) {
    console.log('Reading :: ', filePath);
    if (error) {
      console.log('Error reading carelink file ', error);
      return;
    }

    var drivers = {'Carelink': carelinkDriver(pwdSimulator, api)};
    var cfg = { 'Carelink': { filename: filePath, fileData: data, timezone: tz, version : pkg.name+' '+pkg.version, groupId: null } };
{'fraction_non_alphanumeric': 0.1921208850512682, 'fraction_numerical': 0.0010793308148947653, 'mean_word_length': 3.600496277915633, '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': '4487575', 'n_tokens_mistral': 580, 'n_tokens_neox': 558, 'n_words': 154}