<commit_before>// Manager module

// Package dependencies
var scripts = require('child_process');
var config = require('../config.js');
var common = require('./_common.js');
var rebootScript = 

// /reboot
// Reboots the system
exports.reboot = function (req, res) {
  // Reboots the system
  scripts.exec('sudo /sbin/reboot', function (error, stdout, stderr) {
    if (error) {
      common.logError(stderr);
      common.sendJSON('reboot_error', res, 500);
      return;
    }
    common.sendJSON('reboot_ok', res, 200);
  });
};<commit_msg>Minor fix<commit_after>// Manager module

// Package dependencies
var scripts = require('child_process');
var config = require('../config.js');
var common = require('./_common.js');
var rebootScript = 

// /reboot
// Reboots the system
exports.reboot = function (req, res) {
  // Reboots the system
  scripts.exec('sudo /sbin/reboot', function (error, stdout, stderr) {
    if (error) {
      common.logError(stderr);
      res.sendCode(500);
      return;
    }
    common.sendJSON('reboot_ok', res, 200);
  });
};
{'fraction_non_alphanumeric': 0.16257088846880907, 'fraction_numerical': 0.011342155009451797, 'mean_word_length': 3.37603305785124, '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': '4120322', 'n_tokens_mistral': 357, 'n_tokens_neox': 339, 'n_words': 85}