<commit_before>{ "schedule": {
    <% unless @conference.schedule_version.nil? or @conference.schedule_version.empty? %>
    "version": "<%= @conference.schedule_version%>",
    <% end %>
    "conference": {
      "title": "<%= @conference.title %>",
      <% if @conference.days.length > 0 %>
      "start": "<%= @conference.first_day.start_date.strftime('%Y-%m-%d') %>",
      "end": "<%= @conference.last_day.end_date.strftime('%Y-%m-%d') %>",
      <% end %>
      "days": "<%= @conference.days.length %>",
      "timeslot_duration": "<%= duration_to_time(@conference.timeslot_duration) %>",
      "days": [
        <% @conference.days.each_with_index do |day, index| %>
          {
            "index": "<%= index %>",
            "date": "<%= day.start_date.strftime('%Y-%m-%d') %>",
            "rooms": {
              <% @conference.rooms.public.each do |room| %>
              "<%= room.name %>": [
                <% room.events.public.accepted.scheduled_on(day).order(:start_time).each do |event| %>
                  {
                    "id": "<%= event.id %>",
                    "start": "<%= event.start_time.strftime('%H:%M') %>",
                    "duration": "<%= format_time_slots(event.time_slots) %>",
                    "room": "<%= room.name %>",
                    "slug": "<%= event.slug %>",
                    "title": "<%= event.title %>",
                    "subtitle": "<%= event.subtitle %>",
                    "track": "<%= event.track.try(:name) %>",
                    "type": "<%= event.event_type %>",
                    "language": "<%= event.language %>",
                    "abstract": "<%= event.abstract %>",
                    "description": "<%= event.description %>",
                    "persons": [
                      <% event.speakers.each do |speaker| %>
                        {"id": "<%= speaker.id %>",  "full_public_name": "<%= speaker.full_public_name %>"}<% if event.speakers.last.id != speaker.id %>,<% end %>
                      <% end %>
                    ],
                    "links": [
                      <% event.links.each do |link| %>
                        {"url": "<%= link.url %>", "title": "<%= link.title%>"}<% if event.links.last.id != link.id %>,<% end %>
                      <% end %>
                    ]
                  }<% if room.events.public.accepted.scheduled_on(day).order(:start_time).last.id != event.id %>,<% end %>
                <% end %>
              ]<% if @conference.rooms.public.last.id != room.id %>,<% end %>
            <% end %>
            }
          }<% if @conference.last_day != day %>,<% end %>
        <% end %>
      ]
    }
  }<commit_msg>fix #108: print abstract and description as json strings<commit_after>{ "schedule": {
    <% unless @conference.schedule_version.nil? or @conference.schedule_version.empty? %>
    "version": "<%= @conference.schedule_version%>",
    <% end %>
    "conference": {
      "title": "<%= @conference.title %>",
      <% if @conference.days.length > 0 %>
      "start": "<%= @conference.first_day.start_date.strftime('%Y-%m-%d') %>",
      "end": "<%= @conference.last_day.end_date.strftime('%Y-%m-%d') %>",
      <% end %>
      "days": "<%= @conference.days.length %>",
      "timeslot_duration": "<%= duration_to_time(@conference.timeslot_duration) %>",
      "days": [
        <% @conference.days.each_with_index do |day, index| %>
          {
            "index": "<%= index %>",
            "date": "<%= day.start_date.strftime('%Y-%m-%d') %>",
            "rooms": {
              <% @conference.rooms.public.each do |room| %>
              "<%= room.name %>": [
                <% room.events.public.accepted.scheduled_on(day).order(:start_time).each do |event| %>
                  {
                    "id": "<%= event.id %>",
                    "start": "<%= event.start_time.strftime('%H:%M') %>",
                    "duration": "<%= format_time_slots(event.time_slots) %>",
                    "room": "<%= room.name %>",
                    "slug": "<%= event.slug %>",
                    "title": "<%= event.title %>",
                    "subtitle": "<%= event.subtitle %>",
                    "track": "<%= event.track.try(:name) %>",
                    "type": "<%= event.event_type %>",
                    "language": "<%= event.language %>",
                    "abstract": "<%= event.abstract.to_json %>",
                    "description": "<%= event.description.to_json %>",
                    "persons": [
                      <% event.speakers.each do |speaker| %>
                        {"id": "<%= speaker.id %>",  "full_public_name": "<%= speaker.full_public_name %>"}<% if event.speakers.last.id != speaker.id %>,<% end %>
                      <% end %>
                    ],
                    "links": [
                      <% event.links.each do |link| %>
                        {"url": "<%= link.url %>", "title": "<%= link.title%>"}<% if event.links.last.id != link.id %>,<% end %>
                      <% end %>
                    ]
                  }<% if room.events.public.accepted.scheduled_on(day).order(:start_time).last.id != event.id %>,<% end %>
                <% end %>
              ]<% if @conference.rooms.public.last.id != room.id %>,<% end %>
            <% end %>
            }
          }<% if @conference.last_day != day %>,<% end %>
        <% end %>
      ]
    }
  }
{'fraction_non_alphanumeric': 0.21466839091077036, 'fraction_numerical': 0.0009237021984112322, 'mean_word_length': 1.6016338298894761, 'pattern_counts': {'":': 62, '<': 101, '<?xml version=': 0, '>': 103, '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': '4655925', 'n_tokens_mistral': 1759, 'n_tokens_neox': 1559, 'n_words': 220}