<commit_before><p>
<%= label_tag('repository_is_diff_email', l(:field_mail_notification)) %>
<%= check_box(:repository, :is_diff_email,
 :onclick => ('if (this.checked) {$("repository_is_diff_email_attached").checked = true; $("repository_is_diff_email_attached").disabled = false;}
 else {$("repository_is_diff_email_attached").checked = false; $("repository_is_diff_email_attached").disabled = true;}')) %><br />
<em><%= l(:text_diff_email_setting) %></em>
</p>
<p>
<%= check_box(:repository, :is_diff_email_attached,
 :onclick => ('if ($("repository_is_diff_email").checked = true) {this.disabled = false;} else {this.disabled = true;}')) %><br />
<em><%= l(:text_diff_email_attached) %></em>
</p>
<commit_msg>restored javascript for dependant check boxes<commit_after><script type="text/javascript">

  function SecondInpuDependsOnFirstClickHandler(event){
    if (this.checked) {
      $("#repository_is_diff_email_attached").removeAttr("disabled");
    } else {
      $("#repository_is_diff_email_attached").attr("disabled", "disabled");
    }
  }


  $(document).ready(function(){

    var firstInput = $('#repository_is_diff_email');

    SecondInpuDependsOnFirstClickHandler.call(firstInput);

    firstInput.on(
      'click',
      SecondInpuDependsOnFirstClickHandler
    );

  });
</script>

<p>
  <%= label_tag('repository_is_diff_email', l(:field_mail_notification)) %>
  <%= check_box(:repository, :is_diff_email) %><br />
  <em><%= l(:text_diff_email_setting) %></em>
</p>
<p>
  <%= check_box(:repository, :is_diff_email_attached) %><br />
  <em><%= l(:text_diff_email_attached) %></em>
</p>
{'fraction_non_alphanumeric': 0.19092039800995025, 'fraction_numerical': 0.0, 'mean_word_length': 6.34703196347032, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, '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': '3631091', 'n_tokens_mistral': 570, 'n_tokens_neox': 552, 'n_words': 81}