<commit_before>// Requires
var irc  = require('irc');


// Create the configuration
var config = {
	channels: ["#bitmark"],
	server: "irc.freenode.net",
	botName: "markbot"
};


// Create the bot name
var bot = new irc.Client(config.server, config.botName, {
	channels: config.channels
});


// Listen for any messages
bot.addListener("message", function(from, to, text, message) {

  console.log(message);

});

<commit_msg>log in and log out<commit_after>// Requires
var irc  = require('irc');

// Init
var botName = 'markbot';
var channel = '#bitmark';
var duration = 30000;
var joinMessage = 'Greetings, I am markbot.  Just popping in briefly, to look around.';
var partMessage = "So long, until next time.  I'll be back!";


// Create the configuration
var config = {
  channels: [channel],
  server: "irc.freenode.net",
  botName: botName,
  autoconnect: true
};


// Create the bot name
var bot = new irc.Client(config.server, config.botName, {
  channels: config.channels
});


// Join message
bot.addListener("join", function(channel, nick, message) {
  bot.say(channel, joinMessage);
});

// Listen for any messages
bot.addListener("message", function(from, to, text, message) {
  console.log(message);
});

// part
setTimeout(part, duration);
function part() {
  bot.say(config.channels[0], partMessage);
  bot.part(config.channels[0], partMessage, function(){ 
    console.log("Exiting");
    process.exit(0);
  });
}
{'fraction_non_alphanumeric': 0.15605318404478657, 'fraction_numerical': 0.005598320503848845, 'mean_word_length': 4.181159420289855, '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': '5056302', 'n_tokens_mistral': 485, 'n_tokens_neox': 466, 'n_words': 133}