<commit_before>// Make-related variables are capitalized:
// This is not Rust-way, but makes code readable where we interface with Make
#![allow(non_snake_case)]

static COMPONENTS_VERSION: &'static str = "0.3.0";
static COMPONENTS_DATE:    &'static str = "2015-12-31";

use std::process;
use std::process::Command;
use std::process::Stdio;
use std::env;
use std::fs;
use std::fs::File;
use std::os::unix::prelude::*;

fn main() {
    let command: String;
    let explain_mode: bool;
    let debug_mode: bool = env::vars().any(|k| k.0 == "DEBUG" );
   
    if debug_mode { 
        println!("Debug mode is enabled");
    }
 
    let mut args = env::args();

    if args.len() == 1 {
        println!("Components {} ({})\n\n{}", COMPONENTS_VERSION, COMPONENTS_DATE, COMPONENTS_USAGE_INSTRUCTIONS);<commit_msg>Read version automatically from Cargo.toml file<commit_after>// Make-related variables are capitalized:
// This is not Rust-way, but makes code readable where we interface with Make
#![allow(non_snake_case)]

static COMPONENTS_VERSION: &'static str = env!("CARGO_PKG_VERSION");
static COMPONENTS_DATE:    &'static str = "2015-12-31";

use std::process;
use std::process::Command;
use std::process::Stdio;
use std::env;
use std::fs;
use std::fs::File;
use std::os::unix::prelude::*;

fn main() {
    let command: String;
    let explain_mode: bool;
    let debug_mode: bool = env::vars().any(|k| k.0 == "DEBUG" );
   
    if debug_mode { 
        println!("Debug mode is enabled");
    }
 
    let mut args = env::args();

    if args.len() == 1 {
        println!("Components {} ({})\n\n{}", COMPONENTS_VERSION, COMPONENTS_DATE, COMPONENTS_USAGE_INSTRUCTIONS);
{'fraction_non_alphanumeric': 0.15947242206235013, 'fraction_numerical': 0.013788968824940047, 'mean_word_length': 4.135384615384615, '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': '6768874', 'n_tokens_mistral': 596, 'n_tokens_neox': 559, 'n_words': 154}