<commit_before>- content_for :title, @scraper.full_name

- if @scraper.forking?
  %h1
    = link_to @scraper.owner.to_param, @scraper.owner
    \/
    = link_to @scraper.name, @scraper
  %h2 Forking!
  .progress.progress-striped.active
    .progress-bar(style="width: #{@scraper.forking_progress == 0 ? 5 : @scraper.forking_progress}%")
      - if @scraper.forking_message
        = @scraper.forking_message
        &hellip;
  %span.muted
    (Refresh page for the latest)

- else
  .row
    .col-md-11
      %h1
        = link_to @scraper.owner.to_param, @scraper.owner
        \/
        = link_to @scraper.name, @scraper
      %h4
        = @scraper.description
        = render partial: "auto_clock", locals: {scraper: @scraper}
        - if @scraper.queued? || @scraper.running?
          .pulse

      - if @scraper.readme
        .panel.panel-default
          .panel-heading
            %h4.panel-title= link_to @scraper.readme_filename, @scraper.github_url_readme
          .panel-body
            = @scraper.readme
    .col-md-1
      - if signed_in?
        .button_title_adjust= render partial: "watch_button", locals: {scraper: @scraper}
        = link_to "Settings", scraper_settings_path
        - if @scraper.can_write?(current_user)
          %p= button_to "Run it now!", run_scraper_path(@scraper), class: (!@scraper.runnable? ? "btn btn-primary btn-lg disabled" : "btn btn-primary btn-lg"), disabled: !@scraper.runnable?

  - if @scraper.scraperwiki_url
    %p
      Forked from
      = link_to "ScraperWiki", @scraper.scraperwiki_url, target: "_blank"

  %p
    git clone URL: #{@scraper.git_url_https}
  - if @scraper.github_url
    %p
      %i.icon-github-sign.icon-large
      = link_to @scraper.github_url, target: "_blank" do
        = @scraper.name
      - if @scraper.main_scraper_filename
        (#{link_to @scraper.main_scraper_filename, @scraper.github_url_main_scraper_file, target: "_blank"}) on GitHub

  = render "status"
  = render "console"
  = render "data"
  = render "history"
  = render "statistics"
<commit_msg>Put github related stuff on the sidebar<commit_after>- content_for :title, @scraper.full_name

- if @scraper.forking?
  %h1
    = link_to @scraper.owner.to_param, @scraper.owner
    \/
    = link_to @scraper.name, @scraper
  %h2 Forking!
  .progress.progress-striped.active
    .progress-bar(style="width: #{@scraper.forking_progress == 0 ? 5 : @scraper.forking_progress}%")
      - if @scraper.forking_message
        = @scraper.forking_message
        &hellip;
  %span.muted
    (Refresh page for the latest)

- else
  .row
    .col-md-10
      %h1
        = link_to @scraper.owner.to_param, @scraper.owner
        \/
        = link_to @scraper.name, @scraper
      %h4
        = @scraper.description
        = render partial: "auto_clock", locals: {scraper: @scraper}
        - if @scraper.queued? || @scraper.running?
          .pulse

      - if @scraper.readme
        .panel.panel-default
          .panel-heading
            %h4.panel-title= link_to @scraper.readme_filename, @scraper.github_url_readme
          .panel-body
            = @scraper.readme
      = render "status"
      = render "console"
      = render "data"
      = render "history"
      = render "statistics"
    .col-md-2
      - if signed_in?
        .button_title_adjust= render partial: "watch_button", locals: {scraper: @scraper}
        = link_to "Settings", scraper_settings_path
        - if @scraper.can_write?(current_user)
          %p= button_to "Run it now!", run_scraper_path(@scraper), class: (!@scraper.runnable? ? "btn btn-primary btn-lg disabled" : "btn btn-primary btn-lg"), disabled: !@scraper.runnable?
      - if @scraper.scraperwiki_url
        %p
          Forked from
          = link_to "ScraperWiki", @scraper.scraperwiki_url, target: "_blank"

      %p
        git clone URL: #{@scraper.git_url_https}
      - if @scraper.github_url
        %p
          %i.icon-github-sign.icon-large
          = link_to @scraper.github_url, target: "_blank" do
            = @scraper.name
          - if @scraper.main_scraper_filename
            (#{link_to @scraper.main_scraper_filename, @scraper.github_url_main_scraper_file, target: "_blank"}) on GitHub



{'fraction_non_alphanumeric': 0.12511893434823979, 'fraction_numerical': 0.004757373929590866, 'mean_word_length': 2.483844241922121, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4019543', 'n_tokens_mistral': 1583, 'n_tokens_neox': 1540, 'n_words': 284}