<commit_before>%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!

.alert.alert-warning
  Note that things are currently restricted to Ruby and PHP scrapers

%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 url of the scraper below.

= semantic_form_for @scraper, url: scraperwiki_forks_path do |f|
  = f.inputs do
    = f.input :scraperwiki_url, hint: "The full URL for the ScraperWiki Classic scraper that you want to fork to here", input_html: {placeholder: "https://classic.scraperwiki.com/scrapers/city_of_sydney_development_applications/"}
    = f.input :owner, collection: ([current_user] + current_user.organizations).map{|o| [o.nickname, o.id]}, include_blank: false
    = f.input :name, hint: "Name to give the scraper here and on GitHub", input_html: {placeholder: "city_of_sydney_development_applications"}
  = f.actions do
    = f.action :submit, label: "Fork Scraperwiki scraper"<commit_msg>Ruby, PHP and Python is now supported<commit_after>%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 url of the scraper below.

= semantic_form_for @scraper, url: scraperwiki_forks_path do |f|
  = f.inputs do
    = f.input :scraperwiki_url, hint: "The full URL for the ScraperWiki Classic scraper that you want to fork to here", input_html: {placeholder: "https://classic.scraperwiki.com/scrapers/city_of_sydney_development_applications/"}
    = f.input :owner, collection: ([current_user] + current_user.organizations).map{|o| [o.nickname, o.id]}, include_blank: false
    = f.input :name, hint: "Name to give the scraper here and on GitHub", input_html: {placeholder: "city_of_sydney_development_applications"}
  = f.actions do
    = f.action :submit, label: "Fork Scraperwiki scraper"
{'fraction_non_alphanumeric': 0.09681881051175657, 'fraction_numerical': 0.0009220839096357768, 'mean_word_length': 4.849056603773585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1446504', 'n_tokens_mistral': 736, 'n_tokens_neox': 715, 'n_words': 243}