<commit_before>isChecked = (selector)  ->  $("##{selector}").prop('checked')
val = (selector,text) -> if text? then $("##{selector}").val(text) else $("##{selector}").val()
S = (selector) -> $("##{selector}")

window.initEvents = (answer_yes, answer_no, tripDetails) ->
  if not isChecked(answer_yes)
    hideTripDetailsWrapper(tripDetails)

  S(answer_yes).on "click", -><commit_msg>CADS-507 : Claim aboutYou tripDetails charCount fixes missed init() calling blur on textArea.<commit_after>isChecked = (selector)  ->  $("##{selector}").prop('checked')
val = (selector,text) -> if text? then $("##{selector}").val(text) else $("##{selector}").val()
S = (selector) -> $("##{selector}")

window.initEvents = (answer_yes, answer_no, tripDetails) ->
  $("#"+tripDetails).trigger("blur")

  if not isChecked(answer_yes)
    hideTripDetailsWrapper(tripDetails)

  S(answer_yes).on "click", ->
{'fraction_non_alphanumeric': 0.21557562076749437, 'fraction_numerical': 0.003386004514672686, 'mean_word_length': 5.9296875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2272083', 'n_tokens_mistral': 304, 'n_tokens_neox': 294, 'n_words': 60}