<commit_before>package main

import (
	"fmt"
	socketcluster "socketcluster-client/client"
)

func main() {

	authDetails := socketcluster.AuthDetails{
		Host:        "localhost:8000",
		ProfileName: "",
		AuthToken:   "",
		UserAgent:   "",
		SecureWS:    false,
	}

	dbPath := "./"

	sc, err := socketcluster.NewClient(authDetails, dbPath)
	if err != nil {
		fmt.Printf("%v", err)
		return
	}

	// OnAuthSuccess
	sc.OnAuthSuccess = func() {
		// Auth has been successful.
	}

	// OnData
	sc.OnData = func(event *socketcluster.Event) {
		if event.Data != nil {
			// println("Data for id: ", event.Rid)
		}
	}

	for {
	}
}
<commit_msg>Handle auth failure for demo<commit_after>package main

import (
	"fmt"
	socketcluster "socketcluster-client/client"
)

func main() {

	authDetails := socketcluster.AuthDetails{
		Host:        "localhost:8000",
		ProfileName: "",
		AuthToken:   "",
		UserAgent:   "",
		SecureWS:    false,
	}

	dbPath := "./"

	sc, err := socketcluster.NewClient(authDetails, dbPath)
	if err != nil {
		fmt.Printf("%v", err)
		return
	}

	// OnAuthSuccess
	sc.OnAuthSuccess = func() {
		// Auth has been successful.
	}

	sc.OnAuthFailure = func(err string) {
		// Do something
	}

	// OnData
	sc.OnData = func(event *socketcluster.Event) {
		if event.Data != nil {
			// println("Data for id: ", event.Rid)
		}
	}

	for {
	}
}

{'fraction_non_alphanumeric': 0.15453194650817237, 'fraction_numerical': 0.005943536404160475, 'mean_word_length': 2.93859649122807, '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': '5125710', 'n_tokens_mistral': 533, 'n_tokens_neox': 494, 'n_words': 103}