<commit_before>#![feature(globs)]

extern crate rdb;
use std::os;
use std::io::{BufferedReader, File};

fn main() {
    let args = os::args();
    if args.len() == 1 {
        println!("Usage: {} [list of files]", args[0]);
        panic!();
    }

    let file = File::open(&Path::new(args[1].to_string()));
    let mut reader = BufferedReader::new(file);

    rdb::parse(&mut reader)
}
<commit_msg>Make it public to avoid warnings<commit_after>#![feature(globs)]

extern crate rdb;
use std::os;
use std::io::{BufferedReader, File};

pub fn main() {
    let args = os::args();
    if args.len() == 1 {
        println!("Usage: {} [list of files]", args[0]);
        panic!();
    }

    let file = File::open(&Path::new(args[1].to_string()));
    let mut reader = BufferedReader::new(file);

    rdb::parse(&mut reader)
}

{'fraction_non_alphanumeric': 0.20170109356014582, 'fraction_numerical': 0.007290400972053463, 'mean_word_length': 3.552486187845304, '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': '2581901', 'n_tokens_mistral': 291, 'n_tokens_neox': 284, 'n_words': 70}