<commit_before>$(document).ready(function () {
  $('#target_has_been_called_false').click(function () {
    $('#response-yes').hide('fast');
    $('#response-clarify').hide('fast');
    $('#response-clarify :radio').prop('checked', false);
    $('#response-yes :radio').prop('checked', false);
    $('#response-no').show('fast');
  });

  $('#target_has_been_called_true').click(function () {
    $('#response-no').hide('fast');
    $('#response-no :radio').prop('checked', false);
    $('#response-clarify').show('fast');
  });
  
  $('#talked-to-target').click(function () {
    $('#response-yes').show('fast');
  });
  $('#did-not-talk-to-target').click(function () {
    $('#response-yes').hide('fast');
  });
});
<commit_msg>Hides parts of response form on page load.<commit_after>$(document).ready(function () {

  if ( $('#target_has_been_called_false').is(':checked') ) {
    $('#response-yes').hide();
    $('#response-clarify').hide();
  }


  $('#target_has_been_called_false').click(function () {
    $('#response-yes').hide('fast');
    $('#response-clarify').hide('fast');
    $('#response-clarify :radio').prop('checked', false);
    $('#response-yes :radio').prop('checked', false);
  });

  $('#target_has_been_called_true').click(function () {
    $('#response-clarify').show('fast');
    $('#response-clarify :radio').prop('checked', false);
  });

  $('#talked-to-target').click(function () {
    $('#response-yes').show('fast');
  });
  $('#did-not-talk-to-target').click(function () {
    $('#response-yes').hide('fast');
  });
});

{'fraction_non_alphanumeric': 0.2812097812097812, 'fraction_numerical': 0.0, 'mean_word_length': 4.654545454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4804932', 'n_tokens_mistral': 503, 'n_tokens_neox': 519, 'n_words': 51}