<commit_before>#[macro_use]
extern crate log;

mod api;
mod commands;
mod common;
mod errors;
mod services;

use api::anoncreds::AnoncredsAPI;
use api::sovrin::SovrinAPI;
use commands::{Command, CommandExecutor};
use std::error;
use std::sync::Arc;

pub struct SovrinClient {
    anoncreds: AnoncredsAPI,
    sovrin: SovrinAPI
}

impl SovrinClient {
    pub fn new() -> SovrinClient {
        let command_executor = Arc::new(CommandExecutor::new());
        SovrinClient {
            anoncreds: AnoncredsAPI::new(command_executor.clone()),
            sovrin: SovrinAPI::new(command_executor.clone())
        }
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    use common::SovrinIdentity;<commit_msg>* Added crypto and wallet members to SovrinClient struct<commit_after>#[macro_use]
extern crate log;

mod api;
mod commands;
mod common;
mod errors;
mod services;

use api::anoncreds::AnoncredsAPI;
use api::crypto::CryptoAPI;
use api::sovrin::SovrinAPI;
use api::wallet::WalletAPI;

use commands::{Command, CommandExecutor};
use std::error;
use std::sync::Arc;

pub struct SovrinClient {
    anoncreds: AnoncredsAPI,
    crypto: CryptoAPI,
    sovrin: SovrinAPI,
    wallet: WalletAPI
}

impl SovrinClient {
    pub fn new() -> SovrinClient {
        let command_executor = Arc::new(CommandExecutor::new());
        SovrinClient {
            anoncreds: AnoncredsAPI::new(command_executor.clone()),
            crypto: CryptoAPI::new(command_executor.clone()),
            sovrin: SovrinAPI::new(command_executor.clone()),
            wallet: WalletAPI::new(command_executor.clone())
        }
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    use common::SovrinIdentity;
{'fraction_non_alphanumeric': 0.12752075919335706, 'fraction_numerical': 0.0, 'mean_word_length': 3.9040697674418605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2671192', 'n_tokens_mistral': 566, 'n_tokens_neox': 553, 'n_words': 125}