<commit_before>require 'twilio-ruby'

module Committed
  ##
  # SMS handler for TwiML
  class SMS
    post '/sms' do
      @user = guess_user params[:From], params[:Body]
      @has_committed = check @user
      Twilio::TwiML::Response.new do |r|
        r.Message "#{@user} has #{'not ' unless @has_committed}committed today"
      end.text<commit_msg>more sinatra<commit_after>require 'sinatra/base'
require 'twilio-ruby'

module Committed
  ##
  # SMS handler for TwiML
  class SMS < Sinatra::Base
    post '/sms' do
      @user = guess_user params[:From], params[:Body]
      @has_committed = check @user
      Twilio::TwiML::Response.new do |r|
        r.Message "#{@user} has #{'not ' unless @has_committed}committed today"
      end.text
{'fraction_non_alphanumeric': 0.12903225806451613, 'fraction_numerical': 0.0, 'mean_word_length': 3.30635838150289, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5962680', 'n_tokens_mistral': 258, 'n_tokens_neox': 251, 'n_words': 65}