<commit_before>///////////////////////////////////////////////////////////////////////////////
//
// coindb.cpp
//
// Copyright (c) 2013-2014 <NAME>
//
// All Rights Reserved.
//

#include "formatting.h"

#include <cli.hpp>

#include <odb/database.hxx>
#include <odb/transaction.hxx>

#include <Vault.h>
#include <Schema-odb.hxx>

#include <CoinCore/Base58Check.h>
#include <CoinCore/random.h>

#include <logger/logger.h>

#include <iostream>
#include <sstream>
#include <ctime>
#include <functional>

using namespace std;
using namespace odb::core;
using namespace CoinDB;

// Global operations
cli::result_t cmd_create(const cli::params_t& params)
{
    Vault vault(params[0], true);

    stringstream ss;
    ss << "Vault " << params[0] << " created.";
    return ss.str();
}

cli::result_t cmd_info(const cli::params_t& params)
{
    Vault vault(params[0], false);
    uint32_t schema_version = vault.getSchemaVersion();
    uint32_t horizon_timestamp = vault.getHorizonTimestamp();<commit_msg>Remove unnecessary include from coindb.cpp<commit_after>///////////////////////////////////////////////////////////////////////////////
//
// coindb.cpp
//
// Copyright (c) 2013-2014 <NAME>
//
// All Rights Reserved.
//

#include "formatting.h"

#include <cli.hpp>

#include <odb/database.hxx>
#include <odb/transaction.hxx>

#include <Vault.h>

#include <CoinCore/Base58Check.h>
#include <CoinCore/random.h>

#include <logger/logger.h>

#include <iostream>
#include <sstream>
#include <ctime>
#include <functional>

using namespace std;
using namespace odb::core;
using namespace CoinDB;

// Global operations
cli::result_t cmd_create(const cli::params_t& params)
{
    Vault vault(params[0], true);

    stringstream ss;
    ss << "Vault " << params[0] << " created.";
    return ss.str();
}

cli::result_t cmd_info(const cli::params_t& params)
{
    Vault vault(params[0], false);
    uint32_t schema_version = vault.getSchemaVersion();
    uint32_t horizon_timestamp = vault.getHorizonTimestamp();
{'fraction_non_alphanumeric': 0.22011005502751377, 'fraction_numerical': 0.017008504252126064, 'mean_word_length': 3.032258064516129, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 28, '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': '4603914', 'n_tokens_mistral': 687, 'n_tokens_neox': 655, 'n_words': 149}