<commit_before>package main

import (
	"fmt"
	"log"
	"os"

	"github.com/johnmaguire/wbc/database"
	"github.com/johnmaguire/wbc/web"

	"github.com/codegangsta/cli"
	"github.com/howeyc/gopass"
	_ "github.com/mattn/go-sqlite3"
)

func handleRun(c *cli.Context) {<commit_msg>Add safeguard against starting with nonexistent DB<commit_after>package main

import (
	"fmt"
	"log"
	"os"

	"github.com/johnmaguire/wbc/database"
	"github.com/johnmaguire/wbc/web"

	"github.com/codegangsta/cli"
	"github.com/howeyc/gopass"
	_ "github.com/mattn/go-sqlite3"
)

func handleRun(c *cli.Context) {
	log.Print("Attempting to start web server")

	if _, err := os.Stat(c.String("database")); err != nil {
		log.Fatal("database does not exist")
	}

{'fraction_non_alphanumeric': 0.15702479338842976, 'fraction_numerical': 0.0027548209366391185, 'mean_word_length': 4.466165413533835, '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': '1485447', 'n_tokens_mistral': 319, 'n_tokens_neox': 303, 'n_words': 48}