<commit_before>package main

import (
	"fmt"
	"log"
	"regexp"
	"strings"

	"github.com/ninjasphere/go-ninja/api"
	"github.com/ninjasphere/go-ninja/channels"
	"github.com/ninjasphere/go-ninja/model"
)

type FakeLight struct {
	driver       ninja.Driver
	info         *model.Device
	sendEvent    func(event string, payload interface{}) error
	onOffChannel *channels.OnOffChannel
}

func NewFakeLight(driver ninja.Driver, id int) *FakeLight {
	light := &FakeLight{
		driver: driver,
		info: &model.Device{
			NaturalID:     fmt.Sprintf("light%d", id),
			NaturalIDType: "fake",
		},
	}

	light.onOffChannel = channels.NewOnOffChannel(light)

	return light
}

func (l *FakeLight) GetDeviceInfo() *model.Device {
	return l.info
}

func (l *FakeLight) GetDriver() ninja.Driver {
	return l.driver<commit_msg>Add name and sigs to FakeDriver<commit_after>package main

import (
	"fmt"
	"log"
	"regexp"
	"strings"

	"github.com/ninjasphere/go-ninja/api"
	"github.com/ninjasphere/go-ninja/channels"
	"github.com/ninjasphere/go-ninja/model"
)

type FakeLight struct {
	driver       ninja.Driver
	info         *model.Device
	sendEvent    func(event string, payload interface{}) error
	onOffChannel *channels.OnOffChannel
}

func NewFakeLight(driver ninja.Driver, id int) *FakeLight {
	name := fmt.Sprintf("Fancy Fake Light %d", id)
	
	light := &FakeLight{
		driver: driver,
		info: &model.Device{
			NaturalID:     fmt.Sprintf("light%d", id),
			NaturalIDType: "fake",
			Name:          &name,
			Signatures: &map[string]string{
				"ninja:manufacturer": "Fake Co.",
				"ninja:productName":  "FakeLight",
				"ninja:productType":  "Light",
				"ninja:thingType":    "light",
			},
		},
	}

	light.onOffChannel = channels.NewOnOffChannel(light)

	return light
}

func (l *FakeLight) GetDeviceInfo() *model.Device {
	return l.info
}

func (l *FakeLight) GetDriver() ninja.Driver {
	return l.driver
{'fraction_non_alphanumeric': 0.13382899628252787, 'fraction_numerical': 0.0, 'mean_word_length': 3.8935064935064934, 'pattern_counts': {'":': 4, '<': 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': '776468', 'n_tokens_mistral': 744, 'n_tokens_neox': 684, 'n_words': 143}