<commit_before>use common::*;

pub fn init() {
    let skel_dir = path_to(CONFIG.skel_path, Root::Plugin);
    let step_implementations_dir = path_to(CONFIG.step_implementations_path, Root::Project);
    let steps_file = CONFIG.steps_file;

    create_dir(&step_implementations_dir);
    copy_file(&skel_dir.join(&steps_file),
              &step_implementations_dir.join(&steps_file));
}<commit_msg>Use error checking in install<commit_after>use common::*;

pub fn init() {
    let skel_dir = path_to(CONFIG.skel_path, Root::Plugin);
    let step_implementations_dir = path_to(CONFIG.step_implementations_path, Root::Project);
    let steps_file = CONFIG.steps_file;

    create_dir(&step_implementations_dir).unwrap();
    match copy_file(&skel_dir.join(&steps_file), &step_implementations_dir.join(&steps_file)) {
        Ok(_) => println!(" created {}", &steps_file),
        Err(e) => println!("Error: {}", e),
    }
}
{'fraction_non_alphanumeric': 0.13867822318526543, 'fraction_numerical': 0.0, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1250031', 'n_tokens_mistral': 303, 'n_tokens_neox': 312, 'n_words': 50}