<commit_before>module Models.Message where

type TextMessage =
	{
	}

type CodeMessage =
	{
	}

type FormulaMessage =
	{
	}

type FileUpload =
	{
	}

data Message
	= TextMessage TextMessage
	| CodeMessage CodeMessage
	| FormulaMessage FormulaMessage
	| FileUpload FileUpload<commit_msg>better types for the messages<commit_after>module Models.Message where

import Models.User

type BaseMessage m = { from :: User, to :: User | m }

type TextMessage = BaseMessage (text :: String)

type CodeMessage = BaseMessage ()

type FormulaMessage = BaseMessage ()

type FileUpload = BaseMessage ()

data Message
	= TextMessage TextMessage
	| CodeMessage CodeMessage
	| FormulaMessage FormulaMessage
	| FileUpload FileUpload
{'fraction_non_alphanumeric': 0.0729312762973352, 'fraction_numerical': 0.0, 'mean_word_length': 4.666666666666667, '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': '1323909', 'n_tokens_mistral': 211, 'n_tokens_neox': 206, 'n_words': 61}