<commit_before>- classes = [ "", "", "" ]
- checked = [ false, false, false ]
- selected = viz || 0
- classes[selected] = "active"
- checked[selected] = true
.btn-group.btn-group-lg.btn-group-toggle{"data-toggle" => "buttons"}
  %label.btn.btn-secondary{ title: "Visible on your public Cutouts page", class: classes[0] }
    %input{ type: "radio", name: "visibility", value: "0", checked: checked[0] }
      %span Public<commit_msg>Convert to integer before selecting active visibility<commit_after>- classes = [ "", "", "" ]
- checked = [ false, false, false ]
- selected = viz.to_i || 0
- classes[selected] = "active"
- checked[selected] = true
.btn-group.btn-group-lg.btn-group-toggle{"data-toggle" => "buttons"}
  %label.btn.btn-secondary{ title: "Visible on your public Cutouts page", class: classes[0] }
    %input{ type: "radio", name: "visibility", value: "0", checked: checked[0] }
      %span Public
{'fraction_non_alphanumeric': 0.1859185918591859, 'fraction_numerical': 0.0088008800880088, 'mean_word_length': 4.170454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1678466', 'n_tokens_mistral': 295, 'n_tokens_neox': 286, 'n_words': 77}