<commit_before>#define HAS_VTK 1


#include "LaShellStatistics.h"
#include <numeric> 

/*
*      Author:
*      Dr. <NAME>
*      Department of Biomedical Engineering, King's College London
*      Email: <EMAIL> 'dot' <EMAIL>
*      Copyright (c) 2017
*
*	   This application demonstrates the LaShellStatistics class that calculates simple statistics on the 
*      the shell's scalar values 
*/
int main(int argc, char * argv[])
{
	char* input_f1, *output_f, *input_f2;

	bool foundArgs1 = false;

	int method = DO_STANDARD_STATS;

	if (argc >= 1)
	{
		for (int i = 1; i < argc; i++) {
			if (i + 1 != argc) {
				if (string(argv[i]) == "-i") {
					input_f1 = argv[i + 1];
					foundArgs1 = true;
				}

				else if (string(argv[i]) == "-m") {
					method = atoi(argv[i + 1]);

				}
				
			}

		}
	}

	if (!(foundArgs1))
	{
		cerr << "Cheeck your parameters\n\nUsage:"
			"\nCalculates ordinary statistics on the vertex values of the shell "
			
			"\n(Mandatory)\n\t-i <source_mesh_vtk> \n\t== Optional ==\n\t-m (1=Median, Mean, Std, 2=Not implemented)" << endl;
			

		exit(1);
	}
	else
	{
		LaShell* source = new LaShell(input_f1);
		
		LaShellStatistics* algorithm = new LaShellStatistics();
		algorithm->SetInputData(source);
		

		switch (method)
		{
			case DO_STANDARD_STATS:
				algorithm->SetOperationToStandardStats();
                cout << "\nOrdinary statistics:" << endl; 
				break;

			
		}

		algorithm->Update();
        
        cout << "\tMean=\t\t\t" << fixed <<  setprecision(2) << algorithm->GetOutputValue("mean") << ""
        "\n\tMedian=\t\t\t" << fixed << setprecision(2) << algorithm->GetOutputValue("median") << "" 
        "\n\tStandard Dev.=\t\t" << fixed << setprecision(2) << algorithm->GetOutputValue("std") << endl; 
	}

}<commit_msg>small change order of output<commit_after>#define HAS_VTK 1


#include "LaShellStatistics.h"
#include <numeric> 

/*
*      Author:
*      Dr. <NAME>
*      Department of Biomedical Engineering, King's College London
*      Email: <EMAIL> 'dot' <EMAIL>
*      Copyright (c) 2017
*
*	   This application demonstrates the LaShellStatistics class that calculates simple statistics on the 
*      the shell's scalar values 
*/
int main(int argc, char * argv[])
{
	char* input_f1, *output_f, *input_f2;

	bool foundArgs1 = false;

	int method = DO_STANDARD_STATS;

	if (argc >= 1)
	{
		for (int i = 1; i < argc; i++) {
			if (i + 1 != argc) {
				if (string(argv[i]) == "-i") {
					input_f1 = argv[i + 1];
					foundArgs1 = true;
				}

				else if (string(argv[i]) == "-m") {
					method = atoi(argv[i + 1]);

				}
				
			}

		}
	}

	if (!(foundArgs1))
	{
		cerr << "Cheeck your parameters\n\nUsage:"
			"\nCalculates ordinary statistics on the vertex values of the shell "
			
			"\n(Mandatory)\n\t-i <source_mesh_vtk> \n\t== Optional ==\n\t-m (1=Median, Mean, Std, 2=Not implemented)" << endl;
			

		exit(1);
	}
	else
	{
		LaShell* source = new LaShell(input_f1);
		
		LaShellStatistics* algorithm = new LaShellStatistics();
		algorithm->SetInputData(source);
		

		switch (method)
		{
			case DO_STANDARD_STATS:
				algorithm->SetOperationToStandardStats();
                cout << "\nOrdinary statistics:" << endl; 
				break;

			
		}

		algorithm->Update();
        
        cout << "\n\tMedian=\t\t\t" << fixed << setprecision(2) << algorithm->GetOutputValue("median") << "" 
        "\tMean=\t\t\t" << fixed <<  setprecision(2) << algorithm->GetOutputValue("mean") << ""
        "\n\tStandard Dev.=\t\t" << fixed << setprecision(2) << algorithm->GetOutputValue("std") << endl; 
	}

}
{'fraction_non_alphanumeric': 0.16204093075413512, 'fraction_numerical': 0.012895991028875805, 'mean_word_length': 2.807897545357524, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 27, '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': '1975628', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1235, 'n_words': 300}