<commit_before>%h2.slidetitle New Slide
=form_for [presentation, Slide.new], :html => {:class => "collapsable_slide"} do |f|
  =render :partial => "/slides/form", :object => f, :locals => {:presentation => presentation}
  =submit_tag "Create"
%h2.topictitle New Topic
=form_for [presentation, Topic.new], :html => {:class => "collapsable_topic"} do |f|
  =render :partial => "/topics/form", :object => f, :locals => {:presentation => presentation}
  =submit_tag "Create"

%ol.collection{:id => "presentations.#{presentation.id}.topics.sort",:class => 'sortable_topics'}
  -presentation.topics.each do |topic|
    %li[topic]{:style => "padding-left:#{(1*topic.level)}em"}
      ="-" * topic.level + " " +topic.title
      -unless topic.slides.empty?        
        %ol.collection{:id => "presentations.#{presentation.id}.slides.sort", :class => 'sortable_slides', :topic_id => topic.id}
          -topic.slides.each do |slide|
            %li[slide]{:style => "padding-left:#{(1*topic.level)+1}em"}
              -if @slide && @slide.id == slide.id
                =slide.title
              -else
                =link_to slide.title, edit_presentation_slide_path(presentation, slide)<commit_msg>Remove indicaton of the topic level through a string. We show the level through indentation.<commit_after>%h2.slidetitle New Slide
=form_for [presentation, Slide.new], :html => {:class => "collapsable_slide"} do |f|
  =render :partial => "/slides/form", :object => f, :locals => {:presentation => presentation}
  =submit_tag "Create"
%h2.topictitle New Topic
=form_for [presentation, Topic.new], :html => {:class => "collapsable_topic"} do |f|
  =render :partial => "/topics/form", :object => f, :locals => {:presentation => presentation}
  =submit_tag "Create"

%ol.collection{:id => "presentations.#{presentation.id}.topics.sort",:class => 'sortable_topics'}
  -presentation.topics.each do |topic|
    %li[topic]{:style => "padding-left:#{(1*topic.level)}em"}
      =topic.title
      -unless topic.slides.empty?        
        %ol.collection{:id => "presentations.#{presentation.id}.slides.sort", :class => 'sortable_slides', :topic_id => topic.id}
          -topic.slides.each do |slide|
            %li[slide]{:style => "padding-left:#{(1*topic.level)+1}em"}
              -if @slide && @slide.id == slide.id
                =slide.title
              -else
                =link_to slide.title, edit_presentation_slide_path(presentation, slide)
{'fraction_non_alphanumeric': 0.17851307189542484, 'fraction_numerical': 0.004084967320261438, 'mean_word_length': 3.5268022181146024, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 41, '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': '2753465', 'n_tokens_mistral': 823, 'n_tokens_neox': 789, 'n_words': 162}