<commit_before>from flask import Flask, request, redirect
import twilio.twiml
from twilio.rest import TwilioRestClient
import os

from lib import selectProcess
from authenticate import isAllowed

app = Flask(__name__)

@app.route("/", methods=['GET', 'POST'])

def respond():
    ACCOUNT_SID = "ACe892e28b309a94844845c5f621ca451a"
    AUTH_TOKEN = "9<PASSWORD>"
    OUR_NUMBER = "+18442306122"


    client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)

    userMessage = request.values.get( 'Body', None )
    userPhoneNumber = request.values.get( 'From', None)
    print(userPhoneNumber)

    resp = twilio.twiml.Response()

    if(isAllowed(userPhoneNumber)):
        ## Send raw user input for parsing and api use
        response = selectProcess( userMessage )
        resp.message(response)
    else:
        response = "Welcome to SMS, the premier web-surfing text message service!\n To gain access to our many features including Wikipedia lookup, Yelp, and Google Maps directions, please call 1-844-230-6122 to subscribe"<commit_msg>updated req for geocode and google again<commit_after>from flask import Flask, request, redirect
import twilio.twiml
from twilio.rest import TwilioRestClient
import os

from lib import selectProcess
from authenticate import isAllowed

app = Flask(__name__)

@app.route("/", methods=['GET', 'POST'])

def respond():
    ACCOUNT_SID = "ACe892e28b309a94844845c5f621ca451a"
    AUTH_TOKEN = "<PASSWORD>"
    OUR_NUMBER = "+18442306122"


    client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)

    userMessage = request.values.get( 'Body', None )
    userPhoneNumber = str(request.values.get( 'From', None))
    print(userPhoneNumber)

    resp = twilio.twiml.Response()

    if(isAllowed(userPhoneNumber)):
        ## Send raw user input for parsing and api use
        response = selectProcess( userMessage )
        resp.message(response)
    else:
        response = "Welcome to SMS, the premier web-surfing text message service!\n To gain access to our many features including Wikipedia lookup, Yelp, and Google Maps directions, please call 1-844-230-6122 to subscribe"
{'fraction_non_alphanumeric': 0.09103840682788052, 'fraction_numerical': 0.0431484115694642, 'mean_word_length': 4.108958837772397, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2298779', 'n_tokens_mistral': 705, 'n_tokens_neox': 630, 'n_words': 193}