<commit_before>(defpackage #:perfect-numbers
  (:use #:common-lisp)
  (:export #:classify))

(in-package #:perfect-numbers)

(defun divisors (n)
  (remove-if-not (lambda (x) (= 0 (rem n x)))
                 (loop for x from 1 to (floor n 2) collect x)))

(defun classify (n)
  (cond ((< n 1)                         (warn "Just defined for natural numbers".))
        ((= n (apply #'+ (divisors n)))  "perfect")
        ((< n (apply #'+ (divisors n)))  "abundant")
        (T                               "deficient")))<commit_msg>Update example.lisp<commit_after>(defpackage #:perfect-numbers
  (:use #:common-lisp)
  (:export #:classify))

(in-package #:perfect-numbers)

(defun divisors (n)
  (remove-if-not (lambda (x) (= 0 (rem n x)))
                 (loop for x from 1 to (floor n 2) collect x)))

(defun classify (n)
  (cond ((< n 1)                         (warn "Just defined for natural numbers"))
        ((= n (apply #'+ (divisors n)))  "perfect")
        ((< n (apply #'+ (divisors n)))  "abundant")
        (T                               "deficient")))
{'fraction_non_alphanumeric': 0.17553688141923435, 'fraction_numerical': 0.007469654528478058, 'mean_word_length': 2.0804597701149423, 'pattern_counts': {'":': 0, '<': 7, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6329844', 'n_tokens_mistral': 380, 'n_tokens_neox': 349, 'n_words': 106}