<commit_before><%= form_for room, html: { class: "ui error form segment" } do |f| %>

  <%= error_messages room %>

  <div class="required field">
    <%= f.label :name %>
    <%= f.text_field :name, autofocus: true, autocomplete: "off" %>
  </div>

  <h5 class="ui header"><%= t('rooms.sharing') %></h5>
  <div class="field inline">
    <div class="ui toggle checkbox">
      <label><%= t('rooms.public_access') %></label>
      <%= f.radio_button :public, :true %>
    </div>
  </div>

  <div class="field inline">
    <div class="ui toggle checkbox">
      <label><%= t('rooms.enable_share_link') %></label>
      <%= f.radio_button :share_link, :true %>
    </div>
  </div>

  <div class="actions">
    <%= f.submit class: "ui blue button"%>
  </div>
<% end %><commit_msg>These should be checkboxes and not radio buttons. Also, due to some bizarre behaviour of semantic-ui, the label tags must come after the checkboxes.<commit_after><%= form_for room, html: { class: "ui error form segment" } do |f| %>

  <%= error_messages room %>

  <div class="required field">
    <%= f.label :name %>
    <%= f.text_field :name, autofocus: true, autocomplete: "off" %>
  </div>

  <h5 class="ui header"><%= t('rooms.sharing') %></h5>
  <div class="field inline">
    <div class="ui toggle checkbox">
      <%= f.check_box :public %>
      <label><%= t('rooms.public_access') %></label>
    </div>
  </div>

  <div class="field inline">
    <div class="ui toggle checkbox">
      <%= f.check_box :share_link %>
      <label><%= t('rooms.enable_share_link') %></label>
    </div>
  </div>

  <div class="actions">
    <%= f.submit class: "ui blue button"%>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.20335932813437313, 'fraction_numerical': 0.0023995200959808036, 'mean_word_length': 3.377952755905512, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '4600868', 'n_tokens_mistral': 622, 'n_tokens_neox': 568, 'n_words': 159}