<commit_before>// Twilio Credentials 
var config = require('../config.js');
var accountSid = config.twilioKeys.accountSid;
var authToken = config.twilioKeys.authToken;
 
//require the Twilio module and create a REST client 
var client = require('twilio')(accountSid, authToken); 
var fromNum = "+16619276630";
var telephony = {};

telephony.sendMessage = function(data){
  console.log('fromNum : ', data.userName);
  console.log('toNum : ', data.userNumber);
  
  client.messages.create({ 
    to: '+1'+data.userNumber, 
    from: fromNum, 
    body: "Hello "+ data.userName +"! You are booked for *Party_Size* at *Course Name*, at *Time*.",   
  }, function(err, message) { 
    console.log(message.sid); 
  });
}

module.exports = telephony;<commit_msg>fix:  requests not using http protocol, added // to 'post' call.<commit_after>// Twilio Credentials 
var config = require('../config.js');
var accountSid = config.twilioKeys.accountSid;
var authToken = config.twilioKeys.authToken;
 
//require the Twilio module and create a REST client 
var client = require('twilio')(accountSid, authToken); 
var fromNum = "+16619276630";
var telephony = {};

telephony.sendMessage = function(data){
  var msgContent = "Hello "+ data.userName +"! You are booked for *Party_Size* at *Course Name*, at *Time*.";
  console.log('msgContent: ', msgContent);
  console.log('fromNum : ', data.userName);
  console.log('toNum : ', data.userNumber);
  
  client.messages.create({ 
    to: '+1'+data.userNumber, 
    from: fromNum, 
    body: msgContent,   
  }, function(err, message) { 
    console.log(message.sid); 
  });
}

module.exports = telephony;
{'fraction_non_alphanumeric': 0.1510703363914373, 'fraction_numerical': 0.014678899082568808, 'mean_word_length': 4.128526645768025, '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': '4320482', 'n_tokens_mistral': 562, 'n_tokens_neox': 524, 'n_words': 131}