<commit_before>package main

import (
	"fmt"

	"github.com/jameycribbs/hare"
)

func main() {
	// Open the database and return a handle to it.
	db, err := hare.OpenDB("./data")
	if err != nil {
		panic(err)
	}
	defer db.Close()

	// Here is how to check if a table exists in your database.
	if !db.TableExists("contacts") {
		fmt.Println("Table 'contacts' does not exist!")
	}

	// Here is how to create a new table in the database and get back a
	// handle to it.
	tbl, err := db.CreateTable("contacts")
	if err != nil {
		panic(err)
	}

	// If the table already exists, you can get a handle to it by
	// calling GetTable.
	tbl, err = db.GetTable("contacts")
	if err != nil {
		panic(err)
	}

	fmt.Println("Table handle:", tbl)

	// Here is how to drop a table.
	err = db.DropTable("contacts")
	if err != nil {
		panic(err)
	}
}
<commit_msg>fixed errors in dbadmin.go example<commit_after>package main

import (
	"fmt"

	"github.com/jameycribbs/hare"
	"github.com/jameycribbs/hare/datastores/disk"
)

func main() {
	ds, err := disk.New("./data", ".json")
	if err != nil {
		panic(err)
	}

	db, err := hare.New(ds)
	if err != nil {
		panic(err)
	}
	defer db.Close()

	// Here is how to create a new table in the database.
	err = db.CreateTable("contacts")
	if err != nil {
		panic(err)
	}

	// Here is how to check if a table exists in your database.
	if !db.TableExists("contacts") {
		fmt.Println("Table 'contacts' does not exist!")
	}

	// Here is how to drop a table.
	err = db.DropTable("contacts")
	if err != nil {
		panic(err)
	}
}

{'fraction_non_alphanumeric': 0.14619883040935672, 'fraction_numerical': 0.0, 'mean_word_length': 3.041994750656168, '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': '5295280', 'n_tokens_mistral': 603, 'n_tokens_neox': 580, 'n_words': 185}