<commit_before>#ifndef GUARD_session_hpp
#define GUARD_session_hpp

#include <sqlite3.h>
#include <iostream>

namespace phatbooks
{

class Session
{
public:
	/**
	 * Starts a Phatbooks user session.
	 * Initializes SQLite3 (but does not create database
	 * connection).
	 */
	Session();

	/**
	 * Ends a Phatbooks user session.
	 * Shuts down SQLite3. (It is assumed that there are no
	 * open connections at this point.)
	 */
	~Session();

private:

};


inline Session::Session()
{
	std::clog << "Creating session..." << std::endl;
	sqlite3_initialize();
	std::clog << "SQLite3 has been initialized." << std::endl;
}

inline Session::~Session()
{
	std::clog << "Destroying session..." << std::endl;
	sqlite3_shutdown();
	std::clog << "SQLite3 has been shut down." << std::endl;
}


}  // namespace phatbooks

#endif  // GUARD_session_hpp
<commit_msg>Made Session noncopyable.<commit_after>#ifndef GUARD_session_hpp
#define GUARD_session_hpp

#include <sqlite3.h>
#include <boost/utility.hpp>
#include <iostream>

namespace phatbooks
{

class Session
{
public:
	/**
	 * Starts a Phatbooks user session.
	 * Initializes SQLite3 (but does not create database
	 * connection).
	 */
	Session();

	/**
	 * Ends a Phatbooks user session.
	 * Shuts down SQLite3. (It is assumed that there are no
	 * open connections at this point.)
	 */
	~Session();

private:

};


inline Session::Session()
{
	std::clog << "Creating session..." << std::endl;
	sqlite3_initialize();
	std::clog << "SQLite3 has been initialized." << std::endl;
}

inline Session::~Session()
{
	std::clog << "Destroying session..." << std::endl;
	sqlite3_shutdown();
	std::clog << "SQLite3 has been shut down." << std::endl;
}


}  // namespace phatbooks

#endif  // GUARD_session_hpp

{'fraction_non_alphanumeric': 0.1489971346704871, 'fraction_numerical': 0.008022922636103151, 'mean_word_length': 4.017241379310345, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 8, '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': '1395993', 'n_tokens_mistral': 619, 'n_tokens_neox': 589, 'n_words': 164}