<commit_before>// Package players allows other plugins to reference players within the database.
package players

import (
	"database/sql"
	"github.com/adabei/goldenbot/events"
	"github.com/adabei/goldenbot/events/cod"
	"github.com/adabei/goldenbot/rcon"
	"log"
)

type Players struct {
	requests chan rcon.RCONQuery
	events   chan interface{}
	db       *sql.DB
}

func NewPlayers(requests chan rcon.RCONQuery, ea events.Aggregator, db *sql.DB) *Players {
	p := new(Players)
	p.requests = requests
	p.events = ea.Subscribe(p)
	p.db = db
	return p
}

const schema = `
create table players (
  id text primary key
);`

func (p *Players) Setup() error {
	_, err := p.db.Exec(schema)
	return err
}
<commit_msg>fixes imports to match github name change<commit_after>// Package players allows other plugins to reference players within the database.
package players

import (
	"database/sql"
	"github.com/schwarz/goldenbot/events"
	"github.com/schwarz/goldenbot/events/cod"
	"github.com/schwarz/goldenbot/rcon"
	"log"
)

type Players struct {
	requests chan rcon.RCONQuery
	events   chan interface{}
	db       *sql.DB
}

func NewPlayers(requests chan rcon.RCONQuery, ea events.Aggregator, db *sql.DB) *Players {
	p := new(Players)
	p.requests = requests
	p.events = ea.Subscribe(p)
	p.db = db
	return p
}

const schema = `
create table players (
  id text primary key
);`

func (p *Players) Setup() error {
	_, err := p.db.Exec(schema)
	return err
}

{'fraction_non_alphanumeric': 0.11503811503811504, 'fraction_numerical': 0.0, 'mean_word_length': 3.8949152542372882, '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': '1156231', 'n_tokens_mistral': 525, 'n_tokens_neox': 512, 'n_words': 142}