<commit_before>package mmatcher

import (
	"fmt"
	"math"
)

type Atter interface {
	Equal(Atter, Atter) bool
}

type TextAtt struct {
	Val string
}

type NumericAtt struct {
	Val float64
}

func (a TextAtt) Equal(b Atter, e Atter) bool {
	v, ok := b.(TextAtt)
	return ok && a.Val == v.Val
}

func (a NumericAtt) Equal(b Atter, e Atter) bool {
	v, ok := b.(NumericAtt)
	if !ok {
		return false
	}
	var epsilon NumericAtt
	epsilon, ok = e.(NumericAtt)
	if ok && epsilon.Val > 0 {
		return math.Abs(math.Abs(a.Val)-math.Abs(v.Val)) <= epsilon.Val
	}
	return a.Val == v.Val
}

func (a NumericAtt) String() string {
	return fmt.Sprintf("%v", a.Val)
}<commit_msg>Redeclare is legal now<commit_after>package mmatcher

import (
	"fmt"
	"math"
)

type Atter interface {
	Equal(Atter, Atter) bool
}

type TextAtt struct {
	Val string
}

type NumericAtt struct {
	Val float64
}

func (a TextAtt) Equal(b Atter, e Atter) bool {
	v, ok := b.(TextAtt)
	return ok && a.Val == v.Val
}

func (a NumericAtt) Equal(b Atter, e Atter) bool {
	v, ok := b.(NumericAtt)
	if !ok {
		return false
	}
	epsilon, ok := e.(NumericAtt)
	if ok && epsilon.Val > 0 {
		return math.Abs(math.Abs(a.Val)-math.Abs(v.Val)) <= epsilon.Val
	}
	return a.Val == v.Val
}

func (a NumericAtt) String() string {
	return fmt.Sprintf("%v", a.Val)
}
{'fraction_non_alphanumeric': 0.15, 'fraction_numerical': 0.004615384615384616, 'mean_word_length': 3.486206896551724, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2676867', 'n_tokens_mistral': 551, 'n_tokens_neox': 536, 'n_words': 150}