<commit_before>- if @name_set
  %h1 Fork Scraperwiki scraper #{@scraper.scraperwiki_shortname}

  %p Choose a name for the scraper on GitHub
- else
  %h1 Fork Scraperwiki scraper

  %p This is where you can pick a Scraperwiki scraper, optionally choose a name for it on GitHub and fork away!

  %p
    = link_to "Browse and Search", "https://classic.scraperwiki.com/browse/", target: "_blank"
    for a scraper on ScraperWiki Classic that you want to fork. Then paste the name of the scraper below.

= semantic_form_for @scraper, url: scraperwiki_forks_path do |f|
  = f.inputs do
    .row
      .col-sm-8
        - if @name_set
          = f.hidden_field :scraperwiki_shortname
        - else
          = f.input :scraperwiki_shortname, hint: "The name (as it's shown in a url) of the ScraperWiki Classic scraper that you want to fork", input_html: {placeholder: "city_of_sydney_development_applications"}, label: "Name of Scraperwiki scraper"
    .row
      .col-sm-2
        = f.input :owner, collection: ([current_user] + current_user.organizations).map{|o| [o.nickname, o.id]}, include_blank: false
      .col-sm-6
        .string.input.optional.stringish.form-group#scraper_name_input{class: ("error has-error" unless @scraper.errors[:name].empty?)}
          %label.control-label(for="scraper_name") Name
          .input-group
            %span.input-group-addon /
            %input.form-control#scraper_name{maxlength: "255", name:"scraper[name]", placeholder:"city_of_sydney_development_applications", type:"text", value:"#{@scraper.name}", class:("error" unless @scraper.errors[:name].empty?)}
          %span.help-block Name to give the scraper here and on GitHub
          - @scraper.errors.full_messages_for(:name).each do |m|
            %span.help-inline= m

  = f.actions do
    = f.action :submit, label: "Fork Scraperwiki scraper"<commit_msg>Make error message stand out<commit_after>- if @name_set
  %h1 Fork Scraperwiki scraper #{@scraper.scraperwiki_shortname}

  %p Choose a name for the scraper on GitHub
- else
  %h1 Fork Scraperwiki scraper

  %p This is where you can pick a Scraperwiki scraper, optionally choose a name for it on GitHub and fork away!

  %p
    = link_to "Browse and Search", "https://classic.scraperwiki.com/browse/", target: "_blank"
    for a scraper on ScraperWiki Classic that you want to fork. Then paste the name of the scraper below.

= semantic_form_for @scraper, url: scraperwiki_forks_path do |f|
  = f.inputs do
    .row
      .col-sm-8
        - if @name_set
          = f.hidden_field :scraperwiki_shortname
        - else
          = f.input :scraperwiki_shortname, hint: "The name (as it's shown in a url) of the ScraperWiki Classic scraper that you want to fork", input_html: {placeholder: "city_of_sydney_development_applications"}, label: "Name of Scraperwiki scraper"
    .row
      .col-sm-2
        = f.input :owner, collection: ([current_user] + current_user.organizations).map{|o| [o.nickname, o.id]}, include_blank: false
      .col-sm-6
        .string.input.optional.stringish.form-group#scraper_name_input{class: ("error has-error" unless @scraper.errors[:name].empty?)}
          %label.control-label(for="scraper_name") Name
          .input-group
            %span.input-group-addon /
            %input.form-control#scraper_name{maxlength: "255", name:"scraper[name]", placeholder:"city_of_sydney_development_applications", type:"text", value:"#{@scraper.name}", class:("error" unless @scraper.errors[:name].empty?)}
          - @scraper.errors.full_messages_for(:name).each do |m|
            .alert.alert-warning= m
          %span.help-block Name to give the scraper here and on GitHub

  = f.actions do
    = f.action :submit, label: "Fork Scraperwiki scraper"
{'fraction_non_alphanumeric': 0.11437733832175308, 'fraction_numerical': 0.00427578834847675, 'mean_word_length': 3.332175925925926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6069932', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1244, 'n_words': 337}