<commit_before>package gobay

import "encoding/xml"

import "fmt"
import "errors"

func NewNotificationResultEx(data []byte) (*NotificationResult, error) {
	var o NotificationResult
	err := xml.Unmarshal(data, &o)
	if err != nil {
		return nil, err
	}
	return &o, nil
}
// func NewResultEx(r interface{}, data []byte) (interface{}, error) {
// 	switch r.(type) {
// 	case *[]Result:
// 		var o Result<commit_msg>Refactoring to get rid of NewResultEx<commit_after>package gobay

import "encoding/xml"

import "fmt"
import "errors"

func NewNotificationResultEx(data []byte) (*NotificationResult, error) {
	var o NotificationResult
	err := xml.Unmarshal(data, &o)
	if err != nil {
		return nil, err
	}
	return &o, nil
}

// func NewResultEx(r interface{}, data []byte) (interface{}, error) {
// 	switch r.(type) {
// 	case *[]Result:
// 		var o Result
{'fraction_non_alphanumeric': 0.14840989399293286, 'fraction_numerical': 0.0, 'mean_word_length': 4.214723926380368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2305313', 'n_tokens_mistral': 297, 'n_tokens_neox': 288, 'n_words': 88}