<commit_before>import rdtest
import renderdoc as rd


class D3D12_Descriptor_Indexing(rdtest.TestCase):
    demos_test_name = 'D3D12_Descriptor_Indexing'

    def check_support(self):
        cfg = rd.GetConfigSetting("D3D12_Experimental_BindlessFeedback")
        if cfg is not None and cfg.AsBool() is False:
            return False, 'Bindless feedback is not enabled'

        return super().check_support()

    def check_compute(self, eventId):
            action = self.find_action("Dispatch", eventId)
            self.check(action is not None)
            self.controller.SetFrameEvent(action.eventId, False)

            pipe = self.controller.GetD3D12PipelineState()

            if len(pipe.rootElements) != 2:
                raise rdtest.TestFailureException("Wrong number of root elements is bound: {}, not 2"
                                                  .format(len(pipe.rootElements)))

            root = pipe.rootElements[0]
            # second root element is the cbuffer const, we don't care

            if root.dynamicallyUsedCount != 1:
                raise rdtest.TestFailureException("Compute root range 0 has {} dynamically used, not 1"
                                                  .format(root.dynamicallyUsedCount))

            if not root.views[15].dynamicallyUsed:
                raise rdtest.TestFailureException("Compute root range 0[15] isn't dynamically used")

            for i in range(len(root.views)):
                if i == 15:
                    continue

                if root.views[i].dynamicallyUsed:<commit_msg>Remove outdated experimental feature check<commit_after>import rdtest
import renderdoc as rd


class D3D12_Descriptor_Indexing(rdtest.TestCase):
    demos_test_name = 'D3D12_Descriptor_Indexing'

    def check_compute(self, eventId):
            action = self.find_action("Dispatch", eventId)
            self.check(action is not None)
            self.controller.SetFrameEvent(action.eventId, False)

            pipe = self.controller.GetD3D12PipelineState()

            if len(pipe.rootElements) != 2:
                raise rdtest.TestFailureException("Wrong number of root elements is bound: {}, not 2"
                                                  .format(len(pipe.rootElements)))

            root = pipe.rootElements[0]
            # second root element is the cbuffer const, we don't care

            if root.dynamicallyUsedCount != 1:
                raise rdtest.TestFailureException("Compute root range 0 has {} dynamically used, not 1"
                                                  .format(root.dynamicallyUsedCount))

            if not root.views[15].dynamicallyUsed:
                raise rdtest.TestFailureException("Compute root range 0[15] isn't dynamically used")

            for i in range(len(root.views)):
                if i == 15:
                    continue

                if root.views[i].dynamicallyUsed:
{'fraction_non_alphanumeric': 0.07976720301266689, 'fraction_numerical': 0.01609038000684697, 'mean_word_length': 1.972533062054934, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5707723', 'n_tokens_mistral': 796, 'n_tokens_neox': 719, 'n_words': 195}