<commit_before>var login = require("facebook-chat-api");
var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 5000));

login({email: "<EMAIL>", password: "<PASSWORD>"}, function callback (err, api) {
    if(err) return console.error(err);
    console.log(":O");
 
    api.getUserID("<NAME>", function(err, data) {
    	if(err) return callback(err);

        // Send the message to the best match (best by Facebook's criteria)
        var threadID = data[0].userID;
        api.sendMessage("hi", threadID);
    });

    api.setOptions({listenEvents: true});
 	var coins = 0;
 	var slient = false;
    var stopListening = api.listen(function(err, event) {
    	if(err) return console.error(err);
	 	console.log(event);
	    switch(event.type) {
	    	case "message":
	          	var call = event.body.substring(0, 6);
	          	var text_string = event.body.replace("Alfred ", "");
	          	if (call == "Alfred" || call == "alfred") {
		            if(text_string === 'shut up' || text_string == 'stop' && !slient) {
		              api.sendMessage("Ok see you later", event.threadID);
		              slient = true;
		            } else if(text_string === 'start listening' || text_string == 'start') {
		              api.sendMessage("Hello I'm the Alfred chat bot.", event.threadID);
		              slient = false;
		            }
		        } 
		        else {
		        	if (!slient) {
			            if(event.body == '/add coin') {
			            	coins++;
			              	api.sendMessage("I now have " + coins + "! I am rich.", event.threadID);
			            } else if(event.body === '/takeaway coin') {
			            	coins--;
			              	api.sendMessage("I now have " + coins + "! I am poor.", event.threadID);<commit_msg>sticker test<commit_after>var login = require("facebook-chat-api");
var express = require('express');
var app = express();

app.set('port', (process.env.PORT || 5000));

login({email: "<EMAIL>", password: "<PASSWORD>"}, function callback (err, api) {
    if(err) return console.error(err);
    console.log(":O");
 
    api.getUserID("<NAME>", function(err, data) {
    	if(err) return callback(err);

        // Send the message to the best match (best by Facebook's criteria)
        var threadID = data[0].userID;
        api.sendMessage("hi", threadID);
    });

    api.setOptions({listenEvents: true});
 	var coins = 0;
 	var slient = false;
    var stopListening = api.listen(function(err, event) {
    	if(err) return console.error(err);
	 	console.log(event);
	    switch(event.type) {
	    	case "message":
	          	var call = event.body.substring(0, 6);
	          	var text_string = event.body.replace("Alfred ", "");
	          	if (call == "Alfred" || call == "alfred") {
		            if(text_string === 'shut up' || text_string == 'stop' && !slient) {
		              api.sendMessage("Ok see you later", event.threadID);
		              slient = true;
		            } else if(text_string === 'start listening' || text_string == 'start') {
		              api.sendMessage("Hello I'm the Alfred chat bot.", event.threadID);
			          api.sendMessage({sticker: 144884765685790}, event.threadID);
		              slient = false;
		            }
		        } 
		        else {
		        	if (!slient) {
			            if(event.body == '/add coin') {
			            	coins++;
			              	api.sendMessage("I now have " + coins + "! I am rich.", event.threadID);
			            } else if(event.body === '/takeaway coin') {
			            	coins--;
			              	api.sendMessage("I now have " + coins + "! I am poor.", event.threadID);
{'fraction_non_alphanumeric': 0.1580104424292388, 'fraction_numerical': 0.008518823852706787, 'mean_word_length': 2.111111111111111, 'pattern_counts': {'":': 4, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4567693', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1062, 'n_words': 269}