<commit_before>'use strict';

const Threads = require('./Thread');
const DB = require('./db');

/**
 * The Board table.
 *
 * *Note: This module is _not_ intended to be used directly; use the DAO module for all data access.*
 *
 * @module User
 * @license MIT
 * @author yamikuronue
 */

class Board {
	constructor (rowData) {
		this.data = rowData;

		//Type coersion
		this.data.ID = Number(this.data.ID);
		this.data.Adult = Boolean(this.data.Adult);

		//Canonical link
		this.Canonical = `/api/boards/${this.data.ID}`;
	}

	get ID() {
		return this.data.ID;
	}

	set ID(id) {
		this.data.ID = Number(id);
		this.Canonical = `/api/boards/${this.data.ID}`;
	}

	get Owner() {<commit_msg>chore(stability): Remove setter for board ID<commit_after>'use strict';

const Threads = require('./Thread');
const DB = require('./db');

/**
 * The Board table.
 *
 * *Note: This module is _not_ intended to be used directly; use the DAO module for all data access.*
 *
 * @module User
 * @license MIT
 * @author yamikuronue
 */

class Board {
	constructor (rowData) {
		this.data = rowData;

		//Type coersion
		this.data.ID = Number(this.data.ID);
		this.data.Adult = Boolean(this.data.Adult);

		//Canonical link
		this.Canonical = `/api/boards/${this.data.ID}`;
	}

	get ID() {
		return this.data.ID;
	}

	get Owner() {
{'fraction_non_alphanumeric': 0.1628614916286149, 'fraction_numerical': 0.0, 'mean_word_length': 3.2282958199356915, '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': '5173021', 'n_tokens_mistral': 494, 'n_tokens_neox': 470, 'n_words': 125}