<commit_before>package model

import (
	"time"

	"github.com/mjibson/goon"
	"github.com/pkg/errors"
	"golang.org/x/net/context"
	"google.golang.org/appengine/datastore"
)

const (
	ReminderOnce Type = iota
	ReminderWeekly
)

type Type int

type Reminder struct {
	Id      int64 `datastore:"-" goon:"id"`
	Text    string
	Type    Type
	Enabled bool

	// Once
	RemindAt time.Time

	// Weekly
	Weekday time.Weekday
	Hour    int
	Minute  int
}

func NewReminderOnce(text string, remindAt time.Time) *Reminder {
	return &Reminder{
		Text:     text,
		Type:     ReminderOnce,
		Enabled:  true,<commit_msg>Add noindex to Reminder<commit_after>package model

import (
	"time"

	"github.com/mjibson/goon"
	"github.com/pkg/errors"
	"golang.org/x/net/context"
	"google.golang.org/appengine/datastore"
)

const (
	ReminderOnce Type = iota
	ReminderWeekly
)

type Type int

type Reminder struct {
	Id      int64 `datastore:"-" goon:"id"`
	Text    string
	Type    Type
	Enabled bool

	// Once
	RemindAt time.Time `datastore:",noindex"`

	// Weekly
	Weekday time.Weekday `datastore:",noindex"`
	Hour    int          `datastore:",noindex"`
	Minute  int          `datastore:",noindex"`
}

func NewReminderOnce(text string, remindAt time.Time) *Reminder {
	return &Reminder{
		Text:     text,
		Type:     ReminderOnce,
		Enabled:  true,
{'fraction_non_alphanumeric': 0.11380880121396054, 'fraction_numerical': 0.0030349013657056147, 'mean_word_length': 3.310457516339869, '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': '1177877', 'n_tokens_mistral': 524, 'n_tokens_neox': 495, 'n_words': 112}