<commit_before>package chalmers_chop

type Restaurant struct {
	Name  string `json:"name"`
	Menus []Menu `json:"menus"`
}

/*
	Add a menu to the restaurant. Adding a menu with the Date field
	set to the same value as an existing menu in the slice, the
	existing menu will be replaced with the new one.
*/
func (r *Restaurant) addMenus(menus ...*Menu) {
	// If a menu with the same date already exists, overwrite it
	for _, menu := range menus {
		for i, m := range r.Menus {
			if m.Date == menu.Date {
				r.Menus[i] = r.Menus[len(r.Menus)-1]
				r.Menus = r.Menus[:len(r.Menus)-1]

				break
			}
		}

		r.Menus = append(r.Menus, *menu)
	}
}<commit_msg>Fix comment grammar<commit_after>package chalmers_chop

type Restaurant struct {
	Name  string `json:"name"`
	Menus []Menu `json:"menus"`
}

/*
	Add a menu to the restaurant. Adding a menu with the Date field
	set to the same value as an existing menu in the slice will
	replace the existing menu with the new one.
*/
func (r *Restaurant) addMenus(menus ...*Menu) {
	// If a menu with the same date already exists, overwrite it
	for _, menu := range menus {
		for i, m := range r.Menus {
			if m.Date == menu.Date {
				r.Menus[i] = r.Menus[len(r.Menus)-1]
				r.Menus = r.Menus[:len(r.Menus)-1]

				break
			}
		}

		r.Menus = append(r.Menus, *menu)
	}
}
{'fraction_non_alphanumeric': 0.12585812356979406, 'fraction_numerical': 0.0030511060259344014, 'mean_word_length': 3.0745341614906834, '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': '2826752', 'n_tokens_mistral': 522, 'n_tokens_neox': 473, 'n_words': 165}