<commit_before>import windows
import windows.generated_def as gdef

manager = windows.system.device_manager
print(manager)
for devcls in manager.classes:
    print("- {0!r}".format(devcls))
    for device in devcls.devices:
        print(u"    - [{dev.name}] <{dev.description}> ({dev.device_object_name})".format(dev=device))
        devconf = device.get_first_logical_configuration(gdef.ALLOC_LOG_CONF)
        if devconf:
            # import pdb;pdb.set_trace()
            # print(devconf)
            print("      <config:>")
            for resource in devconf.resources:
                print("        - {0}".format(resource))

        # print(dev.description)
        # print(dev.device_object_name)
        # # x = dev.get_first_logical_configuration(gdef.ALLOC_LOG_CONF)
        # x = dev.get_first_logical_configuration(gdef.BOOT_LOG_CONF)
        # if x:
        #     print(x)
        #     for res in x.resources:<commit_msg>Added some comment about unsure high-level API choice/possibility to discuss<commit_after>import windows
import windows.generated_def as gdef

manager = windows.system.device_manager
print(manager)
for devcls in manager.classes:
    print("- {0!r}".format(devcls))
    for device in devcls.devices:
        print(u"    - [{dev.name}] <{dev.description}> ({dev.device_object_name})".format(dev=device))
        # Je sais pas trop quoi faire comme API sur ce truc
        # Apparement on peut avoir plusieurs logical_configuration par type
        #   - Je sais meme pas si c'est possible en vrai meme si <CM_Get_Next_Log_Conf> existe
        # Idées:
        #   * get_allocated_conf + get_boot_conf & co
        #   * logical_configurations() qui retourne la liste complete
        #   * Je sais pas trop
        #
        devconf = device.get_first_logical_configuration(gdef.ALLOC_LOG_CONF)
        if devconf:
            # import pdb;pdb.set_trace()
            # print(devconf)
            print("      <config:>")
            for resource in devconf.resources:
                print("        - {0}".format(resource))

        # print(dev.description)
        # print(dev.device_object_name)
        # # x = dev.get_first_logical_configuration(gdef.ALLOC_LOG_CONF)
        # x = dev.get_first_logical_configuration(gdef.BOOT_LOG_CONF)
        # if x:
        #     print(x)
        #     for res in x.resources:
{'fraction_non_alphanumeric': 0.10271646859083192, 'fraction_numerical': 0.001697792869269949, 'mean_word_length': 2.461086637298091, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6253110', 'n_tokens_mistral': 721, 'n_tokens_neox': 721, 'n_words': 156}