<commit_before><commit_msg>Adds pachyderm errors pkg.<commit_after>package errors

import (
	"runtime"

	"github.com/pkg/errors"
)

var (
	New       = errors.New
	Errorf    = errors.Errorf
	Wrap      = errors.Wrap
	Wrapf     = errors.Wrapf
	WithStack = errors.WithStack
)

// Callers returns an errors.StackTrace for the place at which it's called.
func Callers() errors.StackTrace {
	const depth = 32
	var pcs [depth]uintptr
	// 2 skips runtime.Callers and this function
	n := runtime.Callers(2, pcs[:])
	st := make(errors.StackTrace, n)
	for i, pc := range pcs[0:n] {
		st[i] = errors.Frame(pc)
	}
	return st
}
{'fraction_non_alphanumeric': 0.119281045751634, 'fraction_numerical': 0.008169934640522876, 'mean_word_length': 3.4100719424460433, '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': '4417247', 'n_tokens_mistral': 226, 'n_tokens_neox': 217, 'n_words': 60}