<commit_before>/// Easy to use Let's Encrypt client to issue and renew TLS certs

extern crate acme_client;
extern crate openssl;
extern crate clap;
extern crate env_logger;
extern crate openssl_sys;


use std::io;
use std::path::Path;
use std::collections::HashSet;
use acme_client::Directory;
use acme_client::error::Result;
use clap::{Arg, App, SubCommand, ArgMatches};


fn main() {
    let matches = App::new(env!("CARGO_PKG_NAME"))
        .version(env!("CARGO_PKG_VERSION"))
        .about(env!("CARGO_PKG_DESCRIPTION"))
        .usage("acme-client sign -D example.org -P /var/www -k domain.key -o domain.crt\
                \n    acme-client revoke -K user_or_domain.key -C signed.crt")
        .subcommand(SubCommand::with_name("sign")
            .about("Signs a certificate")
            .display_order(1)
            .arg(Arg::with_name("DIRECTORY")
                .help("Set ACME directory URL")
                .short("A")
                .long("directory")
                .default_value(acme_client::LETSENCRYPT_DIRECTORY_URL)
                .takes_value(true)
                .display_order(1))
            .arg(Arg::with_name("USER_KEY_PATH")
                .help("Path to load user private key to use it in account registration.\
                      This is optional and acme-client will generate one if it's not supplied.")
                .long("user-key")
                .short("U")
                .takes_value(true)
                .display_order(4))
            .arg(Arg::with_name("DOMAIN_KEY_PATH")
                .help("Path to load private domain key. This is optional and acme-client will \<commit_msg>Add missing space<commit_after>/// Easy to use Let's Encrypt client to issue and renew TLS certs

extern crate acme_client;
extern crate openssl;
extern crate clap;
extern crate env_logger;
extern crate openssl_sys;


use std::io;
use std::path::Path;
use std::collections::HashSet;
use acme_client::Directory;
use acme_client::error::Result;
use clap::{Arg, App, SubCommand, ArgMatches};


fn main() {
    let matches = App::new(env!("CARGO_PKG_NAME"))
        .version(env!("CARGO_PKG_VERSION"))
        .about(env!("CARGO_PKG_DESCRIPTION"))
        .usage("acme-client sign -D example.org -P /var/www -k domain.key -o domain.crt\
                \n    acme-client revoke -K user_or_domain.key -C signed.crt")
        .subcommand(SubCommand::with_name("sign")
            .about("Signs a certificate")
            .display_order(1)
            .arg(Arg::with_name("DIRECTORY")
                .help("Set ACME directory URL")
                .short("A")
                .long("directory")
                .default_value(acme_client::LETSENCRYPT_DIRECTORY_URL)
                .takes_value(true)
                .display_order(1))
            .arg(Arg::with_name("USER_KEY_PATH")
                .help("Path to load user private key to use it in account registration. \
                      This is optional and acme-client will generate one if it's not supplied.")
                .long("user-key")
                .short("U")
                .takes_value(true)
                .display_order(4))
            .arg(Arg::with_name("DOMAIN_KEY_PATH")
                .help("Path to load private domain key. This is optional and acme-client will \
{'fraction_non_alphanumeric': 0.11750380517503806, 'fraction_numerical': 0.0018264840182648401, 'mean_word_length': 2.2152641878669277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4755259', 'n_tokens_mistral': 1022, 'n_tokens_neox': 970, 'n_words': 250}