<commit_before># -*- coding: utf-8 -*-

"""
star.core
~~~~~~~~~

The core of the star.
"""

from os import environ
from collections import OrderedDict

import raven
from flask import Flask, render_template, make_response
from flaskext.sqlalchemy import SQLAlchemy
from raven.contrib.flask import Sentry
from sqlalchemy import desc
from rfc3339 import rfc3339

from .sentry import configure_raven

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = environ.get('DATABASE_URL')
app.config['SQLALCHEMY_DATABASE_URI'] = environ.get('DATABASE_URL')
app.debug = True

raven.load(os.environ['SENTRY_DSN'], app.config)

db = SQLAlchemy(app)
sentry = Sentry(app)


class SavedArticle(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(140), unique=False)
    author = db.Column(db.String(80), unique=False)
    published = db.Column(db.DateTime(), unique=False)
    body = db.Column(db.Text(), unique=False)
    link = db.Column(db.String(140), unique=True)

    def __init__(self):
        pass<commit_msg>whoops<commit_after># -*- coding: utf-8 -*-

"""
star.core
~~~~~~~~~

The core of the star.
"""

from os import environ
from collections import OrderedDict

import raven
from flask import Flask, render_template, make_response
from flaskext.sqlalchemy import SQLAlchemy
from raven.contrib.flask import Sentry
from sqlalchemy import desc
from rfc3339 import rfc3339

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = environ.get('DATABASE_URL')
app.config['SQLALCHEMY_DATABASE_URI'] = environ.get('DATABASE_URL')
app.debug = True

raven.load(os.environ['SENTRY_DSN'], app.config)

db = SQLAlchemy(app)
sentry = Sentry(app)


class SavedArticle(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(140), unique=False)
    author = db.Column(db.String(80), unique=False)
    published = db.Column(db.DateTime(), unique=False)
    body = db.Column(db.Text(), unique=False)
    link = db.Column(db.String(140), unique=True)

    def __init__(self):
        pass
{'fraction_non_alphanumeric': 0.13278210116731518, 'fraction_numerical': 0.016536964980544747, 'mean_word_length': 4.893982808022923, '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': '2520765', 'n_tokens_mistral': 745, 'n_tokens_neox': 716, 'n_words': 159}