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

class CiscoController < ApplicationController
  def ise_guest
    params[:mandrill_events].each do |event|
      event['msg'].each do |message|
        puts "\n\n\n\n******Message Text:\n\n#{message}\n\n\n\n"

        attributes = parse_email message['text']

        send_message(attributes[:to], "Your Teamsquare WiFi username is #{attributes[:username]} and password is #{attributes[:password]}.")
      end
    end
  end

  def head_ise_guest
    render :json => {:sucess => true}, :status => 200
  end
end<commit_msg>Fixed data structure bug in message<commit_after>require 'rubygems'
require 'twilio-ruby'

class CiscoController < ApplicationController
  def ise_guest
    params['mandrill_events'].each do |event|
      message = event['msg']['text']
      puts "\n\n\n\n******Message Text:\n\n#{message}\n\n\n\n"
      attributes = parse_email(message)

      send_message(attributes[:to], "Your Teamsquare WiFi username is #{attributes[:username]} and password is #{attributes[:password]}.")
    end
  end

  def head_ise_guest
    render :json => {:sucess => true}, :status => 200
  end

end
{'fraction_non_alphanumeric': 0.14248704663212436, 'fraction_numerical': 0.0051813471502590676, 'mean_word_length': 3.890295358649789, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5033838', 'n_tokens_mistral': 371, 'n_tokens_neox': 351, 'n_words': 91}