<commit_before>import configparser
import os
from flask import Flask
from views import (IndexView, AddItemsView, DashboardView,
                   LoginView, Logout, RegisterView,
                   RemoveShoppingList, ShoppingListDetail)

BASEDIR = os.path.dirname(os.path.abspath(__file__))

app = Flask(__name__)
config = configparser.ConfigParser()
config.read(BASEDIR + '/secret.ini')

# app urls
app.add_url_rule('/', view_func=IndexView.as_view('index'))
app.add_url_rule('/dashboard', view_func=DashboardView.as_view('dashboard'))
app.add_url_rule('/login', view_func=LoginView.as_view('login'))
app.add_url_rule('/logout', view_func=Logout.as_view('logout'))
app.add_url_rule('/register', view_func=RegisterView.as_view('register'))
app.add_url_rule('/create-shopping-list', view_func=AddItemsView.as_view('create-shopping-list'))
app.add_url_rule('/shopping-list-detail/', view_func=ShoppingListDetail.as_view('shopping-list-detail'))
app.add_url_rule('/remove-shopping-list', view_func=RemoveShoppingList.as_view('remove-shopping-list'))

# app conf
app.secret_key = config['SECRET_KEY']['KEY']


if __name__ == '__main__':
    app.run()<commit_msg>Update shopping_app<commit_after>import configparser
import os
from flask import Flask
from views import (IndexView, AddItemsView, DashboardView,
                   LoginView, Logout, RegisterView,
                   RemoveShoppingList, ShoppingListDetail)

BASEDIR = os.path.dirname(os.path.abspath(__file__))

app = Flask(__name__)
config = configparser.ConfigParser()
config.read(BASEDIR + '/secret.ini')

# app urls
app.add_url_rule('/', view_func=IndexView.as_view('index'))
app.add_url_rule('/dashboard', view_func=DashboardView.as_view('dashboard'))
app.add_url_rule('/login', view_func=LoginView.as_view('login'))
app.add_url_rule('/logout', view_func=Logout.as_view('logout'))
app.add_url_rule('/register', view_func=RegisterView.as_view('register'))
app.add_url_rule('/create-shopping-list', view_func=AddItemsView.as_view('create-shopping-list'))
app.add_url_rule('/shopping-list-detail/', view_func=ShoppingListDetail.as_view('shopping-list-detail'))
app.add_url_rule('/remove-shopping-list', view_func=RemoveShoppingList.as_view('remove-shopping-list'))

# app conf


if __name__ == '__main__':
    app.run()
{'fraction_non_alphanumeric': 0.14730381411661553, 'fraction_numerical': 0.0, 'mean_word_length': 6.409090909090909, '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': '5474576', 'n_tokens_mistral': 771, 'n_tokens_neox': 784, 'n_words': 104}