<commit_before>- title @owner.nickname
.container#owner-info
  .container
    .row
      .col-md-3.owner-box
        = owner_image(@owner, 213, false)

      .col-md-7.owner-box
        - if @owner.name
          %h1
            = @owner.name
            = render 'supporter_badge'
          %h4= @owner.nickname
        - else
          %h1
            = @owner.nickname
            = render 'supporter_badge'

        %ul.list-unstyled
          - unless @owner.company.blank?
            %li
              %i.fa.fa-users.fa-fw.text-muted
              = @owner.company
          - unless @owner.location.blank?
            %li
              %i.fa.fa-map-marker.fa-fw.text-muted
              = @owner.location
          - unless @owner.blog.blank?
            %li
              %i.fa.fa-link.fa-fw.text-muted
              = link_to @owner.blog, @owner.blog
        %p
          %i.fa.fa-github-alt.fa-fw.text-muted
          = link_to "#{@owner.nickname} on GitHub", @owner.github_url, target: "_blank"

      .col-md-2.owner-box
        - if signed_in?
          .pull-right= render partial: "watch_button", locals: {owner: @owner}
        - if can? :settings, @owner
          .pull-right= button_link_to "Settings", settings_owner_path(@owner)

.container
  - unless @owner.organizations.empty?
    %h3 Public Organizations
    %p
      - @owner.organizations.each do |org|
        = link_to owner_image(org, 60), org
  - unless @owner.users.empty?
    %h3 Members
    %p
      - @owner.users.each do |user|
        = link_to owner_image(user, 60), user

  - if @scrapers.empty?
    %h3 Has no scrapers

  - else
    %h3= pluralize(@scrapers.count, "scraper")
    .list-group= sync partial: "scraper_without_owner", collection: @running_scrapers
    .list-group= sync partial: "scraper_without_owner", collection: @erroring_scrapers
    .list-group= sync partial: "scraper_without_owner", collection: @other_scrapers.sort{|a,b| b.updated_at <=> a.updated_at}

  - if @owner == current_user || @owner.organization? && @owner.users.include?(current_user)
    = button_link_to "New scraper", new_scraper_path

  - if @owner.user? && !@owner.other_scrapers_contributed_to.empty?
    %h3
      Contributed to
      = pluralize(@owner.other_scrapers_contributed_to.count, "scraper")
    .list-group= sync partial: "scraper", collection: @owner.other_scrapers_contributed_to

  = render partial: 'statistics', locals: {owner: @owner, scrapers: @scrapers}<commit_msg>Temporarily disable display of statistics for performance reasons<commit_after>- title @owner.nickname
.container#owner-info
  .container
    .row
      .col-md-3.owner-box
        = owner_image(@owner, 213, false)

      .col-md-7.owner-box
        - if @owner.name
          %h1
            = @owner.name
            = render 'supporter_badge'
          %h4= @owner.nickname
        - else
          %h1
            = @owner.nickname
            = render 'supporter_badge'

        %ul.list-unstyled
          - unless @owner.company.blank?
            %li
              %i.fa.fa-users.fa-fw.text-muted
              = @owner.company
          - unless @owner.location.blank?
            %li
              %i.fa.fa-map-marker.fa-fw.text-muted
              = @owner.location
          - unless @owner.blog.blank?
            %li
              %i.fa.fa-link.fa-fw.text-muted
              = link_to @owner.blog, @owner.blog
        %p
          %i.fa.fa-github-alt.fa-fw.text-muted
          = link_to "#{@owner.nickname} on GitHub", @owner.github_url, target: "_blank"

      .col-md-2.owner-box
        - if signed_in?
          .pull-right= render partial: "watch_button", locals: {owner: @owner}
        - if can? :settings, @owner
          .pull-right= button_link_to "Settings", settings_owner_path(@owner)

.container
  - unless @owner.organizations.empty?
    %h3 Public Organizations
    %p
      - @owner.organizations.each do |org|
        = link_to owner_image(org, 60), org
  - unless @owner.users.empty?
    %h3 Members
    %p
      - @owner.users.each do |user|
        = link_to owner_image(user, 60), user

  - if @scrapers.empty?
    %h3 Has no scrapers

  - else
    %h3= pluralize(@scrapers.count, "scraper")
    .list-group= sync partial: "scraper_without_owner", collection: @running_scrapers
    .list-group= sync partial: "scraper_without_owner", collection: @erroring_scrapers
    .list-group= sync partial: "scraper_without_owner", collection: @other_scrapers.sort{|a,b| b.updated_at <=> a.updated_at}

  - if @owner == current_user || @owner.organization? && @owner.users.include?(current_user)
    = button_link_to "New scraper", new_scraper_path

  - if @owner.user? && !@owner.other_scrapers_contributed_to.empty?
    %h3
      Contributed to
      = pluralize(@owner.other_scrapers_contributed_to.count, "scraper")
    .list-group= sync partial: "scraper", collection: @owner.other_scrapers_contributed_to

  -# Temporarily disabling the display of these statistics because the calculation of
  -# owner.wall_time and owner.cpu_time is really slow with an owner with lots of scrapers that
  -# have made lots of runs. So, until we do some more intelligent updating (caching) of totals
  -# let's just disable them. To be honest, they're not terribly helpful really anyway.
    = render partial: 'statistics', locals: {owner: @owner, scrapers: @scrapers}
{'fraction_non_alphanumeric': 0.12313153961136024, 'fraction_numerical': 0.006726457399103139, 'mean_word_length': 2.3063619518221126, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3806386', 'n_tokens_mistral': 1808, 'n_tokens_neox': 1760, 'n_words': 372}