<commit_before>package camoproxy_test

import (
	"sync"
	"github.com/cactus/go-camo/camoproxy"
)

type ProxyStats struct {
	sync.Mutex
	clientsServed uint64
	bytesServed   uint64
}

func (ps *ProxyStats) AddServed() {
	ps.Lock()
	defer ps.Unlock()
	ps.clientsServed += 1
}

func (ps *ProxyStats) AddBytes(bc int64) {
	ps.Lock()
	defer ps.Unlock()
	ps.bytesServed += uint64(bc)
}

func ExampleProxyMetrics() {
	proxy := &camoproxy.Proxy{}
	config := camoproxy.Config{}
	ps := &ProxyStats{}
	proxy.SetMetricsCollector(ps)
}<commit_msg>fix a silly<commit_after>package camoproxy_test

import (
	"sync"
	"github.com/cactus/go-camo/camoproxy"
)

type ProxyStats struct {
	sync.Mutex
	clientsServed uint64
	bytesServed   uint64
}

func (ps *ProxyStats) AddServed() {
	ps.Lock()
	defer ps.Unlock()
	ps.clientsServed += 1
}

func (ps *ProxyStats) AddBytes(bc int64) {
	ps.Lock()
	defer ps.Unlock()
	ps.bytesServed += uint64(bc)
}

func ExampleProxyMetrics() {
	config := camoproxy.Config{}
	proxy := &camoproxy.Proxy{config}
	ps := &ProxyStats{}
	proxy.SetMetricsCollector(ps)
}
{'fraction_non_alphanumeric': 0.1383177570093458, 'fraction_numerical': 0.016822429906542057, 'mean_word_length': 4.7272727272727275, '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': '5597508', 'n_tokens_mistral': 443, 'n_tokens_neox': 425, 'n_words': 84}