<commit_before>use walkdir::DirEntry;
use termion::{is_tty, color};
use std::path::Path;
use std::fmt;
use mime_guess;
use std::fs;
use pretty_bytes::converter::convert as pretty_bytes_convert;
use std::time;
use chrono::{Local, TimeZone};
use ColorConfig;
use std::ffi::OsStr;
use std::os::unix::fs::FileTypeExt;
use std::os::linux::fs::MetadataExt;

struct RgbColor {
    red: u8,
    green: u8,
    blue: u8,
}

impl RgbColor {
    fn new(r: u8, g: u8, b: u8) -> RgbColor {
        RgbColor{red: r, green: g, blue: b}
    }

    fn from_str(color_string: &str) -> RgbColor {
        let red = u8::from_str_radix(&color_string[0..2], 16).expect(&format!("Could not parse red value in color {}", color_string));
        let green = u8::from_str_radix(&color_string[2..4], 16).expect(&format!("Could not parse green value in color {}", color_string));
        let blue = u8::from_str_radix(&color_string[4..6], 16).expect(&format!("Could not parse blue value in color {}", color_string));<commit_msg>Fix compiling issue on macOS<commit_after>use walkdir::DirEntry;
use termion::{is_tty, color};
use std::path::Path;
use std::fmt;
use mime_guess;
use std::fs;
use pretty_bytes::converter::convert as pretty_bytes_convert;
use std::time;
use chrono::{Local, TimeZone};
use ColorConfig;
use std::ffi::OsStr;
use std::os::unix::fs::{FileTypeExt, MetadataExt};

struct RgbColor {
    red: u8,
    green: u8,
    blue: u8,
}

impl RgbColor {
    fn new(r: u8, g: u8, b: u8) -> RgbColor {
        RgbColor{red: r, green: g, blue: b}
    }

    fn from_str(color_string: &str) -> RgbColor {
        let red = u8::from_str_radix(&color_string[0..2], 16).expect(&format!("Could not parse red value in color {}", color_string));
        let green = u8::from_str_radix(&color_string[2..4], 16).expect(&format!("Could not parse green value in color {}", color_string));
        let blue = u8::from_str_radix(&color_string[4..6], 16).expect(&format!("Could not parse blue value in color {}", color_string));
{'fraction_non_alphanumeric': 0.16557952834922227, 'fraction_numerical': 0.021073758153537382, 'mean_word_length': 4.6647727272727275, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5676454', 'n_tokens_mistral': 722, 'n_tokens_neox': 721, 'n_words': 184}