<commit_before><commit_msg>Adding model for blog type<commit_after>package models

import (
	"github.com/robfig/revel"
	"labix.org/v2/mgo/bson"
	"time"
)

type Blog struct {
	Id        bson.ObjectId `bson:"_id,omitempty"`
	Author_id bson.ObjectId `Author_id`
	Published bool          `Published`
	Posted    time.Time     `Posted`
	Title     string        `Title`
	Body      string        `Body`
	Tags      []string      `Tags`
	Alias     string        `Alias`
}

func (blog *Blog) Validate(v *revel.Validation) {
	v.Check(blog.Title,
		revel.Required{},
		revel.MinSize{1},
		revel.MaxSize{256},
	)
}
{'fraction_non_alphanumeric': 0.12333333333333334, 'fraction_numerical': 0.008333333333333333, 'mean_word_length': 2.8037974683544302, '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': '4966140', 'n_tokens_mistral': 231, 'n_tokens_neox': 220, 'n_words': 46}