<commit_before>package compute

type VolumePoolRepository interface {
	List() ([]*VolumePool, error)
}

type VolumePool struct {
	Name string
	Size uint64 // MiB
	Used uint64 // MiB
	Free uint64 // MiB
}

func (pool *VolumePool) UsagePercent() int {
	return int(100 * pool.Used / pool.Free)
}

func (pool *VolumePool) FreeGB() uint64 {
	return pool.Free / 1024
}

func (pool *VolumePool) SizeGb() uint64 {
	return pool.Size / 1024
}<commit_msg>Fix pool usage percent calculation<commit_after>package compute

type VolumePoolRepository interface {
	List() ([]*VolumePool, error)
}

type VolumePool struct {
	Name string
	Size uint64 // MiB
	Used uint64 // MiB
	Free uint64 // MiB
}

func (pool *VolumePool) UsagePercent() int {
	return int(100 * pool.Used / pool.Size)
}

func (pool *VolumePool) FreeGB() uint64 {
	return pool.Free / 1024
}

func (pool *VolumePool) SizeGb() uint64 {
	return pool.Size / 1024
}
{'fraction_non_alphanumeric': 0.11441144114411442, 'fraction_numerical': 0.0462046204620462, 'mean_word_length': 3.9726775956284155, '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': '5682945', 'n_tokens_mistral': 339, 'n_tokens_neox': 303, 'n_words': 98}