<commit_before>use anyhow::Result;

use cnx::text::*;
use cnx::widgets::*;
use cnx::{Cnx, Position};

fn main() -> Result<()> {
    let attr = Attributes {
        font: Font::new("Envy Code R 21"),
        fg_color: Color::white(),
        bg_color: None,
        padding: Padding::new(8.0, 8.0, 0.0, 0.0),
    };
    let mut active_attr = attr.clone();
    active_attr.bg_color = Some(Color::blue());

    let mut cnx = Cnx::new(Position::Bottom);

    let sensors = Sensors::new(attr.clone(), vec!["Core 0", "Core 1"]);
    let battery = Battery::new(attr.clone(), Color::red());
    let volume = volume::Volume::new(attr.clone());

    let wireless = wireless::Wireless::new(attr.clone(), "wlp0s20f3".to_owned());
    cnx.add_widget(Pager::new(active_attr, attr.clone()));
    cnx.add_widget(ActiveWindowTitle::new(attr.clone()));
    cnx.add_widget(wireless);<commit_msg>Change font<commit_after>use anyhow::Result;

use cnx::text::*;
use cnx::widgets::*;
use cnx::{Cnx, Position};

fn main() -> Result<()> {
    let attr = Attributes {
        font: Font::new("Ubuntu Mono:size=14:bold:antialias=true"),
        fg_color: Color::white(),
        bg_color: None,
        padding: Padding::new(8.0, 8.0, 0.0, 0.0),
    };
    let mut active_attr = attr.clone();
    active_attr.bg_color = Some(Color::blue());

    let mut cnx = Cnx::new(Position::Top);

    let sensors = Sensors::new(attr.clone(), vec!["Core 0", "Core 1"]);
    let battery = Battery::new(attr.clone(), Color::red());
    let volume = volume::Volume::new(attr.clone());

    let wireless = wireless::Wireless::new(attr.clone(), "wlp0s20f3".to_owned());
    cnx.add_widget(Pager::new(active_attr, attr.clone()));
    cnx.add_widget(ActiveWindowTitle::new(attr.clone()));
    cnx.add_widget(wireless);
{'fraction_non_alphanumeric': 0.20033860045146726, 'fraction_numerical': 0.01805869074492099, 'mean_word_length': 4.094827586206897, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1147576', 'n_tokens_mistral': 649, 'n_tokens_neox': 618, 'n_words': 120}