<commit_before>date_format = event.all_day_event? ? '%Y-%m-%d' : '%Y-%m-%dT%H:%M:%S'

json.id event.id
json.title event.title
json.start event.start.strftime(date_format)
json.end event.end.strftime(date_format)

json.color event.color unless event.color.blank?
json.allDay event.all_day_event? ? true : false

json.update_url event_path(event, method: :patch)
json.edit_url edit_event_path(event)<commit_msg>render event json<commit_after>date_format = event.all_day_event? ? '%Y-%m-%d' : '%Y-%m-%dT%H:%M:%S'

json.id event.id
json.title event.title

json.color event.color unless event.color.blank?
json.allDay event.all_day_event? ? true : false

json.update_url user_event_path(current_user.id, event, method: :patch)
json.edit_url edit_user_event_path(current_user.id, event)
{'fraction_non_alphanumeric': 0.14615384615384616, 'fraction_numerical': 0.0, 'mean_word_length': 6.165137614678899, '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': '6943789', 'n_tokens_mistral': 295, 'n_tokens_neox': 291, 'n_words': 51}