<commit_before>var Reaction = function() {
    this.jsdom = require('jsdom');
    this.request = require('request');
};

Reaction.prototype = {
    handle: function(from, chan, message) {
        var self = this,
            matches = message.match(/^#(.+)/i);
            irc = global.irc;

        if (matches) {
            console.log('Reaction: ' + matches[1]);

            self.jsdom.env('http://www.reactiongifs.com/?s=' + matches[1], ['http://code.jquery.com/jquery-1.6.min.js'], function(err, window) {
                var $ = window.jQuery,
                src = $($('.entry img').get().sort(function() {
                    return Math.round(Math.random()) - 0.5;
                }).slice(0,1)).attr('src');

                irc.client.say(chan, src);
            });

        }
    }
};

module.exports = new Reaction();<commit_msg>Fixed JSHint for reaction module<commit_after>var Reaction = function() {
    this.jsdom = require('jsdom');
    this.request = require('request');
};

Reaction.prototype = {
    handle: function(from, chan, message) {
        var self = this,
            matches = message.match(/^#(.+)/i);

        if (matches) {
            console.log('Reaction: ' + matches[1]);

            self.jsdom.env('http://www.reactiongifs.com/?s=' + matches[1], ['http://code.jquery.com/jquery-1.6.min.js'], function(err, window) {
                var $ = window.jQuery,
                src = $($('.entry img').get().sort(function() {
                    return Math.round(Math.random()) - 0.5;
                }).slice(0,1)).attr('src');

                global.irc.client.say(chan, src);
            });

        }
    }
};

module.exports = new Reaction();
{'fraction_non_alphanumeric': 0.18861209964412812, 'fraction_numerical': 0.009489916963226572, 'mean_word_length': 1.9086206896551725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7465251', 'n_tokens_mistral': 537, 'n_tokens_neox': 500, 'n_words': 85}