<commit_before>- content_for :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
          %h4= @owner.nickname
        - else
          %h1= @owner.nickname
        .row
          .col-md-6
            %h4 Contacts
            %ul.list-unstyled
              - unless @owner.company.blank?
                %li= @owner.company
              - unless @owner.blog.blank?
                %li= link_to @owner.blog, @owner.blog
            %p
              = link_to @owner.github_url, target: "_blank" do
                %i.icon-github-sign.icon-large
                = @owner.nickname
                on GitHub
          .col-md-6
            - unless @owner.organizations.empty?
              %h4 Organizations
              %p
                - @owner.organizations.each do |org|
                  = link_to owner_image(org, 30), org
            - unless @owner.users.empty?
              %h4 Members
              %p
                - @owner.users.each do |user|
                  = link_to owner_image(user, 30), user
        - if @owner == current_user || (@owner.user? && current_user && current_user.admin?)
          %div
            = button_link_to "Settings", owner_settings_path(@owner)
      .col-md-2.owner-box
        - if signed_in?
          .pull-right= render partial: "watch_button", locals: {owner: @owner}

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

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

  - if @owner == current_user
    .btn-group
      = button_link_to "#", class: "dropdown-toggle", data: {toggle: "dropdown"} do
        Add Scraper
        %b.caret<commit_msg>Add link to settings page for organization<commit_after>- content_for :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
          %h4= @owner.nickname
        - else
          %h1= @owner.nickname
        .row
          .col-md-6
            %h4 Contacts
            %ul.list-unstyled
              - unless @owner.company.blank?
                %li= @owner.company
              - unless @owner.blog.blank?
                %li= link_to @owner.blog, @owner.blog
            %p
              = link_to @owner.github_url, target: "_blank" do
                %i.icon-github-sign.icon-large
                = @owner.nickname
                on GitHub
          .col-md-6
            - unless @owner.organizations.empty?
              %h4 Organizations
              %p
                - @owner.organizations.each do |org|
                  = link_to owner_image(org, 30), org
            - unless @owner.users.empty?
              %h4 Members
              %p
                - @owner.users.each do |user|
                  = link_to owner_image(user, 30), user
        - if Scraper.can_write?(current_user, @owner) || (current_user && current_user.admin?)
          %div
            = button_link_to "Settings", owner_settings_path(@owner)
      .col-md-2.owner-box
        - if signed_in?
          .pull-right= render partial: "watch_button", locals: {owner: @owner}

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

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

  - if @owner == current_user
    .btn-group
      = button_link_to "#", class: "dropdown-toggle", data: {toggle: "dropdown"} do
        Add Scraper
        %b.caret
{'fraction_non_alphanumeric': 0.12211140841644369, 'fraction_numerical': 0.009729992702505474, 'mean_word_length': 1.6736020806241874, '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': '3198350', 'n_tokens_mistral': 1327, 'n_tokens_neox': 1283, 'n_words': 276}