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

from app import app, db, bbcode_parser, redis_store
from flask import request, render_template, redirect, url_for, send_from_directory, abort, flash, g, jsonify
import datetime
import os
from PIL import Image
import simplejson
import traceback
from werkzeug.utils import secure_filename
import imghdr
from models import User, Picture, Post, Meta, Forum, ForumTopic, ForumPost, Breadcrumb, Comment
from services import ForumPostService, ForumTopicService, CommentService, PostService
from forms import BlogPostForm, UserForm, SettingsForm, ForumTopicForm, ForumPostForm, CommentForm
from flask.ext.security import login_required, roles_required, current_user
from flask.ext.security.utils import verify_password, encrypt_password
from unidecode import unidecode
from sqlalchemy.orm import joinedload, load_only, undefer_group
import random


@app.route('/')
#@login_required
def home():
	#request.form['username']
	#flash('DOOM FLASH!!!!', 'info')
	#flash('DOOM FLASH!!!!', 'error')
	#flash('DOOM FLASH!!!!', 'success')

	# msg = Message("Hello", sender="<EMAIL>", recipients=["<EMAIL>"])
	# msg.body = "testing"
	# msg.html = "<b>testing</b>"
	# mail.send(msg)



	# u1 = User.query.first()
	# u1.first_name = 'f1'
	# u1.last_name = 'l1'
	# u1.current_login_ip = '192.168.3.11'
	# u1.slug = None
	# db.session.commit()

	# p = redis_store.get('potato')
	# if p is None:
	# 	redis_store.set('potato', 'XXXXX')
	# app.logger.debug(p)

	# p1 = None
	# if current_user.is_authenticated():
	# 	t1 = ForumTopic.query.first()
	# 	p1 = ForumPost(title='p XX 1', body='Lorem ipsum dolor sit amet, consectetur adipisicing elit. ', forum_id=t1.forum.id, topic_id=t1.id, user_id=current_user.id)
	# 	p1 = ForumPostService.CreateNewForumPost(p1)
	#
	# print(p1.topic.title)
	# print(current_user.fullname())

	return render_template('home.html')

<commit_msg>test mail<commit_after># -*- coding: utf-8 -*-

from app import app, db, bbcode_parser, redis_store, mail
from flask import request, render_template, redirect, url_for, send_from_directory, abort, flash, g, jsonify
import datetime
import os
from PIL import Image
import simplejson
import traceback
from werkzeug.utils import secure_filename
import imghdr
from models import User, Picture, Post, Meta, Forum, ForumTopic, ForumPost, Breadcrumb, Comment
from services import ForumPostService, ForumTopicService, CommentService, PostService
from forms import BlogPostForm, UserForm, SettingsForm, ForumTopicForm, ForumPostForm, CommentForm
from flask.ext.security import login_required, roles_required, current_user
from flask.ext.security.utils import verify_password, encrypt_password
from unidecode import unidecode
from sqlalchemy.orm import joinedload, load_only, undefer_group
import random
from flask.ext.mail import Message


@app.route('/')
#@login_required
def home():
	#request.form['username']
	#flash('DOOM FLASH!!!!', 'info')
	#flash('DOOM FLASH!!!!', 'error')
	#flash('DOOM FLASH!!!!', 'success')

	msg = Message("Hello from SFDEV.net", recipients=["<EMAIL>"])
	msg.body = "testing from Home"
	msg.html = "<b>testing from Home</b>"
	mail.send(msg)

	# u1 = User.query.first()
	# u1.first_name = 'f1'
	# u1.last_name = 'l1'
	# u1.current_login_ip = '192.168.3.11'
	# u1.slug = None
	# db.session.commit()

	# p = redis_store.get('potato')
	# if p is None:
	# 	redis_store.set('potato', 'XXXXX')
	# app.logger.debug(p)

	# p1 = None
	# if current_user.is_authenticated():
	# 	t1 = ForumTopic.query.first()
	# 	p1 = ForumPost(title='p XX 1', body='Lorem ipsum dolor sit amet, consectetur adipisicing elit. ', forum_id=t1.forum.id, topic_id=t1.id, user_id=current_user.id)
	# 	p1 = ForumPostService.CreateNewForumPost(p1)
	#
	# print(p1.topic.title)
	# print(current_user.fullname())

	return render_template('home.html')


{'fraction_non_alphanumeric': 0.1331236897274633, 'fraction_numerical': 0.013626834381551363, 'mean_word_length': 5.524786324786325, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5950714', 'n_tokens_mistral': 1375, 'n_tokens_neox': 1326, 'n_words': 333}