<commit_before>var http = require('http');

module.exports = function (app) {
  var conf;

  // Default conf.
  app.conf.add({
    web: {
      server: {
        port: 3000
      }
    }
  });
  conf = app.conf.get('web:server');

  // Create server.
  if (!app.server && !!conf) {
    app.server = http.createServer();

    // When the app starts, start listening.
    app.hook('start').last(1000, function (next) {
      if (!app.server.address() && (typeof conf.port !== 'undefined') && (typeof conf.listen === 'undefined' || conf.listen)) {
        app.server.listen(conf.port, function () {<commit_msg>Better server disable syntax.<commit_after>var http = require('http');

module.exports = function (app) {
  var conf;

  // Default conf.
  app.conf.add({
    web: {
      server: {
        port: 3000
      }
    }
  });
  conf = app.conf.get('web:server');

  // Create server.
  if (!app.server && !conf.disabled) {
    app.server = http.createServer();

    // When the app starts, start listening.
    app.hook('start').last(1000, function (next) {
      if (!app.server.address() && (typeof conf.port !== 'undefined') && (typeof conf.listen === 'undefined' || conf.listen)) {
        app.server.listen(conf.port, function () {
{'fraction_non_alphanumeric': 0.18336025848142165, 'fraction_numerical': 0.012924071082390954, 'mean_word_length': 2.665680473372781, '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': '303408', 'n_tokens_mistral': 409, 'n_tokens_neox': 387, 'n_words': 91}