<commit_before>// Copyright (C) 2014 <NAME> <<EMAIL>>
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

package proto

import (
	"encoding/json"
	"errors"
	"strings"
)

const VERSION = "0.3"

type Message struct {
	Version     string           `json:"v"`
	Id          string           `json:"id"`
	Action      string           `json:"action"`
	Source      string           `json:"src"`
	Destination string           `json:"dst,omitempty"`
	Payload     *json.RawMessage `json:"p,omitempty"`
	CorrId      string           `json:"corr,omitempty"`
	Text        string           `json:"text,omitempty"`<commit_msg>Increment protocol version to 0.4<commit_after>// Copyright (C) 2014 <NAME> <<EMAIL>>
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

package proto

import (
	"encoding/json"
	"errors"
	"strings"
)

const VERSION = "0.4"

type Message struct {
	Version     string           `json:"v"`
	Id          string           `json:"id"`
	Action      string           `json:"action"`
	Source      string           `json:"src"`
	Destination string           `json:"dst,omitempty"`
	Payload     *json.RawMessage `json:"p,omitempty"`
	CorrId      string           `json:"corr,omitempty"`
	Text        string           `json:"text,omitempty"`
{'fraction_non_alphanumeric': 0.12020648967551623, 'fraction_numerical': 0.01032448377581121, 'mean_word_length': 2.2777777777777777, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1305940', 'n_tokens_mistral': 405, 'n_tokens_neox': 397, 'n_words': 125}