<commit_before>/// This build script checks if we can use `#![feature(specialization)]`.

extern crate rustc_version;

use rustc_version::Channel;

const SPECIALIZATION_CFG: &'static str = "has_specialization";

fn main() {
    let version = rustc_version::version_meta();

    if version.channel == Channel::Nightly {
        if let Some(ref date) = version.commit_date {
            // year, month, day
            let ndate = date.splitn(3, "-")
                                      .map(str::parse)
                                      .collect::<Result<Vec<i32>, _>>().unwrap();

            // specialization is available from nightly 2016-3-15
            if ndate >= vec![2016, 3, 15] {
                println!("cargo:rustc-cfg={}", SPECIALIZATION_CFG);
            }
        }
    }
}<commit_msg>Prevent rebuilds of build.rs if other files change, fixes #62<commit_after>/// This build script checks if we can use `#![feature(specialization)]`.

extern crate rustc_version;

use rustc_version::Channel;

const SPECIALIZATION_CFG: &'static str = "has_specialization";

fn main() {
    // Prevent rebuilds of build.rs if other files change
    println!("cargo:rerun-if-changed=build.rs");

    let version = rustc_version::version_meta();

    if version.channel == Channel::Nightly {
        if let Some(ref date) = version.commit_date {
            // year, month, day
            let ndate = date.splitn(3, "-")
                                      .map(str::parse)
                                      .collect::<Result<Vec<i32>, _>>().unwrap();

            // specialization is available from nightly 2016-3-15
            if ndate >= vec![2016, 3, 15] {
                println!("cargo:rustc-cfg={}", SPECIALIZATION_CFG);
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.13036117381489842, 'fraction_numerical': 0.020316027088036117, 'mean_word_length': 2.025597269624573, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6447818', 'n_tokens_mistral': 547, 'n_tokens_neox': 499, 'n_words': 128}