<commit_before>(in-package :kit.gl.tex)

(defclass texture ()
  ((id :initform (car (gl:gen-textures 1)) :initarg :id :accessor texture-id)
   (target :initform :texture-2d :initarg :target :accessor texture-target)
   (size :initarg :size :initform nil :accessor texture-size :type kit.glm:vec3)))

(defgeneric texture-width (tex)
  (:method ((tex texture)) (with-slots (size) tex (aref size 0))))
(defgeneric texture-height (tex)
  (:method ((tex texture)) (with-slots (size) tex (aref size 1))))
(defgeneric texture-depth (tex)
  (:method ((tex texture)) (with-slots (size) tex (aref size 2))))<commit_msg>Fix improper initform conflicting with the slot's declared type, now that SBCL has stricter standard-object type checking<commit_after>(in-package :kit.gl.tex)

(defclass texture ()
  ((id :initform (car (gl:gen-textures 1)) :initarg :id :accessor texture-id)
   (target :initform :texture-2d :initarg :target :accessor texture-target)
   (size :initarg :size
         :initform (kit.glm:vec3 0.0 0.0 0.0)
         :accessor texture-size :type kit.glm:vec3)))

(defgeneric texture-width (tex)
  (:method ((tex texture)) (with-slots (size) tex (aref size 0))))
(defgeneric texture-height (tex)
  (:method ((tex texture)) (with-slots (size) tex (aref size 1))))
(defgeneric texture-depth (tex)
  (:method ((tex texture)) (with-slots (size) tex (aref size 2))))
{'fraction_non_alphanumeric': 0.15947329919531822, 'fraction_numerical': 0.013899049012435992, 'mean_word_length': 4.821276595744681, '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': '5176663', 'n_tokens_mistral': 482, 'n_tokens_neox': 460, 'n_words': 148}