<commit_before>//! Easy to use Let's Encrypt compatible Automatic Certificate Management Environment (ACME)
//! client library.
//!
//! Spec is available in <https://tools.ietf.org/html/draft-ietf-acme-acme>
//!
//! ## Examples
//!
//! Signing certificate for example.org:
//!
//! ```rust,no_run
//! # use self::acme_client::AcmeClient;
//! AcmeClient::new()
//!     .and_then(|ac| ac.set_domain("example.org"))
//!     .and_then(|ac| ac.register_account(Some("<EMAIL>")))
//!     .and_then(|ac| ac.identify_domain())
//!     .and_then(|ac| ac.save_http_challenge_into("/var/www"))
//!     .and_then(|ac| ac.simple_http_validation())
//!     .and_then(|ac| ac.sign_certificate())
//!     .and_then(|ac| ac.save_domain_private_key("domain.key"))
//!     .and_then(|ac| ac.save_signed_certificate("domain.crt"));
//! ```
//!
//! Using your own keys and CSR to sign certificate:
//!
//! ```rust,no_run
//! # use self::acme_client::AcmeClient;
//! AcmeClient::new()
//!     .and_then(|ac| ac.set_domain("example.org"))
//!     .and_then(|ac| ac.load_user_key("user.key"))
//!     .and_then(|ac| ac.load_domain_key("domain.key"))
//!     .and_then(|ac| ac.load_csr("domain.csr"))
//!     .and_then(|ac| ac.register_account(Some("<EMAIL>")))
//!     .and_then(|ac| ac.identify_domain())
//!     .and_then(|ac| ac.save_http_challenge_into("/var/www"))
//!     .and_then(|ac| ac.simple_http_validation())
//!     .and_then(|ac| ac.sign_certificate())
//!     .and_then(|ac| ac.save_domain_private_key("domain.key"))
//!     .and_then(|ac| ac.save_signed_certificate("domain.crt"));
//! ```
//!
//! Or you can use this library to generate keys and CSR, and use it later:
//!
//! ```rust
//! # use self::acme_client::AcmeClient;
//! AcmeClient::new()
//!     .and_then(|ac| ac.set_domain("example.org"))
//!     .and_then(|ac| ac.gen_user_key())
//!     .and_then(|ac| ac.gen_domain_key())
//!     .and_then(|ac| ac.gen_csr())
//!     .and_then(|ac| ac.save_user_public_key("user.pub"))
//!     .and_then(|ac| ac.save_user_private_key("user.pub"))
//!     .and_then(|ac| ac.save_domain_public_key("domain.pub"))
//!     .and_then(|ac| ac.save_domain_private_key("domain.key"))
//!     .and_then(|ac| ac.save_csr("domain.csr"));
//! ```
//!
//! Revoking signed certificate:
//! 
//! ```rust,no_run
//! AcmeClient::new()
//!     .and_then(|ac| ac.load_user_key("tests/user.key"))
//!     .and_then(|ac| ac.load_certificate("domain.crt"))
//!     .and_then(|ac| ac.revoke_signed_certificate());
//! ```


#[macro_use]
extern crate log;
#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate hyper;
extern crate openssl;
extern crate rustc_serialize;
<commit_msg>Fix test<commit_after>//! Easy to use Let's Encrypt compatible Automatic Certificate Management Environment (ACME)
//! client library.
//!
//! Spec is available in <https://tools.ietf.org/html/draft-ietf-acme-acme>
//!
//! ## Examples
//!
//! Signing certificate for example.org:
//!
//! ```rust,no_run
//! # use self::acme_client::AcmeClient;
//! AcmeClient::new()
//!     .and_then(|ac| ac.set_domain("example.org"))
//!     .and_then(|ac| ac.register_account(Some("<EMAIL>")))
//!     .and_then(|ac| ac.identify_domain())
//!     .and_then(|ac| ac.save_http_challenge_into("/var/www"))
//!     .and_then(|ac| ac.simple_http_validation())
//!     .and_then(|ac| ac.sign_certificate())
//!     .and_then(|ac| ac.save_domain_private_key("domain.key"))
//!     .and_then(|ac| ac.save_signed_certificate("domain.crt"));
//! ```
//!
//! Using your own keys and CSR to sign certificate:
//!
//! ```rust,no_run
//! # use self::acme_client::AcmeClient;
//! AcmeClient::new()
//!     .and_then(|ac| ac.set_domain("example.org"))
//!     .and_then(|ac| ac.load_user_key("user.key"))
//!     .and_then(|ac| ac.load_domain_key("domain.key"))
//!     .and_then(|ac| ac.load_csr("domain.csr"))
//!     .and_then(|ac| ac.register_account(Some("<EMAIL>")))
//!     .and_then(|ac| ac.identify_domain())
//!     .and_then(|ac| ac.save_http_challenge_into("/var/www"))
//!     .and_then(|ac| ac.simple_http_validation())
//!     .and_then(|ac| ac.sign_certificate())
//!     .and_then(|ac| ac.save_domain_private_key("domain.key"))
//!     .and_then(|ac| ac.save_signed_certificate("domain.crt"));
//! ```
//!
//! Or you can use this library to generate keys and CSR, and use it later:
//!
//! ```rust
//! # use self::acme_client::AcmeClient;
//! AcmeClient::new()
//!     .and_then(|ac| ac.set_domain("example.org"))
//!     .and_then(|ac| ac.gen_user_key())
//!     .and_then(|ac| ac.gen_domain_key())
//!     .and_then(|ac| ac.gen_csr())
//!     .and_then(|ac| ac.save_user_public_key("user.pub"))
//!     .and_then(|ac| ac.save_user_private_key("user.pub"))
//!     .and_then(|ac| ac.save_domain_public_key("domain.pub"))
//!     .and_then(|ac| ac.save_domain_private_key("domain.key"))
//!     .and_then(|ac| ac.save_csr("domain.csr"));
//! ```
//!
//! Revoking signed certificate:
//! 
//! ```rust,no_run
//! # use self::acme_client::AcmeClient;
//! AcmeClient::new()
//!     .and_then(|ac| ac.load_user_key("tests/user.key"))
//!     .and_then(|ac| ac.load_certificate("domain.crt"))
//!     .and_then(|ac| ac.revoke_signed_certificate());
//! ```


#[macro_use]
extern crate log;
#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate hyper;
extern crate openssl;
extern crate rustc_serialize;

{'fraction_non_alphanumeric': 0.2325364213672021, 'fraction_numerical': 0.0, 'mean_word_length': 3.6973684210526314, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '3587388', 'n_tokens_mistral': 2096, 'n_tokens_neox': 1952, 'n_words': 293}