<commit_before>package ethutil

import (
	"fmt"
	"math/big"
)

// The different number of units
var (
	Ether   = BigPow(10, 18)
	Finney  = BigPow(10, 15)
	Szabo   = BigPow(10, 12)
	Shannon = BigPow(10, 9)
	Babbage = BigPow(10, 6)
	Ada     = BigPow(10, 3)
	Wei     = big.NewInt(1)
)

// Currency to string
//
// Returns a string representing a human readable format
func CurrencyToString(num *big.Int) string {
	switch {
	case num.Cmp(Ether) >= 0:
		return fmt.Sprintf("%v Ether", new(big.Int).Div(num, Ether))
	case num.Cmp(Finney) >= 0:
		return fmt.Sprintf("%v Finney", new(big.Int).Div(num, Finney))
	case num.Cmp(Szabo) >= 0:
		return fmt.Sprintf("%v Szabo", new(big.Int).Div(num, Szabo))
	case num.Cmp(Shannon) >= 0:
		return fmt.Sprintf("%v Shannon", new(big.Int).Div(num, Shannon))
	case num.Cmp(Babbage) >= 0:
		return fmt.Sprintf("%v Babbage", new(big.Int).Div(num, Babbage))
	case num.Cmp(Ada) >= 0:<commit_msg>Added Douglas and Einstan<commit_after>package ethutil

import (
	"fmt"
	"math/big"
)

// The different number of units
var (
	Douglas  = BigPow(10, 42)
	Einstein = BigPow(10, 21)
	Ether    = BigPow(10, 18)
	Finney   = BigPow(10, 15)
	Szabo    = BigPow(10, 12)
	Shannon  = BigPow(10, 9)
	Babbage  = BigPow(10, 6)
	Ada      = BigPow(10, 3)
	Wei      = big.NewInt(1)
)

// Currency to string
//
// Returns a string representing a human readable format
func CurrencyToString(num *big.Int) string {
	switch {
	case num.Cmp(Douglas) >= 0:
		return fmt.Sprintf("%v Douglas", new(big.Int).Div(num, Douglas))
	case num.Cmp(Einstein) >= 0:
		return fmt.Sprintf("%v Einstein", new(big.Int).Div(num, Einstein))
	case num.Cmp(Ether) >= 0:
		return fmt.Sprintf("%v Ether", new(big.Int).Div(num, Ether))
	case num.Cmp(Finney) >= 0:
		return fmt.Sprintf("%v Finney", new(big.Int).Div(num, Finney))
	case num.Cmp(Szabo) >= 0:
		return fmt.Sprintf("%v Szabo", new(big.Int).Div(num, Szabo))
	case num.Cmp(Shannon) >= 0:
		return fmt.Sprintf("%v Shannon", new(big.Int).Div(num, Shannon))
	case num.Cmp(Babbage) >= 0:
		return fmt.Sprintf("%v Babbage", new(big.Int).Div(num, Babbage))
	case num.Cmp(Ada) >= 0:
{'fraction_non_alphanumeric': 0.17440758293838862, 'fraction_numerical': 0.031279620853080566, 'mean_word_length': 3.955399061032864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '6391000', 'n_tokens_mistral': 951, 'n_tokens_neox': 842, 'n_words': 204}