<commit_before><%= error_messages_for 'topic' %>

<!--[form:topic]-->
<p><label for="topic_identifier">Topic id</label><br/>
  <%= text_field 'topic', 'topic_identifier' %></p>

<table>
  <tr>
    <td><label for="topic_name">Topic name</label></td>
    <td><label for="category">Topic category</label><br/></td>
  </tr>
  <tr>
    <td><%= text_field 'topic', 'topic_name' %></td>
    <td><%= text_field 'topic', 'category' %></td>
  </tr>
</table>

<p><label for="max_choosers">Maximum choosers</label><br/>
  <%= text_field 'topic', 'max_choosers' %></p>

<% if topic.assignment.is_microtask? %>  
<p><label for="micropayment">Micropayment</label><br/>
    <%= text_field 'topic', 'micropayment' %></p><commit_msg>Changed layout of add-topic screen to make it more compact and narrow textboxes into which integers are to be typed.<commit_after><%= error_messages_for 'topic' %>

<!--[form:topic]-->
<p></p>

<table>
  <tr>
    <td><label for="topic_identifier">Topic id</label></td>
    <td><label for="topic_name">&nbsp;&nbsp;Topic name</label></td>
    <td><label for="category">Topic category</label><br/></td>
  </tr>
  <tr>
    <td><%= text_field 'topic', 'topic_identifier', :size => 2 %></td>
    <td><%= text_field 'topic', 'topic_name' %></td>
    <td><%= text_field 'topic', 'category', :size => 10 %></td>
  </tr>
</table>

<p><label for="max_choosers">Number of slots</label><br/>
  <%= text_field 'topic', 'max_choosers', :size => 1 %></p>

<% if topic.assignment.is_microtask? %>  
<p><label for="micropayment">Micropayment</label><br/>
    <%= text_field 'topic', 'micropayment' %></p>
{'fraction_non_alphanumeric': 0.23922548407245472, 'fraction_numerical': 0.0024984384759525295, 'mean_word_length': 4.889705882352941, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 93, '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': '1068525', 'n_tokens_mistral': 618, 'n_tokens_neox': 591, 'n_words': 123}