<commit_before>%p
  This is an <strong>experimental</strong> installer for getting apps running quickly on
  <a href="#{SIGN_UP_URL}">DigitalOcean</a>.

.room
  %h2 Install #{@installer.config['name'] || '(no name; set the :name key in the config)'}

  .content
    %form{ action: '/install', method: 'POST' }
      %input{ type: 'hidden', name: 'url', value: params[:url] }
      %table.table
        %tr
          %th Name:
          %td= @installer.config['name']
        %tr
          %th Repo:
          %td
            %a{ href: @installer.repo }= @installer.repo
            (<a href="#{@installer.url}">config</a>)
        %tr
          %th Image:
          %td= @installer.config['image']
        %tr
          %th Size:
          %td
            %select{ name: 'size' }
              - @installer.memory_options.each do |slug|
                %option{ value: slug }= slug
        %tr
          %th Region:
          %td
            %select{ name: 'region' }
              - @installer.region_options.each do |id, name|
                %option{ value: id, selected: @installer.region == id }= name
            .discreet
              (only regions supporting metdata and CloudConfig)

      .form-group
        %input#agree{ type: 'checkbox', name: 'agree' }
        %label{ for: 'agree' } I agree with the <a href="/terms">terms</a>.

      %button.btn.btn-success#go{ style: 'display:none' }
        %i.fa.fa-cloud-download
        %strong Install #{@installer.config['name'] || '?'}
        on a new Droplet

    %p.discreet{ style: 'margin-top:20px' }
      Note: clicking "I agree" above will set a referral code cookie
      on www.digitalocean.com and give us credit towards our hosting
      bill if you are a new customer. If you don't like that, you can
      host this tool yourself by
      <a href="https://github.com/seven1m/do-install-button">downloading it here</a>.

:javascript
  $('#agree').change(function() {
    if ($(this).is(':checked')) {
      $('body').append('<iframe src="#{SIGN_UP_URL}" style="visibility:hidden;height:0;"></iframe>');
      $('#go').show();
    } else {
      $('iframe').remove();
      $('#go').hide();
    }
  });<commit_msg>Fix typo<commit_after>%p
  This is an <strong>experimental</strong> installer for getting apps running quickly on
  <a href="#{SIGN_UP_URL}">DigitalOcean</a>.

.room
  %h2 Install #{@installer.config['name'] || '(no name; set the :name key in the config)'}

  .content
    %form{ action: '/install', method: 'POST' }
      %input{ type: 'hidden', name: 'url', value: params[:url] }
      %table.table
        %tr
          %th Name:
          %td= @installer.config['name']
        %tr
          %th Repo:
          %td
            %a{ href: @installer.repo }= @installer.repo
            (<a href="#{@installer.url}">config</a>)
        %tr
          %th Image:
          %td= @installer.config['image']
        %tr
          %th Size:
          %td
            %select{ name: 'size' }
              - @installer.memory_options.each do |slug|
                %option{ value: slug }= slug
        %tr
          %th Region:
          %td
            %select{ name: 'region' }
              - @installer.region_options.each do |id, name|
                %option{ value: id, selected: @installer.region == id }= name
            .discreet
              (only regions supporting metadata and CloudConfig)

      .form-group
        %input#agree{ type: 'checkbox', name: 'agree' }
        %label{ for: 'agree' } I agree with the <a href="/terms">terms</a>.

      %button.btn.btn-success#go{ style: 'display:none' }
        %i.fa.fa-cloud-download
        %strong Install #{@installer.config['name'] || '?'}
        on a new Droplet

    %p.discreet{ style: 'margin-top:20px' }
      Note: clicking "I agree" above will set a referral code cookie
      on www.digitalocean.com and give us credit towards our hosting
      bill if you are a new customer. If you don't like that, you can
      host this tool yourself by
      <a href="https://github.com/seven1m/do-install-button">downloading it here</a>.

:javascript
  $('#agree').change(function() {
    if ($(this).is(':checked')) {
      $('body').append('<iframe src="#{SIGN_UP_URL}" style="visibility:hidden;height:0;"></iframe>');
      $('#go').show();
    } else {
      $('iframe').remove();
      $('#go').hide();
    }
  });
{'fraction_non_alphanumeric': 0.16170407695831424, 'fraction_numerical': 0.0022904260192395786, 'mean_word_length': 2.1553468208092488, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5173298', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1353, 'n_words': 367}