<commit_before>package types

import "github.com/ellcrys/util"

// Cocoon represents a smart contract application
type Cocoon struct {
	Identity       string   `structs:"identity" mapstructure:"identity"`
	ID             string   `structs:"ID" mapstructure:"ID"`
	URL            string   `structs:"URL" mapstructure:"URL"`
	ReleaseTag     string   `structs:"releaseTag "mapstructure:"releaseTag"`
	Language       string   `structs:"language" mapstructure:"language"`
	BuildParam     string   `structs:"buildParam" mapstructure:"buildParam"`
	Memory         string   `structs:"memory" mapstructure:"memory"`
	CPUShare       string   `structs:"CPUShare" mapstructure:"CPUShare"`
	NumSignatories int32    `structs:"numSignatories" mapstructure:"numSignatories"`
	SigThreshold   int32    `structs:"sigThreshold" mapstructure:"sigThreshold"`
	Link           string   `structs:"link" mapstructure:"link"`
	Releases       []string `structs:"releases" mapstructure:"releases"`
	Signatories    []string `structs:"signatories" mapstructure:"signatories"`
}

// ToJSON returns the json equivalent of this object
func (c *Cocoon) ToJSON() []byte {
	json, _ := util.ToJSON(c)
	return json
}

// Release represents a new update to a cocoon's
// configuration
type Release struct {
	ID          string `structs:"ID" mapstructure:"ID"`
	CocoonID    string `structs:"cocoonID" mapstructure:"cocoonID"`
	URL         string `structs:"URL" mapstructure:"URL"`
	ReleaseTag  string `structs:"releaseTag" mapstructure:"releaseTag"`
	Language    string `structs:"language" mapstructure:"language"`
	BuildParam  string `structs:"buildParam" mapstructure:"buildParam"`
	Link        string `structs:"link" mapstructure:"link"`
	SigApproved int32  `structs:"sigApproved" mapstructure:"sigApproved"`
	SigDenied   int32  `structs:"sigDenied" mapstructure:"sigDenied"`
}

// ToJSON returns the json equivalent of this object
func (r *Release) ToJSON() []byte {
	json, _ := util.ToJSON(r)
	return json
}
<commit_msg>fix tag<commit_after>package types

import "github.com/ellcrys/util"

// Cocoon represents a smart contract application
type Cocoon struct {
	Identity       string   `structs:"identity" mapstructure:"identity"`
	ID             string   `structs:"ID" mapstructure:"ID"`
	URL            string   `structs:"URL" mapstructure:"URL"`
	ReleaseTag     string   `structs:"releaseTag" mapstructure:"releaseTag"`
	Language       string   `structs:"language" mapstructure:"language"`
	BuildParam     string   `structs:"buildParam" mapstructure:"buildParam"`
	Memory         string   `structs:"memory" mapstructure:"memory"`
	CPUShare       string   `structs:"CPUShare" mapstructure:"CPUShare"`
	NumSignatories int32    `structs:"numSignatories" mapstructure:"numSignatories"`
	SigThreshold   int32    `structs:"sigThreshold" mapstructure:"sigThreshold"`
	Link           string   `structs:"link" mapstructure:"link"`
	Releases       []string `structs:"releases" mapstructure:"releases"`
	Signatories    []string `structs:"signatories" mapstructure:"signatories"`
}

// ToJSON returns the json equivalent of this object
func (c *Cocoon) ToJSON() []byte {
	json, _ := util.ToJSON(c)
	return json
}

// Release represents a new update to a cocoon's
// configuration
type Release struct {
	ID          string `structs:"ID" mapstructure:"ID"`
	CocoonID    string `structs:"cocoonID" mapstructure:"cocoonID"`
	URL         string `structs:"URL" mapstructure:"URL"`
	ReleaseTag  string `structs:"releaseTag" mapstructure:"releaseTag"`
	Language    string `structs:"language" mapstructure:"language"`
	BuildParam  string `structs:"buildParam" mapstructure:"buildParam"`
	Link        string `structs:"link" mapstructure:"link"`
	SigApproved int32  `structs:"sigApproved" mapstructure:"sigApproved"`
	SigDenied   int32  `structs:"sigDenied" mapstructure:"sigDenied"`
}

// ToJSON returns the json equivalent of this object
func (r *Release) ToJSON() []byte {
	json, _ := util.ToJSON(r)
	return json
}

{'fraction_non_alphanumeric': 0.11761736496718829, 'fraction_numerical': 0.004038364462392731, 'mean_word_length': 4.677650429799427, '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': '4496238', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1145, 'n_words': 295}