<commit_before>class HomeController < ApplicationController
  def home
    notes = EventNote.all
    @serialized_data = 
    {
      educators_index: Educator.to_index,
      event_note_types_index: EventNoteSerializer.event_note_types_index,
      current_educator: current_educator
    }
    render 'shared/serialized_data'
  end

  def home_notes_json
    render json: {
      notes: notes.map {|event_note| EventNoteSerializer.new(event_note).serialize_event_note_with_student }
    }
  end<commit_msg>Add controller<commit_after>class HomeController < ApplicationController
  def home
    @serialized_data = {
      current_educator: current_educator
    }
    render 'shared/serialized_data'
  end

  def home_notes_json
    notes = EventNote.all
    render json: {
      notes: notes.map {|event_note| EventNoteSerializer.new(event_note).serialize_event_note_with_student }
    }
  end
{'fraction_non_alphanumeric': 0.06726457399103139, 'fraction_numerical': 0.0, 'mean_word_length': 3.879781420765027, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5430188', 'n_tokens_mistral': 275, 'n_tokens_neox': 271, 'n_words': 48}