<commit_before>#include "data.h"
#include <iostream>


void yaNC::io::SnapshotAOS::write(std::ostream&o, int i, int f)const{
  o << number << 
}<commit_msg>Implementation of write for snapshot class<commit_after>#include "data.h"
#include "particle.h"
#include <iostream>
#include <chrono>

void yaNC::io::SnapshotAOS::write(std::ostream&o, int i, int f)const{
  // std::chrono::system_clock clock();
  o << "#---------------------------------" <<'\n';
  //  o << "#Date Printed: " << clock.now().time_since_epoch() << '\n';
  o << "#Number of particles= " << number << '\n';
  o << "#Sim Time= " << time << '\n';
  o << "#Format= PosX PosY PosZ VelX VelY VelZ AccX AccY AccZ Mass Pott" << '\n';
  o << "#----------------------------------" << '\n';
  for(int j=i;j!=f; ++j)
    {
      o << particles[j].pos << ' ' <<  particles[j].vel << ' ' <<  particles[j].acc << ' ' << particles[j].mass << ' ' <<  particles[j].pot << std::endl;
	}
}
{'fraction_non_alphanumeric': 0.29605963791267303, 'fraction_numerical': 0.0, 'mean_word_length': 2.836734693877551, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7066364', 'n_tokens_mistral': 336, 'n_tokens_neox': 334, 'n_words': 77}