<commit_before>/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.0 (Serial version)
Copyright (C) 2015  GOMC Group

A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
********************************************************************************/
#include "ConsoleOutput.h"          //For spec;
#include "EnsemblePreprocessor.h"   //For BOX_TOTAL, ensemble
#include "MoveConst.h"    //For move index constants, name constants.
#include "FFConst.h"                //For density conv.
#include "System.h"                 //for init
#include "StaticVals.h"             //for init  
#include "MoleculeKind.h"           //For kind names
#include "PDBConst.h"               //For resname len.
#include "OutputVars.h"

#include <iostream>                 // for cout;

void ConsoleOutput::DoOutput(const ulong step)
{
   if (step==0)
      std::cout << "STARTING SIMULATION!!" << std::endl << std::endl;
   else 
      std::cout << "STEP " << step << " of " << totSimSteps << " ("
		<< (double)(step)/(double)(totSimSteps) * 100.0
		<< "% done)" << std::endl << std::endl;

   for (uint b = 0; b < BOX_TOTAL; b++)
      PrintBox(b, step);

   PrintSysStat();
}

void ConsoleOutput::PrintBox(const uint box, const ulong step) const
{
   std::cout << std::endl;
   std::string banner = "BOX ";<commit_msg>Step counter output has off by one error<commit_after>/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 1.0 (Serial version)
Copyright (C) 2015  GOMC Group

A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
********************************************************************************/
#include "ConsoleOutput.h"          //For spec;
#include "EnsemblePreprocessor.h"   //For BOX_TOTAL, ensemble
#include "MoveConst.h"    //For move index constants, name constants.
#include "FFConst.h"                //For density conv.
#include "System.h"                 //for init
#include "StaticVals.h"             //for init  
#include "MoleculeKind.h"           //For kind names
#include "PDBConst.h"               //For resname len.
#include "OutputVars.h"

#include <iostream>                 // for cout;

void ConsoleOutput::DoOutput(const ulong step)
{
   if (step==0)
      std::cout << "STARTING SIMULATION!!" << std::endl << std::endl;
   else 
      std::cout << "STEP " << step+1 << " of " << totSimSteps << " ("
		<< (double)(step+1)/(double)(totSimSteps) * 100.0
		<< "% done)" << std::endl << std::endl;

   for (uint b = 0; b < BOX_TOTAL; b++)
      PrintBox(b, step);

   PrintSysStat();
}

void ConsoleOutput::PrintBox(const uint box, const ulong step) const
{
   std::cout << std::endl;
   std::string banner = "BOX ";
{'fraction_non_alphanumeric': 0.24029699628754642, 'fraction_numerical': 0.008774890313871077, 'mean_word_length': 3.2222222222222223, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5134895', 'n_tokens_mistral': 920, 'n_tokens_neox': 857, 'n_words': 265}