<commit_before>package models

// Action describes an action that the ScanBadge client performs, based on the result of the specified condition.
type Action struct {
	ID          int64      `db:"action_id" json:"action_id"`
	UserID      int64      `db:"user_id" json:"user_id"`
	DeviceID    int64      `db:"device_id" json:"device_id"`
	Name        string     `db:"action_name" json:"action_name" form:"name"`
	Description string     `db:"action_description" json:"action_description" form:"description"`
	Value       string     `db:"action_value" json:"action_value" form:"value"`
	Device      Device     `db:"-" json:"device"`
	Type        ActionType `db:"-" json:"action_type"`
}

// ActionType describes an action type. The action type can be used to determine what driver to use when the action is performed.
type ActionType struct {
	ID          int64  `db:"action_type_id" json:"id"`
	Name        string `db:"action_type_name" json:"name" form:"name"`
	Description string `db:"action_type_sgdescription" json:"description" form:"description"`
}

// Condition describes a condition. When a condition evaluates to TRUE, the related action should be performed.
type Condition struct {
	ID          int64         `db:"condition_id" json:"id"`
	UserID      int64         `db:"user_id" json:"user_id"`
	DeviceID    int64         `db:"device_id" json:"device_id"`
	Name        string        `db:"condition_name" json:"name" form:"name"`
	Description string        `db:"condition_description" json:"description" form:"description"`
	Value       string        `db:"condition_value" json:"value" form:"value"`
	Action      Action        `db:"-" json:"action"`
	Device      Device        `db:"-" json:"device"`
	Type        ConditionType `db:"-" json:"condition_type"`
}

// ConditionType describes a condition type.
type ConditionType struct {
	ID          int64  `db:"condition_type_id" json:"id"`
	Name        string `db:"condition_type_name" json:"name" form:"name"`
	Description string `db:"condition_type_description" json:"description" form:"description"`
	ExecuteArgs string `db:"condition_type_execute_args" json:"execute_args" form:"execute_args"`
}

type Count struct {<commit_msg>Fixed typo.<commit_after>package models

// Action describes an action that the ScanBadge client performs, based on the result of the specified condition.
type Action struct {
	ID          int64      `db:"action_id" json:"action_id"`
	UserID      int64      `db:"user_id" json:"user_id"`
	DeviceID    int64      `db:"device_id" json:"device_id"`
	Name        string     `db:"action_name" json:"action_name" form:"name"`
	Description string     `db:"action_description" json:"action_description" form:"description"`
	Value       string     `db:"action_value" json:"action_value" form:"value"`
	Device      Device     `db:"-" json:"device"`
	Type        ActionType `db:"-" json:"action_type"`
}

// ActionType describes an action type. The action type can be used to determine what driver to use when the action is performed.
type ActionType struct {
	ID          int64  `db:"action_type_id" json:"id"`
	Name        string `db:"action_type_name" json:"name" form:"name"`
	Description string `db:"action_type_gdescription" json:"description" form:"description"`
}

// Condition describes a condition. When a condition evaluates to TRUE, the related action should be performed.
type Condition struct {
	ID          int64         `db:"condition_id" json:"id"`
	UserID      int64         `db:"user_id" json:"user_id"`
	DeviceID    int64         `db:"device_id" json:"device_id"`
	Name        string        `db:"condition_name" json:"name" form:"name"`
	Description string        `db:"condition_description" json:"description" form:"description"`
	Value       string        `db:"condition_value" json:"value" form:"value"`
	Action      Action        `db:"-" json:"action"`
	Device      Device        `db:"-" json:"device"`
	Type        ConditionType `db:"-" json:"condition_type"`
}

// ConditionType describes a condition type.
type ConditionType struct {
	ID          int64  `db:"condition_type_id" json:"id"`
	Name        string `db:"condition_type_name" json:"name" form:"name"`
	Description string `db:"condition_type_description" json:"description" form:"description"`
	ExecuteArgs string `db:"condition_type_execute_args" json:"execute_args" form:"execute_args"`
}

type Count struct {
{'fraction_non_alphanumeric': 0.11822547450262977, 'fraction_numerical': 0.007317630916990624, 'mean_word_length': 3.7699018538713194, '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': '6912095', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1224, 'n_words': 369}