<commit_before>package sketches

import (
	"encoding/json"
	"errors"
	"fmt"
	"sync"
	"time"

	"github.com/seiflotfy/skizze/config"
	"github.com/seiflotfy/skizze/sketches/abstract"
	"github.com/seiflotfy/skizze/sketches/wrappers/count-min-log"
	"github.com/seiflotfy/skizze/sketches/wrappers/hllpp"
	"github.com/seiflotfy/skizze/sketches/wrappers/realcount"
	"github.com/seiflotfy/skizze/sketches/wrappers/topk"
	"github.com/seiflotfy/skizze/storage"
)

/*
SketchProxy ...
*/
type SketchProxy struct {
	*abstract.Info
	sketch abstract.Sketch
	lock   sync.RWMutex
	ops    uint
	dirty  bool
}

/*
Add ...
*/
func (sp *SketchProxy) Add(values [][]byte) (bool, error) {<commit_msg>Fix naming issue<commit_after>package sketches

import (
	"encoding/json"
	"errors"
	"fmt"
	"sync"
	"time"

	"github.com/seiflotfy/skizze/config"
	"github.com/seiflotfy/skizze/sketches/abstract"
	"github.com/seiflotfy/skizze/sketches/wrappers/count-min-log"
	"github.com/seiflotfy/skizze/sketches/wrappers/hllpp"
	"github.com/seiflotfy/skizze/sketches/wrappers/topk"
	"github.com/seiflotfy/skizze/storage"
)

/*
SketchProxy ...
*/
type SketchProxy struct {
	*abstract.Info
	sketch abstract.Sketch
	lock   sync.RWMutex
	ops    uint
	dirty  bool
}

/*
Add ...
*/
func (sp *SketchProxy) Add(values [][]byte) (bool, error) {
{'fraction_non_alphanumeric': 0.15123456790123457, 'fraction_numerical': 0.0, 'mean_word_length': 4.251012145748988, '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': '2805873', 'n_tokens_mistral': 564, 'n_tokens_neox': 567, 'n_words': 73}