<commit_before>(import unittest)
(import [koan [Koan __ ___ ____ _____]])


(defclass Basics [Koan] [

   [test-1-assert-truth
    (fn [self]
      "We shall contemplate truth by testing reality, via asserts."
      (self.assertTrue (= ____ True)))]

   [test-2-assert-with-message
     (fn [self]
       "Enlightenment may be more easily achieved with appropriate messages."
       (self.assertTrue (= ____ True) "This should be True, fix it!"))]

   [test-3-assert-fill-in-values
     (fn [self]
       "Sometimes we will ask you to fill in the values"
       (self.assertEqual __ (+ 1 1)))]

   [test-4-assert-equality
     (fn [self]
       "To understand reality, we must compare our expectations against reality."
       (setv expected-value __)
       (setv actual-value (+ 1 1))
       (self.assertTrue (= expected-value actual-value)))]

   [test-5-a-better-way-of-asserting-equality
     (fn [self]
       "Some ways of asserting equality are better than others."
       (setv expected-value __)
       (setv actual-value (+ 1 1))
       (self.assertEqual expected-value actual-value))]

   [test-6-that-unittest-asserts-work-the-same-way-as-python-asserts
     (fn [self]
       "Understand what lies within"
       (assert false))]

;   Hy does not seem to like __magic__ methods on primitives
;
;   [test-7-that-sometimes-we-need-to-know-the-class-type
;     (fn [self]
;       "What is in a class name?"
;       (self.assertEqual __ "naval".__class__))]

   ])
<commit_msg>Bug Fix: fixed magic method access on primitive<commit_after>(import unittest)
(import [koan [Koan __ ___ ____ _____]])


(defclass Basics [Koan] [

   [test-1-assert-truth
    (fn [self]
      "We shall contemplate truth by testing reality, via asserts."
      (self.assertTrue (= ____ True)))]

   [test-2-assert-with-message
     (fn [self]
       "Enlightenment may be more easily achieved with appropriate messages."
       (self.assertTrue (= ____ True) "This should be True, fix it!"))]

   [test-3-assert-fill-in-values
     (fn [self]
       "Sometimes we will ask you to fill in the values"
       (self.assertEqual __ (+ 1 1)))]

   [test-4-assert-equality
     (fn [self]
       "To understand reality, we must compare our expectations against reality."
       (setv expected-value __)
       (setv actual-value (+ 1 1))
       (self.assertTrue (= expected-value actual-value)))]

   [test-5-a-better-way-of-asserting-equality
     (fn [self]
       "Some ways of asserting equality are better than others."
       (setv expected-value __)
       (setv actual-value (+ 1 1))
       (self.assertEqual expected-value actual-value))]

   [test-6-that-unittest-asserts-work-the-same-way-as-python-asserts
     (fn [self]
       "Understand what lies within"
       (assert false))]

   [test-7-that-sometimes-we-need-to-know-the-class-type
     (fn [self]
       "What is in a class name?"
       (self.assertEqual __ (. "naval" __class__)))]

   ])

{'fraction_non_alphanumeric': 0.12801358234295415, 'fraction_numerical': 0.008828522920203734, 'mean_word_length': 2.637037037037037, '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': '5728238', 'n_tokens_mistral': 982, 'n_tokens_neox': 926, 'n_words': 260}