<commit_before>#encoding: utf-8
require 'rubygems'
require 'sinatra'
require 'sinatra/reloader'
require 'sqlite3'

def init_db
	@db = SQLite3::Database.new 'leprosorium.db'
	@db.results_as_hash = true
end

before do
	init_db
end

# configure do
# 	db = get_db 										#
# 	db.execute 'CREATE TABLE IF NOT EXISTS 						
# 			"Content" 
# 			(
# 				"id" INTEGER PRIMARY KEY AUTOINCREMENT, 
# 				"username" TEXT, 
# 				"phone" TEXT, 
# 				"datestamp" TEXT, 
# 				"barber" TEXT, 
# 				"color" TEXT
# 			)'	
# end
<commit_msg>create table Posts<commit_after>#encoding: utf-8
require 'rubygems'
require 'sinatra'
require 'sinatra/reloader'
require 'sqlite3'

def init_db
	@db = SQLite3::Database.new 'leprosorium.db'
	@db.results_as_hash = true
end

before do
	init_db
end

configure do
	init_db
	@db.execute 'CREATE TABLE IF NOT EXISTS "Posts"
			(
				"id" INTEGER PRIMARY KEY AUTOINCREMENT, 
				"created_date" DATE, 
				"content" TEXT 
			)'	
end

{'fraction_non_alphanumeric': 0.11215932914046121, 'fraction_numerical': 0.006289308176100629, 'mean_word_length': 3.263392857142857, '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': '5332163', 'n_tokens_mistral': 445, 'n_tokens_neox': 393, 'n_words': 93}