<commit_before>package server

import (
    "time"
    "github.com/itsankoff/gotcha/common"
    "strconv"
)

type Group struct {
    Id              string
    Out             chan *common.Message
    outputs         map[string]chan<- *common.Message
}

func NewGroup() *Group {
    group := &Group{
        Id: strconv.FormatInt(time.Now().Unix(), 10),
        outputs: make(map[string]chan<- *common.Message),
    }

    go group.listen()
    return group
}

func (g *Group) listen() {
    for {
        select {
        case msg := <-g.Out:<commit_msg>Initialize group Out channel<commit_after>package server

import (
    "time"
    "github.com/itsankoff/gotcha/common"
    "strconv"
)

type Group struct {
    Id              string
    Out             chan *common.Message
    outputs         map[string]chan<- *common.Message
}

func NewGroup() *Group {
    group := &Group{
        Id: strconv.FormatInt(time.Now().Unix(), 10),
        Out: make(chan *common.Message),
        outputs: make(map[string]chan<- *common.Message),
    }

    go group.listen()
    return group
}

func (g *Group) listen() {
    for {
        select {
        case msg := <-g.Out:
{'fraction_non_alphanumeric': 0.1320754716981132, 'fraction_numerical': 0.003430531732418525, 'mean_word_length': 2.0873015873015874, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1626191', 'n_tokens_mistral': 382, 'n_tokens_neox': 368, 'n_words': 87}