<commit_before>#include "../containers/stack.h"
#include "../containers/vector.h"
#include "../algo/scan.h"
#include "../common/timer.h"

#define STRUCT_SIZE (5) 

struct my_type
{
		int array[STRUCT_SIZE];
};


struct counter 
{
	static int cnt;
	void operator()(my_type & arg)
	{
			arg.array[0] = cnt++;
	}
};
					
int counter::cnt = 0;

using namespace stxxl;

int main(int argc, char * argv[])
{
		typedef grow_shrink_stack2<stack_config_generator<my_type,1,(2*256*1024),RC> >  ext_stack_type;
		stxxl::int64 i,size = atol(argv[1])*(1024*1024*1024)/sizeof(my_type);
		write_pool<ext_stack_type::block_type> w_pool(4);
		prefetch_pool<ext_stack_type::block_type> p_pool(4);
		ext_stack_type Stack(p_pool,w_pool,0);
//		stxxl::VECTOR_GENERATOR<my_type,4,8>::result Vector;
		stxxl::timer Timer;
		
		Timer.start();
		for(i=0;i<size;i++)
		{
				my_type cur;
				cur.array[0]=int(i);
				Stack.push(cur);
//				Vector.push_back(cur);
		}<commit_msg>*** empty log message ***<commit_after>#include "../containers/stack.h"
#include "../containers/vector.h"
#include "../algo/scan.h"
#include "../common/timer.h"

#define STRUCT_SIZE (5) 

struct my_type
{
		int array[STRUCT_SIZE];
};


struct counter 
{
	static int cnt;
	void operator()(my_type & arg)
	{
			arg.array[0] = cnt++;
	}
};
					
int counter::cnt = 0;

using namespace stxxl;

int main(int argc, char * argv[])
{
		typedef grow_shrink_stack2<stack_config_generator<my_type,1,(2*256*1024),RC> >  ext_stack_type;
		stxxl::int64 i,size = atol(argv[1])*(1024*1024*1024)/sizeof(my_type);
		write_pool<ext_stack_type::block_type> w_pool(4);
		prefetch_pool<ext_stack_type::block_type> p_pool(4);
		ext_stack_type Stack(p_pool,w_pool,0);
		stxxl::timer Timer;
		
		Timer.start();
		for(i=0;i<size;i++)
		{
				my_type cur;
				cur.array[0]=int(i);
				Stack.push(cur);
		}
{'fraction_non_alphanumeric': 0.17759562841530055, 'fraction_numerical': 0.03715846994535519, 'mean_word_length': 4.599388379204893, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 12, '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': '3056823', 'n_tokens_mistral': 854, 'n_tokens_neox': 753, 'n_words': 119}