<commit_before>package handlers

import (
	"github.com/gorilla/websocket"
	"golang.org/x/oauth2"
	githuboauth "golang.org/x/oauth2/github"
)

// Consts used to numerically identify each handler. Used with channels to
// check the related handler.
const (
	UserFinished = iota
	AuthenticationFinished
	RepositoryFinished
)

// FindHandler returns the Handler related to the given message sent by the client.
type FindHandler func(string) (Handler, bool)

// Message represents the structure of the messages exchanged between the client and the server.
type Message struct {
	Name string      `json:"name"`
	Data interface{} `json:"data"`<commit_msg>Add ContentFinished const<commit_after>package handlers

import (
	"github.com/gorilla/websocket"
	"golang.org/x/oauth2"
	githuboauth "golang.org/x/oauth2/github"
)

// Consts used to numerically identify each handler. Used with channels to
// check the related handler.
const (
	UserFinished = iota
	AuthenticationFinished
	RepositoryFinished
	ContentFinished
)

// FindHandler returns the Handler related to the given message sent by the client.
type FindHandler func(string) (Handler, bool)

// Message represents the structure of the messages exchanged between the client and the server.
type Message struct {
	Name string      `json:"name"`
	Data interface{} `json:"data"`
{'fraction_non_alphanumeric': 0.08150943396226415, 'fraction_numerical': 0.0030188679245283017, 'mean_word_length': 4.594936708860759, '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': '3992279', 'n_tokens_mistral': 388, 'n_tokens_neox': 369, 'n_words': 138}