<commit_before>#!/usr/bin/env python

"""A barebones AppEngine application that uses Facebook for login."""

FACEBOOK_APP_ID = "280237022005951"
FACEBOOK_APP_SECRET = "6ddb8ceb6cefc3ab1aa3adcec6a9e064"

import facebook
import os.path
import wsgiref.handlers

from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext.webapp import template


class User(db.Model):
    id = db.StringProperty(required=True)
    created = db.DateTimeProperty(auto_now_add=True)
    updated = db.DateTimeProperty(auto_now=True)
    name = db.StringProperty(required=True)
    profile_url = db.StringProperty(required=True)
    access_token = db.StringProperty(required=True)


class Experience(db.Model):
    user = db.StringProperty()
    exp = db.IntegerProperty()
    lvl = db.IntegerProperty()

def game_key():
    return db.Key.from_path('Game','default')

class BaseHandler(webapp.RequestHandler):
    """Provides access to the active Facebook user in self.current_user

    The property is lazy-loaded on first access, using the cookie saved
    by the Facebook JavaScript SDK to determine the user ID of the active<commit_msg>update the example.<commit_after>#!/usr/bin/env python

"""A barebones AppEngine application that uses Facebook for login."""

FACEBOOK_APP_ID = "280237022005951"
FACEBOOK_APP_SECRET = "6ddb8ceb6cefc3ab1aa3adcec6a9e064"

import facebook
import os.path
import wsgiref.handlers

from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.ext.webapp import template


class User(db.Model):
    id = db.StringProperty(required=True)
    created = db.DateTimeProperty(auto_now_add=True)
    updated = db.DateTimeProperty(auto_now=True)
    name = db.StringProperty(required=True)
    profile_url = db.StringProperty(required=True)
    access_token = db.StringProperty(required=True)


class Experience(db.Model):
    user = db.UserProperty()
    exp = db.IntegerProperty()
    lvl = db.IntegerProperty()

def game_key():
    return db.Key.from_path('Game','default')

class BaseHandler(webapp.RequestHandler):
    """Provides access to the active Facebook user in self.current_user

    The property is lazy-loaded on first access, using the cookie saved
    by the Facebook JavaScript SDK to determine the user ID of the active
{'fraction_non_alphanumeric': 0.087551867219917, 'fraction_numerical': 0.021576763485477178, 'mean_word_length': 4.880487804878049, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5443902', 'n_tokens_mistral': 771, 'n_tokens_neox': 734, 'n_words': 197}