<commit_before>﻿Imports System.Runtime.CompilerServices
Imports Microsoft.VisualBasic.ComponentModel.Collection.Generic

Public Module FillClass

    <Extension>
    Public Iterator Function FillCompoundClass(Of cpd As {INamedValue, ICompoundClass})(anno As IEnumerable(Of ClassyfireAnnotation),
                                                                                        classifyObo As ChemOntClassify,
                                                                                        compounds As IEnumerable(Of cpd)) As IEnumerable(Of cpd)
        Dim annotations = anno _
            .GroupBy(Function(a) a.CompoundID) _
            .ToDictionary(Function(a) a.Key,
                          Function(a)
                              Return a.ToArray
                          End Function)

    End Function
End Module<commit_msg>code style improvements on reflection helper<commit_after>﻿Imports System.Runtime.CompilerServices
Imports Microsoft.VisualBasic.ComponentModel.Collection.Generic

Public Module FillClass

    <Extension>
    Public Iterator Function FillCompoundClass(Of cpd As {INamedValue, ICompoundClass})(anno As IEnumerable(Of ClassyfireAnnotation),
                                                                                        classifyObo As ChemOntClassify,
                                                                                        compounds As IEnumerable(Of cpd)) As IEnumerable(Of cpd)
        Dim annotations = anno _
            .GroupBy(Function(a) a.CompoundID) _
            .ToDictionary(Function(a) a.Key,
                          Function(a)
                              Return a.ToArray
                          End Function)
        Dim kingdom = classifyObo.kingdom.Select(Function() )
        Dim super_class
        Dim [class]
        Dim sub_class
        Dim molecular_framework

    End Function


End Module
{'fraction_non_alphanumeric': 0.05107951553449184, 'fraction_numerical': 0.0, 'mean_word_length': 1.4081115335868188, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5601609', 'n_tokens_mistral': 408, 'n_tokens_neox': 395, 'n_words': 105}