<commit_before>use super::Backend;
use std::fs::{self, File};
use std::io;
use std::path::{Path, PathBuf};


/// Backend operating on the local filesystem.
pub struct LocalBackend {
    base_path: PathBuf,
}

impl LocalBackend {
    /// Create a new LocalBackend that operates on the given directory.
    pub fn new<P: AsRef<Path>>(path: P) -> io::Result<Self> {
        Ok(LocalBackend { base_path: path.as_ref().to_path_buf() })
    }
}
<commit_msg>Removed unuseful Result in local backend impl<commit_after>use super::Backend;
use std::fs::{self, File};
use std::io;
use std::path::{Path, PathBuf};


/// Backend operating on the local filesystem.
pub struct LocalBackend {
    base_path: PathBuf,
}

impl LocalBackend {
    /// Create a new LocalBackend that operates on the given directory.
    pub fn new<P: AsRef<Path>>(path: P) -> Self {
        LocalBackend { base_path: path.as_ref().to_path_buf() }
    }
}

{'fraction_non_alphanumeric': 0.13725490196078433, 'fraction_numerical': 0.0, 'mean_word_length': 3.8624338624338623, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, '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': '1417742', 'n_tokens_mistral': 297, 'n_tokens_neox': 305, 'n_words': 90}