<commit_before>
#pragma once

#include "exceptions.hh"

template <typename ELEMENT>
class FixedVector {
public:
  FixedVector(int capacity) throw(ArgumentException) {
    if (capacity <= 0)
      throw ArgumentException("capacity must be positive");

    _capacity = capacity;
    _array = new ELEMENT[_capacity];
  }

  ~FixedVector() {
    delete [] _array;
  }

  int capacity() { return _capacity; }

  ELEMENT get(int index) {
    check_index(index);
    return _array[index];
  }<commit_msg>whitespace formatting<commit_after>
#pragma once

#include "exceptions.hh"

template <typename ELEMENT>
class FixedVector {
public:
  FixedVector(int capacity) throw(ArgumentException) {
    if (capacity <= 0)
      throw ArgumentException("capacity must be positive");

    _capacity = capacity;
    _array = new ELEMENT[_capacity];
  }

  ~FixedVector() {
    delete [] _array;
  }

  int capacity() {
    return _capacity;
  }

  ELEMENT get(int index) {
    check_index(index);
    return _array[index];
  }
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.001984126984126984, 'mean_word_length': 3.7149532710280373, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '2044638', 'n_tokens_mistral': 321, 'n_tokens_neox': 306, 'n_words': 81}