<commit_before>package state_machine

import "strings"

type State struct {
	State           string
	StateChangeLogs []StateChangeLog
}

func (state *State) SetState(name string) {
	state.State = name
}

func (state *State) GetState() string {
	return state.State
}

func (s *State) UnmarshalJSON(data []byte) error {
	s.SetState(strings.Trim(string(data), "\""))

	return nil
}<commit_msg>Save save StateChangeLog from embedded structs<commit_after>package state_machine

import "strings"

type State struct {
	State           string
	StateChangeLogs []StateChangeLog `sql:"-"`
}

func (state *State) SetState(name string) {
	state.State = name
}

func (state *State) GetState() string {
	return state.State
}

func (s *State) UnmarshalJSON(data []byte) error {
	s.SetState(strings.Trim(string(data), "\""))

	return nil
}
{'fraction_non_alphanumeric': 0.12393681652490887, 'fraction_numerical': 0.0, 'mean_word_length': 4.5675675675675675, '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': '2722304', 'n_tokens_mistral': 276, 'n_tokens_neox': 268, 'n_words': 74}