<commit_before>// -*- C++ -*-

#ifndef model_h
#define model_h

#include "compiler.h"
#include "memory.h"
#include "systems.h"
#include "random.h"
#include "kdtree.h"
#include "graphics.h"
#include "bump.h"
#include "vector.h"
#include "markov.h"

struct object_t
{
  float m, l;
  float phase;
  float hue;
  float animation_time;
  unsigned starting_point;
  polyhedron_select_t target;
};

struct model_t
{
  ~model_t ();
  model_t ();

  bool initialize (uint64_t seed, int width, int height);
  void proceed ();
  void draw ();
private:
  bool set_capacity (unsigned new_capacity);
  void add_object (v4f view);

  float walls [6] [2] [4] ALIGNED16;
  float abc [system_count] [8] [4] ALIGNED16;
  float xyz [system_count] [3] [4] ALIGNED16;
  bumps_t bumps ALIGNED16;
  step_t step ALIGNED16;

  float max_radius;
  float animation_time;

  void * memory;
  object_t * objects;
  unsigned * kdtree_index;
  float (* r);      // circumradius
  float (* x) [4];  // position
  float (* v) [4];  // velocity
  float (* u) [4];  // angular position
  float (* w) [4];  // angular velocity
  float (* f) [16]; // modelview matrix
  float (* d) [4];  // diffuse colour

  unsigned capacity;
  unsigned count;
  unsigned primitive_count [system_count]; // = { 12, 24, 60, }
  std::uint32_t vao_ids [system_count];

  program_t programs [2];
  kdtree_t kdtree;
  rng_t rng;
};

#endif<commit_msg>Delete declarations of model_t::animation_time and object_t::phase.<commit_after>// -*- C++ -*-

#ifndef model_h
#define model_h

#include "compiler.h"
#include "memory.h"
#include "systems.h"
#include "random.h"
#include "kdtree.h"
#include "graphics.h"
#include "bump.h"
#include "vector.h"
#include "markov.h"

struct object_t
{
  float m, l;
  float hue;
  float animation_time;
  unsigned starting_point;
  polyhedron_select_t target;
};

struct model_t
{
  ~model_t ();
  model_t ();

  bool initialize (uint64_t seed, int width, int height);
  void proceed ();
  void draw ();
private:
  bool set_capacity (unsigned new_capacity);
  void add_object (v4f view);

  float walls [6] [2] [4] ALIGNED16;
  float abc [system_count] [8] [4] ALIGNED16;
  float xyz [system_count] [3] [4] ALIGNED16;
  bumps_t bumps ALIGNED16;
  step_t step ALIGNED16;

  float max_radius;

  void * memory;
  object_t * objects;
  unsigned * kdtree_index;
  float (* r);      // circumradius
  float (* x) [4];  // position
  float (* v) [4];  // velocity
  float (* u) [4];  // angular position
  float (* w) [4];  // angular velocity
  float (* f) [16]; // modelview matrix
  float (* d) [4];  // diffuse colour

  unsigned capacity;
  unsigned count;
  unsigned primitive_count [system_count]; // = { 12, 24, 60, }
  std::uint32_t vao_ids [system_count];

  program_t programs [2];
  kdtree_t kdtree;
  rng_t rng;
};

#endif
{'fraction_non_alphanumeric': 0.14234748483767393, 'fraction_numerical': 0.025686764181234393, 'mean_word_length': 3.5891980360065467, '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': '1814787', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1031, 'n_words': 300}