<commit_before>extern crate telescreen;
extern crate slack;
extern crate getopts;

use telescreen::telescreen_handler::TelescreenHandler;
use telescreen::router::Router;
use std::env;

fn print_usage(program: &str, opts: getopts::Options) {
    let brief = format!("Usage: {} [options]", program);
    print!("{}", opts.usage(&brief));
}

/*
 * A hack for static building with OpenSSL and musl.
 * https://github.com/clux/muslrust/issues/5#issuecomment-244901775
 */
#[cfg(target_os = "linux")]
fn set_openssl_env() {
    match env::var("SSL_CERT_FILE") {
        Err(_) => env::set_var("SSL_CERT_FILE", "/etc/ssl/certs/ca-certificates.crt"),
        Ok(_) => { /* noop */ },
    }
    match env::var("SSL_CERT_DIR") {
        Err(_) => env::set_var("SSL_CERT_DIR", "/etc/ssl/certs"),
        Ok(_) => { /* noop */ },
    }
}

fn main() {
    if cfg!(target_os = "linux") {
        set_openssl_env();
    }

    let args: Vec<String> = std::env::args().collect();
    let program = args[0].clone();
    let mut opts = getopts::Options::new();

    opts.optopt("a", "api-key", "Slack API key for bot integration", "API_KEY");
    opts.optopt("c", "config", "Path to config file", "FILE");
    opts.optflag("h", "help", "Print this help menu");

    let matches = match opts.parse(&args[1..]) {<commit_msg>Remove build condition<commit_after>extern crate telescreen;
extern crate slack;
extern crate getopts;

use telescreen::telescreen_handler::TelescreenHandler;
use telescreen::router::Router;
use std::env;

fn print_usage(program: &str, opts: getopts::Options) {
    let brief = format!("Usage: {} [options]", program);
    print!("{}", opts.usage(&brief));
}

/*
 * A hack for static building with OpenSSL and musl.
 * https://github.com/clux/muslrust/issues/5#issuecomment-244901775
 */
fn set_openssl_env() {
    match env::var("SSL_CERT_FILE") {
        Err(_) => env::set_var("SSL_CERT_FILE", "/etc/ssl/certs/ca-certificates.crt"),
        Ok(_) => { /* noop */ },
    }
    match env::var("SSL_CERT_DIR") {
        Err(_) => env::set_var("SSL_CERT_DIR", "/etc/ssl/certs"),
        Ok(_) => { /* noop */ },
    }
}

fn main() {
    if cfg!(target_os = "linux") {
        set_openssl_env();
    }

    let args: Vec<String> = std::env::args().collect();
    let program = args[0].clone();
    let mut opts = getopts::Options::new();

    opts.optopt("a", "api-key", "Slack API key for bot integration", "API_KEY");
    opts.optopt("c", "config", "Path to config file", "FILE");
    opts.optflag("h", "help", "Print this help menu");

    let matches = match opts.parse(&args[1..]) {
{'fraction_non_alphanumeric': 0.19389725762842797, 'fraction_numerical': 0.009269988412514484, 'mean_word_length': 3.675090252707581, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '4684879', 'n_tokens_mistral': 918, 'n_tokens_neox': 900, 'n_words': 196}