<commit_before>package accessory

import (
	"github.com/brutella/hc/service"
)

type Switch struct {
	*Accessory
	Switch *service.Switch
}

// NewSwitch returns a switch which implements model.Switch.
func NewSwitch(info Info) *Switch {
	acc := Switch{}
	acc.Accessory = New(info, TypeOutlet)
	acc.Switch = service.NewSwitch()
	acc.AddService(acc.Switch.Service)
<commit_msg>Fixed error where accessory.Switch was creating a accessory of type TypeOutlet instead of TypeSwitch (code copy error)<commit_after>package accessory

import (
	"github.com/brutella/hc/service"
)

type Switch struct {
	*Accessory
	Switch *service.Switch
}

// NewSwitch returns a switch which implements model.Switch.
func NewSwitch(info Info) *Switch {
	acc := Switch{}
	acc.Accessory = New(info, TypeSwitch)
	acc.Switch = service.NewSwitch()
	acc.AddService(acc.Switch.Service)

{'fraction_non_alphanumeric': 0.10409356725146199, 'fraction_numerical': 0.0, 'mean_word_length': 4.944444444444445, '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': '5788522', 'n_tokens_mistral': 271, 'n_tokens_neox': 265, 'n_words': 74}