<commit_before>//
//  main_test.cpp
//  RosterDesNurses
//
//  Created by <NAME> on 04/03/2015.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

#include "main_test.h"
#include "ReadWrite.h"
#include "Greedy.h"
#include "MasterProblem.h"
#include "SubProblem.h"
#include "CbcModeler.h"
#include "MyTools.h"


void main_test()
{
	//testFunction_Antoine();
	testFunction_Jeremy();
	//testFunction_Samuel();
}

// Function for testing parts of the code (Antoine)
void testFunction_Antoine(){

   // Time the complete execution of the algorithm
   Tools::Timer* timertotal = new Tools::Timer();
   timertotal->init();
   timertotal->start();

   // Create a log file
   string logFile = "logs/test.log";
   Tools::LogOutput logStream(logFile);

   //Create an output file
   string outFile = "outfiles/test.out";
   Tools::LogOutput outStream(outFile);

   string data = "testdatasets/";// testdatasets datasets
   const char* inst = "n005w4";// n100w4 n030w4 n005w4
<commit_msg>AL: test<commit_after>//
//  main_test.cpp
//  RosterDesNurses
//
//  Created by <NAME> on 04/03/2015.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

#include "main_test.h"
#include "ReadWrite.h"
#include "Greedy.h"
#include "MasterProblem.h"
#include "SubProblem.h"
#include "CbcModeler.h"
#include "MyTools.h"


void main_test()
{
	testFunction_Antoine();
//	testFunction_Jeremy();
	//testFunction_Samuel();
}

// Function for testing parts of the code (Antoine)
void testFunction_Antoine(){

   // Time the complete execution of the algorithm
   Tools::Timer* timertotal = new Tools::Timer();
   timertotal->init();
   timertotal->start();

   // Create a log file
   string logFile = "logs/test.log";
   Tools::LogOutput logStream(logFile);

   //Create an output file
   string outFile = "outfiles/test.out";
   Tools::LogOutput outStream(outFile);

   string data = "testdatasets/";// testdatasets datasets
   const char* inst = "n005w4";// n100w4 n030w4 n005w4

{'fraction_non_alphanumeric': 0.14548238897396631, 'fraction_numerical': 0.02858601327207759, 'mean_word_length': 3.7804878048780486, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '2177938', 'n_tokens_mistral': 727, 'n_tokens_neox': 680, 'n_words': 175}