<commit_before>'use strict'

var request = require('request')
var Config = require('../config')

// SETUP A REQUEST TO FACEBOOK SERVER
var newRequest = request.defaults({
	uri: 'https://graph.facebook.com/v2.6/me/messages',
	method: 'POST',
	json: true,
	qs: {
		access_token: Config.FB_PAGE_TOKEN
	},
	headers: {
		'Content-Type': 'application/json'
	},
})

// SETUP A MESSAGE FOR THE FACEBOOK REQUEST
var newMessage = function (recipientId, msg, atts, cb) {
	var opts = {
		form: {
			recipient: {
				id: recipientId
			},
		}
	}

	// https://developers.facebook.com/docs/messenger-platform/send-api-reference

	// FOR IMAGES
	// "message":{
	//    "attachment":{
	//      "type":"image",
	//      "payload":{
	//        "url":"https://petersapparel.com/img/shirt.png"
	//      }
	//    }
	//  }

	// FOR TEMPLATES
	// "message":{
	//   "attachment":{
	//     "type":"template",
	//     "payload":{
	//       "template_type":"button",
	//       "text":"What do you want to do next?",
	//       "buttons":[
	//         {
	//           "type":"web_url",
	//           "url":"https://petersapparel.parseapp.com",
	//           "title":"Show Website"
	//         },
	//         {
	//           "type":"postback",
	//           "title":"Start Chatting",
	//           "payload":"USER_DEFINED_PAYLOAD"
	//         }
	//       ]
	//     }
	//   }
	// }

	

	if (atts) {
		msg=JSON.parse(msg);
		console.log("Message Object:" +msg);
		
		var message = {
			attachment: {
				"type": "template",
				"payload": {<commit_msg>Logs Added<commit_after>'use strict'

var request = require('request')
var Config = require('../config')

// SETUP A REQUEST TO FACEBOOK SERVER
var newRequest = request.defaults({
	uri: 'https://graph.facebook.com/v2.6/me/messages',
	method: 'POST',
	json: true,
	qs: {
		access_token: Config.FB_PAGE_TOKEN
	},
	headers: {
		'Content-Type': 'application/json'
	},
})

// SETUP A MESSAGE FOR THE FACEBOOK REQUEST
var newMessage = function (recipientId, msg, atts, cb) {
	var opts = {
		form: {
			recipient: {
				id: recipientId
			},
		}
	}

	// https://developers.facebook.com/docs/messenger-platform/send-api-reference

	// FOR IMAGES
	// "message":{
	//    "attachment":{
	//      "type":"image",
	//      "payload":{
	//        "url":"https://petersapparel.com/img/shirt.png"
	//      }
	//    }
	//  }

	// FOR TEMPLATES
	// "message":{
	//   "attachment":{
	//     "type":"template",
	//     "payload":{
	//       "template_type":"button",
	//       "text":"What do you want to do next?",
	//       "buttons":[
	//         {
	//           "type":"web_url",
	//           "url":"https://petersapparel.parseapp.com",
	//           "title":"Show Website"
	//         },
	//         {
	//           "type":"postback",
	//           "title":"Start Chatting",
	//           "payload":"USER_DEFINED_PAYLOAD"
	//         }
	//       ]
	//     }
	//   }
	// }

	

	if (atts) {

		
		console.log("Message Object:" +msg);

		var message = {
			attachment: {
				"type": "template",
				"payload": {
{'fraction_non_alphanumeric': 0.199535192563081, 'fraction_numerical': 0.0013280212483399733, 'mean_word_length': 1.9309338521400778, 'pattern_counts': {'":': 40, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '7519991', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1065, 'n_words': 184}