<commit_before>extern crate rustty;

use rustty::{
    Terminal,
    Event,
};
use rustty::ui::{
    Painter,
    Dialog,
    ButtonResult,
    Alignable,
    HorizontalAlign,
    VerticalAlign,
    StdButton,
    Widget,
};

fn create_maindlg() -> Dialog {
    let mut maindlg = Dialog::new(60, 10);
    maindlg.window_mut().draw_box();
    
    let mut b1 = StdButton::new("Quit", 'q', ButtonResult::Ok);
    b1.pack(&maindlg, HorizontalAlign::Left, VerticalAlign::Top, 6);
    let mut b2 = StdButton::new("Foo", 'f', ButtonResult::Custom(1));
    b2.pack(&maindlg, HorizontalAlign::Middle, VerticalAlign::Top, 6);
    let mut b3 = StdButton::new("Bar", 'b', ButtonResult::Custom(2));
    b3.pack(&maindlg, HorizontalAlign::Right, VerticalAlign::Top, 6);
    
    maindlg.add_button(b1);
    maindlg.add_button(b2);
    maindlg.add_button(b3);
    maindlg
}

fn main() {
    let mut term = Terminal::new().unwrap();<commit_msg>fix include errors in ui.rs<commit_after>extern crate rustty;

use rustty::{
    Terminal,
    Event,
};

use rustty::ui::core::{
    Painter,
    Base,
    Widget,
    ButtonResult,
    Alignable,
    HorizontalAlign,
    VerticalAlign,
};

use rustty::ui::{
    StdButton,
    Dialog
};

fn create_maindlg() -> Dialog {
    let mut maindlg = Dialog::new(60, 10);
    maindlg.window_mut().draw_box();
    
    let mut b1 = StdButton::new("Quit", 'q', ButtonResult::Ok);
    b1.pack(&maindlg, HorizontalAlign::Left, VerticalAlign::Top, 6);
    let mut b2 = StdButton::new("Foo", 'f', ButtonResult::Custom(1));
    b2.pack(&maindlg, HorizontalAlign::Middle, VerticalAlign::Top, 6);
    let mut b3 = StdButton::new("Bar", 'b', ButtonResult::Custom(2));
    b3.pack(&maindlg, HorizontalAlign::Right, VerticalAlign::Top, 6);
    
    maindlg.add_button(b1);
    maindlg.add_button(b2);
    maindlg.add_button(b3);
    maindlg
}

fn main() {
    let mut term = Terminal::new().unwrap();
{'fraction_non_alphanumeric': 0.1643979057591623, 'fraction_numerical': 0.018848167539267015, 'mean_word_length': 3.801507537688442, 'pattern_counts': {'":': 0, '<': 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': '3252838', 'n_tokens_mistral': 723, 'n_tokens_neox': 689, 'n_words': 138}