<commit_before>use crate::utils;
use dirs;
use std::fs;
use std::io::ErrorKind;
use std::process::Command;

pub fn setup() {
    // Environment (Unix)

    utils::install_package("ripgrep");

    // Version control (Git)

    utils::install_package("git");

    let home_path = match dirs::home_dir() {
        Some(directory) => directory,
        None => panic!("Cannot find the home directory."),
    };

    let repos_path = home_path.join("repos");

    utils::create_dir(&repos_path);

    match fs::read_dir(&repos_path) {
        Ok(_) => println!("The repos are already installed."),
        Err(_) => {
            utils::clone_repo(&repos_path, "https://github.com/trevordmiller/scripts");
            utils::clone_repo(&repos_path, "https://github.com/trevordmiller/study");
        }
    };

    // Editor (Vim)
<commit_msg>Removing step now in readme prerequisites<commit_after>use crate::utils;
use dirs;
use std::fs;
use std::io::ErrorKind;
use std::process::Command;

pub fn setup() {
    // Environment (Unix)

    utils::install_package("ripgrep");

    // Version control (Git)

    utils::install_package("git");

    let home_path = match dirs::home_dir() {
        Some(directory) => directory,
        None => panic!("Cannot find the home directory."),
    };

    let repos_path = home_path.join("repos");

    match fs::read_dir(&repos_path) {
        Ok(_) => println!("The repos are already installed."),
        Err(_) => {
            utils::clone_repo(&repos_path, "https://github.com/trevordmiller/scripts");
            utils::clone_repo(&repos_path, "https://github.com/trevordmiller/study");
        }
    };

    // Editor (Vim)

{'fraction_non_alphanumeric': 0.16336336336336335, 'fraction_numerical': 0.0, 'mean_word_length': 3.103448275862069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '568006', 'n_tokens_mistral': 551, 'n_tokens_neox': 520, 'n_words': 106}