{
    "file_diffs": [
        {
            "old_file_content": "from itertools import count\nimport time\nimport os\nimport unittest\nfrom unittest.mock import Mock\nimport warnings\n\nimport numpy as np\nimport scipy.sparse as sp\n\nfrom Orange.util import export_globals, flatten, deprecated, try_, deepgetattr, \\\n    OrangeDeprecationWarning, nan_eq, nan_hash_stand, Registry, namegen\nfrom Orange.data.util import vstack, hstack, array_equal\nfrom Orange.statistics.util import stats\nfrom Orange.tests.test_statistics import dense_sparse\nfrom Orange.util import wrap_callback, get_entry_point, allot\n\nSOMETHING = 0xf00babe\n\n\nclass TestUtil(unittest.TestCase):\n    def test_get_entry_point(self):\n        # pylint: disable=import-outside-toplevel\n        from Orange.canvas.__main__ import main as real_main\n        main = get_entry_point(\"Orange3\", \"gui_scripts\", \"orange-canvas\")\n        self.assertIs(main, real_main)\n\n    def test_export_globals(self):\n        self.assertEqual(sorted(export_globals(globals(), __name__)),\n                         ['SOMETHING', 'TestAllot', 'TestUtil'])\n\n    def test_flatten(self):\n        self.assertEqual(list(flatten([[1, 2], [3]])), [1, 2, 3])\n\n    def test_deprecated(self):\n        @deprecated\n        def identity(x):\n            return x\n\n        with self.assertWarns(DeprecationWarning) as cm:\n            x = identity(10)\n        self.assertEqual(x, 10)\n        self.assertTrue('deprecated' in cm.warning.args[0])\n        self.assertTrue('identity' in cm.warning.args[0])\n\n    def test_try_(self):\n        self.assertTrue(try_(lambda: np.ones(3).any()))\n        self.assertFalse(try_(lambda: 1 / 0))\n        self.assertEqual(try_(len, default=SOMETHING), SOMETHING)\n\n    def test_reprable(self):\n        # pylint: disable=import-outside-toplevel\n        from Orange.data import ContinuousVariable\n        from Orange.preprocess.impute import ReplaceUnknownsRandom\n        from Orange.statistics.distribution import Continuous\n        from Orange.classification import LogisticRegressionLearner\n\n        var = ContinuousVariable('x')\n        transform = ReplaceUnknownsRandom(var, Continuous(1, var))\n\n        self.assertEqual(repr(transform).replace('\\n', '').replace(' ', ''),\n                         \"ReplaceUnknownsRandom(\"\n                         \"variable=ContinuousVariable(name='x',number_of_decimals=3),\"\n                         \"distribution=Continuous([[0.],[0.]]))\")\n\n        # GH 2275\n        logit = LogisticRegressionLearner()\n        for _ in range(2):\n            self.assertEqual(repr(logit), 'LogisticRegressionLearner()')\n\n    def test_deepgetattr(self):\n        class a:  # pylint: disable=invalid-name\n            l = []\n        self.assertTrue(deepgetattr(a, 'l.__len__.__call__'), a.l.__len__.__call__)\n        self.assertTrue(deepgetattr(a, 'l.__nx__.__x__', 42), 42)\n        self.assertRaises(AttributeError, lambda: deepgetattr(a, 'l.__nx__.__x__'))\n\n    def test_nan_eq(self):\n        self.assertTrue(nan_eq(float(\"nan\"), float(\"nan\")))\n        self.assertTrue(nan_eq(1, 1.0))\n        self.assertFalse(nan_eq(float(\"nan\"), 1))\n        self.assertFalse(nan_eq(1, float(\"nan\")))\n        self.assertFalse(nan_eq(float(\"inf\"), float(\"nan\")))\n        self.assertFalse(nan_eq(float(\"nan\"), float(\"inf\")))\n        self.assertFalse(nan_eq(1, 2))\n        self.assertFalse(nan_eq(None, 2))\n        self.assertFalse(nan_eq(2, None))\n\n    def test_nan_hash_stand(self):\n        self.assertEqual(hash(nan_hash_stand(float(\"nan\"))),\n                         hash(nan_hash_stand(float(\"nan\"))))\n\n    def test_vstack(self):\n        numpy = np.array([[1., 2.], [3., 4.]])\n        csr = sp.csr_matrix(numpy)\n        csc = sp.csc_matrix(numpy)\n\n        self.assertCorrectArrayType(\n            vstack([numpy, numpy]),\n            shape=(4, 2), sparsity=\"dense\")\n        self.assertCorrectArrayType(\n            vstack([csr, numpy]),\n            shape=(4, 2), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            vstack([numpy, csc]),\n            shape=(4, 2), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            vstack([csc, csr]),\n            shape=(4, 2), sparsity=\"sparse\")\n\n    def test_hstack(self):\n        numpy = np.array([[1., 2.], [3., 4.]])\n        csr = sp.csr_matrix(numpy)\n        csc = sp.csc_matrix(numpy)\n\n        self.assertCorrectArrayType(\n            hstack([numpy, numpy]),\n            shape=(2, 4), sparsity=\"dense\")\n        self.assertCorrectArrayType(\n            hstack([csr, numpy]),\n            shape=(2, 4), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            hstack([numpy, csc]),\n            shape=(2, 4), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            hstack([csc, csr]),\n            shape=(2, 4), sparsity=\"sparse\")\n\n    def assertCorrectArrayType(self, array, shape, sparsity):\n        self.assertEqual(array.shape, shape)\n        self.assertEqual([\"dense\", \"sparse\"][sp.issparse(array)], sparsity)\n\n    @unittest.skipUnless(os.environ.get('ORANGE_DEPRECATIONS_ERROR'),\n                         'ORANGE_DEPRECATIONS_ERROR not set')\n    def test_raise_deprecations(self):\n        with self.assertRaises(OrangeDeprecationWarning):\n            warnings.warn('foo', OrangeDeprecationWarning)\n\n    def test_stats_sparse(self):\n        # pylint: disable=import-outside-toplevel\n        from Orange.data import Table\n        data = Table(\"iris\")\n        sparse_x = sp.csr_matrix(data.X)\n        self.assertTrue(stats(data.X).all() == stats(sparse_x).all())\n\n    @dense_sparse\n    def test_array_equal(self, array):\n        a1 = array([[0., 2.], [3., np.nan]])\n        a2 = array([[0., 2.], [3., np.nan]])\n        self.assertTrue(array_equal(a1, a2))\n\n        a3 = np.array([[0., 2.], [3., np.nan]])\n        self.assertTrue(array_equal(a1, a3))\n        self.assertTrue(array_equal(a3, a1))\n\n    @dense_sparse\n    def test_array_not_equal(self, array):\n        a1 = array([[0., 2.], [3., np.nan]])\n        a2 = array([[0., 2.], [4., np.nan]])\n        self.assertFalse(array_equal(a1, a2))\n\n        a3 = array([[0., 2.], [3., np.nan], [4., 5.]])\n        self.assertFalse(array_equal(a1, a3))\n\n    def test_csc_array_equal(self):\n        a1 = sp.csc_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        a2 = sp.csc_matrix(([5, 1, 4], ([1, 0, 0], [2, 0, 2])), shape=(2, 3))\n        with warnings.catch_warnings():\n            # this is just inefficiency in tests, not the tested code\n            warnings.filterwarnings(\"ignore\", \".*\", sp.SparseEfficiencyWarning)\n            a2[0, 1] = 0  # explicitly setting to 0\n        self.assertTrue(array_equal(a1, a2))\n\n    def test_csc_scr_equal(self):\n        a1 = sp.csc_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        a2 = sp.csr_matrix(([5, 1, 4], ([1, 0, 0], [2, 0, 2])), shape=(2, 3))\n        self.assertTrue(array_equal(a1, a2))\n\n        a1 = sp.csc_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        a2 = sp.csr_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        self.assertTrue(array_equal(a1, a2))\n\n    def test_csc_unordered_array_equal(self):\n        a1 = sp.csc_matrix(([1, 4, 5], [0, 0, 1], [0, 1, 1, 3]), shape=(2, 3))\n        a2 = sp.csc_matrix(([1, 5, 4], [0, 1, 0], [0, 1, 1, 3]), shape=(2, 3))\n        self.assertTrue(array_equal(a1, a2))\n\n    def test_wrap_callback(self):\n        def func(i):\n            return i\n\n        f = wrap_callback(func, start=0, end=0.8)\n        self.assertEqual(f(0), 0)\n        self.assertEqual(round(f(0.1), 2), 0.08)\n        self.assertEqual(f(1), 0.8)\n\n        f = wrap_callback(func, start=0.1, end=0.8)\n        self.assertEqual(f(0), 0.1)\n        self.assertEqual(f(0.1), 0.17)\n        self.assertEqual(f(1), 0.8)\n\n    def test_registry(self):\n        # pylint: disable=invalid-name, unused-variable\n        class A(metaclass=Registry):\n            pass\n\n        class BBB(A):\n            pass\n\n        class CC(A):\n            pass\n\n        class DDDD(BBB):\n            pass\n\n        self.assertEqual(set(A), {\"BBB\", \"CC\", \"DDDD\"})\n        self.assertEqual(str(A), \"A({BBB, CC, DDDD})\")\n\n        class D(metaclass=Registry):\n            pass\n\n        self.assertEqual(set(A), {\"BBB\", \"CC\", \"DDDD\"})\n        self.assertEqual(str(A), \"A({BBB, CC, DDDD})\")\n        self.assertEqual(set(D), set())\n        self.assertEqual(str(D), \"D({})\")\n\n        class E(D):\n            pass\n\n        self.assertEqual(set(A), {\"BBB\", \"CC\", \"DDDD\"})\n        self.assertEqual(str(A), \"A({BBB, CC, DDDD})\")\n        self.assertEqual(set(D), set(\"E\"))\n        self.assertEqual(str(D), \"D({E})\")\n\n    def test_namegen(self):\n        self.assertEqual([name for name, _ in zip(namegen(), range(3))],\n                         [\"_0\", \"_1\", \"_2\"])\n\n        self.assertEqual([name for name, _ in zip(namegen(\"foo \"), range(3))],\n                         [\"foo 0\", \"foo 1\", \"foo 2\"])\n\n        self.assertEqual([name for name, _ in zip(namegen(\"foo \", 2, spec_count=count), range(3))],\n                         [\"foo 2\", \"foo 3\", \"foo 4\"])\n\n\nclass TestAllot(unittest.TestCase):\n    # names of functions within tests don't matter, pylint: disable=invalid-name\n    def test_duration(self):\n        @allot\n        def f(x, y):\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n    def test_skipping(self):\n        uf = Mock()\n\n        @allot(0.5)\n        def f(x, y):\n            uf()\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        uf.assert_called_once()\n        uf.reset_mock()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        f(5, y=6)\n        uf.assert_not_called()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        time.sleep(0.35)\n        f(5, y=6)\n        uf.assert_called_once()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot(0.5)\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a2 = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        a.f(7, y=8)\n        self.assertEqual(a.x, 5)  # no call, `a` is unchanged\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        time.sleep(0.35)\n        a.f(9, y=10)\n        a2.f(11, y=12)\n        self.assertEqual(a.x, 9)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        # a2.f is not being skipped because of a.f - bound methods for different\n        # instance are separate\n        self.assertEqual(a2.x, 11)\n\n        # forced calls work\n        a.f.call(11, 12)\n        self.assertEqual(a.x, 11)\n\n        # forced calls block later non-forced calls\n        a = A()\n        a.f.call(13, y=14)\n        self.assertEqual(a.x, 13)\n        a.f(15, y=16)\n        self.assertEqual(a.x, 13)\n\n    def test_overflow(self):\n        uf = Mock()\n        of = Mock(return_value=13)\n\n        @allot(0.1, overflow=of)\n        def f(*_, **__):\n            uf()\n            time.sleep(0.1)\n            return 42\n\n        self.assertEqual(f(5, y=6), 42)\n        uf.assert_called()\n        uf.reset_mock()\n        of.assert_not_called()\n\n        self.assertEqual(f(7, y=8), 13)\n        uf.assert_not_called()\n        of.assert_called_with(7, y=8)\n\n    def test_assert_no_result(self):\n        # pylint: disable=function-redefined\n        @allot(0.1)\n        def f():\n            return 42\n\n        self.assertRaises(AssertionError, f)\n\n        @allot(0.05, overflow=lambda x: 3 * x)\n        def f(x):\n            time.sleep(0.6)\n            return 2 * x\n\n        self.assertEqual(f(3), 6)\n        self.assertEqual(f(3), 9)\n\n        @allot\n        def f():\n            return 42\n\n        self.assertEqual(f(), 42)\n\n    def test_assertion(self):\n        self.assertRaises(AssertionError, allot, \"foo\")\n        self.assertRaises(AssertionError, allot, 0.0)\n        self.assertRaises(AssertionError, allot, -1.0)\n\n    def test_getter(self):\n        class A:\n            @allot\n            def f(self):\n                pass\n\n        # getter for class must not do anything with the method\n        self.assertIs(A.f, A.__dict__[\"f\"])\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
            "new_file_content": "from itertools import count\nimport time\nimport os\nimport unittest\nfrom unittest.mock import Mock, patch\nimport warnings\n\nimport numpy as np\nimport scipy.sparse as sp\n\nfrom Orange.util import export_globals, flatten, deprecated, try_, deepgetattr, \\\n    OrangeDeprecationWarning, nan_eq, nan_hash_stand, Registry, namegen\nfrom Orange.data.util import vstack, hstack, array_equal\nfrom Orange.statistics.util import stats\nfrom Orange.tests.test_statistics import dense_sparse\nfrom Orange.util import wrap_callback, get_entry_point, allot\n\nSOMETHING = 0xf00babe\n\n\nclass TestUtil(unittest.TestCase):\n    def test_get_entry_point(self):\n        # pylint: disable=import-outside-toplevel\n        from Orange.canvas.__main__ import main as real_main\n        main = get_entry_point(\"Orange3\", \"gui_scripts\", \"orange-canvas\")\n        self.assertIs(main, real_main)\n\n    def test_export_globals(self):\n        self.assertEqual(sorted(export_globals(globals(), __name__)),\n                         ['SOMETHING', 'TestAllot', 'TestUtil'])\n\n    def test_flatten(self):\n        self.assertEqual(list(flatten([[1, 2], [3]])), [1, 2, 3])\n\n    def test_deprecated(self):\n        @deprecated\n        def identity(x):\n            return x\n\n        with self.assertWarns(DeprecationWarning) as cm:\n            x = identity(10)\n        self.assertEqual(x, 10)\n        self.assertTrue('deprecated' in cm.warning.args[0])\n        self.assertTrue('identity' in cm.warning.args[0])\n\n    def test_try_(self):\n        self.assertTrue(try_(lambda: np.ones(3).any()))\n        self.assertFalse(try_(lambda: 1 / 0))\n        self.assertEqual(try_(len, default=SOMETHING), SOMETHING)\n\n    def test_reprable(self):\n        # pylint: disable=import-outside-toplevel\n        from Orange.data import ContinuousVariable\n        from Orange.preprocess.impute import ReplaceUnknownsRandom\n        from Orange.statistics.distribution import Continuous\n        from Orange.classification import LogisticRegressionLearner\n\n        var = ContinuousVariable('x')\n        transform = ReplaceUnknownsRandom(var, Continuous(1, var))\n\n        self.assertEqual(repr(transform).replace('\\n', '').replace(' ', ''),\n                         \"ReplaceUnknownsRandom(\"\n                         \"variable=ContinuousVariable(name='x',number_of_decimals=3),\"\n                         \"distribution=Continuous([[0.],[0.]]))\")\n\n        # GH 2275\n        logit = LogisticRegressionLearner()\n        for _ in range(2):\n            self.assertEqual(repr(logit), 'LogisticRegressionLearner()')\n\n    def test_deepgetattr(self):\n        class a:  # pylint: disable=invalid-name\n            l = []\n        self.assertTrue(deepgetattr(a, 'l.__len__.__call__'), a.l.__len__.__call__)\n        self.assertTrue(deepgetattr(a, 'l.__nx__.__x__', 42), 42)\n        self.assertRaises(AttributeError, lambda: deepgetattr(a, 'l.__nx__.__x__'))\n\n    def test_nan_eq(self):\n        self.assertTrue(nan_eq(float(\"nan\"), float(\"nan\")))\n        self.assertTrue(nan_eq(1, 1.0))\n        self.assertFalse(nan_eq(float(\"nan\"), 1))\n        self.assertFalse(nan_eq(1, float(\"nan\")))\n        self.assertFalse(nan_eq(float(\"inf\"), float(\"nan\")))\n        self.assertFalse(nan_eq(float(\"nan\"), float(\"inf\")))\n        self.assertFalse(nan_eq(1, 2))\n        self.assertFalse(nan_eq(None, 2))\n        self.assertFalse(nan_eq(2, None))\n\n    def test_nan_hash_stand(self):\n        self.assertEqual(hash(nan_hash_stand(float(\"nan\"))),\n                         hash(nan_hash_stand(float(\"nan\"))))\n\n    def test_vstack(self):\n        numpy = np.array([[1., 2.], [3., 4.]])\n        csr = sp.csr_matrix(numpy)\n        csc = sp.csc_matrix(numpy)\n\n        self.assertCorrectArrayType(\n            vstack([numpy, numpy]),\n            shape=(4, 2), sparsity=\"dense\")\n        self.assertCorrectArrayType(\n            vstack([csr, numpy]),\n            shape=(4, 2), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            vstack([numpy, csc]),\n            shape=(4, 2), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            vstack([csc, csr]),\n            shape=(4, 2), sparsity=\"sparse\")\n\n    def test_hstack(self):\n        numpy = np.array([[1., 2.], [3., 4.]])\n        csr = sp.csr_matrix(numpy)\n        csc = sp.csc_matrix(numpy)\n\n        self.assertCorrectArrayType(\n            hstack([numpy, numpy]),\n            shape=(2, 4), sparsity=\"dense\")\n        self.assertCorrectArrayType(\n            hstack([csr, numpy]),\n            shape=(2, 4), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            hstack([numpy, csc]),\n            shape=(2, 4), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            hstack([csc, csr]),\n            shape=(2, 4), sparsity=\"sparse\")\n\n    def assertCorrectArrayType(self, array, shape, sparsity):\n        self.assertEqual(array.shape, shape)\n        self.assertEqual([\"dense\", \"sparse\"][sp.issparse(array)], sparsity)\n\n    @unittest.skipUnless(os.environ.get('ORANGE_DEPRECATIONS_ERROR'),\n                         'ORANGE_DEPRECATIONS_ERROR not set')\n    def test_raise_deprecations(self):\n        with self.assertRaises(OrangeDeprecationWarning):\n            warnings.warn('foo', OrangeDeprecationWarning)\n\n    def test_stats_sparse(self):\n        # pylint: disable=import-outside-toplevel\n        from Orange.data import Table\n        data = Table(\"iris\")\n        sparse_x = sp.csr_matrix(data.X)\n        self.assertTrue(stats(data.X).all() == stats(sparse_x).all())\n\n    @dense_sparse\n    def test_array_equal(self, array):\n        a1 = array([[0., 2.], [3., np.nan]])\n        a2 = array([[0., 2.], [3., np.nan]])\n        self.assertTrue(array_equal(a1, a2))\n\n        a3 = np.array([[0., 2.], [3., np.nan]])\n        self.assertTrue(array_equal(a1, a3))\n        self.assertTrue(array_equal(a3, a1))\n\n    @dense_sparse\n    def test_array_not_equal(self, array):\n        a1 = array([[0., 2.], [3., np.nan]])\n        a2 = array([[0., 2.], [4., np.nan]])\n        self.assertFalse(array_equal(a1, a2))\n\n        a3 = array([[0., 2.], [3., np.nan], [4., 5.]])\n        self.assertFalse(array_equal(a1, a3))\n\n    def test_csc_array_equal(self):\n        a1 = sp.csc_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        a2 = sp.csc_matrix(([5, 1, 4], ([1, 0, 0], [2, 0, 2])), shape=(2, 3))\n        with warnings.catch_warnings():\n            # this is just inefficiency in tests, not the tested code\n            warnings.filterwarnings(\"ignore\", \".*\", sp.SparseEfficiencyWarning)\n            a2[0, 1] = 0  # explicitly setting to 0\n        self.assertTrue(array_equal(a1, a2))\n\n    def test_csc_scr_equal(self):\n        a1 = sp.csc_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        a2 = sp.csr_matrix(([5, 1, 4], ([1, 0, 0], [2, 0, 2])), shape=(2, 3))\n        self.assertTrue(array_equal(a1, a2))\n\n        a1 = sp.csc_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        a2 = sp.csr_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        self.assertTrue(array_equal(a1, a2))\n\n    def test_csc_unordered_array_equal(self):\n        a1 = sp.csc_matrix(([1, 4, 5], [0, 0, 1], [0, 1, 1, 3]), shape=(2, 3))\n        a2 = sp.csc_matrix(([1, 5, 4], [0, 1, 0], [0, 1, 1, 3]), shape=(2, 3))\n        self.assertTrue(array_equal(a1, a2))\n\n    def test_wrap_callback(self):\n        def func(i):\n            return i\n\n        f = wrap_callback(func, start=0, end=0.8)\n        self.assertEqual(f(0), 0)\n        self.assertEqual(round(f(0.1), 2), 0.08)\n        self.assertEqual(f(1), 0.8)\n\n        f = wrap_callback(func, start=0.1, end=0.8)\n        self.assertEqual(f(0), 0.1)\n        self.assertEqual(f(0.1), 0.17)\n        self.assertEqual(f(1), 0.8)\n\n    def test_registry(self):\n        # pylint: disable=invalid-name, unused-variable\n        class A(metaclass=Registry):\n            pass\n\n        class BBB(A):\n            pass\n\n        class CC(A):\n            pass\n\n        class DDDD(BBB):\n            pass\n\n        self.assertEqual(set(A), {\"BBB\", \"CC\", \"DDDD\"})\n        self.assertEqual(str(A), \"A({BBB, CC, DDDD})\")\n\n        class D(metaclass=Registry):\n            pass\n\n        self.assertEqual(set(A), {\"BBB\", \"CC\", \"DDDD\"})\n        self.assertEqual(str(A), \"A({BBB, CC, DDDD})\")\n        self.assertEqual(set(D), set())\n        self.assertEqual(str(D), \"D({})\")\n\n        class E(D):\n            pass\n\n        self.assertEqual(set(A), {\"BBB\", \"CC\", \"DDDD\"})\n        self.assertEqual(str(A), \"A({BBB, CC, DDDD})\")\n        self.assertEqual(set(D), set(\"E\"))\n        self.assertEqual(str(D), \"D({E})\")\n\n    def test_namegen(self):\n        self.assertEqual([name for name, _ in zip(namegen(), range(3))],\n                         [\"_0\", \"_1\", \"_2\"])\n\n        self.assertEqual([name for name, _ in zip(namegen(\"foo \"), range(3))],\n                         [\"foo 0\", \"foo 1\", \"foo 2\"])\n\n        self.assertEqual([name for name, _ in zip(namegen(\"foo \", 2, spec_count=count), range(3))],\n                         [\"foo 2\", \"foo 3\", \"foo 4\"])\n\n\nclass TestAllot(unittest.TestCase):\n    # names of functions within tests don't matter, pylint: disable=invalid-name\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n        patcher.start()\n        self.addCleanup(patcher.stop)\n\n    def test_duration(self):\n        @allot\n        def f(x, y):\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n    def test_skipping(self):\n        uf = Mock()\n\n        @allot(0.5)\n        def f(x, y):\n            uf()\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        uf.assert_called_once()\n        uf.reset_mock()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        f(5, y=6)\n        uf.assert_not_called()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        time.sleep(0.35)\n        f(5, y=6)\n        uf.assert_called_once()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot(0.5)\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a2 = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        a.f(7, y=8)\n        self.assertEqual(a.x, 5)  # no call, `a` is unchanged\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        time.sleep(0.35)\n        a.f(9, y=10)\n        a2.f(11, y=12)\n        self.assertEqual(a.x, 9)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        # a2.f is not being skipped because of a.f - bound methods for different\n        # instance are separate\n        self.assertEqual(a2.x, 11)\n\n        # forced calls work\n        a.f.call(11, 12)\n        self.assertEqual(a.x, 11)\n\n        # forced calls block later non-forced calls\n        a = A()\n        a.f.call(13, y=14)\n        self.assertEqual(a.x, 13)\n        a.f(15, y=16)\n        self.assertEqual(a.x, 13)\n\n    def test_overflow(self):\n        uf = Mock()\n        of = Mock(return_value=13)\n\n        @allot(0.1, overflow=of)\n        def f(*_, **__):\n            uf()\n            time.sleep(0.1)\n            return 42\n\n        self.assertEqual(f(5, y=6), 42)\n        uf.assert_called()\n        uf.reset_mock()\n        of.assert_not_called()\n\n        self.assertEqual(f(7, y=8), 13)\n        uf.assert_not_called()\n        of.assert_called_with(7, y=8)\n\n    def test_assert_no_result(self):\n        # pylint: disable=function-redefined\n        @allot(0.1)\n        def f():\n            return 42\n\n        self.assertRaises(AssertionError, f)\n\n        @allot(0.05, overflow=lambda x: 3 * x)\n        def f(x):\n            time.sleep(0.6)\n            return 2 * x\n\n        self.assertEqual(f(3), 6)\n        self.assertEqual(f(3), 9)\n\n        @allot\n        def f():\n            return 42\n\n        self.assertEqual(f(), 42)\n\n    def test_assertion(self):\n        self.assertRaises(AssertionError, allot, \"foo\")\n        self.assertRaises(AssertionError, allot, 0.0)\n        self.assertRaises(AssertionError, allot, -1.0)\n\n    def test_getter(self):\n        class A:\n            @allot\n            def f(self):\n                pass\n\n        # getter for class must not do anything with the method\n        self.assertIs(A.f, A.__dict__[\"f\"])\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n",
            "header": {
                "file": {
                    "path": "Orange/tests/test_util.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "43e70bc53",
                "new_commit_hash": "ae0c9d336",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/tests/test_util.py"
            },
            "plus_file": {
                "path": "b/Orange/tests/test_util.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 2,
                            "length": 7
                        },
                        "new_range": {
                            "start": 2,
                            "length": 7
                        },
                        "section": "from itertools import count"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "import time",
                                "type": "context"
                            },
                            {
                                "content": "import os",
                                "type": "context"
                            },
                            {
                                "content": "import unittest",
                                "type": "context"
                            },
                            {
                                "content": "from unittest.mock import Mock",
                                "type": "deleted"
                            },
                            {
                                "content": "from unittest.mock import Mock, patch",
                                "type": "added"
                            },
                            {
                                "content": "import warnings",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "import numpy as np",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [],
                    "added_entities": [
                        {
                            "file_name": "Orange/tests/test_util.py",
                            "type": "statement",
                            "name": "",
                            "content": "from unittest.mock import Mock, patch",
                            "ast_type_str": "ImportFrom",
                            "start_lineno": 5,
                            "end_lineno": 5,
                            "parent": null
                        }
                    ],
                    "deleted_entities": [
                        {
                            "file_name": "Orange/tests/test_util.py",
                            "type": "statement",
                            "name": "",
                            "content": "from unittest.mock import Mock",
                            "ast_type_str": "ImportFrom",
                            "start_lineno": 5,
                            "end_lineno": 5,
                            "parent": null
                        }
                    ]
                },
                {
                    "descriptor": {
                        "old_range": {
                            "start": 245,
                            "length": 6
                        },
                        "new_range": {
                            "start": 245,
                            "length": 14
                        },
                        "section": "class TestUtil(unittest.TestCase):"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "class TestAllot(unittest.TestCase):",
                                "type": "context"
                            },
                            {
                                "content": "    # names of functions within tests don't matter, pylint: disable=invalid-name",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "    def setUp(self):",
                                "type": "added"
                            },
                            {
                                "content": "        # patch the object to user perf_counter, which will include the time",
                                "type": "added"
                            },
                            {
                                "content": "        # when tests `sleep`",
                                "type": "added"
                            },
                            {
                                "content": "        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)",
                                "type": "added"
                            },
                            {
                                "content": "        patcher.start()",
                                "type": "added"
                            },
                            {
                                "content": "        self.addCleanup(patcher.stop)",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "    def test_duration(self):",
                                "type": "context"
                            },
                            {
                                "content": "        @allot",
                                "type": "context"
                            },
                            {
                                "content": "        def f(x, y):",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/tests/test_util.py",
                            "type": "class",
                            "name": "TestAllot",
                            "content": "class TestAllot(unittest.TestCase):\n    # names of functions within tests don't matter, pylint: disable=invalid-name\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n        patcher.start()\n        self.addCleanup(patcher.stop)\n\n    def test_duration(self):\n        @allot\n        def f(x, y):\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n    def test_skipping(self):\n        uf = Mock()\n\n        @allot(0.5)\n        def f(x, y):\n            uf()\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        uf.assert_called_once()\n        uf.reset_mock()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        f(5, y=6)\n        uf.assert_not_called()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        time.sleep(0.35)\n        f(5, y=6)\n        uf.assert_called_once()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot(0.5)\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a2 = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        a.f(7, y=8)\n        self.assertEqual(a.x, 5)  # no call, `a` is unchanged\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        time.sleep(0.35)\n        a.f(9, y=10)\n        a2.f(11, y=12)\n        self.assertEqual(a.x, 9)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        # a2.f is not being skipped because of a.f - bound methods for different\n        # instance are separate\n        self.assertEqual(a2.x, 11)\n\n        # forced calls work\n        a.f.call(11, 12)\n        self.assertEqual(a.x, 11)\n\n        # forced calls block later non-forced calls\n        a = A()\n        a.f.call(13, y=14)\n        self.assertEqual(a.x, 13)\n        a.f(15, y=16)\n        self.assertEqual(a.x, 13)\n\n    def test_overflow(self):\n        uf = Mock()\n        of = Mock(return_value=13)\n\n        @allot(0.1, overflow=of)\n        def f(*_, **__):\n            uf()\n            time.sleep(0.1)\n            return 42\n\n        self.assertEqual(f(5, y=6), 42)\n        uf.assert_called()\n        uf.reset_mock()\n        of.assert_not_called()\n\n        self.assertEqual(f(7, y=8), 13)\n        uf.assert_not_called()\n        of.assert_called_with(7, y=8)\n\n    def test_assert_no_result(self):\n        # pylint: disable=function-redefined\n        @allot(0.1)\n        def f():\n            return 42\n\n        self.assertRaises(AssertionError, f)\n\n        @allot(0.05, overflow=lambda x: 3 * x)\n        def f(x):\n            time.sleep(0.6)\n            return 2 * x\n\n        self.assertEqual(f(3), 6)\n        self.assertEqual(f(3), 9)\n\n        @allot\n        def f():\n            return 42\n\n        self.assertEqual(f(), 42)\n\n    def test_assertion(self):\n        self.assertRaises(AssertionError, allot, \"foo\")\n        self.assertRaises(AssertionError, allot, 0.0)\n        self.assertRaises(AssertionError, allot, -1.0)\n\n    def test_getter(self):\n        class A:\n            @allot\n            def f(self):\n                pass\n\n        # getter for class must not do anything with the method\n        self.assertIs(A.f, A.__dict__[\"f\"])",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 246,
                            "end_lineno": 398,
                            "parent": null
                        }
                    ],
                    "added_entities": [
                        {
                            "file_name": "Orange/tests/test_util.py",
                            "type": "method",
                            "name": "TestAllot.setUp",
                            "content": "class TestAllot(unittest.TestCase):\n    # names of functions within tests don't matter, pylint: disable=invalid-name\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n        patcher.start()\n        self.addCleanup(patcher.stop)\n\n    def test_duration(self):\n        @allot\n        def f(x, y):\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n    def test_skipping(self):\n        uf = Mock()\n\n        @allot(0.5)\n        def f(x, y):\n            uf()\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        uf.assert_called_once()\n        uf.reset_mock()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        f(5, y=6)\n        uf.assert_not_called()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        time.sleep(0.35)\n        f(5, y=6)\n        uf.assert_called_once()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot(0.5)\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a2 = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        a.f(7, y=8)\n        self.assertEqual(a.x, 5)  # no call, `a` is unchanged\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        time.sleep(0.35)\n        a.f(9, y=10)\n        a2.f(11, y=12)\n        self.assertEqual(a.x, 9)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        # a2.f is not being skipped because of a.f - bound methods for different\n        # instance are separate\n        self.assertEqual(a2.x, 11)\n\n        # forced calls work\n        a.f.call(11, 12)\n        self.assertEqual(a.x, 11)\n\n        # forced calls block later non-forced calls\n        a = A()\n        a.f.call(13, y=14)\n        self.assertEqual(a.x, 13)\n        a.f(15, y=16)\n        self.assertEqual(a.x, 13)\n\n    def test_overflow(self):\n        uf = Mock()\n        of = Mock(return_value=13)\n\n        @allot(0.1, overflow=of)\n        def f(*_, **__):\n            uf()\n            time.sleep(0.1)\n            return 42\n\n        self.assertEqual(f(5, y=6), 42)\n        uf.assert_called()\n        uf.reset_mock()\n        of.assert_not_called()\n\n        self.assertEqual(f(7, y=8), 13)\n        uf.assert_not_called()\n        of.assert_called_with(7, y=8)\n\n    def test_assert_no_result(self):\n        # pylint: disable=function-redefined\n        @allot(0.1)\n        def f():\n            return 42\n\n        self.assertRaises(AssertionError, f)\n\n        @allot(0.05, overflow=lambda x: 3 * x)\n        def f(x):\n            time.sleep(0.6)\n            return 2 * x\n\n        self.assertEqual(f(3), 6)\n        self.assertEqual(f(3), 9)\n\n        @allot\n        def f():\n            return 42\n\n        self.assertEqual(f(), 42)\n\n    def test_assertion(self):\n        self.assertRaises(AssertionError, allot, \"foo\")\n        self.assertRaises(AssertionError, allot, 0.0)\n        self.assertRaises(AssertionError, allot, -1.0)\n\n    def test_getter(self):\n        class A:\n            @allot\n            def f(self):\n                pass\n\n        # getter for class must not do anything with the method\n        self.assertIs(A.f, A.__dict__[\"f\"])",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 249,
                            "end_lineno": 254,
                            "parent": {
                                "file_name": "Orange/tests/test_util.py",
                                "type": "class",
                                "name": "TestAllot",
                                "content": "class TestAllot(unittest.TestCase):\n    # names of functions within tests don't matter, pylint: disable=invalid-name\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n        patcher.start()\n        self.addCleanup(patcher.stop)\n\n    def test_duration(self):\n        @allot\n        def f(x, y):\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n    def test_skipping(self):\n        uf = Mock()\n\n        @allot(0.5)\n        def f(x, y):\n            uf()\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        uf.assert_called_once()\n        uf.reset_mock()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        f(5, y=6)\n        uf.assert_not_called()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        time.sleep(0.35)\n        f(5, y=6)\n        uf.assert_called_once()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot(0.5)\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a2 = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        a.f(7, y=8)\n        self.assertEqual(a.x, 5)  # no call, `a` is unchanged\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        time.sleep(0.35)\n        a.f(9, y=10)\n        a2.f(11, y=12)\n        self.assertEqual(a.x, 9)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        # a2.f is not being skipped because of a.f - bound methods for different\n        # instance are separate\n        self.assertEqual(a2.x, 11)\n\n        # forced calls work\n        a.f.call(11, 12)\n        self.assertEqual(a.x, 11)\n\n        # forced calls block later non-forced calls\n        a = A()\n        a.f.call(13, y=14)\n        self.assertEqual(a.x, 13)\n        a.f(15, y=16)\n        self.assertEqual(a.x, 13)\n\n    def test_overflow(self):\n        uf = Mock()\n        of = Mock(return_value=13)\n\n        @allot(0.1, overflow=of)\n        def f(*_, **__):\n            uf()\n            time.sleep(0.1)\n            return 42\n\n        self.assertEqual(f(5, y=6), 42)\n        uf.assert_called()\n        uf.reset_mock()\n        of.assert_not_called()\n\n        self.assertEqual(f(7, y=8), 13)\n        uf.assert_not_called()\n        of.assert_called_with(7, y=8)\n\n    def test_assert_no_result(self):\n        # pylint: disable=function-redefined\n        @allot(0.1)\n        def f():\n            return 42\n\n        self.assertRaises(AssertionError, f)\n\n        @allot(0.05, overflow=lambda x: 3 * x)\n        def f(x):\n            time.sleep(0.6)\n            return 2 * x\n\n        self.assertEqual(f(3), 6)\n        self.assertEqual(f(3), 9)\n\n        @allot\n        def f():\n            return 42\n\n        self.assertEqual(f(), 42)\n\n    def test_assertion(self):\n        self.assertRaises(AssertionError, allot, \"foo\")\n        self.assertRaises(AssertionError, allot, 0.0)\n        self.assertRaises(AssertionError, allot, -1.0)\n\n    def test_getter(self):\n        class A:\n            @allot\n            def f(self):\n                pass\n\n        # getter for class must not do anything with the method\n        self.assertIs(A.f, A.__dict__[\"f\"])",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 246,
                                "end_lineno": 398,
                                "parent": null
                            }
                        }
                    ],
                    "deleted_entities": []
                }
            ]
        },
        {
            "old_file_content": "\"\"\"Various small utilities that might be useful everywhere\"\"\"\nimport logging\nimport os\nimport time\nimport inspect\nimport datetime\nimport math\nimport functools\nfrom contextlib import contextmanager\nfrom typing import TYPE_CHECKING, Callable, Union, Optional\nfrom weakref import WeakKeyDictionary\n\nimport pkg_resources\nfrom enum import Enum as _Enum\nfrom functools import wraps, partial\nfrom operator import attrgetter\nfrom itertools import chain, count, repeat\n\nfrom collections import namedtuple\nimport warnings\n\n# Exposed here for convenience. Prefer patching to try-finally blocks\nfrom unittest.mock import patch  # pylint: disable=unused-import\n\nimport numpy as np\n\n# Backwards-compat\nfrom Orange.data.util import scale  # pylint: disable=unused-import\n\nif TYPE_CHECKING:\n    from numpy.typing import DTypeLike\n\n\nlog = logging.getLogger(__name__)\n\n\nclass OrangeWarning(UserWarning):\n    pass\n\n\nclass OrangeDeprecationWarning(OrangeWarning, DeprecationWarning):\n    pass\n\n\nwarnings.simplefilter('default', OrangeWarning)\n\nif os.environ.get('ORANGE_DEPRECATIONS_ERROR'):\n    warnings.simplefilter('error', OrangeDeprecationWarning)\n\n\ndef _log_warning(msg):\n    \"\"\"\n    Replacement for `warnings._showwarnmsg_impl` that logs the warning\n    Logs the warning in the appropriate list, or passes it to the original\n    function if the warning wasn't issued within the log_warnings context.\n    \"\"\"\n    for frame in inspect.stack():\n        if frame.frame in warning_loggers:\n            warning_loggers[frame.frame].append(msg)\n            break\n    else:\n        __orig_showwarnmsg_impl(msg)\n\n\n@contextmanager\ndef log_warnings():\n    \"\"\"\n    logs all warnings that occur within context, including warnings from calls.\n\n    ```python\n    with log_warnings() as warnings:\n       ...\n    ```\n\n    Unlike `warnings.catch_warnings(record=True)`, this manager is thread-safe\n    and will only log warning from this thread. It does so by storing the\n    stack frame within which the context is created, and then checking the\n    stack when the warning is issued.\n\n    Nesting of `log_warnings` within the same function will raise an error.\n    If `log_wanings` are nested within function calls, the warning is logged\n    in the inner-most context.\n\n    If `catch_warnings` is used within the `log_warnings` context, logging is\n    disabled until the `catch_warnings` exits. This looks inevitable (without\n    patching `catch_warnings`, which I'd prefer not to do).\n\n    If `catch_warnings` is used outside this context, everything, including\n    warning filtering, should work as expected.\n\n    Note: the method imitates `catch_warnings` by patching the `warnings`\n    module's internal function `_showwarnmsg_impl`. Python (as of version 3.9)\n    doesn't seem to offer any other way of catching the warnings. This function\n    was introduced in Python 3.6, so we cover all supported versions. If it is\n    ever removed, unittests will crash, so we'll know. :)\n    \"\"\"\n    # currentframe().f_back is `contextmanager`'s __enter__\n    frame = inspect.currentframe().f_back.f_back\n    if frame in warning_loggers:\n        raise ValueError(\"nested log_warnings\")\n    try:\n        warning_loggers[frame] = []\n        yield warning_loggers[frame]\n    finally:\n        del warning_loggers[frame]\n\n\n# pylint: disable=protected-access\nwarning_loggers = {}\n__orig_showwarnmsg_impl = warnings._showwarnmsg_impl\nwarnings._showwarnmsg_impl = _log_warning\n\n\ndef resource_filename(path):\n    \"\"\"\n    Return the resource filename path relative to the Orange package.\n    \"\"\"\n    return pkg_resources.resource_filename(\"Orange\", path)\n\n\ndef get_entry_point(dist, group, name):\n    \"\"\"\n    Load and return the entry point from the distribution.\n\n    Unlike `pkg_resources.load_entry_point`, this function does not check\n    for requirements. Calling this function is preferred because of developers\n    who experiment with different versions and have inconsistent configurations.\n    \"\"\"\n    dist = pkg_resources.get_distribution(dist)\n    ep = dist.get_entry_info(group, name)\n    return ep.resolve()\n\n\ndef deprecated(obj):\n    \"\"\"\n    Decorator. Mark called object deprecated.\n\n    Parameters\n    ----------\n    obj: callable or str\n        If callable, it is marked as deprecated and its calling raises\n        OrangeDeprecationWarning. If str, it is the alternative to be used\n        instead of the decorated function.\n\n    Returns\n    -------\n    f: wrapped callable or decorator\n        Returns decorator if obj was str.\n\n    Examples\n    --------\n    >>> @deprecated\n    ... def old():\n    ...     return 'old behavior'\n    >>> old()  # doctest: +SKIP\n    /... OrangeDeprecationWarning: Call to deprecated ... old ...\n    'old behavior'\n\n    >>> class C:\n    ...     @deprecated('C.new()')\n    ...     def old(self):\n    ...         return 'old behavior'\n    ...     def new(self):\n    ...         return 'new behavior'\n    >>> C().old() # doctest: +SKIP\n    /... OrangeDeprecationWarning: Call to deprecated ... C.old ...\n      use use C.new() instead ...\n    'old behavior'\n    \"\"\"\n    alternative = f'; use {obj} instead' if isinstance(obj, str) else ''\n\n    def decorator(func):\n        @wraps(func)\n        def wrapper(*args, **kwargs):\n            name = func.__name__\n            if hasattr(func, \"__self__\"):\n                name = f'{func.__self__.__class__}.{name}'\n            warnings.warn(f'Call to deprecated {name}{alternative}',\n                          OrangeDeprecationWarning, stacklevel=2)\n            return func(*args, **kwargs)\n        return wrapper\n\n    return decorator if alternative else decorator(obj)\n\n\n# This should look like decorator, not a class, pylint: disable=invalid-name\nclass allot:\n    \"\"\"\n    Decorator that allows a function only a specified portion of time per call.\n\n    Usage:\n\n    ```\n    @allot(0.2, overflow=of)\n    def f(x):\n       ...\n    ```\n\n    The above function is allotted 0.2 second per second. If it runs for 0.2 s,\n    all subsequent calls in the next second (after the start of the call) are\n    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are\n    ignored. If it runs for a second, subsequent calls are ignored for 5 s.\n\n    An optional overflow function can be given as a keyword argument\n    `overflow`. This function must have the same signature as the wrapped\n    function and is called instead of the original when the call is blocked.\n\n    If the overflow function is not given, the wrapped function must not return\n    result. This is because without the overflow function, the wrapper has no\n    value to return when the call is skipped.\n\n    The decorator adds a method `call` to force the call, e.g. by calling\n    f.call(5), in the above case. The used up time still counts for the\n    following (non-forced) calls.\n\n    The decorator also adds two attributes:\n\n    - f.last_call_duration is the duration of the last call (in seconds)\n    - f.no_call_before contains the time (time.perf_counter) when the next\n        call will be made.\n\n    The decorator can be used for functions and for methods.\n\n    A non-parametrized decorator doesn't block any calls and only adds\n    last_call_duration, so that it can be used for timing.\n    \"\"\"\n    def __new__(cls: type, arg: Union[None, float, Callable], *,\n                overflow: Optional[Callable] = None,\n                _bound_methods: Optional[WeakKeyDictionary] = None):\n        self = super().__new__(cls)\n\n        if arg is None or isinstance(arg, float):\n            # Parametrized decorator\n            if arg is not None:\n                assert arg > 0\n\n            def set_func(func):\n                self.__init__(func,\n                              overflow=overflow,\n                              _bound_methods=_bound_methods)\n                self.allotted_time = arg\n                return self\n\n            return set_func\n\n        else:\n            # Non-parametrized decorator\n            self.allotted_time = None\n            return self\n\n    def __init__(self,\n                 func: Callable, *,\n                 overflow: Optional[Callable] = None,\n                 _bound_methods: Optional[WeakKeyDictionary] = None):\n        assert callable(func)\n        self.func = func\n        self.overflow = overflow\n        functools.update_wrapper(self, func)\n\n        self.no_call_before = 0\n        self.last_call_duration = None\n\n        # Used by __get__; see a comment there\n        if _bound_methods is None:\n            self.__bound_methods = WeakKeyDictionary()\n        else:\n            self.__bound_methods = _bound_methods\n\n    # If we are wrapping a method, __get__ is called to bind it.\n    # Create a wrapper for each instance and store it, so that each instance's\n    # method gets its share of time.\n    def __get__(self, inst, cls):\n        if inst is None:\n            return self\n\n        if inst not in self.__bound_methods:\n            # __bound_methods caches bound methods per instance. This is not\n            # done for perfoamnce. Bound methods can be rebound, even to\n            # different instances or even classes, e.g.\n            # >>> x = f.__get__(a, A)\n            # >>> y = x.__get__(b, B)\n            # >>> z = x.__get__(a, A)\n            # After this, we want `x is z`, there shared caching. This looks\n            # bizarre, but let's keep it safe. At least binding to the same\n            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably\n            # possible.\n            cls = type(self)\n            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)\n            decorator = cls(\n                self.allotted_time,\n                overflow=bound_overflow,\n                _bound_methods=self.__bound_methods)\n            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))\n\n        return self.__bound_methods[inst]\n\n    def __call__(self, *args, **kwargs):\n        if time.perf_counter() < self.no_call_before:\n            if self.overflow is None:\n                return None\n            return self.overflow(*args, **kwargs)\n        return self.call(*args, **kwargs)\n\n    def call(self, *args, **kwargs):\n        start = time.perf_counter()\n        result = self.func(*args, **kwargs)\n        self.last_call_duration = time.perf_counter() - start\n        if self.allotted_time is not None:\n            if self.overflow is None:\n                assert result is None, \"skippable function cannot return a result\"\n            self.no_call_before = start + self.last_call_duration / self.allotted_time\n        return result\n\n\ndef literal_eval(literal):\n    import ast  # pylint: disable=import-outside-toplevel\n    # ast.literal_eval does not parse empty set ¯\\_(ツ)_/¯\n\n    if literal == \"set()\":\n        return set()\n    return ast.literal_eval(literal)\n\n\nop_map = {\n    '==': lambda a, b: a == b,\n    '>=': lambda a, b: a >= b,\n    '<=': lambda a, b: a <= b,\n    '>': lambda a, b: a > b,\n    '<': lambda a, b: a < b\n}\n\n\n_Requirement = namedtuple(\"_Requirement\", [\"name\", \"op\", \"value\"])\n\n\nbool_map = {\n    \"True\": True,\n    \"true\": True,\n    1: True,\n    \"False\": False,\n    \"false\": False,\n    0: False\n}\n\n\ndef requirementsSatisfied(required_state, local_state, req_type=None):\n    \"\"\"\n    Checks a list of requirements against a dictionary representing local state.\n\n    Args:\n        required_state ([str]): List of strings representing required state\n                                using comparison operators\n        local_state (dict): Dictionary representing current state\n        req_type (type): Casts values to req_type before comparing them.\n                         Defaults to local_state type.\n    \"\"\"\n    for req_string in required_state:\n        # parse requirement\n        req = None\n        for op_str, op in op_map.items():\n            split = req_string.split(op_str)\n            # if operation is not in req_string, continue\n            if len(split) == 2:\n                req = _Requirement(split[0], op, split[1])\n                break\n\n        if req is None:\n            log.error(\"Invalid requirement specification: %s\", req_string)\n            return False\n\n        compare_type = req_type or type(local_state[req.name])\n        # check if local state satisfies required state (specification)\n        if compare_type is bool:\n            # boolean is a special case, where simply casting to bool does not produce target result\n            required_value = bool_map[req.value]\n        else:\n            required_value = compare_type(req.value)\n        local_value = compare_type(local_state[req.name])\n\n        # finally, compare the values\n        if not req.op(local_value, required_value):\n            return False\n    return True\n\n\ndef try_(func, default=None):\n    \"\"\"Try return the result of func, else return default.\"\"\"\n    try:\n        return func()\n    except Exception:  # pylint: disable=broad-except\n        return default\n\n\ndef flatten(lst):\n    \"\"\"Flatten iterable a single level.\"\"\"\n    return chain.from_iterable(lst)\n\n\nclass Registry(type):\n    \"\"\"Metaclass that registers subtypes.\"\"\"\n    def __new__(mcs, name, bases, attrs):\n        cls = type.__new__(mcs, name, bases, attrs)\n        if not hasattr(cls, 'registry'):\n            cls.registry = {}\n        else:\n            cls.registry[name] = cls\n        return cls\n\n    def __iter__(cls):\n        return iter(cls.registry)\n\n    def __str__(cls):\n        if cls in cls.registry.values():\n            return cls.__name__\n        return f'{cls.__name__}({{{\", \".join(cls.registry)}}})'\n\n\n# it is what it is, we keep for compatibility:\n# pylint: disable=keyword-arg-before-vararg\ndef namegen(prefix='_', *args, spec_count=count, **kwargs):\n    \"\"\"Continually generate names with `prefix`, e.g. '_1', '_2', ...\"\"\"\n    # pylint: disable=stop-iteration-return\n    spec_count = iter(spec_count(*args, **kwargs))\n    while True:\n        yield prefix + str(next(spec_count))\n\n\ndef export_globals(globals, module_name):\n    \"\"\"\n    Return list of important for export globals (callables, constants) from\n    `globals` dict, defined in module `module_name`.\n\n    Usage\n    -----\n    In some module, on the second-to-last line:\n\n    __all__ = export_globals(globals(), __name__)\n\n    \"\"\"\n    return [getattr(v, '__name__', k)\n            for k, v in globals.items()                          # export\n            if ((callable(v) and v.__module__ == module_name     # callables from this module\n                 or k.isupper()) and                             # or CONSTANTS\n                not getattr(v, '__name__', k).startswith('_'))]  # neither marked internal\n\n\n_NOTSET = object()\n\n\ndef deepgetattr(obj, attr, default=_NOTSET):\n    \"\"\"Works exactly like getattr(), except that attr can be a nested attribute\n    (e.g. \"attr1.attr2.attr3\").\n    \"\"\"\n    try:\n        return attrgetter(attr)(obj)\n    except AttributeError:\n        if default is _NOTSET:\n            raise\n        return default\n\n\ndef color_to_hex(color):\n    # pylint: disable=consider-using-f-string\n    return \"#{:02X}{:02X}{:02X}\".format(*color)\n\n\ndef hex_to_color(s):\n    return int(s[1:3], 16), int(s[3:5], 16), int(s[5:7], 16)\n\n\ndef inherit_docstrings(cls):\n    \"\"\"Inherit methods' docstrings from first superclass that defines them\"\"\"\n    for method in cls.__dict__.values():\n        if inspect.isfunction(method) and method.__doc__ is None:\n            for parent in cls.__mro__[1:]:\n                doc = getattr(parent, method.__name__, None).__doc__\n                if doc:\n                    method.__doc__ = doc\n                    break\n    return cls\n\n\nclass Enum(_Enum):\n    \"\"\"Enum that represents itself with the qualified name, e.g. Color.red\"\"\"\n    __repr__ = _Enum.__str__\n\n\ndef interleave(seq1, seq2):\n    \"\"\"\n    Interleave elements of `seq2` between consecutive elements of `seq1`.\n\n    Example\n    -------\n    >>> list(interleave([1, 3, 5], [2, 4]))\n    [1, 2, 3, 4, 5]\n    >>> list(interleave([1, 2, 3, 4], repeat(\"<\")))\n    [1, '<', 2, '<', 3, '<', 4]\n    \"\"\"\n    iterator1, iterator2 = iter(seq1), iter(seq2)\n    try:\n        leading = next(iterator1)\n    except StopIteration:\n        pass\n    else:\n        for element in iterator1:\n            yield leading\n            try:\n                yield next(iterator2)\n            except StopIteration:\n                return\n            leading = element\n        yield leading\n\n\ndef Reprable_repr_pretty(name, itemsiter, printer, cycle):\n    # type: (str, Iterable[Tuple[str, Any]], Ipython.lib.pretty.PrettyPrinter, bool) -> None\n    if cycle:\n        printer.text(f\"{name}(...)\")\n    else:\n        def printitem(field, value):\n            printer.text(field + \"=\")\n            printer.pretty(value)\n\n        def printsep():\n            printer.text(\",\")\n            printer.breakable()\n\n        itemsiter = (partial(printitem, *item) for item in itemsiter)\n        sepiter = repeat(printsep)\n\n        with printer.group(len(name) + 1, f\"{name}(\", \")\"):\n            for part in interleave(itemsiter, sepiter):\n                part()\n                part()\n\n\nclass _Undef:\n    def __repr__(self):\n        return \"<?>\"\n_undef = _Undef()\n\n\nclass Reprable:\n    \"\"\"A type that inherits from this class has its __repr__ string\n    auto-generated so that it \"[...] should look like a valid Python\n    expression that could be used to recreate an object with the same\n    value [...]\" (see See Also section below).\n\n    This relies on the instances of type to have attributes that\n    match the arguments of the type's constructor. Only the values that\n    don't match the arguments' defaults are printed, i.e.:\n\n        >>> class C(Reprable):\n        ...     def __init__(self, a, b=2):\n        ...         self.a = a\n        ...         self.b = b\n        >>> C(1, 2)\n        C(a=1)\n        >>> C(1, 3)\n        C(a=1, b=3)\n\n    If Reprable instances define `_reprable_module`, that string is used\n    as a fully-qualified module name and is printed. `_reprable_module`\n    can also be True in which case the type's home module is used.\n\n        >>> class C(Reprable):\n        ...     _reprable_module = True\n        >>> C()\n        Orange.util.C()\n        >>> class C(Reprable):\n        ...     _reprable_module = 'something_else'\n        >>> C()\n        something_else.C()\n        >>> class C(Reprable):\n        ...     class ModuleResolver:\n        ...         def __str__(self):\n        ...             return 'magic'\n        ...     _reprable_module = ModuleResolver()\n        >>> C()\n        magic.C()\n\n    See Also\n    --------\n    https://docs.python.org/3/reference/datamodel.html#object.__repr__\n    \"\"\"\n    _reprable_module = ''\n\n    def _reprable_fields(self):\n        # type: () -> Iterable[Tuple[str, Any]]\n        cls = self.__class__\n        sig = inspect.signature(cls.__init__)\n        for param in sig.parameters.values():\n            # Skip self, *args, **kwargs\n            if param.name != 'self' and \\\n                    param.kind not in (param.VAR_POSITIONAL, param.VAR_KEYWORD):\n                yield param.name, param.default\n\n    # pylint: disable=unused-argument\n    def _reprable_omit_param(self, name, default, value):\n        if default is value:\n            return True\n        if type(default) is type(value):\n            try:\n                return default == value\n            except (ValueError, TypeError):\n                return False\n        else:\n            return False\n\n    def _reprable_items(self):\n        with warnings.catch_warnings():\n            warnings.simplefilter(\"error\", DeprecationWarning)\n            warnings.simplefilter(\"error\", PendingDeprecationWarning)\n            for name, default in self._reprable_fields():\n                try:\n                    value = getattr(self, name)\n                except (DeprecationWarning, PendingDeprecationWarning):\n                    continue\n                except AttributeError:\n                    value = _undef\n                if not self._reprable_omit_param(name, default, value):\n                    yield name, default, value\n\n    def _repr_pretty_(self, p, cycle):\n        \"\"\"IPython pretty print hook.\"\"\"\n        module = self._reprable_module\n        if module is True:\n            module = self.__class__.__module__\n\n        nameparts = (([str(module)] if module else []) +\n                     [self.__class__.__name__])\n        name = \".\".join(nameparts)\n        Reprable_repr_pretty(\n            name, ((f, v) for f, _, v in self._reprable_items()),\n            p, cycle)\n\n    def __repr__(self):\n        module = self._reprable_module\n        if module is True:\n            module = self.__class__.__module__\n        nameparts = (([str(module)] if module else []) +\n                     [self.__class__.__name__])\n        name = \".\".join(nameparts)\n        items = \", \".join(f\"{f}={repr(v)}\"\n                          for f, _, v in self._reprable_items())\n        return f\"{name}({items})\"\n\n\ndef wrap_callback(progress_callback, start=0, end=1):\n    \"\"\"\n    Wraps a progress callback function to allocate it end-start proportion\n    of an execution time.\n\n    :param progress_callback: callable\n    :param start: float\n    :param end: float\n    :return: callable\n    \"\"\"\n    @wraps(progress_callback)\n    def func(progress, *args, **kwargs):\n        adjusted_progress = start + progress * (end - start)\n        return progress_callback(adjusted_progress, *args, **kwargs)\n    return func\n\n\ndef dummy_callback(*_, **__):\n    \"\"\" A dummy callable. \"\"\"\n    return 1\n\n\ndef utc_from_timestamp(timestamp) -> datetime.datetime:\n    \"\"\"\n    Return the UTC datetime corresponding to the POSIX timestamp.\n    \"\"\"\n    return datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc) + \\\n           datetime.timedelta(seconds=float(timestamp))\n\n\ndef frompyfunc(func: Callable, nin: int, nout: int, dtype: 'DTypeLike'):\n    \"\"\"\n    Wrap an `func` callable into an ufunc-like function with `out`, `dtype`,\n    `where`, ... parameters. The `dtype` is used as the default.\n\n    Unlike numpy.frompyfunc this function always returns output array of\n    the specified `dtype`. Note that the conversion is space efficient.\n    \"\"\"\n    func_ = np.frompyfunc(func, nin, nout)\n\n    @wraps(func)\n    def funcv(*args, out=None, dtype=dtype, casting=\"unsafe\", **kwargs):\n        if not args:\n            raise TypeError\n        args = [np.asanyarray(a) for a in args]\n        args = np.broadcast_arrays(*args)\n        shape = args[0].shape\n        have_out = out is not None\n        if out is None and dtype is not None:\n            out = np.empty(shape, dtype)\n\n        res = func_(*args, out, dtype=dtype, casting=casting, **kwargs)\n        if res.shape == () and not have_out:\n            return res.item()\n        else:\n            return res\n\n    return funcv\n\n\n_isnan = math.isnan\n\n\ndef nan_eq(a, b) -> bool:\n    \"\"\"\n    Same as `a == b` except where both `a` and `b` are  NaN values in which\n    case `True` is returned.\n\n    .. seealso:: nan_hash_stand\n    \"\"\"\n    try:\n        both_nan = _isnan(a) and _isnan(b)\n    except TypeError:\n        return a == b\n    else:\n        return both_nan or a == b\n\n\ndef nan_hash_stand(value):\n    \"\"\"\n    If `value` is a NaN then return a singular global *standin* NaN instance,\n    otherwise return `value` unchanged.\n\n    Use this where a hash of `value` is needed and `value` might be a NaN\n    to account for distinct hashes of NaN instances.\n\n    E.g. the folowing `__eq__` and `__hash__` pairs would be ill-defined for\n    `A(float(\"nan\"))` instances if `nan_hash_stand` and `nan_eq` were not\n    used.\n    >>> class A:\n    ...     def __init__(self, v): self.v = v\n    ...     def __hash__(self): return hash(nan_hash_stand(self.v))\n    ...     def __eq__(self, other): return nan_eq(self.v, other.v)\n    \"\"\"\n    try:\n        if _isnan(value):\n            return math.nan\n    except TypeError:\n        pass\n    return value\n\n\n# For best result, keep this at the bottom\n__all__ = export_globals(globals(), __name__)\n\n# ONLY NON-EXPORTED VALUES BELOW HERE\n",
            "new_file_content": "\"\"\"Various small utilities that might be useful everywhere\"\"\"\nimport logging\nimport os\nimport time\nimport inspect\nimport datetime\nimport math\nimport functools\nfrom contextlib import contextmanager\nfrom typing import TYPE_CHECKING, Callable, Union, Optional\nfrom weakref import WeakKeyDictionary\n\nimport pkg_resources\nfrom enum import Enum as _Enum\nfrom functools import wraps, partial\nfrom operator import attrgetter\nfrom itertools import chain, count, repeat\n\nfrom collections import namedtuple\nimport warnings\n\n# Exposed here for convenience. Prefer patching to try-finally blocks\nfrom unittest.mock import patch  # pylint: disable=unused-import\n\nimport numpy as np\n\n# Backwards-compat\nfrom Orange.data.util import scale  # pylint: disable=unused-import\n\nif TYPE_CHECKING:\n    from numpy.typing import DTypeLike\n\n\nlog = logging.getLogger(__name__)\n\n\nclass OrangeWarning(UserWarning):\n    pass\n\n\nclass OrangeDeprecationWarning(OrangeWarning, DeprecationWarning):\n    pass\n\n\nwarnings.simplefilter('default', OrangeWarning)\n\nif os.environ.get('ORANGE_DEPRECATIONS_ERROR'):\n    warnings.simplefilter('error', OrangeDeprecationWarning)\n\n\ndef _log_warning(msg):\n    \"\"\"\n    Replacement for `warnings._showwarnmsg_impl` that logs the warning\n    Logs the warning in the appropriate list, or passes it to the original\n    function if the warning wasn't issued within the log_warnings context.\n    \"\"\"\n    for frame in inspect.stack():\n        if frame.frame in warning_loggers:\n            warning_loggers[frame.frame].append(msg)\n            break\n    else:\n        __orig_showwarnmsg_impl(msg)\n\n\n@contextmanager\ndef log_warnings():\n    \"\"\"\n    logs all warnings that occur within context, including warnings from calls.\n\n    ```python\n    with log_warnings() as warnings:\n       ...\n    ```\n\n    Unlike `warnings.catch_warnings(record=True)`, this manager is thread-safe\n    and will only log warning from this thread. It does so by storing the\n    stack frame within which the context is created, and then checking the\n    stack when the warning is issued.\n\n    Nesting of `log_warnings` within the same function will raise an error.\n    If `log_wanings` are nested within function calls, the warning is logged\n    in the inner-most context.\n\n    If `catch_warnings` is used within the `log_warnings` context, logging is\n    disabled until the `catch_warnings` exits. This looks inevitable (without\n    patching `catch_warnings`, which I'd prefer not to do).\n\n    If `catch_warnings` is used outside this context, everything, including\n    warning filtering, should work as expected.\n\n    Note: the method imitates `catch_warnings` by patching the `warnings`\n    module's internal function `_showwarnmsg_impl`. Python (as of version 3.9)\n    doesn't seem to offer any other way of catching the warnings. This function\n    was introduced in Python 3.6, so we cover all supported versions. If it is\n    ever removed, unittests will crash, so we'll know. :)\n    \"\"\"\n    # currentframe().f_back is `contextmanager`'s __enter__\n    frame = inspect.currentframe().f_back.f_back\n    if frame in warning_loggers:\n        raise ValueError(\"nested log_warnings\")\n    try:\n        warning_loggers[frame] = []\n        yield warning_loggers[frame]\n    finally:\n        del warning_loggers[frame]\n\n\n# pylint: disable=protected-access\nwarning_loggers = {}\n__orig_showwarnmsg_impl = warnings._showwarnmsg_impl\nwarnings._showwarnmsg_impl = _log_warning\n\n\ndef resource_filename(path):\n    \"\"\"\n    Return the resource filename path relative to the Orange package.\n    \"\"\"\n    return pkg_resources.resource_filename(\"Orange\", path)\n\n\ndef get_entry_point(dist, group, name):\n    \"\"\"\n    Load and return the entry point from the distribution.\n\n    Unlike `pkg_resources.load_entry_point`, this function does not check\n    for requirements. Calling this function is preferred because of developers\n    who experiment with different versions and have inconsistent configurations.\n    \"\"\"\n    dist = pkg_resources.get_distribution(dist)\n    ep = dist.get_entry_info(group, name)\n    return ep.resolve()\n\n\ndef deprecated(obj):\n    \"\"\"\n    Decorator. Mark called object deprecated.\n\n    Parameters\n    ----------\n    obj: callable or str\n        If callable, it is marked as deprecated and its calling raises\n        OrangeDeprecationWarning. If str, it is the alternative to be used\n        instead of the decorated function.\n\n    Returns\n    -------\n    f: wrapped callable or decorator\n        Returns decorator if obj was str.\n\n    Examples\n    --------\n    >>> @deprecated\n    ... def old():\n    ...     return 'old behavior'\n    >>> old()  # doctest: +SKIP\n    /... OrangeDeprecationWarning: Call to deprecated ... old ...\n    'old behavior'\n\n    >>> class C:\n    ...     @deprecated('C.new()')\n    ...     def old(self):\n    ...         return 'old behavior'\n    ...     def new(self):\n    ...         return 'new behavior'\n    >>> C().old() # doctest: +SKIP\n    /... OrangeDeprecationWarning: Call to deprecated ... C.old ...\n      use use C.new() instead ...\n    'old behavior'\n    \"\"\"\n    alternative = f'; use {obj} instead' if isinstance(obj, str) else ''\n\n    def decorator(func):\n        @wraps(func)\n        def wrapper(*args, **kwargs):\n            name = func.__name__\n            if hasattr(func, \"__self__\"):\n                name = f'{func.__self__.__class__}.{name}'\n            warnings.warn(f'Call to deprecated {name}{alternative}',\n                          OrangeDeprecationWarning, stacklevel=2)\n            return func(*args, **kwargs)\n        return wrapper\n\n    return decorator if alternative else decorator(obj)\n\n\n# This should look like decorator, not a class, pylint: disable=invalid-name\nclass allot:\n    \"\"\"\n    Decorator that allows a function only a specified portion of time per call.\n\n    Usage:\n\n    ```\n    @allot(0.2, overflow=of)\n    def f(x):\n       ...\n    ```\n\n    The above function is allotted 0.2 second per second. If it runs for 0.2 s,\n    all subsequent calls in the next second (after the start of the call) are\n    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are\n    ignored. If it runs for a second, subsequent calls are ignored for 5 s.\n\n    An optional overflow function can be given as a keyword argument\n    `overflow`. This function must have the same signature as the wrapped\n    function and is called instead of the original when the call is blocked.\n\n    If the overflow function is not given, the wrapped function must not return\n    result. This is because without the overflow function, the wrapper has no\n    value to return when the call is skipped.\n\n    The decorator adds a method `call` to force the call, e.g. by calling\n    f.call(5), in the above case. The used up time still counts for the\n    following (non-forced) calls.\n\n    The decorator also adds two attributes:\n\n    - f.last_call_duration is the duration of the last call (in seconds)\n    - f.no_call_before contains the time stamp when the next call will be made.\n\n    The decorator can be used for functions and for methods.\n\n    A non-parametrized decorator doesn't block any calls and only adds\n    last_call_duration, so that it can be used for timing.\n    \"\"\"\n\n    try:\n        __timer = time.thread_time\n    except AttributeError:\n        # thread_time is not available on macOS\n        __timer = time.process_time\n\n    def __new__(cls: type, arg: Union[None, float, Callable], *,\n                overflow: Optional[Callable] = None,\n                _bound_methods: Optional[WeakKeyDictionary] = None):\n        self = super().__new__(cls)\n\n        if arg is None or isinstance(arg, float):\n            # Parametrized decorator\n            if arg is not None:\n                assert arg > 0\n\n            def set_func(func):\n                self.__init__(func,\n                              overflow=overflow,\n                              _bound_methods=_bound_methods)\n                self.allotted_time = arg\n                return self\n\n            return set_func\n\n        else:\n            # Non-parametrized decorator\n            self.allotted_time = None\n            return self\n\n    def __init__(self,\n                 func: Callable, *,\n                 overflow: Optional[Callable] = None,\n                 _bound_methods: Optional[WeakKeyDictionary] = None):\n        assert callable(func)\n        self.func = func\n        self.overflow = overflow\n        functools.update_wrapper(self, func)\n\n        self.no_call_before = 0\n        self.last_call_duration = None\n\n        # Used by __get__; see a comment there\n        if _bound_methods is None:\n            self.__bound_methods = WeakKeyDictionary()\n        else:\n            self.__bound_methods = _bound_methods\n\n    # If we are wrapping a method, __get__ is called to bind it.\n    # Create a wrapper for each instance and store it, so that each instance's\n    # method gets its share of time.\n    def __get__(self, inst, cls):\n        if inst is None:\n            return self\n\n        if inst not in self.__bound_methods:\n            # __bound_methods caches bound methods per instance. This is not\n            # done for perfoamnce. Bound methods can be rebound, even to\n            # different instances or even classes, e.g.\n            # >>> x = f.__get__(a, A)\n            # >>> y = x.__get__(b, B)\n            # >>> z = x.__get__(a, A)\n            # After this, we want `x is z`, there shared caching. This looks\n            # bizarre, but let's keep it safe. At least binding to the same\n            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably\n            # possible.\n            cls = type(self)\n            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)\n            decorator = cls(\n                self.allotted_time,\n                overflow=bound_overflow,\n                _bound_methods=self.__bound_methods)\n            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))\n\n        return self.__bound_methods[inst]\n\n    def __call__(self, *args, **kwargs):\n        if self.__timer() < self.no_call_before:\n            if self.overflow is None:\n                return None\n            return self.overflow(*args, **kwargs)\n        return self.call(*args, **kwargs)\n\n    def call(self, *args, **kwargs):\n        start = self.__timer()\n        result = self.func(*args, **kwargs)\n        self.last_call_duration = self.__timer() - start\n        if self.allotted_time is not None:\n            if self.overflow is None:\n                assert result is None, \"skippable function cannot return a result\"\n            self.no_call_before = start + self.last_call_duration / self.allotted_time\n        return result\n\n\ndef literal_eval(literal):\n    import ast  # pylint: disable=import-outside-toplevel\n    # ast.literal_eval does not parse empty set ¯\\_(ツ)_/¯\n\n    if literal == \"set()\":\n        return set()\n    return ast.literal_eval(literal)\n\n\nop_map = {\n    '==': lambda a, b: a == b,\n    '>=': lambda a, b: a >= b,\n    '<=': lambda a, b: a <= b,\n    '>': lambda a, b: a > b,\n    '<': lambda a, b: a < b\n}\n\n\n_Requirement = namedtuple(\"_Requirement\", [\"name\", \"op\", \"value\"])\n\n\nbool_map = {\n    \"True\": True,\n    \"true\": True,\n    1: True,\n    \"False\": False,\n    \"false\": False,\n    0: False\n}\n\n\ndef requirementsSatisfied(required_state, local_state, req_type=None):\n    \"\"\"\n    Checks a list of requirements against a dictionary representing local state.\n\n    Args:\n        required_state ([str]): List of strings representing required state\n                                using comparison operators\n        local_state (dict): Dictionary representing current state\n        req_type (type): Casts values to req_type before comparing them.\n                         Defaults to local_state type.\n    \"\"\"\n    for req_string in required_state:\n        # parse requirement\n        req = None\n        for op_str, op in op_map.items():\n            split = req_string.split(op_str)\n            # if operation is not in req_string, continue\n            if len(split) == 2:\n                req = _Requirement(split[0], op, split[1])\n                break\n\n        if req is None:\n            log.error(\"Invalid requirement specification: %s\", req_string)\n            return False\n\n        compare_type = req_type or type(local_state[req.name])\n        # check if local state satisfies required state (specification)\n        if compare_type is bool:\n            # boolean is a special case, where simply casting to bool does not produce target result\n            required_value = bool_map[req.value]\n        else:\n            required_value = compare_type(req.value)\n        local_value = compare_type(local_state[req.name])\n\n        # finally, compare the values\n        if not req.op(local_value, required_value):\n            return False\n    return True\n\n\ndef try_(func, default=None):\n    \"\"\"Try return the result of func, else return default.\"\"\"\n    try:\n        return func()\n    except Exception:  # pylint: disable=broad-except\n        return default\n\n\ndef flatten(lst):\n    \"\"\"Flatten iterable a single level.\"\"\"\n    return chain.from_iterable(lst)\n\n\nclass Registry(type):\n    \"\"\"Metaclass that registers subtypes.\"\"\"\n    def __new__(mcs, name, bases, attrs):\n        cls = type.__new__(mcs, name, bases, attrs)\n        if not hasattr(cls, 'registry'):\n            cls.registry = {}\n        else:\n            cls.registry[name] = cls\n        return cls\n\n    def __iter__(cls):\n        return iter(cls.registry)\n\n    def __str__(cls):\n        if cls in cls.registry.values():\n            return cls.__name__\n        return f'{cls.__name__}({{{\", \".join(cls.registry)}}})'\n\n\n# it is what it is, we keep for compatibility:\n# pylint: disable=keyword-arg-before-vararg\ndef namegen(prefix='_', *args, spec_count=count, **kwargs):\n    \"\"\"Continually generate names with `prefix`, e.g. '_1', '_2', ...\"\"\"\n    # pylint: disable=stop-iteration-return\n    spec_count = iter(spec_count(*args, **kwargs))\n    while True:\n        yield prefix + str(next(spec_count))\n\n\ndef export_globals(globals, module_name):\n    \"\"\"\n    Return list of important for export globals (callables, constants) from\n    `globals` dict, defined in module `module_name`.\n\n    Usage\n    -----\n    In some module, on the second-to-last line:\n\n    __all__ = export_globals(globals(), __name__)\n\n    \"\"\"\n    return [getattr(v, '__name__', k)\n            for k, v in globals.items()                          # export\n            if ((callable(v) and v.__module__ == module_name     # callables from this module\n                 or k.isupper()) and                             # or CONSTANTS\n                not getattr(v, '__name__', k).startswith('_'))]  # neither marked internal\n\n\n_NOTSET = object()\n\n\ndef deepgetattr(obj, attr, default=_NOTSET):\n    \"\"\"Works exactly like getattr(), except that attr can be a nested attribute\n    (e.g. \"attr1.attr2.attr3\").\n    \"\"\"\n    try:\n        return attrgetter(attr)(obj)\n    except AttributeError:\n        if default is _NOTSET:\n            raise\n        return default\n\n\ndef color_to_hex(color):\n    # pylint: disable=consider-using-f-string\n    return \"#{:02X}{:02X}{:02X}\".format(*color)\n\n\ndef hex_to_color(s):\n    return int(s[1:3], 16), int(s[3:5], 16), int(s[5:7], 16)\n\n\ndef inherit_docstrings(cls):\n    \"\"\"Inherit methods' docstrings from first superclass that defines them\"\"\"\n    for method in cls.__dict__.values():\n        if inspect.isfunction(method) and method.__doc__ is None:\n            for parent in cls.__mro__[1:]:\n                doc = getattr(parent, method.__name__, None).__doc__\n                if doc:\n                    method.__doc__ = doc\n                    break\n    return cls\n\n\nclass Enum(_Enum):\n    \"\"\"Enum that represents itself with the qualified name, e.g. Color.red\"\"\"\n    __repr__ = _Enum.__str__\n\n\ndef interleave(seq1, seq2):\n    \"\"\"\n    Interleave elements of `seq2` between consecutive elements of `seq1`.\n\n    Example\n    -------\n    >>> list(interleave([1, 3, 5], [2, 4]))\n    [1, 2, 3, 4, 5]\n    >>> list(interleave([1, 2, 3, 4], repeat(\"<\")))\n    [1, '<', 2, '<', 3, '<', 4]\n    \"\"\"\n    iterator1, iterator2 = iter(seq1), iter(seq2)\n    try:\n        leading = next(iterator1)\n    except StopIteration:\n        pass\n    else:\n        for element in iterator1:\n            yield leading\n            try:\n                yield next(iterator2)\n            except StopIteration:\n                return\n            leading = element\n        yield leading\n\n\ndef Reprable_repr_pretty(name, itemsiter, printer, cycle):\n    # type: (str, Iterable[Tuple[str, Any]], Ipython.lib.pretty.PrettyPrinter, bool) -> None\n    if cycle:\n        printer.text(f\"{name}(...)\")\n    else:\n        def printitem(field, value):\n            printer.text(field + \"=\")\n            printer.pretty(value)\n\n        def printsep():\n            printer.text(\",\")\n            printer.breakable()\n\n        itemsiter = (partial(printitem, *item) for item in itemsiter)\n        sepiter = repeat(printsep)\n\n        with printer.group(len(name) + 1, f\"{name}(\", \")\"):\n            for part in interleave(itemsiter, sepiter):\n                part()\n                part()\n\n\nclass _Undef:\n    def __repr__(self):\n        return \"<?>\"\n_undef = _Undef()\n\n\nclass Reprable:\n    \"\"\"A type that inherits from this class has its __repr__ string\n    auto-generated so that it \"[...] should look like a valid Python\n    expression that could be used to recreate an object with the same\n    value [...]\" (see See Also section below).\n\n    This relies on the instances of type to have attributes that\n    match the arguments of the type's constructor. Only the values that\n    don't match the arguments' defaults are printed, i.e.:\n\n        >>> class C(Reprable):\n        ...     def __init__(self, a, b=2):\n        ...         self.a = a\n        ...         self.b = b\n        >>> C(1, 2)\n        C(a=1)\n        >>> C(1, 3)\n        C(a=1, b=3)\n\n    If Reprable instances define `_reprable_module`, that string is used\n    as a fully-qualified module name and is printed. `_reprable_module`\n    can also be True in which case the type's home module is used.\n\n        >>> class C(Reprable):\n        ...     _reprable_module = True\n        >>> C()\n        Orange.util.C()\n        >>> class C(Reprable):\n        ...     _reprable_module = 'something_else'\n        >>> C()\n        something_else.C()\n        >>> class C(Reprable):\n        ...     class ModuleResolver:\n        ...         def __str__(self):\n        ...             return 'magic'\n        ...     _reprable_module = ModuleResolver()\n        >>> C()\n        magic.C()\n\n    See Also\n    --------\n    https://docs.python.org/3/reference/datamodel.html#object.__repr__\n    \"\"\"\n    _reprable_module = ''\n\n    def _reprable_fields(self):\n        # type: () -> Iterable[Tuple[str, Any]]\n        cls = self.__class__\n        sig = inspect.signature(cls.__init__)\n        for param in sig.parameters.values():\n            # Skip self, *args, **kwargs\n            if param.name != 'self' and \\\n                    param.kind not in (param.VAR_POSITIONAL, param.VAR_KEYWORD):\n                yield param.name, param.default\n\n    # pylint: disable=unused-argument\n    def _reprable_omit_param(self, name, default, value):\n        if default is value:\n            return True\n        if type(default) is type(value):\n            try:\n                return default == value\n            except (ValueError, TypeError):\n                return False\n        else:\n            return False\n\n    def _reprable_items(self):\n        with warnings.catch_warnings():\n            warnings.simplefilter(\"error\", DeprecationWarning)\n            warnings.simplefilter(\"error\", PendingDeprecationWarning)\n            for name, default in self._reprable_fields():\n                try:\n                    value = getattr(self, name)\n                except (DeprecationWarning, PendingDeprecationWarning):\n                    continue\n                except AttributeError:\n                    value = _undef\n                if not self._reprable_omit_param(name, default, value):\n                    yield name, default, value\n\n    def _repr_pretty_(self, p, cycle):\n        \"\"\"IPython pretty print hook.\"\"\"\n        module = self._reprable_module\n        if module is True:\n            module = self.__class__.__module__\n\n        nameparts = (([str(module)] if module else []) +\n                     [self.__class__.__name__])\n        name = \".\".join(nameparts)\n        Reprable_repr_pretty(\n            name, ((f, v) for f, _, v in self._reprable_items()),\n            p, cycle)\n\n    def __repr__(self):\n        module = self._reprable_module\n        if module is True:\n            module = self.__class__.__module__\n        nameparts = (([str(module)] if module else []) +\n                     [self.__class__.__name__])\n        name = \".\".join(nameparts)\n        items = \", \".join(f\"{f}={repr(v)}\"\n                          for f, _, v in self._reprable_items())\n        return f\"{name}({items})\"\n\n\ndef wrap_callback(progress_callback, start=0, end=1):\n    \"\"\"\n    Wraps a progress callback function to allocate it end-start proportion\n    of an execution time.\n\n    :param progress_callback: callable\n    :param start: float\n    :param end: float\n    :return: callable\n    \"\"\"\n    @wraps(progress_callback)\n    def func(progress, *args, **kwargs):\n        adjusted_progress = start + progress * (end - start)\n        return progress_callback(adjusted_progress, *args, **kwargs)\n    return func\n\n\ndef dummy_callback(*_, **__):\n    \"\"\" A dummy callable. \"\"\"\n    return 1\n\n\ndef utc_from_timestamp(timestamp) -> datetime.datetime:\n    \"\"\"\n    Return the UTC datetime corresponding to the POSIX timestamp.\n    \"\"\"\n    return datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc) + \\\n           datetime.timedelta(seconds=float(timestamp))\n\n\ndef frompyfunc(func: Callable, nin: int, nout: int, dtype: 'DTypeLike'):\n    \"\"\"\n    Wrap an `func` callable into an ufunc-like function with `out`, `dtype`,\n    `where`, ... parameters. The `dtype` is used as the default.\n\n    Unlike numpy.frompyfunc this function always returns output array of\n    the specified `dtype`. Note that the conversion is space efficient.\n    \"\"\"\n    func_ = np.frompyfunc(func, nin, nout)\n\n    @wraps(func)\n    def funcv(*args, out=None, dtype=dtype, casting=\"unsafe\", **kwargs):\n        if not args:\n            raise TypeError\n        args = [np.asanyarray(a) for a in args]\n        args = np.broadcast_arrays(*args)\n        shape = args[0].shape\n        have_out = out is not None\n        if out is None and dtype is not None:\n            out = np.empty(shape, dtype)\n\n        res = func_(*args, out, dtype=dtype, casting=casting, **kwargs)\n        if res.shape == () and not have_out:\n            return res.item()\n        else:\n            return res\n\n    return funcv\n\n\n_isnan = math.isnan\n\n\ndef nan_eq(a, b) -> bool:\n    \"\"\"\n    Same as `a == b` except where both `a` and `b` are  NaN values in which\n    case `True` is returned.\n\n    .. seealso:: nan_hash_stand\n    \"\"\"\n    try:\n        both_nan = _isnan(a) and _isnan(b)\n    except TypeError:\n        return a == b\n    else:\n        return both_nan or a == b\n\n\ndef nan_hash_stand(value):\n    \"\"\"\n    If `value` is a NaN then return a singular global *standin* NaN instance,\n    otherwise return `value` unchanged.\n\n    Use this where a hash of `value` is needed and `value` might be a NaN\n    to account for distinct hashes of NaN instances.\n\n    E.g. the folowing `__eq__` and `__hash__` pairs would be ill-defined for\n    `A(float(\"nan\"))` instances if `nan_hash_stand` and `nan_eq` were not\n    used.\n    >>> class A:\n    ...     def __init__(self, v): self.v = v\n    ...     def __hash__(self): return hash(nan_hash_stand(self.v))\n    ...     def __eq__(self, other): return nan_eq(self.v, other.v)\n    \"\"\"\n    try:\n        if _isnan(value):\n            return math.nan\n    except TypeError:\n        pass\n    return value\n\n\n# For best result, keep this at the bottom\n__all__ = export_globals(globals(), __name__)\n\n# ONLY NON-EXPORTED VALUES BELOW HERE\n",
            "header": {
                "file": {
                    "path": "Orange/util.py"
                },
                "misc_line": null
            },
            "index_line": {
                "old_commit_hash": "0cd768669",
                "new_commit_hash": "2a1581677",
                "mode": "100644"
            },
            "is_binary_file": false,
            "binary_line": null,
            "minus_file": {
                "path": "a/Orange/util.py"
            },
            "plus_file": {
                "path": "b/Orange/util.py"
            },
            "hunks": [
                {
                    "descriptor": {
                        "old_range": {
                            "start": 216,
                            "length": 14
                        },
                        "new_range": {
                            "start": 216,
                            "length": 20
                        },
                        "section": "class allot:"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "    The decorator also adds two attributes:",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "    - f.last_call_duration is the duration of the last call (in seconds)",
                                "type": "context"
                            },
                            {
                                "content": "    - f.no_call_before contains the time (time.perf_counter) when the next",
                                "type": "deleted"
                            },
                            {
                                "content": "        call will be made.",
                                "type": "deleted"
                            },
                            {
                                "content": "    - f.no_call_before contains the time stamp when the next call will be made.",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "    The decorator can be used for functions and for methods.",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "    A non-parametrized decorator doesn't block any calls and only adds",
                                "type": "context"
                            },
                            {
                                "content": "    last_call_duration, so that it can be used for timing.",
                                "type": "context"
                            },
                            {
                                "content": "    \"\"\"",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "    try:",
                                "type": "added"
                            },
                            {
                                "content": "        __timer = time.thread_time",
                                "type": "added"
                            },
                            {
                                "content": "    except AttributeError:",
                                "type": "added"
                            },
                            {
                                "content": "        # thread_time is not available on macOS",
                                "type": "added"
                            },
                            {
                                "content": "        __timer = time.process_time",
                                "type": "added"
                            },
                            {
                                "content": "",
                                "type": "added"
                            },
                            {
                                "content": "    def __new__(cls: type, arg: Union[None, float, Callable], *,",
                                "type": "context"
                            },
                            {
                                "content": "                overflow: Optional[Callable] = None,",
                                "type": "context"
                            },
                            {
                                "content": "                _bound_methods: Optional[WeakKeyDictionary] = None):",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/util.py",
                            "type": "class",
                            "name": "allot",
                            "content": "class allot:\n    \"\"\"\n    Decorator that allows a function only a specified portion of time per call.\n\n    Usage:\n\n    ```\n    @allot(0.2, overflow=of)\n    def f(x):\n       ...\n    ```\n\n    The above function is allotted 0.2 second per second. If it runs for 0.2 s,\n    all subsequent calls in the next second (after the start of the call) are\n    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are\n    ignored. If it runs for a second, subsequent calls are ignored for 5 s.\n\n    An optional overflow function can be given as a keyword argument\n    `overflow`. This function must have the same signature as the wrapped\n    function and is called instead of the original when the call is blocked.\n\n    If the overflow function is not given, the wrapped function must not return\n    result. This is because without the overflow function, the wrapper has no\n    value to return when the call is skipped.\n\n    The decorator adds a method `call` to force the call, e.g. by calling\n    f.call(5), in the above case. The used up time still counts for the\n    following (non-forced) calls.\n\n    The decorator also adds two attributes:\n\n    - f.last_call_duration is the duration of the last call (in seconds)\n    - f.no_call_before contains the time (time.perf_counter) when the next\n        call will be made.\n\n    The decorator can be used for functions and for methods.\n\n    A non-parametrized decorator doesn't block any calls and only adds\n    last_call_duration, so that it can be used for timing.\n    \"\"\"\n    def __new__(cls: type, arg: Union[None, float, Callable], *,\n                overflow: Optional[Callable] = None,\n                _bound_methods: Optional[WeakKeyDictionary] = None):\n        self = super().__new__(cls)\n\n        if arg is None or isinstance(arg, float):\n            # Parametrized decorator\n            if arg is not None:\n                assert arg > 0\n\n            def set_func(func):\n                self.__init__(func,\n                              overflow=overflow,\n                              _bound_methods=_bound_methods)\n                self.allotted_time = arg\n                return self\n\n            return set_func\n\n        else:\n            # Non-parametrized decorator\n            self.allotted_time = None\n            return self\n\n    def __init__(self,\n                 func: Callable, *,\n                 overflow: Optional[Callable] = None,\n                 _bound_methods: Optional[WeakKeyDictionary] = None):\n        assert callable(func)\n        self.func = func\n        self.overflow = overflow\n        functools.update_wrapper(self, func)\n\n        self.no_call_before = 0\n        self.last_call_duration = None\n\n        # Used by __get__; see a comment there\n        if _bound_methods is None:\n            self.__bound_methods = WeakKeyDictionary()\n        else:\n            self.__bound_methods = _bound_methods\n\n    # If we are wrapping a method, __get__ is called to bind it.\n    # Create a wrapper for each instance and store it, so that each instance's\n    # method gets its share of time.\n    def __get__(self, inst, cls):\n        if inst is None:\n            return self\n\n        if inst not in self.__bound_methods:\n            # __bound_methods caches bound methods per instance. This is not\n            # done for perfoamnce. Bound methods can be rebound, even to\n            # different instances or even classes, e.g.\n            # >>> x = f.__get__(a, A)\n            # >>> y = x.__get__(b, B)\n            # >>> z = x.__get__(a, A)\n            # After this, we want `x is z`, there shared caching. This looks\n            # bizarre, but let's keep it safe. At least binding to the same\n            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably\n            # possible.\n            cls = type(self)\n            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)\n            decorator = cls(\n                self.allotted_time,\n                overflow=bound_overflow,\n                _bound_methods=self.__bound_methods)\n            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))\n\n        return self.__bound_methods[inst]\n\n    def __call__(self, *args, **kwargs):\n        if time.perf_counter() < self.no_call_before:\n            if self.overflow is None:\n                return None\n            return self.overflow(*args, **kwargs)\n        return self.call(*args, **kwargs)\n\n    def call(self, *args, **kwargs):\n        start = time.perf_counter()\n        result = self.func(*args, **kwargs)\n        self.last_call_duration = time.perf_counter() - start\n        if self.allotted_time is not None:\n            if self.overflow is None:\n                assert result is None, \"skippable function cannot return a result\"\n            self.no_call_before = start + self.last_call_duration / self.allotted_time\n        return result",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 187,
                            "end_lineno": 312,
                            "parent": null
                        }
                    ],
                    "added_entities": [],
                    "deleted_entities": []
                },
                {
                    "descriptor": {
                        "old_range": {
                            "start": 295,
                            "length": 16
                        },
                        "new_range": {
                            "start": 301,
                            "length": 16
                        },
                        "section": "class allot:"
                    },
                    "line_group": {
                        "all_lines": [
                            {
                                "content": "        return self.__bound_methods[inst]",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "    def __call__(self, *args, **kwargs):",
                                "type": "context"
                            },
                            {
                                "content": "        if time.perf_counter() < self.no_call_before:",
                                "type": "deleted"
                            },
                            {
                                "content": "        if self.__timer() < self.no_call_before:",
                                "type": "added"
                            },
                            {
                                "content": "            if self.overflow is None:",
                                "type": "context"
                            },
                            {
                                "content": "                return None",
                                "type": "context"
                            },
                            {
                                "content": "            return self.overflow(*args, **kwargs)",
                                "type": "context"
                            },
                            {
                                "content": "        return self.call(*args, **kwargs)",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            },
                            {
                                "content": "    def call(self, *args, **kwargs):",
                                "type": "context"
                            },
                            {
                                "content": "        start = time.perf_counter()",
                                "type": "deleted"
                            },
                            {
                                "content": "        start = self.__timer()",
                                "type": "added"
                            },
                            {
                                "content": "        result = self.func(*args, **kwargs)",
                                "type": "context"
                            },
                            {
                                "content": "        self.last_call_duration = time.perf_counter() - start",
                                "type": "deleted"
                            },
                            {
                                "content": "        self.last_call_duration = self.__timer() - start",
                                "type": "added"
                            },
                            {
                                "content": "        if self.allotted_time is not None:",
                                "type": "context"
                            },
                            {
                                "content": "            if self.overflow is None:",
                                "type": "context"
                            },
                            {
                                "content": "                assert result is None, \"skippable function cannot return a result\"",
                                "type": "context"
                            },
                            {
                                "content": "",
                                "type": "context"
                            }
                        ]
                    },
                    "modified_entities": [
                        {
                            "file_name": "Orange/util.py",
                            "type": "class",
                            "name": "allot",
                            "content": "class allot:\n    \"\"\"\n    Decorator that allows a function only a specified portion of time per call.\n\n    Usage:\n\n    ```\n    @allot(0.2, overflow=of)\n    def f(x):\n       ...\n    ```\n\n    The above function is allotted 0.2 second per second. If it runs for 0.2 s,\n    all subsequent calls in the next second (after the start of the call) are\n    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are\n    ignored. If it runs for a second, subsequent calls are ignored for 5 s.\n\n    An optional overflow function can be given as a keyword argument\n    `overflow`. This function must have the same signature as the wrapped\n    function and is called instead of the original when the call is blocked.\n\n    If the overflow function is not given, the wrapped function must not return\n    result. This is because without the overflow function, the wrapper has no\n    value to return when the call is skipped.\n\n    The decorator adds a method `call` to force the call, e.g. by calling\n    f.call(5), in the above case. The used up time still counts for the\n    following (non-forced) calls.\n\n    The decorator also adds two attributes:\n\n    - f.last_call_duration is the duration of the last call (in seconds)\n    - f.no_call_before contains the time (time.perf_counter) when the next\n        call will be made.\n\n    The decorator can be used for functions and for methods.\n\n    A non-parametrized decorator doesn't block any calls and only adds\n    last_call_duration, so that it can be used for timing.\n    \"\"\"\n    def __new__(cls: type, arg: Union[None, float, Callable], *,\n                overflow: Optional[Callable] = None,\n                _bound_methods: Optional[WeakKeyDictionary] = None):\n        self = super().__new__(cls)\n\n        if arg is None or isinstance(arg, float):\n            # Parametrized decorator\n            if arg is not None:\n                assert arg > 0\n\n            def set_func(func):\n                self.__init__(func,\n                              overflow=overflow,\n                              _bound_methods=_bound_methods)\n                self.allotted_time = arg\n                return self\n\n            return set_func\n\n        else:\n            # Non-parametrized decorator\n            self.allotted_time = None\n            return self\n\n    def __init__(self,\n                 func: Callable, *,\n                 overflow: Optional[Callable] = None,\n                 _bound_methods: Optional[WeakKeyDictionary] = None):\n        assert callable(func)\n        self.func = func\n        self.overflow = overflow\n        functools.update_wrapper(self, func)\n\n        self.no_call_before = 0\n        self.last_call_duration = None\n\n        # Used by __get__; see a comment there\n        if _bound_methods is None:\n            self.__bound_methods = WeakKeyDictionary()\n        else:\n            self.__bound_methods = _bound_methods\n\n    # If we are wrapping a method, __get__ is called to bind it.\n    # Create a wrapper for each instance and store it, so that each instance's\n    # method gets its share of time.\n    def __get__(self, inst, cls):\n        if inst is None:\n            return self\n\n        if inst not in self.__bound_methods:\n            # __bound_methods caches bound methods per instance. This is not\n            # done for perfoamnce. Bound methods can be rebound, even to\n            # different instances or even classes, e.g.\n            # >>> x = f.__get__(a, A)\n            # >>> y = x.__get__(b, B)\n            # >>> z = x.__get__(a, A)\n            # After this, we want `x is z`, there shared caching. This looks\n            # bizarre, but let's keep it safe. At least binding to the same\n            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably\n            # possible.\n            cls = type(self)\n            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)\n            decorator = cls(\n                self.allotted_time,\n                overflow=bound_overflow,\n                _bound_methods=self.__bound_methods)\n            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))\n\n        return self.__bound_methods[inst]\n\n    def __call__(self, *args, **kwargs):\n        if time.perf_counter() < self.no_call_before:\n            if self.overflow is None:\n                return None\n            return self.overflow(*args, **kwargs)\n        return self.call(*args, **kwargs)\n\n    def call(self, *args, **kwargs):\n        start = time.perf_counter()\n        result = self.func(*args, **kwargs)\n        self.last_call_duration = time.perf_counter() - start\n        if self.allotted_time is not None:\n            if self.overflow is None:\n                assert result is None, \"skippable function cannot return a result\"\n            self.no_call_before = start + self.last_call_duration / self.allotted_time\n        return result",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 187,
                            "end_lineno": 312,
                            "parent": null
                        },
                        {
                            "file_name": "Orange/util.py",
                            "type": "method",
                            "name": "allot.call",
                            "content": "class allot:\n    \"\"\"\n    Decorator that allows a function only a specified portion of time per call.\n\n    Usage:\n\n    ```\n    @allot(0.2, overflow=of)\n    def f(x):\n       ...\n    ```\n\n    The above function is allotted 0.2 second per second. If it runs for 0.2 s,\n    all subsequent calls in the next second (after the start of the call) are\n    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are\n    ignored. If it runs for a second, subsequent calls are ignored for 5 s.\n\n    An optional overflow function can be given as a keyword argument\n    `overflow`. This function must have the same signature as the wrapped\n    function and is called instead of the original when the call is blocked.\n\n    If the overflow function is not given, the wrapped function must not return\n    result. This is because without the overflow function, the wrapper has no\n    value to return when the call is skipped.\n\n    The decorator adds a method `call` to force the call, e.g. by calling\n    f.call(5), in the above case. The used up time still counts for the\n    following (non-forced) calls.\n\n    The decorator also adds two attributes:\n\n    - f.last_call_duration is the duration of the last call (in seconds)\n    - f.no_call_before contains the time (time.perf_counter) when the next\n        call will be made.\n\n    The decorator can be used for functions and for methods.\n\n    A non-parametrized decorator doesn't block any calls and only adds\n    last_call_duration, so that it can be used for timing.\n    \"\"\"\n    def __new__(cls: type, arg: Union[None, float, Callable], *,\n                overflow: Optional[Callable] = None,\n                _bound_methods: Optional[WeakKeyDictionary] = None):\n        self = super().__new__(cls)\n\n        if arg is None or isinstance(arg, float):\n            # Parametrized decorator\n            if arg is not None:\n                assert arg > 0\n\n            def set_func(func):\n                self.__init__(func,\n                              overflow=overflow,\n                              _bound_methods=_bound_methods)\n                self.allotted_time = arg\n                return self\n\n            return set_func\n\n        else:\n            # Non-parametrized decorator\n            self.allotted_time = None\n            return self\n\n    def __init__(self,\n                 func: Callable, *,\n                 overflow: Optional[Callable] = None,\n                 _bound_methods: Optional[WeakKeyDictionary] = None):\n        assert callable(func)\n        self.func = func\n        self.overflow = overflow\n        functools.update_wrapper(self, func)\n\n        self.no_call_before = 0\n        self.last_call_duration = None\n\n        # Used by __get__; see a comment there\n        if _bound_methods is None:\n            self.__bound_methods = WeakKeyDictionary()\n        else:\n            self.__bound_methods = _bound_methods\n\n    # If we are wrapping a method, __get__ is called to bind it.\n    # Create a wrapper for each instance and store it, so that each instance's\n    # method gets its share of time.\n    def __get__(self, inst, cls):\n        if inst is None:\n            return self\n\n        if inst not in self.__bound_methods:\n            # __bound_methods caches bound methods per instance. This is not\n            # done for perfoamnce. Bound methods can be rebound, even to\n            # different instances or even classes, e.g.\n            # >>> x = f.__get__(a, A)\n            # >>> y = x.__get__(b, B)\n            # >>> z = x.__get__(a, A)\n            # After this, we want `x is z`, there shared caching. This looks\n            # bizarre, but let's keep it safe. At least binding to the same\n            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably\n            # possible.\n            cls = type(self)\n            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)\n            decorator = cls(\n                self.allotted_time,\n                overflow=bound_overflow,\n                _bound_methods=self.__bound_methods)\n            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))\n\n        return self.__bound_methods[inst]\n\n    def __call__(self, *args, **kwargs):\n        if time.perf_counter() < self.no_call_before:\n            if self.overflow is None:\n                return None\n            return self.overflow(*args, **kwargs)\n        return self.call(*args, **kwargs)\n\n    def call(self, *args, **kwargs):\n        start = time.perf_counter()\n        result = self.func(*args, **kwargs)\n        self.last_call_duration = time.perf_counter() - start\n        if self.allotted_time is not None:\n            if self.overflow is None:\n                assert result is None, \"skippable function cannot return a result\"\n            self.no_call_before = start + self.last_call_duration / self.allotted_time\n        return result",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 304,
                            "end_lineno": 312,
                            "parent": {
                                "file_name": "Orange/util.py",
                                "type": "class",
                                "name": "allot",
                                "content": "class allot:\n    \"\"\"\n    Decorator that allows a function only a specified portion of time per call.\n\n    Usage:\n\n    ```\n    @allot(0.2, overflow=of)\n    def f(x):\n       ...\n    ```\n\n    The above function is allotted 0.2 second per second. If it runs for 0.2 s,\n    all subsequent calls in the next second (after the start of the call) are\n    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are\n    ignored. If it runs for a second, subsequent calls are ignored for 5 s.\n\n    An optional overflow function can be given as a keyword argument\n    `overflow`. This function must have the same signature as the wrapped\n    function and is called instead of the original when the call is blocked.\n\n    If the overflow function is not given, the wrapped function must not return\n    result. This is because without the overflow function, the wrapper has no\n    value to return when the call is skipped.\n\n    The decorator adds a method `call` to force the call, e.g. by calling\n    f.call(5), in the above case. The used up time still counts for the\n    following (non-forced) calls.\n\n    The decorator also adds two attributes:\n\n    - f.last_call_duration is the duration of the last call (in seconds)\n    - f.no_call_before contains the time (time.perf_counter) when the next\n        call will be made.\n\n    The decorator can be used for functions and for methods.\n\n    A non-parametrized decorator doesn't block any calls and only adds\n    last_call_duration, so that it can be used for timing.\n    \"\"\"\n    def __new__(cls: type, arg: Union[None, float, Callable], *,\n                overflow: Optional[Callable] = None,\n                _bound_methods: Optional[WeakKeyDictionary] = None):\n        self = super().__new__(cls)\n\n        if arg is None or isinstance(arg, float):\n            # Parametrized decorator\n            if arg is not None:\n                assert arg > 0\n\n            def set_func(func):\n                self.__init__(func,\n                              overflow=overflow,\n                              _bound_methods=_bound_methods)\n                self.allotted_time = arg\n                return self\n\n            return set_func\n\n        else:\n            # Non-parametrized decorator\n            self.allotted_time = None\n            return self\n\n    def __init__(self,\n                 func: Callable, *,\n                 overflow: Optional[Callable] = None,\n                 _bound_methods: Optional[WeakKeyDictionary] = None):\n        assert callable(func)\n        self.func = func\n        self.overflow = overflow\n        functools.update_wrapper(self, func)\n\n        self.no_call_before = 0\n        self.last_call_duration = None\n\n        # Used by __get__; see a comment there\n        if _bound_methods is None:\n            self.__bound_methods = WeakKeyDictionary()\n        else:\n            self.__bound_methods = _bound_methods\n\n    # If we are wrapping a method, __get__ is called to bind it.\n    # Create a wrapper for each instance and store it, so that each instance's\n    # method gets its share of time.\n    def __get__(self, inst, cls):\n        if inst is None:\n            return self\n\n        if inst not in self.__bound_methods:\n            # __bound_methods caches bound methods per instance. This is not\n            # done for perfoamnce. Bound methods can be rebound, even to\n            # different instances or even classes, e.g.\n            # >>> x = f.__get__(a, A)\n            # >>> y = x.__get__(b, B)\n            # >>> z = x.__get__(a, A)\n            # After this, we want `x is z`, there shared caching. This looks\n            # bizarre, but let's keep it safe. At least binding to the same\n            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably\n            # possible.\n            cls = type(self)\n            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)\n            decorator = cls(\n                self.allotted_time,\n                overflow=bound_overflow,\n                _bound_methods=self.__bound_methods)\n            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))\n\n        return self.__bound_methods[inst]\n\n    def __call__(self, *args, **kwargs):\n        if time.perf_counter() < self.no_call_before:\n            if self.overflow is None:\n                return None\n            return self.overflow(*args, **kwargs)\n        return self.call(*args, **kwargs)\n\n    def call(self, *args, **kwargs):\n        start = time.perf_counter()\n        result = self.func(*args, **kwargs)\n        self.last_call_duration = time.perf_counter() - start\n        if self.allotted_time is not None:\n            if self.overflow is None:\n                assert result is None, \"skippable function cannot return a result\"\n            self.no_call_before = start + self.last_call_duration / self.allotted_time\n        return result",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 187,
                                "end_lineno": 312,
                                "parent": null
                            }
                        },
                        {
                            "file_name": "Orange/util.py",
                            "type": "method",
                            "name": "allot.__call__",
                            "content": "class allot:\n    \"\"\"\n    Decorator that allows a function only a specified portion of time per call.\n\n    Usage:\n\n    ```\n    @allot(0.2, overflow=of)\n    def f(x):\n       ...\n    ```\n\n    The above function is allotted 0.2 second per second. If it runs for 0.2 s,\n    all subsequent calls in the next second (after the start of the call) are\n    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are\n    ignored. If it runs for a second, subsequent calls are ignored for 5 s.\n\n    An optional overflow function can be given as a keyword argument\n    `overflow`. This function must have the same signature as the wrapped\n    function and is called instead of the original when the call is blocked.\n\n    If the overflow function is not given, the wrapped function must not return\n    result. This is because without the overflow function, the wrapper has no\n    value to return when the call is skipped.\n\n    The decorator adds a method `call` to force the call, e.g. by calling\n    f.call(5), in the above case. The used up time still counts for the\n    following (non-forced) calls.\n\n    The decorator also adds two attributes:\n\n    - f.last_call_duration is the duration of the last call (in seconds)\n    - f.no_call_before contains the time (time.perf_counter) when the next\n        call will be made.\n\n    The decorator can be used for functions and for methods.\n\n    A non-parametrized decorator doesn't block any calls and only adds\n    last_call_duration, so that it can be used for timing.\n    \"\"\"\n    def __new__(cls: type, arg: Union[None, float, Callable], *,\n                overflow: Optional[Callable] = None,\n                _bound_methods: Optional[WeakKeyDictionary] = None):\n        self = super().__new__(cls)\n\n        if arg is None or isinstance(arg, float):\n            # Parametrized decorator\n            if arg is not None:\n                assert arg > 0\n\n            def set_func(func):\n                self.__init__(func,\n                              overflow=overflow,\n                              _bound_methods=_bound_methods)\n                self.allotted_time = arg\n                return self\n\n            return set_func\n\n        else:\n            # Non-parametrized decorator\n            self.allotted_time = None\n            return self\n\n    def __init__(self,\n                 func: Callable, *,\n                 overflow: Optional[Callable] = None,\n                 _bound_methods: Optional[WeakKeyDictionary] = None):\n        assert callable(func)\n        self.func = func\n        self.overflow = overflow\n        functools.update_wrapper(self, func)\n\n        self.no_call_before = 0\n        self.last_call_duration = None\n\n        # Used by __get__; see a comment there\n        if _bound_methods is None:\n            self.__bound_methods = WeakKeyDictionary()\n        else:\n            self.__bound_methods = _bound_methods\n\n    # If we are wrapping a method, __get__ is called to bind it.\n    # Create a wrapper for each instance and store it, so that each instance's\n    # method gets its share of time.\n    def __get__(self, inst, cls):\n        if inst is None:\n            return self\n\n        if inst not in self.__bound_methods:\n            # __bound_methods caches bound methods per instance. This is not\n            # done for perfoamnce. Bound methods can be rebound, even to\n            # different instances or even classes, e.g.\n            # >>> x = f.__get__(a, A)\n            # >>> y = x.__get__(b, B)\n            # >>> z = x.__get__(a, A)\n            # After this, we want `x is z`, there shared caching. This looks\n            # bizarre, but let's keep it safe. At least binding to the same\n            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably\n            # possible.\n            cls = type(self)\n            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)\n            decorator = cls(\n                self.allotted_time,\n                overflow=bound_overflow,\n                _bound_methods=self.__bound_methods)\n            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))\n\n        return self.__bound_methods[inst]\n\n    def __call__(self, *args, **kwargs):\n        if time.perf_counter() < self.no_call_before:\n            if self.overflow is None:\n                return None\n            return self.overflow(*args, **kwargs)\n        return self.call(*args, **kwargs)\n\n    def call(self, *args, **kwargs):\n        start = time.perf_counter()\n        result = self.func(*args, **kwargs)\n        self.last_call_duration = time.perf_counter() - start\n        if self.allotted_time is not None:\n            if self.overflow is None:\n                assert result is None, \"skippable function cannot return a result\"\n            self.no_call_before = start + self.last_call_duration / self.allotted_time\n        return result",
                            "ast_type_str": "ClassDef",
                            "start_lineno": 297,
                            "end_lineno": 302,
                            "parent": {
                                "file_name": "Orange/util.py",
                                "type": "class",
                                "name": "allot",
                                "content": "class allot:\n    \"\"\"\n    Decorator that allows a function only a specified portion of time per call.\n\n    Usage:\n\n    ```\n    @allot(0.2, overflow=of)\n    def f(x):\n       ...\n    ```\n\n    The above function is allotted 0.2 second per second. If it runs for 0.2 s,\n    all subsequent calls in the next second (after the start of the call) are\n    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are\n    ignored. If it runs for a second, subsequent calls are ignored for 5 s.\n\n    An optional overflow function can be given as a keyword argument\n    `overflow`. This function must have the same signature as the wrapped\n    function and is called instead of the original when the call is blocked.\n\n    If the overflow function is not given, the wrapped function must not return\n    result. This is because without the overflow function, the wrapper has no\n    value to return when the call is skipped.\n\n    The decorator adds a method `call` to force the call, e.g. by calling\n    f.call(5), in the above case. The used up time still counts for the\n    following (non-forced) calls.\n\n    The decorator also adds two attributes:\n\n    - f.last_call_duration is the duration of the last call (in seconds)\n    - f.no_call_before contains the time (time.perf_counter) when the next\n        call will be made.\n\n    The decorator can be used for functions and for methods.\n\n    A non-parametrized decorator doesn't block any calls and only adds\n    last_call_duration, so that it can be used for timing.\n    \"\"\"\n    def __new__(cls: type, arg: Union[None, float, Callable], *,\n                overflow: Optional[Callable] = None,\n                _bound_methods: Optional[WeakKeyDictionary] = None):\n        self = super().__new__(cls)\n\n        if arg is None or isinstance(arg, float):\n            # Parametrized decorator\n            if arg is not None:\n                assert arg > 0\n\n            def set_func(func):\n                self.__init__(func,\n                              overflow=overflow,\n                              _bound_methods=_bound_methods)\n                self.allotted_time = arg\n                return self\n\n            return set_func\n\n        else:\n            # Non-parametrized decorator\n            self.allotted_time = None\n            return self\n\n    def __init__(self,\n                 func: Callable, *,\n                 overflow: Optional[Callable] = None,\n                 _bound_methods: Optional[WeakKeyDictionary] = None):\n        assert callable(func)\n        self.func = func\n        self.overflow = overflow\n        functools.update_wrapper(self, func)\n\n        self.no_call_before = 0\n        self.last_call_duration = None\n\n        # Used by __get__; see a comment there\n        if _bound_methods is None:\n            self.__bound_methods = WeakKeyDictionary()\n        else:\n            self.__bound_methods = _bound_methods\n\n    # If we are wrapping a method, __get__ is called to bind it.\n    # Create a wrapper for each instance and store it, so that each instance's\n    # method gets its share of time.\n    def __get__(self, inst, cls):\n        if inst is None:\n            return self\n\n        if inst not in self.__bound_methods:\n            # __bound_methods caches bound methods per instance. This is not\n            # done for perfoamnce. Bound methods can be rebound, even to\n            # different instances or even classes, e.g.\n            # >>> x = f.__get__(a, A)\n            # >>> y = x.__get__(b, B)\n            # >>> z = x.__get__(a, A)\n            # After this, we want `x is z`, there shared caching. This looks\n            # bizarre, but let's keep it safe. At least binding to the same\n            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably\n            # possible.\n            cls = type(self)\n            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)\n            decorator = cls(\n                self.allotted_time,\n                overflow=bound_overflow,\n                _bound_methods=self.__bound_methods)\n            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))\n\n        return self.__bound_methods[inst]\n\n    def __call__(self, *args, **kwargs):\n        if time.perf_counter() < self.no_call_before:\n            if self.overflow is None:\n                return None\n            return self.overflow(*args, **kwargs)\n        return self.call(*args, **kwargs)\n\n    def call(self, *args, **kwargs):\n        start = time.perf_counter()\n        result = self.func(*args, **kwargs)\n        self.last_call_duration = time.perf_counter() - start\n        if self.allotted_time is not None:\n            if self.overflow is None:\n                assert result is None, \"skippable function cannot return a result\"\n            self.no_call_before = start + self.last_call_duration / self.allotted_time\n        return result",
                                "ast_type_str": "ClassDef",
                                "start_lineno": 187,
                                "end_lineno": 312,
                                "parent": null
                            }
                        }
                    ],
                    "added_entities": [],
                    "deleted_entities": []
                }
            ]
        }
    ],
    "old_commit_hash": "f813020a9c0a0450df07ba20529b117665426249^",
    "new_commit_hash": "f813020a9c0a0450df07ba20529b117665426249",
    "commit_message": "allot: Use thread_time/process_time instead of perf_counter",
    "commit_date": "2023-11-11T00:34:30+01:00",
    "metadata": {}
}
{
    "repo_name": "orange3",
    "new_commit_hash": "f813020a9c0a0450df07ba20529b117665426249",
    "test_file_codes": [
        "from itertools import count\nimport time\nimport os\nimport unittest\nfrom unittest.mock import Mock, patch\nimport warnings\n\nimport numpy as np\nimport scipy.sparse as sp\n\nfrom Orange.util import export_globals, flatten, deprecated, try_, deepgetattr, \\\n    OrangeDeprecationWarning, nan_eq, nan_hash_stand, Registry, namegen\nfrom Orange.data.util import vstack, hstack, array_equal\nfrom Orange.statistics.util import stats\nfrom Orange.tests.test_statistics import dense_sparse\nfrom Orange.util import wrap_callback, get_entry_point, allot\n\nSOMETHING = 0xf00babe\n\n\nclass TestUtil(unittest.TestCase):\n    def test_get_entry_point(self):\n        # pylint: disable=import-outside-toplevel\n        from Orange.canvas.__main__ import main as real_main\n        main = get_entry_point(\"Orange3\", \"gui_scripts\", \"orange-canvas\")\n        self.assertIs(main, real_main)\n\n    def test_export_globals(self):\n        self.assertEqual(sorted(export_globals(globals(), __name__)),\n                         ['SOMETHING', 'TestAllot', 'TestUtil'])\n\n    def test_flatten(self):\n        self.assertEqual(list(flatten([[1, 2], [3]])), [1, 2, 3])\n\n    def test_deprecated(self):\n        @deprecated\n        def identity(x):\n            return x\n\n        with self.assertWarns(DeprecationWarning) as cm:\n            x = identity(10)\n        self.assertEqual(x, 10)\n        self.assertTrue('deprecated' in cm.warning.args[0])\n        self.assertTrue('identity' in cm.warning.args[0])\n\n    def test_try_(self):\n        self.assertTrue(try_(lambda: np.ones(3).any()))\n        self.assertFalse(try_(lambda: 1 / 0))\n        self.assertEqual(try_(len, default=SOMETHING), SOMETHING)\n\n    def test_reprable(self):\n        # pylint: disable=import-outside-toplevel\n        from Orange.data import ContinuousVariable\n        from Orange.preprocess.impute import ReplaceUnknownsRandom\n        from Orange.statistics.distribution import Continuous\n        from Orange.classification import LogisticRegressionLearner\n\n        var = ContinuousVariable('x')\n        transform = ReplaceUnknownsRandom(var, Continuous(1, var))\n\n        self.assertEqual(repr(transform).replace('\\n', '').replace(' ', ''),\n                         \"ReplaceUnknownsRandom(\"\n                         \"variable=ContinuousVariable(name='x',number_of_decimals=3),\"\n                         \"distribution=Continuous([[0.],[0.]]))\")\n\n        # GH 2275\n        logit = LogisticRegressionLearner()\n        for _ in range(2):\n            self.assertEqual(repr(logit), 'LogisticRegressionLearner()')\n\n    def test_deepgetattr(self):\n        class a:  # pylint: disable=invalid-name\n            l = []\n        self.assertTrue(deepgetattr(a, 'l.__len__.__call__'), a.l.__len__.__call__)\n        self.assertTrue(deepgetattr(a, 'l.__nx__.__x__', 42), 42)\n        self.assertRaises(AttributeError, lambda: deepgetattr(a, 'l.__nx__.__x__'))\n\n    def test_nan_eq(self):\n        self.assertTrue(nan_eq(float(\"nan\"), float(\"nan\")))\n        self.assertTrue(nan_eq(1, 1.0))\n        self.assertFalse(nan_eq(float(\"nan\"), 1))\n        self.assertFalse(nan_eq(1, float(\"nan\")))\n        self.assertFalse(nan_eq(float(\"inf\"), float(\"nan\")))\n        self.assertFalse(nan_eq(float(\"nan\"), float(\"inf\")))\n        self.assertFalse(nan_eq(1, 2))\n        self.assertFalse(nan_eq(None, 2))\n        self.assertFalse(nan_eq(2, None))\n\n    def test_nan_hash_stand(self):\n        self.assertEqual(hash(nan_hash_stand(float(\"nan\"))),\n                         hash(nan_hash_stand(float(\"nan\"))))\n\n    def test_vstack(self):\n        numpy = np.array([[1., 2.], [3., 4.]])\n        csr = sp.csr_matrix(numpy)\n        csc = sp.csc_matrix(numpy)\n\n        self.assertCorrectArrayType(\n            vstack([numpy, numpy]),\n            shape=(4, 2), sparsity=\"dense\")\n        self.assertCorrectArrayType(\n            vstack([csr, numpy]),\n            shape=(4, 2), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            vstack([numpy, csc]),\n            shape=(4, 2), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            vstack([csc, csr]),\n            shape=(4, 2), sparsity=\"sparse\")\n\n    def test_hstack(self):\n        numpy = np.array([[1., 2.], [3., 4.]])\n        csr = sp.csr_matrix(numpy)\n        csc = sp.csc_matrix(numpy)\n\n        self.assertCorrectArrayType(\n            hstack([numpy, numpy]),\n            shape=(2, 4), sparsity=\"dense\")\n        self.assertCorrectArrayType(\n            hstack([csr, numpy]),\n            shape=(2, 4), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            hstack([numpy, csc]),\n            shape=(2, 4), sparsity=\"sparse\")\n        self.assertCorrectArrayType(\n            hstack([csc, csr]),\n            shape=(2, 4), sparsity=\"sparse\")\n\n    def assertCorrectArrayType(self, array, shape, sparsity):\n        self.assertEqual(array.shape, shape)\n        self.assertEqual([\"dense\", \"sparse\"][sp.issparse(array)], sparsity)\n\n    @unittest.skipUnless(os.environ.get('ORANGE_DEPRECATIONS_ERROR'),\n                         'ORANGE_DEPRECATIONS_ERROR not set')\n    def test_raise_deprecations(self):\n        with self.assertRaises(OrangeDeprecationWarning):\n            warnings.warn('foo', OrangeDeprecationWarning)\n\n    def test_stats_sparse(self):\n        # pylint: disable=import-outside-toplevel\n        from Orange.data import Table\n        data = Table(\"iris\")\n        sparse_x = sp.csr_matrix(data.X)\n        self.assertTrue(stats(data.X).all() == stats(sparse_x).all())\n\n    @dense_sparse\n    def test_array_equal(self, array):\n        a1 = array([[0., 2.], [3., np.nan]])\n        a2 = array([[0., 2.], [3., np.nan]])\n        self.assertTrue(array_equal(a1, a2))\n\n        a3 = np.array([[0., 2.], [3., np.nan]])\n        self.assertTrue(array_equal(a1, a3))\n        self.assertTrue(array_equal(a3, a1))\n\n    @dense_sparse\n    def test_array_not_equal(self, array):\n        a1 = array([[0., 2.], [3., np.nan]])\n        a2 = array([[0., 2.], [4., np.nan]])\n        self.assertFalse(array_equal(a1, a2))\n\n        a3 = array([[0., 2.], [3., np.nan], [4., 5.]])\n        self.assertFalse(array_equal(a1, a3))\n\n    def test_csc_array_equal(self):\n        a1 = sp.csc_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        a2 = sp.csc_matrix(([5, 1, 4], ([1, 0, 0], [2, 0, 2])), shape=(2, 3))\n        with warnings.catch_warnings():\n            # this is just inefficiency in tests, not the tested code\n            warnings.filterwarnings(\"ignore\", \".*\", sp.SparseEfficiencyWarning)\n            a2[0, 1] = 0  # explicitly setting to 0\n        self.assertTrue(array_equal(a1, a2))\n\n    def test_csc_scr_equal(self):\n        a1 = sp.csc_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        a2 = sp.csr_matrix(([5, 1, 4], ([1, 0, 0], [2, 0, 2])), shape=(2, 3))\n        self.assertTrue(array_equal(a1, a2))\n\n        a1 = sp.csc_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        a2 = sp.csr_matrix(([1, 4, 5], ([0, 0, 1], [0, 2, 2])), shape=(2, 3))\n        self.assertTrue(array_equal(a1, a2))\n\n    def test_csc_unordered_array_equal(self):\n        a1 = sp.csc_matrix(([1, 4, 5], [0, 0, 1], [0, 1, 1, 3]), shape=(2, 3))\n        a2 = sp.csc_matrix(([1, 5, 4], [0, 1, 0], [0, 1, 1, 3]), shape=(2, 3))\n        self.assertTrue(array_equal(a1, a2))\n\n    def test_wrap_callback(self):\n        def func(i):\n            return i\n\n        f = wrap_callback(func, start=0, end=0.8)\n        self.assertEqual(f(0), 0)\n        self.assertEqual(round(f(0.1), 2), 0.08)\n        self.assertEqual(f(1), 0.8)\n\n        f = wrap_callback(func, start=0.1, end=0.8)\n        self.assertEqual(f(0), 0.1)\n        self.assertEqual(f(0.1), 0.17)\n        self.assertEqual(f(1), 0.8)\n\n    def test_registry(self):\n        # pylint: disable=invalid-name, unused-variable\n        class A(metaclass=Registry):\n            pass\n\n        class BBB(A):\n            pass\n\n        class CC(A):\n            pass\n\n        class DDDD(BBB):\n            pass\n\n        self.assertEqual(set(A), {\"BBB\", \"CC\", \"DDDD\"})\n        self.assertEqual(str(A), \"A({BBB, CC, DDDD})\")\n\n        class D(metaclass=Registry):\n            pass\n\n        self.assertEqual(set(A), {\"BBB\", \"CC\", \"DDDD\"})\n        self.assertEqual(str(A), \"A({BBB, CC, DDDD})\")\n        self.assertEqual(set(D), set())\n        self.assertEqual(str(D), \"D({})\")\n\n        class E(D):\n            pass\n\n        self.assertEqual(set(A), {\"BBB\", \"CC\", \"DDDD\"})\n        self.assertEqual(str(A), \"A({BBB, CC, DDDD})\")\n        self.assertEqual(set(D), set(\"E\"))\n        self.assertEqual(str(D), \"D({E})\")\n\n    def test_namegen(self):\n        self.assertEqual([name for name, _ in zip(namegen(), range(3))],\n                         [\"_0\", \"_1\", \"_2\"])\n\n        self.assertEqual([name for name, _ in zip(namegen(\"foo \"), range(3))],\n                         [\"foo 0\", \"foo 1\", \"foo 2\"])\n\n        self.assertEqual([name for name, _ in zip(namegen(\"foo \", 2, spec_count=count), range(3))],\n                         [\"foo 2\", \"foo 3\", \"foo 4\"])\n\n\nclass TestAllot(unittest.TestCase):\n    # names of functions within tests don't matter, pylint: disable=invalid-name\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n        patcher.start()\n        self.addCleanup(patcher.stop)\n\n    def test_duration(self):\n        @allot\n        def f(x, y):\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n    def test_skipping(self):\n        uf = Mock()\n\n        @allot(0.5)\n        def f(x, y):\n            uf()\n            self.assertEqual(x, 5)\n            self.assertEqual(y, 6)\n            time.sleep(0.2)\n\n        f(5, y=6)\n        uf.assert_called_once()\n        uf.reset_mock()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        f(5, y=6)\n        uf.assert_not_called()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        time.sleep(0.35)\n        f(5, y=6)\n        uf.assert_called_once()\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        class A:\n            def __init__(self):\n                self.x = self.y = 0\n\n            @allot(0.5)\n            def f(self, x, y):\n                self.x = x\n                self.y = y\n                time.sleep(0.2)\n\n        a = A()\n        a2 = A()\n        a.f(5, y=6)\n        self.assertEqual(a.x, 5)\n        self.assertEqual(a.y, 6)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        a.f(7, y=8)\n        self.assertEqual(a.x, 5)  # no call, `a` is unchanged\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n\n        time.sleep(0.35)\n        a.f(9, y=10)\n        a2.f(11, y=12)\n        self.assertEqual(a.x, 9)\n        self.assertGreaterEqual(f.last_call_duration, 0.2)\n        # a2.f is not being skipped because of a.f - bound methods for different\n        # instance are separate\n        self.assertEqual(a2.x, 11)\n\n        # forced calls work\n        a.f.call(11, 12)\n        self.assertEqual(a.x, 11)\n\n        # forced calls block later non-forced calls\n        a = A()\n        a.f.call(13, y=14)\n        self.assertEqual(a.x, 13)\n        a.f(15, y=16)\n        self.assertEqual(a.x, 13)\n\n    def test_overflow(self):\n        uf = Mock()\n        of = Mock(return_value=13)\n\n        @allot(0.1, overflow=of)\n        def f(*_, **__):\n            uf()\n            time.sleep(0.1)\n            return 42\n\n        self.assertEqual(f(5, y=6), 42)\n        uf.assert_called()\n        uf.reset_mock()\n        of.assert_not_called()\n\n        self.assertEqual(f(7, y=8), 13)\n        uf.assert_not_called()\n        of.assert_called_with(7, y=8)\n\n    def test_assert_no_result(self):\n        # pylint: disable=function-redefined\n        @allot(0.1)\n        def f():\n            return 42\n\n        self.assertRaises(AssertionError, f)\n\n        @allot(0.05, overflow=lambda x: 3 * x)\n        def f(x):\n            time.sleep(0.6)\n            return 2 * x\n\n        self.assertEqual(f(3), 6)\n        self.assertEqual(f(3), 9)\n\n        @allot\n        def f():\n            return 42\n\n        self.assertEqual(f(), 42)\n\n    def test_assertion(self):\n        self.assertRaises(AssertionError, allot, \"foo\")\n        self.assertRaises(AssertionError, allot, 0.0)\n        self.assertRaises(AssertionError, allot, -1.0)\n\n    def test_getter(self):\n        class A:\n            @allot\n            def f(self):\n                pass\n\n        # getter for class must not do anything with the method\n        self.assertIs(A.f, A.__dict__[\"f\"])\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
    ],
    "test_file_names": [
        "test_1.py"
    ],
    "setup_res_code": 0,
    "setup_res_stdout": "Starting Orange installation attempts...\nAttempting installation with Python 3.7...\nCompiling Orange/classification/_tree_scorers.pyx because it changed.\nCompiling Orange/data/_contingency.pyx because it changed.\nCompiling Orange/data/_io.pyx because it changed.\nCompiling Orange/data/_valuecount.pyx because it changed.\nCompiling Orange/data/_variable.pyx because it changed.\nCompiling Orange/distance/_distance.pyx because it changed.\nCompiling Orange/preprocess/_discretize.pyx because it changed.\nCompiling Orange/preprocess/_relieff.pyx because it changed.\nCompiling Orange/projection/_som.pyx because it changed.\n[1/9] Cythonizing Orange/classification/_tree_scorers.pyx\n[2/9] Cythonizing Orange/data/_contingency.pyx\n[3/9] Cythonizing Orange/data/_io.pyx\n[4/9] Cythonizing Orange/data/_valuecount.pyx\n[5/9] Cythonizing Orange/data/_variable.pyx\n[6/9] Cythonizing Orange/distance/_distance.pyx\n[7/9] Cythonizing Orange/preprocess/_discretize.pyx\n[8/9] Cythonizing Orange/preprocess/_relieff.pyx\n[9/9] Cythonizing Orange/projection/_som.pyx\nrunning build_ext\nbuilding 'Orange.classification._simple_tree' extension\ncreating build\ncreating build/temp.linux-x86_64-3.7\ncreating build/temp.linux-x86_64-3.7/Orange\ncreating build/temp.linux-x86_64-3.7/Orange/classification\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/classification/_simple_tree.c -o build/temp.linux-x86_64-3.7/Orange/classification/_simple_tree.o\ncreating build/lib.linux-x86_64-3.7\ncreating build/lib.linux-x86_64-3.7/Orange\ncreating build/lib.linux-x86_64-3.7/Orange/classification\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/classification/_simple_tree.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/classification/_simple_tree.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.widgets.utils._grid_density' extension\ncreating build/temp.linux-x86_64-3.7/Orange/widgets\ncreating build/temp.linux-x86_64-3.7/Orange/widgets/utils\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/widgets/utils/_grid_density.cpp -o build/temp.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.o\ncreating build/lib.linux-x86_64-3.7/Orange/widgets\ncreating build/lib.linux-x86_64-3.7/Orange/widgets/utils\nc++ -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.classification._tree_scorers' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/classification/_tree_scorers.c -o build/temp.linux-x86_64-3.7/Orange/classification/_tree_scorers.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/classification/_tree_scorers.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/classification/_tree_scorers.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._contingency' extension\ncreating build/temp.linux-x86_64-3.7/Orange/data\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_contingency.c -o build/temp.linux-x86_64-3.7/Orange/data/_contingency.o\ncreating build/lib.linux-x86_64-3.7/Orange/data\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_contingency.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_contingency.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._io' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_io.c -o build/temp.linux-x86_64-3.7/Orange/data/_io.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_io.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_io.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._valuecount' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_valuecount.c -o build/temp.linux-x86_64-3.7/Orange/data/_valuecount.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_valuecount.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_valuecount.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.data._variable' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/data/_variable.c -o build/temp.linux-x86_64-3.7/Orange/data/_variable.o\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/data/_variable.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/data/_variable.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.distance._distance' extension\ncreating build/temp.linux-x86_64-3.7/Orange/distance\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/distance/_distance.c -o build/temp.linux-x86_64-3.7/Orange/distance/_distance.o\ncreating build/lib.linux-x86_64-3.7/Orange/distance\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/distance/_distance.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/distance/_distance.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._discretize' extension\ncreating build/temp.linux-x86_64-3.7/Orange/preprocess\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/preprocess/_discretize.c -o build/temp.linux-x86_64-3.7/Orange/preprocess/_discretize.o\ncreating build/lib.linux-x86_64-3.7/Orange/preprocess\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/preprocess/_discretize.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/preprocess/_discretize.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._relieff' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/preprocess/_relieff.cpp -o build/temp.linux-x86_64-3.7/Orange/preprocess/_relieff.o\nc++ -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/preprocess/_relieff.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/preprocess/_relieff.cpython-37m-x86_64-linux-gnu.so\nbuilding 'Orange.projection._som' extension\ncreating build/temp.linux-x86_64-3.7/Orange/projection\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tools/deps/include -I/tools/deps/include/ncursesw -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/include/python3.7m -c Orange/projection/_som.c -o build/temp.linux-x86_64-3.7/Orange/projection/_som.o\ncreating build/lib.linux-x86_64-3.7/Orange/projection\ncc -pthread -shared -L/tools/deps/lib build/temp.linux-x86_64-3.7/Orange/projection/_som.o -L/home/gcpuser/.local/share/uv/python/cpython-3.7.9-linux-x86_64-gnu/lib -lm -lpython3.7m -o build/lib.linux-x86_64-3.7/Orange/projection/_som.cpython-37m-x86_64-linux-gnu.so\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_simple_tree.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.cpython-37m-x86_64-linux-gnu.so -> Orange/widgets/utils\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_tree_scorers.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/data/_contingency.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_io.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_valuecount.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_variable.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/distance/_distance.cpython-37m-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_discretize.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_relieff.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/projection/_som.cpython-37m-x86_64-linux-gnu.so -> Orange/projection\nrunning develop\nrunning egg_info\ncreating Orange3.egg-info\nwriting Orange3.egg-info/PKG-INFO\nwriting dependency_links to Orange3.egg-info/dependency_links.txt\nwriting entry points to Orange3.egg-info/entry_points.txt\nwriting requirements to Orange3.egg-info/requires.txt\nwriting top-level names to Orange3.egg-info/top_level.txt\nwriting manifest file 'Orange3.egg-info/SOURCES.txt'\nreading manifest file 'Orange3.egg-info/SOURCES.txt'\nreading manifest template 'MANIFEST.in'\nadding license file 'LICENSE'\nwriting manifest file 'Orange3.egg-info/SOURCES.txt'\nrunning build_ext\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_simple_tree.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/widgets/utils/_grid_density.cpython-37m-x86_64-linux-gnu.so -> Orange/widgets/utils\ncopying build/lib.linux-x86_64-3.7/Orange/classification/_tree_scorers.cpython-37m-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-3.7/Orange/data/_contingency.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_io.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_valuecount.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/data/_variable.cpython-37m-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-3.7/Orange/distance/_distance.cpython-37m-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_discretize.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/preprocess/_relieff.cpython-37m-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-3.7/Orange/projection/_som.cpython-37m-x86_64-linux-gnu.so -> Orange/projection\nCreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.37.0.dev0+f813020 to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249\nProcessing dependencies for Orange3==3.37.0.dev0+f813020\nSearching for xlsxwriter\nReading https://pypi.org/simple/xlsxwriter/\nDownloading https://files.pythonhosted.org/packages/a7/ea/53d1fe468e63e092cf16e2c18d16f50c29851242f9dd12d6a66e0d7f0d02/XlsxWriter-3.2.0-py3-none-any.whl#sha256=ecfd5405b3e0e228219bcaf24c2ca0915e012ca9464a14048021d21a995d490e\nBest match: XlsxWriter 3.2.0\nProcessing XlsxWriter-3.2.0-py3-none-any.whl\nInstalling XlsxWriter-3.2.0-py3-none-any.whl to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages\nAdding XlsxWriter 3.2.0 to easy-install.pth file\nInstalling vba_extract.py script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/XlsxWriter-3.2.0-py3.7.egg\nSearching for xlrd>=1.2.0\nReading https://pypi.org/simple/xlrd/\nDownloading https://files.pythonhosted.org/packages/a6/0c/c2a72d51fe56e08a08acc85d13013558a2d793028ae7385448a6ccdfae64/xlrd-2.0.1-py2.py3-none-any.whl#sha256=6a33ee89877bd9abc1158129f6e94be74e2679636b8a205b43b85206c3f0bbdd\nBest match: xlrd 2.0.1\nProcessing xlrd-2.0.1-py2.py3-none-any.whl\nInstalling xlrd-2.0.1-py2.py3-none-any.whl to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages\nAdding xlrd 2.0.1 to easy-install.pth file\nInstalling runxlrd.py script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/xlrd-2.0.1-py3.7.egg\nSearching for xgboost>=1.7.4\nReading https://pypi.org/simple/xgboost/\nDownloading https://files.pythonhosted.org/packages/48/bc/05d7db90d421c5e3d681a12fd1eb087e37bf2e9bbe2b105422d6319ecc92/xgboost-2.1.3-py3-none-manylinux2014_x86_64.whl#sha256=32a43526208fe676527c698cb852e0e9515e6d7294143780e476d335290a131b\nBest match: xgboost 2.1.3\nProcessing xgboost-2.1.3-py3-none-manylinux2014_x86_64.whl\nInstalling xgboost-2.1.3-py3-none-manylinux2014_x86_64.whl to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages\nAdding xgboost 2.1.3 to easy-install.pth file\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/xgboost-2.1.3-py3.7-linux-x86_64.egg\nSearching for serverfiles\nReading https://pypi.org/simple/serverfiles/\nDownloading https://files.pythonhosted.org/packages/33/36/794fe1c4ed29b0f56a26d72e956baf0285d8fe9e29faf36797a28a8ad45b/serverfiles-0.3.1.tar.gz#sha256=5e10fc32e758791e3735bc08bce2ed4702a83b1e45ab96c5d59cc8aeecfbebe1\nBest match: serverfiles 0.3.1\nProcessing serverfiles-0.3.1.tar.gz\nWriting /tmp/easy_install-4qfgx7wn/serverfiles-0.3.1/setup.cfg\nRunning serverfiles-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-4qfgx7wn/serverfiles-0.3.1/egg-dist-tmp-xrjvzsrh\ncreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/serverfiles-0.3.1-py3.7.egg\nExtracting serverfiles-0.3.1-py3.7.egg to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages\nAdding serverfiles 0.3.1 to easy-install.pth file\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/serverfiles-0.3.1-py3.7.egg\nSearching for scipy>=1.9\nReading https://pypi.org/simple/scipy/\nDownloading https://files.pythonhosted.org/packages/d9/7b/2b8ac283cf32465ed08bc20a83d559fe7b174a484781702ba8accea001d6/scipy-1.15.0.tar.gz#sha256=300742e2cc94e36a2880ebe464a1c8b4352a7b0f3e36ec3d2ac006cdbe0219ac\nBest match: scipy 1.15.0\nProcessing scipy-1.15.0.tar.gz\nVerifying Orange installation...\n❌ Orange verification failed\nPython 3.7 installation failed, trying Python 3.8...\nAttempting installation with Python 3.8...\nrunning build_ext\nbuilding 'Orange.classification._simple_tree' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/classification\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/classification/_simple_tree.c -o build/temp.linux-x86_64-cpython-38/Orange/classification/_simple_tree.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/classification\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/classification/_simple_tree.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/classification/_simple_tree.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.widgets.utils._grid_density' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/widgets/utils\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/widgets/utils/_grid_density.cpp -o build/temp.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/widgets/utils\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -pthread -shared build/temp.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.classification._tree_scorers' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/classification/_tree_scorers.c -o build/temp.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._contingency' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/data\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_contingency.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_contingency.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/data\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_contingency.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_contingency.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._io' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_io.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_io.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_io.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_io.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._valuecount' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_valuecount.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_valuecount.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_valuecount.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_valuecount.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.data._variable' extension\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/data/_variable.c -o build/temp.linux-x86_64-cpython-38/Orange/data/_variable.o\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/data/_variable.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/data/_variable.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.distance._distance' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/distance\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/distance/_distance.c -o build/temp.linux-x86_64-cpython-38/Orange/distance/_distance.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/distance\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/distance/_distance.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/distance/_distance.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._discretize' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/preprocess\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/preprocess/_discretize.c -o build/temp.linux-x86_64-cpython-38/Orange/preprocess/_discretize.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/preprocess\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/preprocess/_discretize.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/preprocess/_discretize.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.preprocess._relieff' extension\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/preprocess/_relieff.cpp -o build/temp.linux-x86_64-cpython-38/Orange/preprocess/_relieff.o\nc++ -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -pthread -shared build/temp.linux-x86_64-cpython-38/Orange/preprocess/_relieff.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/preprocess/_relieff.cpython-38-x86_64-linux-gnu.so\nbuilding 'Orange.projection._som' extension\ncreating build/temp.linux-x86_64-cpython-38/Orange/projection\ncc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -fPIC -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include -I/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/include -I/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/include/python3.8 -c Orange/projection/_som.c -o build/temp.linux-x86_64-cpython-38/Orange/projection/_som.o\ncreating build/lib.linux-x86_64-cpython-38/Orange/projection\ncc -pthread -shared -Wl,--exclude-libs,ALL build/temp.linux-x86_64-cpython-38/Orange/projection/_som.o -L/home/gcpuser/.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib -lm -o build/lib.linux-x86_64-cpython-38/Orange/projection/_som.cpython-38-x86_64-linux-gnu.so\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_simple_tree.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.cpython-38-x86_64-linux-gnu.so -> Orange/widgets/utils\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_contingency.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_io.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_valuecount.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_variable.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/distance/_distance.cpython-38-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_discretize.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_relieff.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/projection/_som.cpython-38-x86_64-linux-gnu.so -> Orange/projection\nrunning develop\nrunning egg_info\nwriting Orange3.egg-info/PKG-INFO\nwriting dependency_links to Orange3.egg-info/dependency_links.txt\nwriting entry points to Orange3.egg-info/entry_points.txt\nwriting requirements to Orange3.egg-info/requires.txt\nwriting top-level names to Orange3.egg-info/top_level.txt\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_math.h won't be automatically included in the manifest: the path must be relative\ndependency /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative\nreading manifest file 'Orange3.egg-info/SOURCES.txt'\nreading manifest template 'MANIFEST.in'\nadding license file 'LICENSE'\nwriting manifest file 'Orange3.egg-info/SOURCES.txt'\nrunning build_ext\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_simple_tree.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/widgets/utils/_grid_density.cpython-38-x86_64-linux-gnu.so -> Orange/widgets/utils\ncopying build/lib.linux-x86_64-cpython-38/Orange/classification/_tree_scorers.cpython-38-x86_64-linux-gnu.so -> Orange/classification\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_contingency.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_io.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_valuecount.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/data/_variable.cpython-38-x86_64-linux-gnu.so -> Orange/data\ncopying build/lib.linux-x86_64-cpython-38/Orange/distance/_distance.cpython-38-x86_64-linux-gnu.so -> Orange/distance\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_discretize.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/preprocess/_relieff.cpython-38-x86_64-linux-gnu.so -> Orange/preprocess\ncopying build/lib.linux-x86_64-cpython-38/Orange/projection/_som.cpython-38-x86_64-linux-gnu.so -> Orange/projection\nCreating /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/Orange3.egg-link (link to .)\nAdding Orange3 3.37.0.dev0+f813020 to easy-install.pth file\nInstalling orange-canvas script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nInstalled /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249\nProcessing dependencies for Orange3==3.37.0.dev0+f813020\nSearching for XlsxWriter==3.2.0\nBest match: XlsxWriter 3.2.0\nAdding XlsxWriter 3.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for xlrd==2.0.1\nBest match: xlrd 2.0.1\nAdding xlrd 2.0.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for xgboost==2.1.3\nBest match: xgboost 2.1.3\nAdding xgboost 2.1.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for setuptools==75.3.0\nBest match: setuptools 75.3.0\nAdding setuptools 75.3.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for serverfiles==0.3.1\nBest match: serverfiles 0.3.1\nAdding serverfiles 0.3.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for scipy==1.10.1\nBest match: scipy 1.10.1\nAdding scipy 1.10.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for scikit-learn==1.3.2\nBest match: scikit-learn 1.3.2\nAdding scikit-learn 1.3.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for requests==2.32.3\nBest match: requests 2.32.3\nAdding requests 2.32.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for qtconsole==5.6.1\nBest match: qtconsole 5.6.1\nAdding qtconsole 5.6.1 to easy-install.pth file\nInstalling jupyter-qtconsole script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for PyYAML==6.0.2\nBest match: PyYAML 6.0.2\nAdding PyYAML 6.0.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for python-louvain==0.16\nBest match: python-louvain 0.16\nAdding python-louvain 0.16 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pyqtgraph==0.13.3\nBest match: pyqtgraph 0.13.3\nAdding pyqtgraph 0.13.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pygments==2.19.1\nBest match: pygments 2.19.1\nAdding pygments 2.19.1 to easy-install.pth file\nInstalling pygmentize script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pip==24.3.1\nBest match: pip 24.3.1\nAdding pip 24.3.1 to easy-install.pth file\nInstalling pip script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling pip3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pandas==2.0.3\nBest match: pandas 2.0.3\nAdding pandas 2.0.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for orange-widget-base==4.22.0\nBest match: orange-widget-base 4.22.0\nAdding orange-widget-base 4.22.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for orange-canvas-core==0.1.35\nBest match: orange-canvas-core 0.1.35\nAdding orange-canvas-core 0.1.35 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for openpyxl==3.1.5\nBest match: openpyxl 3.1.5\nAdding openpyxl 3.1.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for openTSNE==1.0.1\nBest match: openTSNE 1.0.1\nAdding openTSNE 1.0.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for numpy==1.24.4\nBest match: numpy 1.24.4\nAdding numpy 1.24.4 to easy-install.pth file\nInstalling f2py script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling f2py3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling f2py3.8 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for networkx==3.1\nBest match: networkx 3.1\nAdding networkx 3.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for matplotlib==3.7.5\nBest match: matplotlib 3.7.5\nAdding matplotlib 3.7.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for keyrings.alt==5.0.2\nBest match: keyrings.alt 5.0.2\nAdding keyrings.alt 5.0.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for keyring==25.5.0\nBest match: keyring 25.5.0\nAdding keyring 25.5.0 to easy-install.pth file\nInstalling keyring script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for joblib==1.4.2\nBest match: joblib 1.4.2\nAdding joblib 1.4.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for httpx==0.28.1\nBest match: httpx 0.28.1\nAdding httpx 0.28.1 to easy-install.pth file\nInstalling httpx script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for chardet==5.2.0\nBest match: chardet 5.2.0\nAdding chardet 5.2.0 to easy-install.pth file\nInstalling chardetect script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for catboost==1.2.7\nBest match: catboost 1.2.7\nAdding catboost 1.2.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for Bottleneck==1.4.0\nBest match: Bottleneck 1.4.0\nAdding Bottleneck 1.4.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for baycomp==1.0.3\nBest match: baycomp 1.0.3\nAdding baycomp 1.0.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for AnyQt==0.2.0\nBest match: AnyQt 0.2.0\nAdding AnyQt 0.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for nvidia-nccl-cu12==2.24.3\nBest match: nvidia-nccl-cu12 2.24.3\nAdding nvidia-nccl-cu12 2.24.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for threadpoolctl==3.5.0\nBest match: threadpoolctl 3.5.0\nAdding threadpoolctl 3.5.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for certifi==2024.12.14\nBest match: certifi 2024.12.14\nAdding certifi 2024.12.14 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for urllib3==2.2.3\nBest match: urllib3 2.2.3\nAdding urllib3 2.2.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for idna==3.10\nBest match: idna 3.10\nAdding idna 3.10 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for charset-normalizer==3.4.1\nBest match: charset-normalizer 3.4.1\nAdding charset-normalizer 3.4.1 to easy-install.pth file\nInstalling normalizer script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for packaging==24.2\nBest match: packaging 24.2\nAdding packaging 24.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for QtPy==2.4.2\nBest match: QtPy 2.4.2\nAdding QtPy 2.4.2 to easy-install.pth file\nInstalling qtpy script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for ipykernel==6.29.5\nBest match: ipykernel 6.29.5\nAdding ipykernel 6.29.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for jupyter-client==8.6.3\nBest match: jupyter-client 8.6.3\nAdding jupyter-client 8.6.3 to easy-install.pth file\nInstalling jupyter-kernel script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling jupyter-kernelspec script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling jupyter-run script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for jupyter-core==5.7.2\nBest match: jupyter-core 5.7.2\nAdding jupyter-core 5.7.2 to easy-install.pth file\nInstalling jupyter script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling jupyter-migrate script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling jupyter-troubleshoot script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for traitlets==5.14.3\nBest match: traitlets 5.14.3\nAdding traitlets 5.14.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for tzdata==2024.2\nBest match: tzdata 2024.2\nAdding tzdata 2024.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pytz==2024.2\nBest match: pytz 2024.2\nAdding pytz 2024.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for python-dateutil==2.9.0.post0\nBest match: python-dateutil 2.9.0.post0\nAdding python-dateutil 2.9.0.post0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for typing-extensions==4.12.2\nBest match: typing-extensions 4.12.2\nAdding typing-extensions 4.12.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/setuptools/_vendor\nSearching for qasync==0.27.1\nBest match: qasync 0.27.1\nAdding qasync 0.27.1 to easy-install.pth file\ndetected new path './setuptools/_vendor'\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for dictdiffer==0.9.0\nBest match: dictdiffer 0.9.0\nAdding dictdiffer 0.9.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for requests-cache==1.2.1\nBest match: requests-cache 1.2.1\nAdding requests-cache 1.2.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for commonmark==0.9.1\nBest match: commonmark 0.9.1\nAdding commonmark 0.9.1 to easy-install.pth file\nInstalling cmark script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for docutils==0.20.1\nBest match: docutils 0.20.1\nAdding docutils 0.20.1 to easy-install.pth file\nInstalling docutils script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for et-xmlfile==2.0.0\nBest match: et-xmlfile 2.0.0\nAdding et-xmlfile 2.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for importlib-resources==6.4.5\nBest match: importlib-resources 6.4.5\nAdding importlib-resources 6.4.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pyparsing==3.1.4\nBest match: pyparsing 3.1.4\nAdding pyparsing 3.1.4 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pillow==10.4.0\nBest match: pillow 10.4.0\nAdding pillow 10.4.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for kiwisolver==1.4.7\nBest match: kiwisolver 1.4.7\nAdding kiwisolver 1.4.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for fonttools==4.55.3\nBest match: fonttools 4.55.3\nAdding fonttools 4.55.3 to easy-install.pth file\nInstalling fonttools script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling pyftmerge script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling pyftsubset script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling ttx script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for cycler==0.12.1\nBest match: cycler 0.12.1\nAdding cycler 0.12.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for contourpy==1.1.1\nBest match: contourpy 1.1.1\nAdding contourpy 1.1.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for jaraco.context==6.0.1\nBest match: jaraco.context 6.0.1\nAdding jaraco.context 6.0.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for jaraco.classes==3.4.0\nBest match: jaraco.classes 3.4.0\nAdding jaraco.classes 3.4.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for jeepney==0.8.0\nBest match: jeepney 0.8.0\nAdding jeepney 0.8.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for SecretStorage==3.3.3\nBest match: SecretStorage 3.3.3\nAdding SecretStorage 3.3.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for importlib-metadata==8.5.0\nBest match: importlib-metadata 8.5.0\nAdding importlib-metadata 8.5.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for jaraco.functools==4.1.0\nBest match: jaraco.functools 4.1.0\nAdding jaraco.functools 4.1.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for httpcore==1.0.7\nBest match: httpcore 1.0.7\nAdding httpcore 1.0.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for anyio==4.5.2\nBest match: anyio 4.5.2\nAdding anyio 4.5.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for six==1.17.0\nBest match: six 1.17.0\nAdding six 1.17.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for plotly==5.24.1\nBest match: plotly 5.24.1\nAdding plotly 5.24.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for graphviz==0.20.3\nBest match: graphviz 0.20.3\nAdding graphviz 0.20.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for tornado==6.4.2\nBest match: tornado 6.4.2\nAdding tornado 6.4.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pyzmq==26.2.0\nBest match: pyzmq 26.2.0\nAdding pyzmq 26.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for psutil==6.1.1\nBest match: psutil 6.1.1\nAdding psutil 6.1.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for nest-asyncio==1.6.0\nBest match: nest-asyncio 1.6.0\nAdding nest-asyncio 1.6.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for matplotlib-inline==0.1.7\nBest match: matplotlib-inline 0.1.7\nAdding matplotlib-inline 0.1.7 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for ipython==8.12.3\nBest match: ipython 8.12.3\nAdding ipython 8.12.3 to easy-install.pth file\nInstalling ipython script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\nInstalling ipython3 script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for debugpy==1.8.11\nBest match: debugpy 1.8.11\nAdding debugpy 1.8.11 to easy-install.pth file\nInstalling debugpy script to /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/bin\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for comm==0.2.2\nBest match: comm 0.2.2\nAdding comm 0.2.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for platformdirs==4.3.6\nBest match: platformdirs 4.3.6\nAdding platformdirs 4.3.6 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for url-normalize==1.4.3\nBest match: url-normalize 1.4.3\nAdding url-normalize 1.4.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for cattrs==24.1.2\nBest match: cattrs 24.1.2\nAdding cattrs 24.1.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for attrs==24.3.0\nBest match: attrs 24.3.0\nAdding attrs 24.3.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for zipp==3.20.2\nBest match: zipp 3.20.2\nAdding zipp 3.20.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for backports.tarfile==1.2.0\nBest match: backports.tarfile 1.2.0\nbackports.tarfile 1.2.0 is already the active version in easy-install.pth\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/setuptools/_vendor\nSearching for more-itertools==10.5.0\nBest match: more-itertools 10.5.0\nAdding more-itertools 10.5.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for cryptography==44.0.0\nBest match: cryptography 44.0.0\nAdding cryptography 44.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for h11==0.14.0\nBest match: h11 0.14.0\nAdding h11 0.14.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for exceptiongroup==1.2.2\nBest match: exceptiongroup 1.2.2\nAdding exceptiongroup 1.2.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for sniffio==1.3.1\nBest match: sniffio 1.3.1\nAdding sniffio 1.3.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for tenacity==9.0.0\nBest match: tenacity 9.0.0\nAdding tenacity 9.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pexpect==4.9.0\nBest match: pexpect 4.9.0\nAdding pexpect 4.9.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for stack-data==0.6.3\nBest match: stack-data 0.6.3\nAdding stack-data 0.6.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for prompt-toolkit==3.0.48\nBest match: prompt-toolkit 3.0.48\nAdding prompt-toolkit 3.0.48 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pickleshare==0.7.5\nBest match: pickleshare 0.7.5\nAdding pickleshare 0.7.5 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for jedi==0.19.2\nBest match: jedi 0.19.2\nAdding jedi 0.19.2 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for decorator==5.1.1\nBest match: decorator 5.1.1\nAdding decorator 5.1.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for backcall==0.2.0\nBest match: backcall 0.2.0\nAdding backcall 0.2.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for cffi==1.17.1\nBest match: cffi 1.17.1\nAdding cffi 1.17.1 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for ptyprocess==0.7.0\nBest match: ptyprocess 0.7.0\nAdding ptyprocess 0.7.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pure-eval==0.2.3\nBest match: pure-eval 0.2.3\nAdding pure-eval 0.2.3 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for asttokens==3.0.0\nBest match: asttokens 3.0.0\nAdding asttokens 3.0.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for executing==2.1.0\nBest match: executing 2.1.0\nAdding executing 2.1.0 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for wcwidth==0.2.13\nBest match: wcwidth 0.2.13\nAdding wcwidth 0.2.13 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for parso==0.8.4\nBest match: parso 0.8.4\nAdding parso 0.8.4 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nSearching for pycparser==2.22\nBest match: pycparser 2.22\nAdding pycparser 2.22 to easy-install.pth file\n\nUsing /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages\nFinished processing dependencies for Orange3==3.37.0.dev0+f813020\nVerifying Orange installation...\n✅ Orange installation successful!\nSuccessfully installed orange using Python 3.8\n",
    "setup_res_stderr": "Using CPython 3.7.9\nCreating virtual environment at: .venv\nActivate with: source .venv/bin/activate\nResolved 18 packages in 49ms\nPrepared 18 packages in 18ms\nInstalled 18 packages in 124ms\n + cython==0.29.37\n + exceptiongroup==1.2.2\n + importlib-metadata==6.7.0\n + iniconfig==2.0.0\n + numpy==1.17.5\n + packaging==24.0\n + pluggy==1.2.0\n + pyqt5==5.15.10\n + pyqt5-qt5==5.15.16\n + pyqt5-sip==12.13.0\n + pyqtwebengine==5.15.6\n + pyqtwebengine-qt5==5.15.16\n + pytest==7.4.4\n + setuptools==59.8.0\n + tomli==2.0.1\n + typing-extensions==4.7.1\n + wheel==0.42.0\n + zipp==3.15.0\n  × No solution found when resolving dependencies:\n  ╰─▶ Because the current Python version (3.7.9) does not satisfy Python>=3.8 and all of:\n          pandas>=1.4.0,<=1.4.4\n          pandas>=1.5.1,<=1.5.3\n          pandas>=2.0.1,<=2.0.3\n      depend on Python>=3.8, we can conclude that all of:\n          pandas>=1.4.0,<=1.4.4\n          pandas>=1.5.1,<=1.5.3\n          pandas>=2.0.1,<=2.0.3\n       cannot be used.\n      And because only the following versions of pandas are available:\n          pandas<=1.4.0\n          pandas==1.4.1\n          pandas==1.4.2\n          pandas==1.4.3\n          pandas==1.4.4\n          pandas==1.5.0\n          pandas==1.5.1\n          pandas==1.5.2\n          pandas==1.5.3\n          pandas==2.0.0\n          pandas==2.0.1\n          pandas==2.0.2\n          pandas==2.0.3\n          pandas==2.1.0\n          pandas==2.1.1\n          pandas==2.1.2\n          pandas==2.1.3\n          pandas==2.1.4\n          pandas==2.2.0\n          pandas==2.2.1\n          pandas==2.2.2\n          pandas==2.2.3\n      we can conclude that all of:\n          pandas>=1.4.0,<1.5.0\n          pandas>1.5.0,<2.0.0\n          pandas>2.0.0,<2.1.0\n       cannot be used. (1)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.9 and pandas>=2.1.0 depends on Python>=3.9, we can\n      conclude that pandas>=2.1.0 cannot be used.\n      And because we know from (1) that all of:\n          pandas>=1.4.0,<1.5.0\n          pandas>1.5.0,<2.0.0\n          pandas>2.0.0,<2.1.0\n       cannot be used, we can conclude that all of:\n          pandas>=1.4.0,<1.5.0\n          pandas>1.5.0,<2.0.0\n          pandas>2.0.0\n       cannot be used.\n      And because you require one of:\n          pandas>=1.4.0,<1.5.0\n          pandas>1.5.0,<2.0.0\n          pandas>2.0.0\n      we can conclude that your requirements are unsatisfiable.\n\n      hint: Pre-releases are available for `pandas` in the requested range (e.g., 2.2.0rc0), but pre-releases weren't enabled\n      (try: `--prerelease=allow`)\n  × No solution found when resolving dependencies:\n  ╰─▶ Because the current Python version (3.7.9) does not satisfy Python>=3.8 and pyqtgraph>=0.13.1,<=0.13.3 depends on\n      Python>=3.8, we can conclude that pyqtgraph>=0.13.1,<=0.13.3 cannot be used.\n      And because only the following versions of pyqtgraph are available:\n          pyqtgraph<=0.13.1\n          pyqtgraph==0.13.2\n          pyqtgraph==0.13.3\n          pyqtgraph==0.13.4\n          pyqtgraph==0.13.5\n          pyqtgraph==0.13.6\n          pyqtgraph==0.13.7\n      we can conclude that pyqtgraph>=0.13.1,<0.13.4 cannot be used. (1)\n\n      Because the current Python version (3.7.9) does not satisfy Python>=3.9 and pyqtgraph>=0.13.4 depends on Python>=3.9, we\n      can conclude that pyqtgraph>=0.13.4 cannot be used.\n      And because we know from (1) that pyqtgraph>=0.13.1,<0.13.4 cannot be used, we can conclude that pyqtgraph>=0.13.1 cannot\n      be used.\n      And because you require pyqtgraph>=0.13.1, we can conclude that your requirements are unsatisfiable.\nResolved 2 packages in 4ms\nInstalled 2 packages in 33ms\n + psycopg2==2.9.9\n + pymssql==2.3.2\nResolved 5 packages in 20ms\nInstalled 4 packages in 600ms\n + joblib==1.3.2\n + scikit-learn==1.0.2\n + scipy==1.7.3\n + threadpoolctl==3.1.0\nOrange/classification/_simple_tree.c: In function ‘gain_ratio_c’:\nOrange/classification/_simple_tree.c:63:9: warning: implicit declaration of function ‘qsort_r’; did you mean ‘qsort’? [-Wimplicit-function-declaration]\n   63 |         qsort_r(base, nel, size, compar, thunk)\n      |         ^~~~~~~\nOrange/classification/_simple_tree.c:147:9: note: in expansion of macro ‘QSORT_R_FUNC’\n  147 |         QSORT_R_FUNC(examples, size, sizeof(struct Example), (void*) &compar_attr, compar_examples);\n      |         ^~~~~~~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/classification/_tree_scorers.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_2find_threshold_entropy’:\nOrange/classification/_tree_scorers.c:3426:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 3426 |   __pyx_t_7 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_6find_threshold_MSE’:\nOrange/classification/_tree_scorers.c:4872:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 4872 |   __pyx_t_1 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_8find_binarization_MSE’:\nOrange/classification/_tree_scorers.c:5618:43: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5618 |           for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) {\n      |                                           ^\nOrange/classification/_tree_scorers.c:5739:39: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5739 |           __pyx_t_20 = ((__pyx_v_left >= __pyx_v_min_leaf) != 0);\n      |                                       ^~\nOrange/classification/_tree_scorers.c:5745:53: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5745 |           __pyx_t_20 = (((__pyx_v_N - __pyx_v_left) >= __pyx_v_min_leaf) != 0);\n      |                                                     ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_14compute_predictions_csr’:\nOrange/classification/_tree_scorers.c:7206:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7206 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_16compute_predictions_csc’:\nOrange/classification/_tree_scorers.c:7863:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7863 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c:7923:150: warning: comparison of integer expressions of different signedness: ‘__pyx_t_5numpy_int32_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare]\n 7923 |               __pyx_t_16 = (((*((__pyx_t_5numpy_int32_t const  *) ( /* dim=0 */ (__pyx_v_indices.data + __pyx_t_15 * __pyx_v_indices.strides[0]) ))) != __pyx_v_i) != 0);\n      |                                                                                                                                                      ^~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/data/_contingency.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/data/_io.c: In function ‘__pyx_pf_6Orange_4data_3_io_sparse_read_float.constprop’:\nOrange/data/_io.c:4120:43: warning: ‘__pyx_v_decs’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4120 |           __pyx_v_value = ((__pyx_v_value * __pyx_v_decs) + (__pyx_v_c & 0xf));\n      |                            ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/data/_io.c:4318:24: warning: ‘__pyx_v_value’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4318 |           __pyx_t_10 = PyFloat_FromDouble(__pyx_v_value); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 223, __pyx_L5_error)\n      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:683:40: warning: ‘__pyx_v_attr_index’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n  683 |   #define PyInt_FromLong               PyLong_FromLong\n      |                                        ^~~~~~~~~~~~~~~\nOrange/data/_io.c:1590:7: note: ‘__pyx_v_attr_index’ was declared here\n 1590 |   int __pyx_v_attr_index;\n      |       ^~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:3183:25: warning: ‘__pyx_v_atomp’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3183 |           __pyx_v_atomp = (__pyx_v_atomp + 1);\n      |           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/data/_valuecount.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/distance/_distance.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/preprocess/_discretize.c:774:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/preprocess/_relieff.cpp:790:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,\n                 from Orange/projection/_som.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_5update_hex’:\nOrange/projection/_som.c:3944:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3944 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3943:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3943 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_8update_sparse.constprop’:\nOrange/projection/_som.c:5094:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5094 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:5093:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5093 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_1get_winners’:\nOrange/projection/_som.c:3244:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3244 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_24, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2892:7: note: ‘__pyx_v_win_y’ was declared here\n 2892 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3233:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3233 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_24, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2891:7: note: ‘__pyx_v_win_x’ was declared here\n 2891 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_10update_sparse_hex.constprop’:\nOrange/projection/_som.c:5842:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5842 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:5841:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5841 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_7get_winners_sparse’:\nOrange/projection/_som.c:4871:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4871 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_28, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4389:7: note: ‘__pyx_v_win_y’ was declared here\n 4389 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4860:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4860 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_28, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4388:7: note: ‘__pyx_v_win_x’ was declared here\n 4388 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_3update’:\nOrange/projection/_som.c:3438:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3438 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/setuptools/command/easy_install.py:159: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.\n  EasyInstallDeprecationWarning,\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.\n  setuptools.SetuptoolsDeprecationWarning,\nwarning: no files found matching 'README*' under directory 'Orange'\nwarning: no files found matching 'LICENSE' under directory 'Orange'\nwarning: no files found matching '*.basket' under directory 'Orange/datasets'\nwarning: no files found matching '*.svg' under directory 'Orange/canvas'\nwarning: no files found matching '*.js' under directory 'Orange/widgets'\nwarning: no files found matching '*.css' under directory 'Orange/widgets'\nwarning: no files found matching '*.html' under directory 'Orange/widgets'\nwarning: no files found matching '*.svg' under directory 'distribute'\nwarning: no files found matching 'COPYING'\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release\n  PkgResourcesDeprecationWarning,\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.\n  setuptools.SetuptoolsDeprecationWarning,\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.7/site-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release\n  PkgResourcesDeprecationWarning,\nerror: Couldn't find a setup script in /tmp/easy_install-bumjrmtu/scipy-1.15.0.tar.gz\nUsing CPython 3.8.20\nCreating virtual environment at: .venv\nActivate with: source .venv/bin/activate\nResolved 15 packages in 109ms\nPrepared 15 packages in 1ms\nInstalled 15 packages in 77ms\n + cython==0.29.37\n + exceptiongroup==1.2.2\n + iniconfig==2.0.0\n + numpy==1.24.4\n + packaging==24.2\n + pluggy==1.5.0\n + pyqt5==5.15.11\n + pyqt5-qt5==5.15.16\n + pyqt5-sip==12.15.0\n + pyqtwebengine==5.15.7\n + pyqtwebengine-qt5==5.15.16\n + pytest==8.3.4\n + setuptools==75.3.0\n + tomli==2.2.1\n + wheel==0.45.1\nResolved 65 packages in 125ms\nInstalled 61 packages in 833ms\n + anyio==4.5.2\n + backports-tarfile==1.2.0\n + baycomp==1.0.3\n + bottleneck==1.4.0\n + catboost==1.2.7\n + certifi==2024.12.14\n + cffi==1.17.1\n + chardet==5.2.0\n + charset-normalizer==3.4.1\n + contourpy==1.1.1\n + cryptography==44.0.0\n + cycler==0.12.1\n + et-xmlfile==2.0.0\n + fonttools==4.55.3\n + graphviz==0.20.3\n + h11==0.14.0\n + httpcore==1.0.7\n + httpx==0.28.1\n + idna==3.10\n + importlib-metadata==8.5.0\n + importlib-resources==6.4.5\n + jaraco-classes==3.4.0\n + jaraco-context==6.0.1\n + jaraco-functools==4.1.0\n + jeepney==0.8.0\n + joblib==1.4.2\n + keyring==25.5.0\n + keyrings-alt==5.0.2\n + kiwisolver==1.4.7\n + matplotlib==3.7.5\n + more-itertools==10.5.0\n + networkx==3.1\n + nvidia-nccl-cu12==2.24.3\n + openpyxl==3.1.5\n + opentsne==1.0.1\n + pandas==2.0.3\n + pillow==10.4.0\n + pip==24.3.1\n + plotly==5.24.1\n + pycparser==2.22\n + pyparsing==3.1.4\n + python-dateutil==2.9.0.post0\n + python-louvain==0.16\n + pytz==2024.2\n + pyyaml==6.0.2\n + requests==2.32.3\n + scikit-learn==1.3.2\n + scipy==1.10.1\n + secretstorage==3.3.3\n + serverfiles==0.3.1\n + six==1.17.0\n + sniffio==1.3.1\n + tenacity==9.0.0\n + threadpoolctl==3.5.0\n + typing-extensions==4.12.2\n + tzdata==2024.2\n + urllib3==2.2.3\n + xgboost==2.1.3\n + xlrd==2.0.1\n + xlsxwriter==3.2.0\n + zipp==3.20.2\nResolved 64 packages in 69ms\nInstalled 41 packages in 116ms\n + anyqt==0.2.0\n + asttokens==3.0.0\n + attrs==24.3.0\n + backcall==0.2.0\n + cattrs==24.1.2\n + comm==0.2.2\n + commonmark==0.9.1\n + debugpy==1.8.11\n + decorator==5.1.1\n + dictdiffer==0.9.0\n + docutils==0.20.1\n + executing==2.1.0\n + ipykernel==6.29.5\n + ipython==8.12.3\n + jedi==0.19.2\n + jupyter-client==8.6.3\n + jupyter-core==5.7.2\n + matplotlib-inline==0.1.7\n + nest-asyncio==1.6.0\n + orange-canvas-core==0.1.35\n + orange-widget-base==4.22.0\n + parso==0.8.4\n + pexpect==4.9.0\n + pickleshare==0.7.5\n + platformdirs==4.3.6\n + prompt-toolkit==3.0.48\n + psutil==6.1.1\n + ptyprocess==0.7.0\n + pure-eval==0.2.3\n + pygments==2.19.1\n + pyqtgraph==0.13.3\n + pyzmq==26.2.0\n + qasync==0.27.1\n + qtconsole==5.6.1\n + qtpy==2.4.2\n + requests-cache==1.2.1\n + stack-data==0.6.3\n + tornado==6.4.2\n + traitlets==5.14.3\n + url-normalize==1.4.3\n + wcwidth==0.2.13\nResolved 2 packages in 2ms\nInstalled 2 packages in 5ms\n + psycopg2==2.9.10\n + pymssql==2.3.2\nOrange/classification/_simple_tree.c: In function ‘gain_ratio_c’:\nOrange/classification/_simple_tree.c:63:9: warning: implicit declaration of function ‘qsort_r’; did you mean ‘qsort’? [-Wimplicit-function-declaration]\n   63 |         qsort_r(base, nel, size, compar, thunk)\n      |         ^~~~~~~\nOrange/classification/_simple_tree.c:147:9: note: in expansion of macro ‘QSORT_R_FUNC’\n  147 |         QSORT_R_FUNC(examples, size, sizeof(struct Example), (void*) &compar_attr, compar_examples);\n      |         ^~~~~~~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/classification/_tree_scorers.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_2find_threshold_entropy’:\nOrange/classification/_tree_scorers.c:3426:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 3426 |   __pyx_t_7 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_6find_threshold_MSE’:\nOrange/classification/_tree_scorers.c:4872:27: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 4872 |   __pyx_t_1 = ((__pyx_v_N <= __pyx_v_min_leaf) != 0);\n      |                           ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_8find_binarization_MSE’:\nOrange/classification/_tree_scorers.c:5618:43: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5618 |           for (__pyx_t_19 = 0; __pyx_t_19 < __pyx_t_18; __pyx_t_19+=1) {\n      |                                           ^\nOrange/classification/_tree_scorers.c:5739:39: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5739 |           __pyx_t_20 = ((__pyx_v_left >= __pyx_v_min_leaf) != 0);\n      |                                       ^~\nOrange/classification/_tree_scorers.c:5745:53: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 5745 |           __pyx_t_20 = (((__pyx_v_N - __pyx_v_left) >= __pyx_v_min_leaf) != 0);\n      |                                                     ^~\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_14compute_predictions_csr’:\nOrange/classification/_tree_scorers.c:7206:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7206 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c: In function ‘__pyx_pf_6Orange_14classification_13_tree_scorers_16compute_predictions_csc’:\nOrange/classification/_tree_scorers.c:7863:41: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]\n 7863 |         for (__pyx_t_12 = 0; __pyx_t_12 < __pyx_t_11; __pyx_t_12+=1) {\n      |                                         ^\nOrange/classification/_tree_scorers.c:7923:150: warning: comparison of integer expressions of different signedness: ‘__pyx_t_5numpy_int32_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare]\n 7923 |               __pyx_t_16 = (((*((__pyx_t_5numpy_int32_t const  *) ( /* dim=0 */ (__pyx_v_indices.data + __pyx_t_15 * __pyx_v_indices.strides[0]) ))) != __pyx_v_i) != 0);\n      |                                                                                                                                                      ^~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/data/_contingency.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/data/_io.c: In function ‘__pyx_pf_6Orange_4data_3_io_sparse_read_float.constprop’:\nOrange/data/_io.c:4120:43: warning: ‘__pyx_v_decs’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4120 |           __pyx_v_value = ((__pyx_v_value * __pyx_v_decs) + (__pyx_v_c & 0xf));\n      |                            ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/data/_io.c:4318:24: warning: ‘__pyx_v_value’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4318 |           __pyx_t_10 = PyFloat_FromDouble(__pyx_v_value); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 223, __pyx_L5_error)\n      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:683:40: warning: ‘__pyx_v_attr_index’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n  683 |   #define PyInt_FromLong               PyLong_FromLong\n      |                                        ^~~~~~~~~~~~~~~\nOrange/data/_io.c:1590:7: note: ‘__pyx_v_attr_index’ was declared here\n 1590 |   int __pyx_v_attr_index;\n      |       ^~~~~~~~~~~~~~~~~~\nOrange/data/_io.c:3183:25: warning: ‘__pyx_v_atomp’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3183 |           __pyx_v_atomp = (__pyx_v_atomp + 1);\n      |           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/data/_valuecount.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/distance/_distance.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/preprocess/_discretize.c:774:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/preprocess/_relieff.cpp:790:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nIn file included from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,\n                 from /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:5,\n                 from Orange/projection/_som.c:775:\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning \"Using deprecated NumPy API, disable it with \" \"#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION\" [-Wcpp]\n   17 | #warning \"Using deprecated NumPy API, disable it with \" \\\n      |  ^~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_5update_hex’:\nOrange/projection/_som.c:3944:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3944 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3943:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3943 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_8update_sparse.constprop’:\nOrange/projection/_som.c:5094:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5094 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:5093:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5093 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_3update’:\nOrange/projection/_som.c:3438:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3438 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_1get_winners’:\nOrange/projection/_som.c:3244:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3244 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_24, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2892:7: note: ‘__pyx_v_win_y’ was declared here\n 2892 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:3233:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 3233 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_24, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_23, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:2891:7: note: ‘__pyx_v_win_x’ was declared here\n 2891 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pf_6Orange_10projection_4_som_10update_sparse_hex.constprop’:\nOrange/projection/_som.c:5842:7: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5842 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:5841:7: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 5841 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c: In function ‘__pyx_pw_6Orange_10projection_4_som_7get_winners_sparse’:\nOrange/projection/_som.c:4871:223: warning: ‘__pyx_v_win_y’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4871 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_28, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_y;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4389:7: note: ‘__pyx_v_win_y’ was declared here\n 4389 |   int __pyx_v_win_y;\n      |       ^~~~~~~~~~~~~\nOrange/projection/_som.c:4860:223: warning: ‘__pyx_v_win_x’ may be used uninitialized in this function [-Wmaybe-uninitialized]\n 4860 |           *__Pyx_BufPtrStrided2d(__pyx_t_5numpy_int16_t *, __pyx_pybuffernd_winners.rcbuffer->pybuffer.buf, __pyx_t_28, __pyx_pybuffernd_winners.diminfo[0].strides, __pyx_t_27, __pyx_pybuffernd_winners.diminfo[1].strides) = __pyx_v_win_x;\n      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~\nOrange/projection/_som.c:4388:7: note: ‘__pyx_v_win_x’ was declared here\n 4388 |   int __pyx_v_win_x;\n      |       ^~~~~~~~~~~~~\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'\n  warnings.warn(msg)\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'\n  warnings.warn(msg)\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/setuptools/command/develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.\n!!\n\n        ********************************************************************************\n        Please avoid running ``setup.py`` and ``easy_install``.\n        Instead, use pypa/build, pypa/installer or other\n        standards-based tools.\n\n        See https://github.com/pypa/setuptools/issues/917 for details.\n        ********************************************************************************\n\n!!\n  easy_install.initialize_options(self)\n/home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249/.venv/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.\n!!\n\n        ********************************************************************************\n        Please avoid running ``setup.py`` directly.\n        Instead, use pypa/build, pypa/installer or other\n        standards-based tools.\n\n        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.\n        ********************************************************************************\n\n!!\n  self.initialize_options()\nwarning: no files found matching 'README*' under directory 'Orange'\nwarning: no files found matching 'LICENSE' under directory 'Orange'\nwarning: no files found matching '*.basket' under directory 'Orange/datasets'\nwarning: no files found matching '*.svg' under directory 'Orange/canvas'\nwarning: no files found matching '*.js' under directory 'Orange/widgets'\nwarning: no files found matching '*.css' under directory 'Orange/widgets'\nwarning: no files found matching '*.html' under directory 'Orange/widgets'\nwarning: no files found matching '*.svg' under directory 'distribute'\nwarning: no files found matching 'COPYING'\n",
    "new_commit_res_code": 0,
    "new_commit_res_stdout": "============================= test session starts ==============================\nplatform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0\nrootdir: /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249\nconfigfile: pyproject.toml\nplugins: anyio-4.5.2, typeguard-4.3.0\ncollected 27 items\n\nr2e_tests/test_1.py ..............s............                          [100%]\n\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestUtil::test_array_equal\nPASSED r2e_tests/test_1.py::TestUtil::test_array_not_equal\nPASSED r2e_tests/test_1.py::TestUtil::test_csc_array_equal\nPASSED r2e_tests/test_1.py::TestUtil::test_csc_scr_equal\nPASSED r2e_tests/test_1.py::TestUtil::test_csc_unordered_array_equal\nPASSED r2e_tests/test_1.py::TestUtil::test_deepgetattr\nPASSED r2e_tests/test_1.py::TestUtil::test_deprecated\nPASSED r2e_tests/test_1.py::TestUtil::test_export_globals\nPASSED r2e_tests/test_1.py::TestUtil::test_flatten\nPASSED r2e_tests/test_1.py::TestUtil::test_get_entry_point\nPASSED r2e_tests/test_1.py::TestUtil::test_hstack\nPASSED r2e_tests/test_1.py::TestUtil::test_namegen\nPASSED r2e_tests/test_1.py::TestUtil::test_nan_eq\nPASSED r2e_tests/test_1.py::TestUtil::test_nan_hash_stand\nPASSED r2e_tests/test_1.py::TestUtil::test_registry\nPASSED r2e_tests/test_1.py::TestUtil::test_reprable\nPASSED r2e_tests/test_1.py::TestUtil::test_stats_sparse\nPASSED r2e_tests/test_1.py::TestUtil::test_try_\nPASSED r2e_tests/test_1.py::TestUtil::test_vstack\nPASSED r2e_tests/test_1.py::TestUtil::test_wrap_callback\nPASSED r2e_tests/test_1.py::TestAllot::test_assert_no_result\nPASSED r2e_tests/test_1.py::TestAllot::test_assertion\nPASSED r2e_tests/test_1.py::TestAllot::test_duration\nPASSED r2e_tests/test_1.py::TestAllot::test_getter\nPASSED r2e_tests/test_1.py::TestAllot::test_overflow\nPASSED r2e_tests/test_1.py::TestAllot::test_skipping\nSKIPPED [1] r2e_tests/test_1.py:133: ORANGE_DEPRECATIONS_ERROR not set\n======================== 26 passed, 1 skipped in 7.52s =========================\n",
    "new_commit_res_stderr": "",
    "old_commit_res_code": 1,
    "old_commit_res_stdout": "============================= test session starts ==============================\nplatform linux -- Python 3.8.20, pytest-8.3.4, pluggy-1.5.0\nrootdir: /home/gcpuser/buckets/local_repoeval_bucket/repos/orange3_f813020a9c0a0450df07ba20529b117665426249\nconfigfile: pyproject.toml\nplugins: anyio-4.5.2, typeguard-4.3.0\ncollected 27 items\n\nr2e_tests/test_1.py ..............s......FFFFFF                          [100%]\n\n=================================== FAILURES ===================================\n_______________________ TestAllot.test_assert_no_result ________________________\n\nself = <r2e_tests.test_1.TestAllot testMethod=test_assert_no_result>\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n>       patcher.start()\n\nr2e_tests/test_1.py:253: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1529: in start\n    result = self.__enter__()\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__\n    original, local = self.get_original()\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <unittest.mock._patch object at 0x73f607180580>\n\n    def get_original(self):\n        target = self.getter()\n        name = self.attribute\n    \n        original = DEFAULT\n        local = False\n    \n        try:\n            original = target.__dict__[name]\n        except (AttributeError, KeyError):\n            original = getattr(target, name, DEFAULT)\n        else:\n            local = True\n    \n        if name in _builtins and isinstance(target, ModuleType):\n            self.create = True\n    \n        if not self.create and original is DEFAULT:\n>           raise AttributeError(\n                \"%s does not have the attribute %r\" % (target, name)\n            )\nE           AttributeError: <class 'Orange.util.allot'> does not have the attribute '_allot__timer'\n\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: AttributeError\n___________________________ TestAllot.test_assertion ___________________________\n\nself = <r2e_tests.test_1.TestAllot testMethod=test_assertion>\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n>       patcher.start()\n\nr2e_tests/test_1.py:253: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1529: in start\n    result = self.__enter__()\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__\n    original, local = self.get_original()\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <unittest.mock._patch object at 0x73f5d51543d0>\n\n    def get_original(self):\n        target = self.getter()\n        name = self.attribute\n    \n        original = DEFAULT\n        local = False\n    \n        try:\n            original = target.__dict__[name]\n        except (AttributeError, KeyError):\n            original = getattr(target, name, DEFAULT)\n        else:\n            local = True\n    \n        if name in _builtins and isinstance(target, ModuleType):\n            self.create = True\n    \n        if not self.create and original is DEFAULT:\n>           raise AttributeError(\n                \"%s does not have the attribute %r\" % (target, name)\n            )\nE           AttributeError: <class 'Orange.util.allot'> does not have the attribute '_allot__timer'\n\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: AttributeError\n___________________________ TestAllot.test_duration ____________________________\n\nself = <r2e_tests.test_1.TestAllot testMethod=test_duration>\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n>       patcher.start()\n\nr2e_tests/test_1.py:253: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1529: in start\n    result = self.__enter__()\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__\n    original, local = self.get_original()\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <unittest.mock._patch object at 0x73f5d2667670>\n\n    def get_original(self):\n        target = self.getter()\n        name = self.attribute\n    \n        original = DEFAULT\n        local = False\n    \n        try:\n            original = target.__dict__[name]\n        except (AttributeError, KeyError):\n            original = getattr(target, name, DEFAULT)\n        else:\n            local = True\n    \n        if name in _builtins and isinstance(target, ModuleType):\n            self.create = True\n    \n        if not self.create and original is DEFAULT:\n>           raise AttributeError(\n                \"%s does not have the attribute %r\" % (target, name)\n            )\nE           AttributeError: <class 'Orange.util.allot'> does not have the attribute '_allot__timer'\n\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: AttributeError\n____________________________ TestAllot.test_getter _____________________________\n\nself = <r2e_tests.test_1.TestAllot testMethod=test_getter>\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n>       patcher.start()\n\nr2e_tests/test_1.py:253: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1529: in start\n    result = self.__enter__()\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__\n    original, local = self.get_original()\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <unittest.mock._patch object at 0x73f5d51a3d60>\n\n    def get_original(self):\n        target = self.getter()\n        name = self.attribute\n    \n        original = DEFAULT\n        local = False\n    \n        try:\n            original = target.__dict__[name]\n        except (AttributeError, KeyError):\n            original = getattr(target, name, DEFAULT)\n        else:\n            local = True\n    \n        if name in _builtins and isinstance(target, ModuleType):\n            self.create = True\n    \n        if not self.create and original is DEFAULT:\n>           raise AttributeError(\n                \"%s does not have the attribute %r\" % (target, name)\n            )\nE           AttributeError: <class 'Orange.util.allot'> does not have the attribute '_allot__timer'\n\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: AttributeError\n___________________________ TestAllot.test_overflow ____________________________\n\nself = <r2e_tests.test_1.TestAllot testMethod=test_overflow>\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n>       patcher.start()\n\nr2e_tests/test_1.py:253: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1529: in start\n    result = self.__enter__()\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__\n    original, local = self.get_original()\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <unittest.mock._patch object at 0x73f5d27f7730>\n\n    def get_original(self):\n        target = self.getter()\n        name = self.attribute\n    \n        original = DEFAULT\n        local = False\n    \n        try:\n            original = target.__dict__[name]\n        except (AttributeError, KeyError):\n            original = getattr(target, name, DEFAULT)\n        else:\n            local = True\n    \n        if name in _builtins and isinstance(target, ModuleType):\n            self.create = True\n    \n        if not self.create and original is DEFAULT:\n>           raise AttributeError(\n                \"%s does not have the attribute %r\" % (target, name)\n            )\nE           AttributeError: <class 'Orange.util.allot'> does not have the attribute '_allot__timer'\n\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: AttributeError\n___________________________ TestAllot.test_skipping ____________________________\n\nself = <r2e_tests.test_1.TestAllot testMethod=test_skipping>\n\n    def setUp(self):\n        # patch the object to user perf_counter, which will include the time\n        # when tests `sleep`\n        patcher = patch.object(allot, \"_allot__timer\", new=time.perf_counter)\n>       patcher.start()\n\nr2e_tests/test_1.py:253: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1529: in start\n    result = self.__enter__()\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1393: in __enter__\n    original, local = self.get_original()\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <unittest.mock._patch object at 0x73f5d2757f40>\n\n    def get_original(self):\n        target = self.getter()\n        name = self.attribute\n    \n        original = DEFAULT\n        local = False\n    \n        try:\n            original = target.__dict__[name]\n        except (AttributeError, KeyError):\n            original = getattr(target, name, DEFAULT)\n        else:\n            local = True\n    \n        if name in _builtins and isinstance(target, ModuleType):\n            self.create = True\n    \n        if not self.create and original is DEFAULT:\n>           raise AttributeError(\n                \"%s does not have the attribute %r\" % (target, name)\n            )\nE           AttributeError: <class 'Orange.util.allot'> does not have the attribute '_allot__timer'\n\n../../../../.local/share/uv/python/cpython-3.8.20-linux-x86_64-gnu/lib/python3.8/unittest/mock.py:1366: AttributeError\n==================================== PASSES ====================================\n=========================== short test summary info ============================\nPASSED r2e_tests/test_1.py::TestUtil::test_array_equal\nPASSED r2e_tests/test_1.py::TestUtil::test_array_not_equal\nPASSED r2e_tests/test_1.py::TestUtil::test_csc_array_equal\nPASSED r2e_tests/test_1.py::TestUtil::test_csc_scr_equal\nPASSED r2e_tests/test_1.py::TestUtil::test_csc_unordered_array_equal\nPASSED r2e_tests/test_1.py::TestUtil::test_deepgetattr\nPASSED r2e_tests/test_1.py::TestUtil::test_deprecated\nPASSED r2e_tests/test_1.py::TestUtil::test_export_globals\nPASSED r2e_tests/test_1.py::TestUtil::test_flatten\nPASSED r2e_tests/test_1.py::TestUtil::test_get_entry_point\nPASSED r2e_tests/test_1.py::TestUtil::test_hstack\nPASSED r2e_tests/test_1.py::TestUtil::test_namegen\nPASSED r2e_tests/test_1.py::TestUtil::test_nan_eq\nPASSED r2e_tests/test_1.py::TestUtil::test_nan_hash_stand\nPASSED r2e_tests/test_1.py::TestUtil::test_registry\nPASSED r2e_tests/test_1.py::TestUtil::test_reprable\nPASSED r2e_tests/test_1.py::TestUtil::test_stats_sparse\nPASSED r2e_tests/test_1.py::TestUtil::test_try_\nPASSED r2e_tests/test_1.py::TestUtil::test_vstack\nPASSED r2e_tests/test_1.py::TestUtil::test_wrap_callback\nSKIPPED [1] r2e_tests/test_1.py:133: ORANGE_DEPRECATIONS_ERROR not set\nFAILED r2e_tests/test_1.py::TestAllot::test_assert_no_result - AttributeError...\nFAILED r2e_tests/test_1.py::TestAllot::test_assertion - AttributeError: <clas...\nFAILED r2e_tests/test_1.py::TestAllot::test_duration - AttributeError: <class...\nFAILED r2e_tests/test_1.py::TestAllot::test_getter - AttributeError: <class '...\nFAILED r2e_tests/test_1.py::TestAllot::test_overflow - AttributeError: <class...\nFAILED r2e_tests/test_1.py::TestAllot::test_skipping - AttributeError: <class...\n=================== 6 failed, 20 passed, 1 skipped in 3.38s ====================\n",
    "old_commit_res_stderr": ""
}
Orange/tests/test_util.py Orange/util.py
We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[ISSUE]
**Title:** `allot` Class Missing `_allot__timer` Attribute Causing Test Failures

**Description:**
When running tests that attempt to patch the `_allot__timer` attribute of the `allot` class, an `AttributeError` is raised because the attribute does not exist. This prevents the tests from properly mocking the timer functionality, leading to multiple test failures.

**Example Buggy Code:**
```python
from unittest.mock import patch

class TestAllot(unittest.TestCase):

    def setUp(self):
        # Attempting to patch the non-existent '_allot__timer' attribute
        patcher = patch.object(allot, "_allot__timer", new=time.perf_counter)
        patcher.start()
        self.addCleanup(patcher.stop)

    def test_duration(self):
        @allot
        def f(x, y):
            time.sleep(0.2)
        f(5, y=6)
        self.assertGreaterEqual(f.last_call_duration, 0.2)
```

**Error Message:**
```
AttributeError: <class 'Orange.util.allot'> does not have the attribute '_allot__timer'
```

**Expected Behavior:**
The `allot` class should have an `_allot__timer` attribute that can be patched during testing. This would allow tests to accurately mock and control the timing behavior without encountering attribute errors.

**Actual Behavior:**
Attempting to patch the `_allot__timer` attribute results in an `AttributeError` because the `allot` class does not define this attribute. Consequently, tests that rely on mocking the timer fail, preventing proper verification of the timing functionalities.

[/ISSUE]
--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.

--- BEGIN FILE ---
```
### Orange/util.py
"""Various small utilities that might be useful everywhere"""
import logging
import os
import time
import inspect
import datetime
import math
import functools
from contextlib import contextmanager
from typing import TYPE_CHECKING, Callable, Union, Optional
from weakref import WeakKeyDictionary

import pkg_resources
from enum import Enum as _Enum
from functools import wraps, partial
from operator import attrgetter
from itertools import chain, count, repeat

from collections import namedtuple
import warnings

# Exposed here for convenience. Prefer patching to try-finally blocks
from unittest.mock import patch  # pylint: disable=unused-import

import numpy as np

# Backwards-compat
from Orange.data.util import scale  # pylint: disable=unused-import

if TYPE_CHECKING:
    from numpy.typing import DTypeLike


log = logging.getLogger(__name__)


class OrangeWarning(UserWarning):
    pass


class OrangeDeprecationWarning(OrangeWarning, DeprecationWarning):
    pass


warnings.simplefilter('default', OrangeWarning)

if os.environ.get('ORANGE_DEPRECATIONS_ERROR'):
    warnings.simplefilter('error', OrangeDeprecationWarning)


def _log_warning(msg):
    """
    Replacement for `warnings._showwarnmsg_impl` that logs the warning
    Logs the warning in the appropriate list, or passes it to the original
    function if the warning wasn't issued within the log_warnings context.
    """
    for frame in inspect.stack():
        if frame.frame in warning_loggers:
            warning_loggers[frame.frame].append(msg)
            break
    else:
        __orig_showwarnmsg_impl(msg)


@contextmanager
def log_warnings():
    """
    logs all warnings that occur within context, including warnings from calls.

    ```python
    with log_warnings() as warnings:
       ...
    ```

    Unlike `warnings.catch_warnings(record=True)`, this manager is thread-safe
    and will only log warning from this thread. It does so by storing the
    stack frame within which the context is created, and then checking the
    stack when the warning is issued.

    Nesting of `log_warnings` within the same function will raise an error.
    If `log_wanings` are nested within function calls, the warning is logged
    in the inner-most context.

    If `catch_warnings` is used within the `log_warnings` context, logging is
    disabled until the `catch_warnings` exits. This looks inevitable (without
    patching `catch_warnings`, which I'd prefer not to do).

    If `catch_warnings` is used outside this context, everything, including
    warning filtering, should work as expected.

    Note: the method imitates `catch_warnings` by patching the `warnings`
    module's internal function `_showwarnmsg_impl`. Python (as of version 3.9)
    doesn't seem to offer any other way of catching the warnings. This function
    was introduced in Python 3.6, so we cover all supported versions. If it is
    ever removed, unittests will crash, so we'll know. :)
    """
    # currentframe().f_back is `contextmanager`'s __enter__
    frame = inspect.currentframe().f_back.f_back
    if frame in warning_loggers:
        raise ValueError("nested log_warnings")
    try:
        warning_loggers[frame] = []
        yield warning_loggers[frame]
    finally:
        del warning_loggers[frame]


# pylint: disable=protected-access
warning_loggers = {}
__orig_showwarnmsg_impl = warnings._showwarnmsg_impl
warnings._showwarnmsg_impl = _log_warning


def resource_filename(path):
    """
    Return the resource filename path relative to the Orange package.
    """
    return pkg_resources.resource_filename("Orange", path)


def get_entry_point(dist, group, name):
    """
    Load and return the entry point from the distribution.

    Unlike `pkg_resources.load_entry_point`, this function does not check
    for requirements. Calling this function is preferred because of developers
    who experiment with different versions and have inconsistent configurations.
    """
    dist = pkg_resources.get_distribution(dist)
    ep = dist.get_entry_info(group, name)
    return ep.resolve()


def deprecated(obj):
    """
    Decorator. Mark called object deprecated.

    Parameters
    ----------
    obj: callable or str
        If callable, it is marked as deprecated and its calling raises
        OrangeDeprecationWarning. If str, it is the alternative to be used
        instead of the decorated function.

    Returns
    -------
    f: wrapped callable or decorator
        Returns decorator if obj was str.

    Examples
    --------
    >>> @deprecated
    ... def old():
    ...     return 'old behavior'
    >>> old()  # doctest: +SKIP
    /... OrangeDeprecationWarning: Call to deprecated ... old ...
    'old behavior'

    >>> class C:
    ...     @deprecated('C.new()')
    ...     def old(self):
    ...         return 'old behavior'
    ...     def new(self):
    ...         return 'new behavior'
    >>> C().old() # doctest: +SKIP
    /... OrangeDeprecationWarning: Call to deprecated ... C.old ...
      use use C.new() instead ...
    'old behavior'
    """
    alternative = f'; use {obj} instead' if isinstance(obj, str) else ''

    def decorator(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            name = func.__name__
            if hasattr(func, "__self__"):
                name = f'{func.__self__.__class__}.{name}'
            warnings.warn(f'Call to deprecated {name}{alternative}',
                          OrangeDeprecationWarning, stacklevel=2)
            return func(*args, **kwargs)
        return wrapper

    return decorator if alternative else decorator(obj)


# This should look like decorator, not a class, pylint: disable=invalid-name
class allot:
    """
    Decorator that allows a function only a specified portion of time per call.

    Usage:

    ```
    @allot(0.2, overflow=of)
    def f(x):
       ...
    ```

    The above function is allotted 0.2 second per second. If it runs for 0.2 s,
    all subsequent calls in the next second (after the start of the call) are
    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are
    ignored. If it runs for a second, subsequent calls are ignored for 5 s.

    An optional overflow function can be given as a keyword argument
    `overflow`. This function must have the same signature as the wrapped
    function and is called instead of the original when the call is blocked.

    If the overflow function is not given, the wrapped function must not return
    result. This is because without the overflow function, the wrapper has no
    value to return when the call is skipped.

    The decorator adds a method `call` to force the call, e.g. by calling
    f.call(5), in the above case. The used up time still counts for the
    following (non-forced) calls.

    The decorator also adds two attributes:

    - f.last_call_duration is the duration of the last call (in seconds)
    - f.no_call_before contains the time (time.perf_counter) when the next
        call will be made.

    The decorator can be used for functions and for methods.

    A non-parametrized decorator doesn't block any calls and only adds
    last_call_duration, so that it can be used for timing.
    """
    def __new__(cls: type, arg: Union[None, float, Callable], *,
                overflow: Optional[Callable] = None,
                _bound_methods: Optional[WeakKeyDictionary] = None):
        self = super().__new__(cls)

        if arg is None or isinstance(arg, float):
            # Parametrized decorator
            if arg is not None:
                assert arg > 0

            def set_func(func):
                self.__init__(func,
                              overflow=overflow,
                              _bound_methods=_bound_methods)
                self.allotted_time = arg
                return self

            return set_func

        else:
            # Non-parametrized decorator
            self.allotted_time = None
            return self

    def __init__(self,
                 func: Callable, *,
                 overflow: Optional[Callable] = None,
                 _bound_methods: Optional[WeakKeyDictionary] = None):
        assert callable(func)
        self.func = func
        self.overflow = overflow
        functools.update_wrapper(self, func)

        self.no_call_before = 0
        self.last_call_duration = None

        # Used by __get__; see a comment there
        if _bound_methods is None:
            self.__bound_methods = WeakKeyDictionary()
        else:
            self.__bound_methods = _bound_methods

    # If we are wrapping a method, __get__ is called to bind it.
    # Create a wrapper for each instance and store it, so that each instance's
    # method gets its share of time.
    def __get__(self, inst, cls):
        if inst is None:
            return self

        if inst not in self.__bound_methods:
            # __bound_methods caches bound methods per instance. This is not
            # done for perfoamnce. Bound methods can be rebound, even to
            # different instances or even classes, e.g.
            # >>> x = f.__get__(a, A)
            # >>> y = x.__get__(b, B)
            # >>> z = x.__get__(a, A)
            # After this, we want `x is z`, there shared caching. This looks
            # bizarre, but let's keep it safe. At least binding to the same
            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably
            # possible.
            cls = type(self)
            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)
            decorator = cls(
                self.allotted_time,
                overflow=bound_overflow,
                _bound_methods=self.__bound_methods)
            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))

        return self.__bound_methods[inst]

    def __call__(self, *args, **kwargs):
        if time.perf_counter() < self.no_call_before:
            if self.overflow is None:
                return None
            return self.overflow(*args, **kwargs)
        return self.call(*args, **kwargs)

    def call(self, *args, **kwargs):
        start = time.perf_counter()
        result = self.func(*args, **kwargs)
        self.last_call_duration = time.perf_counter() - start
        if self.allotted_time is not None:
            if self.overflow is None:
                assert result is None, "skippable function cannot return a result"
            self.no_call_before = start + self.last_call_duration / self.allotted_time
        return result


def literal_eval(literal):
    import ast  # pylint: disable=import-outside-toplevel
    # ast.literal_eval does not parse empty set ¯\_(ツ)_/¯

    if literal == "set()":
        return set()
    return ast.literal_eval(literal)


op_map = {
    '==': lambda a, b: a == b,
    '>=': lambda a, b: a >= b,
    '<=': lambda a, b: a <= b,
    '>': lambda a, b: a > b,
    '<': lambda a, b: a < b
}


_Requirement = namedtuple("_Requirement", ["name", "op", "value"])


bool_map = {
    "True": True,
    "true": True,
    1: True,
    "False": False,
    "false": False,
    0: False
}


def requirementsSatisfied(required_state, local_state, req_type=None):
    """
    Checks a list of requirements against a dictionary representing local state.

    Args:
        required_state ([str]): List of strings representing required state
                                using comparison operators
        local_state (dict): Dictionary representing current state
        req_type (type): Casts values to req_type before comparing them.
                         Defaults to local_state type.
    """
    for req_string in required_state:
        # parse requirement
        req = None
        for op_str, op in op_map.items():
            split = req_string.split(op_str)
            # if operation is not in req_string, continue
            if len(split) == 2:
                req = _Requirement(split[0], op, split[1])
                break

        if req is None:
            log.error("Invalid requirement specification: %s", req_string)
            return False

        compare_type = req_type or type(local_state[req.name])
        # check if local state satisfies required state (specification)
        if compare_type is bool:
            # boolean is a special case, where simply casting to bool does not produce target result
            required_value = bool_map[req.value]
        else:
            required_value = compare_type(req.value)
        local_value = compare_type(local_state[req.name])

        # finally, compare the values
        if not req.op(local_value, required_value):
            return False
    return True


def try_(func, default=None):
    """Try return the result of func, else return default."""
    try:
        return func()
    except Exception:  # pylint: disable=broad-except
        return default


def flatten(lst):
    """Flatten iterable a single level."""
    return chain.from_iterable(lst)


class Registry(type):
    """Metaclass that registers subtypes."""
    def __new__(mcs, name, bases, attrs):
        cls = type.__new__(mcs, name, bases, attrs)
        if not hasattr(cls, 'registry'):
            cls.registry = {}
        else:
            cls.registry[name] = cls
        return cls

    def __iter__(cls):
        return iter(cls.registry)

    def __str__(cls):
        if cls in cls.registry.values():
            return cls.__name__
        return f'{cls.__name__}({{{", ".join(cls.registry)}}})'


# it is what it is, we keep for compatibility:
# pylint: disable=keyword-arg-before-vararg
def namegen(prefix='_', *args, spec_count=count, **kwargs):
    """Continually generate names with `prefix`, e.g. '_1', '_2', ..."""
    # pylint: disable=stop-iteration-return
    spec_count = iter(spec_count(*args, **kwargs))
    while True:
        yield prefix + str(next(spec_count))


def export_globals(globals, module_name):
    """
    Return list of important for export globals (callables, constants) from
    `globals` dict, defined in module `module_name`.

    Usage
    -----
    In some module, on the second-to-last line:

    __all__ = export_globals(globals(), __name__)

    """
    return [getattr(v, '__name__', k)
            for k, v in globals.items()                          # export
            if ((callable(v) and v.__module__ == module_name     # callables from this module
                 or k.isupper()) and                             # or CONSTANTS
                not getattr(v, '__name__', k).startswith('_'))]  # neither marked internal


_NOTSET = object()


def deepgetattr(obj, attr, default=_NOTSET):
    """Works exactly like getattr(), except that attr can be a nested attribute
    (e.g. "attr1.attr2.attr3").
    """
    try:
        return attrgetter(attr)(obj)
    except AttributeError:
        if default is _NOTSET:
            raise
        return default


def color_to_hex(color):
    # pylint: disable=consider-using-f-string
    return "#{:02X}{:02X}{:02X}".format(*color)


def hex_to_color(s):
    return int(s[1:3], 16), int(s[3:5], 16), int(s[5:7], 16)


def inherit_docstrings(cls):
    """Inherit methods' docstrings from first superclass that defines them"""
    for method in cls.__dict__.values():
        if inspect.isfunction(method) and method.__doc__ is None:
            for parent in cls.__mro__[1:]:
                doc = getattr(parent, method.__name__, None).__doc__
                if doc:
                    method.__doc__ = doc
                    break
    return cls


class Enum(_Enum):
    """Enum that represents itself with the qualified name, e.g. Color.red"""
    __repr__ = _Enum.__str__


def interleave(seq1, seq2):
    """
    Interleave elements of `seq2` between consecutive elements of `seq1`.

    Example
    -------
    >>> list(interleave([1, 3, 5], [2, 4]))
    [1, 2, 3, 4, 5]
    >>> list(interleave([1, 2, 3, 4], repeat("<")))
    [1, '<', 2, '<', 3, '<', 4]
    """
    iterator1, iterator2 = iter(seq1), iter(seq2)
    try:
        leading = next(iterator1)
    except StopIteration:
        pass
    else:
        for element in iterator1:
            yield leading
            try:
                yield next(iterator2)
            except StopIteration:
                return
            leading = element
        yield leading


def Reprable_repr_pretty(name, itemsiter, printer, cycle):
    # type: (str, Iterable[Tuple[str, Any]], Ipython.lib.pretty.PrettyPrinter, bool) -> None
    if cycle:
        printer.text(f"{name}(...)")
    else:
        def printitem(field, value):
            printer.text(field + "=")
            printer.pretty(value)

        def printsep():
            printer.text(",")
            printer.breakable()

        itemsiter = (partial(printitem, *item) for item in itemsiter)
        sepiter = repeat(printsep)

        with printer.group(len(name) + 1, f"{name}(", ")"):
            for part in interleave(itemsiter, sepiter):
                part()
                part()


class _Undef:
    def __repr__(self):
        return "<?>"
_undef = _Undef()


class Reprable:
    """A type that inherits from this class has its __repr__ string
    auto-generated so that it "[...] should look like a valid Python
    expression that could be used to recreate an object with the same
    value [...]" (see See Also section below).

    This relies on the instances of type to have attributes that
    match the arguments of the type's constructor. Only the values that
    don't match the arguments' defaults are printed, i.e.:

        >>> class C(Reprable):
        ...     def __init__(self, a, b=2):
        ...         self.a = a
        ...         self.b = b
        >>> C(1, 2)
        C(a=1)
        >>> C(1, 3)
        C(a=1, b=3)

    If Reprable instances define `_reprable_module`, that string is used
    as a fully-qualified module name and is printed. `_reprable_module`
    can also be True in which case the type's home module is used.

        >>> class C(Reprable):
        ...     _reprable_module = True
        >>> C()
        Orange.util.C()
        >>> class C(Reprable):
        ...     _reprable_module = 'something_else'
        >>> C()
        something_else.C()
        >>> class C(Reprable):
        ...     class ModuleResolver:
        ...         def __str__(self):
        ...             return 'magic'
        ...     _reprable_module = ModuleResolver()
        >>> C()
        magic.C()

    See Also
    --------
    https://docs.python.org/3/reference/datamodel.html#object.__repr__
    """
    _reprable_module = ''

    def _reprable_fields(self):
        # type: () -> Iterable[Tuple[str, Any]]
        cls = self.__class__
        sig = inspect.signature(cls.__init__)
        for param in sig.parameters.values():
            # Skip self, *args, **kwargs
            if param.name != 'self' and \
                    param.kind not in (param.VAR_POSITIONAL, param.VAR_KEYWORD):
                yield param.name, param.default

    # pylint: disable=unused-argument
    def _reprable_omit_param(self, name, default, value):
        if default is value:
            return True
        if type(default) is type(value):
            try:
                return default == value
            except (ValueError, TypeError):
                return False
        else:
            return False

    def _reprable_items(self):
        with warnings.catch_warnings():
            warnings.simplefilter("error", DeprecationWarning)
            warnings.simplefilter("error", PendingDeprecationWarning)
            for name, default in self._reprable_fields():
                try:
                    value = getattr(self, name)
                except (DeprecationWarning, PendingDeprecationWarning):
                    continue
                except AttributeError:
                    value = _undef
                if not self._reprable_omit_param(name, default, value):
                    yield name, default, value

    def _repr_pretty_(self, p, cycle):
        """IPython pretty print hook."""
        module = self._reprable_module
        if module is True:
            module = self.__class__.__module__

        nameparts = (([str(module)] if module else []) +
                     [self.__class__.__name__])
        name = ".".join(nameparts)
        Reprable_repr_pretty(
            name, ((f, v) for f, _, v in self._reprable_items()),
            p, cycle)

    def __repr__(self):
        module = self._reprable_module
        if module is True:
            module = self.__class__.__module__
        nameparts = (([str(module)] if module else []) +
                     [self.__class__.__name__])
        name = ".".join(nameparts)
        items = ", ".join(f"{f}={repr(v)}"
                          for f, _, v in self._reprable_items())
        return f"{name}({items})"


def wrap_callback(progress_callback, start=0, end=1):
    """
    Wraps a progress callback function to allocate it end-start proportion
    of an execution time.

    :param progress_callback: callable
    :param start: float
    :param end: float
    :return: callable
    """
    @wraps(progress_callback)
    def func(progress, *args, **kwargs):
        adjusted_progress = start + progress * (end - start)
        return progress_callback(adjusted_progress, *args, **kwargs)
    return func


def dummy_callback(*_, **__):
    """ A dummy callable. """
    return 1


def utc_from_timestamp(timestamp) -> datetime.datetime:
    """
    Return the UTC datetime corresponding to the POSIX timestamp.
    """
    return datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc) + \
           datetime.timedelta(seconds=float(timestamp))


def frompyfunc(func: Callable, nin: int, nout: int, dtype: 'DTypeLike'):
    """
    Wrap an `func` callable into an ufunc-like function with `out`, `dtype`,
    `where`, ... parameters. The `dtype` is used as the default.

    Unlike numpy.frompyfunc this function always returns output array of
    the specified `dtype`. Note that the conversion is space efficient.
    """
    func_ = np.frompyfunc(func, nin, nout)

    @wraps(func)
    def funcv(*args, out=None, dtype=dtype, casting="unsafe", **kwargs):
        if not args:
            raise TypeError
        args = [np.asanyarray(a) for a in args]
        args = np.broadcast_arrays(*args)
        shape = args[0].shape
        have_out = out is not None
        if out is None and dtype is not None:
            out = np.empty(shape, dtype)

        res = func_(*args, out, dtype=dtype, casting=casting, **kwargs)
        if res.shape == () and not have_out:
            return res.item()
        else:
            return res

    return funcv


_isnan = math.isnan


def nan_eq(a, b) -> bool:
    """
    Same as `a == b` except where both `a` and `b` are  NaN values in which
    case `True` is returned.

    .. seealso:: nan_hash_stand
    """
    try:
        both_nan = _isnan(a) and _isnan(b)
    except TypeError:
        return a == b
    else:
        return both_nan or a == b


def nan_hash_stand(value):
    """
    If `value` is a NaN then return a singular global *standin* NaN instance,
    otherwise return `value` unchanged.

    Use this where a hash of `value` is needed and `value` might be a NaN
    to account for distinct hashes of NaN instances.

    E.g. the folowing `__eq__` and `__hash__` pairs would be ill-defined for
    `A(float("nan"))` instances if `nan_hash_stand` and `nan_eq` were not
    used.
    >>> class A:
    ...     def __init__(self, v): self.v = v
    ...     def __hash__(self): return hash(nan_hash_stand(self.v))
    ...     def __eq__(self, other): return nan_eq(self.v, other.v)
    """
    try:
        if _isnan(value):
            return math.nan
    except TypeError:
        pass
    return value


# For best result, keep this at the bottom
__all__ = export_globals(globals(), __name__)

# ONLY NON-EXPORTED VALUES BELOW HERE

```
--- END FILE ---

Please first localize the bug based on the issue statement, and then generate *SEARCH/REPLACE* edits to fix the issue.

Every *SEARCH/REPLACE* edit must use this format:
1. The file path
2. The start of search block: <<<<<<< SEARCH
3. A contiguous chunk of lines to search for in the existing source code
4. The dividing line: =======
5. The lines to replace into the source code
6. The end of the replace block: >>>>>>> REPLACE

Here is an example:

```python
### mathweb/flask/app.py
<<<<<<< SEARCH
from flask import Flask
=======
import math
from flask import Flask
>>>>>>> REPLACE
```
</solution>

Please note that the *SEARCH/REPLACE* edit REQUIRES PROPER INDENTATION. If you would like to add the line '        print(x)', you must fully write that out, with all those spaces before the code!
Wrap each *SEARCH/REPLACE* edit in a code block as shown in the example above. If you have multiple *SEARCH/REPLACE* edits, use a separate code block for each one.
[ISSUE]
**Title:** `allot` Class Missing `_allot__timer` Attribute Causing Test Failures

**Description:**
When running tests that attempt to patch the `_allot__timer` attribute of the `allot` class, an `AttributeError` is raised because the attribute does not exist. This prevents the tests from properly mocking the timer functionality, leading to multiple test failures.

**Example Buggy Code:**
```python
from unittest.mock import patch

class TestAllot(unittest.TestCase):

    def setUp(self):
        # Attempting to patch the non-existent '_allot__timer' attribute
        patcher = patch.object(allot, "_allot__timer", new=time.perf_counter)
        patcher.start()
        self.addCleanup(patcher.stop)

    def test_duration(self):
        @allot
        def f(x, y):
            time.sleep(0.2)
        f(5, y=6)
        self.assertGreaterEqual(f.last_call_duration, 0.2)
```

**Error Message:**
```
AttributeError: <class 'Orange.util.allot'> does not have the attribute '_allot__timer'
```

**Expected Behavior:**
The `allot` class should have an `_allot__timer` attribute that can be patched during testing. This would allow tests to accurately mock and control the timing behavior without encountering attribute errors.

**Actual Behavior:**
Attempting to patch the `_allot__timer` attribute results in an `AttributeError` because the `allot` class does not define this attribute. Consequently, tests that rely on mocking the timer fail, preventing proper verification of the timing functionalities.

[/ISSUE]
{
    "TestUtil.test_array_equal": "PASSED",
    "TestUtil.test_array_not_equal": "PASSED",
    "TestUtil.test_csc_array_equal": "PASSED",
    "TestUtil.test_csc_scr_equal": "PASSED",
    "TestUtil.test_csc_unordered_array_equal": "PASSED",
    "TestUtil.test_deepgetattr": "PASSED",
    "TestUtil.test_deprecated": "PASSED",
    "TestUtil.test_export_globals": "PASSED",
    "TestUtil.test_flatten": "PASSED",
    "TestUtil.test_get_entry_point": "PASSED",
    "TestUtil.test_hstack": "PASSED",
    "TestUtil.test_namegen": "PASSED",
    "TestUtil.test_nan_eq": "PASSED",
    "TestUtil.test_nan_hash_stand": "PASSED",
    "TestUtil.test_registry": "PASSED",
    "TestUtil.test_reprable": "PASSED",
    "TestUtil.test_stats_sparse": "PASSED",
    "TestUtil.test_try_": "PASSED",
    "TestUtil.test_vstack": "PASSED",
    "TestUtil.test_wrap_callback": "PASSED",
    "TestAllot.test_assert_no_result": "PASSED",
    "TestAllot.test_assertion": "PASSED",
    "TestAllot.test_duration": "PASSED",
    "TestAllot.test_getter": "PASSED",
    "TestAllot.test_overflow": "PASSED",
    "TestAllot.test_skipping": "PASSED",
    "": "ERROR"
}
diff --git a/Orange/util.py b/Orange/util.py
index 0cd768669..2a1581677 100644
--- a/Orange/util.py
+++ b/Orange/util.py
@@ -216,14 +216,20 @@ class allot:
     The decorator also adds two attributes:
 
     - f.last_call_duration is the duration of the last call (in seconds)
-    - f.no_call_before contains the time (time.perf_counter) when the next
-        call will be made.
+    - f.no_call_before contains the time stamp when the next call will be made.
 
     The decorator can be used for functions and for methods.
 
     A non-parametrized decorator doesn't block any calls and only adds
     last_call_duration, so that it can be used for timing.
     """
+
+    try:
+        __timer = time.thread_time
+    except AttributeError:
+        # thread_time is not available on macOS
+        __timer = time.process_time
+
     def __new__(cls: type, arg: Union[None, float, Callable], *,
                 overflow: Optional[Callable] = None,
                 _bound_methods: Optional[WeakKeyDictionary] = None):
@@ -295,16 +301,16 @@ class allot:
         return self.__bound_methods[inst]
 
     def __call__(self, *args, **kwargs):
-        if time.perf_counter() < self.no_call_before:
+        if self.__timer() < self.no_call_before:
             if self.overflow is None:
                 return None
             return self.overflow(*args, **kwargs)
         return self.call(*args, **kwargs)
 
     def call(self, *args, **kwargs):
-        start = time.perf_counter()
+        start = self.__timer()
         result = self.func(*args, **kwargs)
-        self.last_call_duration = time.perf_counter() - start
+        self.last_call_duration = self.__timer() - start
         if self.allotted_time is not None:
             if self.overflow is None:
                 assert result is None, "skippable function cannot return a result"
 

{"Orange/util.py": "\"\"\"Various small utilities that might be useful everywhere\"\"\"\nimport logging\nimport os\nimport time\nimport inspect\nimport datetime\nimport math\nimport functools\nfrom contextlib import contextmanager\nfrom typing import TYPE_CHECKING, Callable, Union, Optional\nfrom weakref import WeakKeyDictionary\n\nimport pkg_resources\nfrom enum import Enum as _Enum\nfrom functools import wraps, partial\nfrom operator import attrgetter\nfrom itertools import chain, count, repeat\n\nfrom collections import namedtuple\nimport warnings\n\n# Exposed here for convenience. Prefer patching to try-finally blocks\nfrom unittest.mock import patch  # pylint: disable=unused-import\n\nimport numpy as np\n\n# Backwards-compat\nfrom Orange.data.util import scale  # pylint: disable=unused-import\n\nif TYPE_CHECKING:\n    from numpy.typing import DTypeLike\n\n\nlog = logging.getLogger(__name__)\n\n\nclass OrangeWarning(UserWarning):\n    pass\n\n\nclass OrangeDeprecationWarning(OrangeWarning, DeprecationWarning):\n    pass\n\n\nwarnings.simplefilter('default', OrangeWarning)\n\nif os.environ.get('ORANGE_DEPRECATIONS_ERROR'):\n    warnings.simplefilter('error', OrangeDeprecationWarning)\n\n\ndef _log_warning(msg):\n    \"\"\"\n    Replacement for `warnings._showwarnmsg_impl` that logs the warning\n    Logs the warning in the appropriate list, or passes it to the original\n    function if the warning wasn't issued within the log_warnings context.\n    \"\"\"\n    for frame in inspect.stack():\n        if frame.frame in warning_loggers:\n            warning_loggers[frame.frame].append(msg)\n            break\n    else:\n        __orig_showwarnmsg_impl(msg)\n\n\n@contextmanager\ndef log_warnings():\n    \"\"\"\n    logs all warnings that occur within context, including warnings from calls.\n\n    ```python\n    with log_warnings() as warnings:\n       ...\n    ```\n\n    Unlike `warnings.catch_warnings(record=True)`, this manager is thread-safe\n    and will only log warning from this thread. It does so by storing the\n    stack frame within which the context is created, and then checking the\n    stack when the warning is issued.\n\n    Nesting of `log_warnings` within the same function will raise an error.\n    If `log_wanings` are nested within function calls, the warning is logged\n    in the inner-most context.\n\n    If `catch_warnings` is used within the `log_warnings` context, logging is\n    disabled until the `catch_warnings` exits. This looks inevitable (without\n    patching `catch_warnings`, which I'd prefer not to do).\n\n    If `catch_warnings` is used outside this context, everything, including\n    warning filtering, should work as expected.\n\n    Note: the method imitates `catch_warnings` by patching the `warnings`\n    module's internal function `_showwarnmsg_impl`. Python (as of version 3.9)\n    doesn't seem to offer any other way of catching the warnings. This function\n    was introduced in Python 3.6, so we cover all supported versions. If it is\n    ever removed, unittests will crash, so we'll know. :)\n    \"\"\"\n    # currentframe().f_back is `contextmanager`'s __enter__\n    frame = inspect.currentframe().f_back.f_back\n    if frame in warning_loggers:\n        raise ValueError(\"nested log_warnings\")\n    try:\n        warning_loggers[frame] = []\n        yield warning_loggers[frame]\n    finally:\n        del warning_loggers[frame]\n\n\n# pylint: disable=protected-access\nwarning_loggers = {}\n__orig_showwarnmsg_impl = warnings._showwarnmsg_impl\nwarnings._showwarnmsg_impl = _log_warning\n\n\ndef resource_filename(path):\n    \"\"\"\n    Return the resource filename path relative to the Orange package.\n    \"\"\"\n    return pkg_resources.resource_filename(\"Orange\", path)\n\n\ndef get_entry_point(dist, group, name):\n    \"\"\"\n    Load and return the entry point from the distribution.\n\n    Unlike `pkg_resources.load_entry_point`, this function does not check\n    for requirements. Calling this function is preferred because of developers\n    who experiment with different versions and have inconsistent configurations.\n    \"\"\"\n    dist = pkg_resources.get_distribution(dist)\n    ep = dist.get_entry_info(group, name)\n    return ep.resolve()\n\n\ndef deprecated(obj):\n    \"\"\"\n    Decorator. Mark called object deprecated.\n\n    Parameters\n    ----------\n    obj: callable or str\n        If callable, it is marked as deprecated and its calling raises\n        OrangeDeprecationWarning. If str, it is the alternative to be used\n        instead of the decorated function.\n\n    Returns\n    -------\n    f: wrapped callable or decorator\n        Returns decorator if obj was str.\n\n    Examples\n    --------\n    >>> @deprecated\n    ... def old():\n    ...     return 'old behavior'\n    >>> old()  # doctest: +SKIP\n    /... OrangeDeprecationWarning: Call to deprecated ... old ...\n    'old behavior'\n\n    >>> class C:\n    ...     @deprecated('C.new()')\n    ...     def old(self):\n    ...         return 'old behavior'\n    ...     def new(self):\n    ...         return 'new behavior'\n    >>> C().old() # doctest: +SKIP\n    /... OrangeDeprecationWarning: Call to deprecated ... C.old ...\n      use use C.new() instead ...\n    'old behavior'\n    \"\"\"\n    alternative = f'; use {obj} instead' if isinstance(obj, str) else ''\n\n    def decorator(func):\n        @wraps(func)\n        def wrapper(*args, **kwargs):\n            name = func.__name__\n            if hasattr(func, \"__self__\"):\n                name = f'{func.__self__.__class__}.{name}'\n            warnings.warn(f'Call to deprecated {name}{alternative}',\n                          OrangeDeprecationWarning, stacklevel=2)\n            return func(*args, **kwargs)\n        return wrapper\n\n    return decorator if alternative else decorator(obj)\n\n\n# This should look like decorator, not a class, pylint: disable=invalid-name\nclass allot:\n    \"\"\"\n    Decorator that allows a function only a specified portion of time per call.\n\n    Usage:\n\n    ```\n    @allot(0.2, overflow=of)\n    def f(x):\n       ...\n    ```\n\n    The above function is allotted 0.2 second per second. If it runs for 0.2 s,\n    all subsequent calls in the next second (after the start of the call) are\n    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are\n    ignored. If it runs for a second, subsequent calls are ignored for 5 s.\n\n    An optional overflow function can be given as a keyword argument\n    `overflow`. This function must have the same signature as the wrapped\n    function and is called instead of the original when the call is blocked.\n\n    If the overflow function is not given, the wrapped function must not return\n    result. This is because without the overflow function, the wrapper has no\n    value to return when the call is skipped.\n\n    The decorator adds a method `call` to force the call, e.g. by calling\n    f.call(5), in the above case. The used up time still counts for the\n    following (non-forced) calls.\n\n    The decorator also adds two attributes:\n\n    - f.last_call_duration is the duration of the last call (in seconds)\n    - f.no_call_before contains the time (time.perf_counter) when the next\n        call will be made.\n\n    The decorator can be used for functions and for methods.\n\n    A non-parametrized decorator doesn't block any calls and only adds\n    last_call_duration, so that it can be used for timing.\n    \"\"\"\n    def __new__(cls: type, arg: Union[None, float, Callable], *,\n                overflow: Optional[Callable] = None,\n                _bound_methods: Optional[WeakKeyDictionary] = None):\n        self = super().__new__(cls)\n\n        if arg is None or isinstance(arg, float):\n            # Parametrized decorator\n            if arg is not None:\n                assert arg > 0\n\n            def set_func(func):\n                self.__init__(func,\n                              overflow=overflow,\n                              _bound_methods=_bound_methods)\n                self.allotted_time = arg\n                return self\n\n            return set_func\n\n        else:\n            # Non-parametrized decorator\n            self.allotted_time = None\n            return self\n\n    def __init__(self,\n                 func: Callable, *,\n                 overflow: Optional[Callable] = None,\n                 _bound_methods: Optional[WeakKeyDictionary] = None):\n        assert callable(func)\n        self.func = func\n        self.overflow = overflow\n        functools.update_wrapper(self, func)\n\n        self.no_call_before = 0\n        self.last_call_duration = None\n\n        # Used by __get__; see a comment there\n        if _bound_methods is None:\n            self.__bound_methods = WeakKeyDictionary()\n        else:\n            self.__bound_methods = _bound_methods\n\n    # If we are wrapping a method, __get__ is called to bind it.\n    # Create a wrapper for each instance and store it, so that each instance's\n    # method gets its share of time.\n    def __get__(self, inst, cls):\n        if inst is None:\n            return self\n\n        if inst not in self.__bound_methods:\n            # __bound_methods caches bound methods per instance. This is not\n            # done for perfoamnce. Bound methods can be rebound, even to\n            # different instances or even classes, e.g.\n            # >>> x = f.__get__(a, A)\n            # >>> y = x.__get__(b, B)\n            # >>> z = x.__get__(a, A)\n            # After this, we want `x is z`, there shared caching. This looks\n            # bizarre, but let's keep it safe. At least binding to the same\n            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably\n            # possible.\n            cls = type(self)\n            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)\n            decorator = cls(\n                self.allotted_time,\n                overflow=bound_overflow,\n                _bound_methods=self.__bound_methods)\n            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))\n\n        return self.__bound_methods[inst]\n\n    def __call__(self, *args, **kwargs):\n        if time.perf_counter() < self.no_call_before:\n            if self.overflow is None:\n                return None\n            return self.overflow(*args, **kwargs)\n        return self.call(*args, **kwargs)\n\n    def call(self, *args, **kwargs):\n        start = time.perf_counter()\n        result = self.func(*args, **kwargs)\n        self.last_call_duration = time.perf_counter() - start\n        if self.allotted_time is not None:\n            if self.overflow is None:\n                assert result is None, \"skippable function cannot return a result\"\n            self.no_call_before = start + self.last_call_duration / self.allotted_time\n        return result\n\n\ndef literal_eval(literal):\n    import ast  # pylint: disable=import-outside-toplevel\n    # ast.literal_eval does not parse empty set \u00af\\_(\u30c4)_/\u00af\n\n    if literal == \"set()\":\n        return set()\n    return ast.literal_eval(literal)\n\n\nop_map = {\n    '==': lambda a, b: a == b,\n    '>=': lambda a, b: a >= b,\n    '<=': lambda a, b: a <= b,\n    '>': lambda a, b: a > b,\n    '<': lambda a, b: a < b\n}\n\n\n_Requirement = namedtuple(\"_Requirement\", [\"name\", \"op\", \"value\"])\n\n\nbool_map = {\n    \"True\": True,\n    \"true\": True,\n    1: True,\n    \"False\": False,\n    \"false\": False,\n    0: False\n}\n\n\ndef requirementsSatisfied(required_state, local_state, req_type=None):\n    \"\"\"\n    Checks a list of requirements against a dictionary representing local state.\n\n    Args:\n        required_state ([str]): List of strings representing required state\n                                using comparison operators\n        local_state (dict): Dictionary representing current state\n        req_type (type): Casts values to req_type before comparing them.\n                         Defaults to local_state type.\n    \"\"\"\n    for req_string in required_state:\n        # parse requirement\n        req = None\n        for op_str, op in op_map.items():\n            split = req_string.split(op_str)\n            # if operation is not in req_string, continue\n            if len(split) == 2:\n                req = _Requirement(split[0], op, split[1])\n                break\n\n        if req is None:\n            log.error(\"Invalid requirement specification: %s\", req_string)\n            return False\n\n        compare_type = req_type or type(local_state[req.name])\n        # check if local state satisfies required state (specification)\n        if compare_type is bool:\n            # boolean is a special case, where simply casting to bool does not produce target result\n            required_value = bool_map[req.value]\n        else:\n            required_value = compare_type(req.value)\n        local_value = compare_type(local_state[req.name])\n\n        # finally, compare the values\n        if not req.op(local_value, required_value):\n            return False\n    return True\n\n\ndef try_(func, default=None):\n    \"\"\"Try return the result of func, else return default.\"\"\"\n    try:\n        return func()\n    except Exception:  # pylint: disable=broad-except\n        return default\n\n\ndef flatten(lst):\n    \"\"\"Flatten iterable a single level.\"\"\"\n    return chain.from_iterable(lst)\n\n\nclass Registry(type):\n    \"\"\"Metaclass that registers subtypes.\"\"\"\n    def __new__(mcs, name, bases, attrs):\n        cls = type.__new__(mcs, name, bases, attrs)\n        if not hasattr(cls, 'registry'):\n            cls.registry = {}\n        else:\n            cls.registry[name] = cls\n        return cls\n\n    def __iter__(cls):\n        return iter(cls.registry)\n\n    def __str__(cls):\n        if cls in cls.registry.values():\n            return cls.__name__\n        return f'{cls.__name__}({{{\", \".join(cls.registry)}}})'\n\n\n# it is what it is, we keep for compatibility:\n# pylint: disable=keyword-arg-before-vararg\ndef namegen(prefix='_', *args, spec_count=count, **kwargs):\n    \"\"\"Continually generate names with `prefix`, e.g. '_1', '_2', ...\"\"\"\n    # pylint: disable=stop-iteration-return\n    spec_count = iter(spec_count(*args, **kwargs))\n    while True:\n        yield prefix + str(next(spec_count))\n\n\ndef export_globals(globals, module_name):\n    \"\"\"\n    Return list of important for export globals (callables, constants) from\n    `globals` dict, defined in module `module_name`.\n\n    Usage\n    -----\n    In some module, on the second-to-last line:\n\n    __all__ = export_globals(globals(), __name__)\n\n    \"\"\"\n    return [getattr(v, '__name__', k)\n            for k, v in globals.items()                          # export\n            if ((callable(v) and v.__module__ == module_name     # callables from this module\n                 or k.isupper()) and                             # or CONSTANTS\n                not getattr(v, '__name__', k).startswith('_'))]  # neither marked internal\n\n\n_NOTSET = object()\n\n\ndef deepgetattr(obj, attr, default=_NOTSET):\n    \"\"\"Works exactly like getattr(), except that attr can be a nested attribute\n    (e.g. \"attr1.attr2.attr3\").\n    \"\"\"\n    try:\n        return attrgetter(attr)(obj)\n    except AttributeError:\n        if default is _NOTSET:\n            raise\n        return default\n\n\ndef color_to_hex(color):\n    # pylint: disable=consider-using-f-string\n    return \"#{:02X}{:02X}{:02X}\".format(*color)\n\n\ndef hex_to_color(s):\n    return int(s[1:3], 16), int(s[3:5], 16), int(s[5:7], 16)\n\n\ndef inherit_docstrings(cls):\n    \"\"\"Inherit methods' docstrings from first superclass that defines them\"\"\"\n    for method in cls.__dict__.values():\n        if inspect.isfunction(method) and method.__doc__ is None:\n            for parent in cls.__mro__[1:]:\n                doc = getattr(parent, method.__name__, None).__doc__\n                if doc:\n                    method.__doc__ = doc\n                    break\n    return cls\n\n\nclass Enum(_Enum):\n    \"\"\"Enum that represents itself with the qualified name, e.g. Color.red\"\"\"\n    __repr__ = _Enum.__str__\n\n\ndef interleave(seq1, seq2):\n    \"\"\"\n    Interleave elements of `seq2` between consecutive elements of `seq1`.\n\n    Example\n    -------\n    >>> list(interleave([1, 3, 5], [2, 4]))\n    [1, 2, 3, 4, 5]\n    >>> list(interleave([1, 2, 3, 4], repeat(\"<\")))\n    [1, '<', 2, '<', 3, '<', 4]\n    \"\"\"\n    iterator1, iterator2 = iter(seq1), iter(seq2)\n    try:\n        leading = next(iterator1)\n    except StopIteration:\n        pass\n    else:\n        for element in iterator1:\n            yield leading\n            try:\n                yield next(iterator2)\n            except StopIteration:\n                return\n            leading = element\n        yield leading\n\n\ndef Reprable_repr_pretty(name, itemsiter, printer, cycle):\n    # type: (str, Iterable[Tuple[str, Any]], Ipython.lib.pretty.PrettyPrinter, bool) -> None\n    if cycle:\n        printer.text(f\"{name}(...)\")\n    else:\n        def printitem(field, value):\n            printer.text(field + \"=\")\n            printer.pretty(value)\n\n        def printsep():\n            printer.text(\",\")\n            printer.breakable()\n\n        itemsiter = (partial(printitem, *item) for item in itemsiter)\n        sepiter = repeat(printsep)\n\n        with printer.group(len(name) + 1, f\"{name}(\", \")\"):\n            for part in interleave(itemsiter, sepiter):\n                part()\n                part()\n\n\nclass _Undef:\n    def __repr__(self):\n        return \"<?>\"\n_undef = _Undef()\n\n\nclass Reprable:\n    \"\"\"A type that inherits from this class has its __repr__ string\n    auto-generated so that it \"[...] should look like a valid Python\n    expression that could be used to recreate an object with the same\n    value [...]\" (see See Also section below).\n\n    This relies on the instances of type to have attributes that\n    match the arguments of the type's constructor. Only the values that\n    don't match the arguments' defaults are printed, i.e.:\n\n        >>> class C(Reprable):\n        ...     def __init__(self, a, b=2):\n        ...         self.a = a\n        ...         self.b = b\n        >>> C(1, 2)\n        C(a=1)\n        >>> C(1, 3)\n        C(a=1, b=3)\n\n    If Reprable instances define `_reprable_module`, that string is used\n    as a fully-qualified module name and is printed. `_reprable_module`\n    can also be True in which case the type's home module is used.\n\n        >>> class C(Reprable):\n        ...     _reprable_module = True\n        >>> C()\n        Orange.util.C()\n        >>> class C(Reprable):\n        ...     _reprable_module = 'something_else'\n        >>> C()\n        something_else.C()\n        >>> class C(Reprable):\n        ...     class ModuleResolver:\n        ...         def __str__(self):\n        ...             return 'magic'\n        ...     _reprable_module = ModuleResolver()\n        >>> C()\n        magic.C()\n\n    See Also\n    --------\n    https://docs.python.org/3/reference/datamodel.html#object.__repr__\n    \"\"\"\n    _reprable_module = ''\n\n    def _reprable_fields(self):\n        # type: () -> Iterable[Tuple[str, Any]]\n        cls = self.__class__\n        sig = inspect.signature(cls.__init__)\n        for param in sig.parameters.values():\n            # Skip self, *args, **kwargs\n            if param.name != 'self' and \\\n                    param.kind not in (param.VAR_POSITIONAL, param.VAR_KEYWORD):\n                yield param.name, param.default\n\n    # pylint: disable=unused-argument\n    def _reprable_omit_param(self, name, default, value):\n        if default is value:\n            return True\n        if type(default) is type(value):\n            try:\n                return default == value\n            except (ValueError, TypeError):\n                return False\n        else:\n            return False\n\n    def _reprable_items(self):\n        with warnings.catch_warnings():\n            warnings.simplefilter(\"error\", DeprecationWarning)\n            warnings.simplefilter(\"error\", PendingDeprecationWarning)\n            for name, default in self._reprable_fields():\n                try:\n                    value = getattr(self, name)\n                except (DeprecationWarning, PendingDeprecationWarning):\n                    continue\n                except AttributeError:\n                    value = _undef\n                if not self._reprable_omit_param(name, default, value):\n                    yield name, default, value\n\n    def _repr_pretty_(self, p, cycle):\n        \"\"\"IPython pretty print hook.\"\"\"\n        module = self._reprable_module\n        if module is True:\n            module = self.__class__.__module__\n\n        nameparts = (([str(module)] if module else []) +\n                     [self.__class__.__name__])\n        name = \".\".join(nameparts)\n        Reprable_repr_pretty(\n            name, ((f, v) for f, _, v in self._reprable_items()),\n            p, cycle)\n\n    def __repr__(self):\n        module = self._reprable_module\n        if module is True:\n            module = self.__class__.__module__\n        nameparts = (([str(module)] if module else []) +\n                     [self.__class__.__name__])\n        name = \".\".join(nameparts)\n        items = \", \".join(f\"{f}={repr(v)}\"\n                          for f, _, v in self._reprable_items())\n        return f\"{name}({items})\"\n\n\ndef wrap_callback(progress_callback, start=0, end=1):\n    \"\"\"\n    Wraps a progress callback function to allocate it end-start proportion\n    of an execution time.\n\n    :param progress_callback: callable\n    :param start: float\n    :param end: float\n    :return: callable\n    \"\"\"\n    @wraps(progress_callback)\n    def func(progress, *args, **kwargs):\n        adjusted_progress = start + progress * (end - start)\n        return progress_callback(adjusted_progress, *args, **kwargs)\n    return func\n\n\ndef dummy_callback(*_, **__):\n    \"\"\" A dummy callable. \"\"\"\n    return 1\n\n\ndef utc_from_timestamp(timestamp) -> datetime.datetime:\n    \"\"\"\n    Return the UTC datetime corresponding to the POSIX timestamp.\n    \"\"\"\n    return datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc) + \\\n           datetime.timedelta(seconds=float(timestamp))\n\n\ndef frompyfunc(func: Callable, nin: int, nout: int, dtype: 'DTypeLike'):\n    \"\"\"\n    Wrap an `func` callable into an ufunc-like function with `out`, `dtype`,\n    `where`, ... parameters. The `dtype` is used as the default.\n\n    Unlike numpy.frompyfunc this function always returns output array of\n    the specified `dtype`. Note that the conversion is space efficient.\n    \"\"\"\n    func_ = np.frompyfunc(func, nin, nout)\n\n    @wraps(func)\n    def funcv(*args, out=None, dtype=dtype, casting=\"unsafe\", **kwargs):\n        if not args:\n            raise TypeError\n        args = [np.asanyarray(a) for a in args]\n        args = np.broadcast_arrays(*args)\n        shape = args[0].shape\n        have_out = out is not None\n        if out is None and dtype is not None:\n            out = np.empty(shape, dtype)\n\n        res = func_(*args, out, dtype=dtype, casting=casting, **kwargs)\n        if res.shape == () and not have_out:\n            return res.item()\n        else:\n            return res\n\n    return funcv\n\n\n_isnan = math.isnan\n\n\ndef nan_eq(a, b) -> bool:\n    \"\"\"\n    Same as `a == b` except where both `a` and `b` are  NaN values in which\n    case `True` is returned.\n\n    .. seealso:: nan_hash_stand\n    \"\"\"\n    try:\n        both_nan = _isnan(a) and _isnan(b)\n    except TypeError:\n        return a == b\n    else:\n        return both_nan or a == b\n\n\ndef nan_hash_stand(value):\n    \"\"\"\n    If `value` is a NaN then return a singular global *standin* NaN instance,\n    otherwise return `value` unchanged.\n\n    Use this where a hash of `value` is needed and `value` might be a NaN\n    to account for distinct hashes of NaN instances.\n\n    E.g. the folowing `__eq__` and `__hash__` pairs would be ill-defined for\n    `A(float(\"nan\"))` instances if `nan_hash_stand` and `nan_eq` were not\n    used.\n    >>> class A:\n    ...     def __init__(self, v): self.v = v\n    ...     def __hash__(self): return hash(nan_hash_stand(self.v))\n    ...     def __eq__(self, other): return nan_eq(self.v, other.v)\n    \"\"\"\n    try:\n        if _isnan(value):\n            return math.nan\n    except TypeError:\n        pass\n    return value\n\n\n# For best result, keep this at the bottom\n__all__ = export_globals(globals(), __name__)\n\n# ONLY NON-EXPORTED VALUES BELOW HERE\n"}
A user will ask you to solve a task. You should first draft your thinking process (inner monologue). Then, generate the solution.

Your response format must follow the template below:
<think>
Your thoughts or/and draft, like working through an exercise on scratch paper. Be as casual and as long as you want until you are confident to generate a correct solution.
</think>
<solution>
Final solution presented to the user.
</solution>
system
We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[ISSUE]
**Title:** `allot` Class Missing `_allot__timer` Attribute Causing Test Failures

**Description:**
When running tests that attempt to patch the `_allot__timer` attribute of the `allot` class, an `AttributeError` is raised because the attribute does not exist. This prevents the tests from properly mocking the timer functionality, leading to multiple test failures.

**Example Buggy Code:**
```python
from unittest.mock import patch

class TestAllot(unittest.TestCase):

    def setUp(self):
        # Attempting to patch the non-existent '_allot__timer' attribute
        patcher = patch.object(allot, "_allot__timer", new=time.perf_counter)
        patcher.start()
        self.addCleanup(patcher.stop)

    def test_duration(self):
        @allot
        def f(x, y):
            time.sleep(0.2)
        f(5, y=6)
        self.assertGreaterEqual(f.last_call_duration, 0.2)
```

**Error Message:**
```
AttributeError: <class 'Orange.util.allot'> does not have the attribute '_allot__timer'
```

**Expected Behavior:**
The `allot` class should have an `_allot__timer` attribute that can be patched during testing. This would allow tests to accurately mock and control the timing behavior without encountering attribute errors.

**Actual Behavior:**
Attempting to patch the `_allot__timer` attribute results in an `AttributeError` because the `allot` class does not define this attribute. Consequently, tests that rely on mocking the timer fail, preventing proper verification of the timing functionalities.

[/ISSUE]
--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.

--- BEGIN FILE ---
```
### Orange/util.py
"""Various small utilities that might be useful everywhere"""
import logging
import os
import time
import inspect
import datetime
import math
import functools
from contextlib import contextmanager
from typing import TYPE_CHECKING, Callable, Union, Optional
from weakref import WeakKeyDictionary

import pkg_resources
from enum import Enum as _Enum
from functools import wraps, partial
from operator import attrgetter
from itertools import chain, count, repeat

from collections import namedtuple
import warnings

# Exposed here for convenience. Prefer patching to try-finally blocks
from unittest.mock import patch  # pylint: disable=unused-import

import numpy as np

# Backwards-compat
from Orange.data.util import scale  # pylint: disable=unused-import

if TYPE_CHECKING:
    from numpy.typing import DTypeLike


log = logging.getLogger(__name__)


class OrangeWarning(UserWarning):
    pass


class OrangeDeprecationWarning(OrangeWarning, DeprecationWarning):
    pass


warnings.simplefilter('default', OrangeWarning)

if os.environ.get('ORANGE_DEPRECATIONS_ERROR'):
    warnings.simplefilter('error', OrangeDeprecationWarning)


def _log_warning(msg):
    """
    Replacement for `warnings._showwarnmsg_impl` that logs the warning
    Logs the warning in the appropriate list, or passes it to the original
    function if the warning wasn't issued within the log_warnings context.
    """
    for frame in inspect.stack():
        if frame.frame in warning_loggers:
            warning_loggers[frame.frame].append(msg)
            break
    else:
        __orig_showwarnmsg_impl(msg)


@contextmanager
def log_warnings():
    """
    logs all warnings that occur within context, including warnings from calls.

    ```python
    with log_warnings() as warnings:
       ...
    ```

    Unlike `warnings.catch_warnings(record=True)`, this manager is thread-safe
    and will only log warning from this thread. It does so by storing the
    stack frame within which the context is created, and then checking the
    stack when the warning is issued.

    Nesting of `log_warnings` within the same function will raise an error.
    If `log_wanings` are nested within function calls, the warning is logged
    in the inner-most context.

    If `catch_warnings` is used within the `log_warnings` context, logging is
    disabled until the `catch_warnings` exits. This looks inevitable (without
    patching `catch_warnings`, which I'd prefer not to do).

    If `catch_warnings` is used outside this context, everything, including
    warning filtering, should work as expected.

    Note: the method imitates `catch_warnings` by patching the `warnings`
    module's internal function `_showwarnmsg_impl`. Python (as of version 3.9)
    doesn't seem to offer any other way of catching the warnings. This function
    was introduced in Python 3.6, so we cover all supported versions. If it is
    ever removed, unittests will crash, so we'll know. :)
    """
    # currentframe().f_back is `contextmanager`'s __enter__
    frame = inspect.currentframe().f_back.f_back
    if frame in warning_loggers:
        raise ValueError("nested log_warnings")
    try:
        warning_loggers[frame] = []
        yield warning_loggers[frame]
    finally:
        del warning_loggers[frame]


# pylint: disable=protected-access
warning_loggers = {}
__orig_showwarnmsg_impl = warnings._showwarnmsg_impl
warnings._showwarnmsg_impl = _log_warning


def resource_filename(path):
    """
    Return the resource filename path relative to the Orange package.
    """
    return pkg_resources.resource_filename("Orange", path)


def get_entry_point(dist, group, name):
    """
    Load and return the entry point from the distribution.

    Unlike `pkg_resources.load_entry_point`, this function does not check
    for requirements. Calling this function is preferred because of developers
    who experiment with different versions and have inconsistent configurations.
    """
    dist = pkg_resources.get_distribution(dist)
    ep = dist.get_entry_info(group, name)
    return ep.resolve()


def deprecated(obj):
    """
    Decorator. Mark called object deprecated.

    Parameters
    ----------
    obj: callable or str
        If callable, it is marked as deprecated and its calling raises
        OrangeDeprecationWarning. If str, it is the alternative to be used
        instead of the decorated function.

    Returns
    -------
    f: wrapped callable or decorator
        Returns decorator if obj was str.

    Examples
    --------
    >>> @deprecated
    ... def old():
    ...     return 'old behavior'
    >>> old()  # doctest: +SKIP
    /... OrangeDeprecationWarning: Call to deprecated ... old ...
    'old behavior'

    >>> class C:
    ...     @deprecated('C.new()')
    ...     def old(self):
    ...         return 'old behavior'
    ...     def new(self):
    ...         return 'new behavior'
    >>> C().old() # doctest: +SKIP
    /... OrangeDeprecationWarning: Call to deprecated ... C.old ...
      use use C.new() instead ...
    'old behavior'
    """
    alternative = f'; use {obj} instead' if isinstance(obj, str) else ''

    def decorator(func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            name = func.__name__
            if hasattr(func, "__self__"):
                name = f'{func.__self__.__class__}.{name}'
            warnings.warn(f'Call to deprecated {name}{alternative}',
                          OrangeDeprecationWarning, stacklevel=2)
            return func(*args, **kwargs)
        return wrapper

    return decorator if alternative else decorator(obj)


# This should look like decorator, not a class, pylint: disable=invalid-name
class allot:
    """
    Decorator that allows a function only a specified portion of time per call.

    Usage:

    ```
    @allot(0.2, overflow=of)
    def f(x):
       ...
    ```

    The above function is allotted 0.2 second per second. If it runs for 0.2 s,
    all subsequent calls in the next second (after the start of the call) are
    ignored. If it runs for 0.1 s, subsequent calls in the next 0.5 s are
    ignored. If it runs for a second, subsequent calls are ignored for 5 s.

    An optional overflow function can be given as a keyword argument
    `overflow`. This function must have the same signature as the wrapped
    function and is called instead of the original when the call is blocked.

    If the overflow function is not given, the wrapped function must not return
    result. This is because without the overflow function, the wrapper has no
    value to return when the call is skipped.

    The decorator adds a method `call` to force the call, e.g. by calling
    f.call(5), in the above case. The used up time still counts for the
    following (non-forced) calls.

    The decorator also adds two attributes:

    - f.last_call_duration is the duration of the last call (in seconds)
    - f.no_call_before contains the time (time.perf_counter) when the next
        call will be made.

    The decorator can be used for functions and for methods.

    A non-parametrized decorator doesn't block any calls and only adds
    last_call_duration, so that it can be used for timing.
    """
    def __new__(cls: type, arg: Union[None, float, Callable], *,
                overflow: Optional[Callable] = None,
                _bound_methods: Optional[WeakKeyDictionary] = None):
        self = super().__new__(cls)

        if arg is None or isinstance(arg, float):
            # Parametrized decorator
            if arg is not None:
                assert arg > 0

            def set_func(func):
                self.__init__(func,
                              overflow=overflow,
                              _bound_methods=_bound_methods)
                self.allotted_time = arg
                return self

            return set_func

        else:
            # Non-parametrized decorator
            self.allotted_time = None
            return self

    def __init__(self,
                 func: Callable, *,
                 overflow: Optional[Callable] = None,
                 _bound_methods: Optional[WeakKeyDictionary] = None):
        assert callable(func)
        self.func = func
        self.overflow = overflow
        functools.update_wrapper(self, func)

        self.no_call_before = 0
        self.last_call_duration = None

        # Used by __get__; see a comment there
        if _bound_methods is None:
            self.__bound_methods = WeakKeyDictionary()
        else:
            self.__bound_methods = _bound_methods

    # If we are wrapping a method, __get__ is called to bind it.
    # Create a wrapper for each instance and store it, so that each instance's
    # method gets its share of time.
    def __get__(self, inst, cls):
        if inst is None:
            return self

        if inst not in self.__bound_methods:
            # __bound_methods caches bound methods per instance. This is not
            # done for perfoamnce. Bound methods can be rebound, even to
            # different instances or even classes, e.g.
            # >>> x = f.__get__(a, A)
            # >>> y = x.__get__(b, B)
            # >>> z = x.__get__(a, A)
            # After this, we want `x is z`, there shared caching. This looks
            # bizarre, but let's keep it safe. At least binding to the same
            # instance, f.__get__(a, A),__get__(a, A), sounds reasonably
            # possible.
            cls = type(self)
            bound_overflow = self.overflow and self.overflow.__get__(inst, cls)
            decorator = cls(
                self.allotted_time,
                overflow=bound_overflow,
                _bound_methods=self.__bound_methods)
            self.__bound_methods[inst] = decorator(self.func.__get__(inst, cls))

        return self.__bound_methods[inst]

    def __call__(self, *args, **kwargs):
        if time.perf_counter() < self.no_call_before:
            if self.overflow is None:
                return None
            return self.overflow(*args, **kwargs)
        return self.call(*args, **kwargs)

    def call(self, *args, **kwargs):
        start = time.perf_counter()
        result = self.func(*args, **kwargs)
        self.last_call_duration = time.perf_counter() - start
        if self.allotted_time is not None:
            if self.overflow is None:
                assert result is None, "skippable function cannot return a result"
            self.no_call_before = start + self.last_call_duration / self.allotted_time
        return result


def literal_eval(literal):
    import ast  # pylint: disable=import-outside-toplevel
    # ast.literal_eval does not parse empty set ¯\_(ツ)_/¯

    if literal == "set()":
        return set()
    return ast.literal_eval(literal)


op_map = {
    '==': lambda a, b: a == b,
    '>=': lambda a, b: a >= b,
    '<=': lambda a, b: a <= b,
    '>': lambda a, b: a > b,
    '<': lambda a, b: a < b
}


_Requirement = namedtuple("_Requirement", ["name", "op", "value"])


bool_map = {
    "True": True,
    "true": True,
    1: True,
    "False": False,
    "false": False,
    0: False
}


def requirementsSatisfied(required_state, local_state, req_type=None):
    """
    Checks a list of requirements against a dictionary representing local state.

    Args:
        required_state ([str]): List of strings representing required state
                                using comparison operators
        local_state (dict): Dictionary representing current state
        req_type (type): Casts values to req_type before comparing them.
                         Defaults to local_state type.
    """
    for req_string in required_state:
        # parse requirement
        req = None
        for op_str, op in op_map.items():
            split = req_string.split(op_str)
            # if operation is not in req_string, continue
            if len(split) == 2:
                req = _Requirement(split[0], op, split[1])
                break

        if req is None:
            log.error("Invalid requirement specification: %s", req_string)
            return False

        compare_type = req_type or type(local_state[req.name])
        # check if local state satisfies required state (specification)
        if compare_type is bool:
            # boolean is a special case, where simply casting to bool does not produce target result
            required_value = bool_map[req.value]
        else:
            required_value = compare_type(req.value)
        local_value = compare_type(local_state[req.name])

        # finally, compare the values
        if not req.op(local_value, required_value):
            return False
    return True


def try_(func, default=None):
    """Try return the result of func, else return default."""
    try:
        return func()
    except Exception:  # pylint: disable=broad-except
        return default


def flatten(lst):
    """Flatten iterable a single level."""
    return chain.from_iterable(lst)


class Registry(type):
    """Metaclass that registers subtypes."""
    def __new__(mcs, name, bases, attrs):
        cls = type.__new__(mcs, name, bases, attrs)
        if not hasattr(cls, 'registry'):
            cls.registry = {}
        else:
            cls.registry[name] = cls
        return cls

    def __iter__(cls):
        return iter(cls.registry)

    def __str__(cls):
        if cls in cls.registry.values():
            return cls.__name__
        return f'{cls.__name__}({{{", ".join(cls.registry)}}})'


# it is what it is, we keep for compatibility:
# pylint: disable=keyword-arg-before-vararg
def namegen(prefix='_', *args, spec_count=count, **kwargs):
    """Continually generate names with `prefix`, e.g. '_1', '_2', ..."""
    # pylint: disable=stop-iteration-return
    spec_count = iter(spec_count(*args, **kwargs))
    while True:
        yield prefix + str(next(spec_count))


def export_globals(globals, module_name):
    """
    Return list of important for export globals (callables, constants) from
    `globals` dict, defined in module `module_name`.

    Usage
    -----
    In some module, on the second-to-last line:

    __all__ = export_globals(globals(), __name__)

    """
    return [getattr(v, '__name__', k)
            for k, v in globals.items()                          # export
            if ((callable(v) and v.__module__ == module_name     # callables from this module
                 or k.isupper()) and                             # or CONSTANTS
                not getattr(v, '__name__', k).startswith('_'))]  # neither marked internal


_NOTSET = object()


def deepgetattr(obj, attr, default=_NOTSET):
    """Works exactly like getattr(), except that attr can be a nested attribute
    (e.g. "attr1.attr2.attr3").
    """
    try:
        return attrgetter(attr)(obj)
    except AttributeError:
        if default is _NOTSET:
            raise
        return default


def color_to_hex(color):
    # pylint: disable=consider-using-f-string
    return "#{:02X}{:02X}{:02X}".format(*color)


def hex_to_color(s):
    return int(s[1:3], 16), int(s[3:5], 16), int(s[5:7], 16)


def inherit_docstrings(cls):
    """Inherit methods' docstrings from first superclass that defines them"""
    for method in cls.__dict__.values():
        if inspect.isfunction(method) and method.__doc__ is None:
            for parent in cls.__mro__[1:]:
                doc = getattr(parent, method.__name__, None).__doc__
                if doc:
                    method.__doc__ = doc
                    break
    return cls


class Enum(_Enum):
    """Enum that represents itself with the qualified name, e.g. Color.red"""
    __repr__ = _Enum.__str__


def interleave(seq1, seq2):
    """
    Interleave elements of `seq2` between consecutive elements of `seq1`.

    Example
    -------
    >>> list(interleave([1, 3, 5], [2, 4]))
    [1, 2, 3, 4, 5]
    >>> list(interleave([1, 2, 3, 4], repeat("<")))
    [1, '<', 2, '<', 3, '<', 4]
    """
    iterator1, iterator2 = iter(seq1), iter(seq2)
    try:
        leading = next(iterator1)
    except StopIteration:
        pass
    else:
        for element in iterator1:
            yield leading
            try:
                yield next(iterator2)
            except StopIteration:
                return
            leading = element
        yield leading


def Reprable_repr_pretty(name, itemsiter, printer, cycle):
    # type: (str, Iterable[Tuple[str, Any]], Ipython.lib.pretty.PrettyPrinter, bool) -> None
    if cycle:
        printer.text(f"{name}(...)")
    else:
        def printitem(field, value):
            printer.text(field + "=")
            printer.pretty(value)

        def printsep():
            printer.text(",")
            printer.breakable()

        itemsiter = (partial(printitem, *item) for item in itemsiter)
        sepiter = repeat(printsep)

        with printer.group(len(name) + 1, f"{name}(", ")"):
            for part in interleave(itemsiter, sepiter):
                part()
                part()


class _Undef:
    def __repr__(self):
        return "<?>"
_undef = _Undef()


class Reprable:
    """A type that inherits from this class has its __repr__ string
    auto-generated so that it "[...] should look like a valid Python
    expression that could be used to recreate an object with the same
    value [...]" (see See Also section below).

    This relies on the instances of type to have attributes that
    match the arguments of the type's constructor. Only the values that
    don't match the arguments' defaults are printed, i.e.:

        >>> class C(Reprable):
        ...     def __init__(self, a, b=2):
        ...         self.a = a
        ...         self.b = b
        >>> C(1, 2)
        C(a=1)
        >>> C(1, 3)
        C(a=1, b=3)

    If Reprable instances define `_reprable_module`, that string is used
    as a fully-qualified module name and is printed. `_reprable_module`
    can also be True in which case the type's home module is used.

        >>> class C(Reprable):
        ...     _reprable_module = True
        >>> C()
        Orange.util.C()
        >>> class C(Reprable):
        ...     _reprable_module = 'something_else'
        >>> C()
        something_else.C()
        >>> class C(Reprable):
        ...     class ModuleResolver:
        ...         def __str__(self):
        ...             return 'magic'
        ...     _reprable_module = ModuleResolver()
        >>> C()
        magic.C()

    See Also
    --------
    https://docs.python.org/3/reference/datamodel.html#object.__repr__
    """
    _reprable_module = ''

    def _reprable_fields(self):
        # type: () -> Iterable[Tuple[str, Any]]
        cls = self.__class__
        sig = inspect.signature(cls.__init__)
        for param in sig.parameters.values():
            # Skip self, *args, **kwargs
            if param.name != 'self' and \
                    param.kind not in (param.VAR_POSITIONAL, param.VAR_KEYWORD):
                yield param.name, param.default

    # pylint: disable=unused-argument
    def _reprable_omit_param(self, name, default, value):
        if default is value:
            return True
        if type(default) is type(value):
            try:
                return default == value
            except (ValueError, TypeError):
                return False
        else:
            return False

    def _reprable_items(self):
        with warnings.catch_warnings():
            warnings.simplefilter("error", DeprecationWarning)
            warnings.simplefilter("error", PendingDeprecationWarning)
            for name, default in self._reprable_fields():
                try:
                    value = getattr(self, name)
                except (DeprecationWarning, PendingDeprecationWarning):
                    continue
                except AttributeError:
                    value = _undef
                if not self._reprable_omit_param(name, default, value):
                    yield name, default, value

    def _repr_pretty_(self, p, cycle):
        """IPython pretty print hook."""
        module = self._reprable_module
        if module is True:
            module = self.__class__.__module__

        nameparts = (([str(module)] if module else []) +
                     [self.__class__.__name__])
        name = ".".join(nameparts)
        Reprable_repr_pretty(
            name, ((f, v) for f, _, v in self._reprable_items()),
            p, cycle)

    def __repr__(self):
        module = self._reprable_module
        if module is True:
            module = self.__class__.__module__
        nameparts = (([str(module)] if module else []) +
                     [self.__class__.__name__])
        name = ".".join(nameparts)
        items = ", ".join(f"{f}={repr(v)}"
                          for f, _, v in self._reprable_items())
        return f"{name}({items})"


def wrap_callback(progress_callback, start=0, end=1):
    """
    Wraps a progress callback function to allocate it end-start proportion
    of an execution time.

    :param progress_callback: callable
    :param start: float
    :param end: float
    :return: callable
    """
    @wraps(progress_callback)
    def func(progress, *args, **kwargs):
        adjusted_progress = start + progress * (end - start)
        return progress_callback(adjusted_progress, *args, **kwargs)
    return func


def dummy_callback(*_, **__):
    """ A dummy callable. """
    return 1


def utc_from_timestamp(timestamp) -> datetime.datetime:
    """
    Return the UTC datetime corresponding to the POSIX timestamp.
    """
    return datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc) + \
           datetime.timedelta(seconds=float(timestamp))


def frompyfunc(func: Callable, nin: int, nout: int, dtype: 'DTypeLike'):
    """
    Wrap an `func` callable into an ufunc-like function with `out`, `dtype`,
    `where`, ... parameters. The `dtype` is used as the default.

    Unlike numpy.frompyfunc this function always returns output array of
    the specified `dtype`. Note that the conversion is space efficient.
    """
    func_ = np.frompyfunc(func, nin, nout)

    @wraps(func)
    def funcv(*args, out=None, dtype=dtype, casting="unsafe", **kwargs):
        if not args:
            raise TypeError
        args = [np.asanyarray(a) for a in args]
        args = np.broadcast_arrays(*args)
        shape = args[0].shape
        have_out = out is not None
        if out is None and dtype is not None:
            out = np.empty(shape, dtype)

        res = func_(*args, out, dtype=dtype, casting=casting, **kwargs)
        if res.shape == () and not have_out:
            return res.item()
        else:
            return res

    return funcv


_isnan = math.isnan


def nan_eq(a, b) -> bool:
    """
    Same as `a == b` except where both `a` and `b` are  NaN values in which
    case `True` is returned.

    .. seealso:: nan_hash_stand
    """
    try:
        both_nan = _isnan(a) and _isnan(b)
    except TypeError:
        return a == b
    else:
        return both_nan or a == b


def nan_hash_stand(value):
    """
    If `value` is a NaN then return a singular global *standin* NaN instance,
    otherwise return `value` unchanged.

    Use this where a hash of `value` is needed and `value` might be a NaN
    to account for distinct hashes of NaN instances.

    E.g. the folowing `__eq__` and `__hash__` pairs would be ill-defined for
    `A(float("nan"))` instances if `nan_hash_stand` and `nan_eq` were not
    used.
    >>> class A:
    ...     def __init__(self, v): self.v = v
    ...     def __hash__(self): return hash(nan_hash_stand(self.v))
    ...     def __eq__(self, other): return nan_eq(self.v, other.v)
    """
    try:
        if _isnan(value):
            return math.nan
    except TypeError:
        pass
    return value


# For best result, keep this at the bottom
__all__ = export_globals(globals(), __name__)

# ONLY NON-EXPORTED VALUES BELOW HERE

```
--- END FILE ---

Please first localize the bug based on the issue statement, and then generate *SEARCH/REPLACE* edits to fix the issue.

Every *SEARCH/REPLACE* edit must use this format:
1. The file path
2. The start of search block: <<<<<<< SEARCH
3. A contiguous chunk of lines to search for in the existing source code
4. The dividing line: =======
5. The lines to replace into the source code
6. The end of the replace block: >>>>>>> REPLACE

Here is an example:

```python
### mathweb/flask/app.py
<<<<<<< SEARCH
from flask import Flask
=======
import math
from flask import Flask
>>>>>>> REPLACE
```
</solution>

Please note that the *SEARCH/REPLACE* edit REQUIRES PROPER INDENTATION. If you would like to add the line '        print(x)', you must fully write that out, with all those spaces before the code!
Wrap each *SEARCH/REPLACE* edit in a code block as shown in the example above. If you have multiple *SEARCH/REPLACE* edits, use a separate code block for each one.
user