<commit_before>(function (module) {
  "use strict";
  
  var debug = require("./debug");
  var connect = require("connect");

  function Site(mod) {
    this.module = mod;
  }
  
  Site.prototype.start = function(app, cb) {
   var hostname = this.module.hostname;
   
   if (!hostname) {
     return cb(new Error("no hostname defined for module " + this.module));
   }
   
   var site = connect.createServer();
   app.use(connect.vhost(hostname, site));
  }

  module.exports = function (app, mod, cb) {
    debug("starting", mod);
    var site = new Site(mod);
    
    return site.start(app, cb);
  };

})(module);
<commit_msg>cleanup<commit_after>(function (module) {
  "use strict";

  var debug = require("./debug");
  var connect = require("connect");

  function Site(mod) {
    this.module = mod;
  }

  Site.prototype.start = function (app, cb) {
    var hostname = this.module.hostname;

    if (!hostname) {
      return cb(new Error("no hostname defined for module " + this.module));
    }

    var site = connect.createServer();
    var vhost = connect.vhost(hostname, site);

    app.use(vhost);
  }

  module.exports = function (app, mod, cb) {
    debug("starting", mod);
    var site = new Site(mod);

    return site.start(app, cb);
  };

})(module);

{'fraction_non_alphanumeric': 0.15760441292356187, 'fraction_numerical': 0.0, 'mean_word_length': 2.981191222570533, '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': '2788984', 'n_tokens_mistral': 424, 'n_tokens_neox': 415, 'n_words': 104}