<commit_before>package proto

import "time"

type Response struct {
	Available   bool    `json:"available"`
	DownloadURL string  `json:"download_url"`
	Checksum    string  `json:"checksum"`
	Signature   string  `json:"signature"`
	PatchType   string  `json:"patch_type"`
	Version     string  `json:"version"`
	Release     Release `json:"release"`
}

type Request struct {
	AppID         string `json:"app_id"`
	Channel       string `json:"channel"`
	OS            string `json:"os"`
	Arch          string `json:"arch"`
	GoARM         string `json:"goarm"`
	TargetVersion string `json:"target_version"`

	CurrentVersion string `json:"current_version"`
	CurrentSHA256  string `json:"current_sha256"`
}

type Release struct {
	Title       string    `json:"title"`
	Description string    `json:"description"`
	CreateDate  time.Time `json:"create_date"`
}
<commit_msg>Make patch a type with two values: none and bsdiff<commit_after>package proto

import "time"

type PatchKind string

const (
	PatchRaw    PatchKind = "none"
	PatchBSDIFF PatchKind = "bsdiff"
)

type Response struct {
	Available   bool      `json:"available"`
	DownloadURL string    `json:"download_url"`
	Checksum    string    `json:"checksum"`
	Signature   string    `json:"signature"`
	Patch       PatchKind `json:"patch_type"`
	Version     string    `json:"version"`
	Release     Release   `json:"release"`
}

type Request struct {
	AppID         string `json:"app_id"`
	Channel       string `json:"channel"`
	OS            string `json:"os"`
	Arch          string `json:"arch"`
	GoARM         string `json:"goarm"`
	TargetVersion string `json:"target_version"`

	CurrentVersion string `json:"current_version"`
	CurrentSHA256  string `json:"current_sha256"`
}

type Release struct {
	Title       string    `json:"title"`
	Description string    `json:"description"`
	CreateDate  time.Time `json:"create_date"`
}

{'fraction_non_alphanumeric': 0.1134789557805008, 'fraction_numerical': 0.006393180607352157, 'mean_word_length': 3.671641791044776, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '176820', 'n_tokens_mistral': 571, 'n_tokens_neox': 557, 'n_words': 153}