<commit_before>use Serializer;

pub trait Router {
    type Response: Response;
    fn attach_index<F: FnOnce(&[String]) -> Self::Response>(&mut self, route: &'static str, f: F);
    fn attach_get<F>(&mut self, route: &'static str, f: F)
        where F: FnOnce(&str, &[String]) -> Self::Response;
    fn attach_put<F: FnOnce(())>(&mut self, route: &'static str, f: F);
    fn attach_patch<F: FnOnce(())>(&mut self, route: &'static str, f: F);
}

pub enum Status {
    Ok = 200,
    BadRequest = 400,
    NotFound = 404,
    InternalError = 500,
}

pub trait Response: Default {
    type Serializer: Serializer;
    fn set_status(&mut self, status: Status);
    fn serializer(&mut self) -> &mut Self::Serializer;
}

<commit_msg>Dead code.<commit_after>use Serializer;

pub trait Router {
    type Response: Response;
    fn attach_index<F: FnOnce(&[String]) -> Self::Response>(&mut self, route: &'static str, f: F);
    fn attach_get<F>(&mut self, route: &'static str, f: F)
        where F: FnOnce(&str, &[String]) -> Self::Response;
}

pub enum Status {
    Ok = 200,
    BadRequest = 400,
    NotFound = 404,
    InternalError = 500,
}

pub trait Response: Default {
    type Serializer: Serializer;
    fn set_status(&mut self, status: Status);
    fn serializer(&mut self) -> &mut Self::Serializer;
}


{'fraction_non_alphanumeric': 0.15531752104055088, 'fraction_numerical': 0.018362662586074982, 'mean_word_length': 3.6219081272084805, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '5580244', 'n_tokens_mistral': 474, 'n_tokens_neox': 446, 'n_words': 137}