<commit_before>from flask import Flask, request, jsonify, render_template, url_for
import random
import urlparse
import twilio.twiml
from twilio import TwilioRestException
from utils import load_data, set_trace
from models import log_call, aggregate_stats
from utils import get_database, play_or_say, locate_member_ids

app = Flask(__name__)
app.config.from_object('config.ConfigProduction')

db = get_database(app)

call_methods = ['GET', 'POST']

campaigns, legislators, districts = load_data()
defaults_campaign = campaigns['default']

def full_url_for(route, **kwds):
    return urlparse.urljoin(app.config['APPLICATION_ROOT'],<commit_msg>added jsonpify<commit_after>from flask import Flask, request, jsonify, render_template, url_for
import random
import urlparse
import twilio.twiml
from twilio import TwilioRestException
from utils import load_data, set_trace
from models import log_call, aggregate_stats
from utils import get_database, play_or_say, locate_member_ids
from flask.ext.jsonpify import jsonify

app = Flask(__name__)
app.config.from_object('config.ConfigProduction')

db = get_database(app)

call_methods = ['GET', 'POST']

campaigns, legislators, districts = load_data()
defaults_campaign = campaigns['default']

def full_url_for(route, **kwds):
    return urlparse.urljoin(app.config['APPLICATION_ROOT'],
{'fraction_non_alphanumeric': 0.08748114630467571, 'fraction_numerical': 0.0, 'mean_word_length': 7.730263157894737, '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': '4448258', 'n_tokens_mistral': 411, 'n_tokens_neox': 401, 'n_words': 110}