<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use std::env;
use std::fs;
use std::path::PathBuf;

fn main() {
    let target = env::var("TARGET").unwrap();
    let out_dir = env::var_os("OUT_DIR").unwrap();
    let out_dir = PathBuf::from(out_dir);

    if target.contains("windows") {
        let src = PathBuf::from("res/wrench.exe.manifest");
        let mut dst = out_dir.parent().unwrap().parent().unwrap().parent().unwrap().to_owned();
        dst.push("wrench.exe.manifest");
        fs::copy(&src, &dst).unwrap();
    }
}
<commit_msg>Add a cargo:rerun-if-changed directive to wrench's build.rs<commit_after>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use std::env;
use std::fs;
use std::path::PathBuf;

fn main() {
    let target = env::var("TARGET").unwrap();
    let out_dir = env::var_os("OUT_DIR").unwrap();
    let out_dir = PathBuf::from(out_dir);

    println!("cargo:rerun-if-changed=res/wrench.exe.manifest");
    if target.contains("windows") {
        let src = PathBuf::from("res/wrench.exe.manifest");
        let mut dst = out_dir.parent().unwrap().parent().unwrap().parent().unwrap().to_owned();
        dst.push("wrench.exe.manifest");
        fs::copy(&src, &dst).unwrap();
    }
}

{'fraction_non_alphanumeric': 0.17487046632124353, 'fraction_numerical': 0.0051813471502590676, 'mean_word_length': 3.4653179190751446, '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': '6225240', 'n_tokens_mistral': 522, 'n_tokens_neox': 511, 'n_words': 135}