<commit_before>var GitServer = require('git-server');

module.exports = function(log, user, repos) {

    repos.forEach(function(repo) {
        repo.users[0].user = user;
    });

    server = new GitServer(repos, true, path.resolve(__dirname, 'repos'), 7000);

    server.on('pre-receive', function(update, repo) {
        log.info('git:pre-receive', repo.name);
        update.accept();
    });

    server.on('update', function(update, repo) {
        log.info('git:update', repo.name);<commit_msg>fixes pathing issue for gitserver<commit_after>var GitServer = require('git-server');

module.exports = function(log, user, repos) {

    repos.forEach(function(repo) {
        repo.users[0].user = user;
    });

    server = new GitServer(repos, true, path.resolve(__dirname, '..', 'repos'), 7000);

    server.on('pre-receive', function(update, repo) {
        log.info('git:pre-receive', repo.name);
        update.accept();
    });

    server.on('update', function(update, repo) {
        log.info('git:update', repo.name);
{'fraction_non_alphanumeric': 0.17766990291262136, 'fraction_numerical': 0.009708737864077669, 'mean_word_length': 3.405982905982906, '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': '6516677', 'n_tokens_mistral': 345, 'n_tokens_neox': 319, 'n_words': 59}