<commit_before>#ifndef FIELD_TYPE_INCLUDED
#define FIELD_TYPE_INCLUDED

#include "celltype.hpp"


namespace cells
{

  //array class
  class field {
  public:
    field(unsigned char); //constructor, log_dim è il logaritmo in base 2 del lato
                          //max log_dim = 15
    unsigned int lenght; //il numero di celle
    unsigned int index(unsigned int, unsigned int); //l'indice alla cella x,y
    unsigned int side;
    cell items; // i dati veri e propri
    inline cell* get_start_cell() { return CloneCell(&items); }; //return copy of start cell
  private:
    unsigned char log_dim;
  };

}

#endif
<commit_msg>updated field.hpp with boundaries and file procs<commit_after>#ifndef FIELD_TYPE_INCLUDED
#define FIELD_TYPE_INCLUDED

#include "celltype.hpp"


namespace cells
{

  //array class
  class field {
  public:
    field(unsigned char); //constructor, log_dim è il logaritmo in base 2 del lato
                          //max log_dim = 15
    unsigned int lenght; //il numero di celle
    unsigned int index(unsigned int, unsigned int); //l'indice alla cella x,y
    unsigned int side;

    struct {
      float xmin, xmax;
      float ymin, ymax;
    } boundaries; // i limiti della simulazione 

    cell items; // i dati veri e propri
    inline cell* get_start_cell() { return CloneCell(&items); }; //return copy of start cell

    void to_file(char*); //save this array to a file
    void from_file(char*);
  private:
    unsigned char log_dim;
  };

}

#endif

{'fraction_non_alphanumeric': 0.08835341365461848, 'fraction_numerical': 0.004016064257028112, 'mean_word_length': 2.7848101265822787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6840894', 'n_tokens_mistral': 482, 'n_tokens_neox': 467, 'n_words': 168}