<commit_before>//! Custom error types.

use redis::RedisError;
use r2d2::InitializationError;
use std::io;
use std::borrow::Cow;


/// A ``SpaceapiServerError`` wraps general problems that can occur in the SpaceAPI server.
quick_error! {
    #[derive(Debug)]
    pub enum SpaceapiServerError {
        Redis(err: RedisError) {
            from()
            cause(err)<commit_msg>Fix warning about unused_doc_comments (#91)<commit_after>//! Custom error types.

use r2d2::InitializationError;
use redis::RedisError;
use std::borrow::Cow;
use std::io;

quick_error! {
    /// A ``SpaceapiServerError`` wraps general problems that can occur in the SpaceAPI server.
    #[derive(Debug)]
    pub enum SpaceapiServerError {
        Redis(err: RedisError) {
            from()
            cause(err)
{'fraction_non_alphanumeric': 0.11727616645649433, 'fraction_numerical': 0.007566204287515763, 'mean_word_length': 3.411111111111111, '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': '2793656', 'n_tokens_mistral': 251, 'n_tokens_neox': 245, 'n_words': 69}