<commit_before>extern crate diesel;
extern crate dotenv;

use diesel::migrations::run_pending_migrations;
use diesel::pg::PgConnection;
use diesel::prelude::*;
use dotenv::dotenv;
use std::env;

fn main() {
    println!("cargo:rerun-if-env-changed=TEST_DATABASE_URL");
    println!("cargo:rerun-if-changed=build.rs");
    if env::var("PROFILE") == Ok("debug".into()) {
        let _ = dotenv();<commit_msg>Ensure the build script is run when migrations are added<commit_after>extern crate diesel;
extern crate dotenv;

use diesel::migrations::run_pending_migrations;
use diesel::pg::PgConnection;
use diesel::prelude::*;
use dotenv::dotenv;
use std::env;

fn main() {
    println!("cargo:rerun-if-env-changed=TEST_DATABASE_URL");
    println!("cargo:rerun-if-changed=build.rs");
    println!("cargo:rerun-if-changed=migrations/");
    if env::var("PROFILE") == Ok("debug".into()) {
        let _ = dotenv();
{'fraction_non_alphanumeric': 0.17089305402425578, 'fraction_numerical': 0.0, 'mean_word_length': 5.776119402985074, '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': '5019848', 'n_tokens_mistral': 326, 'n_tokens_neox': 320, 'n_words': 59}