<commit_before>const guard = Symbol('EmptyRecord');
const values = Symbol('CustomValues');
const empty = () => void 0;

export default class Record {
  constructor(custom) {
    if (custom === guard) return this;

    if (!this.constructor.defaults) {
      this.constructor.defaults = new this.constructor(guard);
    }

    const defaults = this.constructor.defaults;

    for (const key in defaults) {
      Object.defineProperty(this, key, {<commit_msg>make sure you can create a record with all the defaults<commit_after>const guard = Symbol('EmptyRecord');
const values = Symbol('CustomValues');
const empty = () => void 0;

export default class Record {
  constructor(custom = {}) {
    if (custom === guard) return this;

    if (!this.constructor.defaults) {
      this.constructor.defaults = new this.constructor(guard);
    }

    const defaults = this.constructor.defaults;

    for (const key in defaults) {
      Object.defineProperty(this, key, {
{'fraction_non_alphanumeric': 0.12174817898022892, 'fraction_numerical': 0.002081165452653486, 'mean_word_length': 3.7860696517412937, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2834287', 'n_tokens_mistral': 262, 'n_tokens_neox': 254, 'n_words': 80}