<commit_before>require 'http'
require 'twilio-ruby'

# Get your Account SID and Auth Token from twilio.com/console
account_sid = 'ACCOUNT_SID'
auth_token = '<PASSWORD>'
@client = Twilio::REST::Client.new(account_sid, auth_token)

# Retrieve the message
service = @client.ip_messaging.v1.services('SERVICE_SID')
channel = service.channels('CHANNEL_SID')
message = channel.messages('MESSAGE_SID').fetch
puts message<commit_msg>CMS update of ip-messaging/rest/messages/retrieve-messages by <EMAIL><commit_after>require 'http'
require 'twilio-ruby'

# Get your Account SID, Auth Token, Service SID and Channel SID from twilio.com/console
account_sid = '<ACCOUNT_SID>'
auth_token = '<<PASSWORD>>'
service_sid = '<SERVICE_SID>'
channel_sid = '<CHANNEL_SID>'
@client = Twilio::REST::Client.new(account_sid, auth_token)

# List the messages
service = @client.ip_messaging.v2.services(service_sid)
channel = service.channels(channel_sid) 
message = channel.messages('<MESSAGE_SID>').fetch
puts message
{'fraction_non_alphanumeric': 0.12600806451612903, 'fraction_numerical': 0.0020161290322580645, 'mean_word_length': 7.139344262295082, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6346985', 'n_tokens_mistral': 333, 'n_tokens_neox': 318, 'n_words': 74}