<commit_before>package main

import (
	"bytes"
	"log"
	"os"
	"path/filepath"
	"strings"
	"text/template"
)

type Assets struct {
	Package string
	Assets  []*Asset
	Path    string
}

func (assets *Assets) Bytes() (b []byte, e error) {
	tpl := template.Must(template.New("assets").Parse(TPL))
	buf := &bytes.Buffer{}
	e = tpl.Execute(buf, assets)
	if e != nil {
		return b, e
	}
	return buf.Bytes(), nil
}

func (assets *Assets) Build() error {
	paths, e := filepath.Glob(assets.Path + "/*.*")
	if e != nil {
		return nil
	}
	for _, path := range paths {
		log.Print("adding " + path)<commit_msg>also select assets not matching *.*<commit_after>package main

import (
	"bytes"
	"log"
	"os"
	"path/filepath"
	"strings"
	"text/template"
)

type Assets struct {
	Package string
	Assets  []*Asset
	Path    string
}

func (assets *Assets) Bytes() (b []byte, e error) {
	tpl := template.Must(template.New("assets").Parse(TPL))
	buf := &bytes.Buffer{}
	e = tpl.Execute(buf, assets)
	if e != nil {
		return b, e
	}
	return buf.Bytes(), nil
}

func (assets *Assets) Build() error {
	paths, e := filepath.Glob(assets.Path + "/*")
	if e != nil {
		return nil
	}
	for _, path := range paths {
		log.Print("adding " + path)
{'fraction_non_alphanumeric': 0.17135761589403972, 'fraction_numerical': 0.0, 'mean_word_length': 3.545112781954887, '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': '2051331', 'n_tokens_mistral': 476, 'n_tokens_neox': 470, 'n_words': 126}