<commit_before>%div.api
  %ul.klasses
    - doc.each do |klass, klass_methods|
      %li
        %a{:href => '#' + klass[:klass]}= klass[:klass]
  - doc.each do |klass, klass_methods|
    / its just a function
    - if klass_methods[:methods].empty? 
      %div.meth{:id => klass[:klass]}
        %h2
          =klass[:klass] 
          %span
            (
            %em=klass[:args].join(', ')
            )
        %div.doc><
          =convert(klass[:doc])
    - else
      %div.klass{:id => klass[:klass]}
        %h2
          =klass[:klass]
          %span
            (
            %em=klass[:args].join(', ')
            )
        %div.doc><
          = convert(klass[:doc] || "")
        - unless klass_methods[:attributes].empty?
          %h3 Attributes
          %ul
            - klass_methods[:attributes].each_with_index do |meth,i|
              %li
                %a{:href => "#attr_\#{i}"}=meth[:name]
          %hr
          - klass_methods[:attributes].each_with_index do |attribute, i|
            %div.attr{:id => "attr_\#{i}"}
              %h4
                =attribute[:name] 
                \\=
                %span=attribute[:default]
              %div.doc><
                = convert(attribute[:doc])
        %h3 Methods
        %ul
          -klass_methods[:methods].each_with_index do |meth,i|
            %li
              %a{:href => "#meth_\#{i}"}=meth[:name]
        %hr
        -klass_methods[:methods].each_with_index do |meth,i|
          %div.meth{:id => "meth_\#{i}"}
            %h4
              =meth[:name] 
              %span
                (
                %em=meth[:args].join(', ')
                )
            %div.doc><
              =convert(meth[:doc])<commit_msg>Fixed doc linking in template<commit_after>%div.api
  %ul.klasses
    - doc.each do |klass, klass_methods|
      %li
        %a{:href => '#' + klass[:klass]}= klass[:klass]
  - doc.each do |klass, klass_methods|
    / its just a function
    - if klass_methods[:methods].empty? 
      %div.meth{:id => klass[:klass]}
        %h2
          =klass[:klass] 
          %span
            (
            %em=klass[:args].join(', ')
            )
        %div.doc><
          =convert(klass[:doc])
    - else
      %div.klass{:id => klass[:klass]}
        %h2
          =klass[:klass]
          %span
            (
            %em=klass[:args].join(', ')
            )
        %div.doc><
          = convert(klass[:doc] || "")
        - unless klass_methods[:attributes].empty?
          %h3 Attributes
          %ul
            - klass_methods[:attributes].each_with_index do |meth,i|
              %li
                %a{:href => "#attr_#{i}"}=meth[:name]
          %hr
          - klass_methods[:attributes].each_with_index do |attribute, i|
            %div.attr{:id => "attr_#{i}"}
              %h4
                =attribute[:name] 
                \\=
                %span=attribute[:default]
              %div.doc><
                = convert(attribute[:doc])
        %h3 Methods
        %ul
          -klass_methods[:methods].each_with_index do |meth,i|
            %li
              %a{:href => "#meth_#{i}"}=meth[:name]
        %hr
        -klass_methods[:methods].each_with_index do |meth,i|
          %div.meth{:id => "meth_#{i}"}
            %h4
              =meth[:name] 
              %span
                (
                %em=meth[:args].join(', ')
                )
            %div.doc><
              =convert(meth[:doc])
{'fraction_non_alphanumeric': 0.16224018475750576, 'fraction_numerical': 0.003464203233256351, 'mean_word_length': 1.314629258517034, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 25, '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': '316343', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1108, 'n_words': 165}