<commit_before>package main

import (
	"fmt"
	"strings"
	"time"
)

const (
	unknown      = "?"
	updatePeriod = 5 * time.Second
)

var (
	chargeStatus  = map[string]string{"Charging": "+", "Discharging": "-", "Full": "="}
	items         = []func() string{netStatus, batteryStatus, audioStatus, timeStatus}
	batteries     = []string{"BAT0", "BAT1"}
	netInterfaces = []string{"wlp3s0", "enp0s25"}
)

func wifiFmt(dev, ssid string, bitrate, signal int, isUp bool) string {
	if !isUp {
		return ""
	}
	return fmt.Sprintf("ω%s/%d/%d", ssid, bitrate, signal)
}

func wiredFmt(dev string, speed int, isUp bool) string {
	if !isUp {
		return ""
	}
	return fmt.Sprintf("ε%d", speed)
}

func netFmt(devs []string) string {
	upDevs := devs[:0]
	for _, dev := range devs {
		if len(dev) > 0 {
			upDevs = append(upDevs, dev)
		}
	}
	return strings.Join(upDevs, " ")
}

func batteryDevFmt(pct int, status string) string {<commit_msg>Don't bother with symbol for full battery.<commit_after>package main

import (
	"fmt"
	"strings"
	"time"
)

const (
	unknown      = "?"
	updatePeriod = 5 * time.Second
)

var (
	chargeStatus  = map[string]string{"Charging": "+", "Discharging": "-"}
	items         = []func() string{netStatus, batteryStatus, audioStatus, timeStatus}
	batteries     = []string{"BAT0", "BAT1"}
	netInterfaces = []string{"wlp3s0", "enp0s25"}
)

func wifiFmt(dev, ssid string, bitrate, signal int, isUp bool) string {
	if !isUp {
		return ""
	}
	return fmt.Sprintf("ω%s/%d/%d", ssid, bitrate, signal)
}

func wiredFmt(dev string, speed int, isUp bool) string {
	if !isUp {
		return ""
	}
	return fmt.Sprintf("ε%d", speed)
}

func netFmt(devs []string) string {
	upDevs := devs[:0]
	for _, dev := range devs {
		if len(dev) > 0 {
			upDevs = append(upDevs, dev)
		}
	}
	return strings.Join(upDevs, " ")
}

func batteryDevFmt(pct int, status string) string {
{'fraction_non_alphanumeric': 0.16558791801510248, 'fraction_numerical': 0.010787486515641856, 'mean_word_length': 3.9074074074074074, 'pattern_counts': {'":': 5, '<': 3, '<?xml version=': 0, '>': 5, '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': '1809276', 'n_tokens_mistral': 753, 'n_tokens_neox': 727, 'n_words': 173}