<commit_before>import unittest
import numpy as np

from bokeh.properties import (
    HasProps, Int, Array, String, Enum, Float, DataSpec, ColorSpec, DashPattern
)

class Basictest(unittest.TestCase):

    def test_simple_class(self):
        class Foo(HasProps):
            x = Int(12)
            y = String("hello")
            z = Array(Int, [1, 2, 3])
            s = String(None)

        f = Foo()
        self.assertEqual(f.x, 12)
        self.assertEqual(f.y, "hello")
        self.assert_(np.array_equal(np.array([1, 2, 3]), f.z))
        self.assertEqual(f.s, None)

        f.x = 18
        self.assertEqual(f.x, 18)
<commit_msg>Fix a test in test_properties<commit_after>import unittest
import numpy as np

from bokeh.properties import (
    HasProps, Int, Array, String, Enum, Float, DataSpec, ColorSpec, DashPattern
)

class Basictest(unittest.TestCase):

    def test_simple_class(self):
        class Foo(HasProps):
            x = Int(12)
            y = String("hello")
            z = Array(Int, np.array([1, 2, 3]))
            s = String(None)

        f = Foo()
        self.assertEqual(f.x, 12)
        self.assertEqual(f.y, "hello")
        self.assert_(np.array_equal(np.array([1, 2, 3]), f.z))
        self.assertEqual(f.s, None)

        f.x = 18
        self.assertEqual(f.x, 18)

{'fraction_non_alphanumeric': 0.13206106870229006, 'fraction_numerical': 0.021374045801526718, 'mean_word_length': 2.245049504950495, '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': '4600926', 'n_tokens_mistral': 464, 'n_tokens_neox': 429, 'n_words': 106}