<commit_before><% settings = (@badge_placement_config && @badge_placement_config.merged_settings) || {}
   ref_code = settings['reference_code']
   advanced = ref_code || settings['modules'] || settings['manual_approval']
   disabled = false
%>
  <form class='well form-horizontal' style="margin-top: 15px;" method="post" action="/badges/settings/<%= @badge_placement_config_id %>">
    <h2>Badge Settings</h2>
    <img src="<%= settings['badge_url'] || '/badges/default.png' %>" style='float: left; margin-right: 10px; width: 90px; height: 90px;' class='thumbnail'/>
    <fieldset>
      <div class="control-group">
        <label class="control-label" for="badge_name">Badge name: </label>
        <div class="controls">
          <input type="text" <%= "disabled='true'" if disabled %> class="span2" placeholder="name" id="badge_name" name="badge_name" value="<%= CGI.escapeHTML(settings['badge_name'] || "") %>"/>
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="badge_url">Badge icon: </label>
        <div class="controls">
          <input type="text" <%= "disabled='true'" if disabled %> class="span2" placeholder="https://" id="badge_url" name="badge_url" value="<%= CGI.escapeHTML(settings['badge_url'] || "") %>"/>
          should be 90x90 pixels<br/>
          <a href="https://www.openbadges.me/designer.html?origin=https://canvabadges.herokuapp.com&email=<EMAIL>" data-fancybox-type="iframe" id="badge_designer">use the badge designer</a>
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="badge_description">Badge description: </label>
        <div class="controls">
          <textarea <%= "disabled='true'" if disabled %> class='input-xlarge' rows='3' name='badge_description' id='badge_description'><%= CGI.escapeHTML(settings['badge_description'] || "") %></textarea>
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="badge_requirements">Explanation of requirements: </label>
        <div class="controls"><commit_msg>badge designer needs to work on all domains<commit_after><% settings = (@badge_placement_config && @badge_placement_config.merged_settings) || {}
   ref_code = settings['reference_code']
   advanced = ref_code || settings['modules'] || settings['manual_approval']
   disabled = false
%>
  <form class='well form-horizontal' style="margin-top: 15px;" method="post" action="/badges/settings/<%= @badge_placement_config_id %>">
    <h2>Badge Settings</h2>
    <img src="<%= settings['badge_url'] || '/badges/default.png' %>" style='float: left; margin-right: 10px; width: 90px; height: 90px;' class='thumbnail'/>
    <fieldset>
      <div class="control-group">
        <label class="control-label" for="badge_name">Badge name: </label>
        <div class="controls">
          <input type="text" <%= "disabled='true'" if disabled %> class="span2" placeholder="name" id="badge_name" name="badge_name" value="<%= CGI.escapeHTML(settings['badge_name'] || "") %>"/>
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="badge_url">Badge icon: </label>
        <div class="controls">
          <input type="text" <%= "disabled='true'" if disabled %> class="span2" placeholder="https://" id="badge_url" name="badge_url" value="<%= CGI.escapeHTML(settings['badge_url'] || "") %>"/>
          should be 90x90 pixels<br/>
          <a href="https://www.openbadges.me/designer.html?origin=<%= CGI.escape("#{BadgeHelper.protocol}://#{request.host_with_port}") %>&email=<EMAIL>" data-fancybox-type="iframe" id="badge_designer">use the badge designer</a>
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="badge_description">Badge description: </label>
        <div class="controls">
          <textarea <%= "disabled='true'" if disabled %> class='input-xlarge' rows='3' name='badge_description' id='badge_description'><%= CGI.escapeHTML(settings['badge_description'] || "") %></textarea>
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="badge_requirements">Explanation of requirements: </label>
        <div class="controls">
{'fraction_non_alphanumeric': 0.19161396111501522, 'fraction_numerical': 0.007964394471773249, 'mean_word_length': 4.213675213675214, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, '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': '2456343', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1326, 'n_words': 252}