<commit_before>'use strict';

var broccoli = require('broccoli');
var Promise = require('rsvp').Promise;
var Server = require('../../server');
var Watcher =  require('../../../node_modules/broccoli/lib/watcher');

function getBuilder () {
  var tree = broccoli.loadBrocfile();
  return new broccoli.Builder(tree);
}

module.exports = function server(options) {
  var watcher = new Watcher(getBuilder());

  options.watcher = watcher;

  Server.serve(options);
  return new Promise(function(){ }); // runs for-ever
};
<commit_msg>let npm ensure its in our loadpath<commit_after>'use strict';

var broccoli = require('broccoli');
var Promise = require('rsvp').Promise;
var Server = require('../../server');
var Watcher =  require('broccoli/lib/watcher');

function getBuilder () {
  var tree = broccoli.loadBrocfile();
  return new broccoli.Builder(tree);
}

module.exports = function server(options) {
  var watcher = new Watcher(getBuilder());

  options.watcher = watcher;

  Server.serve(options);
  return new Promise(function(){ }); // runs for-ever
};

{'fraction_non_alphanumeric': 0.16461684011352887, 'fraction_numerical': 0.0, 'mean_word_length': 4.539267015706806, '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': '3722099', 'n_tokens_mistral': 331, 'n_tokens_neox': 315, 'n_words': 80}