<commit_before>package pulet

import (
	"crypto/rand"
	"encoding/hex"
	"fmt"
	"io"
	"os/exec"
	"time"
)

type ImportSpec struct {
	SourceHost string `json:"src_host"`
	SourcePort int    `json:"src_port"`
	SourceId   string `json:"src_id"`
}

type ImageSpec struct {
	Repo string `json:"repo"`
	Tag  string `json:"tag"`
}

func randomUniqString() string {
	var d [8]byte
	io.ReadFull(rand.Reader, d[:])
	str := hex.EncodeToString(d[:])
	return fmt.Sprintf("%x-%v", time.Now().Unix(), str)
}

type Pulet struct {
}

func NewPulet() *Pulet {
	return &Pulet{}
}<commit_msg>check root<commit_after>package pulet

import (
	"crypto/rand"
	"encoding/hex"
	"fmt"
	"io"
	"os/exec"
	"os/user"
	"time"
)

type ImportSpec struct {
	SourceHost string `json:"src_host"`
	SourcePort int    `json:"src_port"`
	SourceId   string `json:"src_id"`
}

type ImageSpec struct {
	Repo string `json:"repo"`
	Tag  string `json:"tag"`
}

func randomUniqString() string {
	var d [8]byte
	io.ReadFull(rand.Reader, d[:])
	str := hex.EncodeToString(d[:])
	return fmt.Sprintf("%x-%v", time.Now().Unix(), str)
}

type Pulet struct {
}

func NewPulet() *Pulet {
	u, err := user.Current()
	if err != nil {
		panic(err.Error())
	}
	if u.Username != "root" {
		panic("must be root!")
	}
	return &Pulet{}
}
{'fraction_non_alphanumeric': 0.17665615141955837, 'fraction_numerical': 0.0015772870662460567, 'mean_word_length': 4.265560165975104, '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': '5235217', 'n_tokens_mistral': 514, 'n_tokens_neox': 506, 'n_words': 119}