<commit_before>package transition

import (
	"fmt"
	"strings"

	"github.com/jinzhu/gorm"
	"github.com/qor/qor/admin"
	"github.com/qor/qor/resource"
	"github.com/qor/roles"
)

// Transition is a struct, embed it in your struct to enable state machine for the struct
type Transition struct {
	State           string
	StateChangeLogs []StateChangeLog `sql:"-"`
}

// SetState set state to Stater, just set, won't save it into database
func (transition *Transition) SetState(name string) {
	transition.State = name<commit_msg>Update import paths for V1 release<commit_after>package transition

import (
	"fmt"
	"strings"

	"github.com/jinzhu/gorm"
	"github.com/qor/admin"
	"github.com/qor/qor/resource"
	"github.com/qor/roles"
)

// Transition is a struct, embed it in your struct to enable state machine for the struct
type Transition struct {
	State           string
	StateChangeLogs []StateChangeLog `sql:"-"`
}

// SetState set state to Stater, just set, won't save it into database
func (transition *Transition) SetState(name string) {
	transition.State = name
{'fraction_non_alphanumeric': 0.10650329877474081, 'fraction_numerical': 0.000942507068803016, 'mean_word_length': 4.08133971291866, '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': '4841747', 'n_tokens_mistral': 354, 'n_tokens_neox': 345, 'n_words': 108}