<commit_before>---
layout: default
---
#content
  .row
    .span9
      .hero-unit
        %h2
          -# FIXME make a property for this substring
          = page.module.name.sub(/ #{page.component.type_name}$/, '')
          %small{ :style=>'white-space: nowrap' }= page.component.type_name
        %p= page.module.desc
        - unless site.descriptions[page.component.key].nil?
          %h3 What is #{page.component.name}?
          %p= site.descriptions[page.component.key]
        - unless page.component.releases.empty?
          %ul.breadcrumb{ :style=>'padding-top: 1em; padding-bottom: 1em; margin-top: 2em;font-size:90%' }
            %li
              %i.icon-tag
              Latest version:
              %strong.label{ :style=>'position: relative; top: -1px;' }= page.component.releases.last.version
              %span.divider= "|"
            %li
              %i.icon-calendar
              Release date:
              %strong= page.component.releases.last.date.strftime('%Y-%m-%d')
              %span.divider= "|"
            %li
              %i.icon-leaf
              License:
              %strong
                %a{:href => "http://opensource.org/licenses/#{page.component.license}", :style=>'color: inherit', :target => 'license'}= site.licenses[page.component.license]
            %li
              %i.icon-book
              %a{:href => "http://opensource.org/licenses/#{page.component.license}", :style=>'color: inherit', :target => 'license'}Documentation

      .row
        .span3
          %h3
            %i.icon-star
            Lead
          %p
            - if page.component.lead
              - identity = site.identities.lookup(page.component.lead.jboss_username)
              - identity = site.identities.lookup(page.component.lead.github_id) if identity.nil?
              - identity = site.identities.lookup_by_email(page.component.lead.email) if identity.nil?
              - unless identity.nil?
                .thumbnail{ :style=>'margin-top: -5px; margin-bottom: 3px; width: 48px;' }
                  %a{ :href=> identity.url }
                    %img{ :src=>identity.avatar_url(48), :height=>48, :width=>48  }
                %a{ :href=> identity.url }
                  = page.component.lead.name
              - if identity.nil?
                = page.component.lead.name
            - else
              Unknown
        .span3
          %h3
            %i.icon-barcode
            Type
          %p= page.component.type_name
        - unless page.component.family.nil?
          .span3
            %h3
              %i.icon-heart
              Family
            %p
              -#.thumbnail{ :style=>'margin-top: -5px; margin-bottom: 3px; width: 48px;' }
              -#  %img{ :src=>"/images/logo-#{page.component.family}.png", :alt=>page.component.family, :style=>'height: 48px; width: 48px;' }
              = page.component.family
    .span3
      .well
        %h3
          %i.icon-github
          Source repository
        %dl.unstyled
          %dt
            %abbr(title="Version Control System") VCS
          %dd= page.component.repository.type
          %dt Host
          %dd= page.component.repository.host
          %dt Organization
          %dd
            -# make function for organization url or add to data structure
            %a{:href=>"http://#{page.component.repository.host}/#{page.component.repository.owner}"}= page.component.repository.owner
          %dt Web URL
          %dd
            - # make a function for full path (path + relative_path) or add to data structure
            %a{:href=>page.component.html_url}= page.component.repository.relative_path.empty? ? page.component.repository.path : "#{page.component.repository.path}/#{page.component.repository.relative_path.chomp('/')}"
          %dt Clone URL
          %dd
            %a{:href=>page.component.repository.clone_url}= page.component.repository.path + '.' + page.component.repository.type
          - if page.component.repository.host.eql? 'github.com'
            %iframe{:src=>"http://ghbtns.com/github-btn.html?user=#{page.component.repository.owner}&repo=#{page.component.repository.path}&type=fork&count=true", :allowtransparency=>"true", :frameborder=>0, :scrolling=>0, :width=>"95px", :height=>"20px"}
            %iframe{:src=>"http://ghbtns.com/github-btn.html?user=#{page.component.repository.owner}&repo=#{page.component.repository.path}&type=watch&count=true", :allowtransparency=>"true", :frameborder=>0, :scrolling=>0, :width=>"95px", :height=>"20px"}
          -# component.path ??
  %section#activity
    .page-header
      %h1
        Latest activity
    %p
      %strong= page.component.unreleased_commits
      #{'commit'.pluralize_unless_one(page.component.unreleased_commits)} since the last release.
    %p Last commit to the master branch:
    %table.table.table-bordered
      %thead
        %tr
          %th
            %a{:href=>page.component.last_commit.html_url}= page.component.last_commit.message.split(/\n/, 2).first
      %tbody
        %tr
          %td
            %i.icon-user
            Authored by #{page.component.last_commit.author.name},
            committed on #{page.component.last_commit.date.strftime('%Y-%m-%d')}
  %section#artifacts<commit_msg>Adds documentation link in the module details<commit_after>---
layout: default
---
#content
  .row
    .span9
      .hero-unit
        %h2
          -# FIXME make a property for this substring
          = page.module.name.sub(/ #{page.component.type_name}$/, '')
          %small{ :style=>'white-space: nowrap' }= page.component.type_name
        %p= page.module.desc
        - unless site.descriptions[page.component.key].nil?
          %h3 What is #{page.component.name}?
          %p= site.descriptions[page.component.key]
        - unless page.component.releases.empty?
          %ul.breadcrumb{ :style=>'padding-top: 1em; padding-bottom: 1em; margin-top: 2em;font-size:90%' }
            %li
              %i.icon-tag
              Latest version:
              %strong.label{ :style=>'position: relative; top: -1px;' }= page.component.releases.last.version
              %span.divider= "|"
            %li
              %i.icon-calendar
              Release date:
              %strong= page.component.releases.last.date.strftime('%Y-%m-%d')
              %span.divider= "|"
            %li
              %i.icon-leaf
              License:
              %strong
                %a{:href => "http://opensource.org/licenses/#{page.component.license}", :style=>'color: inherit', :target => 'license'}= site.licenses[page.component.license]

      .row
        .span3
          %h3
            %i.icon-star
            Lead
          %p
            - if page.component.lead
              - identity = site.identities.lookup(page.component.lead.jboss_username)
              - identity = site.identities.lookup(page.component.lead.github_id) if identity.nil?
              - identity = site.identities.lookup_by_email(page.component.lead.email) if identity.nil?
              - unless identity.nil?
                .thumbnail{ :style=>'margin-top: -5px; margin-bottom: 3px; width: 48px;' }
                  %a{ :href=> identity.url }
                    %img{ :src=>identity.avatar_url(48), :height=>48, :width=>48  }
                %a{ :href=> identity.url }
                  = page.component.lead.name
              - if identity.nil?
                = page.component.lead.name
            - else
              Unknown
        .span3
          %h3
            %i.icon-barcode
            Type
          %p= page.component.type_name
        - unless page.component.family.nil?
          .span3
            %h3
              %i.icon-heart
              Family
            %p
              -#.thumbnail{ :style=>'margin-top: -5px; margin-bottom: 3px; width: 48px;' }
              -#  %img{ :src=>"/images/logo-#{page.component.family}.png", :alt=>page.component.family, :style=>'height: 48px; width: 48px;' }
              = page.component.family
    .span3
      .well
        %h3
          %i.icon-github
          Source repository
        %dl.unstyled
          %dt
            %abbr(title="Version Control System") VCS
          %dd= page.component.repository.type
          %dt Host
          %dd= page.component.repository.host
          %dt Organization
          %dd
            -# make function for organization url or add to data structure
            %a{:href=>"http://#{page.component.repository.host}/#{page.component.repository.owner}"}= page.component.repository.owner
          %dt Web URL
          %dd
            - # make a function for full path (path + relative_path) or add to data structure
            %a{:href=>page.component.html_url}= page.component.repository.relative_path.empty? ? page.component.repository.path : "#{page.component.repository.path}/#{page.component.repository.relative_path.chomp('/')}"
          %dt Clone URL
          %dd
            %a{:href=>page.component.repository.clone_url}= page.component.repository.path + '.' + page.component.repository.type
          - if page.component.repository.host.eql? 'github.com'
            %iframe{:src=>"http://ghbtns.com/github-btn.html?user=#{page.component.repository.owner}&repo=#{page.component.repository.path}&type=fork&count=true", :allowtransparency=>"true", :frameborder=>0, :scrolling=>0, :width=>"95px", :height=>"20px"}
            %iframe{:src=>"http://ghbtns.com/github-btn.html?user=#{page.component.repository.owner}&repo=#{page.component.repository.path}&type=watch&count=true", :allowtransparency=>"true", :frameborder=>0, :scrolling=>0, :width=>"95px", :height=>"20px"}
          -# component.path ??
    - if page.component.has_docs
      .span3
        .well
          %i.icon-book
          %a(style="margin-left: 8px"){:href=>"http://#{site.prod_url}/#{page.component.repository.path}"}Documentation

  %section#activity
    .page-header
      %h1
        Latest activity
    %p
      %strong= page.component.unreleased_commits
      #{'commit'.pluralize_unless_one(page.component.unreleased_commits)} since the last release.
    %p Last commit to the master branch:
    %table.table.table-bordered
      %thead
        %tr
          %th
            %a{:href=>page.component.last_commit.html_url}= page.component.last_commit.message.split(/\n/, 2).first
      %tbody
        %tr
          %td
            %i.icon-user
            Authored by #{page.component.last_commit.author.name},
            committed on #{page.component.last_commit.date.strftime('%Y-%m-%d')}
  %section#artifacts
{'fraction_non_alphanumeric': 0.14489873178118493, 'fraction_numerical': 0.00946431951542684, 'mean_word_length': 1.9682584269662922, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 71, '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': '6478783', 'n_tokens_mistral': 3235, 'n_tokens_neox': 3137, 'n_words': 530}