<commit_before>package github

import (
	"fmt"
	"text/template"

	"github.com/binhq/binbrew/pkg"
)

const urlPrefix = "https://github.com/{{.FullName}}/releases/download/%s"

var rules = pkg.RuleSet{
	"Masterminds/glide": []*pkg.Rule{
		{
			Constraint: pkg.MustConstraint("*"),
			Template: &pkg.BinaryTemplate{
				Homepage:    "https://glide.sh",
				Description: "Package Management for Golang",
				URL:         template.Must(template.New("").Funcs(pkg.TplFuncs).Parse(fmt.Sprintf(urlPrefix, "v{{.Version}}/glide-v{{.Version}}-{{.Os}}-{{.Arch}}.tar.gz"))),
				File:        template.Must(template.New("").Funcs(pkg.TplFuncs).Parse("{{.Os}}-{{.Arch}}/glide")),
			},
		},
	},
	"mattes/migrate": []*pkg.Rule{
		{
			Constraint: pkg.MustConstraint("*"),
			Template: &pkg.BinaryTemplate{
				Description: "Database migrations. CLI and Golang library.",
				URL:         template.Must(template.New("").Funcs(pkg.TplFuncs).Parse(fmt.Sprintf(urlPrefix, "v{{.Version}}/migrate.{{.Os}}-{{.Arch}}.tar.gz"))),
				File:        template.Must(template.New("").Funcs(pkg.TplFuncs).Parse("./migrate.{{.Os}}-{{.Arch}}")), // TODO: do not require ./ at the beggining of the path???
			},
		},
	},
	"goreleaser/goreleaser": []*pkg.Rule{
		{
			Constraint: pkg.MustConstraint("*"),
			Template: &pkg.BinaryTemplate{
				Homepage:    "https://goreleaser.github.io/",
				Description: "Deliver Go binaries as fast and easily as possible",
				URL:         template.Must(template.New("").Funcs(pkg.TplFuncs).Parse(fmt.Sprintf(urlPrefix, "v{{.Version}}/goreleaser_{{.Os | title}}_{{.Arch | goarch}}.tar.gz"))),
				File:        template.Must(template.New("").Funcs(pkg.TplFuncs).Parse("goreleaser")),
			},
		},
	},
	"golang/dep": []*pkg.Rule{
		{
			Constraint: pkg.MustConstraint(">0.3.0"),
			Template: &pkg.BinaryTemplate{
				Homepage:    "https://github.com/golang/dep",
				Description: "Go dependency management tool",
				URL:         template.Must(template.New("").Funcs(pkg.TplFuncs).Parse(fmt.Sprintf(urlPrefix, "v{{.Version}}/dep-{{.Os}}-{{.Arch}}"))),
				File:        template.Must(template.New("").Funcs(pkg.TplFuncs).Parse("dep")),
			},
		},
		{
			Constraint: pkg.MustConstraint("<=0.3.0"),
			Template: &pkg.BinaryTemplate{
				Homepage:    "https://github.com/golang/dep",
				Description: "Go dependency management tool",
				URL:         template.Must(template.New("").Funcs(pkg.TplFuncs).Parse(fmt.Sprintf(urlPrefix, "v{{.Version}}/dep-{{.Os}}-{{.Arch}}.zip"))),
				File:        template.Must(template.New("").Funcs(pkg.TplFuncs).Parse("dep")),
			},
		},
	},
}<commit_msg>Remove unused file name configuration<commit_after>package github

import (
	"fmt"
	"text/template"

	"github.com/binhq/binbrew/pkg"
)

const urlPrefix = "https://github.com/{{.FullName}}/releases/download/%s"

var rules = pkg.RuleSet{
	"Masterminds/glide": []*pkg.Rule{
		{
			Constraint: pkg.MustConstraint("*"),
			Template: &pkg.BinaryTemplate{
				Homepage:    "https://glide.sh",
				Description: "Package Management for Golang",
				URL:         template.Must(template.New("").Funcs(pkg.TplFuncs).Parse(fmt.Sprintf(urlPrefix, "v{{.Version}}/glide-v{{.Version}}-{{.Os}}-{{.Arch}}.tar.gz"))),
				File:        template.Must(template.New("").Funcs(pkg.TplFuncs).Parse("{{.Os}}-{{.Arch}}/glide")),
			},
		},
	},
	"mattes/migrate": []*pkg.Rule{
		{
			Constraint: pkg.MustConstraint("*"),
			Template: &pkg.BinaryTemplate{
				Description: "Database migrations. CLI and Golang library.",
				URL:         template.Must(template.New("").Funcs(pkg.TplFuncs).Parse(fmt.Sprintf(urlPrefix, "v{{.Version}}/migrate.{{.Os}}-{{.Arch}}.tar.gz"))),
				File:        template.Must(template.New("").Funcs(pkg.TplFuncs).Parse("./migrate.{{.Os}}-{{.Arch}}")), // TODO: do not require ./ at the beggining of the path???
			},
		},
	},
	"goreleaser/goreleaser": []*pkg.Rule{
		{
			Constraint: pkg.MustConstraint("*"),
			Template: &pkg.BinaryTemplate{
				Homepage:    "https://goreleaser.github.io/",
				Description: "Deliver Go binaries as fast and easily as possible",
				URL:         template.Must(template.New("").Funcs(pkg.TplFuncs).Parse(fmt.Sprintf(urlPrefix, "v{{.Version}}/goreleaser_{{.Os | title}}_{{.Arch | goarch}}.tar.gz"))),
			},
		},
	},
	"golang/dep": []*pkg.Rule{
		{
			Constraint: pkg.MustConstraint(">0.3.0"),
			Template: &pkg.BinaryTemplate{
				Homepage:    "https://github.com/golang/dep",
				Description: "Go dependency management tool",
				URL:         template.Must(template.New("").Funcs(pkg.TplFuncs).Parse(fmt.Sprintf(urlPrefix, "v{{.Version}}/dep-{{.Os}}-{{.Arch}}"))),
			},
		},
		{
			Constraint: pkg.MustConstraint("<=0.3.0"),
			Template: &pkg.BinaryTemplate{
				Homepage:    "https://github.com/golang/dep",
				Description: "Go dependency management tool",
				URL:         template.Must(template.New("").Funcs(pkg.TplFuncs).Parse(fmt.Sprintf(urlPrefix, "v{{.Version}}/dep-{{.Os}}-{{.Arch}}.zip"))),
			},
		},
	},
}
{'fraction_non_alphanumeric': 0.222920892494929, 'fraction_numerical': 0.002434077079107505, 'mean_word_length': 3.7006673021925645, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7515389', 'n_tokens_mistral': 1988, 'n_tokens_neox': 1731, 'n_words': 232}