<commit_before>package model
import (
	"time"
	"fmt"
	"os"
)

type EntryType interface {
	Validate() bool
	MakeCreateRequest() (request WhiteboardRequest)
	MakeUpdateRequest() (request WhiteboardRequest)
	String() string
}

type Entry struct {
	Time   time.Time
	Title  string
	Body   string
	Author string
	Id     string
}

type Face struct { Entry }

func NewFace(clock Clock, author string) (face Face) {
	face = Face{Entry{clock.Now(), "", "", author, ""}}
	return
}

func (entry Entry) Validate() bool {
	return entry.Title != ""
}

func (entry Entry) String() string {
	return fmt.Sprintf("faces\n  *name: %v\n  date: %v", entry.Title, entry.Time.Format("2006-01-02"))
}

func (face Face) MakeCreateRequest() (request WhiteboardRequest) {
	item := Item{1, face.Title, face.Time.Format("2006-01-02"), "", "false", "New face", "", face.Author}
	request = WhiteboardRequest{"", "", os.Getenv("WB_AUTH_TOKEN"), item, "Create New Face", ""}
	return
}

func  (face Face) MakeUpdateRequest() (request WhiteboardRequest) {
	item := Item{1, face.Title, face.Time.Format("2006-01-02"), "", "false", "New face", "", face.Author}
	request = WhiteboardRequest{"", "patch", os.Getenv("WB_AUTH_TOKEN"), item, "Update New Face", face.Id}
	return
}
<commit_msg>Clean up default initializers in entry objects  [#109420428]<commit_after>package model
import (
	"time"
	"fmt"
	"os"
)

type EntryType interface {
	Validate() bool
	MakeCreateRequest() (request WhiteboardRequest)
	MakeUpdateRequest() (request WhiteboardRequest)
	String() string
}

type Entry struct {
	Time   time.Time
	Title  string
	Body   string
	Author string
	Id     string
}

type Face struct { Entry }

func NewFace(clock Clock, author string) (face Face) {
	face = Face{Entry{Time: clock.Now(), Author: author}}
	return
}

func (entry Entry) Validate() bool {
	return entry.Title != ""
}

func (entry Entry) String() string {
	return fmt.Sprintf("faces\n  *name: %v\n  date: %v", entry.Title, entry.Time.Format("2006-01-02"))
}

func (face Face) MakeCreateRequest() (request WhiteboardRequest) {
	item := Item{StandupId: 1, Title: face.Title, Date: face.Time.Format("2006-01-02"), Public: "false", Kind: "New face", Author: face.Author}
	request = WhiteboardRequest{Token: os.Getenv("WB_AUTH_TOKEN"), Item: item, Commit: "Create New Face"}
	return
}

func  (face Face) MakeUpdateRequest() (request WhiteboardRequest) {
	item := Item{StandupId: 1, Title: face.Title, Date: face.Time.Format("2006-01-02"), Public: "false", Kind: "New face", Author: face.Author}
	request = WhiteboardRequest{ Method: "patch", Token: os.Getenv("WB_AUTH_TOKEN"), Item: item, Commit: "Update New Face", Id: face.Id}
	return
}

{'fraction_non_alphanumeric': 0.15465465465465467, 'fraction_numerical': 0.0228978978978979, 'mean_word_length': 4.909090909090909, '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': '862810', 'n_tokens_mistral': 923, 'n_tokens_neox': 887, 'n_words': 254}