<commit_before>package dummy

import (
	"github.com/tendermint/abci/types"
	cmn "github.com/tendermint/tmlibs/common"
)

// RandVal creates one random validator, with a key derived
// from the input value
func RandVal(i int) types.Validator {
	pubkey := cmn.RandBytes(33)
	power := cmn.RandUint16() + 1
	return types.Validator{pubkey, int64(power)}
}

// RandVals returns a list of cnt validators for initializing
// the application. Note that the keys are deterministically
// derived from the index in the array, while the power is
// random (Change this if not desired)
func RandVals(cnt int) []types.Validator {
	res := make([]types.Validator, cnt)
	for i := 0; i < cnt; i++ {
		res[i] = RandVal(i)
	}
	return res
}

// InitDummy initializes the dummy app with some data,
// which allows tests to pass and is fine as long as you
// don't make any tx that modify the validator state
func InitDummy(app *PersistentDummyApplication) {
	app.InitChain(types.RequestInitChain{
		Validators:    RandVals(1),
		AppStateBytes: []byte("[]"),
	})
}<commit_msg>Change last instance of AppStateBytes to GenesisBytes<commit_after>package dummy

import (
	"github.com/tendermint/abci/types"
	cmn "github.com/tendermint/tmlibs/common"
)

// RandVal creates one random validator, with a key derived
// from the input value
func RandVal(i int) types.Validator {
	pubkey := cmn.RandBytes(33)
	power := cmn.RandUint16() + 1
	return types.Validator{pubkey, int64(power)}
}

// RandVals returns a list of cnt validators for initializing
// the application. Note that the keys are deterministically
// derived from the index in the array, while the power is
// random (Change this if not desired)
func RandVals(cnt int) []types.Validator {
	res := make([]types.Validator, cnt)
	for i := 0; i < cnt; i++ {
		res[i] = RandVal(i)
	}
	return res
}

// InitDummy initializes the dummy app with some data,
// which allows tests to pass and is fine as long as you
// don't make any tx that modify the validator state
func InitDummy(app *PersistentDummyApplication) {
	app.InitChain(types.RequestInitChain{
		Validators:   RandVals(1),
		GenesisBytes: []byte("[]"),
	})
}
{'fraction_non_alphanumeric': 0.11007462686567164, 'fraction_numerical': 0.008395522388059701, 'mean_word_length': 4.181159420289855, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4591862', 'n_tokens_mistral': 713, 'n_tokens_neox': 694, 'n_words': 244}