<commit_before>/** 
 * @module dashboard_controller
 **/

"use strict";
var log = require('./utils/log')('dashboard_controller');
var utils = require('./utils/galileo')();
var mraa_version = 'unknown';
try {
  mraa_version = require("mraa").getVersion();
} catch (e) {};

var SERVICES = ['avahi-daemon', 'bluetooth', 'connman', 'lighttpd', 'maker-node', 'redis', 'xdk-daemon'];

module.exports = function(conn) {
  function checkService(index, result) {
    if (!result) {
      result = {
        action: 'list',
        services: {}
      };<commit_msg>Strip leading "v" off mraa version.<commit_after>/** 
 * @module dashboard_controller
 **/

"use strict";
var log = require('./utils/log')('dashboard_controller');
var utils = require('./utils/galileo')();
var mraa_version = 'unknown';
try {
  mraa_version = require("mraa").getVersion().substr(1);
} catch (e) {};

var SERVICES = ['avahi-daemon', 'bluetooth', 'connman', 'lighttpd', 'maker-node', 'redis', 'xdk-daemon'];

module.exports = function(conn) {
  function checkService(index, result) {
    if (!result) {
      result = {
        action: 'list',
        services: {}
      };
{'fraction_non_alphanumeric': 0.19614711033274956, 'fraction_numerical': 0.0008756567425569177, 'mean_word_length': 3.9695652173913043, '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': '6315326', 'n_tokens_mistral': 386, 'n_tokens_neox': 380, 'n_words': 83}