<commit_before>#!/usr/bin/env node

'use strict';

var connect = require('connect'),
    serveStatic = require('serve-static'),
    build = require('./build'),
    log = require('./log');

module.exports = function serve(config) {
    var server = connect().use(serveStatic(config.target));

    build(config, function() {
        server.listen(config.options.port, function() {
            log.success('serving %s on port %s', config.target, config.options.port);
        });
    });
};<commit_msg>show a link to click on when serving<commit_after>#!/usr/bin/env node

'use strict';

var connect = require('connect'),
    serveStatic = require('serve-static'),
    build = require('./build'),
    log = require('./log');

module.exports = function serve(config) {
    var server = connect().use(serveStatic(config.target));

    build(config, function() {
        server.listen(config.options.port, function() {
            log.success('serving %s on http://127.0.0.1:%s', config.target, config.options.port);
        });
    });
};
{'fraction_non_alphanumeric': 0.17909002904162633, 'fraction_numerical': 0.005808325266214908, 'mean_word_length': 3.272727272727273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1618733', 'n_tokens_mistral': 308, 'n_tokens_neox': 299, 'n_words': 66}