<commit_before>var express = require('express');
var router = express.Router();
var Channel = require('../models/Channel');

/* Register a new channel name */
router.post('/register', function(req, res, next) {
    new Channel({name: req.body.name})
    .save()
    .then(channel => {
        res.redirect('/');
    });
});

module.exports = router;<commit_msg>add join channel after register<commit_after>var express = require('express');
var router = express.Router();
var Channel = require('../models/Channel');

/* Register a new channel name */
router.post('/register', function(req, res, next) {
    new Channel({name: req.body.name})
    .save()
    .then(channel => {
        req.app.locals.irc.join(channel.name);
        res.redirect('/');
    });
});

module.exports = router;
{'fraction_non_alphanumeric': 0.1880559085133418, 'fraction_numerical': 0.0, 'mean_word_length': 3.5028571428571427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1633428', 'n_tokens_mistral': 233, 'n_tokens_neox': 230, 'n_words': 56}