<commit_before>package main

import (
	"encoding/json"
	"errors"
	"fmt"
	"math"

	"github.com/davecgh/go-spew/spew"
	"github.com/ninjasphere/go-hue"
	"github.com/ninjasphere/go-ninja/api"
	"github.com/ninjasphere/go-ninja/channels"
	"github.com/ninjasphere/go-ninja/devices"
	"github.com/ninjasphere/go-ninja/logger"
	"github.com/ninjasphere/go-ninja/model"
)

var defaultTransitionTime = 500 // 500ms
var defaultBrightness = 1.0     // Full brightness
var defaultColor = channels.ColorWhite

var info = ninja.LoadModuleInfo("./package.json")

type HueDriver struct {
	log       *logger.Logger
	config    *HueDriverConfig
	conn      *ninja.Connection
	bridge    *hue.Bridge
	user      *hue.User
	sendEvent func(event string, payload interface{}) error
}

func NewHueDriver() {
	d := &HueDriver{
		log: logger.GetLogger(info.Name),
	}

	conn, err := ninja.Connect(info.ID)<commit_msg>Add default color<commit_after>package main

import (
	"encoding/json"
	"errors"
	"fmt"
	"math"

	"github.com/davecgh/go-spew/spew"
	"github.com/ninjasphere/go-hue"
	"github.com/ninjasphere/go-ninja/api"
	"github.com/ninjasphere/go-ninja/channels"
	"github.com/ninjasphere/go-ninja/devices"
	"github.com/ninjasphere/go-ninja/logger"
	"github.com/ninjasphere/go-ninja/model"
)

var defaultTransitionTime = 500 // 500ms
var defaultBrightness = 1.0     // Full brightness
var xxx float64
var defaultColor = channels.ColorState{
	Mode:       "Hue",
	Hue:        &xxx,
	Saturation: &xxx,
}

var info = ninja.LoadModuleInfo("./package.json")

type HueDriver struct {
	log       *logger.Logger
	config    *HueDriverConfig
	conn      *ninja.Connection
	bridge    *hue.Bridge
	user      *hue.User
	sendEvent func(event string, payload interface{}) error
}

func NewHueDriver() {
	d := &HueDriver{
		log: logger.GetLogger(info.Name),
	}

	conn, err := ninja.Connect(info.ID)
{'fraction_non_alphanumeric': 0.13318895506226314, 'fraction_numerical': 0.009745533297238766, 'mean_word_length': 3.8, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1582129', 'n_tokens_mistral': 750, 'n_tokens_neox': 709, 'n_words': 124}