<commit_before>var Issues = function() {
	//Constructor
};

Issues.prototype = {
	https: require('https'),

	handle: function(from, chan, message) {
		var irc = global.irc;

		if (message.length === '!issues'.length && message.indexOf('!issues') === 0) {
			var req = this.https.request('https://api.github.com/repos/HackThis/NexBot/issues', function(res) {
				var data = '';

				res.on('data', function(chunk) {
					data += chunk;
				});

				res.on('end', function() {
					// Get the result and turn it into a JSON object.
					try {
						var obj = JSON.parse(data);
						var count = obj.length;
						irc.client.say(chan, "NexBot has " + count + " open issue" + (count > 1 ? 's' : '') + " [http://git.io/hjkhrA]");
					} catch (e) {
						console.log(e);
					}
				});
			});

			req.end();

			req.on('error', function(error) {
				irc.client.say(chan, "Errm there's be an error");
				console.log(error);
			});
		}
	}
};

module.exports = new Issues();<commit_msg>Fixed the issues module.<commit_after>var Issues = function () {
    //Constructor
};

Issues.prototype = {
    https: require('https'),

    handle: function (from, chan, message) {
        var irc = global.irc;
        if (message.length === '!issues'.length && message.indexOf('!issues') === 0) {
            var req = this.https.request({
                host: 'api.github.com',
                path: '/repos/HackThis/NexBot/issues',
                headers: {
                    'User-Agent': 'hackthis/NexBot'
                }
            }, function (res) {
                var data = '';

                res.on('data', function (chunk) {
                    data += chunk;
                });

                res.on('end', function () {
                    if (res.statusCode === 200) {
                        try {
                            var obj = JSON.parse(data);
                            var count = obj.length;
                            irc.client.say(chan, "NexBot has " + count + " open issue" + (count > 1 ? 's' : '') + " [http://git.io/hjkhrA]");
                        } catch (e) {
                            console.log(e);
                        }
                    } else {
                        console.log("Issues request failed, response code: " + res.statusCode);
                        console.log("Returned body: " + data);
                    }
                });
            });

            req.end();

            req.on('error', function (error) {
                irc.client.say(chan, "Errm there's be an error");
            });
        }
    }
};

module.exports = new Issues();

{'fraction_non_alphanumeric': 0.16087122659533817, 'fraction_numerical': 0.0026748184944593045, 'mean_word_length': 1.462841015992474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3695173', 'n_tokens_mistral': 879, 'n_tokens_neox': 750, 'n_words': 163}