<commit_before>'use strict';
const nodemailer = require('nodemailer');
const fs = require('fs');
const request = require('request');

module.exports = function (app) {


    function sendMessage(event) {
        let sender = event.sender.id;
        let text = event.message.text;

        request({
            url: 'https://graph.facebook.com/v2.6/me/messages',
            qs: {access_token: '<KEY>'},
            method: 'POST',
            json: {
                recipient: {id: sender},
                message: {text: text}
            }
        }, function (error, response) {
            if (error) {
                console.log('Error sending message: ', error);<commit_msg>fb messenger bot testing 2<commit_after>'use strict';
const nodemailer = require('nodemailer');
const fs = require('fs');
const request = require('request');

module.exports = function (app) {


    function sendMessage(event) {
        let sender = event.sender.id;
        let text = event.message.text;

        request({
            url: 'https://graph.facebook.com/v2.6/me/messages',
            qs: {access_token: 'EAABzjRLllHgBABHjf4jadxDvpKoGUp7Q5P4VfP9vYrqYkKZASpnH0Yvx5aZAbLD9NwRTF8zndZC7F2ldLe3pFZBwmo0hee6nC2FsSYlLJaouHJWLwRzMAIEIwp8pCchFkZCo5BxhP1JgZCU9dBbmepzfhStOXjZBjZCBuNdpwrrYvIvqwAXqJeXl'},
            method: 'POST',
            json: {
                recipient: {id: sender},
                message: {text: text}
            }
        }, function (error, response) {
            if (error) {
                console.log('Error sending message: ', error);
{'fraction_non_alphanumeric': 0.12284069097888675, 'fraction_numerical': 0.015355086372360844, 'mean_word_length': 2.3205944798301488, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '172949', 'n_tokens_mistral': 533, 'n_tokens_neox': 510, 'n_words': 95}