<commit_before>(function() {
  'use strict';

  exports.init = function(params) {
    var fs = require('fs');
    var path = require('path');
    var service = params['service'];
    var shell = require('shelljs');

    if (!service) {
      throw new Error('missing required parameter "service"');
    }
    createUser();
    enableLogging();
    writeUpstart();
    enableDaemon();

    function createUser() {
      console.log('creating user ' + service);
    }

    function writeUpstart() {
      var srcFile = path.join(__dirname, 'template.upstart');
      console.log('upstart contents:');
      fs.readFile(srcFile, 'utf8', function(err, data) {
        if (err) {
          return console.log(err);
        }
        console.log(data);
      });
    }

    function enableLogging() {
      var logPath = path.join(process.env.npm_config_quichean_logging_path, service);
      console.log('log path: ' + logPath);
    }

    function enableDaemon() {
      console.log('enabling daemon');
    }
  };
})();<commit_msg>Verify that exception is raised if appropriate.<commit_after>(function() {
  'use strict';

  exports.init = function(params) {
    var fs = require('fs');
    var path = require('path');
    var service = params['service'];
    var shell = require('shelljs');

    if (!service) {
      throw new Error('missing required parameter "service"');
    }
    createUser();
    enableLogging();
    writeUpstart();
    enableDaemon();

    function createUser() {
      console.log('creating user ' + service);
    }

    function writeUpstart() {
      //var srcFile = path.join(__dirname, 'template.upstart');
      var srcFile = path.join(__dirname, 'foo.upstart');

      console.log('upstart contents:');
      fs.readFile(srcFile, 'utf8', function(err, data) {
        if (err) {
          throw new Error(err);
        }
        console.log(data);
      });
    }

    function enableLogging() {
      var logPath = path.join(process.env.npm_config_quichean_logging_path, service);
      console.log('log path: ' + logPath);
    }

    function enableDaemon() {
      console.log('enabling daemon');
    }
  };
})();
{'fraction_non_alphanumeric': 0.15058275058275059, 'fraction_numerical': 0.0009324009324009324, 'mean_word_length': 2.71280276816609, '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': '2534389', 'n_tokens_mistral': 652, 'n_tokens_neox': 637, 'n_words': 139}