<commit_before>use time::get_time;
use super::Actor;

pub struct Logger;

impl Logger {
  pub fn new() -> Logger {
    Logger { }
  }
}

impl Actor for Logger {
  fn process_message(&mut self, msg: String) -> Result<(),_> {
    let ts = get_time();
    println!("{}.{} {}", ts.sec, ts.nsec/1000000, msg);
  }
}
<commit_msg>fix logger refactoring<commit_after>use time::get_time;
use super::Actor;
use ::error::PoloError;

#[derive(Clone)]
pub struct Logger;

impl Logger {
  pub fn new() -> Logger {
    Logger { }
  }
}

impl Actor for Logger {
  fn process_message(&mut self, msg: String) -> Result<(),PoloError> {
    let ts = get_time();
    println!("{}.{} {}", ts.sec, ts.nsec/1000000, msg);
    Ok(())
  }
}

{'fraction_non_alphanumeric': 0.18461538461538463, 'fraction_numerical': 0.019580419580419582, 'mean_word_length': 3.50314465408805, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6572043', 'n_tokens_mistral': 273, 'n_tokens_neox': 264, 'n_words': 68}